/* Phone layout only. Desktop keeps the existing rules and dimensions. */
.mobile-dock{display:none}
@media(max-width:740px){
  :root{--mobile-gutter:16px}
  html{scroll-padding-top:80px}
  body{font-size:15px;line-height:1.75;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  .wrap{width:calc(100% - 32px)}
  .head{min-height:64px;gap:12px;flex-wrap:wrap}
  .brand{gap:8px}.brand img{width:72px;height:auto}.brand>span{display:block;border:0;padding:0;font-size:10px;letter-spacing:1.8px}.brand span span{display:none}
  #menu{min-width:64px;min-height:40px;padding:7px 12px;border-radius:20px;background:#fff;font-size:12px}
  #nav.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 0 14px}
  #nav a{min-height:44px;padding:9px 13px;background:#f1f5ed;border-radius:9px;font-size:14px}
  .toolbox-nav{display:flex;width:auto;padding:0;gap:0;font-size:12px}
  .toolbox-nav a{padding:9px 12px;border:1px solid var(--line);border-radius:20px}
  .shared-status{min-height:30px;padding:7px 1px 2px;font-size:11px;align-items:center}
  .shared-status button{padding:6px 0;min-height:32px;font-size:11px}
  .top-ad{margin-top:6px;margin-bottom:0;border-radius:14px;box-shadow:0 4px 18px #243f3210}
  .top-ad>a{display:block;min-height:0;padding:0}
  .top-ad img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:contain;background:#eff3ec}
  .top-ad>a>div{padding:10px 14px 0}
  .top-ad>a>div:has(#ad-title[hidden]):has(#ad-description[hidden]){display:none}
  .top-ad h2{font-size:16px;line-height:1.5;letter-spacing:0;margin:0;font-weight:650}
  .top-ad p{font-size:13px;line-height:1.65;margin:5px 0 0}
  .ad-controls{position:static;display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:8px 12px 10px;font-size:12px}
  .ad-controls button{width:36px;height:36px;background:#f5f7f2;font-size:16px}
  .ad-controls #ad-pause{min-width:48px;min-height:36px;font-size:12px}
  .intro-strip{display:none}
  .catalog-section,.resource-section{padding:30px 0}
  .section-heading{gap:15px;margin-bottom:18px}
  .section-heading .eyebrow{display:none}
  .section-heading h2{font-size:23px;line-height:1.4;letter-spacing:-.4px;margin:0 0 8px}
  .section-heading p{font-size:13px;line-height:1.65}
  .tab-group{gap:8px}.tab-group button{min-height:40px;padding:7px 14px;font-size:13px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .product-card{border-radius:14px;box-shadow:0 4px 16px #243f3208}
  .product-card:only-child{grid-column:1/-1}
  .product-card img{aspect-ratio:1;object-fit:contain;background:#edf2e7}
  .card-copy{padding:16px;gap:9px}
  .card-copy .eyebrow{font-size:10px;letter-spacing:1px}
  .card-copy h3{font-size:18px;line-height:1.45}
  .card-copy p{font-size:13px;line-height:1.75;overflow-wrap:anywhere}
  .card-copy a{min-height:44px;display:flex;align-items:center;padding-top:5px;font-size:14px}
  .product-card:only-child h3{font-size:22px}.product-card:only-child .card-copy{padding:18px}
  .product-card:only-child .card-copy p{font-size:14px}
  .resource-layout{grid-template-columns:minmax(0,1fr);gap:8px}
  .resource-layout>aside{min-width:0}
  #filters{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:8px;padding-bottom:7px;scrollbar-width:none;overscroll-behavior-x:contain}
  #filters::-webkit-scrollbar{display:none}
  #filters button{flex:none;min-height:40px;padding:7px 13px;white-space:nowrap;border-radius:20px;font-size:13px}
  #filters button span{font-size:13px;opacity:1}
  .search-row{position:sticky;top:64px;z-index:4;padding:7px 0;background:var(--paper)}
  .search{min-height:48px;border-radius:12px;padding:9px 14px}
  .search input{font-size:16px}.search>span{font-size:24px}
  .search:focus-within{border-color:#6c8762;box-shadow:0 0 0 3px #e0e9d9}
  .search input:focus-visible{outline:none}
  .list-heading{margin:14px 0 12px}.list-heading h3{font-size:16px}.list-heading p{font-size:12px}
  .resource-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .resource-card{min-height:0;padding:17px 18px;border-radius:12px}
  .card-top{margin-bottom:10px}.file-icon{width:30px;height:34px;font-size:10px}.tag{font-size:11px}
  .resource-card h3{font-size:16px;line-height:1.55;margin-bottom:12px}
  .resource-card a{min-height:42px;padding-top:10px;font-size:13px}
  .resource-footnote{font-size:12px;line-height:1.75;padding-top:18px}
  .article-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .article-card{min-height:0;border-radius:12px}.article-card h3{font-size:19px}.article-card p{font-size:14px}
  .detail-wrap{padding-top:18px;padding-bottom:30px}
  .breadcrumbs{flex-wrap:nowrap;gap:7px;font-size:11px;white-space:nowrap;overflow:hidden;margin-bottom:18px}
  .breadcrumbs>span:last-child{overflow:hidden;text-overflow:ellipsis;min-width:0}
  .detail-heading h1,.detail-wrap>h1{font-size:27px;line-height:1.35;letter-spacing:-.7px;margin:9px 0 12px}
  .detail-heading .eyebrow{font-size:11px;letter-spacing:1px}
  .detail-summary{font-size:14px;line-height:1.8;margin-bottom:22px;overflow-wrap:anywhere}
  .detail-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .detail-content{padding:20px;border-radius:14px}
  .detail-content p{font-size:15px;line-height:1.9;margin-bottom:18px}
  .detail-content h2{font-size:21px;margin-top:28px;padding-top:16px;margin-bottom:12px}
  .detail-content>h2:first-child{margin-top:0;padding-top:0;border-top:0}
  .detail-cover{max-height:300px;margin-bottom:20px}
  body[data-content-module="products"] .detail-content{padding:0;border:0;background:transparent}
  .product-media{margin-bottom:16px}
  .product-image-link,.product-media img{border-radius:11px}
  .product-media img{background:#e9eee4}
  .product-media figcaption{font-size:11px;line-height:1.6;margin-top:7px;color:#5d6e64;padding:0 2px}
  .detail-side{padding:19px 20px;border:1px solid #dce6d6;border-radius:14px}
  .detail-side h2{font-size:19px;margin-bottom:10px}
  .detail-side li{font-size:13px;line-height:1.7}
  .detail-side>a:not(.button){display:block;font-size:13px;min-height:40px;padding:9px 0}
  .detail-side .button,.detail-content .button{width:100%;min-height:49px;justify-content:center;gap:12px;font-size:14px;border-radius:10px}
  body[data-content-module="downloads"] .detail-side{order:-1;display:flex;flex-direction:column}
  body[data-content-module="downloads"] .detail-side h2{order:0}
  body[data-content-module="downloads"] .detail-side .primary,body[data-content-module="downloads"] .detail-side .access-note{order:1}
  body[data-content-module="downloads"] .detail-side ul{order:2;margin-top:12px}
  body[data-content-module="downloads"] .detail-side>a:not(.primary){order:3}
  .access-note{font-size:14px;line-height:1.8;margin-top:8px}.source-note{font-size:12px;line-height:1.8;margin-top:22px}
  .guide-section{padding:28px 0}.guide-grid{gap:22px}.guide-grid h3{font-size:18px}.guide-grid p{font-size:14px}
  .guide-grid .text-link{min-height:40px;font-size:13px}
  .support{padding:28px 0}.support h2{font-size:22px}.support p{font-size:14px}
  .button{min-height:46px;font-size:14px;border-radius:10px}
  footer{padding:25px 0;font-size:12px}.footer-brand img{width:105px}.footer-top{gap:16px;margin-bottom:20px}
  .footer-bottom{font-size:11px;gap:12px;align-items:center}
  .mobile-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;width:100%;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));gap:6px;z-index:20;background:#fffffff5;border-top:1px solid #dce3da;box-shadow:0 -5px 20px #233b3008;backdrop-filter:blur(14px);margin:0}
  .mobile-dock a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 2px;font-size:13px;font-weight:600;border-radius:11px;color:#63726c}
  .mobile-dock a[aria-current]{color:#223e33;background:#eaf0e4}
}
@media(min-width:420px) and (max-width:740px){.card-copy h3{font-size:19px}.product-card:only-child h3{font-size:23px}.detail-heading h1{font-size:29px}}
