/* lowtide Tide Deal — search-family light default / price clarity, not urgency */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

body.tide-page {
  --td-bg: #F7F8FC;
  --td-surface: #F0F2F9;
  --td-raised: #E9ECF5;
  --td-text: #10172B;
  --td-muted: #5A6482;
  --td-line: #D9DEEB;
  --td-button: #2348FF;
  --td-link: #2348FF;
  --td-warning: #765000;
  --td-save: #B6FF00;
  --td-save-ink: #182300;
  --td-tile: #EEF1FA;
  --td-radius: 20px;
  --td-shadow: 0 14px 34px rgb(26 38 77 / .08);
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin: 0;
  background: var(--td-bg);
  color: var(--td-text);
  font-family: "Instrument Sans", "PingFang HK", "Noto Sans HK", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

:root[data-theme="dark"] body.tide-page {
  --td-bg: #10172B;
  --td-surface: #172038;
  --td-raised: #26304F;
  --td-text: #F2F5FF;
  --td-muted: #B6C1DC;
  --td-line: #394360;
  --td-button: #2348FF;
  --td-link: #9AB2EF;
  --td-warning: #FFD782;
  --td-save: #B6FF00;
  --td-save-ink: #182300;
  --td-tile: #EEF1FA;
  --td-shadow: 0 16px 42px rgb(0 0 0 / .16);
  color-scheme: dark;
}
/* Same full-viewport canvas geometry as /search, anchored to the page top.
   The static wash remains visible if JavaScript or WebGL is unavailable. */
body.tide-page .td-aurora {
  position: absolute; inset: 0 0 auto; width: 100%; height: 100vh; height: 100dvh;
  z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 0%, rgb(82 39 255 / .13), transparent 55%),
    radial-gradient(ellipse at 55% 0%, rgb(124 255 103 / .16), transparent 52%),
    radial-gradient(ellipse at 95% 0%, rgb(82 39 255 / .12), transparent 55%);
}
body.tide-page .td-aurora canvas { pointer-events: none; }
body.tide-page *, body.tide-page *::before, body.tide-page *::after { box-sizing: border-box; }
body.tide-page button,
body.tide-page input,
body.tide-page select { font: inherit; color: inherit; }
body.tide-page button,
body.tide-page a,
body.tide-page select,
body.tide-page summary { -webkit-tap-highlight-color: transparent; }
body.tide-page a { color: var(--td-link); }
body.tide-page :focus-visible { outline: 3px solid var(--td-button); outline-offset: 3px; }
:root[data-theme="dark"] body.tide-page :focus-visible { outline-color: #B6FF00; }
body.tide-page ::selection { background: var(--td-button); color: #F2F5FF; }

.td-main { width: min(100% - 48px, 1120px); margin: 0 auto; padding: 30px 0 80px; }
.sample-banner {
  min-height: 36px; display: flex; align-items: center; justify-content: center;
  padding: 6px 18px; background: var(--td-raised); border-bottom: 1px solid var(--td-line);
  color: var(--td-muted); text-align: center; font-size: 12px; letter-spacing: .035em;
}
.td-header {
  width: min(100% - 48px, 1120px); min-height: 76px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--td-line);
}
.td-brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.td-brand img { display: block; width: 148px; height: auto; }
.td-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.td-nav a { color: var(--td-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.td-nav a:hover, .td-nav a[aria-current="page"] { color: var(--td-text); }
.td-region { position: relative; }
.td-region summary {
  min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none;
  padding: 0 12px; border: 1px solid var(--td-line); border-radius: 999px; color: var(--td-muted); cursor: pointer; font-size: 13px;
}
.td-region summary::-webkit-details-marker { display: none; }
.td-region summary::after { content: "⌄"; color: var(--td-text); font-size: 16px; }
.td-region[open] summary { border-color: var(--td-link); }
.td-region > :not(summary) { position: absolute; top: calc(100% + 8px); right: 0; z-index: 8; min-width: 180px; padding: 8px; border: 1px solid var(--td-line); border-radius: 14px; background: var(--td-surface); box-shadow: var(--td-shadow); }
.td-theme { width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--td-line); border-radius: 50%; background: var(--td-surface); cursor: pointer; }

.td-hero { padding: clamp(48px, 8vw, 94px) 0 46px; max-width: 850px; }
.td-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--td-link); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.td-kicker::before { content: ""; width: 25px; height: 1px; background: currentColor; }
.td-hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 7vw, 82px); font-weight: 650; letter-spacing: -.065em; line-height: .99; text-wrap: balance; }
.td-subline { max-width: 600px; margin: 23px 0 0; color: var(--td-muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.td-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.td-btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: var(--td-button); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.td-btn:hover { transform: translateY(-2px); background: #3155ff; }
.td-btn.outline { border-color: var(--td-line); background: transparent; color: var(--td-text) !important; }
.td-btn.outline:hover { border-color: var(--td-link); background: var(--td-surface); }
.td-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid var(--td-line); border-bottom: 1px solid var(--td-line); }
.td-stat { min-width: 0; padding: 19px 20px 20px 0; }
.td-stat + .td-stat { padding-left: 24px; border-left: 1px solid var(--td-line); }
.td-stat strong { display: block; color: var(--td-text); font-size: clamp(20px, 3vw, 29px); font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.2; }
.td-stat span { display: block; margin-top: 4px; color: var(--td-muted); font-size: 12px; }

.td-strip { margin: 56px 0 60px; }
.td-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.td-section-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -.04em; }
.td-pause { min-height: 44px; padding: 0 15px; border: 1px solid var(--td-line); border-radius: 999px; background: transparent; color: var(--td-muted); cursor: pointer; font-size: 12px; }
.td-pause:hover { border-color: var(--td-link); color: var(--td-text); }
.td-strip-viewport { overflow: hidden; position: relative; margin-inline: calc((min(100vw - 48px, 1120px) - 100vw) / 2); padding: 4px max(24px, calc((100vw - 1120px) / 2)) 10px; }
.td-strip-track { display: flex; width: max-content; gap: 14px; animation: td-strip-scroll var(--strip-duration, 32s) linear infinite; will-change: transform; }
.td-strip-group { display: flex; flex: 0 0 auto; gap: 14px; }
@keyframes td-strip-scroll { to { transform: translateX(calc(-1 * var(--strip-distance, 0px))); } }
.td-strip-viewport:hover .td-strip-track,
.td-strip-viewport:focus-within .td-strip-track,
.td-strip.is-paused .td-strip-track { animation-play-state: paused; }
.td-strip-tile { position: relative; width: 120px; flex: 0 0 120px; overflow: hidden; border: 1px solid var(--td-line); border-radius: 18px; background: var(--td-surface); color: var(--td-text); text-decoration: none; }
.td-tile-image { position: relative; height: 120px; display: grid; place-items: center; background: var(--td-tile); }
.td-tile-image svg { width: 72px; height: 62px; }
.td-image-label { position: absolute; top: 7px; left: 7px; padding: 2px 6px; border-radius: 999px; background: rgb(16 23 43 / .82); color: #F2F5FF; font-size: 10px; line-height: 1.4; }
.td-strip-name { display: block; padding: 9px 10px 10px; overflow: hidden; color: var(--td-text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.td-mini-saving { position: absolute; bottom: 7px; left: 7px; z-index: 1; border-radius: 999px; background: var(--td-raised); color: var(--td-text); padding: 3px 6px; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.td-mini-saving.pass { background: var(--td-save); color: var(--td-save-ink); }
.td-mini-saving.borderline { background: #172038; color: #FFD782; }
.td-tile-image .td-image-label { left: auto; right: 7px; }
.td-product-image .td-image-label { top: auto; left: auto; bottom: 7px; right: 7px; }
.td-caption { margin: 8px 0 0; color: var(--td-muted); font-size: 12px; }

.td-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 52px 0 20px; }
.td-filters label { display: grid; gap: 6px; min-width: 150px; color: var(--td-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.td-filters select { min-height: 46px; width: 100%; padding: 0 38px 0 14px; border: 1px solid var(--td-line); border-radius: 12px; background: var(--td-surface); color: var(--td-text); font-size: 14px; text-transform: none; }
.td-search { min-height: 46px; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--td-line); border-radius: 999px; background: var(--td-raised); color: var(--td-text) !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.td-search:hover { border-color: var(--td-link); }
.td-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.td-card { min-width: 0; overflow: hidden; border: 1px solid var(--td-line); border-radius: var(--td-radius); background: var(--td-surface); color: var(--td-text); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.td-card:hover { transform: translateY(-3px); border-color: #65739b; }
.td-product-image { position: relative; aspect-ratio: 1.12 / 1; display: grid; place-items: center; background: var(--td-tile); }
.td-product-image svg { width: 61%; height: 61%; }
.td-product-image .td-image-label { top: 12px; left: 12px; padding: 3px 8px; font-size: 11px; }
.td-tag { position: absolute; right: 12px; top: 12px; padding: 4px 8px; border: 1px solid rgb(16 23 43 / .15); border-radius: 999px; background: #F7F8FC; color: #26304F; font-size: 10px; font-weight: 700; }
.td-card-body { padding: 15px 16px 16px; }
.td-brand-name { display: block; margin: 0 0 5px; color: var(--td-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.td-card h3 { min-height: 2.8em; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.td-saving { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.td-saving.pass { background: var(--td-save); color: var(--td-save-ink); }
.td-saving.borderline { border: 1px solid var(--td-line); background: var(--td-raised); color: var(--td-warning); }
.td-saving.hk-cheaper { border: 1px solid var(--td-line); background: var(--td-raised); color: var(--td-muted); }
.td-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.td-price-line strong { font-size: 23px; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.td-price-line del { color: var(--td-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.td-price-line small { color: var(--td-muted); font-size: 11px; }
.td-fine { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--td-line); color: var(--td-muted); font-size: 11px; line-height: 1.45; }
.td-risk { color: var(--td-warning); }
.td-card time { color: var(--td-muted); font-size: 10px; }
.td-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 48px; padding: 24px 28px; border: 1px solid var(--td-line); border-radius: var(--td-radius); background: var(--td-surface); }
.td-bottom-cta p { margin: 0; color: var(--td-muted); font-size: 14px; }
.td-bottom-cta h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.035em; }
.td-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0; }
.td-pagination button, .td-pagination a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--td-line); border-radius: 999px; background: transparent; color: var(--td-text); text-decoration: none; cursor: pointer; }
.td-pagination [aria-current="page"] { border-color: var(--td-button); background: var(--td-button); color: #fff; }
.td-hint { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--td-warning); background: var(--td-raised); color: var(--td-text); }
.td-hint button { min-height: 44px; margin: 6px 6px 0 0; padding: 0 14px; border: 1px solid var(--td-line); border-radius: 999px; background: var(--td-surface); cursor: pointer; }
.td-footer { display: flex; justify-content: space-between; gap: 24px; padding: 27px 0 10px; border-top: 1px solid var(--td-line); color: var(--td-muted); font-size: 12px; }
.td-footer a { color: var(--td-link); }

/* Product detail: same component is used in the full-page route and dialog panel. */
.td-sheet { position: fixed; inset: 0 0 0 auto; width: min(400px, 100vw); max-width: none; max-height: none; height: 100dvh; margin: 0; padding: 0; overflow: auto; border: 0; border-left: 1px solid var(--td-line); border-radius: 0; background: var(--td-bg); color: var(--td-text); box-shadow: var(--td-shadow); transform: translateX(105%); transition: transform 280ms cubic-bezier(.2,.75,.25,1); }
.td-sheet[open] { transform: translateX(0); }
.td-sheet::backdrop { background: rgb(5 9 22 / .62); opacity: 0; transition: opacity 280ms ease; }
.td-sheet[open]::backdrop { opacity: 1; }
.td-sheet-head { position: sticky; top: 0; z-index: 2; min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--td-line); background: var(--td-bg); }
.td-sheet-head strong { font-size: 13px; letter-spacing: .02em; }
.td-close { width: 44px; height: 44px; border: 1px solid var(--td-line); border-radius: 50%; background: var(--td-surface); cursor: pointer; }
#td-sheet-content { padding: 18px 20px 36px; }
.td-detail { display: flex; flex-direction: column; gap: 15px; }
.td-detail-image { position: relative; min-height: 230px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--td-tile); }
.td-detail-image svg { width: 64%; height: 190px; }
.td-detail-title { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.045em; }
.td-variant { display: inline-flex; align-self: flex-start; padding: 5px 10px; border: 1px solid var(--td-line); border-radius: 999px; color: var(--td-muted); font-size: 12px; }
dl.td-breakdown { margin: 0; padding: 5px 0; border-top: 1px solid var(--td-line); border-bottom: 1px solid var(--td-line); }
.td-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; }
.td-breakdown dt { color: var(--td-muted); font-size: 13px; }
.td-breakdown dd { margin: 0; text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.td-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--td-raised); color: var(--td-muted); font-size: 12px; }
.td-sources { display: flex; flex-direction: column; gap: 4px; }
.td-sources a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--td-line); font-size: 13px; text-decoration: none; }
.td-share { display: flex; flex-wrap: wrap; gap: 8px; }
.td-share button { min-height: 44px; flex: 1 1 120px; border: 1px solid var(--td-line); border-radius: 999px; background: var(--td-surface); cursor: pointer; font-size: 13px; }
.td-detail-meta { color: var(--td-muted); font-size: 11px; }
.td-how-link { align-self: flex-start; font-size: 13px; }
.td-detail-page { width: min(100% - 48px, 760px); margin: 0 auto; padding: 38px 0 80px; }
.td-detail-page .td-detail { padding: 22px; border: 1px solid var(--td-line); border-radius: var(--td-radius); background: var(--td-surface); }
.td-detail-page .td-detail-image { min-height: 300px; }
.td-how { width: min(100% - 48px, 760px); margin: 0 auto; padding: 52px 0 90px; }
.td-how h1 { margin: 0 0 25px; font-size: clamp(36px, 6vw, 56px); letter-spacing: -.06em; line-height: 1.03; }
.td-how h2 { margin: 34px 0 10px; font-size: 22px; letter-spacing: -.035em; }
.td-how p, .td-how li { max-width: 66ch; color: var(--td-muted); line-height: 1.75; }
.td-how strong { color: var(--td-text); }

@media (min-width: 768px) and (max-width: 1023px) { .td-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .td-main, .td-header { width: min(100% - 36px, 600px); }
  .td-header { min-height: 66px; gap: 10px; }
  .td-brand img { width: 114px; }
  .td-nav { gap: 12px; margin-left: auto; }
  .td-nav a { font-size: 12px; }
  .td-region summary { min-height: 42px; padding: 0 10px; font-size: 11px; }
  .td-theme { width: 42px; height: 42px; }
  .td-main { padding-top: 18px; }
  .td-hero { padding: 50px 0 34px; }
  .td-hero h1 { max-width: 12ch; font-size: clamp(42px, 11vw, 62px); }
  .td-subline { margin-top: 17px; font-size: 16px; }
  .td-actions { gap: 9px; margin-top: 22px; }
  .td-btn { min-height: 46px; padding-inline: 17px; }
  .td-stat { padding: 14px 10px 15px 0; }
  .td-stat + .td-stat { padding-left: 12px; }
  .td-stat span { font-size: 10px; line-height: 1.35; }
  .td-strip { margin: 42px 0 46px; }
  .td-section-head { align-items: center; }
  .td-section-head h2 { font-size: 22px; }
  .td-strip-viewport { margin-inline: -18px; padding-inline: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .td-strip-viewport::-webkit-scrollbar { display: none; }
  .td-strip-track { gap: 10px; animation-duration: var(--strip-duration, 24s); }
  .td-strip-group { gap: 10px; }
  .td-strip-tile { width: 84px; flex-basis: 84px; border-radius: 14px; scroll-snap-align: start; }
  .td-tile-image { height: 72px; }
  .td-tile-image svg { width: 56px; height: 52px; }
  .td-strip-name { display: none; }
  .td-mini-saving { top: 5px; right: 5px; padding: 2px 5px; font-size: 9px; }
  .td-image-label { top: 5px; left: 5px; font-size: 9px; }
  .td-filters { gap: 8px; margin-top: 38px; }
  .td-filters label { min-width: min(145px, calc(50% - 4px)); flex: 1; }
  .td-search { min-height: 44px; flex: 1 0 100%; margin: 2px 0 0; }
  .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .td-card { border-radius: 16px; }
  .td-product-image { aspect-ratio: 1 / .86; }
  .td-product-image .td-image-label { top: 8px; left: 8px; font-size: 9px; }
  .td-tag { top: 8px; right: 8px; font-size: 9px; }
  .td-card-body { padding: 11px 11px 12px; }
  .td-card h3 { font-size: 13px; min-height: 3em; }
  .td-brand-name { font-size: 9px; }
  .td-price-line { gap: 5px; margin-top: 8px; }
  .td-price-line strong { font-size: 19px; }
  .td-price-line del { font-size: 10px; }
  .td-price-line small { font-size: 9px; }
  .td-saving { min-height: 24px; padding-inline: 7px; font-size: 10px; }
  .td-fine { margin-top: 8px; padding-top: 8px; font-size: 10px; }
  .td-bottom-cta { align-items: flex-start; flex-direction: column; margin-top: 34px; padding: 20px; }
  .td-bottom-cta .td-btn { width: 100%; }
  .td-footer { flex-direction: column; gap: 8px; }
  .td-sheet { inset: auto 0 0; width: 100%; height: min(88dvh, 760px); border: 1px solid var(--td-line); border-bottom: 0; border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .td-sheet[open] { transform: translateY(0); }
  #td-sheet-content { padding: 14px 18px max(28px, env(safe-area-inset-bottom)); }
  .td-detail-image { min-height: 190px; }
  .td-detail-image svg { height: 155px; }
  .td-detail-title { font-size: 22px; }
  .td-detail-page, .td-how { width: min(100% - 36px, 600px); }
  .td-detail-page .td-detail { padding: 14px; }
  .td-detail-page .td-detail-image { min-height: 230px; }
}
@media (max-width: 390px) {
  .td-header { width: calc(100% - 24px); gap: 7px; }
  .td-brand img { width: 98px; }
  .td-nav { gap: 8px; }
  .td-nav a { font-size: 11px; }
  .td-region summary { padding-inline: 8px; }
  .td-main, .td-detail-page, .td-how { width: calc(100% - 28px); }
  .td-strip-viewport { margin-inline: -14px; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.tide-page *, body.tide-page *::before, body.tide-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .td-strip-track { animation: none !important; transform: none !important; }
  .td-strip-viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
  .td-strip-group[aria-hidden="true"] { display: none; }
  .td-card:hover, .td-btn:hover { transform: none; }
  .td-sheet { transition: none; }
}

/* Exact public-page controls and sample annotations. */
.td-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--td-surface); }
.td-skip:focus { top: 12px; }
.td-region-short { display: none; }
.td-stats { display: flex; gap: 10px; flex-wrap: wrap; border: 0; }
.td-stat, .td-stat + .td-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px; border: 1px solid var(--td-line); border-radius: 999px; color: var(--td-muted); font-size: 12px; }
.td-stat strong { display: inline; font-size: 20px; }
.td-taxonomy { display: flex; flex-wrap: wrap; gap: 10px; }
.td-taxonomy a, .td-detail > .td-brand-name { display: inline-flex; align-items: center; min-height: 44px; }
.td-theme { white-space: nowrap; font-size: 12px; }
.td-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.tide-page a.td-card { color: var(--td-text); }
.td-card .td-saving { font-size: 16px; letter-spacing: -.035em; }
.td-price-line strong { font-size: 15px; letter-spacing: -.02em; }
.td-detail > .td-saving { align-self: flex-start; font-size: 20px; }
.td-region summary::after { content: none; }
.td-region-menu a, .td-region-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px; background: none; border: 0; text-decoration: none; text-align: left; }
.td-region-menu button:disabled { color: var(--td-muted); opacity: .8; cursor: not-allowed; }
.td-region-menu button span { font-size: 11px; }
.td-product-image { aspect-ratio: 1; }
.td-product-image .td-tag { top: 10px; left: 10px; right: auto; }
.td-product-image .td-image-label { top: auto; left: auto; right: 10px; bottom: 10px; }
.td-filters .td-checkbox { display: flex; align-items: center; min-height: 46px; text-transform: none; letter-spacing: normal; cursor: pointer; }
.td-checkbox input { width: 20px; height: 20px; accent-color: var(--td-button); }
.td-price-line small { margin-left: auto; }
.td-footer { width: min(100% - 48px, 1120px); margin: 0 auto; padding-bottom: 28px; }
.td-how-link, .td-sources a, .td-pagination a, .td-nav a, .td-share button { min-height: 44px; display: inline-flex; align-items: center; }
.td-fine { display: flex; gap: 5px; flex-wrap: wrap; }
.td-sheet[open] { animation: td-sheet-in 280ms cubic-bezier(.2,.8,.2,1); }
@keyframes td-sheet-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 640px) {
  .td-region-full { display: none; }
  .td-region-short { display: inline; }
  .td-region summary { min-height: 44px; }
  .td-tile-image { height: 84px; }
  .td-mini-saving { top: auto; right: auto; font-size: 9px; left: 3px; bottom: 3px; padding: 2px 4px; }
  .td-card .td-saving { font-size: 12px; padding: 3px 6px; }
  .td-card { border-radius: 20px; }
  .td-card .td-price-line { flex-wrap: nowrap; gap: 4px; white-space: nowrap; }
  .td-card .td-price-line strong { font-size: 13px; }
  .td-card .td-price-line small { font-size: 8px; }
  .td-card .td-price-line del, .td-card .td-price-line > span { font-size: 9px; }
  .td-card:has(.hk-cheaper) .td-price-line { flex-wrap: wrap; }
  .td-sheet[open] { animation-name: td-sheet-up; }
  @keyframes td-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .td-sheet[open] { animation: none; }
}

/* Deals directory: search-first, like lowtide's /search surface.
   Keep the same compact typographic voice while giving the sample catalog its own clear hierarchy. */
body.tide-deals-view {
  --td-bg: #F7F8FC; --td-surface: #FFFFFF; --td-raised: #EEF1FA;
  --td-text: #10172B; --td-muted: #5A6482; --td-line: #DDE2EF;
  --td-link: #2348FF; --td-tile: #E9EDF8;
  background: var(--td-bg);
}
:root[data-theme="dark"] body.tide-deals-view {
  --td-bg: #10172B;
  --td-surface: #172038;
  --td-raised: #202944;
  --td-text: #F2F5FF;
  --td-muted: #B6C1DC;
  --td-line: #394360;
  --td-button: #2348FF;
  --td-link: #9AB2EF;
  --td-tile: #2A3457;
  background: var(--td-bg);
}
body.tide-deals-view .sample-banner {
  min-height: 30px; padding: 4px 16px;
  background: var(--td-surface); border-color: var(--td-line);
  font-size: 11px; letter-spacing: .02em;
}
body.tide-deals-view .td-header {
  width: calc(100% - 32px); max-width: 1200px; min-height: 68px;
  gap: 20px; border-color: var(--td-line);
}
body.tide-deals-view .td-brand { min-width: 120px; background: transparent; text-decoration: none; color: var(--td-text); }
body.tide-deals-view .td-brand img { display: none; }
.td-brand { background: transparent; color: var(--td-text); }
.td-wordmark {
  display: flex; align-items: center; padding: .04em .1em .08em;
  font-size: 26px; font-weight: 700; letter-spacing: -.055em; line-height: 1.05;
}
.td-wordmark i { display: block; font-style: normal; }
@media (min-width: 768px) { .td-wordmark { font-size: 28px; } }
body.tide-deals-view .td-nav { gap: 4px; margin-left: auto; }
body.tide-deals-view .td-nav a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px;
  border-radius: 999px; color: var(--td-muted); font-size: 13px; text-decoration: none;
}
body.tide-deals-view .td-nav a:hover,
body.tide-deals-view .td-nav a[aria-current="page"] {
  color: var(--td-text); background: color-mix(in srgb, var(--td-text) 7%, transparent);
}
body.tide-deals-view .td-region summary { min-height: 44px; background: var(--td-surface); font-size: 12px; }
body.tide-deals-view .td-theme { width: 44px; height: 44px; background: var(--td-surface); font-size: 12px; }
body.tide-deals-view .td-main { width: min(100% - 48px, 1120px); padding: 0 0 72px; }

/* Center the invitation into a lowtide search, not a second marketing hero. */
body.tide-deals-view .td-hero {
  width: min(100%, 760px); max-width: none; margin: 0 auto;
  padding: clamp(36px, 6vw, 68px) 0 12px; text-align: center;
}
body.tide-deals-view .td-kicker {
  justify-content: center; margin: 0 0 12px; color: var(--td-muted);
  font-size: 11px; letter-spacing: .08em;
}
body.tide-deals-view .td-kicker::before { width: 16px; }
body.tide-deals-view .td-hero h1 {
  max-width: none; margin: 0; font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 650; letter-spacing: -.05em; line-height: 1.12; text-wrap: balance;
}
body.tide-deals-view .td-subline {
  max-width: 52ch; margin: 12px auto 0; color: var(--td-muted); font-size: 15px;
}
body.tide-deals-view .td-search {
  width: min(100%, 680px); min-height: 72px; display: flex; justify-content: flex-start;
  gap: 14px; margin: 25px auto 0; padding: 0 23px; border: 1px solid var(--td-line);
  border-radius: 999px; background: var(--td-surface); box-shadow: var(--td-shadow);
  color: var(--td-muted) !important; font-size: 16px; font-weight: 500;
  text-decoration: none; text-align: left; transition: border-color .16s ease, transform .16s ease;
}
body.tide-deals-view .td-search:hover { border-color: var(--td-link); transform: translateY(-1px); }
body.tide-deals-view .td-search > span:nth-last-child(1) { margin-left: auto; color: var(--td-text); }
body.tide-deals-view .td-search svg { flex: none; color: var(--td-text); }
body.tide-deals-view .td-stats { justify-content: center; gap: 8px; margin-top: 17px; }
body.tide-deals-view .td-stat,
body.tide-deals-view .td-stat + .td-stat {
  min-height: 36px; padding: 5px 13px; gap: 5px; border: 1px solid var(--td-line);
  background: var(--td-surface); color: var(--td-muted); font-size: 12px;
}
body.tide-deals-view .td-stat strong { color: var(--td-text); font-size: 15px; }

/* Editorially restrained product rail, then a properly scoped catalog. */
body.tide-deals-view .td-strip { margin: 25px 0 42px; }
body.tide-deals-view .td-section-head { margin-bottom: 12px; }
body.tide-deals-view .td-section-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
body.tide-deals-view .td-pause { min-height: 44px; padding: 0 13px; background: var(--td-surface); font-size: 12px; }
body.tide-deals-view .td-strip-viewport {
  margin-inline: 0; padding: 3px 0 8px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
body.tide-deals-view .td-strip-viewport::-webkit-scrollbar { display: none; }
body.tide-deals-view .td-strip-track { gap: 12px; }
body.tide-deals-view .td-strip-group { gap: 12px; }
body.tide-deals-view .td-strip-tile { width: 120px; flex-basis: 120px; border-radius: 14px; scroll-snap-align: start; }
body.tide-deals-view .td-tile-image { height: 120px; aspect-ratio: 1; background: var(--td-tile); }
body.tide-deals-view .td-tile-image svg { width: 60px; height: 56px; }
body.tide-deals-view .td-strip-name { display: block; padding: 8px 9px; font-size: 11px; }
body.tide-deals-view .td-mini-saving { font-size: 10px; }
body.tide-deals-view .td-caption { margin-top: 7px; font-size: 11px; }
body.tide-deals-view .td-filters {
  display: flex; align-items: end; gap: 10px; margin: 0 0 16px; padding: 0;
  border: 0; border-radius: 0; background: transparent;
}
body.tide-deals-view .td-filters label {
  min-width: 132px; flex: 1 1 132px; color: var(--td-muted);
  font-size: 11px; letter-spacing: .025em;
}
body.tide-deals-view .td-filters select {
  min-height: 46px; margin-top: 5px; padding: 0 32px 0 13px; border-radius: 12px;
  border-color: var(--td-line); background: var(--td-surface); font-size: 13px;
}
body.tide-deals-view .td-filters .td-checkbox {
  min-height: 46px; gap: 8px; padding: 0 11px; border: 1px solid var(--td-line);
  border-radius: 12px; background: var(--td-surface); color: var(--td-text);
  font-size: 12px; letter-spacing: 0; white-space: normal;
}
body.tide-deals-view .td-checkbox input { width: 18px; height: 18px; margin: 0; }
body.tide-deals-view .td-filters .td-btn { min-height: 46px; padding-inline: 15px; font-size: 13px; }
body.tide-deals-view .td-filters > a {
  min-height: 44px; display: inline-flex; align-items: center; padding-inline: 8px;
  font-size: 12px; text-decoration: none;
}
body.tide-deals-view .td-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.tide-deals-view .td-card {
  border-color: var(--td-line); border-radius: 17px; background: var(--td-surface);
  transition: transform .16s ease, border-color .16s ease;
}
body.tide-deals-view .td-card:hover { transform: translateY(-2px); border-color: var(--td-link); }
body.tide-deals-view .td-product-image { aspect-ratio: 1.18; background: var(--td-tile); }
body.tide-deals-view .td-product-image svg { width: 54%; height: 54%; }
body.tide-deals-view .td-card-body { padding: 13px 14px 14px; }
body.tide-deals-view .td-brand-name { margin-bottom: 4px; font-size: 10px; }
body.tide-deals-view .td-card h3 { min-height: 2.7em; font-size: 14px; line-height: 1.38; }
body.tide-deals-view .td-card .td-saving { min-height: 26px; margin-top: 7px; padding: 3px 9px; font-size: 12px; }
body.tide-deals-view .td-card .td-saving.pass { background: var(--td-save); color: var(--td-save-ink); }
body.tide-deals-view .td-card .td-saving.borderline,
body.tide-deals-view .td-card .td-saving.hk-cheaper { background: var(--td-raised); }
body.tide-deals-view .td-price-line { flex-wrap: wrap; gap: 4px 7px; margin-top: 9px; white-space: normal; }
body.tide-deals-view .td-card .td-price-line {
  min-width: 0; flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere;
}
body.tide-deals-view .td-price-line strong { font-size: 17px; }
body.tide-deals-view .td-price-line del { font-size: 11px; }
body.tide-deals-view .td-price-line small { margin-left: 0; font-size: 10px; }
body.tide-deals-view .td-fine { gap: 5px; margin-top: 9px; padding-top: 9px; font-size: 11px; }
body.tide-deals-view .td-tag { border-color: var(--td-line); background: var(--td-surface); color: var(--td-text); }
body.tide-deals-view .td-bottom-cta { margin-top: 34px; padding: 20px 22px; border-radius: 17px; background: var(--td-surface); }
body.tide-deals-view .td-bottom-cta h2 { font-size: 19px; }
body.tide-deals-view .td-btn { min-height: 44px; padding-inline: 18px; font-size: 13px; }
body.tide-deals-view :focus-visible { outline: 2px solid var(--td-button); outline-offset: 3px; }
:root[data-theme="dark"] body.tide-deals-view :focus-visible { outline-color: var(--td-save); }
body.tide-deals-view .td-sheet { background: var(--td-bg); }
body.tide-deals-view[data-kind="deals"] .us-deals-hero { padding: clamp(34px, 6vw, 64px) 0 20px; }
body.tide-deals-view[data-kind="deals"] .us-deals-hero h1 { max-width: 14ch; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; }
.us-hk-note { display: inline-flex; margin-top: 14px; padding: 9px 13px; border: 1px solid color-mix(in srgb, var(--td-link) 30%, var(--td-line)); border-radius: 999px; color: var(--td-muted); background: var(--td-surface); font-size: 12px; }
.us-deals { margin: 12px 0 64px; }
.us-deals-intro { max-width: 720px; margin-bottom: 22px; }
.us-deals-intro h2 { margin: 6px 0; font-size: clamp(23px, 4vw, 34px); letter-spacing: -.035em; }
.us-deals-intro > p:last-child { color: var(--td-muted); line-height: 1.6; }
.us-offer-filters { display: grid; grid-template-columns: minmax(210px,2fr) repeat(3,minmax(130px,1fr)) auto auto; gap: 10px; align-items: end; margin: 24px 0 14px; }
.us-offer-filters label { display: grid; gap: 6px; color: var(--td-muted); font-size: 11px; }
.us-offer-filters input,.us-offer-filters select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--td-line); border-radius: 12px; background: var(--td-surface); color: var(--td-text); }
.us-offer-filters > a { align-self: center; color: var(--td-muted); font-size: 13px; }
.us-offer-count { margin: 10px 0 14px; color: var(--td-muted); font-size: 12px; }
.us-offer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.us-offer-entry { min-width: 0; }
.us-offer-entry > .us-offer-card { display: block; }
.td-estimate { margin-top: 8px; padding: 12px; border: 1px solid var(--td-line); border-radius: 14px; background: var(--td-surface); font-size: 12px; }
.td-estimate summary { cursor: pointer; padding-block: 8px; font-weight: 600; }
.td-estimate form, .td-estimate label { display: grid; gap: 8px; }
.td-estimate form { margin-top: 12px; }
.td-estimate input, .td-estimate select { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--td-line); border-radius: 8px; background: var(--td-surface); color: var(--td-text); }
.td-estimate output { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; font-weight: 600; }
.td-estimate p { color: var(--td-muted); line-height: 1.5; }
.us-offer-card { min-width: 0; overflow: hidden; border: 1px solid var(--td-line); border-radius: 17px; background: var(--td-surface); color: var(--td-text); text-decoration: none; box-shadow: 0 8px 26px rgb(0 0 0 / .12); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.us-offer-card:hover { transform: translateY(-3px); border-color: var(--td-link); box-shadow: 0 14px 34px rgb(0 0 0 / .2); }
.us-offer-image { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; height: auto; min-height: 0; overflow: hidden; background: #fff; }
.us-offer-image img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.us-offer-cut { position: absolute; top: 11px; left: 11px; padding: 6px 9px; border-radius: 999px; background: #c7ff43; color: #122019; font-size: 13px; font-weight: 800; }
.us-offer-arrow { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgb(16 23 43 / .8); color: white; }
.us-offer-body { padding: 13px 14px 15px; }
.us-offer-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--td-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.us-offer-card h3 { min-height: 3em; margin: 10px 0; font-size: 14px; line-height: 1.45; }
.us-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.us-offer-price strong { font-size: 21px; }
.us-offer-price del,.us-offer-price span { color: var(--td-muted); font-size: 11px; }
.us-offer-price span { width: 100%; }
.us-offer-status { margin: 12px 0 4px; font-size: 12px; }
.us-offer-cost-note { margin: 10px 0; padding: 9px; border-left: 3px solid var(--td-link); border-radius: 6px; background: var(--td-surface); color: var(--td-muted); font-size: 11px; line-height: 1.5; }
.us-offer-cost-note strong { display: block; color: var(--td-text); }
.us-offer-date { margin: 0; color: var(--td-muted); font-size: 10px !important; }
.us-offer-cta { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--td-line); color: var(--td-link); font-size: 12px; font-weight: 700; }
@media(max-width:900px){.us-offer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.us-offer-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.us-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.us-offer-body{padding:10px}.us-offer-card h3{font-size:12px}.us-offer-price strong{font-size:17px}.us-offer-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.us-offer-filters label:first-child{grid-column:1/-1}.us-offer-filters .td-btn{width:100%}.us-hk-note{border-radius:12px;line-height:1.5}}
body.tide-deals-view .td-detail-page .td-detail { border-radius: 18px; background: var(--td-surface); }
body.tide-deals-view .td-how { padding-top: 38px; }

@media (min-width: 768px) and (max-width: 1023px) {
  body.tide-deals-view .td-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.tide-deals-view .td-header { width: calc(100% - 28px); min-height: 64px; gap: 5px; }
  body.tide-deals-view .td-brand { min-width: 76px; }
  body.tide-deals-view .td-wordmark { font-size: 26px; }
  body.tide-deals-view .td-nav { gap: 0; }
  body.tide-deals-view .td-nav a { padding-inline: 7px; font-size: 11px; }
  body.tide-deals-view .td-region summary { padding-inline: 9px; }
  body.tide-deals-view .td-main { width: calc(100% - 32px); padding-bottom: 48px; }
  body.tide-deals-view .td-hero { padding: 36px 0 10px; }
  body.tide-deals-view .td-hero h1 { font-size: clamp(30px, 8vw, 40px); }
  body.tide-deals-view .td-subline { max-width: 36ch; font-size: 14px; }
  body.tide-deals-view .td-search { min-height: 64px; margin-top: 21px; padding: 0 17px; font-size: 14px; }
  body.tide-deals-view .td-stats { gap: 6px; }
  body.tide-deals-view .td-stat, body.tide-deals-view .td-stat + .td-stat { min-height: 36px; padding-inline: 10px; font-size: 11px; }
  body.tide-deals-view .td-strip { margin: 23px 0 30px; }
  body.tide-deals-view .td-section-head h2 { font-size: 17px; }
  body.tide-deals-view .td-strip-viewport { margin-inline: -16px; padding-inline: 16px; }
  body.tide-deals-view .td-strip-tile { width: 84px; flex-basis: 84px; }
  body.tide-deals-view .td-tile-image { height: 84px; aspect-ratio: 1; }
  body.tide-deals-view .td-strip-name { display: none; }
  body.tide-deals-view .td-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body.tide-deals-view .td-filters label { min-width: 0; }
  body.tide-deals-view .td-filters .td-checkbox { align-self: end; }
  body.tide-deals-view .td-filters .td-btn { width: 100%; }
  body.tide-deals-view .td-filters > a { justify-content: center; }
  body.tide-deals-view .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.tide-deals-view .td-card { border-radius: 15px; }
  body.tide-deals-view .td-product-image { aspect-ratio: 1 / .88; }
  body.tide-deals-view .td-card-body { padding: 10px; }
  body.tide-deals-view .td-card h3 { min-height: 2.7em; font-size: 13px; }
  body.tide-deals-view .td-card .td-saving { font-size: 11px; }
  body.tide-deals-view .td-price-line strong { font-size: 15px; }
  body.tide-deals-view .td-price-line small { font-size: 10px; }
  body.tide-deals-view .td-bottom-cta { align-items: flex-start; flex-direction: column; }
  body.tide-deals-view .td-bottom-cta .td-btn { width: 100%; }
}
@media (max-width: 390px) {
  body.tide-deals-view .td-header { width: calc(100% - 20px); }
  body.tide-deals-view .td-brand { min-width: 68px; }
  body.tide-deals-view .td-nav a { padding-inline: 5px; font-size: 10px; }
  body.tide-deals-view .td-region summary { padding-inline: 7px; }
  body.tide-deals-view .td-theme { width: 44px; height: 44px; }
  body.tide-deals-view .td-card-body { padding: 9px; }
  body.tide-deals-view .td-price-line { gap: 3px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  body.tide-deals-view .td-card, body.tide-deals-view .td-search, body.tide-deals-view .td-nav a { transition: none; }
  body.tide-deals-view .td-card:hover, body.tide-deals-view .td-search:hover { transform: none; }
  body.tide-deals-view .td-strip-track { animation: none !important; transform: none !important; }
  body.tide-deals-view .td-strip-group[aria-hidden="true"] { display: none; }
}

/* Search-style corner header; the sample banner stays in normal flow above it. */
body.tide-deals-view .td-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: none;
  min-height: 68px;
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  gap: 6px;
  border: 0;
  background: color-mix(in srgb, var(--td-bg) 18%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
body.tide-deals-view .td-brand { min-width: 0; height: 44px; }
body.tide-deals-view .td-wordmark {
  display: flex; overflow: hidden; padding: .04em .1em .08em;
  color: var(--td-text); font-size: 26px; font-weight: 700;
  letter-spacing: -.055em; line-height: 1.05;
}
body.tide-deals-view .td-wordmark i {
  display: block; font-style: normal;
  animation: td-letter-rise .6s cubic-bezier(.2,.8,.2,1) calc(.35s + var(--n) * 55ms) backwards;
}
@keyframes td-letter-rise { from { transform: translateY(105%); } }
body.tide-deals-view .td-nav { gap: 4px; }
body.tide-deals-view .td-nav a,
body.tide-deals-view .td-region summary,
body.tide-deals-view .td-theme {
  border: 1px solid color-mix(in srgb, var(--td-text) 14%, transparent);
  background: color-mix(in srgb, var(--td-bg) 42%, transparent);
  color: var(--td-text);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--td-text) 10%, transparent),
    0 5px 16px rgb(0 0 0 / .08);
}
body.tide-deals-view .td-nav a {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 12px; border-radius: 999px; color: var(--td-muted);
  font-size: 13px; font-weight: 600;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
body.tide-deals-view .td-nav a:hover,
body.tide-deals-view .td-nav a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--td-text) 24%, transparent);
  background: color-mix(in srgb, var(--td-text) 10%, transparent);
  color: var(--td-text);
}
body.tide-deals-view .td-region { flex: 0 0 auto; }
body.tide-deals-view .td-region summary {
  min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--td-text); font-size: 12px;
}
body.tide-deals-view .td-region summary::-webkit-details-marker { display: none; }
body.tide-deals-view .td-theme {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  color: var(--td-text); font-size: 12px;
}
body.tide-deals-view .td-theme:hover { background: color-mix(in srgb, var(--td-text) 12%, transparent); }
@media (min-width: 768px) {
  body.tide-deals-view .td-wordmark { font-size: 28px; }
}
@media (max-width: 767px) {
  body.tide-deals-view .td-header { min-height: 64px; gap: 4px; }
  body.tide-deals-view .td-nav { gap: 3px; }
  body.tide-deals-view .td-nav a { min-height: 44px; padding-inline: 8px; font-size: 11px; }
  body.tide-deals-view .td-region summary { min-height: 44px; padding-inline: 9px; font-size: 11px; }
  body.tide-deals-view .td-theme { width: 44px; height: 44px; }
}
@media (max-width: 390px) {
  body.tide-deals-view .td-header { gap: 3px; }
  body.tide-deals-view .td-nav { gap: 2px; }
  body.tide-deals-view .td-nav a { padding-inline: 6px; font-size: 10px; }
  body.tide-deals-view .td-region summary { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  body.tide-deals-view .td-wordmark i { animation: none; }
}
