/*
NBT Studio design system.
Readable source; keep this file formatted (do not minify in place).
*/

:root {
    --bg: #101114;
    --surface: #191a1f;
    --surface-2: #212228;
    --line: #303138;
    --text: #f5f3ed;
    --muted: #aaaab3;
    --yellow: #ffdb59;
    --accent: #ffdb59;
    --mint: #b5dcc2;
    --header-bg: #101114;
    --hero-glow-1: #585a4038;
    --hero-glow-2: #33324538;
    --hero-bg: #17181c;
    --hero-sub: #b5b5bd;
    --hairline: #ffffff14;
    --dots: #fff1;
    --footer-bg: #0c0d10;
    --footer-sub: #878994;
    --card-hover-line: #66634e;
    --chip-line: #7b6b35;
    --banner-bg: #24261f;
    --banner-line: #444735;
    --banner-em: #dce4ad;
    --banner-body: #bbbeb0;
    --banner-art: #e5e9d6;
    --banner-art-i: #b3c281;
    --step: #777969;
    --article: #c9c9d0;
    --crumb: #dbdbe0;
    --dialog-line: #53545d;
    --notice-bg: #1c271f;
    --notice-line: #59624b;
    --ph-1: #33384b;
    --ph-2: #22242c;
    --ph-text: #ece7da;
    --serif: "Glegoo", Georgia, "Times New Roman", serif;
    --sans: "Glegoo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
}

/* Light theme: warm cream and gold to match the brand */
html[data-theme="light"] {
    --bg: #faf7ef;
    --surface: #ffffff;
    --surface-2: #f3efe3;
    --line: #e5e0d0;
    --text: #232429;
    --muted: #6a6b73;
    --accent: #8a6400;
    --mint: #4e7a5c;
    --header-bg: #fffdf7;
    --hero-glow-1: #f2df9e66;
    --hero-glow-2: #dfe3f066;
    --hero-bg: #f4eeda;
    --hero-sub: #5c5d64;
    --hairline: #00000014;
    --dots: #00000012;
    --footer-bg: #f3eddd;
    --footer-sub: #77787f;
    --card-hover-line: #c8ab4d;
    --chip-line: #d8bd6a;
    --banner-bg: #f7efd8;
    --banner-line: #e4d6a4;
    --banner-em: #8a6400;
    --banner-body: #6a6b60;
    --banner-art: #33342a;
    --banner-art-i: #d3bd6e;
    --step: #b5a778;
    --article: #3b3c44;
    --crumb: #4c4d54;
    --dialog-line: #d8d2be;
    --notice-bg: #e9f4e6;
    --notice-line: #a5c79e;
    --ph-1: #e9e2cf;
    --ph-2: #ddd6c1;
    --ph-text: #6a6350;
    color-scheme: light;
}

