/* Thanksgiving 2026 on bearish.af: the storybook dining room (direction B). Hand-written, scoped to html[data-thanksgiving],
   loaded only while the theme is on (src/lib/feast/clock.ts decides; src/app/components/thanksgiving/README.md). */
html[data-thanksgiving]{--tg-green:#2f4a37;--tg-green-hi:#3d5f47;--tg-cream:#fff4e3;--tg-wall:#f7ead2;--tg-cranberry:#9e2b2f;--tg-pumpkin:#e8792b;--tg-gold:#f2b544;--tg-ink:#40251e;
  --bearish-cream:#fff4e3;--background:#fff4e3;background:#fff4e3}
html[data-thanksgiving] body{background:#fff4e3}

/* Seasonal copy and links: hidden markup all year, shown only here */
html[data-thanksgiving] [data-tg-off],html[data-thanksgiving] .tg-off{display:none!important}
html[data-thanksgiving] [data-tg-only="block"][hidden]{display:block!important}
html[data-thanksgiving] [data-tg-only="flex"][hidden]{display:flex!important}
html[data-thanksgiving] [data-tg-only="inline-flex"][hidden]{display:inline-flex!important}

/* The autumn wordmark */
html[data-thanksgiving] img[src*="logo-wordmark"],html[data-thanksgiving] img[src*="bearish-text-logo"]{content:url(media/logo-wordmark.webp);object-fit:contain}

/* Header: cream with a green rail and the leaf bunting hanging under it */
html[data-thanksgiving] nav[aria-label="Main navigation"],html[data-thanksgiving] [data-testid=phone-topbar]{background:rgba(255,244,227,.97)!important;border-bottom:3px solid var(--tg-green)!important}
html[data-thanksgiving] nav[aria-label="Main navigation"]::after,html[data-thanksgiving] [data-testid=phone-topbar]::after{content:"";position:absolute;left:0;right:0;top:100%;height:34px;pointer-events:none;background:url(media/bunting-strip.webp) 0 0/auto 34px repeat-x}
@media (max-width:767px){html[data-thanksgiving] [data-testid=phone-topbar]::after{height:26px;background-size:auto 26px}}

/* Home hero: the dining room wall, a plaid tablecloth band at the foot, pumpkins by the bear */
html[data-thanksgiving] [data-tg-hero]{position:relative;isolation:isolate;background:
  repeating-linear-gradient(90deg,rgba(47,74,55,.055) 0 22px,transparent 22px 64px),
  linear-gradient(180deg,#fbefd9 0,#f7e6c8 100%)!important}
/* The wall runs up under the header and bunting: the space that clears the fixed header gets the same stripes. */
html[data-thanksgiving] [data-tg-top]{background:repeating-linear-gradient(90deg,rgba(47,74,55,.055) 0 22px,transparent 22px 64px),#fbefd9!important}
/* Pumpkins and the cornucopia stand on the tablecloth band, inside the hero's content area, behind everything in it. */
html[data-thanksgiving] [data-tg-hero]>div:first-child{position:relative}
html[data-thanksgiving] [data-tg-hero]>div:first-child::after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:6px;height:clamp(76px,8vw,120px);pointer-events:none;background:url(media/pumpkins.webp) left 2% bottom/contain no-repeat,url(media/cornucopia.webp) right 2% bottom/contain no-repeat}
html[data-thanksgiving] [data-tg-hero]>div:last-child{position:relative;background:
  repeating-linear-gradient(90deg,rgba(158,43,47,.22) 0 14px,transparent 14px 28px),
  repeating-linear-gradient(0deg,rgba(158,43,47,.22) 0 14px,transparent 14px 28px),#fff4e3!important;border-top:3px solid var(--tg-cranberry)!important}
html[data-thanksgiving] [data-tg-hero]>div:last-child [role=region]{background:rgba(255,244,227,.9)}
/* Phones: the column of buttons runs edge to edge, so the decorations would sit on them. */
@media (max-width:767px){html[data-thanksgiving] [data-tg-hero]>div:first-child::after{display:none}}

/* The season's popup, where the migration popup was (ThanksgivingPopup.client.tsx) */
.tg-pop{display:none;align-items:flex-start;gap:12px;max-width:26rem;padding:12px 12px 12px 14px;border:2px solid #e8792b;border-radius:16px;background:#fff4e3;color:#40251e;box-shadow:0 10px 24px rgba(64,37,30,.18)}
.tg-pop-logo{flex:none;width:52px;height:46px;background:image-set(url(media/logo-symbol.webp) 1x,url(media/logo-symbol@2x.webp) 2x) center/contain no-repeat}
.tg-pop-body{display:flex;flex-direction:column;min-width:0;flex:1;font-size:14px;line-height:1.35;color:#40251e;text-decoration:none}
.tg-pop-title{font:900 17px/1.2 var(--font-header),sans-serif}
.tg-pop-line{color:#784437}
.tg-pop-badge{display:flex;align-items:center;gap:12px;margin:8px 0 0 -64px;font-size:13px;font-weight:600;line-height:1.3;color:#40251e}
.tg-pop-badge img{flex:none;width:52px;height:44px;object-fit:contain}
.tg-chip-badge{flex:none;width:36px;height:36px}
.tg-pop-cta{margin-top:6px;font-weight:700;color:#c25f17}
.tg-pop-body:hover .tg-pop-cta{text-decoration:underline}
.tg-pop-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;color:#784437}
.tg-pop-x:hover{background:#fbe3c7}
.tg-chip{display:none;align-items:center;height:48px;border:2px solid #e8792b;border-radius:16px;background:#fff4e3;box-shadow:0 6px 16px rgba(64,37,30,.18)}
.tg-chip-link{display:flex;align-items:center;gap:8px;flex:1;min-width:0;height:100%;padding-left:8px;color:#40251e;text-decoration:none;font-size:14px}
.tg-chip .tg-pop-logo{width:36px;height:32px}
.tg-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.tg-chip-cta{flex:none;margin-left:auto;white-space:nowrap;font-weight:700;color:#c25f17}
.tg-chip-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:#784437}
@media (max-width:359px){.tg-chip-text{display:none}}
@media (max-width:767px){.tg-chip{display:flex}}
@media (min-width:768px){.tg-pop{display:flex}}

/* Buttons: Feed the Bear in pumpkin with a dark edge, one height with Sign In */
.tg-pill{flex:none;align-items:center;justify-content:center;gap:6px;height:44px;padding:0 16px;border-radius:999px;border:2px solid var(--tg-ink,#40251e);background:#e8792b;color:#fff8f0!important;font:900 15px/1 var(--font-header),sans-serif;white-space:nowrap;text-decoration:none;box-shadow:0 3px 0 #40251e}
.tg-pill:hover{background:#d96c20}
.tg-pill:active{transform:translateY(2px);box-shadow:0 1px 0 #40251e}
.tg-pill:focus-visible{outline:3px solid #2f4a37;outline-offset:2px}
.tg-pill-icon{display:block;flex:none;width:22px;height:22px;background:url(media/leaf-maple.webp) center/contain no-repeat}
.tg-pill-bar{margin-left:auto;padding:0 10px;gap:4px;font-size:13px}
.tg-pill-bar .tg-pill-icon{width:18px;height:18px}
@media (max-width:374px){html[data-thanksgiving] .af-topbar a[aria-label="Bearish home"] img{width:84px}.tg-pill-bar{padding:0 8px;font-size:12px}.tg-pill-bar .tg-pill-icon{display:none}}
.tg-pill-lg{height:48px;padding:0 22px;font-size:16px}
.tg-menu-pill{background:#fbe3c7;border:2px solid #e8792b;border-radius:14px;color:#40251e!important}
.tg-tile{background:#fff4e3}
.tg-pie-icon{display:block;width:26px;height:26px;background:url(media/leaf-maple.webp) center/contain no-repeat}
.tg-tablet-only{margin-left:auto;margin-right:8px}
@media (min-width:1280px){html[data-thanksgiving] .tg-tablet-only[data-tg-only][hidden]{display:none!important}}
@media (prefers-reduced-motion:reduce){.tg-pill:active{transform:none}}

/* Type */
html[data-thanksgiving] [data-tg-hero] h1{color:#40251e}
html[data-thanksgiving] a:focus-visible,html[data-thanksgiving] button:focus-visible{outline-color:#2f4a37}

/* Footer: the plaid tablecloth edge and a pumpkin at each end */
html[data-thanksgiving] footer[role=contentinfo]{position:relative;border-top:6px solid var(--tg-cranberry)}
html[data-thanksgiving] footer[role=contentinfo]::before{content:"";position:absolute;left:0;right:0;top:-18px;height:12px;pointer-events:none;background:repeating-linear-gradient(90deg,#9e2b2f 0 12px,#fff4e3 12px 24px)}

/* Leaves, painted behind the page edges; they never take a tap */
.tg-decor{position:fixed;inset:0;z-index:30;overflow:hidden;pointer-events:none;contain:strict}
.tg-leaf{position:absolute;top:0;left:0;width:40px;height:40px;pointer-events:none;user-select:none;transform:translate(-200px,-200px);will-change:transform}
@media (max-width:767px){.tg-leaf{width:30px;height:30px}}

/* Toasts keep the cream */
html[data-thanksgiving] [data-sonner-toaster]{--normal-bg:#fff4e3!important;--normal-border:#e8c9a0!important}
