/* KnownStock public CSS. Canonical public-components-v3 source.
   Sections retain the approved cascade order; archived versioned files remain unchanged.
   Maintain these sections together for future releases. */

/* public-harmony-v1.css */
/* Shared public typography and text links. Keep the application scope separate. */
:root{--ks-public-title:clamp(2rem,3.8vw,3.25rem);--ks-public-section-title:clamp(1.65rem,2.6vw,2.4rem)}

/* Match the compact headers already used by the task and learning pages. */
body[data-page] main :is(.hero-copy,.pilot-copy,.assurance-copy,.task-copy,.learning-copy,.video-copy) h1,
body[data-page] main :is(.legal-hero,.support-hero) h1,
body[data-page="share"] main h1{font-size:var(--ks-public-title);line-height:1.12;letter-spacing:-.035em;overflow-wrap:break-word;text-wrap:balance}
.hero-copy h1,.legal-hero h1,.support-hero h1{max-width:24ch}
body[data-page="home"] main .home-photo-copy h1{max-width:16ch;font-size:clamp(2.2rem,4.2vw,3.5rem);line-height:1.1;letter-spacing:-.04em}
.editorial-hero .hero-intro{font-size:1.06rem;line-height:1.65}

/* Small headings inside cards and product examples retain their own hierarchy. */
.content-section .narrow>h2,.related-band h2,.faq-section h2,.pricing-section h2,.download-card h2,.preview-layout h2,
.support-section-head h2,.support-guidance-copy h2,.support-form-copy h2{max-width:30ch;font-size:var(--ks-public-section-title);line-height:1.2;letter-spacing:-.025em}
.final-cta h2{max-width:28ch;font-size:clamp(1.85rem,3vw,2.65rem);line-height:1.16;letter-spacing:-.03em}
.section-pad{padding:clamp(2.75rem,5vw,4.5rem) 0}
.editorial-hero{padding:clamp(2rem,4vw,3.75rem) 0}

