/*
Theme Name: Old Hickory Sheds
Theme URI: https://onlinehickorysheds.com
Description: Custom theme for the Old Hickory Sheds Online redesign (ported from the Astro demo). Content comes from custom post types plus the JSON files in /data. No page builder, no jQuery, no external requests (YouTube loads only after a click).
Author: Olympic Web Design
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: hickory
*/

/* ---------- Fonts (self-hosted; drop the woff2 files in assets/fonts, see README-WORDPRESS.md) ---------- */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --pine: #1f3d2b; --pine-deep: #132a1d; --pine-soft: #2c5a3f;
  --wheat: #e9b949; --wheat-soft: #f6e3b0; --barn: #9e3b2c;
  --cream: #f7f2e8; --sawdust: #ede3d0; --ink: #1e1d1a; --stone: #6b6a63; --line: #ddd0b8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(30 29 26 / .06), 0 4px 14px rgb(30 29 26 / .06);
  --shadow-lift: 0 2px 4px rgb(30 29 26 / .08), 0 12px 28px rgb(30 29 26 / .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-sans); line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; font-variation-settings: "SOFT" 50, "opsz" 72; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h4 { font-weight: 600; margin: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--wheat); }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--wheat-soft); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 100; background: var(--wheat); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 1rem; }
.icon { flex-shrink: 0; vertical-align: -.2em; }

/* ---------- Layout helpers ---------- */
.container-x { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container-x { padding-inline: 2rem; } }
.prose-w { max-width: 70ch; }
.stack { display: grid; gap: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1.2fr 1fr; } .split.even { grid-template-columns: 1fr 1fr; } .split.narrow-left { grid-template-columns: 1fr 1.6fr; } }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .items-center { align-items: center; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-14 { margin-top: 3.5rem; }
.section { padding-block: 3.5rem; } .section-alt { background: rgb(237 227 208 / .6); border-block: 1px solid var(--line); }
.muted { color: var(--stone); } .small { font-size: .875rem; } .lead { font-size: 1.15rem; color: var(--stone); }
.h-section { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--pine); }
.on-dark .h-section { color: var(--cream); }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--barn); margin-bottom: .5rem; }
.on-dark .eyebrow { color: var(--wheat); }
.section-head { max-width: 48rem; margin-bottom: 2rem; }
.section-head .lead { margin-top: .75rem; }

