/* Phone and small-tablet refinements. The approved desktop layout stays in reference.css. */
@media (max-width:760px){
  html{scroll-padding-top:64px}
  .wrap{width:calc(100% - 40px)}
  .site-header,.header-inner{min-height:64px}
  .site-header{background:var(--paper)}
  .brand{gap:8px;font-size:23px}
  .brand img{width:34px;height:34px}
  .nav-toggle{border-color:#cbd1cf}
  .js .nav-open .site-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;padding:8px 0 16px}
  .site-nav a{min-height:46px;padding:10px 12px;border-radius:7px;background:#eeeee8;font-size:15px}
  .site-nav a[aria-current=page]:after{display:none}
  .site-nav a[aria-label="Search all features"]{grid-column:1/-1;gap:12px}
  .site-nav a[aria-label="Search all features"]:after{content:"Search all features";position:static;width:auto;height:auto;background:none}
  .hero-grid{gap:28px;padding-block:30px 34px}
  .hero .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:18px}
  .hero h1{font-size:clamp(37px,10.4vw,51px);line-height:1.07;letter-spacing:-.055em}
  .hero-copy>p{font-size:16px;line-height:1.7;margin-top:21px;max-width:470px}
  .hero-actions{gap:10px;margin-top:24px}
  .hero-actions .button{min-height:46px;padding:12px 15px;font-size:14px;gap:9px}
  .hero-actions .button .arrow{width:17px;height:17px}
  .hero-actions .desktop-label{display:none}
  .hero-actions .mobile-label{display:inline}
  .hero-meta{gap:5px 14px;font-size:11px;margin-top:21px;line-height:1.7}
  .hero-meta span:before{margin-right:7px}
  .hero-art{min-height:0;max-width:390px;flex-direction:column;gap:14px;padding-top:8px}
  .hero .device{max-width:176px;width:51%;border-width:4px;border-radius:27px}
  .hero-caption{display:none}
  .hero-art .orbit-art{width:430px;height:430px;max-width:none}
  .hero-art .image-note{position:static;font-size:10px;letter-spacing:.07em;margin:0;z-index:2}
  .version-strip{padding:14px 20px;font-size:12px;line-height:1.65;gap:9px}
  .version-strip .inline-link{white-space:nowrap}
  .section{padding-block:54px}
  .eyebrow{font-size:10px;letter-spacing:.12em;margin-bottom:18px}
  h2{font-size:clamp(30px,8.2vw,39px);line-height:1.16}
  .section-heading{margin-bottom:27px}
  .section-heading p{font-size:16px;line-height:1.75;margin-top:18px}
  .door-grid{display:grid;grid-template-columns:1fr;gap:24px}
  .door{display:flex;flex-direction:column;gap:0;padding:25px 24px 0;border-radius:20px}
  .door .door-number{font-size:10px;letter-spacing:.12em;margin-bottom:17px}
  .door h3{font-size:30px;line-height:1.16}
  .door p{font-size:16px;line-height:1.7;margin-block:15px 13px}
  .door .text-link{min-height:44px;font-size:14px;margin-bottom:23px}
  .door .door-image{display:block;width:100%;height:360px;min-height:0;max-height:none;align-self:stretch;margin-top:auto;border-radius:15px 15px 0 0}
  .door .door-image img{width:100%;height:auto;min-width:0;max-width:100%;transform:none}
  .door.activity .door-image{display:flex;align-items:center;justify-content:center;padding:22px}
  .activity-words{grid-template-columns:1fr;gap:11px}
  .activity-words span{padding:13px 15px;font-size:16px;gap:13px;min-height:48px}
  .activity-words svg{width:21px;height:21px}
  .spotlight-grid,.split{gap:30px}
  .spotlight h2{font-size:clamp(35px,9.4vw,45px)}
  .spotlight p,.split p{font-size:16px;line-height:1.75;margin-top:20px}
  .spotlight-points{margin-block:22px 27px}
  .spotlight-points li{font-size:15px;line-height:1.65;align-items:flex-start}
  .spotlight-points svg{margin-top:3px}
  .spotlight-visual{max-height:390px;padding-top:18px}
  .spotlight-visual .device{max-width:225px}
  .personal-visual{max-height:390px;padding-top:28px}
  .personal-visual .device{max-width:225px}
  .mix-example{gap:8px;margin-block:23px}
  .mix-example span{font-size:12px;padding:9px 12px}
  .activity-grid{grid-template-columns:1fr;gap:0}
  .activity-row{padding:19px 0;gap:15px}
  .activity-row h3{font-size:21px;line-height:1.25}
  .activity-row p{font-size:14px;line-height:1.5;margin-top:5px}
  .activity-row .activity-icon{width:40px;height:40px}
  .activity-row .activity-icon svg{width:21px;height:21px}
  .activity-row:nth-last-child(2){border-bottom:0}
  .guide-grid{gap:30px}
  .guide-card .eyebrow{font-size:10px;margin-bottom:17px}
  .guide-card h3{font-size:25px;line-height:1.2}
  .guide-card p{font-size:15px;line-height:1.75;margin-top:14px}
  .guide-card .text-link{margin-top:18px}
  .search-callout{padding-block:38px}
  .search-callout .wrap{gap:22px}
  .search-callout h2{font-size:29px;line-height:1.2}
  input,select,textarea,.search-bar input,.source-select{font-size:16px}
  .search-bar{padding:5px 5px 5px 14px;gap:10px}
  .search-bar input{padding-block:11px}
  .search-bar button{min-width:44px;min-height:44px}
  .search-bar svg{width:19px;height:19px}
  .site-footer{padding-top:45px}
  .footer-grid{gap:30px}
  .footer-links a{min-height:44px;padding-block:9px}
  .footer-intro{font-size:14px;line-height:1.8}
  .footer-bottom{margin-top:32px;font-size:12px;line-height:1.8}
  .page-hero{padding-block:25px 29px}
  .breadcrumb{font-size:12px;gap:8px;line-height:1.6;margin-bottom:21px}
  .page-hero .eyebrow{font-size:10px;margin-bottom:17px}
  .page-hero h1{font-size:clamp(33px,9.1vw,43px);line-height:1.14}
  .page-hero .lede{font-size:16px;line-height:1.75;margin-top:19px}
  .page-tags{margin-top:20px}
  .catalogue{padding-top:27px;padding-bottom:55px}
  .search-controls{gap:15px}
  .source-select{min-height:52px;padding:12px 14px}
  .field-label{font-size:12px;margin-bottom:8px}
  .filter-count{margin-block:17px 22px;min-height:44px;font-size:13px}
  .clear-filter{font-size:13px;min-height:44px}
  .feature-grid{grid-template-columns:1fr;gap:12px}
  .feature-card{min-height:0;padding:22px}
  .feature-source{font-size:11px;line-height:1.6;letter-spacing:.08em;margin-bottom:11px;max-width:calc(100% - 16px)}
  .feature-card h2{font-size:24px;line-height:1.2}
  .feature-card p{font-size:15px;line-height:1.7;margin-top:11px}
  .feature-card>.arrow{right:19px;top:24px;width:16px;height:16px}
  .reference-layout{display:block;padding-top:23px;padding-bottom:55px}
  .reference-main{margin-top:27px}
  .toc{max-height:none;padding:16px;background:var(--paper);border:1px solid #cfd5d2;border-radius:10px;overflow:visible}
  .js .toc{position:sticky;top:64px;z-index:15;padding:0;box-shadow:0 5px 16px #0c192a0a}
  .js .toc-title{display:none}
  .js .toc-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:50px;width:100%;border:0;padding:13px 16px;background:transparent;color:var(--ink);font-size:15px;text-align:left;border-radius:10px}
  .toc-toggle span{font-size:23px;line-height:1;transition:transform .15s}
  .toc.is-open .toc-toggle span{transform:rotate(180deg)}
  .js .toc .toc-links{display:none}
  .js .toc.is-open .toc-links{display:grid;grid-template-columns:1fr;max-height:55vh;max-height:55svh;overflow:auto;overscroll-behavior:contain;padding:3px 16px 13px;border-top:1px solid var(--line);gap:0}
  .toc .toc-links a{font-size:15px;min-height:44px;line-height:1.6;padding:10px 0;border-bottom:1px solid #e1e4df}
  .toc .toc-links a:last-child{border-bottom:0}
  html:has(.toc){scroll-padding-top:126px}
  .reference-feature{padding-block:27px}
  .reference-feature h2{font-size:26px;line-height:1.2;gap:10px}
  .reference-feature p,.guide-article,.guide-topic .topic-body{font-size:16px;line-height:1.8}
  .reference-feature p{margin-top:16px}
  .start-panel{padding-bottom:28px}
  .start-panel h2{font-size:28px}
  .start-panel ol{font-size:16px;line-height:1.75;padding-left:21px}
  .context-note{padding:17px 18px;font-size:15px;line-height:1.8}
  .reference-guide{padding-top:30px}
  .reference-guide h2{font-size:28px;line-height:1.2}
  .guide-topic summary{font-size:17px;line-height:1.5;padding-block:19px;min-height:60px}
  .guide-topic .topic-body{padding-bottom:23px}
  .guide-article h2{font-size:28px;line-height:1.2;margin-block:35px 20px}
  .guide-article h3{font-size:22px;line-height:1.3}
  .guide-article .step{padding-block:25px}
  .app-sample{max-height:420px;padding:24px}
  .app-sample img{width:220px;max-width:100%}
  .related-links{gap:4px 18px;margin-top:28px}
  .related-links a{font-size:14px;min-height:46px}
  .guide-index{padding-block:30px 55px}
  .legal-main{padding-top:28px;padding-bottom:55px}
  .legal-main h1{font-size:35px;line-height:1.15}
  .legal-main h2{font-size:27px;line-height:1.2}
  .legal-main p,.legal-main li{font-size:16px;line-height:1.8}
  .legal-main input,.legal-main select,.legal-main textarea{font-size:16px}
}
@media (min-width:540px) and (max-width:760px){
  .hero-grid{max-width:600px}
  .hero .device{max-width:190px;width:42%}
  .door-grid{max-width:540px;margin-inline:auto}
  .door .door-image{height:350px}
  .feature-grid{grid-template-columns:1fr 1fr}
  .activity-grid{grid-template-columns:1fr 1fr;column-gap:25px}
  .activity-row h3{font-size:18px}
  .activity-row p{font-size:13px}
}
@media (max-width:350px){
  .wrap{width:calc(100% - 32px)}
  .hero-grid{padding-block:25px 29px;gap:24px}
  .hero h1{font-size:37px}
  .hero .eyebrow{font-size:9px;letter-spacing:.1em}
  .hero-actions{gap:8px}
  .hero-actions .button{padding:11px 10px;font-size:13px;gap:6px}
  .hero-meta{gap:5px 10px;font-size:10px}
  .hero .device{width:53%;border-radius:24px}
  .section{padding-block:45px}
  .door{padding:23px 20px 0}
  .door h3{font-size:28px}
  .door .door-image{height:320px}
  .door.activity .door-image{padding:18px}
  .activity-words span{padding:12px;font-size:15px}
  .activity-words svg{width:20px;height:20px}
  .page-hero h1{font-size:33px}
  .reference-feature h2{font-size:25px}
  .feature-card{padding:20px}
  .feature-card h2{font-size:23px}
  .footer-grid{gap:23px}
}
