/* CasinoWhois Core — frontend styles
   All classes are prefixed .cw- so they never clash with the theme. */

:root {
  --cw-page: #fbfaf7;
  --cw-cream: #f5f1e9;
  --cw-card: #ffffff;
  --cw-ink: #151413;
  --cw-ink-2: #3b3833;
  --cw-muted: #6b665e;
  --cw-line: #e6e0d5;
  --cw-line-strong: #d6cfc2;
  --cw-orange: #f2661b;
  --cw-orange-hover: #d9560f;
  --cw-orange-text: #b8480b;      /* small orange text on light bg (AA contrast) */
  --cw-good: #2f7a3e;
  --cw-good-bg: #e3f1e2;
  --cw-dark: #1a1816;

  --cw-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --cw-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --cw-wrap: 1180px;
  --cw-gutter: clamp(20px, 4vw, 48px);
  --cw-radius: 10px;
  --cw-radius-lg: 14px;
}

/* ---------- Base (scoped) ---------- */
.cw-body { background: var(--cw-page); color: var(--cw-ink); margin: 0; }
.cw-scope, .cw-scope * { box-sizing: border-box; }
.cw-scope { font-family: var(--cw-sans); font-size: 16px; line-height: 1.55; color: var(--cw-ink); -webkit-font-smoothing: antialiased; }
.cw-scope a { color: inherit; }
.cw-scope img { max-width: 100%; height: auto; }
.cw-scope :focus-visible { outline: 2px solid var(--cw-orange); outline-offset: 3px; border-radius: 4px; }

.cw-wrap { width: 100%; max-width: calc(var(--cw-wrap) + 2 * var(--cw-gutter)); margin: 0 auto; padding: 0 var(--cw-gutter); }

.cw-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cw-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cw-ink); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.cw-skip:focus { top: 12px; }

.cw-eyebrow { font-family: var(--cw-sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; color: var(--cw-ink); }
.cw-eyebrow--orange { color: var(--cw-orange-text); }
.cw-accent { color: var(--cw-orange); }
.cw-hero__title .cw-accent { display: block; }

.cw-display { font-family: var(--cw-serif); font-weight: 700; letter-spacing: -0.028em; line-height: .95; margin: 0; color: var(--cw-ink); font-optical-sizing: auto; }

/* ---------- Buttons ---------- */
.cw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--cw-sans); font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; border-radius: 8px; padding: 14px 22px; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; white-space: nowrap; }
.cw-btn svg { width: 16px; height: 16px; flex: none; }
.cw-btn--primary { background: var(--cw-orange); color: #fff !important; }
.cw-btn--primary:hover { background: var(--cw-orange-hover); }
.cw-btn--outline { background: transparent; color: var(--cw-ink) !important; border-color: var(--cw-ink); }
.cw-btn--outline:hover { background: var(--cw-ink); color: #fff !important; }
.cw-btn--sm { font-size: 14px; padding: 11px 18px; }

.cw-scope .cw-textlink, .cw-textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--cw-orange-text); font-weight: 600; text-decoration: none; }
.cw-textlink svg { width: 15px; height: 15px; }
.cw-textlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.cw-header { background: var(--cw-page); border-bottom: 1px solid var(--cw-line); position: relative; z-index: 20; }
.cw-header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.cw-logo { font-family: var(--cw-sans); font-weight: 700; font-size: 30px; letter-spacing: -0.035em; text-decoration: none; color: var(--cw-ink) !important; line-height: 1; flex: none; }
.cw-logo__accent { color: var(--cw-orange); }
.cw-logo img { display: block; max-height: 40px; width: auto; }
.cw-nav { flex: 1; display: flex; justify-content: center; }
.cw-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.cw-nav a { font-size: 15px; font-weight: 500; color: var(--cw-ink-2); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.cw-nav a:hover, .cw-nav .current-menu-item > a { color: var(--cw-ink); border-bottom-color: var(--cw-orange); }
.cw-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.cw-icon-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px; color: var(--cw-ink); background: none; border: 0; cursor: pointer; }
.cw-icon-btn:hover { background: var(--cw-cream); }
.cw-icon-btn svg { width: 22px; height: 22px; }
.cw-menu-toggle { display: none; }

