/* InfoHub Daily — website styles (plain CSS, no framework)
   Colours: dark navy header/hero/footer, purple brand, amber call-to-action, light lavender sections. */
:root {
  --ink: #10131F;
  --ink-2: #3B4256;
  --muted: #687087;
  --line: #E4E5EE;
  --soft: #F6F5FD;
  --lav: #F3F1FE;
  --paper: #FFFFFF;
  --navy: #0F1222;
  --navy-2: #171B33;
  --navy-3: #0A0D1A;
  --brand: #7C3AED;
  --brand-dark: #6D28D9;
  --brand-soft: #EDE9FE;
  --amber: #F2B23D;
  --amber-dark: #E09E22;
  --radius: 16px;
  --shadow: 0 22px 44px -28px rgba(15, 18, 34, .45);
  --shadow-brand: 0 26px 50px -26px rgba(76, 29, 149, .55);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
::selection { background: var(--brand); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(124, 58, 237, .5); outline-offset: 2px; }
.muted { color: var(--muted); }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.wrap-mid { width: min(1120px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(800px, 100% - 48px); margin-inline: auto; }
.section { padding-block: 64px 0; }
main { padding-bottom: 80px; }
main:has(> .promise:last-child), main:has(> .explore:last-child) { padding-bottom: 0; }

/* ---------- top bar + header (dark) ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(23, 27, 51, .97); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .07); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: 70px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark svg { transition: transform .35s var(--ease); }
.logo:hover .logo-mark svg { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 25px; color: #fff; line-height: 1; letter-spacing: -.02em; display: inline-flex; align-items: baseline; }
.logo-text b { color: var(--amber); font-weight: 700; }
.logo-text small { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #A3A9C2; margin-left: 7px; position: relative; top: -2px; }

.main-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 2px; }
.main-nav a { position: relative; padding: 9px 11px; font-size: 14.5px; font-weight: 500; color: #D3D7E6; border-radius: 8px; white-space: nowrap; transition: color .15s; }
.main-nav a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after, .main-nav a.on::after { transform: scaleX(1); }
.main-nav a.on { color: #fff; font-weight: 600; }

.header-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); border-radius: 50%; color: #E5E7F2; cursor: pointer; transition: all .2s; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--amber); color: var(--navy); background: var(--amber); }
.menu-toggle { display: none; }

.search-panel { border-top: 1px solid rgba(255, 255, 255, .07); padding: 14px 0; }
.search-form { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 4px; color: var(--ink); }
.search-form button { border: 0; background: var(--amber); color: var(--navy); font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .15s, transform .15s; }
.search-form button:hover { background: var(--amber-dark); transform: translateY(-1px); }
.search-panel .search-form { max-width: 720px; margin-inline: auto; border-color: transparent; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: #fff; padding: 18px 22px 30px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-menu nav { display: grid; margin-top: 14px; }
.mobile-menu nav a { padding: 13px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #E5E7F2; }
.mobile-menu nav a.on { color: var(--amber); }
.mobile-menu-foot { display: flex; gap: 20px; margin-top: 20px; color: #A3A9C2; font-size: 15px; }
body.menu-open { overflow: hidden; }

/* ---------- shared bits ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--brand)); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 22%, #fff); padding: 4px 10px; border-radius: 999px; transition: background .15s, color .15s; }
.chip:hover { background: var(--c, var(--brand)); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; background: var(--navy); color: #fff; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn-accent { background: var(--amber); color: var(--navy); }
.btn-accent:hover { background: var(--amber-dark); color: var(--navy); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 38px); }
.sec-sub { margin: 8px 0 0; color: var(--muted); }
.sec-head > a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--brand); white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--brand-soft); transition: all .2s; }
.sec-head > a:hover { background: var(--brand); color: #fff; }
.sec-head > a svg { transition: transform .2s; }
.sec-head > a:hover svg { transform: translateX(3px); }

/* ---------- article cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-brand); border-color: #DCD3FB; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.ph { display: grid; place-items: center; color: var(--c); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 32%, #fff)); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.card h3 { font-size: 19px; font-weight: 700; }
.card h3 a { transition: color .15s; }
.card h3 a:hover { color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.meta span::before { content: '•'; margin-right: 12px; }

/* ---------- home: hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy) var(--hero) center / cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 18, 34, .97) 0%, rgba(15, 18, 34, .9) 42%, rgba(23, 20, 60, .55) 75%, rgba(76, 29, 149, .35) 100%); }
.hero-in { position: relative; z-index: 1; padding: 60px 0 64px; }
.hero-in > * { max-width: 660px; }
.hero-pill { display: inline-block; font-size: 13px; font-weight: 600; color: var(--amber); border: 1px solid rgba(242, 178, 61, .55); background: rgba(242, 178, 61, .1); padding: 5px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; line-height: 1.08; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-text { font-size: 17.5px; color: #C9CEE0; margin: 0 0 26px; max-width: 580px; }
.hero-search { max-width: 600px; padding: 7px 7px 7px 20px; border: 0; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.hero-search button { padding: 13px 28px; }

/* ---------- home: category photo cards ---------- */
.cats-section { padding: 72px 0 8px; }
.cat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* ---------- home: latest (lavender section) ---------- */
.latest-section { margin-top: 72px; padding: 68px 0 72px; background: linear-gradient(180deg, var(--lav), #F8F7FF); }
.latest-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; }
.feature { position: relative; min-height: 520px; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.feature:hover > img { transform: scale(1.05); }
.feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 18, 34, .1) 25%, rgba(15, 18, 34, .92) 78%); }
.feature-body { padding: 32px; display: grid; gap: 12px; }
.feature-tags { display: flex; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.feature-tags a, .tag-amber { padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.feature-tags .tag-amber { background: var(--amber); color: var(--navy); }
.feature h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.feature h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.feature p { margin: 0; color: #D3D7E6; }
.feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; font-size: 13.5px; color: #A3A9C2; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s; }
.pill-btn:hover { background: var(--amber); }
.row-list { display: grid; gap: 14px; align-content: start; }
.row-card { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 38px; gap: 16px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.row-card:hover { box-shadow: var(--shadow-brand); transform: translateX(4px); border-color: #DCD3FB; }
.row-num { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--amber); font-size: 11.5px; font-weight: 700; }
.row-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--soft); }
.row-thumb img, .row-thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.row-card:hover .row-thumb img { transform: scale(1.08); }
.row-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.row-card h3 { font-size: 17px; line-height: 1.3; margin: 3px 0 4px; }
.row-card h3 a:hover { color: var(--brand); }
.row-card small { color: var(--muted); font-size: 12.5px; }
.row-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); transition: all .2s; }
.row-card:hover .row-go { background: var(--brand); color: #fff; }

.cat-block .eyebrow { color: var(--c); }
.cat-block .sec-head > a { color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.cat-block .sec-head > a:hover { background: var(--c); color: #fff; }

/* ---------- home: promise band (purple, so it stands apart from the navy footer) ---------- */
.promise { margin-top: 80px; background: linear-gradient(120deg, #5B21B6 0%, #7C3AED 55%, #8B5CF6 100%); color: #fff; position: relative; overflow: hidden; }
.promise::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 178, 61, .28), transparent 65%); }
.promise::after { content: ''; position: absolute; width: 420px; height: 420px; left: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); }
.promise-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; padding: 64px 0; align-items: center; }
.promise .eyebrow { color: var(--amber); }
.promise h2 { font-size: clamp(28px, 3vw, 36px); }
.promise-in > div > p:last-child { color: #E4DCFB; margin: 12px 0 0; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise li { padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(4px); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.promise li:hover { transform: translateY(-4px); border-color: var(--amber); background: rgba(255, 255, 255, .16); box-shadow: 0 20px 40px -24px rgba(20, 6, 50, .7); }
.p-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--amber); color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.promise li strong { display: block; font-size: 17px; margin-bottom: 4px; }
.promise li > span:last-child { color: #EDE7FD; font-size: 14.5px; }

/* ---------- page headers (list + info pages) ---------- */
.page-hero { position: relative; color: #fff; padding: 64px 0 68px; min-height: 300px; display: flex; align-items: center; background: var(--navy) var(--hero, none) right center / cover no-repeat; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 340px at 8% 20%, color-mix(in srgb, var(--c, var(--brand)) 38%, transparent), transparent 70%), linear-gradient(90deg, rgba(15, 18, 34, .97) 0%, rgba(15, 18, 34, .88) 38%, rgba(15, 18, 34, .45) 70%, rgba(15, 18, 34, .15) 100%); }
.page-hero::after { content: ''; position: absolute; z-index: -1; width: 460px; height: 460px; right: -140px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--brand)) 55%, transparent), transparent 65%); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); }
.page-hero p { color: #D3D7E6; font-size: 18px; max-width: 680px; margin: 14px 0 0; }
.page-hero-row { display: flex; align-items: center; gap: 18px; }
.page-hero-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; color: #fff; background: var(--brand); flex-shrink: 0; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.page-hero .crumbs { color: #A3A9C2; }
.page-hero .crumbs a:hover { color: var(--amber); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--brand); }
.page-search { max-width: 560px; margin-top: 24px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; font-size: 15px; color: var(--muted); }
.pager a { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink); transition: all .2s; }
.pager a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 54px 24px 46px; border-radius: 22px; background: linear-gradient(180deg, var(--lav), #fff); border: 1px solid #E7E2FB; }
.empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: var(--c, var(--brand)); margin-bottom: 10px; box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--c, var(--brand)) 80%, transparent); }
.empty h2 { font-size: 26px; }
.empty p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 16px; max-width: 520px; }