/* ---------- Buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; min-height: 44px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, box-shadow .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: var(--cream); } .btn-primary:hover { background: var(--pine-soft); }
.btn-accent { background: var(--wheat); color: var(--ink); } .btn-accent:hover { background: #f1c95f; }
.btn-secondary { background: #fff; color: var(--pine); border-color: rgb(31 61 43 / .3); } .btn-secondary:hover { border-color: var(--pine); background: rgb(237 227 208 / .6); }
.btn-ghost { color: var(--pine); } .btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost-light { color: var(--cream); border-color: rgb(247 242 232 / .4); } .btn-ghost-light:hover { background: rgb(247 242 232 / .1); }
.btn-sm { padding: .45rem .9rem; font-size: .875rem; min-height: 38px; }
.btn-block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .875rem; font-weight: 500; color: var(--ink); text-decoration: none; font-family: inherit; }
button.chip, label.chip, a.chip { cursor: pointer; } button.chip:hover, a.chip:hover, label.chip:hover { border-color: rgb(31 61 43 / .6); }
.chip[aria-pressed="true"], .chip.is-active, .chip[aria-selected="true"], input:checked + .chip { background: var(--pine); border-color: var(--pine); color: var(--cream); }
input:focus-visible + .chip { outline: 3px solid var(--pine); outline-offset: 2px; }
input:disabled + .chip { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.chip-free { background: var(--wheat-soft); border-color: var(--wheat); } .chip-quiet { background: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; border-radius: 4px; padding: .1rem .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag-free { background: var(--wheat); color: var(--ink); } .tag-barn { background: var(--barn); color: #fff; } .tag-pine { background: var(--pine); color: var(--cream); }

/* ---------- Cards, tables, lists ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.5rem; } .card-link { transition: box-shadow .2s; } .card-link:hover { box-shadow: var(--shadow-lift); }
.spec-table { width: 100%; text-align: left; }
.spec-table th, .spec-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--pine); font-weight: 600; } .spec-table tr:last-child > * { border-bottom: 0; }
.card-title-bar { background: var(--pine); color: var(--wheat); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .75rem 1rem; margin: 0; font-family: var(--font-sans); }
.checklist { display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--pine); }
.checklist li::after { content: ""; position: absolute; left: .38rem; top: .38em; width: .35rem; height: .6rem; border: solid var(--wheat); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.acc { border-bottom: 1px solid var(--line); }
.acc > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 600; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; width: .6rem; height: .6rem; border: solid var(--pine); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-right: .3rem; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc > div { padding-bottom: 1.1rem; }
.callout { display: flex; gap: .5rem; align-items: flex-start; background: var(--wheat-soft); border-radius: 8px; padding: .6rem .9rem; font-size: .9rem; }
.scroller { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; flex-shrink: 0; }
.masonry { columns: 3 240px; column-gap: .9rem; } .masonry > * { break-inside: avoid; margin-bottom: .9rem; }

/* ---------- Forms ---------- */
.field-label { display: block; margin-bottom: .4rem; font-weight: 600; } legend.field-label { padding: 0; }
.field-help { font-size: .875rem; color: var(--stone); margin-top: .25rem; }
.input { width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.input:focus { border-color: var(--pine); outline: 0; box-shadow: 0 0 0 3px rgb(31 61 43 / .25); }
.input[aria-invalid="true"] { border-color: var(--barn); box-shadow: 0 0 0 3px rgb(158 59 44 / .2); }
textarea.input { min-height: 7rem; }
.field-error { color: var(--barn); font-weight: 600; font-size: .875rem; margin-top: .25rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Header / footer ---------- */
.on-dark { color: var(--cream); }
.topbar { background: var(--pine-deep); font-size: 13px; color: rgb(247 242 232 / .85); display: none; }
@media (min-width: 768px) { .topbar { display: block; } }
.topbar .container-x { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; height: 2.25rem; }
.topbar a { text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; margin-left: 1.25rem; } .topbar a:hover { color: var(--wheat); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--pine); box-shadow: 0 1px 0 rgb(0 0 0 / .2); }
.site-header .bar { display: flex; align-items: center; gap: 1rem; height: 68px; }
@media (min-width: 1024px) { .site-header .bar { height: 76px; } }
.site-header .logo { margin-right: auto; } .site-header .logo img { height: 2.25rem; width: auto; display: block; }
@media (min-width: 1024px) { .site-header .logo img { height: 2.75rem; } .site-header .logo { margin-right: 1rem; } }
.main-nav { display: none; flex: 1; } @media (min-width: 1024px) { .main-nav { display: block; } }
.main-nav ul { display: flex; align-items: center; gap: .15rem; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 8px; color: var(--cream); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link.is-current { background: rgb(255 255 255 / .1); } .nav-link.is-current { box-shadow: inset 0 -3px 0 var(--wheat); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-actions { display: none; align-items: center; gap: .75rem; } @media (min-width: 1024px) { .header-actions { display: flex; } }
.header-phone { display: grid; line-height: 1.2; text-decoration: none; font-weight: 700; } .header-phone small { font-weight: 400; color: rgb(247 242 232 / .7); font-size: .75rem; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: rgb(255 255 255 / .1); border: 0; color: var(--cream); cursor: pointer; } @media (min-width: 1024px) { .menu-btn { display: none; } }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); max-height: calc(100vh - 120px); overflow-y: auto; }
.mega-inner { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(3, 1fr); padding-block: 1.75rem; }
.mega h3 { font-family: var(--font-sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--barn); margin-bottom: .5rem; }
.mega a { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--pine); } .mega a:hover { background: var(--sawdust); }
.mega img { width: 2.5rem; height: 2.5rem; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.mobile-menu { background: var(--pine-deep); border-top: 1px solid rgb(255 255 255 / .1); max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu a, .mobile-menu summary { display: block; padding: .8rem 0; border-bottom: 1px solid rgb(255 255 255 / .08); text-decoration: none; font-weight: 600; color: var(--cream); cursor: pointer; }
.mobile-menu details a { padding-left: 1rem; font-weight: 500; font-size: .95rem; }
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 40; background: rgb(19 42 29 / .96); border-top: 1px solid rgb(255 255 255 / .1); padding: .6rem .75rem max(.6rem, env(safe-area-inset-bottom)); }
.mobile-bar div { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 28rem; margin-inline: auto; } @media (min-width: 1024px) { .mobile-bar { display: none; } }
.site-footer { background: var(--pine-deep); color: rgb(247 242 232 / .85); padding-bottom: 6rem; } @media (min-width: 1024px) { .site-footer { padding-bottom: 0; } }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--wheat); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; } @media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } } @media (min-width: 1280px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.footer-grid h3 { font-family: var(--font-sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--wheat); margin-bottom: .75rem; }
.footer-grid li { margin-bottom: .4rem; font-size: .9rem; }
.legal { border-top: 1px solid rgb(255 255 255 / .1); padding-block: 2rem; font-size: .78rem; line-height: 1.6; color: rgb(247 242 232 / .65); display: grid; gap: .75rem; }
.legal .dealer { font-size: .9rem; color: rgb(247 242 232 / .85); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; background: var(--pine-deep); color: var(--cream); min-height: 420px; }
.hero.lg { min-height: 78svh; } @media (min-width: 640px) { .hero.lg { min-height: 620px; } .hero { min-height: 460px; } } .hero.sm { min-height: 320px; }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; } .hero picture img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(19 42 29 / .35), rgb(19 42 29 / .15) 35%, rgb(19 42 29 / .82)), linear-gradient(90deg, rgb(19 42 29 / .55), rgb(60 35 10 / .05)); }
.hero .container-x { padding-block: 5rem 2.5rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 56rem; color: var(--cream); } .hero.lg h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
.hero .lead { color: rgb(247 242 232 / .9); max-width: 42rem; margin-top: 1rem; font-size: 1.2rem; }
.crumbs { font-size: .85rem; margin-bottom: 1rem; } .crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; } .crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; } .crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-head { background: rgb(237 227 208 / .6); border-bottom: 1px solid var(--line); padding-block: 2.5rem; } .page-head h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--pine); margin-top: 1rem; }

