/* Shared mobile refinements, loaded after each page's component styles. */
/* Mobile reading rhythm inspired by the supplied Super Copper reference. */
@media (max-width:680px) {
  html body.site-system { --ui-page-title:36px; --ui-section-title:26px; --ui-body:16px; --ui-gutter:6vw; }
  html body.site-system .site-header { height:68px; min-height:68px; padding:10px 6%; }
  html body.site-system .site-header .brand { gap:9px; }
  html body.site-system .site-header .brand img { width:110px; }
  html body.site-system .site-header .brand-name { font-size:16px; white-space:nowrap; }
  html body.site-system .site-header .brand-divider { height:24px; }
  html body.site-system .site-header .menu-toggle { width:44px; height:44px; min-width:44px; }
  html body.site-system .site-header .main-nav.open { max-height:calc(100dvh - 68px); }
  html body.site-system main :is(.category-hero,.product-detail-hero) { min-height:230px; padding:48px 0; }
  html body.site-system :is(.category-hero-copy,.product-detail-hero-copy) { width:88%; }
  html body.site-system main :is(.category-hero-copy,.product-detail-hero-copy) .ui-page-title { font-size:36px !important; line-height:1.3 !important; letter-spacing:-.02em; }
  html body.site-system .category-series-subtitle { max-width:24em; margin-top:18px; font-size:17px; line-height:1.8; }
  html body.site-system main :is(.category-details,.product-detail-content) { width:88%; padding-top:36px; padding-bottom:48px; }
  html body.site-system main .category-details .category-details-heading { margin-bottom:22px; }
  html body.site-system main .category-details .category-details-heading h2 { font-size:24px !important; line-height:1.5 !important; }
  html body.site-system .product-overview { gap:24px; }
  html body.site-system .product-overview-intro { font-size:16px; line-height:1.9; }
  html body.site-system :is(.product-overview-grid,.tin-product-grid,.category-card-grid,.related-products-grid) { grid-template-columns:minmax(0,1fr); gap:24px; }
  html body.site-system .product-series-card { border-radius:10px; }
  html body.site-system .product-series-card>img { height:auto; aspect-ratio:1.5; min-height:0; }
  html body.site-system .product-series-card>div { padding:22px; }
  html body.site-system .product-series-card h3 { margin:10px 0 14px; font-size:28px; }
  html body.site-system :is(.product-series-card,.tin-product-card) p { font-size:16px; line-height:1.85; }
  html body.site-system .custom-material-intro { gap:28px; }
  html body.site-system .custom-material-summary { font-size:16px; line-height:1.9; }
  html body.site-system .tin-product-card { padding:24px; border-radius:10px; }
  html body.site-system .tin-product-card h4 { font-size:28px; margin:12px 0 16px; }
  html body.site-system .tin-product-inquiry { width:100%; min-height:48px; }
  html body.site-system .tin-cooperation { gap:20px; padding:24px 20px; }
  html body.site-system .tin-performance { margin-top:12px; padding-top:32px; }
  html body.site-system .tech-hero { grid-template-columns:minmax(0,1fr); gap:28px; padding:48px 6% 40px; }
  html body.site-system .tech-hero h1 { font-size:36px !important; line-height:1.35 !important; }
  html body.site-system .tech-hero-image { border-radius:12px; }
  html body.site-system :is(.tech-block,.application-detail-intro,.application-detail-content) { width:88%; }
  html body.site-system :is(.tech-split,.tech-feature-grid,.tech-test-grid,.application-test-layout) { grid-template-columns:minmax(0,1fr); gap:24px; }
  html body.site-system .tech-test-card { padding:22px 18px; border-radius:10px; }
  html body.site-system .tech-test-card h3 { font-size:22px; line-height:1.5; }
  html body.site-system .tech-test-card .tech-test-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  html body.site-system .tech-test-card .tech-test-metrics>div { min-width:0; padding:14px 10px; }
  html body.site-system .tech-test-metrics strong { font-size:23px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
  html body.site-system .tech-test-metrics strong small { display:block; font-size:12px; }
  html body.site-system.home-modern .modern-material-hero { display:flex; flex-direction:column; gap:28px; min-height:0; padding:48px 6% 36px; }
  html body.site-system.home-modern .modern-hero-copy { width:100%; padding:0; }
  html body.site-system.home-modern #material-hero-title { margin:0 0 22px; font-size:38px !important; line-height:1.35; }
  html body.site-system.home-modern .modern-hero-copy>p { font-size:17px !important; line-height:1.9; }
  html body.site-system.home-modern .modern-hero-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; margin-top:26px; }
  html body.site-system.home-modern .modern-hero-actions a { min-height:48px; justify-content:center; }
  html body.site-system.home-modern .modern-hero-visual { align-self:auto; width:100%; height:220px; min-height:220px; margin:0; border-radius:12px; }
  html body.site-system.home-modern :is(.about-section,.news-section,.hero-awards-landing) { padding-top:44px; padding-bottom:44px; }
  html body.site-system .site-footer { padding-top:36px; padding-bottom:24px; }
}
/* Team and organization: phone layouts only. */
@media(max-width:760px) {
  html body.site-system .awards-index-page .award-index-card {
    grid-template-columns:minmax(0,1fr); gap:18px;
    height:auto; max-height:none; overflow:visible;
  }
  html body.site-system .awards-index-page .award-index-copy {
    width:100%; min-width:0; padding:0 16px 18px;
    height:auto; max-height:none; overflow:visible;
  }
  html body.site-system .awards-index-page .award-index-copy :is(h2,p) {
    display:block; width:100%; height:auto; max-height:none;
    white-space:normal; overflow:visible; overflow-wrap:anywhere;
    -webkit-line-clamp:unset;
  }
  html body.site-system .awards-index-page .award-index-image {
    width:100%; aspect-ratio:4/3;
  }
}

