/* The Deal Directory — public site styles.
   Brand tokens carried over from the original app (constants/colors.ts). */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12213B;
  --navy-deep: #0B1930;
  --navy-soft: #233457;
  --gold: #B8872B;
  --gold-bright: #D8A646;
  --gold-pale: #F4E6C6;
  --cream: #F7F1E7;
  --card: #FFFDF8;
  --sand: #E9DFCF;
  --line: #D9CCB9;
  --muted: #6E6A62;
  --danger: #A84B3A;
  --success: #2F6B4F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 33, 59, .05), 0 6px 20px rgba(18, 33, 59, .06);
  --shadow-lg: 0 24px 60px rgba(18, 33, 59, .16);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--navy);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
/* iOS Safari otherwise draws search boxes with its own rounded field and padding. */
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--card); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--card); }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1.display { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; }
h2.display { font-size: clamp(26px, 3.2vw, 38px); }
.page-title { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 52px); line-height: 1.06; margin: 6px 0 10px; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin: 0; }
.kicker { display: inline-block; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.prose { max-width: 70ch; }
.prose p { margin: 0 0 14px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy); background: var(--navy); color: var(--card);
  font-weight: 700; font-size: 15px; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy-soft); color: var(--card); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--navy); }
.btn--gold:hover { background: #e2b65c; color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { background: var(--card); color: var(--navy); border-color: var(--navy); }
.btn--light { background: var(--card); color: var(--navy); border-color: var(--card); }
.btn--light:hover { background: var(--gold-pale); color: var(--navy); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--navy); padding-inline: 10px; }
.btn--ghost:hover { background: var(--sand); color: var(--navy); }
.btn--danger { background: var(--danger); border-color: var(--danger); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: wait; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--navy); }
.text-link:hover { color: var(--gold); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn.is-saved { background: var(--gold-pale); border-color: var(--gold-bright); color: var(--gold); }
.icon-btn.is-saved .icon { fill: currentColor; }
.btn.is-saved { background: var(--gold-pale); border-color: var(--gold-bright); color: var(--navy); }
.btn.is-saved .icon { fill: currentColor; color: var(--gold); }

/* Announcement + utility bar --------------------------------------------- */
.announcement { background: var(--gold-bright); color: var(--navy); text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.utility-bar { background: var(--navy); color: #E8E1D3; font-size: 13px; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.utility-bar a { color: #E8E1D3; text-decoration: none; }
.utility-bar a:hover { color: var(--gold-bright); }
.utility-links { display: flex; gap: 20px; }
.area-switch { display: flex; align-items: center; gap: 8px; }
.area-switch .icon { color: var(--gold-bright); }
.area-switch label { white-space: nowrap; }
.area-select {
  appearance: none; -webkit-appearance: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D8A646' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--card); border-radius: 999px; padding: 5px 30px 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; max-width: 220px;
}
.area-select option, .area-select optgroup { color: var(--navy); background: var(--card); }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 253, 248, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-size: 15px; font-weight: 800; letter-spacing: .14em; white-space: nowrap; }
.brand__edition { font-size: 10px; font-weight: 800; letter-spacing: .2em; color: var(--gold); margin-top: 4px; white-space: nowrap; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; padding: 10px 12px; border-radius: 10px; font-weight: 650; font-size: 15px; text-decoration: none; color: var(--navy); }
.main-nav a:hover { background: var(--sand); color: var(--navy); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold-bright); }
.header-search { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.header-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search input { width: 100%; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 16px 0 42px; font-size: 15px; }
.header-search input:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(216, 166, 70, .25); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search-btn { display: none; }
/* Too narrow for a usable search box next to the menu: swap it for a button. */
@media (max-width: 1180px) {
  .header-search { display: none; }
  .header-search-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: var(--gold-bright); font-size: 13px; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-link { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.account-link:hover { border-color: var(--navy); color: var(--navy); }
.account-link span.name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mobile-only { display: none !important; }

/* Mobile menu (no-JS friendly <details>) */
.mobile-menu { position: relative; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 12px; z-index: 60;
}
.mobile-menu__panel a, .mobile-menu__panel button.linklike {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; text-decoration: none; font-weight: 650; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.mobile-menu__panel a:hover, .mobile-menu__panel button.linklike:hover { background: var(--sand); color: var(--navy); }
.mobile-menu__panel .icon { color: var(--gold); }
.mobile-menu__panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Search suggestions */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 70; max-height: 70vh; overflow: auto; }
.suggest__group { padding: 6px 8px 2px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.suggest__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--navy); }
.suggest__item[aria-selected="true"], .suggest__item:hover { background: var(--sand); color: var(--navy); }
.suggest__item small { color: var(--muted); display: block; font-size: 12px; }
.suggest__label { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.suggest__all { display: block; text-align: center; padding: 10px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; text-decoration: none; }

/* Bottom tab bar (phones) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none;
  background: rgba(255, 253, 248, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 650; border-radius: 12px; }
.tabbar a .icon { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--navy); }
.tabbar a[aria-current="page"] .icon { color: var(--gold); }

/* Flash + alerts --------------------------------------------------------- */
.flash-stack { display: grid; gap: 8px; margin-top: 16px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--gold-bright); background: var(--card); font-size: 15px; }
.alert .icon { color: var(--gold); margin-top: 2px; }
.alert--success { border-left-color: var(--success); }
.alert--success .icon { color: var(--success); }
.alert--error { border-left-color: var(--danger); color: var(--danger); }
.alert--error .icon { color: var(--danger); }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section--tight { padding: clamp(24px, 3vw, 36px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin-top: 6px; }
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(16px, 2vw, 24px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); background:
  radial-gradient(900px 400px at 85% -10%, rgba(216,166,70,.18), transparent 60%),
  radial-gradient(700px 380px at -10% 110%, rgba(18,33,59,.06), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 12px 0 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-search { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding: 7px 7px 7px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); max-width: 600px; position: relative; }
.hero-search:focus-within { border-color: var(--gold-bright); box-shadow: 0 0 0 4px rgba(216,166,70,.2); }
.hero-search > .icon { color: var(--gold); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; padding: 10px 4px; outline: none; }
.hero-search__btn .icon { display: none; }
.area-picker { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 600px; }
.area-picker__select { position: relative; flex: 1 1 180px; }
.area-picker__select .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.select-lg {
  width: 100%; height: 50px; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 14px; padding: 0 40px 0 42px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312213B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-weight: 650; font-size: 15px; cursor: pointer;
}
.select-lg:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(216,166,70,.22); }
.near-me { white-space: nowrap; }
.near-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--navy); color: var(--card); max-width: 600px; font-size: 15px; }
.near-banner .icon { color: var(--gold-bright); }
.near-banner a { margin-left: auto; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-stats strong { color: var(--navy); }

/* Ticket stack visual */
.ticket-stack { position: relative; min-height: 510px; }
.ticket {
  position: absolute; width: min(360px, 88%); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 20px 22px; text-decoration: none; color: var(--navy); transition: transform .25s ease;
}
.ticket:hover { color: var(--navy); }
.ticket:nth-child(1) { top: 4px; right: 2%; transform: rotate(3deg); }
.ticket:nth-child(2) { top: 172px; left: 0; transform: rotate(-3deg); z-index: 2; }
.ticket:nth-child(3) { top: 338px; right: 8%; transform: rotate(2deg); z-index: 3; }
.ticket:hover { transform: rotate(0) translateY(-4px); z-index: 5; }
.ticket__top { display: flex; align-items: center; gap: 12px; }
.ticket__value { margin-left: auto; font-family: var(--font-display); font-size: 26px; color: var(--gold); white-space: nowrap; }
.ticket__title { font-weight: 750; font-size: 17px; margin-top: 12px; line-height: 1.3; }
.ticket__cut { border-top: 2px dashed var(--line); margin: 14px -22px 10px; position: relative; }
.ticket__cut::before, .ticket__cut::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.ticket__cut::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket__cut::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket__foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.hero-image { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Logo tile -------------------------------------------------------------- */
.logo-tile { width: 54px; height: 54px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.logo-tile--mono { background: var(--navy); border-color: var(--navy); color: var(--gold-bright); font-weight: 800; letter-spacing: .04em; font-size: 17px; }
.logo-tile--sm { width: 40px; height: 40px; border-radius: 11px; font-size: 13px; }
.logo-tile--lg { width: 96px; height: 96px; border-radius: 22px; font-size: 30px; }

/* Categories ------------------------------------------------------------- */
.category-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.category-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; text-decoration: none; color: var(--navy); background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.category-chip:hover { transform: translateY(-2px); border-color: var(--gold-bright); box-shadow: var(--shadow); color: var(--navy); }
.category-chip__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--navy); }
.category-chip__icon .icon { width: 22px; height: 22px; }
.category-chip strong { font-size: 13px; line-height: 1.2; }
.category-chip small { font-size: 11px; color: var(--muted); }

/* Offer (coupon) cards --------------------------------------------------- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.offer-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coupon { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; min-width: 0; }
.coupon:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(18,33,59,.12); border-color: #CDBDA3; }
.coupon__media { position: relative; display: block; aspect-ratio: 16 / 8; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); text-decoration: none; }
.coupon__media img { width: 100%; height: 100%; object-fit: cover; }
.coupon__media--logo { display: grid; place-items: center; background:
  radial-gradient(circle at 20% 20%, rgba(216,166,70,.22), transparent 55%), linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); }
.coupon__media--logo .logo-tile { width: 84px; height: 84px; border-radius: 20px; font-size: 26px; border: 3px solid rgba(255,255,255,.12); }
.coupon__media--logo .logo-tile--mono { background: transparent; border-color: rgba(216,166,70,.55); }
.coupon__value { position: absolute; left: 14px; bottom: 14px; background: var(--gold-bright); color: var(--navy); font-weight: 850; font-size: 15px; letter-spacing: .03em; padding: 7px 12px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.coupon__flags { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.flag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(255,253,248,.95); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.flag--gold { background: var(--gold-pale); color: #7a5716; }
.flag--demo { background: transparent; color: var(--gold-bright); border: 1px solid var(--gold-bright); }
.flag--urgent { background: #F6E1DB; color: var(--danger); }
.coupon__body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.coupon__business { position: relative; z-index: 1; align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; text-decoration: none; }
.coupon__business:hover { color: var(--navy); }
.coupon__title { font-size: 18px; font-weight: 750; line-height: 1.3; }
.coupon__title a { text-decoration: none; color: var(--navy); }
.coupon__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); z-index: 0; }
.coupon__title a:hover { color: var(--gold); }
.coupon__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.coupon__meta span { display: inline-flex; align-items: center; gap: 5px; }
.coupon__meta .is-urgent { color: var(--danger); font-weight: 700; }
.coupon__cut { position: relative; border-top: 2px dashed var(--line); margin: 0; }
.coupon__cut::before, .coupon__cut::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.coupon__cut::before { left: -11px; clip-path: inset(0 0 0 50%); }
.coupon__cut::after { right: -11px; clip-path: inset(0 50% 0 0); }
.coupon__actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 18px 16px; }
.coupon__actions > :first-child { flex: 1; }
.coupon__actions form { display: contents; }

/* "Show code" button with the peeled-corner hint */
.code-reveal { position: relative; display: flex; align-items: stretch; width: 100%; min-height: 46px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); }
.code-reveal__peek { position: absolute; inset: 0 0 0 auto; width: 92px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; border: 2px dashed var(--gold-bright); border-radius: var(--radius-sm); background: var(--gold-pale); font-family: var(--font-mono); font-weight: 800; color: var(--navy); letter-spacing: .08em; }
.code-reveal__label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 50px); background: var(--navy); color: var(--card); font-weight: 750; border-radius: var(--radius-sm) 0 0 var(--radius-sm); clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); padding-right: 18px; transition: width .2s ease; }
.code-reveal:hover .code-reveal__label { width: calc(100% - 64px); background: var(--navy-soft); }
.code-box { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 4px 4px 4px 14px; border: 2px dashed var(--gold-bright); border-radius: var(--radius-sm); background: var(--gold-pale); }
.code-box code { flex: 1; font-family: var(--font-mono); font-size: 17px; font-weight: 800; letter-spacing: .1em; color: var(--navy); overflow-wrap: anywhere; }
.code-box .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; }