/* Header icon buttons: locked against theme button styles (GeneratePress styles every <button>). */
.cw-header .cw-icon-btn,
.cw-header .cw-icon-btn:hover,
.cw-header .cw-icon-btn:focus,
.cw-header .cw-icon-btn:active { background: transparent !important; color: var(--cw-ink) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0; line-height: 1; }
.cw-header .cw-icon-btn:hover { background: var(--cw-cream) !important; }
.cw-header .cw-icon-btn svg { display: block; width: 24px; height: 24px; fill: none !important; stroke: currentColor !important; stroke-width: 1.8; }
.cw-header .cw-icon-btn span { display: inline-flex; }
.cw-menu-toggle__close { display: none !important; }
.cw-menu-toggle[aria-expanded="true"] .cw-menu-toggle__open { display: none !important; }
.cw-menu-toggle[aria-expanded="true"] .cw-menu-toggle__close { display: inline-flex !important; }

/* ---------- Hero ---------- */
.cw-hero { position: relative; overflow: hidden; background: var(--cw-page); padding: 48px 0 44px; }
.cw-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; background-color: var(--cw-page); background-image: var(--cw-hero-img, none); background-size: cover; background-position: center right;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%), linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%), linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-composite: intersect; }
.cw-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cw-hero__copy { padding-top: 8px; }
.cw-hero__title { font-size: clamp(44px, 6.4vw, 84px); max-width: 7.2em; }
.cw-hero__lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--cw-ink-2); max-width: 30em; margin: 24px 0 0; }

.cw-hero__visual { justify-self: end; width: 100%; max-width: 360px; }
.cw-lookup { width: 100%; margin-top: 32px; background: rgba(24, 22, 20, .86); color: #f4f1ec; border: 1px solid rgba(255,255,255,.14); border-radius: var(--cw-radius); padding: 18px 16px 10px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cw-lookup__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,241,236,.7); margin: 0 0 14px; }
.cw-lookup__id { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.05); border-radius: 8px; padding: 12px; }
.cw-lookup__name { font-weight: 600; font-size: 17px; margin: 0; color: #fff; }
.cw-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; margin-top: 4px; }
.cw-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4fb35f; box-shadow: 0 0 0 3px rgba(79,179,95,.22); }
.cw-lookup__rows { margin: 6px 0 0; padding: 0; }
.cw-lookup__row { display: grid; grid-template-columns: 100px 1fr 16px; align-items: center; gap: 8px; padding: 12px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.cw-lookup__row:first-child { border-top: 0; }
.cw-lookup__row dt { color: rgba(244,241,236,.7); }
.cw-lookup__row dd { margin: 0; }
.cw-lookup__row a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45); }
.cw-lookup__row svg { width: 14px; height: 14px; color: rgba(255,255,255,.7); }

.cw-mono { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 8px; background: #0f0e0d; color: #fff; font-family: var(--cw-serif); font-style: italic; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; border: 1px solid rgba(255,255,255,.08); }
.cw-mono--lg { width: 84px; height: 78px; font-size: 34px; }

/* Search */
.cw-search { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 40px; background: var(--cw-card); border: 1px solid var(--cw-line); border-radius: 999px; padding: 8px 8px 8px 24px; box-shadow: 0 10px 30px -18px rgba(40, 30, 20, .35); }
.cw-search svg { width: 22px; height: 22px; flex: none; color: var(--cw-ink); }
.cw-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; font: inherit; font-size: 17px; color: var(--cw-ink); padding: 14px 4px !important; box-shadow: none !important; }
.cw-search input::placeholder { color: var(--cw-muted); }
.cw-search:focus-within { border-color: var(--cw-ink); }
.cw-search .cw-btn { border-radius: 999px; padding: 16px 44px; font-size: 16px; }

.cw-examples { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; font-size: 14px; }
.cw-examples > span { color: var(--cw-ink-2); margin-right: 6px; }
.cw-examples ul { display: contents; list-style: none; }
.cw-chip { display: inline-block; padding: 9px 16px; border: 1px solid var(--cw-line-strong); border-radius: 999px; background: rgba(255,255,255,.7); text-decoration: none; font-size: 13.5px; color: var(--cw-ink) !important; }
.cw-chip:hover { border-color: var(--cw-ink); background: #fff; }

/* ---------- Sources strip ---------- */
.cw-sources { background: var(--cw-page); padding: 12px 0 44px; }
.cw-sources__inner { border-top: 1px solid var(--cw-line); padding-top: 22px; }
.cw-sources .cw-eyebrow { font-size: 11px; margin-bottom: 18px; }
.cw-sources__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cw-sources__item { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--cw-line-strong); }
.cw-sources__item--logo { flex-direction: row; align-items: center; justify-content: flex-start; padding-left: 0; border-left: 0; min-height: 52px; }
.cw-sources__logo { display: block; max-width: 100%; height: auto; filter: grayscale(1); opacity: .8; transition: filter .15s ease, opacity .15s ease; }
.cw-sources__item--logo:hover .cw-sources__logo { filter: none; opacity: 1; }
.cw-sources__name { font-weight: 600; font-size: 14px; line-height: 1.25; color: var(--cw-ink); }
.cw-sources__where { font-size: 12.5px; color: var(--cw-muted); }
.cw-sources__note { margin: 18px 0 0; font-size: 12.5px; color: var(--cw-muted); }

