/* FindVoucherCodes: one stylesheet, no framework. Colours are tokens with a dark theme. */
:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --text: #1b2420;
  --muted: #5d6a64;
  --line: #dfe4e1;
  --brand: #0b6e4f;
  --brand-ink: #ffffff;
  --brand-soft: #e3f2ec;
  --code: #f2a900;
  --code-ink: #1b2420;
  --good: #1a7f37;
  --mid: #9a6700;
  --bad: #c62828;
  --hot: #d9480f;
  --cold: #1c7ed6;
  --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 2px 8px rgba(16, 24, 20, .05);
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614;
    --surface: #1a211e;
    --text: #e6ece9;
    --muted: #9aa8a1;
    --line: #2c3632;
    --brand: #3fbf8f;
    --brand-ink: #0c1411;
    --brand-soft: #1c3329;
    --code: #f5b82e;
    --good: #4cc26a;
    --mid: #e0a93a;
    --bad: #ff6b6b;
    --hot: #ff8a4c;
    --cold: #5aa9f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: 1.35rem; margin-top: 1.5em; }
h3, .h3 { font-size: 1.05rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 3px solid var(--code); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font: 600 1rem var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-danger { background: var(--bad); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* The "Get code" button: a code peeking out from under the button. */
.btn-code { position: relative; min-width: 170px; padding-right: 54px; background: var(--brand); overflow: hidden; }
.btn-code .peel { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; display: grid; place-items: center;
  background: var(--code); color: var(--code-ink); font-family: ui-monospace, Consolas, monospace; letter-spacing: 2px;
  border-left: 2px dashed var(--brand-ink); }
.btn-code.revealed { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px dashed var(--code);
  border: 2px dashed var(--code); padding-right: 18px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.search { position: relative; flex: 1 1 320px; display: flex; order: 3; width: 100%; }
.search input { flex: 1; min-height: 44px; padding: 0 44px 0 14px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); color: var(--text); font: inherit; }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.suggest { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 20; overflow: hidden; }
.suggest a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; }
.suggest a span { color: var(--muted); font-size: .85rem; }
.suggest a:hover, .suggest a:focus { background: var(--brand-soft); outline: none; }
.account-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.account-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
.main-nav a[aria-current], .main-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.main-nav .hub-link { color: var(--hot); }
@media (min-width: 820px) { .search { order: 0; width: auto; } }
.disclosure-bar { margin: 0; background: var(--brand-soft); font-size: .8rem; color: var(--muted); padding: 6px 0; }
.disclosure-bar .wrap { display: block; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 6px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
main { padding-bottom: 48px; }
.flash { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 10px 14px; border-radius: 6px; }

/* Home */
.hero { background: linear-gradient(160deg, var(--brand-soft), var(--bg)); padding: 40px 0 28px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.hero-search { display: flex; gap: 8px; max-width: 620px; margin: 18px 0; }
.hero-search input { flex: 1; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--text); }
.proof-strip { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .9rem; }
.proof-strip strong { color: var(--text); }
.hub-promo a { display: block; margin: 12px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--text); color: var(--bg); text-decoration: none; }
.hub-promo strong { color: var(--code); margin-right: 8px; }
.block { margin-top: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.block-head h1, .block-head h2 { margin: 0; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 360px; } }
.shop-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.shop-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--text); text-align: center; height: 100%; }
.shop-grid a:hover { border-color: var(--brand); }
.shop-grid img { height: 48px; width: auto; max-width: 110px; object-fit: contain; }
.logo-text { width: 48px; height: 48px; display: grid; place-items: center; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 50%; }
.shop-name { font-weight: 600; font-size: .95rem; }
.shop-count { color: var(--muted); font-size: .8rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.trust-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust-grid > div, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.trust-grid p { margin: 0; color: var(--muted); }

/* Offer cards */
.offer { display: grid; grid-template-columns: 96px 1fr; gap: 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.offer.is-exclusive { border-color: var(--code); box-shadow: 0 0 0 1px var(--code), var(--shadow); }
.offer.is-expired { opacity: .72; }
.offer-value { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border-right: 1px dashed var(--line); padding-right: 12px; }
.offer-value img { max-height: 36px; width: auto; object-fit: contain; margin-bottom: 6px; }
.offer-value strong { font-size: 1.3rem; line-height: 1.1; color: var(--brand); }
.offer-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
.offer-title { margin: 2px 0 6px; font-size: 1.05rem; }
.offer-cta { grid-column: 2; }
@media (min-width: 720px) {
  .offer { grid-template-columns: 110px 1fr auto; align-items: center; }
  .offer-cta { grid-column: 3; grid-row: 1 / span 2; }
}
.badges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.badge-ex { background: var(--code); color: var(--code-ink); }
.badge-ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.badge-warn { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.badge-shop { background: var(--bg); color: var(--text); }
.offer-proof { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.rate { font-weight: 700; }
.rate-good { color: var(--good); } .rate-mid { color: var(--mid); } .rate-low { color: var(--bad); }
.offer-terms { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.offer-terms summary { cursor: pointer; color: var(--text); font-size: .85rem; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; }

/* Merchant page */
.m-head { display: flex; align-items: center; gap: 18px; margin: 10px 0 18px; }
.m-logo { width: 120px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.m-head h1 { margin-bottom: 4px; }
.m-sub { margin: 0; color: var(--muted); }
.m-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .m-grid { grid-template-columns: 1fr 300px; } .m-side { position: sticky; top: 12px; align-self: start; } }
.m-side .card { margin-bottom: 14px; }
.m-intro { margin-bottom: 14px; }
.facts { margin: 14px 0 0; }
.facts div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.author-box { display: flex; gap: 12px; align-items: center; }
.author-box img { border-radius: 50%; }
.author-box p { margin: 0; font-size: .9rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 5px 0; }
.link-list.cols { columns: 2 240px; }
.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.two-up { display: grid; gap: 24px; }
@media (min-width: 760px) { .two-up { grid-template-columns: 1fr 1fr; } }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.faqs details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 0 14px; }
.faqs summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.m-submit { color: var(--muted); }

/* Community deals */
.deal { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.deal-img { display: none; }
.deal-cta { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .deal { grid-template-columns: auto 96px 1fr auto; }
  .deal-img { display: block; } .deal-img img { width: 96px; height: 96px; object-fit: contain; }
  .deal-cta { grid-column: auto; }
}
aside .deal { grid-template-columns: auto 1fr; } aside .deal-img { display: none; } aside .deal-cta { grid-column: 1 / -1; }
.deal h3 { margin: 0 0 4px; font-size: 1rem; } .deal h3 a { color: var(--text); text-decoration: none; }
.deal-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--muted); align-items: baseline; }
.price { color: var(--hot); font-size: 1.1rem; } .price.big { font-size: 1.6rem; }
.temp { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 20px; padding: 2px; }
.temp-n { min-width: 46px; text-align: center; font-weight: 800; }
.temp.hot .temp-n { color: var(--hot); } .temp.cold .temp-n { color: var(--cold); }
.vote { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.vote[data-vote="1"]:hover, .vote[data-vote="1"].on { background: var(--hot); color: #fff; }
.vote[data-vote="-1"]:hover, .vote[data-vote="-1"].on { background: var(--cold); color: #fff; }
.temp.big .temp-n { font-size: 1.3rem; }
.deal-top { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.deal-body { display: grid; gap: 20px; }
@media (min-width: 640px) { .deal-body.has-img { grid-template-columns: 240px 1fr; } }
.deal-hero { width: 240px; height: 240px; object-fit: contain; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--brand); border-color: var(--brand); }
.pager { display: flex; justify-content: space-between; margin-top: 18px; }
.comments { margin-top: 28px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.comment-list li.pending { opacity: .7; border-style: dashed; }
.c-meta { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }
.c-body p { margin: .3em 0; }

/* Forms */
.form { display: grid; gap: 6px; max-width: 620px; }
.form label { font-weight: 600; margin-top: 10px; }
.form input, .form select, .form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; }
.form .check { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.form .check input { width: auto; min-height: 0; margin-top: 4px; }
.form button { margin-top: 14px; justify-self: start; }
.form .row { display: grid; gap: 12px; }
@media (min-width: 560px) { .form .row { grid-template-columns: 1fr 1fr; } }
.hint { margin: 0; font-size: .85rem; color: var(--muted); }
.field-error { color: var(--bad); margin: 4px 0; font-size: .9rem; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.danger { margin-top: 36px; } .danger summary { cursor: pointer; color: var(--bad); }
.notice { background: color-mix(in srgb, var(--code) 18%, transparent); padding: 8px 12px; border-radius: 6px; }
.fill { background: color-mix(in srgb, var(--code) 35%, transparent); padding: 0 4px; border-radius: 3px; }

/* A–Z, categories, team */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; }
.az a { min-width: 36px; text-align: center; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 700; }
.az-list { list-style: none; padding: 0; columns: 3 200px; }
.az-list li { padding: 3px 0; break-inside: avoid; }
.cat-grid { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-grid a { display: flex; flex-direction: column; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.cat-grid span { color: var(--muted); font-size: .85rem; }
.team { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.team li { display: flex; flex-direction: column; gap: 4px; }
.team img, .author-head img, .author-card img { border-radius: 50%; object-fit: cover; }
.team span { color: var(--muted); font-size: .9rem; }
.author-head { display: flex; gap: 20px; align-items: center; margin: 18px 0; }
.author-card { display: flex; gap: 16px; margin-bottom: 12px; }
.author-card h2 { margin: 0; }
.ev-dates { font-size: 1.05rem; }
.calendar td:first-child { font-weight: 600; }

/* Reveal modal */
.modal { position: fixed; inset: 0; background: rgba(10, 16, 13, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 14px; padding: 26px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.modal-shop { margin: 0; color: var(--muted); font-weight: 600; }
.code-box { display: flex; gap: 8px; margin: 16px 0 8px; }
.code { flex: 1; display: grid; place-items: center; min-height: 52px; padding: 0 12px; border: 2px dashed var(--code); border-radius: 8px;
  font: 700 1.4rem ui-monospace, Consolas, monospace; letter-spacing: .08em; background: color-mix(in srgb, var(--code) 10%, transparent); user-select: all; word-break: break-all; }
.feedback { margin: 16px 0 8px; padding: 12px; background: var(--bg); border-radius: 8px; }
.feedback p { margin: 0 0 8px; }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 20px; font-size: .9rem; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot h2 { font-size: .95rem; margin: 0 0 8px; }
.foot-grid a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
.foot-brand { font-weight: 800; font-size: 1.1rem; margin: 0 0 6px; }
.foot-legal { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