/* ---------- article ---------- */
.preview-bar { background: #FEF3C7; color: #78350F; text-align: center; padding: 10px 16px; font-size: 14.5px; border-bottom: 1px solid #FDE68A; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-weight: 700; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; margin-bottom: 30px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.cta-box strong { display: block; font-size: 16.5px; }
.cta-box span { font-size: 13.5px; color: #A3A9C2; }
.cta-box .btn { flex-shrink: 0; }

.prose { font-size: 18px; line-height: 1.78; color: #1F2437; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 30px; margin: 1.8em 0 .6em; scroll-margin-top: 96px; }
.prose h3 { font-size: 23px; margin: 1.6em 0 .5em; }
.prose h4 { font-family: var(--sans); font-size: 18px; margin: 1.4em 0 .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
.prose a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: 12px; margin: 1.6em auto; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: -1em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 14px; background: var(--lav); font-family: var(--serif); font-size: 21px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--lav); font-weight: 600; }
.prose .callout, .prose .note { background: var(--lav); border-radius: 12px; padding: 18px 22px; margin: 1.6em 0; }

.faq { margin-top: 44px; }
.faq h2 { font-size: 30px; margin-bottom: 16px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; transition: border-color .2s, background .2s; }
.faq details:hover { border-color: #D9CCFB; }
.faq details[open] { border-color: #D9CCFB; background: #FCFBFF; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; font-size: 14px; }
.tags span { font-weight: 600; margin-right: 4px; }
.tags a { padding: 5px 12px; border-radius: 999px; background: var(--lav); color: var(--ink-2); transition: all .2s; }
.tags a:hover { background: var(--brand); color: #fff; }
.post-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post-note a { color: var(--brand); }

.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-box h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 11px 0; align-items: start; }
.side-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.side-thumb img, .side-thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.side-item:hover .side-thumb img { transform: scale(1.1); }
.side-thumb .ph svg { width: 24px; height: 24px; }
.side-item em { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.side-item strong { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.3; margin: 3px 0; transition: color .15s; }
.side-item:hover strong { color: var(--brand); }
.side-item small { color: var(--muted); font-size: 12.5px; }

/* ---------- info pages (About, Contact, Privacy, Terms, Disclaimer) ---------- */
.info-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 48px; }
.info-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 18px; }
.info-toc { padding: 20px; border-radius: var(--radius); background: var(--lav); }
.info-toc h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.info-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 2px; font-size: 14.5px; }
.info-toc li { counter-increment: t; }
.info-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); transition: all .2s; }
.info-toc a::before { content: counter(t, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--brand); padding-top: 2px; }
.info-toc a:hover, .info-toc a.on { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(76, 29, 149, .5); }
.info-help { padding: 20px; border-radius: var(--radius); background: var(--navy); color: #C2C7DA; font-size: 14.5px; }
.info-help strong { display: block; color: #fff; font-family: var(--serif); font-size: 19px; margin-bottom: 6px; }
.info-help a { display: inline-flex; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: var(--amber); color: var(--navy); font-weight: 700; transition: background .2s; }
.info-help a:hover { background: var(--amber-dark); }
.info-body { min-width: 0; max-width: 780px; }
.info-body .updated { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: var(--soft); margin-bottom: 18px; }
.info-body .lead { font-size: 20px; line-height: 1.65; color: var(--ink-2); }
.info-body h2 { display: flex; align-items: center; gap: 12px; font-size: 27px; margin-top: 1.9em; }
.info-body h2::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); transform: rotate(45deg); flex-shrink: 0; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 1.6em 0; }
.info-card { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-brand); border-color: #DCD3FB; }
.info-card b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 18px; margin-bottom: 12px; transition: all .3s; }
.info-card:hover b { background: var(--brand); color: #fff; }
.info-card strong { display: block; font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.info-card span { display: block; font-size: 15px; line-height: 1.6; color: var(--muted); }
.cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0 !important; margin: 1.2em 0 1.6em !important; }
.cat-list li { margin: 0 !important; }
.cat-list a { display: block; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none !important; color: var(--ink) !important; font-size: 15.5px; line-height: 1.5; transition: all .25s; }
.cat-list a strong { display: block; color: var(--brand); font-size: 16.5px; }
.cat-list a:hover { border-color: var(--brand); background: var(--lav); transform: translateY(-2px); }
.note-box { padding: 18px 22px; border-radius: 14px; background: #FFF8EB; border: 1px solid #F8DFA9; color: #5B4210; font-size: 16.5px; margin: 1.6em 0; }
.note-box strong { color: #3D2C08; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; background: var(--navy); color: #fff; margin: 1.4em 0; }
.contact-card span { color: #A3A9C2; font-size: 14px; display: block; }
.contact-card strong { font-size: 20px; font-family: var(--serif); }
.contact-card a.btn-accent { text-decoration: none; color: var(--navy) !important; }
.notfound { text-align: center; max-width: 720px; }
.notfound .eyebrow::before { display: none; }
.notfound h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 12px; }
.notfound p { color: var(--ink-2); font-size: 17px; }
.notfound .page-search { margin: 26px auto 22px; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #A3A9C2; font-size: 14.5px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .9fr 1.3fr; gap: 40px; padding: 44px 0 30px; }
.footer-about p { margin: 14px 0 0; max-width: 360px; line-height: 1.65; font-size: 14px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { font-size: 14px; line-height: 1.5; }
.site-footer ul a { display: inline-block; transition: color .2s, transform .2s; }
.site-footer ul a:hover { color: var(--amber); transform: translateX(4px); }
.footer-bottom a:hover { color: var(--amber); }
.footer-latest li a { display: block; color: #E5E7F2; font-weight: 500; line-height: 1.4; }
.footer-latest li span { font-size: 12.5px; color: #6B7290; }
.footer-latest { gap: 12px !important; }
.footer-bottom { display: flex; align-items: center; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; font-size: 13.5px; }
.footer-note { margin-left: auto !important; color: #6B7290; }
.footer-bottom p { margin: 0; }
.to-top { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--navy) !important; flex-shrink: 0; transition: transform .2s, background .2s; }
.to-top:hover { background: var(--amber-dark); transform: translateY(-3px); }

/* ---------- header: logo left, categories centre, search right ---------- */
.wrap-wide { width: min(1380px, 100% - 48px); margin-inline: auto; }
.header-in { gap: 24px; }
.header-search { display: flex; align-items: center; width: 220px; height: 42px; padding: 0 4px 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); transition: border-color .2s, background .2s, width .3s var(--ease); }
.header-search:hover { border-color: rgba(255, 255, 255, .3); }
.header-search:focus-within { width: 260px; border-color: var(--amber); background: rgba(255, 255, 255, .1); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; padding: 0; }
.header-search input::placeholder { color: #A3A9C2; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search button { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--amber); color: var(--navy); cursor: pointer; transition: background .2s, transform .2s; }
.header-search button:hover { background: var(--amber-dark); transform: scale(1.06); }
.search-toggle { display: none; }

/* ---------- home: category cards (photo on top, text below) ---------- */
.cat-card { position: relative; container-type: inline-size; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-brand); border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.cat-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.08); }
.cat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 18, 34, .25)); pointer-events: none; }
.cat-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 20px; }
.cat-body strong { font-family: var(--serif); font-size: 22px; line-height: 1.2; transition: color .2s; }
.cat-card:hover .cat-body strong { color: var(--c); }
.cat-body > span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cat-body em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--c); }
.cat-body em svg { transition: transform .25s var(--ease); }
.cat-card:hover .cat-body em svg { transform: translateX(5px); }