/* ---------- Example result ---------- */
.cw-example { background: var(--cw-cream); border-top: 1px solid var(--cw-line); border-bottom: 1px solid var(--cw-line); padding: 56px 0 64px; }
.cw-example__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.cw-example__intro { padding-top: 28px; }
.cw-example__title { font-size: clamp(38px, 4.4vw, 56px); }
.cw-example__text { font-size: 18px; color: var(--cw-ink-2); margin: 22px 0 26px; max-width: 18em; }

.cw-card { background: var(--cw-card); border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); padding: 22px 22px 18px; }
.cw-card__head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--cw-line); }
.cw-card__kind { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--cw-muted); margin: 0; }
.cw-card__name { font-family: var(--cw-sans); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 2px 0 6px; line-height: 1.2; }
.cw-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: var(--cw-good-bg); color: var(--cw-good); }
.cw-card__desc { font-size: 13.5px; color: var(--cw-muted); margin: 10px 0 0; max-width: 32em; line-height: 1.5; }
.cw-card__actions { display: flex; gap: 10px; }

.cw-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--cw-line); }
.cw-fact { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 20px 16px 20px 0; }
.cw-fact + .cw-fact { border-left: 1px solid var(--cw-line); padding-left: 18px; }
.cw-fact > svg { width: 24px; height: 24px; color: var(--cw-orange); margin-top: 2px; }
.cw-fact__label { font-size: 12px; color: var(--cw-muted); margin: 0; }
.cw-fact__value { font-size: 15.5px; font-weight: 600; margin: 2px 0 0; line-height: 1.3; }
.cw-fact__sub { font-size: 12.5px; color: var(--cw-muted); margin: 3px 0 0; }
.cw-fact .cw-textlink { font-size: 13px; margin-top: 8px; }

.cw-evidence { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid var(--cw-line); font-size: 12.5px; color: var(--cw-muted); }
.cw-evidence strong { color: var(--cw-ink-2); font-weight: 600; }

.cw-brands { padding: 16px 0; border-bottom: 1px solid var(--cw-line); }
.cw-brands__label, .cw-links__label { font-size: 13px; color: var(--cw-ink-2); margin: 0 0 10px; }
.cw-brands__row { display: flex; align-items: center; gap: 10px; }
.cw-brands__list { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.cw-brand { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px; border-radius: 6px; background: #121110; color: #fff !important; font-weight: 700; font-size: 13px; letter-spacing: -0.01em; text-decoration: none; text-align: center; line-height: 1.1; }
.cw-brand:hover { background: #2a2724; }
.cw-round { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--cw-line-strong); background: #fff; color: var(--cw-ink) !important; }
.cw-round svg { width: 14px; height: 14px; }
.cw-round:hover { border-color: var(--cw-ink); }

.cw-links { padding-top: 14px; }
.cw-links__row { display: flex; align-items: center; gap: 10px; }
.cw-links__list { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.cw-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cw-link__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--cw-line); border-radius: 8px; color: var(--cw-ink); }
.cw-link__icon svg { width: 20px; height: 20px; }
.cw-link__name { display: block; font-size: 12.5px; font-weight: 600; }
.cw-link__count { display: block; font-size: 12px; color: var(--cw-muted); }
.cw-link:hover .cw-link__name { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pro ---------- */
.cw-pro { background: var(--cw-page); padding: 64px 0 72px; }
.cw-pro__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.cw-pro__title { font-size: clamp(34px, 3.6vw, 46px); line-height: 1; }
.cw-pro__text { font-size: 17px; color: var(--cw-ink-2); margin: 24px 0 26px; max-width: 26em; }
.cw-pro__features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 18px 0 0; padding: 0; }
.cw-pro__features li { padding: 4px 24px 8px; border-left: 1px solid var(--cw-line-strong); }
.cw-pro__features svg { width: 36px; height: 36px; color: var(--cw-orange); }
.cw-pro__features h3 { font-family: var(--cw-serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 22px 0 12px; line-height: 1.15; }
.cw-pro__features p { margin: 0; font-size: 14px; color: var(--cw-ink-2); line-height: 1.55; }

/* ---------- Footer ---------- */
.cw-footer { background: var(--cw-page); border-top: 1px solid var(--cw-line); padding: 36px 0 26px; }
.cw-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px; align-items: start; }
.cw-footer .cw-logo { font-size: 24px; }
.cw-footer__tag { margin: 12px 0 0; font-size: 13px; color: var(--cw-muted); max-width: 30em; line-height: 1.5; }
.cw-footer__nav ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 6px 0 0; padding: 0; }
.cw-footer__nav a { font-size: 14px; color: var(--cw-ink-2); text-decoration: none; }
.cw-footer__nav a:hover { color: var(--cw-ink); text-decoration: underline; text-underline-offset: 3px; }
.cw-footer__social { display: flex; align-items: center; gap: 22px; margin-top: 2px; }
.cw-footer__social svg { width: 18px; height: 18px; }
.cw-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--cw-line); font-size: 12.5px; color: var(--cw-muted); }
.cw-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.cw-footer__legal a { color: var(--cw-muted); text-decoration: none; }
.cw-footer__legal a:hover { color: var(--cw-ink); text-decoration: underline; }
.cw-footer__bottom p { margin: 0; }