/* Base */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body.nbt-site { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
button, input, select, textarea { font: inherit;font-family:Glegoo; }
option { font-family: "Glegoo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
/* Custom dropdown widgets: Firefox renders native select popups with the OS font. */
.filter-panel.nbt-select-open { overflow: visible; }
.nbt-select { position: relative; }
.nbt-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; pointer-events: none; }
.nbt-select-btn { width: 100%; min-height: 42px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-family: "Glegoo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.4; text-align: left; }
.nbt-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbt-select-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); flex-shrink: 0; }
.nbt-select-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.nbt-select-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nbt-select-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: 264px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.nbt-select-item { padding: 9px 10px; border-radius: 6px; font-family: "Glegoo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; color: var(--text); cursor: pointer; }
.nbt-select-item.is-active { background: var(--surface-2); }
.nbt-select-item.is-selected { font-weight: 700; }
@media(max-width:640px) { .nbt-select-btn, .nbt-select-item { font-size: 14px; } }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input, select, textarea { max-width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
select { color-scheme: dark; }
textarea { width: 100%; min-height: 160px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -1.4px; }
h1 { font-size: clamp(38px, 4.8vw, 64px); }
h2 { font-size: clamp(30px, 3vw, 42px); }
h3 { font-size: 18px; font-weight: 600; }
em { font-family: var(--serif); font-weight: 400; }
p { margin-bottom: 1.2em; }
[hidden] { display: none !important; }

/* Layout helpers */
.shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 28px; }
.muted { color: var(--muted); }
.yellow { color: var(--accent); }

/* Typography accents */
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 600 10px/1.5 var(--sans); letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.tiny-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; background: var(--accent); }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 13px 22px; background: var(--yellow); border: 1px solid var(--yellow); border-radius: 8px; color: #19170e; font-size: 13px; font-weight: 650; line-height: 1.4; transition: background .2s, transform .2s; }
.button:hover { color: #19170e; background: #ffe78c; border-color: #ffe78c; transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 10px 15px; font-size: 12px; gap: 12px; }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button-secondary:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 550; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); position: relative; padding: 10px; }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }

/* Theme toggle: show the icon of the mode you would switch to */
.theme-toggle .theme-icon-dark,
.theme-toggle .theme-icon-light { display: flex; align-items: center; justify-content: center; }
.theme-toggle svg { display: block; }
html[data-theme="dark"] .theme-icon-dark,
html[data-theme="light"] .theme-icon-light { display: none; }

/* Smooth palette change when switching themes */
body.nbt-site,
.site-header,
.site-footer,
.hero,
.theme-card,
.detail-panel,
.page-sidebar,
.filter-panel,
.saved-dialog,
.premium-banner { transition: background-color .25s ease, border-color .25s ease, color .25s ease; }

/* Screen reader text */
.sr-only,
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--yellow); color: #111; padding: 12px 20px; z-index: 500; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: relative; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--hairline); }
.site-header.is-sticky { position: sticky; top: 0; }
@media (min-width: 783px) {
    .admin-bar .site-header.is-sticky { top: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
    .admin-bar .site-header.is-sticky { top: 46px; }
}
.header-row { display: flex; align-items: center; gap: 30px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 17px; font-weight: 750; letter-spacing: -.7px; line-height: 1.25; }
.brand-symbol { display: grid; place-items: center; background: var(--yellow); color: #101114; width: 34px; height: 38px; border-radius: 9px; }
.brand-symbol svg { width: 21px; height: 21px; }
.brand-light { font-weight: 400; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.8px; color: var(--muted); font-weight: 500; margin-top: 6px; }
.site-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.site-nav a { font-size: 12px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.save-count { position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px; background: var(--yellow); color: #111; font-size: 10px; border-radius: 10px; line-height: 17px; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 90% 15%, var(--hero-glow-1), transparent 52%), radial-gradient(ellipse at 0 80%, var(--hero-glow-2), transparent 60%), var(--hero-bg); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--dots) .7px, transparent .8px); background-size: 20px 20px; mask-image: linear-gradient(#0008, transparent 90%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 60px; min-height: 595px; padding-block: 65px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.07; letter-spacing: -1.6px; margin: 0 0 26px; }
.hero h1 em { color: var(--accent); }
.hero-description { font-size: 15px; color: var(--hero-sub); max-width: 440px; line-height: 1.9; margin-bottom: 30px; }
.hero-notes { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; color: var(--hero-sub); font-size: 11px; }
.hero-notes span { display: flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 14px; color: var(--mint); }
.hero-showcase { height: 445px; position: relative; min-width: 0; }
.showcase-label { position: absolute; top: 0; left: 5%; right: 0; display: flex; gap: 8px; align-items: center; font: 500 9px var(--sans); letter-spacing: 1.4px; color: var(--muted); }
.showcase-label > span:last-child { margin-left: auto; font-size: 18px; }
.showcase-window { position: absolute; background: #eee; border: 5px solid #e7e6df; border-radius: 9px; box-shadow: 0 25px 55px #0005; overflow: hidden; transition: transform .3s; width: 67%; }
.showcase-window:hover { transform: translateY(-7px) rotate(0deg); z-index: 5; }
.window-chrome { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e7e6df; color: #555; font-size: 8px; padding: 4px 5px 8px; white-space: nowrap; }
.window-chrome > span:first-child { font-size: 7px; color: #999; letter-spacing: 2px; }
.window-chrome svg { width: 10px; height: 10px; }
.showcase-window img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; object-position: top; }
.window-1 { left: 1%; top: 75px; transform: rotate(-7deg); z-index: 2; }
.window-2 { right: -2%; top: 40px; transform: rotate(7deg); z-index: 1; }
.window-3 { right: 0; bottom: 10px; transform: rotate(3deg); width: 61%; z-index: 3; }
.showcase-sticker { position: absolute; left: 0; bottom: 10px; z-index: 4; display: flex; gap: 12px; align-items: center; padding: 13px 17px; background: #dbe8c9; border: 1px solid #eff6e8; border-radius: 8px; box-shadow: 0 10px 30px #0004; color: #293127; font-size: 10px; transform: rotate(-6deg); }
.showcase-sticker svg { width: 30px; height: 30px; }
.showcase-sticker strong { font-weight: 650; font-size: 11px; }
.hero-bottom { position: relative; border-top: 1px solid var(--hairline); padding-block: 18px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; letter-spacing: 1.4px; }
.hero-bottom a { letter-spacing: 0; font-size: 12px; }

/* Section headings */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p:last-child { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 12px; }
.result-count { font-size: 11px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }

/* Filter panel */
.filter-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; }
.filter-search { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--muted); }
.filter-search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 0; font-size: 14px; border-radius: 0; }
.filter-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding: 17px 20px; align-items: end; }
.filter-fields label > span { display: block; font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.filter-fields select { width: 100%; padding: 9px 11px; background: var(--bg); font-size: 12px; min-height: 42px; font-family:Glegoo;}
.filter-fields .button { min-height: 42px; padding: 11px 20px; font-size: 12px; }
.collection-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; font-size: 10px; }
.collection-chips > span { margin-right: 6px; color: var(--muted); }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 11px; display: inline-flex; min-height: 32px; align-items: center; }
.chip:hover,
.chip.active,
.chip[aria-current="true"] { border-color: var(--chip-line); color: var(--accent); background: #ffdb5908; }
.filter-reset { margin-left: auto; color: var(--muted); font-size: 11px; }

/* Theme grid and cards */
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.theme-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s; }
.theme-card:hover { border-color: var(--card-hover-line); transform: translateY(-4px); }
.card-preview { position: relative; margin: 10px 10px 0; border-radius: 7px; overflow: hidden; background: #e8e7e2; }
.card-preview > a { display: block; }
.card-preview img { display: block; aspect-ratio: 1.42; width: 100%; object-fit: cover; object-position: top; transition: object-position 2.5s ease; }
.card-preview:hover img { object-position: bottom; }
.card-type { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border: 1px solid #e6fff02b; border-radius: 5px; background: #d9eddf; color: #203b2d; font-size: 10px; font-weight: 700; letter-spacing: .3px; }
.card-type.is-premium { background: var(--yellow); color: #3d3014; }
.card-preview .save-button { position: absolute; right: 10px; top: 10px; background: #17181ee8; color: #f5f3ed; width: 36px; height: 36px; padding: 9px; }
.save-button svg { width: 15px; height: 15px; }
.save-button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.card-preview .save-button:hover,
.card-preview .save-button[aria-pressed="true"] { color: var(--yellow); border-color: var(--yellow); }
.save-button[aria-pressed="true"] svg { fill: currentColor; }
/* Social profiles and theme sharing: compact, wrapping controls in both modes. */
.nbt-social-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.nbt-social-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; line-height: 1.4; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.nbt-social-button svg { flex: 0 0 16px; width: 16px; height: 16px; }
.nbt-social-button:hover { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.nbt-social-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nbt-share { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.nbt-share h3 { margin: 0 0 12px; font-size: 14px; }
.nbt-share .nbt-social-buttons { display: flex; flex-wrap: nowrap; gap: 6px; }
.nbt-share .nbt-social-button { flex: 0 1 42px; min-width: 0; height: 42px; padding: 0; }
.nbt-share-status { margin: 10px 0 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.nbt-share-status:empty { display: none; }
.site-footer .nbt-social-buttons { margin-top: 18px; }
html[data-theme="light"] .card-preview .save-button { background: #fffdf7; color: #494334; border-color: #c8bfa8; box-shadow: 0 2px 6px #3027131f; }
html[data-theme="light"] .card-preview .save-button:hover { background: #fff3c4; color: #795600; border-color: #b58b24; }
html[data-theme="light"] .card-preview .save-button[aria-pressed="true"] { background: #ffe79a; color: #795600; border-color: #b58b24; }
.card-body { padding: 18px 19px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-heading h3 { font-size: 16px; line-height: 1.3; margin: 0; font-weight: 550; letter-spacing: -.3px; }
.card-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; }
.card-arrow svg { width: 13px; height: 13px; }
.card-body p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.image-placeholder { aspect-ratio: 1.42; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 30px; background: linear-gradient(135deg, var(--ph-1), var(--ph-2)); color: var(--ph-text); font-family: var(--serif); text-align: center; }
.image-placeholder svg { width: 36px; height: 36px; color: var(--accent); }

/* Pagination */
.pagination,
.navigation.pagination { margin-top: 34px; }
.pagination ul,
.nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.page-numbers:not(ul) { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.page-numbers.current { background: var(--yellow); color: #161616; border-color: var(--yellow); }

/* Premium banner */
.premium-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--banner-bg); border: 1px solid var(--banner-line); border-radius: 18px; padding: 55px; overflow: hidden; position: relative; }
.premium-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 20%, #ccd48e10, transparent 65%); pointer-events: none; }
.premium-banner > div { position: relative; }
.premium-banner h2 { font-size: 48px; margin-bottom: 20px; }
.premium-banner h2 em { color: var(--banner-em); }
.premium-banner p:not(.eyebrow) { max-width: 410px; color: var(--banner-body); font-size: 13px; line-height: 1.9; margin-bottom: 25px; }
.premium-art { display: flex; align-items: center; justify-content: center; transform: rotate(-5deg); }
.premium-art > span { font: 600 clamp(36px, 5vw, 70px)/.95 var(--sans); letter-spacing: -4px; color: var(--banner-art); }
.premium-art > span em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.premium-art i { position: absolute; right: 0; top: 0; font-style: normal; font-size: 150px; line-height: 1; color: var(--banner-art-i); transform: rotate(10deg); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; border-top: 1px solid var(--line); padding-top: 30px; }
.step-number { font: italic 35px var(--serif); color: var(--step); display: block; margin-bottom: 18px; }
.steps-grid h3 { font-size: 17px; margin-bottom: 12px; }
.steps-grid p { font-size: 13px; color: var(--muted); max-width: 300px; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; border-top: 1px solid var(--line); margin-top: 20px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 19px 30px 19px 0; list-style: none; position: relative; font-size: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; font-size: 22px; top: 11px; color: var(--accent); }
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list p { color: var(--muted); font-size: 13px; padding-right: 25px; }
.faq-list p a { color: var(--accent); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); margin-top: 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 35px; padding: 60px 0 45px; }
.footer-top p { color: var(--muted); font-size: 13px; margin-top: 22px; line-height: 1.9; }
.footer-top nav h2 { font: 600 11px var(--sans); letter-spacing: .3px; margin-bottom: 18px; }
.footer-top nav a { display: block; width: fit-content; font-size: 12px; color: var(--muted); padding-block: 6px; }
.footer-top nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--footer-sub); font-size: 11px; }
.footer-bottom p { margin: 0; }

/* Shortlist dialog */
.saved-dialog { width: min(540px, calc(100% - 32px)); max-height: 80vh; max-height: 80dvh; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--dialog-line); border-radius: 18px; padding: 28px; box-shadow: 0 30px 100px #0008; }
.saved-dialog::backdrop { background: #050609b8; backdrop-filter: blur(6px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 32px; margin: 0; }
.saved-dialog p { font-size: 13px; }
.saved-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 14px; }
.saved-item button { background: transparent; border: 0; color: var(--muted); text-decoration: underline; font-size: 11px; min-height: 40px; }

/* Back to top */
.to-top { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: max(20px, env(safe-area-inset-right)); z-index: 300; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 11px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 10px 30px #0006; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* Breadcrumbs and page headings */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--crumb); }
.page-heading { max-width: 850px; margin-bottom: 42px; }
.page-heading h1 { margin-bottom: 22px; }
.page-heading p:not(.eyebrow) { color: var(--muted); max-width: 640px; }
.page-heading em { color: var(--accent); }

/* Search */
.site-search { display: flex; gap: 10px; margin-top: 25px; max-width: 700px; }
.site-search input { min-width: 0; flex: 1; }

/* Empty and error states */
.empty-state { padding: 65px 25px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.empty-state > svg { width: 40px; height: 40px; margin-bottom: 20px; color: var(--accent); }
.empty-state p { color: var(--muted); }
.empty-state .button-row { justify-content: center; }
.error-page .site-search { margin-inline: auto; }

/* Theme detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.detail-grid > * { min-width: 0; }
.detail-preview { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); }
.detail-preview img { display: block; width: 100%; border-radius: 8px; aspect-ratio: 1.42; object-fit: cover; object-position: top; }
.detail-panel { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.detail-panel h2 { font-size: 29px; margin: 12px 0 18px; }
.detail-panel .button { display: flex; width: 100%; margin-top: 12px; }
.detail-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: #ffdb5912; border: 1px solid var(--chip-line); border-radius: 5px; font-size: 10px; color: var(--accent); }
.detail-note { color: var(--muted); font-size: 11px; margin: 18px 0 0; }
.detail-meta { margin: 25px 0 0; }
.detail-meta > div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 16px; font-size: 11px; }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { margin: 0; overflow-wrap: anywhere; }
.detail-meta dd a { text-decoration: underline; }

/* Article layouts */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 65px; align-items: start; }
.article-layout > * { min-width: 0; }
.article-content,
.entry-content { min-width: 0; color: var(--article); line-height: 1.9; overflow-wrap: anywhere; }
.article-content h2,
.entry-content h2 { font-size: 31px; color: var(--text); margin-top: 38px; }
.article-content h3,
.entry-content h3 { margin-top: 28px; color: var(--text); }
.article-content a,
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: 10px; height: auto !important; max-width: 100%; }
.article-content iframe,
.entry-content iframe { max-width: 100%; }
.article-content pre { overflow: auto; padding: 18px; background: #090a0d; border-radius: 10px; }
.article-content table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.article-content td,
.article-content th { padding: 12px; border: 1px solid var(--line); }
.article-content blockquote { margin: 25px 0; padding: 18px 25px; border-left: 3px solid var(--accent); background: var(--surface); }
.page-sidebar { padding: 25px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; position: sticky; top: 24px; }
.page-sidebar h2 { font-size: 25px; }
.page-sidebar p { font-size: 12px; color: var(--muted); }
.page-sidebar a:not(.button) { display: block; padding: 10px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.page-sidebar .button { margin-top: 20px; width: 100%; }
.article-featured { margin-bottom: 30px; width: 100%; border-radius: 12px; }

/* About page */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 45px; }
.value-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.value-card svg { color: var(--accent); margin-bottom: 18px; width: 25px; height: 25px; }
.value-card h2 { font: 600 17px var(--sans); letter-spacing: 0; }
.value-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Contact form */
.contact-form { display: grid; gap: 18px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.contact-form label { display: block; font-size: 12px; }
.contact-form input,
.contact-form textarea { display: block; width: 100%; margin-top: 7px; }
.contact-form .button { justify-self: start; }
.notice { padding: 18px; border: 1px solid var(--notice-line); background: var(--notice-bg); border-radius: 10px; font-size: 13px; margin-bottom: 22px; }

/* Comments */
.comments-area { border-top: 1px solid var(--line); margin-top: 45px; padding-top: 30px; }
.comments-title,
.comment-reply-title { font-size: 26px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 20px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 15px; }
.comment-meta { font-size: 12px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.comment-form label { display: block; font-size: 12px; }
.comment-form input:not([type="checkbox"]) { width: 100%; max-width: 600px; }
.comment-form .submit { background: var(--yellow); color: #17140a; }
.comment-form-cookies-consent label { display: inline; }
.wpcf7 input,
.wpcf7 textarea { width: 100%; }
.wpcf7-submit { background: var(--yellow); color: #161616; }

/* Alignment and captions */
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); }

/* Wide screens */
@media (min-width: 1600px) {
    .hero-grid { min-height: 640px; }
}

@media (max-width: 1100px) {
    .header-row { gap: 18px; }
    .site-nav { gap: 16px; }
    .brand { font-size: 15px; }
    .header-actions .button { font-size: 11px; padding: 10px; }
    .hero-grid { gap: 30px; }
    .hero h1 { font-size: 52px; }
    .showcase-sticker { left: -10px; }
    .footer-top { gap: 25px; }
    .premium-banner { padding: 40px; }
    .premium-art i { font-size: 100px; }
    .theme-grid { gap: 20px; }
}

@media (max-width: 900px) {
    .shell { width: calc(100% - 40px); }
    .header-row { flex-wrap: wrap; min-height: 76px; gap: 12px; padding-block: 14px; }
    .brand { margin-right: auto; }
    .site-nav { order: 3; width: 100%; justify-content: center; margin: 0; flex-wrap: wrap; }
    .has-js .menu-toggle { display: inline-flex; order: 2; }
    .has-js .site-nav { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: absolute; top: calc(100% - 1px); left: 20px; width: calc(100% - 40px); box-shadow: 0 20px 40px #0008; }
    .has-js .site-nav.is-open { display: flex; }
    .header-actions { order: 1; }
    .hero-grid { gap: 20px; }
    .hero h1 { font-size: 45px; }
    .hero-showcase { height: 355px; }
    .hero .button-row { gap: 18px; }
    .hero .button { font-size: 12px; padding: 12px 16px; }
    .hero .text-link { font-size: 12px; }
    .hero-notes { font-size: 10px; gap: 10px; }
    .showcase-label { font-size: 7px; }
    .showcase-sticker { font-size: 8px; padding: 10px; }
    .showcase-sticker strong { font-size: 9px; }
    .window-3 { bottom: 30px; }
    .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-fields { gap: 12px; grid-template-columns: 1fr 1fr; }
    .filter-fields select { font-size: 16px; } /* keeps iOS from zooming on focus */
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-top > div { grid-column: 1 / -1; }
    .footer-top > div p { margin-bottom: 0; }
    .faq-section { gap: 30px; grid-template-columns: 1fr 1.3fr; }
    .detail-grid { gap: 25px; grid-template-columns: minmax(0, 1fr); } /* single column: sticky panel moves below preview */
    .detail-panel { padding: 20px; }
    .article-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (max-width: 680px) {
    .shell { width: calc(100% - 32px); }
    .section { padding-block: 28px; }
    .header-actions .button { display: none; }
    .brand { font-size: 15px; }
    .brand small { font-size: 8px; letter-spacing: 1.3px; }
    .brand-symbol { width: 30px; height: 34px; }
    .header-row { gap: 10px; }
    .site-nav a { font-size: 13px; width: 100%; padding: 7px 10px; }
    .has-js .site-nav { left: 16px; width: calc(100% - 32px); }
    .hero-grid { grid-template-columns: 1fr; padding-block: 45px 25px; gap: 30px; min-height: 0; }
    .hero-copy { max-width: 500px; }
    .hero h1 { font-size: clamp(40px, 10vw, 57px); letter-spacing: -1.2px; }
    .hero-description { font-size: 14px; }
    .hero-showcase { height: 360px; width: min(450px, 100%); margin-inline: auto; }
    .showcase-label { font-size: 8px; }
    .window-3 { bottom: 0; }
    .showcase-sticker { bottom: 4px; left: 0; }
    .hero-notes { font-size: 11px; }
    .hero-bottom { font-size: 11px; gap: 15px; align-items: center; letter-spacing: .5px; }
    .hero-bottom a { font-size: 12px; text-align: right; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .section-heading h2 { font-size: 32px; }
    .filter-fields { padding: 15px; gap: 14px 12px; }
    .filter-search { padding-inline: 15px; }
    .filter-fields .button { gap: 10px; align-self: end; }
    .collection-chips { gap: 7px; }
    .collection-chips > span { width: 100%; margin-bottom: 3px; }
    .chip { min-height: 38px; }
    .filter-reset { margin-left: 0; padding: 6px; }
    .theme-grid { gap: 16px; }
    .card-preview { margin: 6px 6px 0; }
    .card-body { padding: 13px 12px; }
    .card-heading h3 { font-size: 14px; }
    .card-arrow { display: none; }
    .card-body p { font-size: 12px; }
    .card-type { font-size: 10px; padding: 4px 7px; top: 8px; left: 8px; }
    .card-preview .save-button { right: 7px; top: 7px; width: 40px; height: 40px; padding: 11px; }
    .premium-banner { grid-template-columns: 1fr; padding: 28px; gap: 35px; }
    .premium-banner h2 { font-size: 40px; }
    .premium-art { min-height: 190px; max-width: 300px; width: 100%; margin-inline: auto; }
    .premium-art > span { font-size: 55px; }
    .premium-art i { font-size: 90px; right: 0; }
    .steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .steps-grid > div { position: relative; padding-left: 60px; }
    .step-number { position: absolute; left: 0; top: -5px; font-size: 30px; }
    .steps-grid p { max-width: none; }
    .faq-section { grid-template-columns: 1fr; gap: 20px; }
    .faq-section h2 br { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; padding-block: 40px; gap: 30px 20px; }
    .footer-top nav:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; }
    .detail-grid,
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .detail-panel,
    .page-sidebar { position: static; }
    .detail-panel { padding: 24px; }
    .about-values { grid-template-columns: 1fr; gap: 15px; }
    .page-heading { margin-bottom: 30px; }
    .page-heading h1 { font-size: 40px; }
    .article-content { font-size: 14px; }
    .site-search { flex-wrap: wrap; }
    .site-search input { flex-basis: 100%; }
    .saved-dialog { padding: 22px; }
    .empty-state { padding: 40px 20px; }
    .contact-form { padding: 20px; }
    .result-count { font-size: 11px; }
}

@media (max-width: 380px) {
    .brand { font-size: 13px; }
    .brand small { display: none; }
    .hero h1 { font-size: 38px; }
    .hero-showcase { height: 310px; }
    .hero .button-row { align-items: flex-start; flex-direction: column; }
    .theme-grid { grid-template-columns: minmax(0, 1fr); }
    .filter-fields { grid-template-columns: minmax(0, 1fr); }
    .hero-bottom { flex-direction: column; align-items: flex-start; }
    .hero-bottom a { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after { transition: none !important; animation: none !important; }
    .theme-card:hover,
    .button:hover { transform: none; }
}

/* Collection heading sizing */
.collection .section-heading h1 { font-size: clamp(32px, 3vw, 42px); margin-bottom: 8px; }

/* Custom logo in header */
.brand .custom-brand-logo { display: block; max-width: 240px; max-height: 44px; width: auto; height: auto; }

/* Legacy content buttons inside editor content */
.article-content .tdemo,
.article-content .tdownload,
.article-content .tinstall,
.article-content .nbt-pack { display: inline-flex; padding: 10px 16px; margin: 6px 4px 6px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; text-decoration: none; }
.article-content .nbt-pack { display: block; }

/* Post navigation */
.post-navigation .nav-links { justify-content: space-between; gap: 25px; font-size: 13px; }
.post-navigation .nav-previous,
.post-navigation .nav-next { max-width: 45%; }

/* About: a curated brand story, independent of the page editor. */
.about-intro { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 70px; padding-block: 30px 70px; }
.about-intro .page-heading { margin: 0; }
.about-intro h1 { font-size: clamp(40px,4.5vw,62px); }
.about-intro .button-row { margin-top: 30px; }
.about-manifesto { position: relative; overflow: hidden; padding: 38px; border: 1px solid var(--banner-line); border-radius: 20px; background: radial-gradient(ellipse at top right,var(--hero-glow-1),transparent 75%),var(--banner-bg); }
.about-manifesto::after { content: ''; position: absolute; width: 230px; height: 230px; border: 1px solid var(--banner-line); border-radius: 50%; top: -110px; right: -80px; pointer-events: none; }
.about-mark { display: block; margin-block: 32px 24px; color: var(--accent); }
.about-mark svg { width: 48px; height: 48px; }
.about-statement { position: relative; font: 400 clamp(28px,3vw,40px)/1.2 var(--serif); letter-spacing: -1px; }
.about-statement em { color: var(--banner-em); }
.about-signature { border-top: 1px solid var(--banner-line); margin: 28px 0 0; padding-top: 18px; color: var(--banner-body); font-size: 10px; letter-spacing: 1px; }
.about-purpose { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; padding-block: 55px; border-block: 1px solid var(--line); }
.about-purpose h2 { margin-bottom: 0; }
.about-purpose h2 em { color: var(--accent); }
.about-purpose > div:last-child { color: var(--muted); }
.about-purpose p:last-child { margin-bottom: 0; }
.about-principles { padding-top: 65px; }
.about-page .about-values { margin: 0; }
.about-page .value-card { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; }
.about-value-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; color: var(--accent); }
.about-value-top > span { font: 24px var(--serif); color: var(--muted); }
.about-page .value-card h3 { font-size: 20px; letter-spacing: -.5px; }
.about-page .value-card .text-link { margin-top: auto; padding-top: 12px; font-size: 12px; }
.about-page .value-card .text-link svg { width: 16px; }
.about-invitation { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 38px; margin-top: 60px; border: 1px solid var(--banner-line); border-radius: 16px; background: var(--banner-bg); }
.about-invitation h2 { font-size: clamp(28px,3vw,38px); }
.about-invitation p:last-child { margin: 0; color: var(--muted); }
.about-invitation .button { flex-shrink: 0; }
@media (max-width: 1000px) {
    .about-intro { gap: 35px; }
    .about-purpose { gap: 35px; }
    .about-page .about-values { gap: 15px; }
    .about-page .value-card { padding: 22px; }
    .about-invitation { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
    .about-intro, .about-purpose { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .about-intro { padding-block: 20px 40px; }
    .about-manifesto { padding: 28px; }
    .about-purpose { padding-block: 35px; }
    .about-principles { padding-top: 40px; }
    .about-invitation { padding: 26px; margin-top: 40px; }
    .about-invitation .button { width: 100%; }
}

/* Legal: readable policy sections with a persistent desktop contents rail. */
.legal-hero { display: grid; grid-template-columns: minmax(0,1fr) 290px; align-items: center; gap: 65px; padding: 25px 0 45px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.legal-hero .page-heading { margin: 0; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted); font-size: 11px; margin-top: 26px; }
.legal-meta > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.legal-meta svg { width: 15px; height: 15px; color: var(--accent); }
.legal-contact-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--banner-line); border-radius: 16px; background: var(--banner-bg); }
.legal-contact-card:hover { border-color: var(--accent); }
.legal-contact-icon { color: var(--accent); }
.legal-contact-card strong { color: var(--text); font-size: 16px; }
.legal-contact-card > span:not(.legal-contact-icon):not(.text-link) { color: var(--muted); font-size: 12px; }
.legal-contact-card .text-link { color: var(--accent); margin-top: 6px; }
.legal-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); gap: 50px; align-items: start; }
.legal-toc { position: sticky; top: 112px; max-height: calc(100dvh - 140px); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-bar .legal-toc { top: 150px; max-height: calc(100dvh - 175px); }
.legal-toc h2 { font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: policy; }
.legal-toc li { counter-increment: policy; }
.legal-toc a { display: flex; gap: 10px; padding: 9px 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.legal-toc a::before { content: counter(policy,decimal-leading-zero); font-size: 10px; opacity: .7; padding-top: 2px; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--accent); }
.legal-document { min-width: 0; padding: 8px 36px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.legal-section { padding-block: 30px; scroll-margin-top: 150px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); }
.legal-section:target .legal-section-heading > span { background: var(--yellow); color: #19170e; }
.legal-section-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.legal-section-heading > span { flex-shrink: 0; font: 500 11px var(--sans); color: var(--accent); background: var(--surface-2); padding: 8px; border-radius: 6px; }
.legal-section h2 { margin: 0; font-size: clamp(23px,2.4vw,30px); letter-spacing: -.6px; line-height: 1.3; }
.legal-section p { color: var(--article); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-document-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
    .legal-hero { gap: 30px; grid-template-columns: minmax(0,1fr) 250px; }
    .legal-layout { grid-template-columns: 210px minmax(0,1fr); gap: 24px; }
    .legal-document { padding-inline: 24px; }
}
@media (max-width: 680px) {
    .legal-hero, .legal-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .legal-hero { padding-block: 15px 30px; margin-bottom: 28px; }
    .legal-toc, .admin-bar .legal-toc { position: static; max-height: none; padding: 20px; }
    .legal-toc ol { columns: 2; column-gap: 20px; }
    .legal-toc li { break-inside: avoid; }
    .legal-toc a { font-size: 11px; }
    .legal-document { padding-inline: 20px; }
    .legal-section-heading { gap: 10px; }
    .legal-section { padding-block: 25px; }
}
@media (max-width: 380px) { .legal-toc ol { columns: 1; } }
@media print {
    .legal-page .legal-toc, .legal-page .legal-contact-card, .legal-document-footer { display: none; }
    .legal-page .legal-layout, .legal-page .legal-hero { display: block; }
    .legal-page .legal-document { border: 0; padding: 0; background: white; }
    .legal-page .legal-section p, .legal-page h1, .legal-page h2 { color: black; }
    .legal-section-heading { break-after: avoid; }
}

/* Contact: dedicated CF7 form, practical support context and resource links. */
.contact-heading { max-width: 940px; padding-top: 24px; margin-bottom: 46px; }
.contact-heading h1 { font-size: clamp(38px,4.5vw,62px); }
.contact-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 32px; align-items: start; }
.contact-message-panel { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 140px; min-width: 0; }
.contact-panel-heading { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 25px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.contact-panel-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 12px; color: var(--accent); background: var(--surface-2); }
.contact-panel-heading h2 { font-size: 30px; letter-spacing: -.7px; margin-bottom: 8px; }
.contact-panel-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.contact-message-panel .wpcf7 label { display: block; font-size: 13px; font-weight: 500; }
.contact-message-panel .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.contact-message-panel .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.contact-message-panel .wpcf7 select, .contact-message-panel .wpcf7 textarea { width: 100%; min-height: 48px; border-radius: 9px; font-size: 16px; background: var(--bg); }
.contact-message-panel .wpcf7 textarea { min-height: 180px; resize: vertical; }
.contact-message-panel .wpcf7 input[type=checkbox], .contact-message-panel .wpcf7 input[type=radio] { width: auto; accent-color: var(--accent); }
.contact-message-panel .wpcf7-list-item { margin-left: 0; margin-right: 16px; }
.contact-message-panel .wpcf7 input[type=submit] { width: auto; min-height: 48px; padding: 13px 26px; border: 1px solid var(--yellow); border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--yellow); color: #19170e; cursor: pointer; }
.contact-message-panel .wpcf7 input[type=submit]:hover { background: #ffe78c; }
.contact-message-panel .wpcf7 input[type=submit]:disabled { opacity: .6; cursor: wait; }
.contact-message-panel .wpcf7-not-valid-tip { font-size: 12px; margin-top: 6px; color: #f39292; }
html[data-theme=light] .contact-message-panel .wpcf7-not-valid-tip { color: #a52323; }
.contact-message-panel .wpcf7 [aria-invalid=true] { border-color: #d96c6c; }
.contact-message-panel .wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 14px 16px; border-radius: 9px; font-size: 13px; color: var(--text); }
.contact-message-panel .contact-form { padding: 0; border: 0; background: transparent; }
.contact-privacy-note { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.contact-privacy-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.contact-help { min-width: 0; }
.contact-context-card { padding: 32px; background: radial-gradient(ellipse at top right,var(--hero-glow-1),transparent 75%),var(--banner-bg); border: 1px solid var(--banner-line); border-radius: 18px; }
.contact-context-card h2 { font-size: 36px; }
.contact-context-card h2 em { color: var(--banner-em); }
.contact-checklist { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-checklist li { display: flex; align-items: flex-start; gap: 12px; padding-block: 18px; border-top: 1px solid var(--banner-line); color: var(--banner-body); font-size: 12px; }
.contact-checklist li:last-child { padding-bottom: 0; }
.contact-checklist svg { width: 16px; height: 16px; margin-top: 4px; color: var(--mint); }
.contact-checklist strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 13px; }
.contact-email-card { padding: 24px 4px; }
.contact-email-card .eyebrow { margin-bottom: 10px; }
.contact-email-card a { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; overflow-wrap: anywhere; }
.contact-email-card svg { width: 16px; }
.contact-resources { margin-top: 65px; }
.contact-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.contact-resource { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.contact-resource:hover { border-color: var(--accent); }
.contact-resource-icon { color: var(--accent); margin-bottom: 20px; }
.contact-resource h3 { color: var(--text); font-size: 18px; }
.contact-resource p { color: var(--muted); font-size: 13px; }
.contact-resource .text-link { color: var(--accent); margin-top: auto; padding-top: 8px; font-size: 12px; }
@media (max-width: 900px) {
    .contact-layout { gap: 22px; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
    .contact-message-panel, .contact-context-card { padding: 24px; }
    .contact-resource-grid { gap: 15px; }
    .contact-resource { padding: 22px; }
}
@media (max-width: 680px) {
    .contact-heading { padding-top: 14px; margin-bottom: 30px; }
    .contact-layout, .contact-resource-grid { grid-template-columns: minmax(0,1fr); }
    .contact-panel-heading { gap: 12px; }
    .contact-panel-heading h2 { font-size: 26px; }
    .contact-message-panel { padding: 22px; }
    .contact-message-panel .wpcf7 input[type=submit] { width: 100%; }
    .contact-resources { margin-top: 40px; }
}

/* Installation guide: seven readable steps with a responsive roadmap. */
.guide-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: center; gap: 55px; padding-block: 24px 55px; }
.guide-hero .page-heading { margin: 0; }
.guide-hero h1 { font-size: clamp(38px,4.5vw,60px); }
.guide-hero .button-row { margin-top: 28px; }
.guide-ready { padding: 30px; border: 1px solid var(--banner-line); border-radius: 18px; background: radial-gradient(ellipse at top right,var(--hero-glow-1),transparent 75%),var(--banner-bg); }
.guide-ready h2 { font-size: 30px; }
.guide-ready ul { list-style: none; padding: 0; margin: 22px 0; }
.guide-ready li { display: flex; align-items: flex-start; gap: 10px; padding-block: 11px; border-top: 1px solid var(--banner-line); font-size: 13px; }
.guide-ready li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--mint); }
.guide-ready > p:last-child { margin: 0; color: var(--banner-body); font-size: 12px; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 40px; align-items: start; }
.guide-nav { position: sticky; top: 115px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; max-height: calc(100dvh - 150px); overflow-y: auto; }
.admin-bar .guide-nav { top: 150px; max-height: calc(100dvh - 180px); }
.guide-nav h2 { font: 600 11px/1.6 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; }
.guide-nav ol { list-style: none; padding: 0; margin: 20px 0; counter-reset: guide; }
.guide-nav li { counter-increment: guide; }
.guide-nav li a { display: flex; gap: 10px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.guide-nav li a::before { content: counter(guide,decimal-leading-zero); color: var(--accent); font-size: 10px; }
.guide-nav li a:hover, .guide-nav li a:focus-visible { color: var(--accent); }
.guide-nav > .text-link { font-size: 12px; }
.guide-steps { min-width: 0; }
.guide-step { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; scroll-margin-top: 155px; }
.guide-step:target { border-color: var(--accent); }
.guide-step-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.guide-number { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; font: 20px var(--serif); border-radius: 50%; color: var(--accent); background: var(--surface-2); }
.guide-step h2 { font-size: 29px; letter-spacing: -.7px; margin: 0; }
.guide-step > p { color: var(--article); line-height: 1.9; font-size: 14px; }
.guide-route { padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow-wrap: anywhere; }
.guide-route span { display: block; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.guide-route strong { font-size: 13px; font-weight: 500; }
.guide-note { border-left: 3px solid var(--mint); padding: 2px 0 2px 17px; margin-top: 24px; }
.guide-note strong { font-size: 13px; }
.guide-note p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.guide-note a, .guide-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-step .guide-tip { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.guide-finish { display: flex; align-items: flex-start; gap: 20px; padding: 28px; border: 1px solid var(--banner-line); border-radius: 16px; background: var(--banner-bg); }
.guide-finish > svg { width: 30px; height: 30px; color: var(--mint); }
.guide-finish h2 { font-size: 27px; margin-bottom: 10px; }
.guide-finish p { color: var(--banner-body); font-size: 13px; margin: 0; }
.guide-help { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; padding-top: 65px; scroll-margin-top: 150px; }
.guide-help > div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.guide-sources { margin: 40px 0 0; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 12px; }
@media (max-width: 1000px) {
    .guide-hero { gap: 30px; }
    .guide-layout { grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
    .guide-nav { padding: 20px; }
    .guide-step { padding: 26px; }
    .guide-help { gap: 30px; }
}
@media (max-width: 680px) {
    .guide-hero, .guide-layout, .guide-help { grid-template-columns: minmax(0,1fr); }
    .guide-hero { padding-block: 15px 30px; }
    .guide-nav, .admin-bar .guide-nav { position: static; max-height: none; }
    .guide-nav ol { columns: 2; column-gap: 20px; }
    .guide-nav li { break-inside: avoid; }
    .guide-step { padding: 22px; }
    .guide-step-heading { gap: 12px; align-items: flex-start; }
    .guide-step h2 { font-size: 25px; }
    .guide-number { width: 34px; height: 34px; flex-basis: 34px; font-size: 17px; }
    .guide-ready { padding: 24px; }
    .guide-finish { padding: 22px; gap: 12px; }
    .guide-help { padding-top: 40px; gap: 22px; }
}
@media (max-width: 380px) { .guide-nav ol { columns: 1; } }
@media print {
    .guide-nav, .guide-hero .button-row { display: none; }
    .guide-layout, .guide-hero, .guide-help { display: block; }
    .guide-step { break-inside: avoid; background: white; color: black; }
    .guide-step h2, .guide-step p { color: black; }
}

/* Alternate installation method within step five. */
.guide-alternative { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 155px; }
.guide-alternative h3 { font: 400 27px/1.25 var(--serif); letter-spacing: -.5px; margin-bottom: 14px; }
.guide-alternative > p:not(.eyebrow), .guide-method-steps { font-size: 14px; color: var(--article); line-height: 1.85; }
.guide-method-steps { padding-left: 22px; margin-block: 24px; }
.guide-method-steps li { padding-left: 6px; margin-bottom: 18px; }
.guide-method-steps li::marker { color: var(--accent); font-weight: 600; }
.guide-method-steps strong { color: var(--text); }
.guide-continue { margin-top: 22px; color: var(--accent); }
.guide-nav > .guide-method-link { display: flex; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
@media print { .guide-step:has(.guide-alternative) { break-inside: auto; } }

/* Theme detail: product showcase and a dedicated documentation surface. */
.product-heading { position: relative; max-width: none; padding: 25px 0 12px; }
.product-heading h1 { font-size: clamp(50px,6vw,80px); letter-spacing: -2.8px; margin-bottom: 18px; }
.product-heading > p:last-child { max-width: 720px; font-size: 15px; }
.product-jump-links { display: flex; flex-wrap: wrap; gap: 12px 30px; padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: 32px; }
.product-jump-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; min-height: 28px; }
.product-jump-links svg { width: 13px; height: 13px; color: var(--muted); }
.product-grid { grid-template-columns: minmax(0,1.7fr) minmax(300px,1fr); grid-template-areas: 'preview actions' 'content actions'; gap: 28px 36px; }
.product-showcase { grid-area: preview; scroll-margin-top: 140px; }
.product-showcase .detail-preview { overflow: hidden; padding: 0 12px 12px; border-radius: 18px; background: linear-gradient(145deg,var(--surface-2),var(--surface)); box-shadow: 0 18px 45px #00000018; }
.product-browser-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 44px; padding: 8px 6px; font-size: 10px; }
.product-browser-bar > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-browser-bar > svg { width: 14px; height: 14px; color: var(--muted); }
.product-browser-dots { display: flex; flex-shrink: 0; gap: 5px; }
.product-browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .45; }
.product-showcase .detail-preview img { height: auto; aspect-ratio: auto; }
.product-preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px 0; font-size: 10px; color: var(--muted); }
.product-preview-caption a { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text); }
.product-preview-caption svg { width: 12px; height: 12px; }
.product-grid .detail-panel { grid-area: actions; top: 110px; border-radius: 18px; padding: 30px; background: radial-gradient(ellipse at top right,var(--hero-glow-1),transparent 65%),var(--surface); box-shadow: 0 14px 45px #00000012; max-height: calc(100dvh - 135px); overflow-y: auto; scrollbar-width: thin; }
.admin-bar .product-grid .detail-panel { top: 145px; max-height: calc(100dvh - 170px); }
.product-grid .detail-panel h2 { font-size: 34px; letter-spacing: -1px; margin-block: 22px 12px; }
.product-grid .detail-panel > .muted { font-size: 13px; line-height: 1.8; margin-bottom: 26px; }
.product-grid .detail-badge { border-radius: 30px; padding: 7px 11px; }
.product-grid .detail-panel .button { min-height: 50px; border-radius: 9px; }
.product-grid .detail-meta > div { grid-template-columns: 76px minmax(0,1fr); font-size: 11px; gap: 12px; }
.product-grid .detail-meta dd { line-height: 1.7; }
.product-docs-link { margin-top: 22px; font-size: 14px; }
.product-save-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.product-save-row > span { font-size: 11px; line-height: 1.6; color: var(--muted); }
.product-save-row:has(button[hidden]) { display: none; }
.product-content-panel { grid-area: content; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; scroll-margin-top: 145px; }
.product-content-heading { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.product-content-heading h2 { font-size: 32px; margin-bottom: 12px; }
.product-content-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.product-description { font-size: 14px; line-height: 1.95; }
.product-description > p:first-child { font-size: 15px; color: var(--text); }
.product-description h2, .product-description h3, .product-description .product-legacy-heading { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 145px; }
.product-description .product-legacy-heading { color: var(--text); font-size: 17px; line-height: 1.5; }
.product-description li { padding-block: 4px; }
.product-description li::marker { color: var(--accent); }
.product-description pre { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--article); padding: 22px; font: 12px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre; tab-size: 2; }
.product-description pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-description img { border: 1px solid var(--line); }
.product-description .tdemo, .product-description .tdownload, .product-description .tinstall { padding: 10px 14px; font-size: 12px; border-radius: 8px; }
.product-content-index { background: var(--bg); padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 26px; }
.product-content-index > span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-size: 9px; margin-bottom: 10px; }
.product-content-index a { display: block; font-size: 12px; padding-block: 7px; color: var(--text); }
.product-content-index a:hover { color: var(--accent); }
.product-support { display: flex; gap: 16px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 32px; }
.product-support > span { color: var(--accent); }
.product-support h3 { font-size: 17px; margin-bottom: 10px; }
.product-support p { color: var(--muted); font-size: 12px; }
.product-support a { margin: 0 18px 8px 0; font-size: 12px; color: var(--accent); }
.theme-product > .collection-chips { padding-block: 22px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.theme-product + .comments-area { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.theme-product + .comments-area .comment-reply-title { font: 400 32px var(--serif); }
@media (max-width: 1050px) { .product-grid { gap: 24px; grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); } .product-grid .detail-panel, .product-content-panel { padding: 24px; } }
@media (max-width: 900px) {
    .product-grid { grid-template-columns: minmax(0,1fr); grid-template-areas: 'preview' 'actions' 'content'; }
    .product-grid .detail-panel, .admin-bar .product-grid .detail-panel { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 680px) {
    .product-heading { padding-top: 10px; margin-bottom: 24px; }
    .product-heading h1 { font-size: 54px; }
    .product-jump-links { gap: 10px 20px; margin-bottom: 24px; }
    .product-jump-links a { font-size: 11px; }
    .product-preview-caption { flex-wrap: wrap; gap: 8px; }
    .product-content-panel { padding: 22px; }
    .product-content-heading h2 { font-size: 28px; }
    .product-description pre { padding: 16px; }
    .theme-product + .comments-area { padding: 22px; }
}

/* Clear premium hierarchy and proper headings in authored setup content. */
.product-grid .detail-panel .product-premium-button { min-height: 56px; color: #211905; background: linear-gradient(120deg,#ffe995,#ffdb59 55%,#f3c83f); border-color: #ffe28a; box-shadow: 0 5px 18px #ffdb5920; font-weight: 700; }
.product-grid .detail-panel .product-premium-button:hover { background: #ffe99d; border-color: #fff0b5; box-shadow: 0 8px 22px #ffdb5930; }
.product-description h4 { font: 600 19px/1.5 var(--sans); letter-spacing: -.3px; color: var(--text); margin: 36px 0 20px; padding: 20px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 145px; }
.product-description h4::before { content: ''; display: inline-block; vertical-align: middle; width: 5px; height: 18px; margin-right: 10px; border-radius: 3px; background: var(--accent); }
.product-description h4:target { color: var(--accent); }

/* WordPress discussions: compact identity, readable threads, clear reply actions. */
.comments-area { --comment-avatar: 44px; }
.comments-area .comments-title { font: 400 clamp(24px,3vw,34px)/1.3 var(--serif); letter-spacing: -.7px; margin-bottom: 28px; overflow-wrap: anywhere; }
.comments-area .comment-list, .comments-area .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comments-area .comment-list .children { margin-left: 24px; padding-left: 22px; border-left: 1px solid var(--line); }
.comments-area .comment-list .children .children { margin-left: 12px; padding-left: 16px; }
.comments-area .comment-body { position: relative; padding: 24px; margin: 0 0 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; overflow-wrap: anywhere; }
.comments-area .bypostauthor > .comment-body { border-left: 3px solid var(--accent); background: var(--surface-2); }
.comments-area .comment-meta { position: relative; min-height: var(--comment-avatar); padding-left: calc(var(--comment-avatar) + 14px); margin-bottom: 18px; }
.comments-area .comment-author { font-size: 13px; line-height: 1.5; padding-top: 2px; }
.comments-area .comment-author .avatar { position: absolute; top: 0; left: 0; width: var(--comment-avatar); height: var(--comment-avatar); border-radius: 50%; border: 1px solid var(--line); margin: 0; }
.comments-area .comment-author .fn { font-weight: 650; font-style: normal; color: var(--text); }
.comments-area .comment-author .says { display: none; }
.comments-area .comment-metadata { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.comments-area .comment-metadata a { color: inherit; }
.comments-area .comment-metadata a:hover { color: var(--accent); }
.comments-area .edit-link { margin-left: 10px; }
.comments-area .comment-content { font-size: 14px; line-height: 1.85; color: var(--article); }
.comments-area .comment-content p { margin-bottom: 14px; }
.comments-area .comment-content > :last-child { margin-bottom: 0; }
.comments-area .comment-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.comments-area .comment-content img { max-width: 100%; height: auto; }
.comments-area .comment-content pre { overflow-x: auto; padding: 16px; background: var(--surface); border-radius: 8px; }
.comments-area .comment-content ul, .comments-area .comment-content ol { padding-left: 22px; }
.comments-area .reply { margin-top: 17px; }
.comments-area .comment-reply-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--text); font-size: 11px; font-weight: 600; }
.comments-area .comment-reply-link:hover { border-color: var(--accent); color: var(--accent); }
.comments-area .comment-awaiting-moderation { color: var(--accent); font-size: 12px; }
.comments-area .comment-respond { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-area .comment-list .comment-respond { margin: 0 0 24px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.comments-area .comment-reply-title { font: 400 30px/1.3 var(--serif); margin-bottom: 18px; }
.comments-area #cancel-comment-reply-link { display: inline-block; margin-left: 12px; font: 500 11px var(--sans); text-decoration: underline; color: var(--muted); }
.comments-area .comment-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.comments-area .comment-form > p { grid-column: 1 / -1; margin: 0; }
.comments-area .comment-form .comment-form-author { grid-column: 1; }
.comments-area .comment-form .comment-form-email { grid-column: 2; }
.comments-area .comment-form label { color: var(--text); font-size: 12px; margin-bottom: 8px; }
.comments-area .comment-form input:not([type=checkbox]):not([type=hidden]), .comments-area .comment-form textarea { max-width: none; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; font-size: 16px; min-height: 46px; }
.comments-area .comment-form textarea { min-height: 175px; resize: vertical; }
.comments-area .comment-form .comment-notes, .comments-area .comment-form .logged-in-as, .comments-area .comment-form .comment-form-cookies-consent { color: var(--muted); font-size: 12px; line-height: 1.8; }
.comments-area .comment-form-cookies-consent input { accent-color: var(--accent); margin-right: 8px; }
.comments-area .comment-form-cookies-consent label { color: var(--muted); }
.comments-area .comment-form .submit { width: auto !important; min-width: 180px; background: var(--yellow) !important; color: #19170e; border-color: var(--yellow) !important; font-size: 13px !important; font-weight: 650; cursor: pointer; padding-inline: 24px !important; }
.comments-area .comment-form .submit:hover { filter: brightness(1.06); }
.comments-area .comment-navigation { padding-block: 16px; margin-bottom: 20px; }
.comments-area .comment-navigation .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; }
.comments-area .no-comments { color: var(--muted); font-size: 13px; padding-block: 20px; }
@media (max-width: 680px) {
    .product-description h4 { font-size: 17px; margin-top: 28px; }
    .comments-area { --comment-avatar: 36px; }
    .comments-area .comment-body { padding: 18px; }
    .comments-area .comment-list .children { margin-left: 8px; padding-left: 10px; }
    .comments-area .comment-list .children .children { margin-left: 0; padding-left: 8px; }
    .comments-area .comment-list .children .children .children { padding-left: 0; border-left: 0; }
    .comments-area .comment-content { font-size: 13px; }
    .comments-area .comment-form { grid-template-columns: minmax(0,1fr); gap: 16px; }
    .comments-area .comment-form .comment-form-author, .comments-area .comment-form .comment-form-email { grid-column: 1 / -1; }
    .comments-area .comment-form .submit { width: 100% !important; }
    .comments-area .comment-list .comment-respond { padding: 16px; }
}

/* Explain when template-specific instructions take priority. */
.guide-template-notice { display: flex; align-items: flex-start; gap: 16px; padding: 24px; margin-bottom: 30px; border: 1px solid var(--banner-line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--banner-bg); }
.guide-template-notice > span { color: var(--accent); padding-top: 2px; }
.guide-template-notice h2 { margin: 0 0 10px; font: 600 16px/1.5 var(--sans); letter-spacing: 0; }
.guide-template-notice p { margin: 0; color: var(--banner-body); font-size: 13px; line-height: 1.85; }
@media (max-width: 680px) { .guide-template-notice { padding: 20px; gap: 12px; } }

/* Homepage design edit: a composed gallery with one lead preview. */
.hero-showcase.showcase-gallery { height: auto; width: 100%; max-width: 560px; margin-inline: auto; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg,var(--surface-2),var(--surface)); box-shadow: 0 25px 65px #00000025; }
.gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.gallery-heading .eyebrow { margin: 0; font-size: 9px; letter-spacing: 1.6px; }
.gallery-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.gallery-heading > a:hover { color: var(--accent); }
.gallery-heading svg { width: 13px; height: 13px; }
.gallery-previews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.gallery-card { display: block; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: 0 5px 15px #00000012; transition: transform .2s, border-color .2s, box-shadow .2s; }
.gallery-card-1 { grid-column: 1 / -1; }
.gallery-card:hover, .gallery-card:focus-visible { transform: translateY(-3px); border-color: var(--chip-line); box-shadow: 0 12px 25px #00000025; color: var(--text); }
.gallery-chrome { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; color: var(--muted); background: var(--surface); font-size: 8px; border-bottom: 1px solid var(--line); }
.gallery-chrome > span:first-child { letter-spacing: 2px; opacity: .7; }
.gallery-chrome > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gallery-chrome svg { width: 10px; height: 10px; }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 2.2; object-fit: cover; object-position: top; }
.gallery-card-1 img { aspect-ratio: 2.1; }
.gallery-card .image-placeholder { aspect-ratio: 2.2; min-height: 0; }
.gallery-card-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.gallery-card-caption > span:first-child { min-width: 0; }
.gallery-card-caption small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 3px; letter-spacing: .4px; }
.gallery-card-caption strong { display: block; color: var(--text); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.gallery-card-1 .gallery-card-caption strong { font: 400 24px/1.2 var(--serif); letter-spacing: -.5px; }
.gallery-card-1 .gallery-card-caption small { color: var(--accent); letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 6px; }
.gallery-card-arrow { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.gallery-card-1 .gallery-card-arrow { width: 34px; height: 34px; color: #19170e; background: var(--yellow); border-color: var(--yellow); }
.gallery-card-arrow svg { width: 14px; height: 14px; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 18px; color: var(--muted); font-size: 9px; }
.gallery-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.gallery-footer svg { width: 15px; height: 15px; color: var(--accent); }
.gallery-signature { font-size: 8px; letter-spacing: .8px; }
@media (min-width: 681px) and (max-width: 1000px) {
    .hero-showcase.showcase-gallery { padding: 15px; }
    .gallery-previews { gap: 10px; }
    .gallery-heading { flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
    .gallery-card-caption { padding: 10px; gap: 6px; }
    .gallery-card-caption small { font-size: 7px; }
    .gallery-card-caption strong { font-size: 11px; }
    .gallery-card-1 .gallery-card-caption strong { font-size: 22px; }
    .gallery-signature { display: none; }
}
@media (max-width: 680px) {
    .hero-showcase.showcase-gallery { padding: 16px; border-radius: 18px; }
    .gallery-heading { margin-bottom: 16px; }
    .gallery-previews { gap: 12px; }
    .gallery-footer { font-size: 9px; }
    .gallery-signature { display: none; }
}
@media (max-width: 380px) {
    .gallery-card-caption { padding: 10px; }
    .gallery-card:not(.gallery-card-1) .gallery-card-arrow { display: none; }
    .gallery-heading { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .gallery-card:hover, .gallery-card:focus-visible { transform: none; } }

/* Balance the gallery with the copy in the two-column hero. */
@media (min-width: 681px) {
    .hero-grid:has(.showcase-gallery) { min-height: 0; padding-block: 54px; }
    .hero-showcase.showcase-gallery { padding: 18px; }
    .showcase-gallery .gallery-heading { margin-bottom: 14px; }
    .showcase-gallery .gallery-card-1 img { aspect-ratio: 2.65; }
    .showcase-gallery .gallery-card-1 .image-placeholder { aspect-ratio: 2.65; }
    .showcase-gallery .gallery-card-1 .gallery-card-caption { padding: 10px 14px; }
    .showcase-gallery .gallery-card-1 .gallery-card-caption strong { font-size: 22px; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) { display: grid; grid-template-columns: 34% minmax(0,1fr); align-items: stretch; min-height: 78px; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .gallery-chrome { display: none; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) img { height: 100%; min-height: 78px; aspect-ratio: auto; object-fit: cover; object-position: top center; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .image-placeholder { min-height: 78px; aspect-ratio: auto; padding: 8px; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .image-placeholder span { display: none; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .gallery-card-caption { border-top: 0; border-left: 1px solid var(--line); padding: 10px; gap: 6px; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .gallery-card-caption small { display: none; }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .gallery-card-arrow { width: 22px; height: 22px; border: 0; }
    .showcase-gallery .gallery-footer { padding-top: 12px; }
}
@media (min-width: 681px) and (max-width: 1000px) {
    .showcase-gallery .gallery-card:not(.gallery-card-1) { grid-template-columns: 30% minmax(0,1fr); }
    .showcase-gallery .gallery-card:not(.gallery-card-1) .gallery-card-arrow { display: none; }
}

/* Adjacent theme discovery, with independent first/last-item handling. */
.theme-neighbors { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 48px; margin-bottom: 24px; }
.theme-neighbor { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: border-color .2s, background-color .2s; }
.theme-neighbor:hover, .theme-neighbor:focus-visible { border-color: var(--chip-line); background: var(--surface-2); }
.theme-neighbor-next { grid-column: 2; }
.neighbor-image { display: grid; place-items: center; flex: 0 0 94px; height: 78px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--accent); }
.neighbor-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.neighbor-copy { min-width: 0; }
.neighbor-direction { display: block; color: var(--accent); text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; margin-bottom: 8px; }
.neighbor-copy strong { display: block; font: 400 25px/1.25 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.neighbor-hint { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.neighbor-arrow { display: grid; place-items: center; flex: 0 0 34px; height: 34px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.neighbor-arrow svg { width: 16px; height: 16px; }
.theme-neighbor-prev .neighbor-arrow svg { transform: rotate(180deg); }
@media (max-width: 900px) { .theme-neighbor { gap: 12px; padding: 16px; } .neighbor-image { flex-basis: 68px; height: 68px; } .neighbor-copy strong { font-size: 22px; } }
@media (max-width: 680px) { .theme-neighbors { grid-template-columns: minmax(0,1fr); gap: 14px; } .theme-neighbor-next { grid-column: 1; } }

/* Editorial showcase: inset artwork, numbered selections and a lighter frame. */
.hero-showcase.showcase-editorial { padding: 20px; border-radius: 18px; background: radial-gradient(ellipse at 100% 0,var(--hero-glow-1),transparent 65%),var(--surface); border-color: var(--line); box-shadow: 0 24px 60px #00000020; }
.showcase-editorial .gallery-heading { margin-bottom: 18px; gap: 12px; }
.showcase-editorial .gallery-heading .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
.showcase-editorial .gallery-heading > a { font-size: 9px; }
.showcase-editorial .gallery-previews { gap: 14px; }
.showcase-editorial .gallery-card { border-radius: 10px; box-shadow: none; background: transparent; }
.showcase-editorial .gallery-card-1 { border-color: var(--chip-line); background: var(--bg); }
.showcase-editorial .gallery-chrome { display: none; }
.showcase-editorial .gallery-image-stage { min-width: 0; overflow: hidden; }
.showcase-editorial .gallery-card-1 .gallery-image-stage { padding: 16px 16px 0; background: linear-gradient(135deg,var(--surface-2),var(--banner-bg)); }
.showcase-editorial .gallery-card-1 img { aspect-ratio: 2.65; border: 1px solid var(--line); border-bottom: 0; border-radius: 5px 5px 0 0; object-position: top; box-shadow: 0 8px 24px #00000025; }
.showcase-editorial .gallery-card-1 .image-placeholder { aspect-ratio: 2.65; }
.showcase-editorial .gallery-card-1 .gallery-card-caption { padding: 15px 18px; gap: 14px; border-top: 1px solid var(--line); }
.showcase-editorial .gallery-edition { flex-shrink: 0; font: italic 28px/1 var(--serif); color: var(--muted); opacity: .65; }
.showcase-editorial .gallery-card-caption > span:nth-child(2) { min-width: 0; flex: 1; }
.showcase-editorial .gallery-card-1 .gallery-card-caption strong { font: 400 25px/1.2 var(--serif); letter-spacing: -.6px; }
.showcase-editorial .gallery-card-1 .gallery-card-caption small { font-size: 7px; letter-spacing: 1.3px; margin-bottom: 6px; }
.showcase-editorial .gallery-card-1 .gallery-card-arrow { width: 36px; height: 36px; background: transparent; color: var(--accent); border-color: var(--chip-line); }
.showcase-editorial .gallery-card:hover .gallery-card-arrow { background: var(--yellow); color: #19170e; border-color: var(--yellow); }
.showcase-editorial .gallery-card:not(.gallery-card-1) { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; min-height: 72px; border: 0; border-radius: 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-image-stage { height: 62px; border: 1px solid var(--line); border-radius: 6px; }
.showcase-editorial .gallery-card:not(.gallery-card-1) img { width: 100%; height: 62px; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: top; }
.showcase-editorial .gallery-card:not(.gallery-card-1) .image-placeholder { height: 62px; min-height: 0; padding: 8px; }
.showcase-editorial .gallery-card:not(.gallery-card-1) .image-placeholder span { display: none; }
.showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-card-caption { padding: 0; border: 0; gap: 6px; }
.showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-edition { display: none; }
.showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-card-caption small { display: block; font-size: 7px; margin-bottom: 6px; color: var(--muted); }
.showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-card-caption strong { font-size: 13px; }
.showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-card-arrow { display: grid; width: 18px; height: 24px; border: 0; background: transparent; color: var(--muted); }
.showcase-editorial .gallery-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 8px; }
.showcase-editorial .gallery-signature { font-size: 7px; }
@media (min-width: 681px) and (max-width: 1000px), (max-width: 420px) {
    .hero-showcase.showcase-editorial { padding: 15px; }
    .showcase-editorial .gallery-heading { flex-wrap: wrap; gap: 8px; }
    .showcase-editorial .gallery-card:not(.gallery-card-1) { grid-template-columns: 42px minmax(0,1fr); gap: 8px; }
    .showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-card-arrow { display: none; }
    .showcase-editorial .gallery-card:not(.gallery-card-1) .gallery-card-caption strong { font-size: 11px; }
    .showcase-editorial .gallery-card-1 .gallery-image-stage { padding: 10px 10px 0; }
}

/* Interactive theme studio: a single floating screen on an open sculptural stage. */
.hero-showcase.theme-studio { height: auto; width: 100%; max-width: 560px; margin-inline: auto; position: relative; }
.hero-grid:has(.theme-studio) { min-height: 0; padding-block: 54px; }
.studio-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.studio-heading .eyebrow { margin: 0; font-size: 9px; letter-spacing: 1.6px; }
.studio-seal { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.studio-seal svg { width: 18px; color: var(--accent); }
.studio-stage { position: relative; padding: 24px 22px 0; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.studio-stage::before { content: none; }
.studio-scene { display: block; color: var(--text); }
.studio-screen { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: 0 12px 28px #00000020; transform: none; transition: transform .3s; }
.studio-scene:hover .studio-screen { transform: none; }
.studio-screen-bar { display: flex; justify-content: space-between; gap: 10px; background: var(--surface-2); color: var(--muted); align-items: center; font: 8px/1.5 var(--sans); padding: 5px 7px 8px; }
.studio-browser-dots { display: inline-flex; align-items: center; gap: 4px; }
.studio-browser-dots i { width: 5px; height: 5px; background: var(--muted); opacity: .65; border-radius: 50%; }
.studio-screen-bar > svg { width: 12px; height: 12px; }
.studio-screen img { display: block; width: 100%; height: auto; aspect-ratio: 2.05; object-fit: cover; object-position: top; }
.studio-screen .image-placeholder { aspect-ratio: 2.05; min-height: 0; }
.studio-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 3px; }
.studio-caption small { display: block; font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 7px; color: var(--muted); }
.studio-caption strong { font: 400 32px/1.15 var(--serif); letter-spacing: -1px; color: var(--text); overflow-wrap: anywhere; }
.studio-explore { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; white-space: nowrap; color: var(--text); }
.studio-explore svg { width: 30px; height: 30px; padding: 7px; border: 1px solid var(--chip-line); color: var(--accent); border-radius: 50%; }
.studio-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.studio-choice { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; padding: 14px 4px; border: 0; border-top: 2px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); }
.studio-choice > span { font: italic 17px var(--serif); opacity: .65; }
.studio-choice strong { font: 500 11px/1.5 var(--sans); overflow-wrap: anywhere; }
.studio-choice[aria-pressed=true] { border-color: var(--accent); color: var(--text); }
.studio-choice[aria-pressed=true] > span { color: var(--accent); opacity: 1; }
.studio-choice:hover { color: var(--accent); }
.studio-hint { margin: 8px 0 0; color: var(--muted); font: italic 12px var(--serif); }
@media (max-width: 1000px) { .studio-stage { padding: 18px 14px 0; } .studio-caption strong { font-size: 26px; } .studio-explore { font-size: 9px; gap: 6px; } }
@media (max-width: 680px) { .hero-grid:has(.theme-studio) { padding-block: 40px 25px; } .hero-showcase.theme-studio { max-width: 500px; } .studio-screen { transform: none; } }
@media (max-width: 380px) { .studio-caption { gap: 10px; } .studio-caption strong { font-size: 24px; } .studio-caption small { font-size: 7px; } .studio-choice { gap: 6px; } .studio-choice strong { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .studio-screen, .studio-scene:hover .studio-screen { transform: none; } }

/* NBT wordmark badge, shared by the header and footer. */
.brand .brand-monogram { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; font-family: Glegoo, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: -0.8px; }
@media (max-width: 680px) { .brand .brand-monogram { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; font-size: 11px; letter-spacing: -.6px; } }

/* Header live theme search. Native dialog handles focus trapping and Escape. */
.theme-search-dialog { width: min(620px,calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 25px 90px #0006; overflow-y: auto; }
.theme-search-dialog::backdrop { background: #06080dc9; backdrop-filter: blur(5px); }
.theme-search-dialog .dialog-heading h2 { font-size: 30px; margin: 0; }
.header-search-form { display: flex; gap: 10px; margin-top: 24px; }
.header-search-form input { flex: 1; min-width: 0; width: 100%; font-size: 16px; }
#header-search-status { color: var(--muted); font-size: 12px; margin: 16px 0; }
.header-search-results { display: grid; gap: 8px; }
.header-search-result { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.header-search-result:hover, .header-search-result:focus-visible { border-color: var(--accent); }
.header-search-result img { width: 72px; height: 52px; object-fit: cover; object-position: top; border-radius: 5px; }
.header-search-result strong { display: block; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.header-search-result small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
@media (max-width: 1100px) { .header-actions { gap: 6px; } .header-row { gap: 14px; } }
@media (max-width: 680px) { .header-actions .icon-button, .header-row .menu-toggle { width: 34px; height: 34px; padding: 8px; } .header-row { gap: 7px; } .theme-search-dialog { padding: 20px; } .header-search-form .button { padding-inline: 14px; } }
@media (max-width: 420px) { .header-row .brand small { display: none; } .header-row .brand { font-size: 12px; gap: 6px; } .header-row .brand-monogram { width: 30px; height: 32px; flex-basis: 30px; font-size: 10px; } .header-actions { gap: 4px; } }

/* Keep header search out of very narrow mobile headers (340px remains visible). */
@media (width < 340px) { .header-actions [data-open-search] { display: none; } }

/* Compact homepage introduction and readable discovery controls. */
.hero-compact .hero-grid { gap: 40px; padding-block: 30px; }
.hero-compact h1 { font-size: clamp(38px, 3.65vw, 52px); line-height: 1.12; margin-bottom: 18px; }
.hero-compact .eyebrow { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 14px; }
.hero-compact .hero-description { font-size: 15px; line-height: 1.75; margin-bottom: 22px; }
.hero-compact .hero-notes { margin-top: 18px; font-size: 12px; gap: 16px; }
.hero-compact .theme-studio { max-width: 510px; }
.hero-compact .studio-stage { padding: 12px 12px 0; border-radius: 12px; }
.hero-compact .studio-screen-bar { font-size: 10px; padding: 6px 8px; }
.hero-compact .studio-screen img, .hero-compact .studio-screen .image-placeholder { aspect-ratio: 2.1; }
.hero-compact .studio-caption { padding: 12px 2px; gap: 12px; }
.hero-compact .studio-caption strong { font-size: 28px; }
.hero-compact .studio-explore { font-size: 12px; }
.hero-compact .studio-choices { margin-top: 10px; gap: 12px; }
.hero-compact .studio-choice { padding: 10px 2px; gap: 8px; min-height: 44px; }
.hero-compact .studio-choice strong { font-size: 13px; color: var(--text); }
.site-nav a { font-size: 13px; color: var(--text); }
.filter-fields label > span { font-size: 11px; letter-spacing: .8px; color: var(--text); }
.filter-fields select { font-size: 13px; }
.result-count, .collection-chips, .filter-reset { font-size: 12px; }
.chip { font-size: 12px; min-height: 36px; }
.card-type { font-size: 11px; }
@media (min-width: 901px) and (max-width: 1150px) {
    .header-row { gap: 18px; }
    .site-nav { gap: 16px; }
}
@media (max-width: 900px) {
    .hero-compact .hero-grid { gap: 24px; }
    .hero-compact h1 { font-size: 38px; }
    .hero-compact .hero-notes { gap: 10px; }
    .hero-compact .studio-explore { font-size: 11px; gap: 6px; }
}
@media (max-width: 680px) {
    .hero-compact .hero-grid { padding-block: 24px; gap: 22px; }
    .hero-compact .hero-copy { max-width: none; }
    .hero-compact h1 { font-size: clamp(34px, 8.5vw, 46px); }
    .hero-compact .hero-description { margin-bottom: 16px; font-size: 14px; }
    .hero-compact .hero-notes { margin-top: 14px; font-size: 11px; }
    .hero-compact .button-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
    .hero-compact .studio-caption strong { font-size: 24px; }
    .hero-compact .studio-choice strong { font-size: 12px; }
    .hero-compact .studio-choice > span { font-size: 14px; }
}

/* Mobile filters collapse without disabling the selected form controls. */
.filter-disclosure > summary { display: none; }
.filter-search-submit { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.filter-search-submit svg { width: 18px; height: 18px; }
.active-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.active-filter-chips .chip { gap: 10px; color: var(--text); min-height: 40px; overflow-wrap: anywhere; max-width: 100%; }
.filter-clear { font-size: 12px; padding: 10px; color: var(--accent); }
#theme-results { scroll-margin-top: 110px; }
@media (min-width: 681px) { .filter-disclosure:not([open]) > .filter-fields { display: grid; } }
@media (max-width: 680px) {
    .filter-disclosure > summary { display: flex; align-items: center; gap: 8px; list-style: none; min-height: 52px; padding: 10px 16px; cursor: pointer; color: var(--text); font-size: 14px; }
    .filter-disclosure > summary::-webkit-details-marker { display: none; }
    .filter-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 20px; background: var(--yellow); color: #17181c; font-size: 12px; }
    .filter-chevron { margin-left: auto; margin-right: 4px; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
    .filter-disclosure[open] .filter-chevron { transform: rotate(225deg); }
    .filter-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
    .filter-panel .filter-search { padding: 10px 14px; gap: 8px; }
    .filter-panel .filter-search > svg { display: none; }
    .filter-panel .filter-search input{ font-size: 16px; }
    .filter-panel .filter-fields select { font-size: 14px; }
    .filter-panel .filter-fields > .button { position: sticky; bottom: 10px; box-shadow: 0 4px 18px #0003; }
}

.active-filter-chips + .collection-chips .filter-reset { display: none; }

/* Explain the available filters before visitors expand the mobile panel. */
@media (max-width: 680px) {
    .filter-disclosure > summary { gap: 12px; padding-block: 14px; align-items: flex-start; }
    .filter-discovery-icon { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent); margin-top: 2px; }
    .filter-discovery-icon circle { fill: var(--surface); }
    .filter-discovery-copy { display: block; min-width: 0; flex: 1; }
    .filter-discovery-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
    .filter-discovery-hint { display: block; margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--muted); }
    .filter-discovery-action { display: block; margin-top: 6px; font-size: 12px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
    .filter-disclosure .filter-chevron { flex: 0 0 9px; margin-top: 7px; }
    .filter-hide-label, .filter-disclosure[open] .filter-show-label { display: none; }
    .filter-disclosure[open] .filter-hide-label { display: inline; }
}

/* Mobile spacing and secondary copy: keep browsing compact and readable. */
@media (max-width: 680px) {
    .hero-compact, .collection { --mobile-secondary: #c0c0c8; }
    [data-theme="light"] .hero-compact, [data-theme="light"] .collection { --mobile-secondary: #555660; }
    .hero-compact .hero-grid { padding-block: 18px; gap: 16px; }
    .hero-compact .eyebrow { margin-bottom: 10px; }
    .hero-compact h1 { margin-bottom: 14px; }
    .hero-compact .hero-description { margin-bottom: 12px; line-height: 1.65; color: var(--mobile-secondary); }
    .hero-compact .hero-notes { margin-top: 10px; color: var(--mobile-secondary); }
    .hero-compact .studio-caption { padding-block: 9px; }
    .hero-compact .studio-choices { margin-top: 6px; }
    .collection.section { padding-top: 20px; }
    .collection .section-heading { gap: 8px; margin-bottom: 18px; }
    .collection .section-heading .eyebrow { margin-bottom: 8px; }
    .collection .section-heading .muted { line-height: 1.6; }
    .collection .section-heading .muted,
    .collection .result-count,
    .collection .filter-discovery-hint,
    .collection .card-body p,
    .collection .collection-chips > span,
    .collection .chip { color: var(--mobile-secondary); }
    .collection .chip.active, .collection .chip[aria-current="true"] { color: var(--accent); }
}

/* Configurable collection grid: step down before cards become too narrow. */
.collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.collection-grid .card-heading, .collection-grid .card-heading h3 { min-width: 0; }
.collection-grid .card-heading h3, .collection-grid .card-body p { overflow-wrap: anywhere; }
@media (min-width: 1200px) {
    .collection-grid.grid-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 900px) {
    .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .collection-grid.mobile-columns-2 { gap: 12px; }
    .collection-grid.mobile-columns-2 .card-body { padding: 12px 9px; }
}

/* Blog archive controls are independent of the theme collection. */
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-grid .card-heading, .blog-grid .card-heading h3 { min-width: 0; }
.blog-grid .card-heading h3, .blog-grid .image-placeholder { overflow-wrap: anywhere; }
@media (min-width: 1200px) {
    .blog-grid.blog-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .blog-grid.blog-mobile-2 .image-placeholder { padding: 18px 10px; font-size: 13px; }
}
@media (max-width: 380px) {
    .blog-grid.blog-mobile-2 { gap: 12px; }
    .blog-grid.blog-mobile-2 .card-body { padding: 12px 9px; }
}

/* Related themes have independent desktop/mobile settings. */
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-grid .card-heading, .related-grid .card-heading h3 { min-width: 0; }
.related-grid .card-heading h3, .related-grid .card-body p { overflow-wrap: anywhere; }
@media (min-width: 1200px) {
    .related-grid.related-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) {
    .related-grid.related-mobile-2 { gap: 12px; }
    .related-grid.related-mobile-2 .card-body { padding: 12px 9px; }
}