/* ---------- Components ---------- */
.trust { background: var(--pine-deep); } .trust ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: center; padding-block: 1.1rem; font-weight: 600; font-size: .92rem; } .trust li { display: inline-flex; gap: .5rem; align-items: center; } .trust svg { color: var(--wheat); } .trust a { color: var(--wheat); }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.product-card .pic { position: relative; aspect-ratio: 4/3; background: #fff; overflow: hidden; } .product-card .pic img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .3s; } .product-card:hover .pic img { transform: scale(1.04); }
.product-card .pic .tag { position: absolute; left: .75rem; top: .75rem; }
.product-card .body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; border-top: 1px solid var(--line); }
.product-card h3 { font-size: 1.25rem; color: var(--pine); } .product-card h3 a { text-decoration: none; } .product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .size { margin-top: auto; padding-top: 1rem; display: flex; gap: .4rem; align-items: center; font-size: .875rem; font-weight: 600; } .product-card .size svg { color: var(--barn); }
.steps { counter-reset: s; display: grid; gap: 1rem; } @media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--pine); color: var(--wheat); font-family: var(--font-display); font-weight: 700; }
.steps strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--pine); }
.cta-band { background: var(--pine); color: var(--cream); } .cta-band .container-x { padding-block: 3.5rem; display: grid; gap: 1.5rem; } .cta-band h2 { color: var(--cream); font-size: clamp(1.75rem, 3vw, 2.4rem); max-width: 40rem; }
.tabs-bar { position: sticky; top: 68px; z-index: 30; background: rgb(247 242 232 / .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); } @media (min-width: 1024px) { .tabs-bar { top: 76px; } }
.tabs-bar .container-x { display: flex; gap: .25rem; overflow-x: auto; padding-block: .5rem; font-size: .9rem; } .tabs-bar a { flex-shrink: 0; padding: .5rem .8rem; border-radius: 6px; font-weight: 600; color: var(--pine); text-decoration: none; } .tabs-bar a:hover { background: var(--sawdust); }
[id] { scroll-margin-top: 8rem; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .5rem; }
.swatch { display: block; cursor: pointer; } .swatch > span { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #fff; transition: box-shadow .15s; }
.swatch img { display: block; width: 100%; height: 2.2rem; object-fit: cover; } .swatch.big img { height: 4.5rem; }
.swatch em { display: block; padding: .25rem .4rem; font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.25; }
.swatch input:checked + span { border-color: var(--pine); box-shadow: 0 0 0 2px var(--pine); } .swatch input:focus-visible + span { box-shadow: 0 0 0 4px rgb(31 61 43 / .4); }
.dot-grid { display: flex; flex-wrap: wrap; gap: .4rem; } .dot { display: block; } .dot > span { display: block; width: 2.3rem; height: 2.3rem; overflow: hidden; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; } .dot img { width: 100%; height: 100%; object-fit: cover; } .dot input:checked + span { box-shadow: 0 0 0 2px var(--pine); } .dot input:focus-visible + span { box-shadow: 0 0 0 4px rgb(31 61 43 / .5); }
.preview { padding: 1rem; } .preview dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; border-top: 1px solid var(--line); margin: 1rem 0 0; padding-top: 1rem; font-size: .875rem; } .preview dt { color: var(--stone); } .preview dd { margin: 0; font-weight: 600; }
@media (min-width: 1024px) { .sticky-lg { position: sticky; top: 140px; align-self: start; } }
[data-shed] .trim { fill: var(--trim); } [data-shed] .trim-s { stroke: var(--trim); fill: none; } [data-shed] .edge { fill: none; stroke: #1e1d1a; stroke-opacity: .45; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.video { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: var(--pine-deep); box-shadow: var(--shadow); } .video button { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: none; color: var(--cream); cursor: pointer; } .video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; } .video .play { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--wheat); color: var(--ink); } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-fig { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; } .gallery-fig button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; } .gallery-fig img { display: block; width: 100%; } .gallery-fig figcaption { display: flex; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; font-size: .75rem; color: var(--stone); } .gallery-fig figcaption b { color: var(--pine); }
dialog.lightbox { margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; } dialog.lightbox::backdrop { background: rgb(15 30 21 / .97); }
.lb { display: flex; flex-direction: column; height: 100%; color: var(--cream); } .lb-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.25rem; font-size: .9rem; } .lb-stage { position: relative; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 0 .5rem 1rem; } .lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: var(--cream); cursor: pointer; } .lb-btn:hover { background: rgb(255 255 255 / .22); } .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(0 0 0 / .4); } .lb-prev { left: .5rem; } .lb-next { right: .5rem; }
.checker-result { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1.25rem; } .checker-result.is-free { border-color: var(--wheat); background: rgb(246 227 176 / .6); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: .25rem; max-height: 18rem; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lift); padding: .25rem 0; } .suggest li { padding: .5rem 1rem; cursor: pointer; } .suggest li:hover, .suggest li[aria-selected="true"] { background: var(--sawdust); }
.progress { display: flex; gap: .35rem; margin: 1.25rem 0 2rem; } .progress li { flex: 1; font-size: .75rem; font-weight: 600; color: var(--stone); border-top: 4px solid var(--line); padding-top: .4rem; } .progress li.done, .progress li.current { border-color: var(--pine); color: var(--pine); } .progress li.current { border-color: var(--wheat); }
.summary dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .4rem 1rem; margin: 0; } .summary dt { font-weight: 600; color: var(--pine); } .summary dd { margin: 0; overflow-wrap: anywhere; }
.alert { padding: 1rem 1.25rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; } .alert.ok { border-color: var(--pine); } .alert.err { border-color: var(--barn); }
.card-scroll { width: min(78vw, 17rem); }
.pad-hero { padding-block: 1rem; }
@media (prefers-reduced-motion: no-preference) { html.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; } html.js [data-reveal].is-in { opacity: 1; transform: none; } dialog.lightbox[open] .lb-stage img { animation: lb-in .22s ease; } @keyframes lb-in { from { opacity: 0; transform: scale(.98); } } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.wp-content > * + * { margin-top: 1rem; }