/* Row variant for listings on wide screens */
@media (min-width: 900px) {
  .offer-list { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
  /* media | details | tear line | actions */
  .coupon--row { display: grid; grid-template-columns: 172px minmax(0, 1fr) auto 236px; }
  .coupon--row .coupon__media { aspect-ratio: auto; height: 100%; min-height: 150px; border-radius: var(--radius) 0 0 var(--radius); }
  .coupon--row .coupon__media--logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 12px 18px; }
  .coupon--row .coupon__media--logo .logo-tile { width: 72px; height: 72px; }
  .coupon--row .coupon__media--logo .coupon__value { position: static; transform: none; }
  .coupon--row .coupon__flags { top: 10px; left: 10px; right: auto; }
  .coupon--row .coupon__body { padding: 18px 22px; }
  .coupon--row .coupon__cut { border-top: 0; border-left: 2px dashed var(--line); }
  .coupon--row .coupon__cut::before, .coupon--row .coupon__cut::after { left: -11px; right: auto; }
  .coupon--row .coupon__cut::before { top: -11px; clip-path: inset(50% 0 0 0); }
  .coupon--row .coupon__cut::after { top: auto; bottom: -11px; clip-path: inset(0 0 50% 0); }
  .coupon--row .coupon__actions { flex-direction: column; justify-content: center; align-items: stretch; padding: 18px 20px 18px 24px; }
  .coupon--row .coupon__actions > :first-child { flex: none; }
  .coupon--row .coupon__actions .icon-btn { width: 100%; height: 38px; }
  .coupon--row .coupon__value { left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* Listing layout --------------------------------------------------------- */
.listing { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 18px; }
.filter-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-card h3 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.filter-list a:hover { background: var(--sand); color: var(--navy); }
.filter-list a[aria-current="true"] { background: var(--navy); color: var(--card); }
.filter-list a[aria-current="true"] .icon, .filter-list a[aria-current="true"] .count { color: var(--gold-bright); }
.filter-list .icon { color: var(--gold); }
.filter-list .count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.filters-toggle { display: none; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.result-bar form { display: flex; align-items: center; gap: 8px; }
.select-sm { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); border-radius: 10px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2312213B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 8px 30px 8px 12px; font-weight: 650; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--navy); font-size: 14px; font-weight: 650; white-space: nowrap; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--card); }
.chip .icon { width: 14px; height: 14px; }
.listing-search { display: flex; gap: 8px; margin-bottom: 16px; }
.listing-search .field-input { flex: 1; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 700; }
.pagination [aria-current="page"] { background: var(--navy); color: var(--card); border-color: var(--navy); }

