/* Magazine layout: light header, feature grid, topic tiles, guide cards */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mag .wrap, .mh-bar, .site-footer .wrap { max-width: 1120px; }

/* Header */
.mh { background: var(--bg-raised); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; box-shadow: var(--shadow-sm); }
.mh-bar { margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 10px 16px; min-height: 64px; }
.mh-logo img { height: 40px; width: auto; }
.mh-logo .rev { display: none; }
@media (prefers-color-scheme: dark) { .mh-logo .std { display: none; } .mh-logo .rev { display: block; } }
.mh-search { display: none; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 360px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: var(--muted); }
.mh-search input { border: 0; background: transparent; color: var(--ink); font: 16px var(--font-ui); padding: 10px 0; width: 100%; }
.mh-search input:focus { outline: none; }
.mh-search:focus-within { box-shadow: var(--focus-ring); }
.mh-nav { display: none; margin-left: auto; align-items: center; gap: 22px; font-family: var(--font-ui); font-size: 16px; font-weight: 600; white-space: nowrap; }
.mh-nav > a, .mh-drop > button { color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.mh-nav > a:hover, .mh-drop > button:hover { color: var(--brand); }
.mh-btn { border: 1.5px solid var(--brand); color: var(--brand) !important; border-radius: 8px; padding: 8px 18px !important; }
.mh-btn:hover { background: var(--accent-soft); }
.mh-drop { position: relative; }
.mh-menu { position: absolute; top: 100%; left: -12px; margin: 8px 0 0; padding: 8px 0; list-style: none; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg, var(--shadow-sm)); min-width: 220px; }
.mh-menu a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mh-menu a:hover { background: var(--accent-soft); }
.mh-burger { margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; display: inline-flex; }
.mh-drawer { border-top: 1px solid var(--line); padding: 8px 16px 16px; font-family: var(--font-ui); font-size: 17px; font-weight: 600; display: grid; }
.mh-drawer ul { list-style: none; margin: 0; padding: 0; }
.mh-drawer a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .mh-search { display: flex; } }
@media (min-width: 1060px) { .mh-nav { display: flex; } .mh-burger { display: none; } .mh-drawer { display: none !important; } }

