/*
Theme Name: Teachers Discount Club
Theme URI: https://teachersdiscountclub.com/
Author: Teachers Discount Club
Author URI: https://teachersdiscountclub.com/
Description: A directory theme for teacher discounts, built for teachersdiscountclub.com. Category tiles and the hero search filter every post on the site in place; a post with deal fields expands to show who qualifies, what proof the brand takes and how to claim it. Green and cream, serif headings, a seasonal feature block, guides as cards, a sticky claim card on posts. Logo, colors, fonts, menus, copy, tracking and newsletter are all editable in the Customizer.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teachers-discount-club
Tags: blog, news, one-column, custom-logo, custom-menu, custom-colors, editor-style, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* -------------------------------------------------------------------------
   Design tokens. The Customizer overrides --green, --amber, --bg, --surface,
   the font stack and the column counts via inline CSS printed after this file.
   ------------------------------------------------------------------------- */
:root {
  --green: #173a2c;
  --green-950: #12291f;
  --green-800: color-mix(in srgb, var(--green), #fff 8%);
  --green-700: color-mix(in srgb, var(--green), #fff 18%);
  --green-100: #dcebe2;
  --green-50: #eef5f0;
  --amber: #e19a2f;
  --amber-deep: color-mix(in srgb, var(--amber), #000 18%);
  --amber-soft: #fbeecb;
  --apple: #c8402c;
  --bg: #faf4e6;
  --bg-2: #f4ecd8;
  --surface: #fffdf7;
  --tile-bg: #fffdf7;
  --ink: #22302a;
  --ink-soft: #55645c;
  --muted: #55645c;
  --line: #e3dbc6;
  --line-strong: #d3c8ab;
  --chip-bg: #eef5f0;
  --chip-ink: #1d4a38;
  --tile-hover: #f4efe2;
  --focus: #b97a1d;
  --shadow: 0 18px 40px -18px rgba(23, 58, 44, 0.28);
  --radius: 14px;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --wrap: 1180px;
  --tile-cols: 6;
  --list-cols: 1;
  --sidebar-w: 360px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green-950: #0b1a13; --green-100: #274435; --green-50: #16281e;
    --amber-deep: #eda93f; --amber-soft: #3a2f16;
    --bg: #101d16; --bg-2: #0d1811; --surface: #16241c; --tile-bg: #16241c;
    --ink: #f0ead8; --ink-soft: #a9b8ae; --muted: #a9b8ae;
    --line: #2c4234; --line-strong: #3a5445; --chip-bg: #16281e; --chip-ink: #a9d2bb;
    --tile-hover: #1b2d22; --focus: #eda93f; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --green-950: #0b1a13; --green-100: #274435; --green-50: #16281e;
  --amber-deep: #eda93f; --amber-soft: #3a2f16;
  --bg: #101d16; --bg-2: #0d1811; --surface: #16241c; --tile-bg: #16241c;
  --ink: #f0ead8; --ink-soft: #a9b8ae; --muted: #a9b8ae;
  --line: #2c4234; --line-strong: #3a5445; --chip-bg: #16281e; --chip-ink: #a9d2bb;
  --tile-hover: #1b2d22; --focus: #eda93f; --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--green-800); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--surface); clip: auto !important; clip-path: none; color: var(--ink); display: block; font-size: 14px; font-weight: 700; height: auto; left: 8px; line-height: normal; padding: 14px 20px; text-decoration: none; top: 8px; width: auto; z-index: 100000; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hand-note { font-family: var(--font-hand); font-size: 27px; color: var(--amber-deep); transform: rotate(-2deg); display: inline-block; margin: 10px 0 4px; line-height: 1.1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.btn-amber { background: var(--amber); color: #2a1c05; border: 0; border-radius: 999px; font-weight: 700; padding: 10px 20px; font-size: 15.5px; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn-amber:hover { background: var(--amber-deep); color: #fff; }
.claim-btn, .btn { display: inline-block; border: 0; border-radius: 999px; text-decoration: none; background: var(--green-800); color: #f5efdd; font-weight: 700; font-size: 15px; padding: 11px 22px; }
.claim-btn:hover, .btn:hover { background: var(--green-700); color: #fff; }
.btn-ghost { background: none; color: var(--green-800); border: 1.5px solid var(--green-800); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-800); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; line-height: 1.05; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.wordmark .custom-logo { flex: none; max-height: 40px; max-width: 220px; width: auto; height: auto; display: block; object-fit: contain; }
.site-footer .wordmark .custom-logo { max-height: 36px; }
@media (max-width: 420px) { .site-header .wordmark.has-logo .site-title-text { display: none; } }
.wordmark .star { width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.wordmark .star .apple { fill: var(--apple); }
.wordmark .star .leaf { fill: var(--green); }
.wordmark .star .stem { stroke: #7a4a21; }
.site-footer .wordmark .star .leaf { fill: #7fc79b; }
.site-footer .wordmark .star .stem { stroke: #a9743f; }
.wordmark em { font-style: normal; color: var(--amber-deep); }
.main-navigation { margin-left: 8px; flex: 1 1 auto; min-width: 0; display: flex; justify-content: flex-start; }
.main-navigation > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-start; max-height: 42px; overflow: hidden; }
.main-navigation.is-ready > ul { flex-wrap: nowrap; max-height: none; overflow: visible; }
.main-navigation li { position: relative; }
.main-navigation a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--amber-deep); }
.main-navigation .menu-more > a::after { content: " \25BE"; font-size: 11px; }
.main-navigation .menu-more > ul { right: 0; left: auto; }
.main-navigation.is-measuring ul { visibility: hidden; }
.main-navigation ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; flex-direction: column; gap: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: flex; }
.wordmark .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .logo-light { display: none; }
  :root:not([data-theme="light"]) .wordmark .logo-dark { display: block; }
}
:root[data-theme="dark"] .wordmark .logo-light { display: none; }
:root[data-theme="dark"] .wordmark .logo-dark { display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.header-search { display: flex; align-items: center; gap: 8px; }
.header-search input { width: 190px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; }
.header-search input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.theme-toggle, .search-toggle, .menu-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.theme-toggle:hover, .menu-toggle:hover { background: var(--tile-hover); }
.search-toggle { display: none; }
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 14px 20px 18px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu ul ul { padding-left: 16px; }
.mobile-menu a { display: block; padding: 11px 4px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.mobile-menu > nav > ul > li:first-child > a { border-top: 0; }
.mobile-menu a:hover { color: var(--amber-deep); }
.mobile-menu .searchbox { margin-bottom: 8px; max-width: none; box-shadow: none; }

/* ---------- Search box (hero + mobile + search page) ---------- */
.searchbox { display: flex; align-items: stretch; gap: 10px; max-width: 560px; background: var(--surface); border: 1.5px solid var(--green-800); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.searchbox:focus-within { border-color: var(--amber); }
.searchbox .s-icon { display: grid; place-items: center; padding: 0 0 0 10px; color: var(--green-700); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 6px; font-size: 17px; color: var(--ink); }
.searchbox input::placeholder { color: var(--muted); }
.searchbox input:focus { outline: none; }
.searchbox button { border: 0; background: var(--amber); color: #2a1c05; border-radius: 11px; padding: 12px 22px; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.searchbox button:hover { background: var(--amber-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero.has-photo .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; margin: 16px 0 6px; max-width: 12em; }
.hero h1 .accent { color: var(--green-700); position: relative; }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 10px 0 26px; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px; font-size: 15px; color: var(--ink-soft); }
.hero-meta b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-photo { position: relative; }
.hero-photo .frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid var(--surface); transform: rotate(1.2deg); }
.hero-photo img { width: 100%; height: 430px; object-fit: cover; display: block; }
.float-card { position: absolute; left: -18px; bottom: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 18px; max-width: 250px; transform: rotate(-1.5deg); text-decoration: none; color: var(--ink); }
.float-card .fc-off { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--green-800); display: block; }
.float-card p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }
.float-card p strong { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 56px 0 8px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.sec-head h2, .section-title { margin: 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
.sec-head p, .sec-head .hint { color: var(--ink-soft); margin: 8px 0 0; max-width: 44em; font-size: 16px; }
.sec-head a.hint { color: var(--green-800); font-weight: 700; text-decoration: none; white-space: nowrap; }
.sec-head a.hint:hover { color: var(--amber-deep); }
#categories.section { padding-top: 26px; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(var(--tile-cols), 1fr); margin: 22px 0 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; background: var(--tile-bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 8px 14px; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.25; text-decoration: none; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.tile:hover { border-color: var(--green-700); transform: translateY(-2px); }
.tile .t-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--green-50); display: grid; place-items: center; color: var(--green-800); }
.tile .count { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.tile[aria-pressed="true"], .tile.is-current { background: var(--green); border-color: var(--green); color: #f5efdd; }
.tile[aria-pressed="true"] .t-badge, .tile.is-current .t-badge { background: var(--amber); color: #2a1c05; }
.tile[aria-pressed="true"] .count, .tile.is-current .count { color: #cdbf9d; }

/* ---------- Directory toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 18px 0 6px; }
.result-count { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.result-count b { color: var(--amber-deep); font-weight: 700; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 7px; background: var(--green); color: #f5efdd; border: 0; border-radius: 999px; padding: 6px 8px 6px 13px; font-size: 13.5px; font-weight: 600; }
.fchip span[aria-hidden] { font-weight: 400; opacity: 0.75; font-size: 15px; line-height: 1; padding: 0 3px; }
.clear-btn { background: none; border: 0; padding: 4px; color: var(--amber-deep); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.toolbar .see-all { color: var(--green-800); font-weight: 700; font-size: 14px; text-decoration: none; }
.toolbar .see-all:hover { text-decoration: underline; }
.toolbar .sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.toolbar select { font-size: 15px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

/* ---------- Deal rows ---------- */
.deal-list { border-top: 1px solid var(--line); margin-top: 10px; }
.deal-list[aria-busy="true"] { opacity: 0.55; transition: opacity 0.15s ease; }
.deal { border-bottom: 1px solid var(--line); background: transparent; margin: 0; }
.deal[hidden] { display: none; }
.deal-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; width: 100%; text-align: left; background: none; border: 0; padding: 18px 6px; color: var(--ink); text-decoration: none; }
.deal-row:hover { background: var(--tile-hover); }
a.deal-row:hover .deal-brand { color: var(--amber-deep); }
.mono { width: 52px; height: 52px; border-radius: 13px; background: var(--green); color: #f3ecd9; font-family: var(--font-serif); font-weight: 700; font-size: 22px; display: grid; place-items: center; flex: none; overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal:nth-child(3n) .mono { background: var(--amber); color: #2a1c05; }
.deal-main { min-width: 0; }
.deal-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.deal-brand { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.deal-off { font-weight: 700; color: var(--amber-deep); font-size: 16.5px; }
.deal-off small { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.deal-offer { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.deal-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cat-tag, .cat-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: var(--surface); }
.vchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vchip svg { flex: none; }
.vchip.type-unavailable { background: #fbe9e4; color: #9b2e1f; border-color: #f2cfc6; }
.vchip.type-cashback { background: var(--amber-soft); color: #6b4a08; border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vchip.type-unavailable { background: #3a1a14; color: #f0a593; border-color: #5a2a20; } :root:not([data-theme="light"]) .vchip.type-cashback { color: var(--amber); } }
:root[data-theme="dark"] .vchip.type-unavailable { background: #3a1a14; color: #f0a593; border-color: #5a2a20; }
:root[data-theme="dark"] .vchip.type-cashback { color: var(--amber); }
.proof-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: #6b4a08; background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proof-badge { color: var(--amber); } }
:root[data-theme="dark"] .proof-badge { color: var(--amber); }
.featured-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--amber-deep); border: 1px solid currentColor; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; }
.deal-top .vchip, .deal-top .featured-tag { align-self: center; }
.chev { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--green-800); transition: transform 0.2s; flex: none; }
.deal.open .chev { transform: rotate(180deg); }
.deal-detail { display: none; padding: 4px 6px 24px 74px; }
.deal.open .deal-detail { display: block; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.deal-detail h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.deal-detail ol, .deal-detail ul { margin: 0; padding-left: 20px; }
.deal-detail ol li { margin-bottom: 6px; font-size: 15px; }
.deal-detail ul { color: var(--ink-soft); padding-left: 18px; }
.deal-detail ul li { margin-bottom: 5px; font-size: 14.5px; }
.elig { font-size: 15px; color: var(--ink-soft); margin: 0 0 12px; }
.elig b { color: var(--ink); }
.deal-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.empty { display: none; text-align: center; padding: 48px 20px; }
.empty.show { display: block; }
.empty p { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.empty .sub { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--ink-soft); margin: 0 0 16px; }
.empty .btn { margin-right: 10px; }
.load-more-wrap { text-align: center; padding: 18px 0 4px; }
.load-more-wrap .btn { min-width: 170px; }
.load-more-wrap [data-tdc-error] { margin-top: 8px; color: var(--apple); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; padding: 22px 0; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); background: var(--surface); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #f5efdd; }

/* ---------- Post list as cards (2 or 3 columns) ---------- */
.deal-list.has-cols { display: grid; grid-template-columns: repeat(var(--list-cols), minmax(0, 1fr)); gap: 12px; border-top: 0; padding-top: 4px; }
.deal-list.has-cols > .deal, .deal-list.has-cols > .article-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.deal-list.has-cols > .deal[hidden] { display: none; }
.deal-list.has-cols .deal-row { padding: 16px; border-radius: var(--radius); height: 100%; align-items: start; }
.deal-list.has-cols .deal-detail { padding-left: 16px; }
.deal-list.has-cols > .article-row { padding: 16px; }
.deal-list.has-cols + .pagination { padding-top: 22px; }

/* ---------- Trust strip ---------- */
.trust { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; gap: 14px; padding: 22px 26px; align-items: flex-start; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .t-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--green-50); border: 1px solid var(--green-100); display: grid; place-items: center; color: var(--green-800); flex: none; }
.trust-item h3 { margin: 0 0 2px; font-size: 19px; }
.trust-item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Feature block ---------- */
.feature { margin-top: 56px; background: var(--green); color: #f2ecd9; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.feature.has-photo { grid-template-columns: 0.9fr 1.1fr; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; display: block; }
.feature-body { padding: 42px 44px; }
.feature-body .eyebrow { color: var(--amber); }
.feature-body h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 12px 0 10px; line-height: 1.12; color: #f5efdd; }
.feature-body > p { color: #cfd8c9; margin: 0 0 22px; max-width: 32em; }
.feature-deals { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.feature-deal { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(245, 239, 221, 0.22); border-radius: 12px; padding: 13px 16px; color: #f2ecd9; text-decoration: none; }
.feature-deal:hover { background: rgba(255, 255, 255, 0.12); }
.feature-deal .b-off { font-family: var(--font-serif); font-weight: 700; font-size: 21px; color: var(--amber); white-space: nowrap; }
.feature-deal .b-main { min-width: 0; display: flex; flex-direction: column; }
.feature-deal .b-name { font-weight: 700; }
.feature-deal .b-sub { font-size: 13.5px; color: #cfd8c9; }
.feature-deal .b-arrow { margin-left: auto; color: var(--amber); font-size: 19px; }

/* ---------- Articles: rows and cards ---------- */
.articles { border-top: 1px solid var(--line); margin-top: 20px; }
.articles.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; border-top: 0; }
.article-row { display: flex; align-items: baseline; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.article-row:hover .a-title { color: var(--amber-deep); }
.a-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.a-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-deep); }
.a-title { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 20px; line-height: 1.2; }
.a-title .vchip { vertical-align: middle; font-family: var(--font-body); margin-left: 4px; }
.a-desc { display: block; color: var(--ink-soft); font-size: 15px; }
.read-more { font-weight: 700; color: var(--green-800); font-size: 15px; margin-top: 4px; }
.article-row:not(.article-card) .read-more { display: none; }
.article-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card img { height: 190px; width: 100%; object-fit: cover; display: block; }
.article-card .a-main { padding: 20px 22px 22px; gap: 8px; }
.article-card .a-title { font-size: 22px; }
.article-card .a-desc { flex: 1; }

/* ---------- Verify note + newsletter ---------- */
.verify-note { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 18px; padding: 26px 30px; scroll-margin-top: 80px; }
.verify-note .v-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--green-100); display: grid; place-items: center; color: var(--green-800); }
.verify-note h2 { margin: 0 0 6px; font-size: 24px; }
.verify-note p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15.5px; max-width: 62em; }
.verify-note .byline { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.verify-note .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-800); color: #f5efdd; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; overflow: hidden; flex: none; }
.verify-note .avatar img { width: 100%; height: 100%; object-fit: cover; }
.verify-note .b-name { font-weight: 700; font-size: 15px; }
.verify-note .b-role { font-size: 13.5px; color: var(--ink-soft); }
.newsletter { margin: 48px 0 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; scroll-margin-top: 80px; }
.newsletter h2 { margin: 0 0 8px; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.12; }
.newsletter p { margin: 0; color: var(--ink-soft); }
.newsletter .hand-note { font-size: 24px; margin: 12px 0 0; }
.nl-form { display: flex; gap: 10px; }
.nl-form input { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.nl-form input:focus { outline: 2px solid var(--amber); }
.nl-form .btn-amber { border-radius: 12px; }
.nl-fine { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; }
.newsletter-embed { max-width: 560px; }

/* ---------- Single posts ---------- */
.entry { padding: 10px 0 10px; }
.entry-main { min-width: 0; }
.post-crumbs { font-size: 13.5px; color: var(--ink-soft); margin: 26px 0 0; }
.post-crumbs a { color: var(--ink-soft); text-decoration: none; }
.post-crumbs a:hover { color: var(--amber-deep); }
.post-hero { margin-top: 18px; background: var(--green); color: #f2ecd9; border-radius: 24px; padding: 40px 44px; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.post-hero.has-callout { grid-template-columns: auto 1fr auto; }
.post-mono { width: 92px; height: 92px; border-radius: 20px; background: var(--amber); color: #2a1c05; font-family: var(--font-serif); font-weight: 700; font-size: 42px; display: grid; place-items: center; }
.post-hero .entry-title { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; color: #f5efdd; }
.post-hero .post-sub { color: #cfd8c9; margin: 0; max-width: 38em; }
.post-hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.post-hero .vchip, .post-hero .proof-badge, .post-hero .vchip.type-unavailable, .post-hero .vchip.type-cashback { background: rgba(255, 255, 255, 0.1); border-color: rgba(245, 239, 221, 0.3); color: #f2ecd9; }
.post-callout { text-align: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(245, 239, 221, 0.25); border-radius: 18px; padding: 22px 26px; }
.post-callout .big { font-family: var(--font-serif); font-size: 54px; font-weight: 700; line-height: 1; color: var(--amber); }
.post-callout .lbl { font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cfd8c9; margin-top: 6px; }
.guide-header { margin-top: 14px; }
.guide-header .entry-title { margin: 0 0 18px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; max-width: 18em; }
.post-thumbnail img { border-radius: 18px; margin-bottom: 22px; }
.post-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin: 34px 0 10px; align-items: start; }
.post-grid.has-claim { grid-template-columns: 1fr 1.6fr; }
.claim-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; position: sticky; top: 84px; }
.claim-card h2 { margin: 0 0 14px; font-size: 22px; }
.claim-card ol.steps { margin: 0; padding-left: 20px; }
.claim-card ol.steps li { font-size: 15.5px; margin-bottom: 9px; }
.claim-card .claim-btn { width: 100%; text-align: center; margin-top: 12px; }
.excl-card { margin-top: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; }
.excl-card h3 { margin: 0 0 10px; font-size: 18px; }
.excl-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.excl-card li { margin-bottom: 5px; font-size: 14.5px; }
.post-article { min-width: 0; max-width: 760px; }
.entry-content { font-size: 17.5px; line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1em; }
.entry-content h2 { font-size: 30px; line-height: 1.15; margin-top: 1.4em; margin-bottom: 0.4em; }
.entry-content h3 { font-size: 23px; margin-top: 1.4em; margin-bottom: 0.3em; }
.entry-content a:not(.wp-element-button):not(.wp-block-button__link) { color: var(--green-800); }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { color: #f5efdd; background: var(--green-800); border-radius: 999px; font-weight: 700; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--green-700); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link { background: none; color: var(--green-800); border: 2px solid currentColor; }
.entry-content img, .entry-content figure { max-width: 100%; }
.entry-content blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber); font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .entry-content blockquote { color: var(--ink); } }
:root[data-theme="dark"] .entry-content blockquote { color: var(--ink); }
.entry-content .wp-block-image img { border-radius: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.alignwide { max-width: var(--wrap); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-footer { font-size: 13.5px; color: var(--muted); margin-top: 24px; }
.related { max-width: none; }
.related .sec-head h2 { font-size: 28px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); margin-top: 24px; font-size: 15px; }
.post-nav a { text-decoration: none; font-weight: 700; color: var(--green-800); }
.post-nav span { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.deal-summary { display: none; }
.summary-detail { display: block; padding: 0; margin-bottom: 22px; }

/* ---------- Post layout with optional sidebar ---------- */
.post-sidebar { font-size: 14.5px; }
.post-sidebar .widget { margin: 34px 0 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.post-sidebar .widget + .widget { margin-top: 0; }
.post-sidebar .widget-title { margin: 0 0 10px; font-size: 17px; }
.post-sidebar ul { margin: 0; padding-left: 18px; }
.post-sidebar li { margin: 4px 0; }
.post-sidebar .widget:has([id^="fd-form"]), .post-sidebar .widget:has(.newsletter-embed), .post-sidebar .widget:has(form) { padding: 0; border: 0; background: none; box-shadow: none; }
.post-sidebar [id^="fd-form"] { width: 100%; }
.post-sidebar [data-ff-el="root"] [class$="__container"] { max-width: 100% !important; border-radius: 14px; }
.post-sidebar [data-ff-el="root"] [class$="__wrapper"] { padding: 28px 22px !important; }
.post-sidebar [data-ff-el="root"] [class$="__title"] { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 14px !important; }
.post-sidebar [data-ff-el="root"] [class$="__subtitle"] { font-size: 15px !important; margin-bottom: 18px !important; }
.post-sidebar [data-ff-el="root"] [class$="__content"] { margin: 18px 0 !important; }
@media (min-width: 981px) {
  .entry-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 36px; align-items: start; }
  .entry-layout.has-sidebar .post-sidebar { position: sticky; top: 84px; }
  .entry-layout.has-sidebar .post-grid.has-claim { grid-template-columns: 1fr; }
  .entry-layout.has-sidebar .claim-card { position: static; }
}

/* ---------- Archive / search ---------- */
.archive-header { padding: 36px 0 10px; }
.archive-header h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.archive-header .archive-description, .archive-header p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.archive-header .searchbox { margin-top: 18px; }
.archive-header h1 .accent { color: var(--amber-deep); }

/* ---------- Comments ---------- */
.comments-area { max-width: 760px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: 12.5px; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.comment-form .submit { border: 0; border-radius: 999px; background: var(--green-800); color: #f5efdd; font-weight: 700; padding: 10px 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; background: var(--green-950); color: #d9e2d4; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 46px 20px 30px; }
.site-footer .wordmark { color: #f5efdd; }
.site-footer .tag { margin: 12px 0 0; font-size: 14.5px; color: #a9bba6; max-width: 30em; }
.site-footer h4, .site-footer .widget-title { font-family: var(--font-serif); color: #f5efdd; margin: 4px 0 12px; font-size: 17px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c3d2bf; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--amber); }
.site-footer .widget { margin-bottom: 18px; font-size: 14.5px; }
.footer-base { border-top: 1px solid rgba(245, 239, 221, 0.16); padding: 18px 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 13.5px; color: #93a892; }
.footer-base a { color: #a9bba6; }
.footer-base .hand-note { color: var(--amber); font-size: 21px; margin: 0 0 0 auto; transform: rotate(-1.5deg); }
.footer-legal-menu { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal-menu li { margin: 0; }
.social-links { display: flex; gap: 12px; margin-top: 14px; }
.social-links a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(245, 239, 221, 0.2); }
.social-links a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- 404 ---------- */
.error-404 { padding: 60px 0 40px; max-width: 620px; }
.error-404 h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 10px; }
.error-404 p { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .main-navigation { display: none; }
  .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }
  .tiles { grid-template-columns: repeat(min(4, var(--tile-cols)), 1fr); }
  .post-hero.has-callout { grid-template-columns: auto 1fr; }
  .post-hero.has-callout .post-callout { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero { padding-top: 34px; }
  .hero.has-photo .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo img { height: 300px; }
  .float-card { left: 10px; bottom: 12px; }
  .trust { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(min(3, var(--tile-cols)), 1fr); }
  .articles.cards { grid-template-columns: 1fr; }
  .feature.has-photo { grid-template-columns: 1fr; }
  .feature-photo img { min-height: 0; height: 210px; }
  .feature-body { padding: 30px 24px 34px; }
  .newsletter { grid-template-columns: 1fr; padding: 30px 24px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .deal-detail { padding-left: 6px; }
  .post-grid.has-claim { grid-template-columns: 1fr; }
  .claim-card { position: static; }
  .post-hero, .post-hero.has-callout { padding: 28px 22px; grid-template-columns: 1fr; gap: 20px; }
  .post-mono { width: 64px; height: 64px; font-size: 30px; border-radius: 15px; }
  .toolbar .sort { margin-left: 0; }
  .deal-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
  .mono { width: 44px; height: 44px; font-size: 19px; border-radius: 11px; }
  .verify-note { grid-template-columns: 1fr; }
  .deal-list.has-cols { grid-template-columns: repeat(min(2, var(--list-cols)), minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .deal-list.has-cols { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-base .hand-note { margin-left: 0; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .searchbox { flex-direction: column; align-items: stretch; }
  .searchbox .s-icon { display: none; }
  .deal-sub .vchip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