/* ---------- Simple page shell (search placeholder etc.) ---------- */
.cw-page { padding: 64px 0 88px; }
.cw-page__title { font-size: clamp(36px, 4.5vw, 56px); }
.cw-page__text { font-size: 18px; color: var(--cw-ink-2); max-width: 36em; margin: 18px 0 0; }
.cw-notice { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--cw-line); border-left: 3px solid var(--cw-orange); background: #fff; border-radius: 8px; max-width: 44em; font-size: 15px; color: var(--cw-ink-2); }


/* ---------- Directory pages ---------- */
.cw-dir .cw-page__text p { margin: 0; }
.cw-search--compact { margin-top: 32px; max-width: 760px; }
.cw-search--compact .cw-btn { padding: 14px 32px; }
.cw-dir .cw-notice { margin: 24px 0 20px; }
.cw-table-wrap { overflow-x: auto; border: 1px solid var(--cw-line); border-radius: var(--cw-radius-lg); background: var(--cw-card); }
.cw-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.cw-table th, .cw-table td { text-align: left; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--cw-line); vertical-align: middle; }
.cw-table thead th { font-size: 12px; font-weight: 600; color: var(--cw-muted); background: var(--cw-cream); }
.cw-table tbody tr:last-child > * { border-bottom: 0; }
.cw-table tbody th { font-weight: 600; }
.cw-table tbody th a { text-decoration: none; color: var(--cw-ink); }
.cw-table tbody th a:hover { color: var(--cw-orange-text); text-decoration: underline; text-underline-offset: 3px; }
.cw-table td { color: var(--cw-ink-2); }
.cw-pill--muted { background: #eeeae2; color: var(--cw-muted); }

/* ---------- Pro page ---------- */
.cw-pro-page { padding-bottom: 0; }
.cw-pro-interest { background: var(--cw-cream); border-top: 1px solid var(--cw-line); }
.cw-pro-interest__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.cw-pro-interest__title { font-size: clamp(32px, 3.4vw, 44px); }

/* ---------- Forms ---------- */
.cw-form-wrap { margin: 8px 0 0; }
.cw-form { display: grid; gap: 18px; max-width: 640px; }
.cw-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cw-field { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; }
.cw-field label { font-size: 14px; font-weight: 600; color: var(--cw-ink); }
.cw-scope .cw-field input, .cw-scope .cw-field select, .cw-scope .cw-field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--cw-ink); background: #fff; border: 1px solid var(--cw-line-strong); border-radius: 8px; padding: 12px 14px; box-shadow: none; }
.cw-scope .cw-field input:focus, .cw-scope .cw-field select:focus, .cw-scope .cw-field textarea:focus { border-color: var(--cw-ink); outline: 2px solid var(--cw-orange); outline-offset: 1px; }
.cw-field__hint { font-size: 13px; color: var(--cw-muted); }
.cw-form .cw-btn { justify-self: start; }
.cw-form__privacy { font-size: 13px; color: var(--cw-muted); margin: 0; }
.cw-form__privacy a { color: var(--cw-orange-text); }
.cw-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cw-form-msg { padding: 14px 18px; border-radius: 8px; font-size: 15px; margin: 0 0 18px; max-width: 640px; }
.cw-form-msg--ok { background: var(--cw-good-bg); color: var(--cw-good); }
.cw-form-msg--error { background: #fbe9e1; color: #9a3a0c; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cw-nav ul { gap: 20px; }
  .cw-sources__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cw-example__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cw-example__intro { padding-top: 0; }
  .cw-example__text { max-width: 32em; }
  .cw-pro__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 900px) {
  .cw-header__inner { gap: 16px; min-height: 64px; flex-wrap: wrap; }
  .cw-logo { font-size: 24px; margin-right: auto; }
  .cw-menu-toggle { display: inline-flex; }
  .cw-nav { order: 3; flex-basis: 100%; display: none; justify-content: flex-start; padding: 4px 0 14px; }
  .cw-nav.is-open { display: flex; background: var(--cw-page); }
  .cw-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .cw-nav li { border-top: 1px solid var(--cw-line); }
  .cw-nav a { display: block; padding: 13px 0; border-bottom: 0; }
  .cw-header__actions { gap: 6px; }

  .cw-hero { padding-top: 32px; display: flex; flex-direction: column; }
  .cw-hero__grid { display: contents; }
  .cw-hero__copy { order: 1; width: 100%; max-width: calc(var(--cw-wrap) + 2 * var(--cw-gutter)); margin: 0 auto; padding: 0 var(--cw-gutter); }
  .cw-hero__search { order: 2; }
  .cw-hero__search .cw-search { margin-top: 28px; }
  .cw-hero__visual { order: 3; width: auto; margin: 32px var(--cw-gutter) 0; }
  .cw-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cw-hero__media { display: none; }
  .cw-hero__visual { justify-self: stretch; max-width: none; }
  .cw-hero--has-image .cw-hero__visual { background-image: var(--cw-hero-img); background-size: cover; background-position: center; border-radius: var(--cw-radius-lg); padding: 40px 16px 16px; }
  .cw-lookup { margin: 0 auto; max-width: 440px; }

  .cw-facts { grid-template-columns: 1fr; }
  .cw-fact { padding: 16px 0; }
  .cw-fact + .cw-fact { border-left: 0; border-top: 1px solid var(--cw-line); padding-left: 0; }
  .cw-card__head { grid-template-columns: auto 1fr; }
  .cw-card__actions { grid-column: 1 / -1; }
  .cw-brands__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .cw-brand { flex: 0 0 112px; scroll-snap-align: start; }
  .cw-links__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cw-pro__features { grid-template-columns: 1fr; gap: 26px; }
  .cw-pro__features li { border-left: 0; border-top: 1px solid var(--cw-line-strong); padding: 22px 0 0; }
  .cw-pro__features h3 { margin-top: 14px; }
  .cw-footer__top { grid-template-columns: 1fr; gap: 20px; }
  .cw-pro-interest__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cw-table-wrap { border: 0; background: transparent; overflow: visible; }
  .cw-table thead { display: none; }
  .cw-table, .cw-table tbody, .cw-table tr, .cw-table th, .cw-table td { display: block; width: 100%; }
  .cw-table tr { background: var(--cw-card); border: 1px solid var(--cw-line); border-radius: var(--cw-radius); margin-bottom: 12px; padding: 6px 0; }
  .cw-table tbody th, .cw-table td { border: 0; padding: 8px 16px; }
  .cw-table tbody th { font-size: 17px; }
  .cw-table td { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
  .cw-table td::before { content: attr(data-label); color: var(--cw-muted); font-size: 13px; }
  .cw-table tbody tr:last-child > * { border-bottom: 0; }
}

@media (max-width: 560px) {
  .cw-hero__title { font-size: 44px; }
  .cw-search { flex-wrap: wrap; border-radius: 16px; padding: 8px 8px 8px 16px; }
  .cw-search input { flex-basis: calc(100% - 40px); font-size: 16px; }
  .cw-search .cw-btn { width: 100%; padding: 15px; border-radius: 10px; }
  .cw-form__row { grid-template-columns: 1fr; }
  .cw-sources__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-card { padding: 18px 16px 14px; }
  .cw-card__actions .cw-btn { flex: 1; }
  .cw-links__row .cw-round, .cw-brands__row .cw-round { display: none; }
  .cw-header__actions .cw-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cw-scope * { transition: none !important; scroll-behavior: auto !important; }
}