@media (max-width:760px) {
  html body.site-system:has(.team-content) .team-content { width:90%; margin:0 auto; padding:32px 0 44px; }
  html body.site-system:has(.team-content) .team-intro { display:block; margin-bottom:24px; }
  html body.site-system:has(.team-content) .team-intro .ui-section-title { font-size:24px !important; line-height:1.5 !important; }
  html body.site-system:has(.team-content) .team-intro>p { margin:14px 0 0; line-height:1.85; }
  html body.site-system:has(.team-content) .team-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
  html body.site-system:has(.team-content) .team-card { display:flex; flex-direction:column; align-items:center; gap:20px; min-height:0; padding:24px 20px; }
  html body.site-system:has(.team-content) .team-portrait { position:static; width:140px; height:172px; flex:none; margin:0; object-fit:cover; object-position:center 20%; border-radius:8px; }
  html body.site-system:has(.team-content) .team-card-copy { width:100%; min-width:0; text-align:left; }
  html body.site-system:has(.team-content) .team-card-copy .ui-profile-title { min-height:0; margin:0 0 8px; font-size:22px !important; line-height:1.5 !important; }
  html body.site-system:has(.team-content) .team-card-copy>strong { display:block; font-size:16px; line-height:1.6; }
  html body.site-system:has(.team-content) .team-card-copy p { width:100%; max-width:none; min-height:0; margin:14px 0 0; font-size:15px; line-height:1.85; white-space:normal; }
  html body.site-system:has(.team-content) .team-card-copy .team-education { margin-top:10px; font-size:14px; }

  html body.site-system .organization-page { padding-top:32px; padding-bottom:44px; }
  html body.site-system .organization-page .org-content { width:90%; }
  html body.site-system .organization-page .org-heading { margin:0 0 24px; }
  html body.site-system .organization-page .org-chart { width:100%; padding:24px 12px; overflow:visible; background:#fff; border-radius:12px; }
  html body.site-system .organization-page :is(.org-diagram,.org-level,.org-chain,.org-executive,.org-branches,.org-stem) { width:100%; min-width:0; max-width:none; zoom:1; }
  html body.site-system .organization-page .org-diagram { display:flex; flex-direction:column; align-items:center; }
  html body.site-system .organization-page .org-logo { width:76px; height:76px; }
  html body.site-system .organization-page .org-logo img { width:54px; }
  html body.site-system .organization-page .org-chain { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; width:72%; padding:20px 0 0; }
  html body.site-system .organization-page .org-chain .org-node { position:relative; width:100%; min-height:48px; border-radius:8px; font-size:18px; }
  html body.site-system .organization-page .org-chain .org-node::before { content:""; position:absolute; display:block; width:1px; height:14px; left:50%; top:-16px; background:#aac9d8; }
  html body.site-system .organization-page .org-stem { display:block; height:22px; width:1px; background:#aac9d8; }
  html body.site-system .organization-page :is(.org-chain,.org-executive,.org-branches,.org-stem)::before,
  html body.site-system .organization-page :is(.org-chain,.org-executive,.org-branches,.org-stem)::after,
  html body.site-system .organization-page .org-dept::before { display:none; }
  html body.site-system .organization-page .org-executive { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; }
  html body.site-system .organization-page .org-executive .org-node { width:100%; min-height:54px; padding:10px 4px; font-size:15px; border-radius:8px; text-align:center; }
  html body.site-system .organization-page .org-branches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0; }
  html body.site-system .organization-page .org-dept { display:flex; align-items:center; justify-content:center; min-height:48px; padding:10px 6px; border-radius:8px; font-size:16px; text-align:center; }
  html body.site-system .organization-page .org-dept:last-child:nth-child(odd) { grid-column:1 / -1; }
}
@media (max-width:1000px) {
  .site-header .main-nav.open { max-height:calc(100dvh - 86px); overflow-y:auto; overscroll-behavior-y:contain; }
  .site-header .language-picker { width:100%; margin-left:0; }
  .site-header .language-picker-toggle { width:100%; justify-content:flex-start; min-height:48px; }
  .site-header .language-picker-menu { position:static; min-width:0; box-shadow:none; }
}
@media (max-width:760px) {
  .site-system main :is(section,article,figure,figcaption),
  .site-system .footer-main>* { min-width:0; }
  .site-system main :is(p,h1,h2,h3,h4,figcaption),
  .site-system .footer-contact-list { overflow-wrap:anywhere; }
  .site-system main :is(img,video,iframe) { max-width:100%; }
  .site-system main :is(.tech-table-wrap,.application-test-table,.custom-case-table-wrap) {
    width:100%; max-width:100%; min-width:0; overflow-x:auto;
    overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch;
  }
  .site-system .application-generators-page .application-test-layout { grid-template-columns:minmax(0,1fr); }
  .site-system .media-story-header h1 { white-space:normal; font-size:26px; line-height:1.5; }
  .site-system .tech-reading { white-space:normal; }
  .site-system .mit-contact-form { grid-template-columns:minmax(0,1fr); }
  .site-system .mit-contact-form label { min-width:0; }
  .site-system .mit-contact-form :is(input,select,textarea) { min-width:0; font-size:16px; }
  .site-system .mit-contact-form input:not([type=checkbox]),
  .site-system .mit-contact-form select,
  .site-system .mit-contact-form button { min-height:44px; }
  .site-system .contact-details-layout { grid-template-columns:minmax(0,1fr); }
  .site-system .product-inquiry-link { display:inline-flex; align-items:center; min-height:44px; max-width:100%; }
  .site-system .footer-bottom { flex-wrap:wrap; }
}
@media (max-width:420px) {
  .site-system .brand { min-width:0; gap:8px; }
  .site-system .brand img { width:100px; }
  .site-system .brand-name { font-size:16px; white-space:nowrap; }
  .site-system .brand-divider { height:24px; }
  .site-system .award-index-card { grid-template-columns:minmax(0,1fr); }
  .site-system .award-index-image { width:100%; }
}
