/* components.css - styles of shared components. Generated pages link this after page CSS. Edit here only. */
summary i.tg{display:inline-flex!important;align-items:center;gap:10px;font-style:normal!important;font-family:var(--sans,inherit)!important;font-size:13.5px!important;font-weight:600!important;line-height:1!important;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;transform:none!important;color:#d6282b;align-self:center;flex:none;padding:7px 7px 7px 16px;border:1.5px solid #d6282b;border-radius:999px;background:#fff;transition:background .2s,color .2s,box-shadow .2s}
summary i.tg b{font-weight:600}
summary i.tg svg{width:24px;height:24px;padding:4px;border-radius:50%;background:#d6282b;color:#fff;stroke-width:2.4;box-sizing:border-box;transition:transform .25s ease,background .2s,color .2s}
summary i.tg .tg-l{display:none}
details[open]>summary i.tg .tg-m{display:none}
details[open]>summary i.tg .tg-l{display:inline}
details[open]>summary i.tg{background:#d6282b;color:#fff}
details[open]>summary i.tg svg{transform:rotate(180deg);background:#fff;color:#d6282b}
summary:hover i.tg{background:#d6282b;color:#fff;box-shadow:0 6px 16px -8px rgba(214,40,43,.6)}
summary:hover i.tg svg{background:#fff;color:#d6282b}
details[open]>summary:hover i.tg{background:#b81f22;border-color:#b81f22}
summary{cursor:pointer}
summary:focus-visible{outline:2px solid #d6282b;outline-offset:3px}
@media(max-width:560px){summary i.tg{padding:5px;gap:0}summary i.tg .tg-m,summary i.tg .tg-l{display:none!important}}
.tqc{background:#f4efe8;padding:112px 0}
.tqc .box{display:grid;grid-template-columns:1.15fr 1fr;gap:80px;align-items:center}
.tqc .eyebrow{color:var(--red-ink)}
.tqc h2{font-family:var(--serif);font-weight:600;font-size:clamp(34px,3.6vw,52px);line-height:1.08;letter-spacing:-.015em;margin-top:16px;color:#1b1917}
.tqc p{margin-top:22px;font-size:18px;color:#4a4540;max-width:600px;line-height:1.7}
.tqc ul{list-style:none;margin:30px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 28px;font-weight:500;font-size:16px;max-width:600px;color:#1b1917}
.tqc ul li{display:flex;gap:10px;align-items:center}
.tqc ul svg{width:18px;height:18px;color:#d6282b;flex:none}
.tqc .ccards{display:grid;gap:16px}
.tqc .ccard{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid #e3d9cd;border-radius:4px;padding:28px;color:#1b1917;text-decoration:none;transition:border-color .2s,box-shadow .2s}
.tqc .ccard:hover{border-color:#1b1917;box-shadow:0 20px 40px -30px rgba(30,24,18,.45)}
.tqc .ccard .l{display:flex;gap:18px;align-items:center}
.tqc .ccard .ic{width:52px;height:52px;border-radius:50%;background:#f4efe8;display:grid;place-items:center;flex:none}
.tqc .ccard .ic svg{width:24px;height:24px}
.tqc .ccard.w .ic{color:#1faa53}
.tqc .ccard small{display:block;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:#6b655f;font-weight:600}
.tqc .ccard b{display:block;font-family:var(--serif);font-weight:600;font-size:21px;margin-top:3px}
.tqc .ccard em{display:block;font-style:normal;font-size:16px;color:#4a4540;margin-top:4px}
.tqc .ccard>svg{width:22px;height:22px;flex:none;transition:transform .2s}
.tqc .ccard:hover>svg{transform:translateX(4px)}
@media(max-width:900px){.tqc{padding:72px 0}.tqc .box{grid-template-columns:1fr;gap:28px}.tqc ul{grid-template-columns:1fr}.tqc .ccard{padding:22px 20px}.tqc .ccard b{font-size:18.5px}.tqc .ccard em{word-break:break-word}}
h1,h2,h3,h4,.h2,.h3{text-wrap:balance}
p,li,figcaption,em{text-wrap:pretty}
.gaps>.gcol{min-width:0}
.gaps>.gcol img{max-width:100%}
.hrdl{display:block;margin-top:10px;font-size:13px;line-height:1.5;color:var(--faint,#8a837b);font-weight:500}
.hrdl a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.hrdl a:hover{color:var(--ink,#1b1917)}
.ls a.hr{font-size:13.5px;font-weight:500;color:var(--faint,#8a837b);padding:8px 0}
.ls a.hr:hover{color:var(--ink,#1b1917)}
.fthanks{padding:44px 40px;border:1px solid var(--line,#e2d9cd);background:#fff;border-radius:3px;outline:0}
.fthanks .ey{font:600 12px/1 Inter,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--red-ink);margin-bottom:14px}
.fthanks h3{font-family:var(--serif,Georgia,serif);font-size:34px;font-weight:500;margin:0 0 14px}
.fthanks p{margin:0 0 10px;color:var(--ink-2,#47423d)}
.fthanks a{color:inherit;text-decoration:underline}
@media(max-width:900px){.ct .wrap{grid-template-columns:1fr!important;gap:40px!important}.ct .wrap>.side{order:-1;min-width:0}.ct .wrap>.cform{min-width:0}.ct .fg{grid-template-columns:1fr!important;gap:18px!important}.ct .f,.ct .f.full{grid-column:auto!important;min-width:0}.ct input:not([type=checkbox]):not([type=radio]),.ct select,.ct textarea{width:100%!important;max-width:100%;font-size:16px;box-sizing:border-box}.cinfo a,.cinfo p{word-break:normal;overflow-wrap:anywhere}.cinfo a[href^="tel:"],.cinfo a[href^="mailto:"],.cinfo a[href*="wa.me"]{min-height:44px;display:flex;align-items:center}.co-hero .wrap>*{min-width:0}.co-hero h1{overflow-wrap:normal;word-break:normal;hyphens:none}.sibs.n1,.sibs.n2,.sibs{grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){.sibs.n1,.sibs.n2,.sibs{grid-template-columns:1fr!important}.pillars{grid-template-columns:1fr!important}}
/* ---- Category (family) pages /products/<family>/ : intro, family tabs, model cards ---- */
.cath{padding:0 0 104px}
.ftabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:30px}
.ftabs a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid #d6cdc1;border-radius:999px;background:#fff;font-size:15px;font-weight:500;color:var(--ink-2);transition:border-color .2s}
.ftabs a:hover{border-color:var(--ink)}
.ftabs a[aria-current=page]{background:var(--ink);border-color:var(--ink);color:#fff}
.cintro{text-align:center;max-width:840px;margin:56px auto 0}
.cintro h1{font-family:var(--serif);font-weight:600;font-size:clamp(36px,4.4vw,62px);line-height:1.08;letter-spacing:-.02em;margin-top:18px}
.cintro .lead2{margin:22px auto 0;max-width:740px}
.cmeta{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:64px;padding-bottom:10px;border-bottom:1px solid var(--line);font-size:15px;color:var(--faint)}
.cmeta a{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-weight:600;color:var(--ink)}
.cmeta a svg{width:16px;height:16px}
.sibs.cat{grid-template-columns:repeat(3,1fr);margin-top:32px}
.sb strong{font-family:var(--serif);font-weight:600;font-size:19px;line-height:1.3;margin-top:8px}
.sibs.cat .sb em{font-family:var(--sans);font-weight:400;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
@media(max-width:900px){.cath{padding-bottom:72px}.cintro{text-align:left;margin-top:28px}.cintro .lead2{margin-left:0}
 .ftabs{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;margin:18px calc(-1*var(--gutter)) 0;padding:0 var(--gutter) 2px;scrollbar-width:none}.ftabs::-webkit-scrollbar{display:none}.ftabs a{flex:none}
 .cmeta{margin-top:32px}.sibs.cat{grid-template-columns:1fr 1fr}}
/* tq-strip: lightweight auto-scrolling photo strip (component strip(), data/strips.json). No library; one CSS
   animation on the track; site.js 'strip' only toggles .paused (off-screen, mouse over, keyboard focus, touch-and-hold). Reduced motion: static row, scrolls by swipe. */
.tq-strip{position:relative;margin-top:48px}
.tq-strip-vp{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent)}
.tq-strip-track{display:flex;width:max-content;animation:tq-strip var(--strip-dur,60s) linear infinite}
.tq-strip.paused .tq-strip-track{animation-play-state:paused}
.tq-strip-vp:focus{outline:none}  /* the mask would clip an outline on the viewport itself; the ring goes on the strip */
.tq-strip:has(.tq-strip-vp:focus-visible){outline:2px solid #d6282b;outline-offset:6px;border-radius:4px}
.tq-strip-vp{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}  /* touch-and-hold pauses; no callout / text selection */
.tq-strip-set{display:flex;gap:16px;padding-right:16px}
.tq-strip figure{flex:0 0 auto;width:min(70vw,360px);margin:0}
.tq-strip figure img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:3px;background:#ece6df}
.tq-strip figcaption{margin-top:10px;font-size:14px;line-height:1.45;color:var(--muted,#47423d)}
@keyframes tq-strip{to{transform:translate3d(-50%,0,0)}}
@media (prefers-reduced-motion:reduce){.tq-strip-track{animation:none}.tq-strip-vp{overflow-x:auto;-webkit-mask-image:none;mask-image:none;scroll-snap-type:x mandatory}.tq-strip-set[aria-hidden]{display:none}.tq-strip figure{scroll-snap-align:start}}
/* N5: touch targets. Invisible hit areas (no layout or visual change): isolated links get a 44px-tall target;
   links stacked in lists grow only into the gap between rows, so neighbouring targets never overlap.
   Links inside running text (.hrdl, a.hl) keep their line box: expanding them would cover the neighbouring line. */
:is(.crumbs a,.fpriv a,a.tmore,a.tlink,a.link,a.map,a.logo,.fbrand>a,.fgrid ul a){position:relative}
:is(.crumbs a,.fpriv a,a.tmore,a.tlink,a.link,a.map,a.logo,.fbrand>a)::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;min-width:44px;transform:translateY(-50%)}
.fgrid ul a::after{content:"";position:absolute;left:0;right:0;top:-5px;bottom:-5px}

/* N6 / D15 phone type scale: on phones no label is smaller than --fs-label-phone and no running text smaller than --fs-text-phone.
   One list for the whole site (components.css is loaded on every page, after the page and framework CSS); tools/qa/textsize.py enforces it. */
@media(max-width:720px){
:is(thead th,.thumbs .tl,.tsteps li>span,.dlinks a small,.pmeta li small,.pfor small,.fxgrid .fx code,.fxgrid .fx span,.plc .vis .tag,.ts .tt small,.shead .here span,tr.me td em,.ptabs button i,.fxg h4,.cinfo small,.simg .co b,.cleg em,.cser small,.path>small,.seltool .stt small,.f label small){font-size:var(--fs-label-phone)}
:is(p.gnote,.fnotes p,.path li>span,.path>p,p.pnote,.it .inote,p.scap,p.swnote,tbody td small,.fsub p){font-size:var(--fs-text-phone)}
}

/* D12/N2 one matrix component (.tx on .gt / .mi / .mx, wrapped by site.js in .txw): row-header column stays put,
   a fade + "Swipe →" hint appear only while there is more table to the right. */
.txw{position:relative;min-width:0;max-width:100%}
.txw::after{content:"";position:absolute;top:0;right:0;bottom:30px;width:36px;pointer-events:none;opacity:0;transition:opacity .2s;background:linear-gradient(to right,rgba(255,255,255,0),var(--tx-bg,#fff))}
.txw.ov:not(.end)::after{opacity:1}
.txh{display:none;justify-content:flex-end;font-size:var(--fs-label-phone);letter-spacing:.08em;color:var(--faint);font-weight:600;height:30px;align-items:center}
.txw.ov .txh{display:flex}
.txw.end .txh{visibility:hidden}
.tx{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.txw.ov .tx table{min-width:calc(100% + 48px);border-collapse:separate;border-spacing:0}  /* separate borders travel with the sticky row-header cells */
/* scroll mode: a table that cannot fit gets at least 48px of extra room, so it never scrolls by an accidental 1-39px */
.tx tbody th:first-child,.tx thead th:first-child{position:sticky;left:0;z-index:1;background:var(--tx-bg,#fff)}
.tx.mi thead th:first-child{position:static}
/* Mobile fold (compare + select): collapsed by default on phone (≤720); open on desktop via JS.
   Summary is a clear tappable row on phone (brand-red accent); hidden on desktop. */
.cmp-fold{margin:0;border:0;padding:0}
.cmp-fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;font-size:16.5px;font-weight:700;letter-spacing:-.015em;color:var(--ink);background:#fff;border:1px solid var(--line);border-left:3px solid var(--red-ink);border-radius:4px;user-select:none;-webkit-tap-highlight-color:transparent}
.cmp-fold>summary::-webkit-details-marker{display:none}
.cmp-fold>summary>span{min-width:0}
.cmp-fold>summary::after{content:"";width:10px;height:10px;border-right:2px solid var(--red-ink);border-bottom:2px solid var(--red-ink);transform:rotate(45deg);flex:0 0 auto;margin-top:-4px;transition:transform .2s ease;opacity:.85}
.cmp-fold[open]>summary{border-radius:4px 4px 0 0;border-bottom-color:transparent}
.cmp-fold[open]>summary::after{transform:rotate(225deg);margin-top:4px}
.cmp-fold>.cmp,.cmp-fold>.sel{margin-top:0;border:1px solid var(--line);border-top:0;border-radius:0 0 4px 4px;padding-top:8px}
@media(min-width:721px){
  .cmp-fold>summary{display:none}
  .cmp-fold>.cmp,.cmp-fold>.sel{border:0;border-radius:0;padding-top:0}
  .cmp-fold>.sel{margin-top:44px}
}
@media(max-width:720px){#compare .shead{display:none}}

/* D12/N1 family comparison: one card per model on phones (labels from the column headers, data-l) */
@media(max-width:720px){
.cmp{overflow:visible}
.cmp table{background:none;display:block}
.cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cmp tbody{display:grid;gap:10px}
.cmp tr{position:relative;display:grid;grid-template-columns:repeat(6,1fr);gap:12px 14px;background:#fff;border:1px solid var(--line);border-radius:4px;padding:14px 16px 16px}
.cmp tr.me{border-color:var(--red-ink);box-shadow:inset 3px 0 0 var(--red-ink)}
.cmp td{display:block;padding:0;border:0;white-space:normal;background:none!important;font-size:15px;line-height:1.35;min-width:0}
.cmp td:first-child{grid-column:1/-1;font-size:17px;font-weight:700;padding-bottom:10px;border-bottom:1px solid var(--line);display:flex;align-items:baseline;justify-content:space-between}
.cmp td:nth-child(2),.cmp td:nth-child(3),.cmp td:nth-child(4){grid-column:span 2}
.cmp td:nth-child(5),.cmp td:nth-child(6){grid-column:span 3}
.cmp td[data-l]::before{content:attr(data-l);display:block;font-size:var(--fs-label-phone);letter-spacing:.1em;text-transform:uppercase;color:var(--faint);font-weight:700;margin-bottom:3px}
.cmp td a{border-bottom:0}
.cmp td a::after{content:"";position:absolute;inset:0}
.cmp td em{margin-left:0}
}

/* D11/N3 compact horizontal cards on phones: image 42% left, text right. One layout for the model card (siblings on
   product pages) and the home "Our products" cards; the category page keeps its full cards (long descriptions). */
@media(max-width:600px){
.sibs:not(.cat){gap:12px}
.sibs:not(.cat) .sib,.cards .card{display:grid;grid-template-columns:42% 1fr;align-items:stretch}
.sibs:not(.cat) .sim,.cards .card .img{aspect-ratio:auto;height:100%;min-height:118px}
.sibs:not(.cat) .sb,.cards .card .body{padding:14px 14px 14px 16px;min-width:0}
.sibs:not(.cat) .sb em{font-size:16.5px;line-height:1.25;margin-top:4px}
.sibs:not(.cat) .sb small{margin-top:6px;font-size:13.5px;line-height:1.4}
.sibs:not(.cat) .sb i,.cards .card .go{padding-top:8px;margin-top:auto}
.cards{gap:12px}
.cards .card .h3{font-size:19px}
.cards .card .body p{font-size:var(--fs-text-phone);margin-top:6px;line-height:1.45}
}

/* D6/D7 (Eric 2026-10-22): large images on phones are 1:1 and complete; titles sit below the image.
   Square crops come from the masters (data/media.json phone, <source media> via data-msrc); a master too small
   for a sharp 1:1 is shown whole at its own ratio instead (never upscaled, never cut). */
@media(max-width:720px){
/* home hero: 1:1 crop, title below */
.hero{display:flex;flex-direction:column}
.hero-bg{position:relative;inset:auto;height:auto;aspect-ratio:1/1;object-position:50% 50%}
.hero-veil{display:none}
.hero .wrap{height:auto;min-height:0;max-height:none;display:block;padding-top:30px;padding-bottom:46px}
.hero-copy{padding:0}
/* /products/ "Terq Hinge Systems": master 1568x672 is too small for 1:1 -> whole image, no parallax, title below */
.px{height:auto;min-height:0;display:flex;flex-direction:column}
.px-bg{position:relative;inset:auto;transform:none!important;will-change:auto}
.px-bg img{height:auto;aspect-ratio:1568/672}
.px-vignette{display:none}
.px-text{position:relative;inset:auto;transform:none!important;opacity:1!important;padding:30px 24px 112px}
/* /products/ inspiration: 1:1 crop */
.insp figure{aspect-ratio:1/1}
/* technology heroes: 1:1 crop, title and breadcrumb below on the page colour */
.thx{display:block;min-height:0;color:var(--ink)}
.thimg{position:relative;inset:auto}
.thimg img{height:auto;aspect-ratio:1/1;object-position:50% 50%}
.thimg::after{display:none}
.thtxt{padding-top:22px;padding-bottom:44px}
.thtxt .crumbs,.thtxt .crumbs a{color:var(--faint)}
.thtxt .eyebrow{color:var(--red-ink);opacity:1;margin-top:26px}
/* Support hero: approved master 1536x1024 is too small for 1:1 -> whole image at 3:2 */
.sp-hero img.bg{height:auto;aspect-ratio:3/2;object-position:50% 50%}
/* Glidex-Sys structure cutaway: the master is 1:1, show all of it; callouts are placed in the 16:10 view (--y),
   so map them onto the full square: y' = 18.75% + 0.625 y */
.struct .simg img{aspect-ratio:1/1}
.struct .simg .co{top:calc(18.75% + var(--y) * .625)}
/* a label never runs past the image edge: it wraps within the space to its side */
.struct .simg .co b{white-space:normal;width:max-content;max-width:calc((100vw - 2 * var(--gutter)) * .42 - 28px)}
}

/* Stage 4 /products/ 'Select by application' (Components.select, data: models.json uses/select/compare). Self-contained:
   /products/ does not load site.css. Desktop: a table; phones: one card per row (labels from data-l). */
.selsec{background:var(--cream);padding:112px 0 120px}
.selsec h2{font-family:var(--serif);font-weight:600;font-size:clamp(32px,3.4vw,48px);line-height:1.1;letter-spacing:-.015em;margin-top:16px}
.sel-lead{font-size:18px;line-height:1.65;color:var(--ink-2);max-width:640px;margin-top:20px}
.sel{margin-top:44px}
.sel table{width:100%;border-collapse:collapse;background:#fff;border-radius:4px;font-size:15px;line-height:1.45}
.sel th{text-align:left;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);font-weight:700;padding:18px 16px 14px;border-bottom:1px solid var(--line);vertical-align:bottom}
.sel th:nth-child(1){width:27%}.sel th:nth-child(2){width:16%}.sel th:nth-child(3){width:11%}.sel th:nth-child(4){width:9%}.sel th:nth-child(6){width:12%}
.sel td{padding:18px 16px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--ink-2)}
.sel tbody tr:last-child td{border-bottom:0}
.sel td b{display:block;font-weight:600;color:var(--ink);font-size:15.5px;line-height:1.4}
.sel td small{display:block;color:var(--faint);font-size:13.5px;line-height:1.45;margin-top:5px}
.sel td:nth-child(3),.sel td:nth-child(4){white-space:nowrap;font-variant-numeric:tabular-nums}
.sel td a{color:var(--red-ink);font-weight:700;white-space:nowrap;display:inline-block}
.sel td a span{display:inline-block;transition:transform .2s}
.sel td a:hover span{transform:translateX(3px)}
@media (prefers-reduced-motion:reduce){.sel td a:hover span{transform:none}}
@media(max-width:900px){.selsec{padding:72px 0 80px}.sel th,.sel td{padding-left:12px;padding-right:12px}}
@media(max-width:720px){
.sel{margin-top:32px}
.sel table,.sel tbody{display:block;background:none}
.sel thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sel tbody{display:grid;gap:12px}
.sel tr{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;background:#fff;border:1px solid var(--line);border-radius:4px;padding:16px}
.sel td{display:block;padding:0;border:0;font-size:var(--fs-text-phone);min-width:0}
.sel td[role=rowheader],.sel td[data-l="Door overlay"],.sel td[data-l="Special features"],.sel td[data-l="Recommended model"]{grid-column:1/-1}
.sel td b{font-size:16.5px}
.sel td small{font-size:var(--fs-text-phone)}
.sel td[data-l]::before{content:attr(data-l);display:block;font-size:var(--fs-label-phone);letter-spacing:.1em;text-transform:uppercase;color:var(--faint);font-weight:700;margin-bottom:3px}
.sel td[data-l="Recommended model"]{border-top:1px solid var(--line);padding-top:10px}
.sel td a{display:flex;align-items:center;min-height:44px;font-size:16px}
}