.empty { text-align: center; padding: 48px 24px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty__icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--sand); color: var(--gold); }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 16px; max-width: 420px; }

/* Two-column home section ------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.side-stack { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 18px); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h3 { font-size: 18px; margin: 6px 0 12px; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mini-list a { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; color: var(--navy); }
.mini-list a:hover { background: var(--sand); color: var(--navy); }
.mini-list strong { display: block; font-size: 15px; line-height: 1.3; }
.mini-list small { color: var(--muted); font-size: 13px; }
.mini-list .is-urgent { color: var(--danger); font-weight: 700; }

/* Competition cards ------------------------------------------------------ */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.comp-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.comp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(18,33,59,.12); color: var(--navy); }
.comp-card__media { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 75% 25%, rgba(216,166,70,.35), transparent 50%), linear-gradient(135deg, var(--navy), var(--navy-soft)); display: grid; place-items: center; color: var(--gold-bright); }
.comp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.comp-card__media > .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.comp-card__media .flag { position: absolute; top: 12px; left: 12px; }
.comp-card__body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.comp-card__title { font-size: 20px; font-weight: 750; line-height: 1.25; }
.comp-card__prize { color: var(--muted); }
.comp-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.comp-card--compact .comp-card__media { aspect-ratio: 16 / 7; }
.countdown { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.countdown.is-urgent { color: var(--danger); }

/* Bands ------------------------------------------------------------------ */
.band { background: var(--navy); color: #EDE6D8; border-radius: 28px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.band::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(216,166,70,.12); }
.band h2 { color: var(--card); }
.band .kicker { color: var(--gold-bright); }
.band p { color: #D5CDBF; }
.band__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); color: var(--gold-bright); line-height: 1.1; }
.stat span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #CFC6B6; }
.band--gold { background: var(--gold-bright); color: var(--navy); }
.band--gold h2, .band--gold p { color: var(--navy); }
.band--gold .kicker { color: var(--navy); }
.band--gold::after { border-color: rgba(18,33,59,.08); }

/* Deal detail ------------------------------------------------------------ */
.deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.deal-hero { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); display: grid; place-items: center; }
.deal-hero img { width: 100%; height: 100%; object-fit: cover; }
.deal-hero .logo-tile { width: 120px; height: 120px; border-radius: 28px; font-size: 38px; }
.deal-hero .logo-tile--mono { background: transparent; border: 2px solid rgba(216,166,70,.6); }
.deal-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 10px 0 12px; }
.facts { list-style: none; padding: 16px 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .icon { color: var(--gold); margin-top: 3px; }
.facts a { font-weight: 650; }
.terms { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.terms summary { cursor: pointer; font-weight: 750; }
.terms p { color: var(--muted); margin: 10px 0 0; white-space: pre-line; }
.voucher { position: sticky; top: calc(var(--header-h) + 18px); background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.voucher__head { background: var(--navy); color: var(--card); padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
.voucher__head .logo-tile { border-color: rgba(255,255,255,.15); }
.voucher__head strong { display: block; }
.voucher__head small { color: #CFC6B6; }
.voucher__body { padding: 22px; display: grid; gap: 14px; }
.voucher__value { font-family: var(--font-display); font-size: clamp(38px, 5vw, 52px); line-height: 1; color: var(--gold); }
.voucher__title { font-size: 19px; font-weight: 750; line-height: 1.3; }
.voucher__expiry { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.voucher__expiry.is-urgent { color: var(--danger); }
.voucher__instore { border: 2px dashed var(--gold-bright); background: var(--gold-pale); border-radius: 14px; padding: 14px; text-align: center; }
.voucher__instore strong { display: block; font-size: 15px; }
.voucher__instore code { font-family: var(--font-mono); font-size: 20px; font-weight: 800; letter-spacing: .1em; }
.voucher__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voucher__foot { border-top: 2px dashed var(--line); padding: 14px 22px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); position: relative; }
.voucher__foot::before, .voucher__foot::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.voucher__foot::before { left: -11px; clip-path: inset(0 0 0 50%); }
.voucher__foot::after { right: -11px; clip-path: inset(0 50% 0 0); }
.voucher__print-brand { display: none; }
.ended-banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #F6E1DB; color: var(--danger); font-weight: 650; margin-bottom: 16px; }

/* Business profile */
.biz-head { display: flex; gap: 22px; align-items: center; }
.biz-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Area cards ------------------------------------------------------------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.area-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.area-card.is-current { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(216,166,70,.22); }
.area-card h3 { font-family: var(--font-display); font-size: 28px; }
.area-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.area-card__distance { font-size: 13px; font-weight: 750; color: var(--gold); white-space: nowrap; }
.area-card__stats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.area-card__stats strong { color: var(--navy); }
.area-card__suburbs { font-size: 14px; color: var(--muted); }
.area-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.suburb-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.suburb-cloud span { padding: 5px 10px; border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 600; }

/* Advertise -------------------------------------------------------------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pkg { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; position: relative; }
.pkg.is-featured { background: var(--navy); color: var(--card); border-color: var(--navy); box-shadow: var(--shadow-lg); }
.pkg.is-featured .pkg__size, .pkg.is-featured li { color: #D5CDBF; }
.pkg__ribbon { position: absolute; top: 18px; right: 18px; }
.pkg__name { font-size: 22px; font-weight: 800; }
.pkg__size { color: var(--muted); font-weight: 600; }
.pkg__price { font-family: var(--font-display); font-size: 40px; color: var(--gold); line-height: 1; margin-top: 6px; }
.pkg.is-featured .pkg__price { color: var(--gold-bright); }
.pkg__price small { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: inherit; opacity: .7; margin-left: 4px; }
.pkg ul { margin: 6px 0 12px; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.pkg .btn { margin-top: auto; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.benefit .icon-circle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-bright); margin-bottom: 12px; }
.benefit h3 { font-size: 17px; margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 14px; margin: 0; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-bright); color: var(--navy); font-weight: 850; margin-bottom: 10px; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.field-input, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"], .field input[type="search"], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 11px 14px; font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312213B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.field-input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(216,166,70,.22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; padding: 8px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 650; margin: 4px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* Auth */
.auth { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); max-width: 980px; margin: clamp(24px, 5vw, 56px) auto; background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth__aside { background: var(--navy); color: #E8E1D3; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.auth__aside::after { content: ''; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; border: 46px solid rgba(216,166,70,.13); }
.auth__aside img { width: 72px; height: 72px; }
.auth__aside h2 { font-family: var(--font-display); color: var(--card); font-size: 30px; }
.auth__aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth__aside li { display: flex; gap: 10px; align-items: flex-start; }
.auth__aside li .icon { color: var(--gold-bright); margin-top: 3px; }
.auth__main { padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; align-content: start; }
.auth__main h1 { font-family: var(--font-display); font-size: 32px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; font-weight: 650; }
.btn-google:hover { background: #f6f6f6; color: #1f1f1f; border-color: #9e9e9e; }
.btn-google svg { width: 20px; height: 20px; }

/* Password reset */
.grid-reset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* Account */
.account-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-card { text-align: center; display: grid; gap: 8px; justify-items: center; }
.account-card .avatar { width: 84px; height: 84px; font-size: 28px; }
.stack { display: grid; gap: 20px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.status-row:first-of-type { border-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sand); }
.pill--ok { background: #DDEBE2; color: var(--success); }
.pill--off { background: var(--sand); color: var(--muted); }
details.disclosure > summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary .icon { transition: transform .2s ease; }
details.disclosure[open] > summary .icon { transform: rotate(180deg); }
details.disclosure > .disclosure__body { margin-top: 16px; }
.danger-zone { border-color: #E5C4BA; }

/* Competition detail */
.comp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.prize-panel { border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(216,166,70,.35), transparent 50%), linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--card); padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; }
.prize-panel img { border-radius: 16px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prize-panel .kicker { color: var(--gold-bright); }
.prize-panel h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); color: var(--card); }
.prize-panel .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #D5CDBF; font-size: 14px; }
.entry-card { position: sticky; top: calc(var(--header-h) + 18px); }
.entered { text-align: center; display: grid; gap: 10px; justify-items: center; }
.entered .icon-circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #DDEBE2; color: var(--success); }
.entered .icon-circle .icon { width: 30px; height: 30px; }
.winner { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--gold-pale); }
.winner .icon { color: var(--gold); width: 28px; height: 28px; }

/* About */
.statement { display: flex; gap: 18px; align-items: flex-start; background: var(--navy); color: var(--card); border-radius: 24px; padding: clamp(22px, 4vw, 36px); }
.statement .icon { color: var(--gold-bright); width: 28px; height: 28px; }
.statement h2 { font-family: var(--font-display); color: var(--card); font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.statement p { color: #D5CDBF; margin: 0; }
.publisher { display: grid; gap: 6px; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #CFC6B6; margin-top: clamp(40px, 6vw, 80px); padding: clamp(40px, 6vw, 64px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-footer a { color: #E8E1D3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.4fr; gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand .brand { color: var(--card); }
.footer-brand .brand__edition { color: var(--gold-bright); }
.footer-col h3 { color: var(--card); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.newsletter form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 200px; min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--card); padding: 0 14px; }
.newsletter input::placeholder { color: #A9A090; }
.newsletter select { min-height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--card); padding: 0 12px; }
.newsletter select option { color: var(--navy); }
.newsletter__msg { margin-top: 10px; font-weight: 650; color: var(--gold-bright); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Error page */
.error-page { text-align: center; padding: clamp(48px, 10vw, 120px) 0; }
.error-page .code { font-family: var(--font-display); font-size: clamp(64px, 12vw, 120px); color: var(--gold); line-height: 1; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav a { padding: 10px 9px; font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .main-nav, .header-search, .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; align-items: center; justify-content: center; }
  .site-header__inner { gap: 12px; }
  .hero__grid, .split, .deal-layout, .comp-layout, .band__grid, .account-grid, .auth, .grid-reset { grid-template-columns: minmax(0, 1fr); }
  .ticket-stack { min-height: 0; display: grid; gap: 12px; }
  .ticket { position: relative; inset: auto !important; width: 100%; transform: none !important; }
  .ticket:nth-child(n+2) { display: none; }
  .side-stack, .voucher, .entry-card, .filters { position: static; }
  .deal-layout > .voucher { order: -1; }
  .deal-hero--logo { display: none; }
  .listing { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filters-toggle { display: block; }
  .filters { display: none; }
  .filters-toggle[open] + .filters, .filters.is-open { display: grid; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { padding-bottom: 28px; }
  .auth__aside ul { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .tabbar { display: flex; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .utility-links { display: none; }
  .utility-bar__inner { justify-content: center; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 13px; letter-spacing: .12em; }
  .category-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .category-strip::-webkit-scrollbar { display: none; }
  .category-chip { flex: 0 0 104px; scroll-snap-align: start; }
  .offer-grid--3, .pkg-grid, .benefits, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 12px; }
  .stat span { font-size: 10px; letter-spacing: .06em; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-search { padding-left: 12px; gap: 6px; }
  .hero-search input { font-size: 16px; }
  /* Icon-only submit so the text box keeps most of the width. */
  .hero-search__btn { width: 46px; padding: 0; flex: none; }
  .hero-search__btn .icon { display: block; width: 20px; height: 20px; }
  .hero-search__btn span { display: none; }
  .biz-head { flex-direction: column; align-items: flex-start; }
  .voucher__actions { grid-template-columns: minmax(0, 1fr); }
  .band { border-radius: 22px; }
  .coupon__media { aspect-ratio: 16 / 5.5; }
  .coupon__media--logo .logo-tile { width: 64px; height: 64px; border-radius: 16px; font-size: 21px; }
  .coupon__body { padding: 14px 16px 12px; }
  .coupon__title { font-size: 17px; }
  .coupon__actions { padding: 12px 16px 14px; }
  .comp-card__media { aspect-ratio: 16 / 7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Print: just the voucher ------------------------------------------------- */
@media print {
  body { background: #fff; padding: 0; }
  .utility-bar, .site-header, .tabbar, .site-footer, .announcement, .no-print, .breadcrumbs, .deal-main, .related, .flash-stack { display: none !important; }
  .deal-layout { display: block; }
  .voucher { position: static; box-shadow: none; border: 2px dashed #000; max-width: 520px; margin: 0 auto; }
  .voucher__head { background: #fff; color: #000; border-bottom: 1px solid #000; }
  .voucher__print-brand { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 12px; font-weight: 800; letter-spacing: .14em; }
  .voucher__print-brand img { width: 36px; height: 36px; }
  .voucher__foot::before, .voucher__foot::after { display: none; }
}