/* Inline links have a visible shape and weight as well as a colour cue. */
body[data-page] a:any-link,
body[data-page] a:any-link:is(:hover,:focus-visible,:active){text-decoration:none!important}
:is(.content-section,.manual-content,.legal-identity,.support-contact-note,.support-safety-panel) :is(p,li,dd) a:not(.btn),
.support-consent a,.support-form-note a,.cookie-notice p a,.cookie-dialog p a{
  padding:.05em .25em;border-radius:.25em;background:var(--ks-mint);color:var(--ks-green-dark);font-weight:750;
  box-decoration-break:clone;-webkit-box-decoration-break:clone;overflow-wrap:anywhere;
}
:is(.content-section,.manual-content,.legal-identity,.support-contact-note,.support-safety-panel) :is(p,li,dd) a:not(.btn):hover,
.support-consent a:hover,.support-form-note a:hover,.cookie-notice p a:hover,.cookie-dialog p a:hover{background:#c6ded4;color:var(--ks-green-dark)}
.deletion-text-link{width:fit-content;max-width:100%;padding:.45rem .7rem;border:1px solid #9fbcb0;border-radius:.55rem;background:var(--ks-paper);color:var(--ks-green-dark)}
.deletion-text-link:hover{background:#c6ded4;border-color:#658c7c}
body[data-page] a:focus-visible{outline:3px solid var(--ks-amber);outline-offset:4px}

@media(max-width:640px){
  :root{--ks-public-title:clamp(1.95rem,7.5vw,2.45rem);--ks-public-section-title:clamp(1.5rem,5.6vw,1.9rem)}
  body[data-page="home"] main .home-photo-copy h1{font-size:clamp(2rem,8vw,2.6rem)}
  .final-cta h2{font-size:clamp(1.65rem,6vw,2rem)}
}

/* public-components-v1.css */
/* One public control and navigation system, shared by every language. */
body[data-page] :is(main,.cookie-notice,.cookie-dialog) .btn:not(.btn-share-icon),
body[data-page] main .hero-actions .btn:not(.btn-share-icon){
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  max-width:100%;min-height:2.75rem;padding:.75rem 1.05rem;border-radius:999px;
  font-size:.95rem;font-weight:800;line-height:1.4;white-space:normal;text-align:center;
}
body[data-page] .btn-primary{background:var(--ks-green);border-color:var(--ks-green);color:#fff}
body[data-page] .btn-primary:is(:hover,:focus-visible){background:var(--ks-green-dark);border-color:var(--ks-green-dark);color:#fff}
body[data-page] .btn-quiet{background:var(--ks-paper);border-color:#b8c2b9;color:var(--ks-green-dark)}
body[data-page] .btn-quiet:is(:hover,:focus-visible){background:var(--ks-mint);border-color:#72988a;color:var(--ks-green-dark)}
body[data-page] .btn:focus-visible,body[data-page] .nav-toggle:focus-visible{outline:3px solid var(--ks-amber);outline-offset:4px}
body[data-page] .btn:disabled{opacity:.55;cursor:not-allowed}

.site-header .nav-shell{min-height:4.8rem;gap:clamp(.75rem,1.5vw,1.35rem)}
.site-header .brand{flex-shrink:0}
.site-header .site-links{gap:clamp(.7rem,1.2vw,1.1rem)}
.site-header .site-action-cluster{gap:.65rem;align-items:center}
.site-header .site-action-cluster>.language-selector{flex:0 0 auto}
.site-header .btn:not(.btn-share-icon){display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.6rem 1rem;font-size:.85rem;line-height:1.4;white-space:normal;text-align:center}
.site-header .btn-share-icon{display:inline-grid;place-items:center;width:2.75rem;height:2.75rem;padding:0}
.site-header .btn-share-icon svg{display:block}
.site-header .language-selector summary{min-height:2.75rem}
.site-header .nav-toggle{min-height:2.75rem;line-height:1.4}

.site-footer .footer-grid{align-items:start;gap:2rem}
.site-footer .brand{align-items:flex-start;max-width:100%}
.site-footer .brand img{flex:0 0 auto}
.site-footer .brand span{min-width:0}
.site-footer .brand small{max-width:29ch;margin-top:.35rem;font-size:.76rem;font-weight:650;line-height:1.5;white-space:normal}
.site-footer .footer-grid nav{gap:.25rem;min-width:0}
.site-footer .footer-grid nav h2{font-size:.76rem;line-height:1.5;letter-spacing:.1em}
.site-footer .footer-grid nav :is(a,.footer-share-link,.cookie-settings-link){
  display:inline-flex;align-items:center;min-height:2rem;margin:0;padding:.15rem 0;
  font-family:inherit;font-size:.9rem;font-weight:500;line-height:1.5;text-align:left;overflow-wrap:anywhere;
}
.site-footer .footer-note{font-size:.8rem;line-height:1.6}

@media(max-width:1100px){
  .site-header .site-action-cluster{display:grid;grid-template-columns:minmax(0,1fr) auto auto}
  .site-header .site-action-cluster>.language-selector{align-self:center}
  .site-header .site-action-cluster .language-options{left:auto;right:0}
}
@media(max-width:640px){
  .site-footer .footer-grid{gap:1.75rem}
  .site-footer .footer-grid nav :is(a,.footer-share-link,.cookie-settings-link){min-height:2.5rem}
}

/* public-layout-v2.css */
/* Shared public form, card and spacing rules. Do not conceal layout overflow. */
:root{--ks-public-gutter:clamp(1rem,3vw,1.5rem);--ks-public-gap:clamp(1rem,2vw,1.5rem);--ks-public-card-pad:clamp(1.25rem,2.4vw,1.75rem);--ks-public-section-space:clamp(2.75rem,5vw,4.5rem);--ks-public-topic-space:clamp(1.75rem,3vw,2.5rem)}
body[data-page] .container{width:min(calc(100% - 2 * var(--ks-public-gutter)),76rem);margin-inline:auto}
main :is(h1,h2,h3,p,li,dt,dd,label,figcaption){overflow-wrap:anywhere}
main :is(h1,h2,h3){hyphens:auto}
main :is(.hero-layout,.preview-layout,.pilot-layout,.assurance-layout,.manual-layout,.support-form-layout,.support-guidance-grid,.support-section-head,.download-card)>*,
main :is(.card-grid,.pricing-grid,.related-grid,.support-path-grid,.support-install-grid,.support-form-grid)>*{min-width:0}

/* Identical spacing primitives, with compact task headers kept intact. */
.section-pad,.resource-video{padding-block:var(--ks-public-section-space)}
.support-form-integrated{margin-top:var(--ks-public-section-space);padding-top:var(--ks-public-section-space)}
.manual-topic{padding-bottom:var(--ks-public-topic-space)}
.manual-topic+.manual-topic{padding-top:var(--ks-public-topic-space)}
.card-grid,.pricing-grid,.related-grid,.support-path-grid,.support-install-grid{gap:var(--ks-public-gap)}
.card-grid,.related-grid{margin-top:1.75rem}

/* Shared card geometry; colours and emphasis still describe each card's role. */
body[data-page] main :is(.card-grid article,.price-card,.support-path-card,.support-install-card,.deletion-card,.legal-identity,.support-safety-panel)[class]{padding:var(--ks-public-card-pad);border-radius:1rem}
.card-grid article,.support-path-card,.support-install-card{border-color:var(--ks-line);box-shadow:0 12px 35px rgba(20,34,31,.04)}
.card-grid h3,.support-path-card h3,.support-install-card h3{margin:0 0 .75rem;font-size:1.25rem;line-height:1.35;letter-spacing:-.02em}
.card-grid p:not(.card-kicker){margin:0 0 1rem}
.card-grid .card-kicker{margin-bottom:.6rem}
.card-grid a,.related-grid a,.support-path-card strong,.support-install-card strong{overflow-wrap:anywhere}
.support-path-card strong,.support-install-card strong{padding-top:1rem}
.support-path-card:last-child,.support-install-grid li:last-child{grid-column:auto}
.related-grid a{padding:1.25rem;border-radius:1rem;min-width:0}
.pilot-flow :is(li,strong,p),.pilot-facts :is(dt,dd){min-width:0;overflow-wrap:anywhere;hyphens:auto}
.table-wrap{max-width:100%;overscroll-behavior-inline:contain}
.resource-youtube{width:100%;min-width:0;min-height:0}
.resource-youtube img,.resource-youtube iframe{width:100%;height:100%;min-height:0}
.manual-content [data-manual-resource-help] p a{display:inline-block;max-width:100%;margin-block:.15em;padding:.15em .4em;vertical-align:middle}

/* Text controls share size, labels and focus treatment without altering checks. */
body[data-page] :is(.support-form,.signup-card,.manual-search){padding:var(--ks-public-card-pad);border-radius:1rem}
.support-field,.signup-card label,.manual-search label,.support-consent>*{min-width:0}
.support-field{display:flex;flex-direction:column;align-items:stretch}
.support-field>input,.support-field>select{flex:0 0 auto;margin-top:auto}
body[data-page] :is(.support-field input,.support-field select,.signup-card input,.manual-search input){height:3rem}
body[data-page] :is(.support-field input,.support-field select,.support-field textarea,.signup-card input,.manual-search input){
  min-width:0;max-width:100%;width:100%;min-height:3rem;padding:.65rem .85rem;
  border:1px solid #91a49e;border-radius:.6rem;background:#fff;color:var(--ks-ink);
  font:inherit;font-size:1rem;line-height:1.5;
}
body[data-page] :is(.support-field input,.support-field select,.support-field textarea,.signup-card input,.manual-search input):focus-visible{border-color:var(--ks-green);outline:3px solid var(--ks-amber);outline-offset:3px;box-shadow:none}
.support-field textarea{min-height:11rem;resize:vertical}
.support-field>span,.signup-card label{line-height:1.5}
.support-field small,.manual-search label span{font-size:.85rem;line-height:1.5}
.support-form-grid{gap:1rem}
.support-request-shell{padding:clamp(1.25rem,3vw,2.5rem);border-radius:1.25rem}

@media(max-width:1000px){
  .card-grid,.support-path-grid,.support-install-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  .site-header .site-links{max-height:calc(100vh - 4.8rem);max-height:calc(100dvh - 4.8rem);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:900px){
  .pilot-layout,.assurance-layout{grid-template-columns:minmax(0,1fr);gap:var(--ks-public-gap)}
  .pilot-visual,.assurance-visual,.assurance-controls{width:100%;max-width:none}
  .pilot-hero[data-pilot="parts"] .pilot-visual img{aspect-ratio:1.65/1}
}
@media(max-width:700px){
  .card-grid,.support-path-grid,.support-install-grid,.related-grid{grid-template-columns:minmax(0,1fr)}
  .support-form-grid{grid-template-columns:minmax(0,1fr)}
  .support-field-wide{grid-column:auto}
  .manual-search>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .manual-search input{grid-column:1/-1}
  .manual-search>div>.btn{min-width:0;width:100%}
  .support-form .btn{width:100%}
  .table-wrap{margin-inline:0;border-radius:1rem}
}
@media(max-width:360px){
  .support-install-card{grid-template-columns:minmax(0,1fr)}
}
