/* Mobile card lists: two columns, with enough room for content to wrap naturally. */
@media(max-width:600px){
  .service-grid,.catalog-cards,.journal-grid,.blog-grid,.principle-grid,.process-grid,.next-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .service-card,.catalog-card{min-width:0;min-height:0;padding:16px;border-radius:14px}
  .service-card .service-card-top{gap:8px;margin-bottom:16px}
  .service-card .icon-badge{width:36px;height:36px;border-radius:10px}
  .service-card .icon-badge .icon{width:20px;height:20px}
  .service-card .service-code{font-size:10px;letter-spacing:0}
  .service-card h3,.catalog-card h3{font-size:16px;line-height:22px;letter-spacing:-.3px;margin-bottom:12px;overflow-wrap:anywhere}
  .service-card>p{font-size:13px;line-height:20px;margin-bottom:16px}
  .service-card .service-points{gap:7px;margin-bottom:20px}
  .service-card .service-points li{gap:6px;font-size:12px;line-height:18px;overflow-wrap:anywhere}
  .service-card .service-points li>span{min-width:0}
  .service-card .service-points .icon{width:12px;height:16px}
  .service-card>.text-link{gap:6px;font-size:12px;line-height:18px;min-height:44px;padding-block:8px}
  .service-help .button{max-width:100%;min-height:44px;padding:10px 8px;font-size:12px;line-height:18px;gap:6px;white-space:normal;text-align:center}
  .services-section .section-intro{margin-bottom:32px}
  .services-section .section-intro h2{font-size:28px;line-height:36px}
  /* A single scrollable row keeps the category names intact. */
  .service-tabs{display:flex;justify-content:flex-start;flex-wrap:nowrap;width:100%;max-width:100%;padding:5px;gap:4px;margin-bottom:28px;border-radius:100px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;scroll-padding-inline:5px}
  .service-tabs::-webkit-scrollbar,.journal-filters::-webkit-scrollbar{display:none}
  .service-tabs button{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:12px 16px;font-size:12px;line-height:18px;border-radius:100px}
  .journal-filters{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;gap:4px;padding-bottom:4px}
  .journal-filters a{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:12px 14px;font-size:12px;line-height:20px}
  /* The mobile tax table becomes the same two-column card list. */
  .tax-table-wrap{padding:0;border:0;background:transparent;overflow:visible}
  .tax-table,.tax-table tbody{display:block}
  .tax-table tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .tax-table tr{display:flex;flex-direction:column;gap:0;min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:14px}
  .tax-table td{padding:0;margin-bottom:12px;min-width:0;font-size:12px;line-height:18px;overflow-wrap:anywhere}
  .tax-table td:first-child{align-self:flex-start;font-size:10px}
  .tax-table td:nth-child(3){padding-top:0}
  .tax-table td:last-child{margin-top:auto;margin-bottom:0}
  .tax-name{font-size:15px;line-height:21px}
  .tax-name .icon-badge{display:none}
  .tax-frequency{font-size:12px;line-height:18px;gap:6px}
  .tax-frequency .icon{width:14px;height:14px}
  .tax-table .text-link{white-space:normal;min-height:44px;font-size:12px;line-height:18px;gap:6px}
  /* Editorial copy uses the full content width. */
  .story-image{min-height:0;aspect-ratio:1/1}
  .mission-vision{grid-template-columns:1fr}
  .mission-card{min-height:0;padding:24px}
  .mission-card h2{font-size:26px;line-height:34px}
  .mission-card>p:last-child{margin-top:0}
  .principle-card,.process-card,.next-card{min-width:0;min-height:0;padding:18px;border-radius:16px}
  .principle-card .icon-badge,.next-card .icon-badge{width:36px;height:36px}
  .principle-card .icon-badge{margin-bottom:16px}
  .principle-card h3,.next-card h3{font-size:17px;line-height:23px;margin-bottom:12px;overflow-wrap:anywhere}
  .principle-card p,.process-card p,.next-card p{font-size:13px;line-height:20px}
  .process-card .step-number{width:32px;height:32px;font-size:12px;margin-bottom:16px}
  .process-card h3{font-size:16px;line-height:22px;margin-bottom:12px}
  .next-card-top{margin-bottom:18px;gap:8px}
  .next-card-top strong{font-size:28px}
  .next-grid>.next-card:last-child:nth-child(odd){grid-column:1/-1}
  .team-grid{gap:24px 12px}
  .office-map iframe{height:260px}
  .location-details{font-size:14px;line-height:22px}
  .location-details>a{display:inline-flex;align-items:center;min-height:44px}
  /* Article lists share the compact grid; featured stories remain a full-width lead. */
  .journal-intro h1{font-size:32px;line-height:38px}
  .journal-featured{min-height:0;margin-bottom:56px;border-radius:20px}
  .journal-featured-image{min-height:0;aspect-ratio:16/10}
  .journal-featured-copy{padding:24px 20px}
  .journal-featured h2{font-size:24px;line-height:32px;letter-spacing:-.7px}
  .journal-featured .featured-excerpt{font-size:14px;line-height:22px}
  .journal-card{min-width:0;border-radius:14px}
  .journal-card-copy{padding:14px}
  .journal-card-meta{gap:4px;font-size:11px;line-height:16px;margin-bottom:10px}
  .journal-card h3{font-size:15px;line-height:21px;letter-spacing:-.3px;margin-bottom:10px;overflow-wrap:anywhere}
  .journal-card-excerpt{font-size:12px;line-height:18px;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .journal-card-copy>.text-link{min-height:44px;font-size:12px;line-height:18px;gap:6px}
  .article-related .journal-grid>.journal-card:last-child:nth-child(odd){grid-column:auto;max-width:none;justify-self:stretch}
  .blog-grid .blog-featured{grid-column:1/-1}
  /* Only phones show three Home articles; desktop retains its four-card layout. */
  .home-main .blog-grid,.home-main .blog-grid.has-one{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-main .blog-grid>.blog-card:nth-child(n+4){display:none}
  .blog-compact{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:0;overflow:hidden;border-radius:14px}
  .blog-compact .blog-image{width:100%;height:auto;aspect-ratio:16/10}
  .blog-compact .blog-image img{width:100%;height:100%;object-fit:cover}
  .blog-compact .blog-card-body{padding:14px}
  .blog-compact h3{font-size:15px;line-height:21px;margin-bottom:0}
  .journal-pagination a,.journal-pagination span.page-numbers{min-width:44px;height:44px}
  .article-heading h1{font-size:32px;line-height:38px}
  .article-share{align-self:flex-start}
  .share-button{min-width:44px;min-height:44px}
  .article-cover{height:auto;aspect-ratio:16/10;margin-bottom:32px}
}
@media(max-width:360px){
  .service-card,.catalog-card,.tax-table tr{padding:12px}
  .service-card h3,.catalog-card h3{font-size:15px;line-height:21px}
  .service-card .service-code{font-size:9px}
  .principle-card,.process-card,.next-card{padding:14px}
  .journal-card-copy{padding:12px}
}

/* Shared mobile header dimensions; the floating state sits closer to the screen edge. */
@media(max-width:850px){
  body,body.has-hero{--header-frame-x:36px;--header-frame-y:36px;--header-sticky-y:8px}
  body .site-header,
  body.has-hero .site-header,
  body .site-header.header-is-floating,
  body.has-hero .site-header.header-is-floating{
    box-sizing:border-box;width:auto;max-width:none;height:64px;min-height:64px;
    padding:10px 16px;gap:12px;border:0;border-radius:16px;
  }
  body .site-header{position:relative;inset:auto;margin:var(--header-frame-y) var(--header-frame-x)}
  body.has-hero .site-header{position:absolute;inset:calc(var(--header-frame-y) + var(--wp-admin--admin-bar--height,0px)) var(--header-frame-x) auto;margin:0}
  body .site-header.header-is-floating,
  body.has-hero .site-header.header-is-floating{position:fixed;inset:calc(var(--header-sticky-y) + var(--wp-admin--admin-bar--height,0px)) var(--header-frame-x) auto;margin:0}
  .site-header .site-brand{font-size:21px;line-height:1.2}
  .site-header .custom-logo-link{display:flex;align-items:center;max-width:calc(100% - 56px)}
  .site-header .custom-logo{width:auto;height:auto;max-width:160px;max-height:32px;object-fit:contain}
  .site-header .menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:0 0 44px;width:44px;height:44px;margin:0 0 0 auto;padding:10px}
  .site-header .menu-toggle>span:not(.screen-reader-text){flex:0 0 2px;width:22px;height:2px;margin:0}
  .site-header .header-cta{display:none}
}
@media(max-width:520px){
  body,body.has-hero{--header-frame-x:28px;--header-frame-y:28px}
}

/* WordPress' mobile admin bar scrolls away instead of remaining fixed. */
@media(max-width:600px){
  body.admin-bar .site-header.header-is-floating,
  body.admin-bar.has-hero .site-header.header-is-floating{top:var(--header-sticky-y)}
}


