/* Production adjustments on top of the approved prototype stylesheet (style.css is kept verbatim).
   Only differences caused by real routing, real links instead of buttons, and language support. */

/* The prototype reserved space for its preview toolbar. */
body { padding-bottom: 0; }
.cookie { bottom: 25px; }
#toast { bottom: 25px; }
@media (max-width: 760px) { .cookie { bottom: 16px; } }

/* Headings: The Seasons covers basic Latin only. Other languages use a compatible serif for whole headings,
   so letters from two typefaces never mix inside one word. Swap when the licensed full font is confirmed. */
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: normal; font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-ext-500-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: italic; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: italic; font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: italic; font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: SerifFallback; font-weight: 400 500; font-style: italic; font-display: swap;
  src: url("/fonts/cormorant-garamond-cyrillic-ext-500-italic.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
html.serif-fallback h1, html.serif-fallback h2, html.serif-fallback h3,
html.serif-fallback .placeholder span { font-family: SerifFallback, Georgia, serif; font-weight: 500; }

/* Preloader: only on the first page of a visit, never blocks a ready page (see app.js). */
html.loaded #loader, html:not(.js) #loader { display: none; }

/* Language switcher is a <details> so it works without JavaScript. */
.lang-switch { position: static; border-top: 0; padding: 0; }
.lang-switch summary { list-style: none; cursor: pointer; padding: 12px 0; letter-spacing: inherit; color: inherit; display: block; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:after, .lang-switch[open] summary:after { content: none; }
.language-menu a { text-align: left; font-size: 11px; padding: 5px; }
.language-menu a[aria-current] { color: #0b4644; text-decoration: underline; text-underline-offset: 4px; }

/* Topline doubles as the browser-language suggestion. */
.topline a { text-decoration: underline; text-underline-offset: 3px; }

/* Current section in the navigation. */
header nav a[aria-current="page"]:after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: #0b4644; }

/* Mobile menu toggled with the hidden attribute. */
.mobile-nav[hidden] { display: none !important; }
@media (min-width: 761px) { .mobile-nav { display: none !important; } }

/* Catalogue collections are links (bookmarkable filters), styled like the prototype buttons. */
.catalog-aside a { display: block; text-align: left; padding: 12px 0; color: #727a70; width: 100%; }
.catalog-aside a.active { color: #0b4644; }
.catalog-aside a:hover { color: #0b4644; }
@media (max-width: 760px) {
  .catalog-aside a { display: inline-block; width: auto; white-space: nowrap; padding: 8px 14px 8px 0; }
}
.filters noscript button, .filters .apply { min-height: 44px; }
html.js .filters .apply { display: none; }

/* Form feedback. */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #8c3b2f; }
.form-error { color: #8c3b2f; font-size: 12px; margin: 15px 0; }
.form-done { border-top: 1px solid #dce1da; border-bottom: 1px solid #dce1da; padding: 30px 0; }
.form-done h3 { margin-bottom: 10px; }

/* Events list on the education page. */
.event-date { font-size: 10px; letter-spacing: 1.6px; color: #626862; }

/* Interactive area of compact text links (≥ 44 px), visual size unchanged. */
.textlink::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: -8px; }

:focus-visible { outline: 1px solid #0b4644; outline-offset: 4px; }

/* Sign-out is a POST form styled as a sidebar link. */
.sidebar-link { display: block; width: 100%; text-align: left; padding: 10px 0; color: #758075; font-size: 11px; }
.sidebar-link:hover { color: #0b4644; }
.sidebar .sidegroup form { margin: 0; }
.filters a.textlink.active { color: #212824; border-bottom-color: #212824; }
.form-error div + div { margin-top: 4px; }
.specs { flex-wrap: wrap; row-gap: 18px; }
.specs p { overflow-wrap: anywhere; }

/* ───────── Before / after ───────── */
.ba { position: relative; overflow: hidden; background: #f0f1ed; user-select: none; touch-action: pan-y; }
.ba-large { aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
.ba-card { aspect-ratio: 4 / 5; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff; transform: translateX(-0.5px); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1px solid #fff; border-radius: 50%;
  background: rgba(11, 70, 68, .55); color: #fff; display: grid; place-items: center; font-size: 15px; letter-spacing: 2px; pointer-events: none; transition: background .25s; }
.ba:hover .ba-handle, .ba-range:focus-visible ~ .ba-handle { background: rgba(11, 70, 68, .85); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible { opacity: 0; }
.ba:has(.ba-range:focus-visible) { outline: 1px solid #0b4644; outline-offset: 4px; }
.ba-tag { position: absolute; top: 18px; padding: 8px 12px; background: rgba(33, 40, 36, .62); color: #fff; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; pointer-events: none; }
.ba-tag-left { left: 18px; } .ba-tag-right { right: 18px; }
.ba-credit { display: block; font-size: 11px; color: #626862; font-style: italic; margin-top: 6px; }

/* Home hero with results */
.results-hero { grid-template-columns: .9fr 1.1fr; align-items: center; }
.results-hero h1, .results-hero .h1-like { font-size: clamp(44px, 4.6vw, 74px); line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 26px; }
.results-hero .hero-copy p { max-width: 420px; }
.results-hero .actions { margin-top: 32px; }
.results-media { display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: start; }
.results-thumbs { display: grid; gap: 14px; }
.results-thumbs button { padding: 0; aspect-ratio: 1; overflow: hidden; outline: 1px solid transparent; outline-offset: 3px; opacity: .72; transition: opacity .25s, outline-color .25s; }
.results-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.results-thumbs button[aria-selected="true"] { opacity: 1; outline-color: #0b4644; }
.results-thumbs button:hover { opacity: 1; }
.hero-case[hidden] { display: none; }
@media (max-width: 1100px) { .results-hero h1, .results-hero .h1-like { font-size: 52px; } .results-media { grid-template-columns: 1fr 72px; } }
@media (max-width: 760px) {
  .results-hero { grid-template-columns: 1fr; }
  .results-hero h1, .results-hero .h1-like { font-size: 44px; letter-spacing: -1px; }
  .results-media { grid-template-columns: 1fr; grid-row: 2; }
  .results-thumbs { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .ba-tag { top: 12px; padding: 6px 9px; } .ba-tag-left { left: 12px; } .ba-tag-right { right: 12px; }
}

/* Results page */
.results-filter { display: flex; flex-wrap: wrap; gap: 8px 30px; border-top: 1px solid #dce1da; border-bottom: 1px solid #dce1da; padding: 18px 0; margin-bottom: 45px; }
.results-filter a { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #727a70; padding: 6px 0; }
.results-filter a span { color: #9aa19a; margin-left: 4px; }
.results-filter a[aria-current] { color: #0b4644; border-bottom: 1px solid #0b4644; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px 30px; }
.result-meta { padding-top: 20px; }
.result-meta .eyebrow { margin-bottom: 12px; }
.result-used { font-size: 13px; line-height: 1.6; }
.result-used small { display: block; font-size: 9px; letter-spacing: 1.6px; color: #626862; margin-bottom: 4px; }
.result-used a { border-bottom: 1px solid #cbd3ca; }
.result-used a:hover { border-color: #0b4644; color: #0b4644; }
.result-note { font-size: 11px; color: #626862; margin-top: 8px; }
.results-disclaimer { margin: 60px 0 0; max-width: 760px; }
@media (max-width: 1100px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .results-grid { grid-template-columns: 1fr; gap: 45px; } .results-filter { gap: 4px 20px; } }

/* ───────── Brand heritage ───────── */
.heritage { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; align-items: center; }
.heritage-copy p { max-width: 440px; margin-top: 18px; }
.heritage-note { font-size: 11px; color: #626862; }
.heritage-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.heritage-pair figure { margin: 0; }
.heritage-img { aspect-ratio: 4 / 5; overflow: hidden; background: #f0f1ed; }
.heritage-img.dark { background: #0b4644; }
.heritage-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heritage-pair figcaption { border-top: 1px solid #dce1da; margin-top: 16px; padding-top: 12px; display: grid; gap: 4px; }
.heritage-pair figcaption span { font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; color: #626862; }
.heritage-pair figcaption b { font-weight: 400; font-size: 14px; color: #212824; }
.heritage-pair figcaption small { font-size: 11px; color: #626862; }
.heritage-pair .old-logo { height: 34px; width: auto; margin-top: 6px; object-fit: contain; object-position: left; }
.founder p + p { margin-top: 18px; }
.founder-principle { font-family: Seasons, Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.35; color: #0b4644; border-top: 1px solid #dce1da; padding-top: 22px; margin-top: 28px !important; }
html.serif-fallback .founder-principle { font-family: SerifFallback, Georgia, serif; }
.signature { margin-top: 20px; mix-blend-mode: multiply; height: auto; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid #dce1da; }
.timeline li { padding: 22px 18px 0 0; border-right: 1px solid #dce1da; margin-right: 18px; }
.timeline li:last-child { border-right: 0; }
.timeline-year { display: block; font-family: Seasons, Georgia, serif; font-size: 30px; color: #0b4644; margin-bottom: 14px; }
html.serif-fallback .timeline-year { font-family: SerifFallback, Georgia, serif; }
.timeline b { display: block; font-weight: 400; font-size: 13px; color: #212824; margin-bottom: 8px; }
.timeline p { font-size: 12px; line-height: 1.65; }
.brand-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .heritage { grid-template-columns: 1fr; gap: 40px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline li { border-right: 0; border-bottom: 1px solid #dce1da; padding-bottom: 22px; }
  .brand-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .heritage-pair { gap: 12px; }
  .timeline { grid-template-columns: 1fr; }
  .founder-principle { font-size: 21px; }
}
.editorial .resource { justify-content: flex-start; align-items: flex-start; }
.editorial .resource > span { flex: 0 0 40px; padding-top: 6px; }
.brand-stats .stat span sup { font-family: Gotham, sans-serif; font-size: .45em; vertical-align: top; margin-left: 2px; }

/* The Seasons demo files draw a "DEMO" mark instead of some characters (digits 4, + - & / ( ) etc.).
   SeasonsSafe uses the demo font only for the characters it really has; the rest falls back to the similar serif.
   Remove this block when the licensed webfont is installed. */
@font-face { font-family: SeasonsSafe; src: url("/fonts/seasons.otf"); unicode-range: U+0020, U+002C, U+002E, U+0030-0033, U+0035-003B, U+003F, U+0041-005A, U+0061-007A; }
@font-face { font-family: SeasonsSafe; src: url("/fonts/seasons-italic.otf"); font-style: italic; unicode-range: U+0020, U+002C, U+002E, U+0030-0033, U+0035-003B, U+003F, U+0041-005A, U+0061-006D, U+006F-007A; }
html.serif-seasons h1, html.serif-seasons h2, html.serif-seasons h3, html.serif-seasons .state .state-number,
html.serif-seasons .stat span, html.serif-seasons .founder-principle, html.serif-seasons .timeline-year,
html.serif-seasons .placeholder span { font-family: SeasonsSafe, SerifFallback, Georgia, serif; }

/* ───────── cabinet (stage 4) ───────── */
.price-table .group-row th { padding-top: 30px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #0b4644; font-weight: 400; text-align: left; }
.price-table tr:first-child.group-row th { padding-top: 12px; }
.price-table .price-cell { white-space: nowrap; color: #0b4644; }
.table-product small { display: block; }
.thumb-empty { display: inline-block; width: 40px; height: 55px; margin-right: 12px; background: #f1f3ef; flex: none; }
.invite-box { border: 1px solid #dce1da; padding: 25px; margin-bottom: 35px; align-items: flex-start; }
.copy-field { width: 100%; min-width: 280px; font-size: 11px; padding: 10px; border: 1px solid #dce1da; background: #fafbf9; }
.address form { display: inline; }
.address .actions { flex-wrap: wrap; }
.row-actions form { display: inline; }
@media (max-width: 700px) {
  .invite-box { flex-direction: column; }
  .copy-field { min-width: 0; }
}
@media print {
  .manager-line, .note, .thumb, .thumb-empty, .topline, .language-suggest { display: none !important; }
  .price-table a { color: inherit; text-decoration: none; }
}
@media (max-width: 600px) {
  .price-table .thumb, .price-table .thumb-empty { display: none; }
  .price-table .table-product { min-width: 0; }
  .price-table th, .price-table td { padding-left: 6px; padding-right: 6px; }
  .price-table td:nth-child(2) { white-space: nowrap; }
}

/* ───────── order bag and checkout (stage 5) ───────── */
.header-right .bag { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #0b4644; white-space: nowrap; }
.product .price form { display: inline; }
.bag-table .remove { font-size: 20px; line-height: 1; color: #0b4644; padding: 4px 8px; }
.qty-form { display: flex; gap: 8px; align-items: center; }
.choices { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: flex-start; border: 1px solid #dce1da; padding: 16px 18px; cursor: pointer; font-size: 12px; line-height: 1.6; }
.choice b { display: block; font-weight: 400; color: #0b4644; font-size: 13px; }
.choice input { margin-top: 4px; accent-color: #0b4644; }
.choice:has(input:checked) { border-color: #0b4644; }
.choice-new { margin: 10px 0 25px; }
.choice-new[hidden] { display: none; }
#checkout textarea { width: 100%; min-height: 110px; padding: 12px; border: 1px solid #dce1da; font: inherit; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 22px; font-size: 11px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef0ec; }
.status-history { list-style: none; padding: 0; margin: 0 0 25px; }
.status-history li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef0ec; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .header-right .bag { font-size: 9px; letter-spacing: .08em; margin-right: 6px; }
}

/* Numbers and short labels set in The Seasons on every language: the demo font has no "4", "+", "-" and no Cyrillic,
   so those characters come from the fallback serif. */
.state .state-number, .stat span, .timeline-year { font-family: SeasonsSafe, SerifFallback, Georgia, serif; }

/* Admin interface language switch (EN / UK / ES): sidebar and team sign-in page. */
.admin-lang { display: flex; gap: 18px; margin: 0; }
.sidebar .admin-lang .sidebar-link { width: auto; }
.admin-lang .active { color: #212824; }
.admin-lang .textlink.active { border-bottom-color: #212824; }
.admin-lang-login { margin-top: 40px; }

/* materials library: language versions of one document */
.mat-langs { margin-top: 8px; font-size: 11px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.mat-langs span { color: #7a8580; }
.mat-langs a { letter-spacing: .08em; color: #0b4644; border-bottom: 1px solid #c9d2cc; text-decoration: none; }
.mat-langs a:hover { border-color: #0b4644; }
.mat-nav { margin-bottom: 35px; }
.mat-products { margin-top: 6px; font-size: 11px; line-height: 1.7; }
.mat-products span { color: #7a8580; margin-right: 6px; }
.mat-products a { color: #0b4644; }
.mat-filters { margin-bottom: 25px; align-items: center; }
.mat-filters .check { font-size: 11px; white-space: nowrap; }
.mat-count { font-size: 12px; margin: -10px 0 25px; }
.seminar-text { white-space: pre-line; margin-top: 8px; }
.seminar-actions { align-items: center; }
.mat-filters .check { display: inline-flex; gap: 8px; align-items: center; width: auto; flex: 0 0 auto; padding: 0; }
.mat-filters .check input { width: auto; margin: 0; }
