/* TodayNet: light, dense, fast. Bootstrap 5.3 + this file only. */
:root, [data-bs-theme=light] {
  --tn-brand: #0b5f73; --tn-brand-2: #f29f05; --tn-ink: #14232b;
  --tn-card: #ffffff; --tn-bg: #f3f6f8; --tn-line: #dde5ea; --tn-soft: #e8f1f4;
  --bs-primary: #0b5f73; --bs-primary-rgb: 11,95,115; --bs-link-color: #0b5f73; --bs-link-color-rgb: 11,95,115;
  --bs-link-hover-color: #07414f; --bs-body-bg: var(--tn-bg);
}
[data-bs-theme=dark] {
  --tn-brand: #4fc3d9; --tn-brand-2: #ffb938; --tn-ink: #e7eef2;
  --tn-card: #18232a; --tn-bg: #0f171c; --tn-line: #2a3943; --tn-soft: #1f2f38;
  --bs-primary: #4fc3d9; --bs-primary-rgb: 79,195,217; --bs-link-color: #7fd6e6; --bs-link-color-rgb: 127,214,230;
  --bs-link-hover-color: #b0e8f2; --bs-body-bg: var(--tn-bg);
}
body { background: var(--tn-bg); font-size: .95rem; }
a { text-decoration: none; } a:hover { text-decoration: underline; }
.btn-primary { --bs-btn-bg: var(--tn-brand); --bs-btn-border-color: var(--tn-brand); --bs-btn-hover-bg: #084a5a; --bs-btn-hover-border-color: #084a5a; --bs-btn-color:#fff; }
[data-bs-theme=dark] .btn-primary { --bs-btn-color:#0f171c; --bs-btn-hover-bg:#7fd6e6; --bs-btn-hover-border-color:#7fd6e6; }

/* Header */
.tn-header { background: var(--tn-card); position: sticky; top: 0; z-index: 1020; }
.tn-header > .navbar { padding-left: .75rem; padding-right: .75rem; }
.tn-brand { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.3rem; color: var(--tn-ink); }
.tn-brand strong { color: var(--tn-brand); }
.tn-logo { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: var(--tn-brand); color: #fff; font-weight: 800; font-size: 1.05rem; }
[data-bs-theme=dark] .tn-logo { color: #0f171c; }
.navbar .nav-link { font-weight: 500; padding-inline: .6rem !important; }
.navbar .nav-link.active { color: var(--tn-brand); box-shadow: inset 0 -2px 0 var(--tn-brand-2); }
.tn-nav-search { min-width: 220px; }
.tn-dateline { background: var(--tn-soft); color: var(--tn-ink); padding: .2rem 0; }

/* Hero + needs */
.tn-hero-h { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .25rem; }
.tn-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.tn-need { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem .3rem; background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .8rem; color: var(--tn-ink); font-weight: 600; font-size: .88rem; text-align: center; transition: transform .12s, border-color .12s; }
.tn-need:hover { text-decoration: none; border-color: var(--tn-brand); transform: translateY(-2px); }
.tn-need-i { font-size: 1.6rem; line-height: 1; }

/* Cards */
.tn-card { background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .8rem; padding: .9rem 1rem; }
.tn-card-h { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.tn-card-h h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.tn-more { margin-left: auto; font-size: .82rem; white-space: nowrap; }
.tn-meta { font-size: .76rem; color: var(--bs-secondary-color); }
.tn-src { font-size: .65rem; font-weight: 600; }
.tn-list li { padding: .45rem 0; border-bottom: 1px solid var(--tn-line); }
.tn-list li:last-child { border-bottom: 0; }
.tn-list-title { color: var(--tn-ink); font-weight: 600; line-height: 1.3; display: inline; }
.tn-tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #8a4b00; background: #fff1d6; border-radius: .3rem; padding: .05rem .35rem; }
[data-bs-theme=dark] .tn-tag { color: #ffd38a; background: #3a2c12; }
.tn-quick li { padding: .35rem 0; border-bottom: 1px solid var(--tn-line); }
.tn-quick-k { display: inline-block; min-width: 4.2rem; font-weight: 700; font-size: .8rem; color: var(--bs-secondary-color); }
.tn-linklist li { padding: .2rem 0; }
.tn-chip { display: inline-block; padding: .2rem .6rem; border: 1px solid var(--tn-line); border-radius: 999px; background: var(--tn-soft); color: var(--tn-ink); font-size: .82rem; }
.tn-chip:hover { border-color: var(--tn-brand); text-decoration: none; }
.tn-tile { display: block; padding: .65rem .75rem; background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .6rem; color: var(--tn-ink); }
.tn-tile:hover { border-color: var(--tn-brand); text-decoration: none; }
.tn-subnav { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .2rem; }
.tn-subnav a { white-space: nowrap; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--tn-line); background: var(--tn-card); color: var(--tn-ink); font-size: .85rem; }
.tn-subnav a.active { background: var(--tn-brand); border-color: var(--tn-brand); color: #fff; }
[data-bs-theme=dark] .tn-subnav a.active { color: #0f171c; }

/* Weather / FX */
.tn-wx-icon { font-size: 2.6rem; line-height: 1; }
.tn-wx-temp { font-size: 2rem; font-weight: 800; line-height: 1; }
.tn-wx-table th { font-weight: 600; width: 3.5rem; }
.tn-wx-table td, .tn-wx-table th, .tn-fx td, .tn-fx th { background: transparent; }

/* Deals */
.tn-deals li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--tn-line); }
.tn-deals li:last-child { border-bottom: 0; }
.tn-code { font-family: ui-monospace, monospace; font-size: .8rem; font-weight: 700; border: 1px dashed var(--tn-brand-2); background: transparent; color: var(--tn-ink); border-radius: .35rem; padding: .2rem .5rem; white-space: nowrap; }
.tn-code.copied { background: var(--tn-brand-2); color: #000; }

/* Shopping */
.tn-shop-band { background: linear-gradient(135deg, var(--tn-soft), var(--tn-card)); }
.tn-shop-hero { background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: 1rem; padding: 1.5rem; position: relative; overflow: hidden; }
.tn-shop-hero.has-banner { background-image: linear-gradient(90deg, var(--tn-card) 45%, color-mix(in srgb, var(--tn-card) 55%, transparent)), var(--tn-banner); background-size: cover; background-position: center; }
.tn-eyebrow { font-weight: 700; color: var(--tn-brand); text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; }
.tn-shop-search { max-width: 640px; }
.tn-disclosure { margin-top: .8rem; padding: .6rem .8rem; border-left: 3px solid var(--tn-brand-2); background: var(--tn-soft); border-radius: .3rem; max-width: 640px; }
.tn-stat { background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .8rem; padding: .8rem; }
.tn-stat strong { display: block; font-size: 1.5rem; color: var(--tn-brand); }
.tn-stat span { font-size: .82rem; color: var(--bs-secondary-color); }
.tn-dept-i { font-size: 1.5rem; display: block; }
.tn-product { display: flex; flex-direction: column; background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .6rem; overflow: hidden; }
.tn-product-img { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #fff; font-size: 2.5rem; }
.tn-product-img img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.tn-off { position: absolute; top: .4rem; left: .4rem; background: #c62828; color: #fff; font-size: .72rem; font-weight: 700; padding: .1rem .35rem; border-radius: .3rem; }
.tn-product-name { font-size: .83rem; font-weight: 600; line-height: 1.3; margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tn-product-name a { color: var(--tn-ink); }
.tn-price { font-weight: 800; font-size: 1.05rem; }

/* Tools */
.tn-calc label.form-label { display: block; margin-bottom: .7rem; font-weight: 600; font-size: .88rem; }
.tn-calc label .form-control, .tn-calc label .form-select { margin-top: .25rem; font-weight: 400; }
.tn-result { position: sticky; top: 6rem; }
.tn-result-body .tn-big { font-size: 2rem; font-weight: 800; color: var(--tn-brand); line-height: 1.1; }
.tn-result-body dl { display: grid; grid-template-columns: auto auto; gap: .2rem 1rem; margin: .8rem 0 0; }
.tn-result-body dt { font-weight: 500; color: var(--bs-secondary-color); }
.tn-result-body dd { margin: 0; text-align: right; font-weight: 600; }

/* Prose / footer / cookie */
.tn-prose { max-width: 720px; background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .8rem; padding: 1.5rem; }
.tn-prose h1 { font-size: 1.6rem; } .tn-prose h2 { font-size: 1.15rem; margin-top: 1.2rem; }
.tn-footer { background: var(--tn-card); border-top: 1px solid var(--tn-line); }
.tn-foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--bs-secondary-color); }
.tn-footer li { padding: .12rem 0; }
.tn-cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 420px; z-index: 1080; background: var(--tn-card); border: 1px solid var(--tn-line); border-radius: .8rem; padding: 1rem; }
@media (max-width: 575.98px) { .tn-card { padding: .8rem; } .tn-needs { grid-template-columns: repeat(3, 1fr); } .tn-shop-hero { padding: 1rem; } }
.tn-footer .btn-link { font-size: inherit; text-decoration: none; vertical-align: baseline; }
.tn-unearned { outline: 2px dashed #d39e00; outline-offset: -2px; }
.tn-nocomm { position: absolute; bottom: .4rem; left: .4rem; right: .4rem; background: #fff3cd; color: #664d03; font-size: .68rem; font-weight: 700; padding: .1rem .3rem; border-radius: .3rem; text-align: center; }
.pagination { --bs-pagination-active-bg: var(--tn-brand); --bs-pagination-active-border-color: var(--tn-brand); --bs-pagination-color: var(--tn-brand); }
/* Size guides */
.tn-size-table th, .tn-size-table td { white-space: nowrap; text-align: center; }
.tn-size-table tr.tn-hit > * { background: color-mix(in srgb, var(--tn-brand-2) 35%, transparent) !important; font-weight: 700; }
.tn-card-outline { height: calc(var(--card-w, 323px) * 0.63); width: var(--card-w, 323px); max-width: 100%; border: 2px dashed var(--tn-brand); border-radius: 12px; display: grid; place-items: center; color: var(--bs-secondary-color); font-size: .8rem; }
.tn-ring-stage { min-height: 140px; display: grid; place-items: center; }
.tn-ring-circle { border: 3px solid var(--tn-brand); border-radius: 50%; width: 90px; height: 90px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--tn-brand-2) 40%, transparent); }
.tn-bed-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--tn-soft); border-radius: .5rem; overflow: hidden; }
.tn-bed-room { position: absolute; border: 3px solid var(--tn-ink); background: var(--tn-card); }
.tn-bed-clear { position: absolute; border: 2px dashed var(--tn-brand-2); }
.tn-bed-bed { position: absolute; background: color-mix(in srgb, var(--tn-brand) 25%, transparent); border: 2px solid var(--tn-brand); border-radius: 4px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--tn-ink); text-align: center; }
.tn-bed-bed.too-big { background: #f8d7da; border-color: #c62828; }
.tn-load-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .25rem; font-size: .82rem; }
.tn-load-grid > div { padding: .15rem .4rem; border-radius: .3rem; background: var(--tn-soft); }
.tn-load-grid > div.tn-hit { background: color-mix(in srgb, var(--tn-brand-2) 45%, transparent); font-weight: 700; }
.tn-tyre-bar { height: 10px; border-radius: 5px; background: var(--tn-soft); position: relative; margin: .35rem 0 .1rem; }
.tn-tyre-bar span { position: absolute; top: -3px; width: 4px; height: 16px; border-radius: 2px; background: var(--tn-brand); }
.tn-paper-stage { position: relative; width: 100%; max-width: 300px; aspect-ratio: 420 / 594; margin: 0 auto; }
.tn-paper { position: absolute; left: 0; bottom: 0; border: 1.5px solid var(--tn-brand); background: color-mix(in srgb, var(--tn-brand) 6%, var(--tn-card)); }
.tn-paper span { position: absolute; top: 4px; right: 6px; font-size: .72rem; font-weight: 700; color: var(--tn-brand); }
.tn-size-table .text-start { white-space: normal; min-width: 7rem; }

/* ===== Christmas section ===== */
.tn-xmas { --x-red: #b3202b; --x-red-2: #8c1520; --x-green: #1f6b3a; --x-gold: #e0ad1a; }
.tn-xmas-hero { position: relative; border-radius: 1rem; overflow: hidden; color: #fff; padding: 1.6rem 1.5rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.25) 0 1.5px, transparent 2.5px) 0 0 / 31px 31px,
    linear-gradient(135deg, var(--x-red) 0%, var(--x-red-2) 55%, var(--x-green) 100%); }
.tn-xmas-hero.has-banner { background: linear-gradient(90deg, rgba(90,10,18,.92) 0%, rgba(90,10,18,.75) 45%, rgba(20,60,35,.25) 100%), var(--tn-banner) center / cover; }
.tn-xmas-hero-inner { position: relative; max-width: 640px; }
.tn-xmas-hero .breadcrumb a, .tn-xmas-hero .breadcrumb-item.active, .tn-xmas-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.85); }
.tn-xmas-eyebrow { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--x-gold); }
.tn-xmas-h { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.tn-countdown { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .3rem .9rem; font-size: .95rem; }
.tn-countdown strong { color: var(--x-gold); font-size: 1.15rem; }
.tn-xmas-feature { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--x-green); color: #fff; }
.tn-xmas-feature:hover { text-decoration: none; color: #fff; filter: brightness(1.08); }
.tn-xmas-feature-i { font-size: 2.4rem; line-height: 1; }
.tn-xmas-tile { border-top: 3px solid var(--x-red); }
.tn-xmas-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: .8rem; color: #fff !important;
  background: linear-gradient(90deg, #b3202b, #1f6b3a); }
.tn-xmas-strip:hover { text-decoration: none; filter: brightness(1.08); }
.tn-nav-xmas { color: #b3202b !important; font-weight: 700; }
[data-bs-theme=dark] .tn-nav-xmas { color: #ff7b85 !important; }
.tn-xmas-sides { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .1rem .75rem; font-size: .9rem; }
.tn-xmas-summary { border-top: 4px solid var(--x-red); }
.tn-xmas-summary .tn-big { color: var(--x-red); }
[data-bs-theme=dark] .tn-xmas-summary .tn-big { color: #ff7b85; }
.tn-timeline li { display: grid; grid-template-columns: 5.2rem 1fr; gap: .75rem; padding: .45rem .4rem; border-bottom: 1px dashed var(--tn-line); }
.tn-timeline li:last-child { border-bottom: 0; }
.tn-timeline time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--x-green); }
[data-bs-theme=dark] .tn-timeline time { color: #6fd39a; }
.tn-timeline .tn-day { display: block; font-size: .7rem; font-weight: 600; color: var(--bs-secondary-color); }
.tn-timeline li.key { background: color-mix(in srgb, var(--x-gold) 16%, transparent); border-radius: .4rem; }
.tn-timeline li.key span { font-weight: 700; }
.tn-xmas-list { columns: 2; column-gap: 1.5rem; padding-left: 1.1rem; }
.tn-xmas-list li { break-inside: avoid; padding: .1rem 0; }
@media (max-width: 575.98px) { .tn-xmas-list { columns: 1; } .tn-timeline li { grid-template-columns: 4.4rem 1fr; } }
@media print {
  .tn-header, .tn-footer, .tn-cookie, .tn-noprint, .tn-xmas-hero .breadcrumb, .tn-countdown { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .tn-xmas-hero { background: none !important; color: #000; padding: 0; }
  .tn-xmas-eyebrow { color: #000; }
  .tn-card { border: 0; padding: 0; }
  .tn-timeline li { padding: .2rem 0; }
}
/* Christmas: features, gift finder, posting dates */
.tn-xmas-feature.tn-tone-red { background: var(--x-red); }
.tn-xmas-feature.tn-tone-gold { background: #8a5d00; }
.tn-xmas-feature .small { opacity: .92; }
.tn-xmas-deadline { display: flex; gap: .5rem; align-items: center; padding: .6rem .9rem; border-radius: .7rem; border: 2px solid var(--x-gold); background: color-mix(in srgb, var(--x-gold) 12%, var(--tn-card)); color: var(--tn-ink); }
.tn-xmas-deadline:hover { text-decoration: none; }
.tn-gift-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.tn-gift-chip { background: color-mix(in srgb, var(--x-red) 8%, var(--tn-card)); border-color: color-mix(in srgb, var(--x-red) 35%, transparent); }
.tn-post-list .tn-post { display: flex; align-items: center; gap: .9rem; padding: .6rem .3rem; border-bottom: 1px solid var(--tn-line); }
.tn-post-list .tn-post:last-child { border-bottom: 0; }
.tn-post-date { min-width: 6.5rem; text-align: center; }
.tn-post-date strong { display: block; font-size: 1.02rem; color: var(--x-green); }
.tn-post-date span { display: block; font-size: .72rem; color: var(--bs-secondary-color); }
.tn-post-badge { font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; background: var(--tn-soft); }
.tn-post-today .tn-post-badge, .tn-post-soon .tn-post-badge { background: var(--x-red); color: #fff; }
.tn-post-open .tn-post-badge { background: color-mix(in srgb, var(--x-green) 18%, transparent); color: var(--x-green); }
.tn-post-passed { opacity: .55; }
.tn-post-passed .tn-post-date strong { text-decoration: line-through; color: var(--bs-secondary-color); }
.tn-post-tbc .tn-post-date strong { color: var(--bs-secondary-color); }
[data-bs-theme=dark] .tn-post-date strong, [data-bs-theme=dark] .tn-post-open .tn-post-badge { color: #6fd39a; }
@media (max-width: 575.98px) { .tn-post-list .tn-post { flex-wrap: wrap; gap: .3rem .7rem; } .tn-post-date { min-width: 5rem; text-align: left; } }
.tn-xmas-feature.tn-tone-teal { background: #0b5f73; }
.tn-xmas-feature-v { flex-direction: column; align-items: flex-start; gap: .5rem; }
.tn-xmas-feature-v .btn { margin-top: auto; }
.tn-party-group { margin-bottom: .6rem; }
.tn-party-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); margin: .4rem 0 .2rem; }
.tn-party-group ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.tn-party-group li { break-inside: avoid; padding: .15rem 0; border-bottom: 1px dashed var(--tn-line); }
.tn-party-group li strong { display: inline-block; min-width: 4.5rem; }
@media (max-width: 575.98px) { .tn-party-group ul { columns: 1; } }
.tn-tree-stage { position: relative; height: 300px; max-width: 420px; margin: 0 auto; border-top: 3px solid var(--tn-ink); border-bottom: 3px solid var(--tn-ink); background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--tn-brand) 5%, transparent)); }
.tn-tree-stage .lbl { position: absolute; right: 0; font-size: .7rem; color: var(--bs-secondary-color); }
.tn-tree { position: absolute; left: 50%; transform: translateX(-50%); }
.tn-tree-body { width: 100%; height: 100%; background: linear-gradient(to bottom, #2e8b57, #1f6b3a); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tn-tree-stand { position: absolute; left: 50%; transform: translateX(-50%); background: #7a4b22; border-radius: 3px 3px 0 0; }
.tn-tree-top { position: absolute; left: 50%; transform: translateX(-50%); color: #e0ad1a; line-height: 1; text-align: center; }
.tn-tree.too-tall .tn-tree-body { background: linear-gradient(to bottom, #c62828, #8c1520); }
/* Admin stats */
.tn-bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: .5rem; border-bottom: 1px solid var(--tn-line); }
.tn-bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; }
.tn-bar span { width: 100%; height: var(--h); min-height: 2px; background: var(--tn-brand); border-radius: 4px 4px 0 0; }
.tn-bar:hover span, .tn-bar:focus span { filter: brightness(1.2); }
.tn-bar:hover::after, .tn-bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(var(--h) + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--tn-ink); color: var(--tn-card); font-size: .75rem; padding: .2rem .45rem; border-radius: .3rem; z-index: 2; pointer-events: none; }
.tn-stats-table th, .tn-stats-table td { white-space: nowrap; text-align: center; font-size: .85rem; }
.tn-stats-table td.tn-bad { color: #c62828; font-weight: 700; }
.tn-stats-table td.tn-good { color: #1f6b3a; font-weight: 700; }
[data-bs-theme=dark] .tn-stats-table td.tn-bad { color: #ff8a8a; }
[data-bs-theme=dark] .tn-stats-table td.tn-good { color: #6fd39a; }
.tn-insights li { padding: .35rem 0; border-bottom: 1px solid var(--tn-line); font-size: .9rem; }
.tn-insights li:last-child { border-bottom: 0; }
.tn-ins-tag { display: inline-block; min-width: 6.2rem; font-weight: 700; font-size: .8rem; }
/* "Did you find what you needed?" */
.tn-feedback { background: var(--tn-soft); border-top: 1px solid var(--tn-line); padding: .9rem 0; margin-top: 2.5rem; }
.tn-feedback + .tn-footer { margin-top: 0 !important; }
.tn-fb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.tn-fb-more { max-width: 640px; }
.tn-fb-thanks { font-weight: 600; color: var(--tn-brand); }
.tn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tn-comments td { vertical-align: top; }
.tn-light-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: .4rem; align-items: end; margin-bottom: .4rem; }
.tn-light-row label { margin-bottom: 0 !important; font-size: .78rem !important; }
.tn-light-row .btn { margin-bottom: 1px; }
@media (max-width: 575.98px) { .tn-light-row { grid-template-columns: 1fr 1fr auto; } .tn-light-row > :first-child { grid-column: 1 / -1; } }
/* Consumer rights guide */
.tn-big-sm { font-size: 1.45rem; }
.tn-rights-result li { margin-bottom: .45rem; }
.tn-rights h2 { scroll-margin-top: 6rem; font-size: 1.2rem; margin-top: 1.6rem; }
.tn-rights h2:first-child { margin-top: 0; }
.tn-steps li { margin-bottom: .45rem; }
/* Baking helper */
.tn-tin-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1.4fr) minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: .35rem; align-items: center; margin-bottom: .4rem; }
@media (max-width: 575.98px) { .tn-tin-row { grid-template-columns: 1fr 1fr; } .tn-tin-row > span:first-child { grid-column: 1 / -1; } .tn-tin-row > span:not(:first-child) { display: none; } }
.tn-bake-out li { padding: .25rem 0; border-bottom: 1px dashed var(--tn-line); font-size: .95rem; }
.tn-bake-out li b { color: var(--x-red, #b3202b); min-width: 4.5rem; display: inline-block; }
[data-bs-theme=dark] .tn-bake-out li b { color: #ff7b85; }
.tn-bake-out li.same { color: var(--bs-secondary-color); }
/* ===== Seasons (themed from app/config/seasons.php via --s1 main, --s2 dark, --s3 accent) ===== */
.tn-season-hero { position: relative; border-radius: 1rem; overflow: hidden; color: #fff; padding: 1.6rem 1.5rem;
  background: radial-gradient(circle at 12% 20%, rgba(255,255,255,.25) 0 2px, transparent 3px) 0 0 / 46px 46px, linear-gradient(135deg, var(--s1) 0%, var(--s2) 100%); }
.tn-season-hero.has-banner { background: linear-gradient(90deg, color-mix(in srgb, var(--s2) 92%, transparent) 0%, color-mix(in srgb, var(--s2) 70%, transparent) 50%, transparent 100%), var(--tn-banner) center / cover; }
.tn-season-hero .tn-xmas-eyebrow, .tn-season-hero .tn-countdown strong { color: var(--s3); }
.tn-season-hero .breadcrumb a, .tn-season-hero .breadcrumb-item.active, .tn-season-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.85); }
.tn-season-tile { border-top: 3px solid var(--s1); }
.tn-season-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem 1rem; border-radius: .8rem; color: #fff !important; background: linear-gradient(90deg, var(--s1), var(--s2)); }
.tn-season-strip:hover { text-decoration: none; filter: brightness(1.08); }
.tn-nav-season { color: var(--s1) !important; font-weight: 700; }
[data-bs-theme=dark] .tn-nav-season { color: color-mix(in srgb, var(--s1) 55%, #fff) !important; }
.tn-offseason { display: inline-block; background: rgba(0,0,0,.25); border-radius: .5rem; padding: .3rem .7rem; font-size: .9rem; }
.tn-season .btn-outline-danger { --bs-btn-color: var(--s1); --bs-btn-border-color: var(--s1); --bs-btn-hover-bg: var(--s1); --bs-btn-hover-border-color: var(--s1); --bs-btn-active-bg: var(--s1); --bs-btn-active-border-color: var(--s1); }
.tn-season .btn-danger { --bs-btn-bg: var(--s1); --bs-btn-border-color: var(--s1); --bs-btn-hover-bg: var(--s2); --bs-btn-hover-border-color: var(--s2); }
/* Menu: never wrap a label; tighter spacing when seasonal links are added */
.navbar .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1399.98px) {
  .navbar .nav-link { padding-inline: .42rem !important; font-size: .93rem; }
  .tn-nav-search { min-width: 150px; max-width: 190px; }
}
@media (min-width: 992px) {   /* desktops: keep the whole menu (plus up to 2 seasonal links) on one line */
  .navbar .nav-link { padding-inline: .3rem !important; font-size: .88rem; }
  .tn-header .tn-logo-img { height: 38px; max-width: 165px; }
  .tn-nav-search { min-width: 120px; max-width: 140px; }
}
@media (min-width: 1400px) {
  .navbar .nav-link { padding-inline: .4rem !important; font-size: .92rem; }
  .tn-nav-search { min-width: 150px; max-width: 170px; }
}
@media (min-width: 992px) and (max-width: 1099.98px) {
  .navbar .nav-link { padding-inline: .22rem !important; font-size: .85rem; }
  .tn-header .tn-logo-img { height: 34px; max-width: 150px; }
}
.tn-related { margin-top: 2rem; }
.tn-spot-offer { border-top: 4px solid var(--s1); }
/* Brand logo (assets/brand/) */
.tn-logo-img { height: 44px; width: auto; max-width: 240px; display: block; }
@media (max-width: 575.98px) { .tn-logo-img { height: 40px; } }
.tn-footer .tn-logo-img { height: 30px; }
.tn-logo-dark { display: none; }
[data-bs-theme=dark] .tn-logo-dark { display: block; }
[data-bs-theme=dark] .tn-logo-light { display: none; }
.tn-special-card .tn-meta { display: block; }
/* Breadcrumb trail */
.tn-crumbs { background: var(--tn-card); border-bottom: 1px solid var(--tn-line); font-size: .85rem; }
.tn-crumbs ol { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; list-style: none; margin: 0; padding: .4rem 0; scrollbar-width: none; }
.tn-crumbs ol::-webkit-scrollbar { display: none; }
.tn-crumbs li { display: flex; align-items: center; }
.tn-crumbs li + li::before { content: "›"; color: var(--bs-secondary-color); margin: 0 .5rem; }
.tn-crumbs a { color: var(--tn-brand); }
.tn-crumbs [aria-current] span { color: var(--bs-secondary-color); max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
@media print { .tn-crumbs { display: none; } }
.tn-big .small { font-size: .55em; font-weight: 600; }   /* converted currency under the headline figure */
/* Articles */
.tn-article-body { font-size: 1.05rem; line-height: 1.7; max-width: 46rem; }
.tn-article-body h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; scroll-margin-top: 6rem; }
.tn-article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.tn-article-body p, .tn-article-body ul, .tn-article-body ol { margin-bottom: 1rem; }
.tn-article-body li { margin-bottom: .35rem; }
.tn-article-body a { text-decoration: underline; text-underline-offset: 2px; }
.tn-tip { border-left: 4px solid var(--tn-brand); background: var(--tn-card); border-radius: 0 .5rem .5rem 0; padding: .75rem 1rem; margin: 0 0 1rem; }
.tn-tip::before { content: "💡 "; }
.tn-article-table { font-size: .95rem; }
.tn-article-products { border: 1px solid var(--tn-line); border-radius: .75rem; background: var(--tn-card); padding: .75rem; margin: 1.25rem 0 1.5rem; }
.tn-article-byline, .tn-article-summary { opacity: .92; }
.tn-article-toc a { text-decoration: none; }
.tn-article-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.5; }
.tn-chip.active { background: var(--tn-brand); color: #fff; border-color: var(--tn-brand); }
.tn-article-products { font-size: .95rem; line-height: 1.4; }
.tn-article-products a { text-decoration: none; }
/* News thumbnails (from the source's own feed) */
.tn-news-thumbs > li { display: flex; gap: .75rem; align-items: flex-start; }
.tn-news-thumbs .tn-news-text { flex: 1; min-width: 0; }
.tn-news-thumbs .tn-news-img { order: 2; flex: 0 0 auto; }
.tn-news-thumbs .tn-news-img img { width: 96px; height: 64px; object-fit: cover; border-radius: .4rem; background: var(--tn-soft); display: block; }
.tn-news-thumbs > li.tn-news-lead { flex-direction: column; }
.tn-news-thumbs > li.tn-news-lead .tn-news-img { order: 0; width: 100%; }
.tn-news-thumbs > li.tn-news-lead .tn-news-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.tn-news-thumbs > li.tn-news-lead .tn-list-title { font-size: 1.1rem; }
@media (max-width: 575.98px) { .tn-news-thumbs .tn-news-img img { width: 76px; height: 52px; } }
.tn-news-thumbs > li.tn-news-lead .tn-news-img { max-width: 560px; }
.tn-news-thumbs .tn-list-title { display: block; margin-bottom: .1rem; }
.tn-news-compact .tn-news-img img { width: 64px; height: 44px; }
@media (min-width: 768px) {
  .tn-news-thumbs > li.tn-news-lead { flex-direction: row; gap: 1.25rem; }
  .tn-news-thumbs > li.tn-news-lead .tn-news-img { flex: 0 0 42%; max-width: 440px; }
  .tn-news-thumbs > li.tn-news-lead .tn-list-title { font-size: 1.3rem; line-height: 1.3; }
}
.tn-article-body .tn-article-table { font-size: .9rem; line-height: 1.45; }
.tn-preview-bar { background: #fff3cd; color: #5c4400; border-bottom: 1px solid #e8c77a; font-size: .85rem; padding: .35rem .75rem; text-align: center; }
.tn-preview-bar a { color: #5c4400; text-decoration: underline; }

/* Country flag / switch in the top menu (header.tpl) */
.tn-country img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; display: block; }
.tn-country-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--bs-border-color); padding: .2rem .45rem; font-weight: 600; font-size: .8rem; }
.tn-country-btn:hover, .tn-country-btn[aria-expanded=true] { border-color: var(--tn-brand); }
.tn-country .dropdown-item.active { background: var(--tn-brand); }
.tn-country .dropdown-header { font-size: .75rem; margin: 0; }
@media (max-width: 1399.98px) { .tn-country-code { display: none; } }
@media (max-width: 991.98px) { .tn-country-code { display: inline; } }
