/* Rocking C Farms · Pilot Car Routes website
   Same palette as the app (app/src/lib/theme.ts): dark tooled leather for the road,
   cream and tan for the office, turquoise for the route, jade for go, brass for headings. */

:root {
  --bg: #140F0B;
  --surface: #22180F;
  --ink: #F2E7D3;
  --muted: #CDB79A;
  --line: #4A3624;
  --turquoise: #36C9BE;
  --on-turquoise: #06201D;
  --brass: #D3A64B;
  --cream: #F2EADD;
  --card: #FBF7F0;
  --tan: #E8DCCB;
  --tan-line: #D9C9B2;
  --text: #2A1F18;
  --text-muted: #5E4A39;
  --teal-ink: #0F7C73;
  --radius: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Alegreya Sans', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
a:hover { color: #0A5A54; }
h1, h2, h3 { font-family: 'Oswald', system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--turquoise); color: var(--on-turquoise); padding: 8px 12px; border-radius: 8px; }

/* ---------- dark (road) sections ---------- */
.dark { background: var(--bg); color: var(--ink); }
.dark a { color: var(--turquoise); }

.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; flex-direction: column; text-decoration: none; flex-grow: 1; }
.dark .brand { color: var(--ink); }
.brand-name { font-family: 'Rye', Georgia, serif; font-size: 26px; line-height: 1.1; }
.brand-by { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 0.18em; color: var(--turquoise); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; color: #E6D6C0; font-size: 17px; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: #2B1F15; }
.site-nav .login { border: 1px solid var(--line); margin-left: 6px; font-weight: 700; color: var(--ink); }

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding-top: 32px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 56px; }
.eyebrow { font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.16em; color: var(--turquoise); }
.light .eyebrow { color: var(--teal-ink); }
.hero h1 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(38px, 6vw, 58px); line-height: 1.08; }
.lead { font-size: 21px; color: #DCCBB4; max-width: 34em; }
.hero-img { flex: 1 1 360px; display: flex; justify-content: center; }
.hero-img img { width: 100%; height: auto; max-width: 540px; aspect-ratio: 9 / 8.4; object-fit: cover; object-position: 50% 10%; border-radius: 24px 24px 0 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 14px; font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary, .dark a.btn-primary { background: var(--turquoise); color: var(--on-turquoise); }
.btn-primary:hover { background: #5AD6CD; color: var(--on-turquoise); }
.btn-ghost, .dark a.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--turquoise); }

/* ---------- light (office) sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 46em; }
.section-head p { color: var(--text-muted); font-size: 19px; }
.band { background: var(--tan); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--tan-line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 22px; }
.card p { color: #4A3A2C; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); color: var(--turquoise); display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 20px; }

.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.split > * { flex: 1 1 380px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { background: var(--card); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex-shrink: 0; margin-top: 3px; }

.story { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.story img { width: 210px; height: auto; flex: 0 0 auto; }
.story-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.story-text p { color: #4A3A2C; }

/* ---------- request access ---------- */
.access { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.access-intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.access-intro h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(28px, 4vw, 36px); }
.access-intro p { color: #DCCBB4; }
form.request { flex: 1 1 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
form.request .full { grid-column: 1 / -1; }
form.request label { display: flex; flex-direction: column; gap: 6px; font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
form.request input, form.request select, form.request textarea {
  min-height: 48px; border-radius: 10px; border: 1px solid #5A4330; background: #1A120C; color: var(--ink);
  font-family: 'Alegreya Sans', sans-serif; font-size: 17px; padding: 10px 12px;
}
form.request textarea { min-height: 96px; resize: vertical; }
form.request input:focus, form.request select:focus, form.request textarea:focus { outline: 2px solid var(--turquoise); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; font-size: 17px; }
.form-status.ok { color: #5CCB93; }
.form-status.err { color: #F08A7C; }

.site-footer { border-top: 1px solid #3A2B20; padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; color: #B39C80; }

/* ---------- company page ---------- */
.page-hero { padding-top: 40px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.page-hero .hero-text { padding-bottom: 0; }
.page-hero img { width: 240px; height: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fact { background: var(--card); border: 1px solid var(--tan-line); border-radius: 16px; padding: 20px; }
.fact strong { display: block; font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 600; color: var(--text); }
.fact span { color: var(--text-muted); }
.prose { max-width: 42em; display: flex; flex-direction: column; gap: 18px; color: #3A2B20; }

/* ---------- parent company pages ---------- */
.site-nav .call { background: var(--turquoise); color: var(--on-turquoise); font-weight: 700; margin-left: 6px; }
.dark .site-nav .call { color: var(--on-turquoise); }
.site-nav .call:hover { background: #5AD6CD; color: var(--on-turquoise); }
.sub-bar { background: #1A120C; border-top: 1px solid #2B1F15; }
.sub-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 52px; }
.sub-bar strong { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: 18px; color: var(--ink); flex-grow: 1; }
.sub-bar a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; color: #E6D6C0; text-decoration: none; font-size: 16px; }
.sub-bar a:hover { color: var(--turquoise); }
.home-hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.home-hero h1 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(42px, 7vw, 72px); line-height: 1.05; }
.divisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.division { background: var(--card); border: 1px solid var(--tan-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.division:hover { border-color: var(--teal-ink); transform: translateY(-2px); color: var(--text); }
.division h3 { font-size: 26px; }
.division p { color: #4A3A2C; flex-grow: 1; }
.snapshot { display: flex; flex-wrap: wrap; gap: 8px; }
.snapshot a { font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: .03em; color: #F2E7D3; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(127,224,214,.55); background: rgba(47,168,156,.12); }
.snapshot a:hover, .snapshot a:focus-visible { background: rgba(47,168,156,.3); border-color: #7FE0D6; }
.divisions-small { margin-top: 20px; }
.division.division-side { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; }
.division.division-side img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: 50% 15%; }
@media (max-width: 560px) { .division.division-side { grid-template-columns: 1fr; } .division.division-side img { aspect-ratio: 4 / 3; height: auto; } }
.generations { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-bottom: 56px; }
.generations figure { margin: 0; }
.generations img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid var(--tan-line); }
.generations figcaption { margin-top: 8px; font-family: 'Oswald', sans-serif; letter-spacing: .04em; color: var(--teal-ink); text-align: center; }
@media (max-width: 860px) { .generations { grid-template-columns: repeat(2, minmax(0, 1fr)); } .generations figure:first-child { grid-column: 1 / -1; justify-self: center; width: 60%; } }
@media (max-width: 560px) { .generations { gap: 10px; } .generations figcaption { font-size: 13px; } }
.division.division-text { padding: 24px 26px; }
.division .more { font-family: 'Oswald', sans-serif; color: var(--teal-ink); letter-spacing: 0.02em; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); color: var(--turquoise); display: flex; align-items: center; justify-content: center; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.terms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.terms li { background: var(--card); border: 1px solid var(--tan-line); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.terms li span:first-child { font-weight: 700; }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.contact-strip h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(26px, 4vw, 34px); }
.contact-strip p { color: #DCCBB4; }
[hidden] { display: none !important; }

@media (max-width: 560px) {
  form.request { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: 24px; }
}

/* ---------- photos ---------- */
.division { padding: 0; overflow: hidden; }
.division-photo { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; }
.division-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.photo-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--tan-line); }
.photo-frame img { width: 100%; height: auto; }
.page-hero .hero-photo { flex: 1 1 320px; max-width: 460px; }
.page-hero .hero-photo img { width: 100%; height: auto; border-radius: 20px; }

/* Photo row (storage page) */
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.photo-row img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

/* Seasonal decorations (seasonal.js) — only in the empty side margins; never blocks clicks */
.rcf-rail { position: fixed; top: 0; bottom: 0; z-index: 5; pointer-events: none; overflow: hidden; display: none; }
.rcf-rail-left { left: 0; }
.rcf-rail-right { right: 0; }
.rcf-rail svg { display: block; }
.rcf-fall { position: absolute; top: -20px; width: 9px; height: 9px; border-radius: 2px 9px; opacity: .85; animation: rcf-fall linear infinite; }
.season-christmas .rcf-fall { background: #fff; border-radius: 50%; width: 6px; height: 6px; box-shadow: 0 0 0 1px rgba(120,150,170,.45); }
@keyframes rcf-fall {
  0% { transform: translate(0, -20px) rotate(0deg); }
  50% { transform: translate(18px, 50vh) rotate(180deg); }
  100% { transform: translate(-8px, 105vh) rotate(360deg); }
}
.rcf-bulb { animation: rcf-twinkle 3s ease-in-out infinite; }
@keyframes rcf-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.rcf-glow { animation: rcf-twinkle 4s ease-in-out infinite; }
.rcf-strip { display: block; height: 30px; background: var(--bg); line-height: 0; }
.rcf-has-rails .rcf-strip { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rcf-fall { display: none; }
  .rcf-bulb, .rcf-glow { animation: none; }
}

/* Western tiles (tech page): tooled leather, brass stitching, turquoise conchos */
.tiles .tile { position: relative; background: linear-gradient(180deg, #FBF7F0 0%, #F4EBDD 100%); border: 1px solid #CDB79A; border-top: 4px solid var(--teal-ink); box-shadow: 0 6px 16px rgba(60,40,20,.10); transition: transform .15s ease, box-shadow .15s ease; }
.tiles .tile::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(122,85,52,.35); border-radius: 12px; pointer-events: none; }
.tiles .tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(60,40,20,.16); }
.tile-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #2F8F82, #0F5F57); box-shadow: 0 0 0 3px #F4EBDD, 0 0 0 5px #B08A55; }
.tile-icon svg { width: 24px; height: 24px; fill: none; stroke: #F2E7D3; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing (tech page) */
#pricing { position: relative; }
.price-group { display: flex; align-items: center; gap: 14px; font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: 24px; margin: 40px 0 18px; color: var(--text); }
.price-group::after { content: ""; flex: 1; height: 6px; border-radius: 3px; background: repeating-linear-gradient(135deg, #B08A55 0 4px, #7A5A32 4px 7px); opacity: .7; }
.price-group:first-of-type { margin-top: 8px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.price-card {
  position: relative; border-radius: 18px; padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 10px; color: #F2E7D3;
  background:
    radial-gradient(circle at 16px 16px, #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at calc(100% - 16px) 16px, #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at 16px calc(100% - 16px), #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(ellipse at 30% 0%, rgba(255,220,170,.10), transparent 60%),
    repeating-radial-gradient(circle at 70% 120%, rgba(0,0,0,.05) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #3B2818 0%, #2A1C11 55%, #20150C 100%);
  border: 1px solid #5A3E26; box-shadow: 0 10px 22px rgba(40,25,10,.28), inset 0 1px 0 rgba(255,230,190,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.price-card::before { content: ""; position: absolute; inset: 9px; border: 1.8px dashed rgba(211,166,75,.6); border-radius: 12px; pointer-events: none; }
.price-card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(40,25,10,.34); }
.tp-support-btns { display: flex; flex-direction: column; gap: 10px; }
.price-card .care-btn { margin-top: auto; align-self: stretch; position: relative; z-index: 1; }
.price-card.featured { border: 2px solid #2FA89C; box-shadow: 0 0 0 4px rgba(47,168,156,.18), 0 12px 26px rgba(40,25,10,.32); }
.price-card.featured::before { border-color: rgba(127,224,214,.7); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, #36C9BE, #1F9A8F); color: #06201D; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; border: 2px solid #20150C; white-space: nowrap; }
.price-card h4 { margin: 0; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.price-card .rope { display: block; width: 64px; height: 5px; border-radius: 3px; background: repeating-linear-gradient(135deg, #C9A267 0 4px, #8A6A3A 4px 7px); }
.price-card .price { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: 40px; color: #7FE0D6; line-height: 1.1; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.price-card .price span { font-family: 'Alegreya Sans', sans-serif; font-size: 18px; color: #CDB79A; }
.price-card p { margin: 0; color: #E8DCC6; position: relative; }
.price-note { margin-top: 16px; color: var(--text-muted); font-size: 16px; font-style: italic; }

/* Trade Post (trade.html) */
.btn-ghost-dark { border-color: #B08A55; color: var(--text); background: transparent; min-height: 44px; font-size: 16px; padding: 0 16px; }
.btn-ghost-dark:hover { border-color: var(--teal-ink); color: var(--teal-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.tp-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: tp; }
.tp-steps li { position: relative; background: var(--card); border: 1px solid var(--tan-line); border-top: 4px solid var(--teal-ink); border-radius: 16px; padding: 18px 18px 18px 64px; color: #3A2B20; counter-increment: tp; }
.tp-steps li::before { content: counter(tp); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1F8F84; color: #F2E7D3; font-family: 'Rye', Georgia, serif; font-size: 18px; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #B08A55; }
.tp-app { display: flex; flex-direction: column; gap: 16px; }
.tp-card { position: relative; background: var(--card); border: 1px solid #CDB79A; border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 16px rgba(60,40,20,.08); max-width: 880px; }
.tp-card::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(122,85,52,.3); border-radius: 12px; pointer-events: none; }
.tp-card > * { position: relative; }
.tp-card h2, .tp-stack > h2, .tp-section h2, .tp-panel > h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: 26px; color: var(--text); }
.tp-auth { max-width: 520px; }
.tp-center { text-align: center; align-items: center; margin: 0 auto; }
.tp-field { display: flex; flex-direction: column; gap: 6px; }
.tp-field label { font-weight: 700; color: var(--text); }
.tp-field small { color: var(--text-muted); font-size: 15px; }
.tp-field input, .tp-field select, .tp-field textarea { font: inherit; font-size: 18px; color: var(--text); background: #FFFDF9; border: 1.5px solid #CDB79A; border-radius: 12px; padding: 13px 15px; min-height: 54px; width: 100%; box-sizing: border-box; }
.tp-field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.tp-field input[type="file"] { padding: 12px; background: #F6EEDF; border-style: dashed; cursor: pointer; }
.tp-field label { font-size: 18px; }
.tp-card { width: 100%; box-sizing: border-box; }
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus { outline: 3px solid rgba(15,124,115,.35); border-color: var(--teal-ink); }
.tp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tp-check { display: flex; gap: 10px; align-items: flex-start; color: #3A2B20; }
.tp-check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--teal-ink); }
.tp-check[hidden] { display: none; }
.tp-link { background: none; border: 0; padding: 6px 0; color: var(--teal-ink); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.tp-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.tp-note { margin: 0; padding: 12px 14px; border-radius: 12px; }
.tp-ok { background: #DDF3EF; color: #0B4F48; border: 1px solid #9ED8CF; }
.tp-err { background: #F8E1DA; color: #7A2412; border: 1px solid #E9B2A2; }
.tp-muted { color: var(--text-muted); margin: 0; }
.tp-stack { display: flex; flex-direction: column; gap: 18px; }
.tp-hello { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); }
.tp-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 3px solid; border-image: repeating-linear-gradient(135deg, #C9A267 0 5px, #8A6A3A 5px 9px) 3; padding-bottom: 10px; }
.tp-tab { font-family: 'Oswald', sans-serif; font-size: 17px; letter-spacing: .04em; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #CDB79A; background: var(--card); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tp-tab.on { background: #2A1C11; color: #F2E7D3; border-color: #2A1C11; }
.tp-badge { background: #D8402F; color: #fff; border-radius: 999px; font-size: 13px; padding: 1px 8px; font-family: 'Alegreya Sans', sans-serif; font-weight: 700; }
.tp-badge[hidden] { display: none; }
.tp-panel { display: flex; flex-direction: column; gap: 18px; }
.tp-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tp-listing { position: relative; background: linear-gradient(180deg, #FBF7F0, #F4EBDD); border: 1px solid #CDB79A; border-top: 4px solid var(--teal-ink); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 16px rgba(60,40,20,.10); }
.tp-listing img, .tp-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.tp-noimg { display: grid; place-items: center; background: linear-gradient(160deg, #3B2818, #20150C); color: #E2B95A; font-family: 'Rye', Georgia, serif; font-size: 22px; text-align: center; padding: 16px; box-sizing: border-box; }
.tp-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tp-body h3 { font-size: 21px; color: var(--text); }
.tp-body p { margin: 0; color: #3A2B20; }
.tp-tag { align-self: flex-start; font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; background: #DDF3EF; color: #0B4F48; border-radius: 999px; padding: 3px 10px; }
.tp-tag.food { background: #FBE8C8; color: #6B4210; }
.tp-wants { background: #F2E7D3; border-radius: 10px; padding: 8px 10px; }
.tp-foodnote { font-size: 15px; color: #6B4210 !important; }
.tp-meta { color: var(--text-muted) !important; font-size: 15px; }
.tp-offer { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.tp-empty { grid-column: 1 / -1; text-align: center; padding: 30px; background: var(--card); border: 1.5px dashed #CDB79A; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tp-section { display: flex; flex-direction: column; gap: 12px; }
.tp-list { display: flex; flex-direction: column; gap: 12px; }
.tp-item { background: var(--card); border: 1px solid #CDB79A; border-left: 5px solid #B08A55; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tp-item p { margin: 0; color: #3A2B20; }
.tp-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tp-status { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: #EDE3D2; color: #5E4A39; }
.tp-status.s-pending { background: #FBE8C8; color: #6B4210; }
.tp-status.s-accepted, .tp-status.s-approved, .tp-status.s-active { background: #DDF3EF; color: #0B4F48; }
.tp-status.s-traded { background: #1F8F84; color: #fff; }
.tp-status.s-rejected, .tp-status.s-declined, .tp-status.s-suspended, .tp-status.s-removed { background: #F8E1DA; color: #7A2412; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-actions .btn { min-height: 44px; font-size: 16px; padding: 0 16px; }
.tp-contact { background: #DDF3EF; border: 1px solid #9ED8CF; border-radius: 12px; padding: 12px 14px; color: #0B4F48; }
.tp-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tp-rule { position: relative; background: linear-gradient(160deg, #3B2818 0%, #2A1C11 60%, #20150C 100%); border: 1px solid #5A3E26; border-radius: 18px; padding: 24px; color: #EADFC9; }
.tp-rule::before { content: ""; position: absolute; inset: 8px; border: 1.8px dashed rgba(211,166,75,.55); border-radius: 12px; pointer-events: none; }
.tp-rule h3 { font-family: 'Oswald', sans-serif; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: #E2B95A; margin-bottom: 8px; }
.tp-rule p { margin: 0; color: #EADFC9; }

.tp-manual { margin: -14px 0 22px; padding: 12px 16px; background: #F6EEDF; border: 1.5px dashed #B08A55; border-radius: 12px; color: #3A2B20; }
.tp-manual a { color: var(--teal-ink); font-weight: 700; }

/* Trade Post support banner */
.tp-support { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 38px; border-radius: 20px; color: #EADFC9;
  background:
    radial-gradient(circle at 18px 18px, #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at calc(100% - 18px) 18px, #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at 18px calc(100% - 18px), #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), #7FE0D6 0 2px, #2FA89C 2.5px 5px, #8A6A3A 5.5px 6.5px, transparent 7px),
    linear-gradient(160deg, #3B2818 0%, #2A1C11 55%, #20150C 100%);
  border: 2px solid #2FA89C; box-shadow: 0 10px 24px rgba(40,25,10,.25); }
.tp-support::before { content: ""; position: absolute; inset: 10px; border: 1.8px dashed rgba(211,166,75,.6); border-radius: 13px; pointer-events: none; }
.tp-support-text { position: relative; flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.tp-support h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; color: #FFF6E6; font-size: clamp(24px, 3vw, 32px); }
.tp-support p { margin: 0; color: #EADFC9; }
.tp-support strong { color: #7FE0D6; }
.tp-support-fine { font-size: 15px; color: #CDB79A !important; }
.tp-support .btn { position: relative; min-width: 220px; }

/* ---------- legal pages (terms, privacy, refunds) ---------- */
.legal-title { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: clamp(34px, 5vw, 50px); line-height: 1.1; }
.legal-date { color: #B39C80; font-size: 16px; }
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--tan-line); padding-left: 14px; font-size: 16px; }
.legal-toc a { text-decoration: none; padding: 5px 0; color: var(--text-muted); }
.legal-toc a:hover { color: var(--teal-ink); }
.legal-body { max-width: 44em; display: flex; flex-direction: column; gap: 34px; color: #3A2B20; font-size: 18px; line-height: 1.6; }
.legal-body-wide { grid-column: 1 / -1; max-width: 52em; }
.legal-body section { scroll-margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; font-size: 26px; color: var(--text); line-height: 1.2; }
.legal-body h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; color: var(--text); margin-top: 6px; letter-spacing: 0.01em; }
.legal-body ul:not(.terms) { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.legal-body .terms li span:last-child { flex: 1 1 22em; }
.legal-callout { background: var(--card); border: 1px solid var(--tan-line); border-left: 5px solid var(--teal-ink); border-radius: 16px; padding: 22px 24px; }
.site-footer .legal-links { flex-basis: 100%; font-size: 14px; }
.site-footer .legal-links a { color: #B39C80; }
.site-footer .legal-links a:hover { color: #7FE0D6; }
@media (max-width: 820px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; border-left: 0; padding-left: 0; }
}

/* ---------- Our Story ---------- */
.story-portrait { position: relative; max-width: 340px !important; }
.story-portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.photo-cap { display: block; margin-top: 8px; font-family: 'Oswald', sans-serif; letter-spacing: .04em; color: var(--turquoise); text-align: center; }
.story-prose { max-width: 46em; }
.story-families .division p { color: var(--text-muted); }
.story-together { border-color: var(--teal-ink); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--tan-line); max-width: 52em; }
.timeline li { position: relative; display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 10px 0 10px 22px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--tan); border: 2px solid var(--teal-ink); }
.timeline li.key::before { background: var(--teal-ink); }
.timeline .when { font-family: 'Oswald', sans-serif; letter-spacing: .03em; color: var(--teal-ink); }
.timeline li.key span:last-child { font-weight: 700; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.ladder { display: flex; flex-direction: column; gap: 14px; max-width: 60em; }
.ladder-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .ladder-split { grid-template-columns: 1fr; } }
.ladder-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ladder-col li { background: var(--card); border: 1px solid var(--tan-line); border-radius: 14px; padding: 12px 16px; position: relative; }
.ladder-col li + li::before { content: "↓"; position: absolute; top: -17px; left: 50%; transform: translateX(-50%); color: var(--teal-ink); font-size: 14px; line-height: 1; }
.ladder-join li.key { border: 2px solid var(--teal-ink); }
.ladder-join { position: relative; }
.ladder-join::before { content: "↓  ↓"; display: block; text-align: center; color: var(--teal-ink); margin: -8px 0 2px; letter-spacing: .5em; }
.story-links a { color: #3A2B20; background: var(--card); border-color: var(--teal-ink); }
.story-links a:hover, .story-links a:focus-visible { background: #fff; }

.story-served { margin-top: 28px; max-width: 72em; }
.generations:has(figure:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .generations:has(figure:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.meet { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--tan-line); border-radius: 16px; padding: 12px; margin-top: 6px; }
.meet img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; flex: none; }
.meet div { display: flex; flex-direction: column; gap: 4px; }
.meet b { font-family: 'Oswald', sans-serif; font-size: 20px; color: #20150C; }
.meet span { color: var(--text-muted); }
.meet a { font-family: 'Oswald', sans-serif; font-size: 18px; color: var(--teal-ink); text-decoration: none; }