/* ---------- article page (content left, sidebar right) ---------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; background: linear-gradient(90deg, var(--brand), var(--amber)); }
.post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding-top: 34px; align-items: start; }
.post-main { min-width: 0; }
.post-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.14; margin: 14px 0 14px; }
.post-lead { font-size: 18.5px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.6; max-width: 760px; }
.post-meta { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-meta .avatar { width: 44px; height: 44px; font-size: 17px; }
.post-meta-text { display: grid; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.post-meta-text strong { color: var(--ink); }
.post-cover { margin: 24px 0 0; border-radius: 22px; overflow: hidden; background: var(--soft); }
.post-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .8s var(--ease); }
.post-cover:hover img { transform: scale(1.02); }
.post-main .cta-box { margin: 22px 0 0; }
.post-main .prose { margin-top: 32px; }
.toc-inline { display: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; }
.share span { font-weight: 600; margin-right: 4px; }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lav); color: var(--ink-2); transition: background .2s, color .2s, transform .2s; }
.share a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.related { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.related .sec-head h2 { font-size: clamp(24px, 2.4vw, 30px); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rel-grid .card h3 { font-size: 17px; }
.rel-grid .card p { display: none; }
.post-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; height: 100%; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-box h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.side-search { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); transition: border-color .2s, box-shadow .2s; }
.side-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.side-search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 6px 10px; font-size: 14px; }
.side-search button { border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600; padding: 8px 16px; cursor: pointer; transition: background .2s; }
.side-search button:hover { background: var(--brand); }
.side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.side-cats a i { margin-left: auto; font-style: normal; color: var(--muted); transition: transform .2s; }
.side-cats a:hover, .side-cats a.on { background: var(--lav); color: var(--brand); }
.side-cats a:hover i { transform: translateX(3px); color: var(--brand); }
.side-cat-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; flex-shrink: 0; }
.toc { position: sticky; top: 92px; background: var(--lav); border-color: transparent; }
.toc ol, .toc-inline ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.toc li, .toc-inline li { margin: 7px 0; }
.toc li::marker { color: var(--muted); }
.toc a, .toc-inline a { color: var(--ink-2); transition: color .15s; }
.toc a:hover, .toc a.on, .toc-inline a:hover { color: var(--brand); font-weight: 600; }

/* ---------- article body: richer blocks (BestBuyer style) ---------- */
.article-prose { counter-reset: sec; font-size: 17.5px; line-height: 1.85; color: #2A3045; }
.article-prose > p:first-of-type { font-size: 19px; color: var(--ink); }
.article-prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-weight: 700; font-size: 3.4em; line-height: .82; margin: .08em .12em 0 0; color: var(--brand); }
.article-prose > h2 { display: flex; align-items: flex-start; gap: 14px; font-size: 29px; margin: 2.2em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.article-prose > h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); flex-shrink: 0; display: grid; place-items: center; min-width: 40px; height: 40px; margin-top: -2px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: 0; }
.article-prose > .sum-box + h2, .article-prose > h2:first-child { border-top: 0; padding-top: 0; }
.article-prose h3 { font-size: 21.5px; color: var(--ink); margin: 1.7em 0 .5em; }
.article-prose strong { color: var(--ink); }
.article-prose ul { list-style: none; padding-left: 0; }
.article-prose ul > li { position: relative; padding-left: 26px; }
.article-prose ul > li::before { content: ''; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.article-prose ol { list-style: none; padding-left: 0; counter-reset: step; }
.article-prose ol > li { position: relative; counter-increment: step; padding: 2px 0 2px 46px; margin-bottom: .8em; min-height: 32px; }
.article-prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.article-prose ol > li:nth-child(odd)::before { background: var(--brand); }

/* summary box */
.sum-box { position: relative; margin: 0 0 2.2em; padding: 26px 28px 10px; border-radius: 20px; background: linear-gradient(135deg, #F5F2FF, #FFF8EA); border: 1px solid #E4DBFD; }
.sum-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sum-box h2 { font-size: 25px; margin: 0 0 .5em; }
.sum-box h2::before { display: none; }
.sum-box ul > li { padding-left: 32px; }
.sum-box ul > li::before { content: '✓'; left: 0; top: .28em; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #16A34A; box-shadow: none; }

/* pros and cons */
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.4em 0 1.8em; }
.pc-card { border-radius: 18px; padding: 22px 22px 10px; border: 1px solid; transition: transform .3s var(--ease), box-shadow .3s; }
.pc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-pros { background: #F0FDF4; border-color: #BBF7D0; }
.pc-cons { background: #FFF1F2; border-color: #FECDD3; }
.pc-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); }
.pc-badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; }
.pc-pros .pc-badge { background: #16A34A; }
.pc-cons .pc-badge { background: #E11D48; }
.article-prose .pc-list > li { padding-left: 32px; font-size: 16px; line-height: 1.6; margin-bottom: .7em; }
.article-prose .pc-list > li::before { display: none; }
.pc-tick { position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.pc-pros .pc-tick { background: #DCFCE7; color: #15803D; }
.pc-cons .pc-tick { background: #FFE4E6; color: #BE123C; }

/* tables */
.table-wrap { margin: 1.6em 0 1.9em; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; box-shadow: 0 16px 34px -30px rgba(15, 18, 34, .5); }
.article-prose table { display: table; margin: 0; width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.article-prose th { background: var(--navy); color: #fff; font-weight: 600; border: 0; padding: 13px 16px; }
.article-prose td { border: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
.article-prose tbody tr:nth-child(even) td { background: #FAF9FF; }
.article-prose tbody tr:hover td { background: var(--lav); }
.article-prose td:first-child { font-weight: 600; color: var(--ink); }

/* figures and images */
.article-prose figure { margin: 2em 0; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.article-prose figure img { margin: 0; border-radius: 12px; width: 100%; background: #fff; }
.article-prose figcaption { margin: 12px 4px 2px; font-size: 14px; color: var(--muted); text-align: left; }
.fig-zoom { display: block; cursor: zoom-in; }
.fig-zoom:hover img { box-shadow: 0 0 0 3px var(--brand-soft); }

/* callout boxes: <p class="tip">, <div class="note">, <p class="warning"> */
.article-prose .tip, .article-prose .note, .article-prose .callout, .article-prose .warning { position: relative; margin: 1.6em 0; padding: 18px 22px 18px 62px; border-radius: 16px; font-size: 16.5px; line-height: 1.7; }
.article-prose .tip::before, .article-prose .note::before, .article-prose .callout::before, .article-prose .warning::before { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 15px; }
.article-prose .tip { background: #ECFDF5; border: 1px solid #A7F3D0; }
.article-prose .tip::before { content: '✓'; background: #059669; }
.article-prose .note, .article-prose .callout { background: var(--lav); border: 1px solid #DDD3FC; }
.article-prose .note::before, .article-prose .callout::before { content: 'i'; background: var(--brand); font-family: var(--serif); }
.article-prose .warning { background: #FFF7ED; border: 1px solid #FED7AA; }
.article-prose .warning::before { content: '!'; background: #EA580C; }
.article-prose .tip > :last-child, .article-prose .note > :last-child, .article-prose .callout > :last-child, .article-prose .warning > :last-child { margin-bottom: 0; }

/* quotes, rules, mid-article button */
.article-prose blockquote { position: relative; padding: 24px 26px 22px 64px; border: 0; background: var(--lav); border-radius: 18px; font-size: 20px; line-height: 1.55; }
.article-prose blockquote::before { content: '\201C'; position: absolute; left: 20px; top: 6px; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--brand); }
.article-prose blockquote p:last-child { margin-bottom: 0; }
.article-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.cta-box.cta-mid { margin: 2.4em 0 0; background: linear-gradient(120deg, var(--navy), #2B1B5E); line-height: 1.5; }
.article-prose .cta-box strong { color: #fff; }
.article-prose .cta-box a { text-decoration: none; color: var(--navy); }
.article-prose .cta-box a:hover { color: var(--navy); }

@media (max-width: 760px) {
  .pc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .article-prose { font-size: 16.5px; }
  .article-prose > p:first-of-type { font-size: 17.5px; }
  .article-prose > h2 { font-size: 23px; gap: 10px; }
  .article-prose > h2::before { min-width: 34px; height: 34px; font-size: 13px; border-radius: 10px; margin-top: -3px; }
  .sum-box { padding: 20px 18px 6px; }
  .sum-box h2 { font-size: 21px; }
  .article-prose .tip, .article-prose .note, .article-prose .callout, .article-prose .warning { padding: 16px 16px 16px 56px; }
  .article-prose blockquote { padding: 20px 18px 18px 52px; font-size: 18px; }
}

/* ---------- article responsive ---------- */
@media (max-width: 1320px) {
  .header-in { gap: 18px; }
  .main-nav a { padding: 9px 8px; font-size: 14px; }
  .main-nav a::after { left: 8px; right: 8px; }
  .header-search { width: 190px; }
  .header-search:focus-within { width: 210px; }
}
@media (max-width: 1180px) and (min-width: 1061px), (max-width: 640px) {
  .header-search { display: none; }
  .search-toggle { display: grid; }
}
@media (max-width: 1060px) and (min-width: 641px) {
  .header-search, .header-search:focus-within { width: 300px; }
}
@media (max-width: 1060px) {
  .post-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .post-side .toc { display: none; }
  .toc-inline { display: block; margin-top: 24px; border-radius: 14px; background: var(--lav); padding: 14px 18px; }
  .toc-inline summary { cursor: pointer; font-weight: 700; color: var(--brand); }
  .toc-inline ol { margin-top: 10px; }
  .toc-inline a { display: inline-block; padding: 5px 0; }
}
@media (max-width: 760px) {
  .post-side { grid-template-columns: minmax(0, 1fr); }
  .rel-grid { grid-template-columns: 1fr; }
  .post-cover img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .post-wrap { padding-top: 24px; }
  .post-lead { font-size: 17px; }
  .post-cover { border-radius: 16px; }
  .cat-body { padding: 16px 16px 16px; }
  .cat-body strong { font-size: 19px; }
  .cat-body > span { font-size: 13.5px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a { padding: 9px 8px; font-size: 14px; }
  .main-nav a::after { left: 8px; right: 8px; }
  .header-in { gap: 18px; }
}
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .grid-4, .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-grid { grid-template-columns: 1fr; }
  .feature { min-height: 440px; }
  .info-layout { grid-template-columns: 1fr; gap: 24px; }
  .info-side { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; }
  .footer-about { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
  .footer-about p { margin: 0; max-width: 560px; }
  .promise-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .grid-3 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .promise ul { grid-template-columns: 1fr; }
  .footer-bottom { flex-wrap: wrap; justify-content: center; text-align: center; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 18, 34, .88), rgba(15, 18, 34, .95)); }
  .cat-list { grid-template-columns: 1fr; }
  .info-help { display: none; }
  .info-side { grid-template-columns: minmax(0, 1fr); }
  .info-toc ol { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 560px) {
  .wrap, .wrap-mid, .wrap-narrow { width: calc(100% - 32px); }
    .header-in { min-height: 62px; }
  .logo-text { font-size: 22px; }
  .logo-mark svg { width: 30px; height: 30px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cat-cards { grid-template-columns: 1fr; gap: 16px; }
  .section { padding-top: 48px; }
  .cats-section { padding-top: 52px; }
  .hero-in { padding: 56px 0 60px; }
  .hero-text { font-size: 16.5px; }
  .search-form button { padding: 10px 16px; }
  .page-hero { padding: 40px 0 44px; min-height: 0; }
  .page-hero::before { background: radial-gradient(360px 260px at 0% 10%, color-mix(in srgb, var(--c, var(--brand)) 40%, transparent), transparent 70%), linear-gradient(180deg, rgba(15, 18, 34, .9), rgba(15, 18, 34, .78)); }
  .page-hero-ico { width: 48px; height: 48px; }
  .feature { min-height: 400px; }
  .feature-body { padding: 22px; }
  .feature-foot { flex-wrap: wrap; }
  .row-card { grid-template-columns: 92px minmax(0, 1fr); }
  .row-go { display: none; }
  .prose { font-size: 17px; }
  .prose h2, .info-body h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding: 36px 0 24px; }
  .footer-about { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-latest-col { grid-column: 1 / -1; }
  .sec-head { flex-wrap: wrap; }
  .promise { margin-top: 56px; }
  .promise-in { padding: 44px 0; gap: 24px; }
  .promise ul { gap: 12px; }
  .promise li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .promise li .p-ico { grid-row: span 2; margin: 0; }
  .promise li strong { font-size: 16px; margin: 0; }
  .promise li > span:last-child { font-size: 14px; line-height: 1.5; }
  .site-footer ul { gap: 3px; }
  .footer-latest { gap: 10px !important; }
  .footer-bottom { padding: 14px 0 18px; gap: 12px; flex-wrap: nowrap; justify-content: space-between; text-align: left; font-size: 13px; }
  .footer-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* conclusion: a short, compact closing box */
.concl-box { margin: 2.4em 0 0; padding: 24px 26px 8px; border-radius: 20px; background: var(--lav); border: 1px solid #E4DBFD; font-size: 16.5px; line-height: 1.75; }
.concl-box h2 { display: flex; align-items: center; gap: 10px; font-size: 23px; margin: 0 0 .5em; }
.concl-box h2::before { content: '✓'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 800; }
.concl-box p { margin-bottom: 1em; }
.cta-mid + .concl-box { margin-top: 1.4em; }
@media (max-width: 560px) { .concl-box { padding: 20px 18px 6px; font-size: 16px; } .concl-box h2 { font-size: 20px; } }

/* Home: fills a category row that has fewer than 4 articles */
.more-card { grid-column: span var(--s); position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(180deg, rgba(15, 18, 34, .25) 0%, rgba(15, 18, 34, .88) 100%), var(--img) center / cover no-repeat, var(--navy); isolation: isolate; }
.more-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 55%, transparent), transparent 60%); }
.more-in { display: flex; flex-direction: column; gap: 8px; padding: 28px; max-width: 560px; }
.more-kicker { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 11px; border-radius: 999px; }
.more-card strong { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.more-text { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.more-card em { font-style: normal; font-weight: 700; font-size: 14.5px; color: var(--amber); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.more-card:hover em { gap: 10px; }
.more-card em { transition: gap .2s; }
@media (max-width: 1060px) { .more-card { grid-column: span var(--s2); } }
@media (max-width: 560px) { .more-card { display: none; } }

/* Phones: category cards become compact rows (photo left, text right) so the home page stays short */
@media (max-width: 560px) {
  .cat-cards { gap: 12px; }
  .cat-card { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .cat-card:hover { transform: none; }
  .cat-media { flex: 0 0 112px; aspect-ratio: auto; min-height: 128px; }
  .cat-body { padding: 14px 14px 14px; gap: 4px; }
  .cat-body strong { font-size: 18px; }
  .cat-body > span { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-body em { font-size: 13px; padding-top: 4px; }
  .sec-head { flex-wrap: nowrap; align-items: flex-end; margin-bottom: 20px; }
  .sec-head > a { padding: 7px 12px; font-size: 13px; }
  .sec-head .sec-sub { display: none; }
}

/* Phones: in home "Latest in ..." rows the first article stays big, the rest become compact rows */
@media (max-width: 560px) {
  .cat-block .grid-4 { gap: 12px; }
  .cat-block .card:not(:first-child) { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .cat-block .card:not(:first-child) .card-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  .cat-block .card:not(:first-child) .card-body { padding: 12px 14px; gap: 6px; justify-content: center; }
  .cat-block .card:not(:first-child) .chip, .cat-block .card:not(:first-child) p { display: none; }
  .cat-block .card:not(:first-child) h3 { font-size: 16px; line-height: 1.3; }
  .cat-block .card:not(:first-child) .meta { font-size: 12.5px; }
}

/* Home hero: desk photo on the right, our own text on the left (the photo's built-in lettering sits under the dark fade) */
.hero-home { background: var(--navy) var(--hero) right 38% / cover no-repeat; }
.hero-home::before { background: linear-gradient(90deg, #0F1222 0%, #0F1222 34%, rgba(15, 18, 34, .9) 44%, rgba(15, 18, 34, .45) 58%, rgba(15, 18, 34, 0) 74%), linear-gradient(0deg, rgba(15, 18, 34, .55), transparent 30%); }
.hero-home .hero-in { min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px 0 70px; }
.hero-home .hero-in > * { max-width: 560px; }
.hero-home .hero-search { width: 100%; }
.hero-home h1 { text-shadow: 0 2px 24px rgba(15, 18, 34, .6); }
@media (max-width: 1180px) {
  .hero-home { background-position: 62% 40%; }
  .hero-home::before { background: linear-gradient(90deg, #0F1222 0%, rgba(15, 18, 34, .94) 40%, rgba(15, 18, 34, .55) 64%, rgba(15, 18, 34, .15) 100%); }
}
/* Tablets and phones: text on navy at the top, the full photo shows clearly underneath */
@media (max-width: 860px) {
  .hero-home { background-size: 100% auto; background-position: center bottom; }
  .hero-home::before { background: linear-gradient(180deg, #0F1222 0%, #0F1222 calc(100% - 56.3vw), rgba(15, 18, 34, .35) calc(100% - 56.3vw + 50px), rgba(15, 18, 34, 0) calc(100% - 56.3vw + 110px)); }
  .hero-home .hero-in { min-height: 0; padding: 48px 0 calc(56.3vw + 8px); }
  .hero-home .hero-in > * { max-width: 620px; }
}
@media (max-width: 560px) {
  .hero-home .hero-in { padding-top: 40px; }
}

/* Home hero: colour glow on the left so it is not plain navy */
.hero-home::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 380px at 6% 18%, rgba(124, 58, 237, .42), transparent 70%),
    radial-gradient(460px 300px at 34% 92%, rgba(242, 178, 61, .16), transparent 70%),
    radial-gradient(380px 300px at 40% 30%, rgba(236, 72, 153, .14), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 70%); }
@media (max-width: 860px) {
  .hero-home::after { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 56.3vw), transparent calc(100% - 56.3vw + 40px)); mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 56.3vw), transparent calc(100% - 56.3vw + 40px));
    background:
      radial-gradient(360px 300px at 0% 10%, rgba(124, 58, 237, .45), transparent 70%),
      radial-gradient(320px 240px at 100% 55%, rgba(236, 72, 153, .16), transparent 70%),
      radial-gradient(300px 220px at 20% 75%, rgba(242, 178, 61, .14), transparent 70%),
      radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 1.5px) 0 0 / 24px 24px; }
}

/* Listing pages: "Explore other topics" strip above the footer */
.explore { background: var(--lav); padding: 56px 0 60px; margin-top: 24px; }
.explore .sec-head { margin-bottom: 22px; }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.explore-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid #E4DBFD; border-radius: 16px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.explore-ico { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); }
.explore-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.explore-card strong { font-size: 15.5px; }
.explore-card small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore-card > svg { flex: 0 0 auto; color: var(--c); transition: transform .2s; }
.explore-card:hover > svg { transform: translateX(3px); }
@media (max-width: 1060px) { .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .explore { padding: 40px 0 44px; } .explore-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .explore-card { padding: 13px 14px; } }

/* Phones: related articles as compact rows; topic strip in two columns */
@media (max-width: 560px) {
  .rel-grid { gap: 12px; }
  .rel-grid .card { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .rel-grid .card .card-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 104px; }
  .rel-grid .card .card-body { padding: 12px 14px; gap: 6px; justify-content: center; }
  .rel-grid .card .chip, .rel-grid .card p { display: none; }
  .rel-grid .card h3 { font-size: 16px; line-height: 1.3; }
  .rel-grid .card .meta { font-size: 12.5px; }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .explore-card small, .explore-card > svg { display: none; }
  .explore-card strong { font-size: 14.5px; line-height: 1.3; }
  .explore-ico { flex: 0 0 auto; width: 38px; height: 38px; }
}

/* Article: worked example box, question and mistake lists */
.ex-box { position: relative; margin: 2.2em 0; padding: 24px 26px 8px; border-radius: 20px; background: #FFFBF0; border: 1.5px solid #F2D58E; }
.ex-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #92600A; background: #FDEFC8; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.ex-box h2 { font-size: 23px; margin: 0 0 .5em; border: 0; padding: 0; }
.ex-box h2::before { display: none; }
.article-prose ul.list-q > li, .article-prose ul.list-x > li { padding-left: 34px; margin-bottom: .55em; }
.article-prose ul.list-q > li::before, .article-prose ul.list-x > li::before { left: 0; top: .25em; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; box-shadow: none; }
.article-prose ul.list-q > li::before { content: '?'; background: var(--brand); }
.article-prose ul.list-x > li::before { content: '✕'; background: #E11D48; font-size: 11px; }
@media (max-width: 560px) { .ex-box { padding: 20px 18px 6px; } .ex-box h2 { font-size: 20px; } }

/* Phones: wide tables keep readable columns and scroll sideways, with a hint */
@media (max-width: 560px) {
  .article-prose .table-wrap table { min-width: 620px; }
  .article-prose .table-wrap::after { content: 'Swipe to see the full table →'; display: block; padding: 9px 14px 11px; position: sticky; left: 0; width: max-content; font-size: 12.5px; color: var(--muted); }
}

/* "Looking for something specific?" search card */
.find-band { padding: 64px 0 72px; }
main:has(> .find-band:last-child) { padding-bottom: 0; }
.find-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 48px 52px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3A4BF0 0%, transparent 55%), radial-gradient(120% 140% at 100% 100%, #A23FD6 0%, transparent 55%), linear-gradient(115deg, #3340E0 0%, #6A3DE8 50%, #9B42D8 100%);
  box-shadow: 0 34px 70px -38px rgba(70, 45, 200, .75), inset 0 1px 0 rgba(255, 255, 255, .18); }
.find-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%); mask-image: linear-gradient(100deg, transparent 35%, #000 100%); pointer-events: none; }
.find-card::after { content: ''; position: absolute; z-index: -1; width: 360px; height: 360px; right: 18%; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 178, 61, .38), transparent 65%); pointer-events: none; }
.find-copy, .find-side { min-width: 0; }
.find-copy { display: flex; align-items: flex-start; gap: 20px; }
.find-copy > div { min-width: 0; }
.find-ico { flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: #fff; background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 12px 24px -12px rgba(10, 8, 40, .55); }
.find-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.find-copy h2 { font-size: clamp(26px, 2.6vw, 34px); color: #fff; }
.find-copy p:last-child { margin: 10px 0 0; color: #E6E4FC; font-size: 15.5px; line-height: 1.55; max-width: 440px; }
.find-form { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 18px; border-radius: 16px; background: #fff; box-shadow: 0 18px 36px -20px rgba(10, 8, 40, .7); transition: box-shadow .2s; }
.find-form:focus-within { box-shadow: 0 0 0 4px rgba(242, 178, 61, .65), 0 18px 36px -20px rgba(10, 8, 40, .7); }
.find-in-ico { display: grid; color: #8A90AA; }
.find-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 4px; font: inherit; font-size: 16px; color: var(--ink); background: transparent; -webkit-appearance: none; appearance: none; }
.find-form input::placeholder { color: #9AA0B8; }
.find-form button { flex-shrink: 0; border: 0; cursor: pointer; padding: 13px 26px; border-radius: 11px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: 15px; transition: background .2s, transform .2s; }
.find-form button:hover { background: #2A2F55; transform: translateY(-1px); }
.find-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; }
.find-pop > span { color: #DAD7FB; font-weight: 600; margin-right: 2px; }
.find-pop a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.find-pop a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.find-pop a:hover { background: rgba(255, 255, 255, .26); border-color: var(--amber); transform: translateY(-2px); }
@media (max-width: 960px) {
  .find-card { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 36px 32px; }
}
@media (max-width: 560px) {
  .find-band { padding: 44px 0 48px; }
  .find-card { padding: 26px 18px; border-radius: 22px; gap: 22px; }
  .find-copy { gap: 14px; }
  .find-ico { width: 46px; height: 46px; border-radius: 14px; }
  .find-copy p:last-child { font-size: 14.5px; }
  .find-form { padding: 6px 6px 6px 12px; }
  .find-in-ico { display: none; }
  .find-form input { font-size: 15px; }
  .find-form button { padding: 11px 16px; }
  .find-pop { gap: 6px; font-size: 12.5px; }
  .find-pop > span { display: none; }
  .find-pop a { padding: 5px 10px; gap: 6px; }
  .find-pop a:nth-of-type(n+4) { display: none; }
}

/* Slimmer footer */
.footer-grid { gap: 32px; padding: 34px 0 22px; }
.footer-about p { margin-top: 10px; line-height: 1.55; }
.site-footer h2 { margin-bottom: 10px; }
.site-footer ul { gap: 4px; }
.footer-latest { gap: 8px !important; }
.footer-bottom { padding: 11px 0; }
@media (max-width: 760px) {
  .footer-grid { gap: 20px 18px; padding: 28px 0 18px; }
  .footer-bottom { padding: 11px 0 14px; }
}
.footer-grid { grid-template-columns: 1.35fr 1.25fr .85fr 1.25fr; }
.site-footer .footer-cats { grid-template-columns: 1fr 1fr; column-gap: 18px; }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav ul { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}

/* Compact search card (user: too big) */
.find-band { padding: 40px 0 48px; }
.find-card { max-width: 1040px; margin-inline: auto; gap: 32px; padding: 26px 32px; border-radius: 22px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.find-copy { gap: 14px; align-items: center; }
.find-ico { width: 46px; height: 46px; border-radius: 14px; }
.find-kicker { font-size: 11px; margin-bottom: 4px; }
.find-copy h2 { font-size: clamp(20px, 1.9vw, 24px); }
.find-copy p:last-child { font-size: 14px; margin-top: 6px; }
.find-form { padding: 5px 5px 5px 14px; border-radius: 13px; }
.find-form input { padding: 9px 4px; font-size: 15px; }
.find-form button { padding: 10px 20px; border-radius: 9px; font-size: 14px; }
.find-pop { margin-top: 12px; gap: 6px; font-size: 12.5px; }
.find-pop a { padding: 4px 10px; gap: 6px; }
.find-pop a:nth-of-type(n+5) { display: none; }
@media (max-width: 960px) { .find-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 26px; } }
@media (max-width: 560px) {
  .find-band { padding: 32px 0 36px; }
  .find-card { padding: 20px 16px; border-radius: 18px; }
  .find-copy { align-items: flex-start; }
  .find-ico { width: 40px; height: 40px; border-radius: 12px; }
  .find-copy h2 { font-size: 20px; }
  .find-pop a:nth-of-type(n+4) { display: none; }
}

/* Category hero: show the whole photo, not just the right half */
.page-hero { min-height: 360px; background-position: center 45%; }
.page-hero::before { background: radial-gradient(520px 340px at 6% 20%, color-mix(in srgb, var(--c, var(--brand)) 30%, transparent), transparent 70%), linear-gradient(90deg, rgba(15, 18, 34, .72) 0%, rgba(15, 18, 34, .5) 40%, rgba(15, 18, 34, .18) 75%, rgba(15, 18, 34, .05) 100%), linear-gradient(0deg, rgba(15, 18, 34, .35), transparent 40%); }
.page-hero h1, .page-hero p, .page-hero .crumbs { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.page-hero p { color: #EEF0F7; }
.page-hero .crumbs { color: #D9DCEA; }
@media (max-width: 760px) {
  .page-hero { min-height: 260px; background-position: center; }
  .page-hero::before { background: linear-gradient(180deg, rgba(15, 18, 34, .35) 0%, rgba(15, 18, 34, .72) 100%); }
}

/* Category hero: text left, full photo in a rounded frame on the right */
.page-hero.cat-hero { min-height: 0; padding: 34px 0; background: var(--navy); }
.cat-hero::before { background: radial-gradient(600px 320px at 0% 0%, color-mix(in srgb, var(--c) 42%, transparent), transparent 70%), radial-gradient(520px 300px at 100% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), linear-gradient(120deg, #141833, #0F1222); }
.cat-hero::after { display: none; }
.cat-hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; }
.cat-hero-copy { min-width: 0; }
.cat-hero-img { order: 2; margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #1E2340; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1); }
.cat-hero-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--c) 55%, transparent); pointer-events: none; }
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-hero h1, .cat-hero p, .cat-hero .crumbs { text-shadow: none; }
.cat-hero p { color: #C9CEE0; font-size: 17px; margin-top: 10px; }
.cat-hero .page-hero-row { margin-top: 10px; }
@media (max-width: 860px) {
  .cat-hero > .wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cat-hero-img { order: 2; transform: none; max-width: 520px; }
}
@media (max-width: 760px) {
  .page-hero.cat-hero { padding: 26px 0 28px; }
  .cat-hero::before { background: radial-gradient(400px 260px at 0% 0%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%), linear-gradient(160deg, #141833, #0F1222); }
  .cat-hero-img { border-radius: 16px; }
}