/* Shared */
.mag a { text-decoration: none; color: inherit; }
.mag section { padding-block: 28px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head.end { justify-content: flex-end; margin-bottom: 10px; }
.sec-head h2 { font-family: var(--font-head); font-size: 28px; line-height: 34px; font-weight: 700; margin: 0; color: var(--ink); }
.sec-head .sub { font-family: var(--font-ui); font-size: 17px; color: var(--muted); margin: 6px 0 0; }
.more { font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--brand) !important; }
.more:hover { text-decoration: underline !important; }
.ph { position: relative; width: 100%; max-width: 100%; overflow: hidden; background: repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px); }
.ph-dark { background: repeating-linear-gradient(135deg, #5b6a60 0 14px, #64746a 14px 28px); }
.ph span { position: absolute; left: 10px; top: 8px; font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.kicker.light { color: #f3e6d4; }

/* Feature */
.mag .feature { padding-top: 20px; }
.feature-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: 1.65fr 1fr; } }
.big { position: relative; display: block; border-radius: var(--radius-md-px, 10px); overflow: hidden; }
.big .ph { height: 100%; min-height: 260px; aspect-ratio: auto !important; }
.big-cap { position: absolute; inset: auto 0 0 0; padding: 70px 28px 26px; background: linear-gradient(transparent, #0f1511e6); text-align: center; }
.big-cap h2 { font-family: var(--font-head); color: #ffffff; font-size: 26px; line-height: 32px; font-weight: 700; margin: 0; text-wrap: balance; }
@media (min-width: 900px) { .big-cap h2 { font-size: 32px; line-height: 40px; } }
.big:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini { display: grid; gap: 8px; align-content: start; }
.mini .ph { border-radius: 8px; }
.mini h3 { font-family: var(--font-ui); font-size: 16px; line-height: 21px; font-weight: 600; margin: 0; color: var(--ink); }
.mini:hover h3 { text-decoration: underline; }

/* Promise band (no invented stats) */
.promise { display: grid; gap: 18px; grid-template-columns: 1fr; border-block: 1px solid var(--line); padding-block: 22px !important; margin-block: 12px; }
.promise .label { font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; color: var(--ink); }
.promise-lead p { margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 21px; color: var(--muted); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.promise li { display: grid; gap: 2px; }
.promise li strong { font-family: var(--font-head); font-size: 21px; line-height: 26px; color: var(--ink); }
.promise li span { font-family: var(--font-ui); font-size: 14px; line-height: 19px; color: var(--muted); }
@media (min-width: 900px) { .promise { grid-template-columns: 1fr 3fr; align-items: center; } .promise ul { grid-template-columns: repeat(4, 1fr); } .promise li { border-left: 1px solid var(--line); padding-left: 18px; } }

/* Topic tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; background: var(--bg-raised); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%; }
.tile-art { display: flex; align-items: center; justify-content: center; height: 112px; color: #1e2420; }
.t-0 { background: #f3e6d4; } .t-1 { background: #d9eadf; } .t-2 { background: #dbe7f1; } .t-3 { background: #f1dfd6; }
.tile-name { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--ink); padding: 12px 14px 0; }
.tile-sub { font-family: var(--font-ui); font-size: 14px; line-height: 19px; color: var(--muted); padding: 2px 14px 14px; }
.tile:hover .tile-name { text-decoration: underline; }

/* Guide cards */
.gcards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .gcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gcards { grid-template-columns: repeat(3, 1fr); } }
.gcard { display: flex; flex-direction: column; background: var(--bg-raised); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.gbody { padding: 14px 16px 12px; flex: 1; }
.gbody .kicker { margin-bottom: 4px; }
.gbody h3 { font-family: var(--font-head); font-size: 20px; line-height: 27px; font-weight: 600; margin: 0; color: var(--ink); }
.gcard:hover h3 { text-decoration: underline; }
.gfoot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin: 0; padding: 10px 16px; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--muted); }
.qcards { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
@media (min-width: 980px) { .qcards { grid-template-columns: repeat(3, 1fr); } }
.qcard { display: block; background: var(--bg-raised); border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 16px; }
.qcard h3 { font-family: var(--font-head); font-size: 19px; line-height: 26px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.qfoot { margin: 0; font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--brand); }
.band-ad { margin: 8px 0; }
.band-ad .ad-slot { min-height: 120px; }

/* Quick checks */
.check-row { display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; padding-bottom: 6px; }
.check { display: grid; gap: 6px; align-content: start; background: var(--brand-fill); color: var(--on-brand) !important; border-radius: 10px; padding: 18px; min-height: 150px; }
.check-n { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.check-t { font-family: var(--font-head); font-size: 21px; line-height: 27px; font-weight: 700; }
.check-s { font-family: var(--font-ui); font-size: 15px; line-height: 21px; opacity: .9; }
.check:hover .check-t { text-decoration: underline; }

/* Newsletter band */
.nl-band { background: var(--accent-soft); margin-top: 20px; }
.nl-inner { display: grid; gap: 16px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .nl-inner { grid-template-columns: 1.2fr 1fr; } }
.nl-band h2 { font-family: var(--font-head); font-size: 26px; line-height: 32px; margin: 0 0 6px; color: var(--ink); }
.nl-band p { margin: 0; font-family: var(--font-ui); font-size: 17px; color: var(--ink); }
.nl-form { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-form input { flex: 1 1 220px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-raised); color: var(--ink); font: 17px var(--font-ui); }
.nl-form p { flex-basis: 100%; }
.mag + .site-footer, main:has(.mag) + .site-footer { margin-top: 0; }
