/* Screen-only responsive layer; print layouts and exports remain unchanged. */
@media screen {
  *,*::before,*::after{box-sizing:border-box}
  main,header,footer,article,section,form,.grid>*,.kitgrid>*,.hero>*,.actions>*{min-width:0}
  img,svg,video{max-width:100%}
  input,select,textarea{min-width:0;max-width:100%}
  .scroll,.sr-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}
  .sr-table-scroll:focus-visible{outline:3px solid #087477;outline-offset:2px}
  .sr-table-hint{font-size:13px;color:#526978;margin:6px 0}
  .sr-mobile-toggle{display:none}
  @media(max-width:900px){
    .category-tabs{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;scroll-padding-inline:16px}
    .category-tabs a{flex:none;min-height:44px}
    .grid,.regional-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
    .hero,.premium-home .hero{gap:20px;padding:32px 24px}
    .hero h1,.premium-home .hero h1{font-size:clamp(32px,6vw,54px)}
    header nav{gap:8px 14px}
  }
  @media(max-width:600px){
    header,main,footer{padding-inline:clamp(12px,4vw,20px)}
    header{gap:8px;flex-wrap:wrap}
    header>nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
    header>nav a{padding:10px 12px;text-align:left;min-height:44px;background:#f1f7f7;border-radius:8px;font-size:14px}
    .sr-mobile-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 14px;background:#142b45;color:white;border:0;border-radius:9px;font:600 15px system-ui}
    header>nav[hidden]{display:none!important}
    .hero,.premium-home .hero,.category-page .category-hero,.category-hero{padding:24px 18px;border-radius:18px;grid-template-columns:minmax(0,1fr)}
    .hero h1,.premium-home .hero h1{font-size:clamp(32px,8vw,44px);letter-spacing:-.045em}
    .hero p{font-size:16px}.hero-art{display:none}
    .hero-links{gap:8px}.hero-links a,.sr-browse{min-height:44px;display:inline-flex;align-items:center}
    .sr-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.sr-filters button{width:100%}
    .grid,.featured-grid,#categories,.flagship-grid,.companion-grid,.regional-grid,.sr-result-grid{grid-template-columns:minmax(0,1fr)}
    .card,.feature,.flagship-card,article,section.panel,main>section:not(.panel){padding:16px;min-height:0}
    .kit-index{padding:14px}.section-heading{align-items:flex-start;flex-direction:column}
    .actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
    .actions button,.actions .btn,.actions a,.sr-start{width:100%;margin:0;text-align:center;min-height:48px;display:flex;align-items:center;justify-content:center}
    button,input,select,textarea{font-size:16px!important;min-height:44px}
    button{max-width:100%;white-space:normal}
    input[type=checkbox],input[type=radio]{width:22px;min-height:22px;vertical-align:middle}
    h1,h2,h3,p,li,label,output{overflow-wrap:anywhere}
    .trust{justify-content:flex-start;gap:8px 16px}
    .regional{margin-inline:12px}.regional summary,summary{padding-block:10px}
    #sr-report-preview{max-height:85vh;max-height:85dvh;width:calc(100% - 20px)}
    .sr-report-controls>*{flex:1 1 120px}.sr-report-content{padding:12px}
  }
}
/* V65: keep long contact links within narrow screens. */
@media screen { main a[href^="mailto:"] { overflow-wrap:anywhere; word-break:break-word; } }

/* Financial calculator actions: consistent touch targets. */
@media screen and (max-width: 600px) {
 form[data-finance] > button { display:block; width:100%; min-height:48px; margin:12px 0 0; text-align:center; white-space:normal; }
 form[data-finance] > output:empty { display:none; }
 form[data-finance] > p[role="status"]:empty { display:none; }
}

/* V88: desktop financial action spacing; mobile layout unchanged. */
@media screen and (min-width: 601px) {
 form[data-finance] > button { margin: 12px 12px 0 0; min-height:48px; }
 form[data-finance] > p[role="status"]:empty { display:none; }
 form[data-finance] > output:empty { display:none; }
}
