/* HyperStation Mag v3: editorial lifestyle magazine layout (cover story, spotlight, fresh reads). */
.layout-mag {
	--radius: 0; --max: 1180px; --gap: 30px;
	--c-band: var(--c-accent); --c-grey: #777; --c-line: #e8e8e8; --c-explore: #f2f2f2; --c-fun: #dad8d8;
	--f-script: 'Great Vibes', cursive;
	font-family: var(--f-body); font-size: 16px; color: var(--c-text);
}
html[data-theme="dark"] .layout-mag { --c-line: #2a2a2a; --c-explore: #161616; --c-fun: #1d1d1d; }
.layout-mag .container { padding: 0 20px; }
.layout-mag a:hover { color: var(--c-primary); }
.layout-mag .thumb, .layout-mag .thumb img, .layout-mag img { border-radius: 0; }
.layout-mag .card:hover .thumb img { transform: none; }
.layout-mag .thumb-ph { opacity: .25; }
.serif-title, .layout-mag .card-title, .feat-title, .layout-mag .entry-title, .title-list a { font-family: var(--f-head); color: var(--c-text); letter-spacing: 0; }
.serif-title a, .feat-title a, .title-list a, .layout-mag .card-title a { color: var(--c-text); background: none; }
.serif-title a:hover, .feat-title a:hover, .title-list a:hover, .layout-mag .card-title a:hover { color: var(--c-primary); }

/* Header */
.layout-mag .site-header { background: var(--c-header); color: var(--c-header-ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.layout-mag .header-inner { max-width: 100%; display: flex; align-items: center; gap: 24px; height: 58px; padding: 0 40px; }
.layout-mag .menu-toggle { display: inline-flex; color: var(--c-primary); width: 40px; }
.layout-mag .menu-toggle .icon { stroke-width: 3; width: 28px; height: 28px; }
.layout-mag .site-branding { flex: none; margin-right: 18px; }
.layout-mag .site-title { font-family: var(--f-script); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: 0; }
.layout-mag .site-title a { color: var(--c-header-ink); }
.layout-mag .custom-logo { max-height: 44px; }
.layout-mag .main-nav { flex: 1; border: 0; background: none; display: block; }
.layout-mag .main-nav .menu { justify-content: flex-start; flex-wrap: nowrap; overflow: hidden; gap: 0; }
.layout-mag .main-nav .menu a { font-family: var(--f-body); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; color: var(--c-header-ink); padding: 20px 11px; white-space: nowrap; }
.layout-mag .main-nav .menu > li > a::after { display: none; }
.layout-mag .main-nav .menu > li > a:hover { color: var(--c-primary); }
.layout-mag .header-actions { gap: 0; }
.layout-mag .header-actions .icon-btn { width: 32px; height: 32px; color: var(--c-header-ink); }
.layout-mag .header-actions .search-toggle .icon { stroke-width: 2.6; }
.layout-mag .header-social ul { gap: 0; flex-wrap: nowrap; }
.layout-mag .header-social a { width: 30px; height: 32px; color: var(--c-header-ink); border-radius: 0; }
.layout-mag .header-social a:hover { background: none; color: var(--c-primary); }
.header-ad { text-align: center; padding: 20px 0 0; }
.header-ad .widget { margin: 0; display: inline-block; }

/* Shared headings */
.lined-title { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--f-body); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; margin: 0 0 22px; }
.lined-title::before, .lined-title::after { content: ""; width: 22px; height: 3px; background: var(--c-primary); }
.lined-title span { display: inline-flex; align-items: center; gap: 8px; }
.lined-title .icon { color: var(--c-primary); stroke-width: 2.4; }
.tri-latest .lined-title::before, .tri-latest .lined-title::after { width: 48px; }
.rule-title { display: flex; align-items: center; gap: 14px; font-family: var(--f-body); font-size: 20px; font-weight: 700; text-transform: uppercase; margin: 0 0 22px; color: var(--c-text); }
.rule-title::before, .rule-title::after { content: ""; flex: 1; height: 2px; background: var(--c-primary); }
.rule-title a { color: inherit; }
.more-link { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-family: var(--f-body); font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--c-primary); margin-top: 18px; }
.more-link:hover { color: var(--c-text); }
.card-kicker { display: flex; align-items: center; gap: 6px; font-family: var(--f-body); font-size: 9.5px; font-weight: 600; text-transform: uppercase; color: var(--c-grey); margin-bottom: 4px; }
.card-kicker .cat-label { font-size: inherit; letter-spacing: 0; color: #555; margin: 0; font-weight: 600; }
.kicker-sep, .kicker-ago { font-weight: 400; text-transform: none; color: #999; font-size: 11px; }
.layout-mag .card-list .kicker-sep, .layout-mag .card-list .kicker-ago { display: none; }

/* Triptych */
.triptych { display: grid; grid-template-columns: 26% minmax(0, 1fr) 27%; gap: 36px; padding-top: 44px; padding-bottom: 26px; border-bottom: 1px solid var(--c-line); }
.trend-item { text-align: center; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.trend-item:last-of-type { border-bottom: 0; }
.round-thumb { display: block; width: 165px; height: 165px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--c-explore); }
.round-thumb img, .round-thumb .thumb-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.trend-item .serif-title { font-size: 16px; font-weight: 400; line-height: 1.15; margin: 0; }
.feat-item { margin-bottom: 30px; }
.feat-media { position: relative; display: block; aspect-ratio: 395 / 237; overflow: hidden; background: #111; }
.feat-media img, .feat-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.feat-overlay .feat-media { aspect-ratio: 395 / 422; }
.feat-overlay { position: relative; }
.feat-overlay .feat-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.feat-overlay .feat-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 8px 10px; margin: 0; }
.feat-overlay .feat-title a { color: #fff; }
.feat-title { font-size: 24px; font-weight: 500; line-height: 1.1; margin: 12px 0 0; }
.media-badge { position: absolute; top: 14px; left: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.title-list { list-style: none; margin: 0; padding: 0; }
.title-list li { padding: 15px 0; border-top: 1px solid var(--c-line); }
.title-list a { font-size: 15px; font-weight: 500; line-height: 1.15; display: block; }

/* Colour band */
.color-band { background: var(--c-band); padding: 28px 0 44px; margin-top: 26px; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; padding: 0 50px; }
.band-col { text-align: center; }
.band-title { font-family: var(--f-body); font-size: 15px; font-weight: 600; text-transform: uppercase; margin: 0 0 14px; }
.band-title a { color: #fff; }
.band-card { background: #fff; }
.band-media { display: block; aspect-ratio: 270 / 280; overflow: hidden; }
.band-media img, .band-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.band-card .serif-title { font-size: 15px; font-weight: 600; line-height: 1.1; margin: 0; padding: 26px 22px 30px; min-height: 96px; display: flex; align-items: center; justify-content: center; }
.band-card .serif-title a { color: #000; }
.band-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: #fff; }
.band-more:hover { color: #000; }

/* New posts */
.new-posts { padding-top: 70px; }
.new-posts > .rule-title { margin-bottom: 22px; }
.layout-mag .with-sidebar { grid-template-columns: minmax(0, 1fr) 265px; gap: 48px; }
.layout-mag .sidebar { position: sticky; top: 76px; }
.layout-mag .card-list { display: grid; grid-template-columns: 315px minmax(0, 1fr); gap: 24px; padding: 17px 0; border-top: 1px solid var(--c-line); border-bottom: 0; }
.layout-mag .card-list .thumb { aspect-ratio: 315 / 188; }
.layout-mag .card-list .card-body { padding: 0; align-self: start; padding-top: 22px; }
.layout-mag .card-list .card-title { font-size: 21px; font-weight: 500; line-height: 1.05; margin: 0 0 10px; }
.layout-mag .card-excerpt { font-family: var(--f-body); font-size: 12.5px; font-weight: 300; line-height: 1.35; color: #555; margin: 0; }
html[data-theme="dark"] .layout-mag .card-excerpt { color: #aaa; }
.layout-mag .card .entry-meta { display: none; }
.more-posts-wrap { text-align: center; padding: 30px 0 10px; }
.more-posts { display: inline-block; background: var(--c-primary); color: #fff; font-family: var(--f-body); font-weight: 600; font-size: 13px; text-transform: uppercase; padding: 8px 18px; border-radius: 2px; }
.more-posts:hover { color: #fff; background: #000; }

/* Sidebar */
.layout-mag .widget { margin-bottom: 30px; }
.layout-mag .widget-title { display: flex; align-items: center; gap: 10px; justify-content: center; font-family: var(--f-body); font-size: 19px; font-weight: 700; text-transform: uppercase; border: 0; padding: 0; margin: 0 0 18px; }
.layout-mag .widget-title::before, .layout-mag .widget-title::after { content: ""; position: static; width: 22px; height: 3px; background: var(--c-primary); }
.layout-mag .widget-title-center::before, .layout-mag .widget-title-center::after { width: auto; flex: 1; max-width: 50px; }
.comment-feed { list-style: none; margin: 0; padding: 0; }
.comment-feed li { font-family: var(--f-head); font-size: 13.5px; line-height: 1.25; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.comment-feed a { font-weight: 600; color: var(--c-text); }
.tab-heads { display: flex; justify-content: center; gap: 26px; margin-bottom: 14px; }
.tab-heads span { font-family: var(--f-body); font-size: 14px; font-weight: 600; text-transform: uppercase; padding-bottom: 4px; }
.tab-heads .is-active { border-bottom: 2px solid var(--c-primary); }
.side-item { display: grid; grid-template-columns: 66px 1fr; gap: 13px; margin-bottom: 12px; align-items: start; }
.side-thumb { display: block; aspect-ratio: 1; overflow: hidden; }
.side-thumb img, .side-thumb .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.side-item .serif-title { font-size: 13.5px; font-weight: 600; line-height: 1.1; margin: 0; }
.sidebar .title-list li { padding: 11px 0; border-top: 0; border-bottom: 1px solid var(--c-line); }
.sidebar .title-list a { font-size: 13px; font-weight: 500; line-height: 1.4; }
.layout-mag .widget li { border-color: var(--c-line); }

/* Explore */
.explore { background: var(--c-explore); padding: 26px 0 32px; margin-top: 50px; text-align: center; }
.explore-title { font-family: var(--f-body); font-size: 18px; font-weight: 600; color: var(--c-primary); text-transform: uppercase; margin: 0 0 22px; }
.explore-grid { display: flex; justify-content: center; gap: 33px; flex-wrap: wrap; }
.explore-tile { position: relative; display: block; width: 150px; padding: 0 0 0 0; }
.explore-offset { position: absolute; left: -14px; bottom: 6px; width: 52px; height: 52px; background: var(--c-primary); z-index: 0; }
.explore-img { position: relative; z-index: 1; display: block; width: 150px; height: 150px; overflow: hidden; background: #ccc; }
.explore-img img, .explore-img .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.explore-label { position: relative; z-index: 1; display: block; text-align: right; margin-top: 5px; font-size: 12px; font-weight: 600; text-transform: uppercase; color: #000; }
html[data-theme="dark"] .explore-label { color: #fff; }

/* Network strip */
.network-strip { background: var(--c-fun); padding: 40px 0 40px; margin-top: 40px; text-align: center; }
.network-title { font-family: var(--f-body); font-size: 26px; font-weight: 700; text-transform: uppercase; margin: 0; }
.network-kicker { font-family: var(--f-head); color: var(--c-primary); font-size: 14px; margin: 2px 0 28px; }
.network-grid { display: grid; grid-template-columns: repeat(3, 265px); justify-content: center; gap: 17px; }
.network-card { background: #fff; padding-bottom: 20px; }
.network-media { display: block; height: 330px; overflow: hidden; }
.network-media img, .network-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.network-tag { position: relative; display: inline-block; top: -8px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; background: #ffcf51; color: #000; }
.network-tag.tag-1 { background: #fceae5; }
.network-tag.tag-2 { background: #d9f0e3; }
.network-card .serif-title { font-size: 14px; font-weight: 600; line-height: 1; margin: 16px 14px 14px; }
.network-card .serif-title a { color: #000; }
.network-go { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #000; }

/* Footer */
.layout-mag .site-footer { background: var(--c-footer); color: var(--c-footer-ink); padding: 52px 0 18px; margin: 0; text-align: center; }
.layout-mag .site-footer a { opacity: 1; color: var(--c-footer-ink); }
.layout-mag .site-footer a:hover { color: var(--c-primary); }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; margin-bottom: 30px; }
.footer-social ul { justify-content: center; gap: 12px; }
.footer-social a { width: 32px; height: 32px; }
.footer-social a:hover { background: none !important; }
.layout-mag .footer-nav { margin: 18px 0 0; padding-bottom: 8px; border-bottom: 1px solid currentColor; }
.layout-mag .footer-nav ul { justify-content: center; gap: 6px 20px; }
.layout-mag .footer-nav a { font-size: 12px; text-transform: uppercase; }
.layout-mag .footer-bottom { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; border: 0; padding-top: 14px; font-size: 11px; }
.layout-mag .footer-copy { text-align: left; font-weight: 600; opacity: 1; }
.footer-note { margin: 0; font-size: 10.5px; }
.footer-logo { text-align: right; }
.footer-logo .site-title { font-size: 28px; }
.footer-logo .custom-logo { margin-left: auto; max-height: 36px; }

/* Single */
.single-wrap { padding-top: 40px; }
.layout-mag .single-header { text-align: left; max-width: none; padding: 0 0 18px; }
.cat-tag { display: inline-block; background: var(--c-primary); color: #fff; font-family: var(--f-body); font-size: 12px; font-weight: 700; font-style: italic; text-transform: uppercase; padding: 1px 10px; transform: skewX(-12deg); margin: 0 0 8px; }
.cat-tag:hover { color: #fff; background: #000; }
.layout-mag .entry-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; line-height: 1.05; margin: 0 0 18px; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 12px; color: #999; margin-bottom: 30px; }
.byline img { border-radius: 50%; }
.byline-date, .byline-author { display: block; }
.byline-read { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; }
.byline-author a { color: var(--c-text); font-weight: 600; }
.layout-mag .share { justify-content: center; gap: 6px; }
.layout-mag .share-label { display: none; }
.layout-mag .share-btn { width: 100px; height: 22px; border-radius: 0; border: 0; color: #fff; background: #4b4b4b; }
.layout-mag .share-btn:hover { transform: none; filter: brightness(1.1); color: #fff; }
.layout-mag .share-btn .icon { width: 12px; height: 12px; }
.layout-mag .share-facebook { background: #3b5998; }
.layout-mag .share-x { background: #55acee; }
.layout-mag .share-pinterest { background: #bd081c; }
.layout-mag .share-linkedin { background: #0a66c2; }
.layout-mag .share-message { background: #25a244; }
.layout-mag .share-mail, .layout-mag .share-copy { background: #4b4b4b; }
.layout-mag .entry-figure { margin: 18px 0 16px; }
.layout-mag .entry-figure img { max-height: none; width: 100%; }
.layout-mag .entry-content { font-family: var(--f-body); font-size: 15.5px; line-height: 1.55; }
.layout-mag .entry-content > p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-family: inherit; font-weight: inherit; }
.layout-mag .entry-content h2, .layout-mag .entry-content h3 { font-family: var(--f-head); }
.layout-mag .entry-content blockquote { border-color: var(--c-primary); font-family: var(--f-head); font-size: 22px; }
.layout-mag .entry-footer { border-top: 1px solid #aaa; border-bottom: 0; margin: 20px 0 12px; padding: 30px 0 0; gap: 26px; }
.related-topics { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #777; line-height: 1.6; }
.related-topics span { color: #000; margin-right: 4px; }
.related-topics a { color: #777; margin-right: 8px; }
.related-topics a::before { content: "#"; }
.up-next { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 18px 0 22px; border-bottom: 1px solid var(--c-line); margin-bottom: 24px; }
.up-next a { display: flex; align-items: center; gap: 14px; color: var(--c-text); }
.up-next a .icon { color: #999; flex: none; }
.un-next { justify-content: flex-end; text-align: left; }
.up-next small { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--c-primary); }
.up-next strong { display: block; font-family: var(--f-head); font-size: 17px; font-weight: 600; line-height: 1.1; }
.layout-mag .author-box { background: none; padding: 0; gap: 16px; border-radius: 0; flex-wrap: wrap; }
.layout-mag .author-kicker { display: none; }
.layout-mag .author-name { font-family: var(--f-body); font-size: 15px; font-weight: 600; }
.layout-mag .author-box p { font-size: 12px; color: #444; }
.layout-mag .related .section-title { font-family: var(--f-body); font-size: 20px; font-weight: 700; text-transform: uppercase; display: flex; gap: 14px; }
.layout-mag .related .section-title::after { content: ""; flex: 1; height: 3px; background: var(--c-primary); }
.layout-mag .related .card-body { padding-top: 8px; }
.layout-mag .related .card-title { font-size: 16px; font-weight: 600; }
.layout-mag .related .card-kicker { display: none; }

/* Archive */
.archive-mag { padding-top: 40px; }
.archive-top { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--c-line); }
.archive-name { font-family: var(--f-body); font-size: 22px; font-weight: 700; text-transform: uppercase; text-align: center; margin: 0 0 10px; }
.mini-row { display: grid; grid-template-columns: 93px 1fr; gap: 8px; margin-bottom: 14px; }
.mini-thumb { display: block; aspect-ratio: 93 / 56; overflow: hidden; }
.mini-thumb img, .mini-thumb .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.mini-row .serif-title { font-size: 14px; font-weight: 500; line-height: 1.12; margin: 0; }
.archive-lead-story .lead-media { display: block; aspect-ratio: 430 / 460; overflow: hidden; margin-bottom: 10px; }
.archive-lead-story .lead-media img, .archive-lead-story .lead-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.archive-lead-story .card-kicker .cat-label { color: var(--c-primary); }
.archive-lead-story .feat-title { margin-top: 2px; font-size: 21px; }

/* Mobile */
@media (max-width: 1100px) {
	.layout-mag .header-inner { padding: 0 16px; }
	.layout-mag .main-nav .menu a { padding: 20px 8px; font-size: 12px; }
}
@media (max-width: 960px) {
	.layout-mag .main-nav, .layout-mag .header-social, .layout-mag .mode-toggle { display: none; }
	.layout-mag .header-inner { justify-content: space-between; height: 56px; }
	.layout-mag .site-branding { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
	.layout-mag .site-title { font-size: 30px; }
	.triptych { grid-template-columns: 1fr; gap: 26px; padding-top: 20px; }
	.tri-featured { order: -1; }
	.trend-item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; text-align: left; }
	.round-thumb { width: 70px; height: 70px; margin: 0; }
	.band-grid { grid-template-columns: 1fr; padding: 0 30px; gap: 30px; }
	.layout-mag .with-sidebar { grid-template-columns: 1fr; }
	.layout-mag .sidebar { position: static; }
	.network-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
	.archive-top { grid-template-columns: 1fr; }
	.archive-side { order: 2; }
}
@media (max-width: 600px) {
	.layout-mag .card-list { grid-template-columns: 1fr; gap: 10px; }
	.layout-mag .card-list .thumb { aspect-ratio: 16 / 9; }
	.layout-mag .card-list .card-body { padding-top: 0; }
	.layout-mag .card-list .card-excerpt { display: block; }
	.layout-mag .card-list .card-title { font-size: 20px; }
	.new-posts { padding-top: 40px; }
	.explore-grid { gap: 26px 30px; }
	.explore-tile, .explore-img { width: 130px; }
	.explore-img { height: 130px; }
	.layout-mag .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 10px; }
	.layout-mag .footer-copy, .footer-logo { text-align: center; }
	.up-next { grid-template-columns: 1fr; }
	.layout-mag .share-btn { width: 60px; }
	.layout-mag .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* v2 refinements after side-by-side review */
.layout-mag .triptych { padding-top: 44px; padding-bottom: 26px; }
.layout-mag .new-posts { padding-top: 70px; }
.layout-mag .single-wrap, .layout-mag.archive .archive-mag, .archive-mag { padding-top: 46px; }
.layout-mag .header-social li:nth-child(n+5) { display: none; }
.layout-mag .header-social .icon, .footer-social .icon { stroke-width: 2.2; }
.layout-mag .share-linkedin, .layout-mag .share-message, .layout-mag .share-copy { display: none; }
@media (min-width: 961px) { .layout-mag .entry-title { font-size: 50px; } }
.layout-mag .entry-title { font-weight: 700; } .feat-title, .layout-mag .card-list .card-title { font-weight: 600; }
.layout-mag .site-title { white-space: nowrap; } @media (max-width: 600px) { .layout-mag .site-title { font-size: 27px; } }


/* =========================================================
   v3 identity: berry and champagne, Fraunces + DM Sans,
   cover-story homepage, editorial section heads, soft cards.
   ========================================================= */
.layout-mag { --c-line: #ebe6e3; --c-soft: color-mix(in srgb, var(--c-accent) 12%, #fff); --c-explore: #f6f2ef; --r: 10px; --c-grey: #6f6a6d; font-size: 16px; }
html[data-theme="dark"] .layout-mag { --c-soft: #1c1719; --c-explore: #141113; --c-line: #2b2528; }
.layout-mag .container { padding-left: 20px; padding-right: 20px; }
.layout-mag a:hover { color: var(--c-link-text, var(--c-primary)); }
.serif-title, .layout-mag .card-title, .feat-title, .layout-mag .entry-title, .title-list a { font-optical-sizing: auto; }

/* Header: logo left, nav centre, hairline accent on top */
.layout-mag .site-header { border-top: 3px solid var(--c-primary); box-shadow: 0 1px 0 var(--c-line); }
.layout-mag .header-inner { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 20px; gap: 18px; }
.layout-mag .site-branding { order: 1; margin-right: 10px; display: flex; align-items: center; min-width: 0; }
.layout-mag .main-nav { order: 2; min-width: 0; }
.layout-mag .header-actions { order: 3; margin-left: auto; }
.layout-mag .menu-toggle { order: 4; color: var(--c-header-ink); width: 40px; }
.layout-mag .menu-toggle .icon { stroke-width: 2; width: 24px; height: 24px; }
.layout-mag .site-title { font-family: var(--f-head); font-style: italic; font-weight: 600; font-size: calc(var(--logo-h, 40px) * .78); letter-spacing: -.02em; line-height: 1; }
.layout-mag .site-title a { color: var(--c-header-ink); }
.layout-mag .custom-logo, .layout-mag .custom-logo-link img { max-height: var(--logo-h, 40px); width: auto; height: auto; }
.layout-mag .main-nav .menu { justify-content: center; }
.layout-mag .main-nav .menu a { font-family: var(--f-body); font-size: 13.5px; font-weight: 500; text-transform: none; letter-spacing: .01em; padding: 22px 10px; }
.layout-mag .main-nav .menu > li > a:hover { color: var(--c-link-text, var(--c-primary)); }
@media (min-width: 961px) { .layout-mag .menu-toggle { display: none; } }

/* Editorial section heads (replace dash-flanked caps) */
.sec-head { margin: 0 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); position: relative; text-align: left; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; background: var(--c-primary); }
.sec-eyebrow { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-text, var(--c-accent)); margin-bottom: 4px; }
.sec-name { font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; margin: 0; color: var(--c-text); letter-spacing: -.01em; }
.eyebrow { display: inline-block; font-family: var(--f-body); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text, var(--c-accent)); margin-bottom: 6px; }
.eyebrow:hover { color: var(--c-primary); }

/* Cover story */
.cover { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 30px; }
.cover > * { min-width: 0; }
.cover-media { position: relative; display: block; aspect-ratio: 16 / 10; max-height: 440px; overflow: hidden; border-radius: var(--r); background: var(--c-soft); }
.cover-media img, .cover-media .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.cover-text { position: relative; margin: -56px 28px 0; background: var(--c-bg, #fff); border-radius: var(--r); padding: 22px 26px 20px; box-shadow: 0 14px 40px rgba(20, 10, 15, .10); }
html[data-theme="dark"] .cover-text { background: #18161a; }
.cover-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 10px; }
.cover-title a { color: var(--c-text); }
.cover-dek { font-size: 15px; line-height: 1.5; color: var(--c-grey); margin: 0 0 10px; }
.cover-by { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--c-grey); margin: 0; }
.media-badge { background: var(--c-accent); color: var(--c-accent-ink, #fff); }
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.top-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 84px; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.top-item:last-child { border-bottom: 0; }
.top-num { font-family: var(--f-head); font-style: italic; font-size: 28px; line-height: 1; color: var(--c-accent); }
.top-item .serif-title { font-size: 17px; font-weight: 500; line-height: 1.2; margin: 0; }
.top-thumb { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--c-soft); }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Just-in strip */
.latest-strip { display: flex; align-items: stretch; gap: 22px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); max-width: 1180px; }
.strip-label { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-primary-ink, #fff); background: var(--c-primary); border-radius: 999px; padding: 6px 12px; align-self: center; }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; flex: 1; min-width: 0; }
.strip-list li { min-width: 0; border-left: 1px solid var(--c-line); padding-left: 16px; }
.strip-list li:first-child { border-left: 0; padding-left: 0; }
.strip-list time { display: block; font-size: 11px; color: var(--c-grey); margin-bottom: 3px; }
.strip-list a { font-family: var(--f-head); font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--c-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Spotlight (replaces the full-bleed orange band) */
.layout-mag .color-band.spotlight { background: var(--c-soft); padding: 44px 0 50px; margin-top: 40px; }
.spotlight .band-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding: 0; }
.spotlight .band-col { text-align: left; min-width: 0; }
.spotlight .band-card { background: var(--c-bg, #fff); border-radius: var(--r); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: transform .3s ease, box-shadow .3s ease; }
html[data-theme="dark"] .spotlight .band-card { background: #18161a; }
.spotlight .band-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20, 10, 15, .10); }
.spotlight .band-media { aspect-ratio: 4 / 3; max-height: 300px; }
.spotlight .band-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spotlight .band-title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.spotlight .band-title a { color: var(--c-accent-text, var(--c-accent)); }
.spotlight .band-card .serif-title { padding: 0; min-height: 0; display: block; font-size: 20px; font-weight: 500; line-height: 1.2; }
.spotlight .band-card .serif-title a { color: var(--c-text); }
.spotlight .band-more { margin-top: auto; color: var(--c-link-text, var(--c-primary)); font-size: 12px; letter-spacing: .06em; }
.spotlight .band-more:hover { color: var(--c-text); }

/* New posts list: smaller, softer thumbnails */
.layout-mag .new-posts { padding-top: 54px; }
.layout-mag .with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
.layout-mag .with-sidebar > * { min-width: 0; }
.layout-mag .card-list { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 18px 0; border-top: 0; border-bottom: 1px solid var(--c-line); }
.layout-mag .card-list .thumb { aspect-ratio: 4 / 3; border-radius: 8px; max-height: 190px; }
.layout-mag .card-list .card-body { padding-top: 4px; }
.layout-mag .card-list .card-title { font-size: 21px; font-weight: 500; line-height: 1.18; }
.layout-mag .card-excerpt { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--c-grey); }
.card-kicker { font-size: 11px; letter-spacing: .12em; }
.card-kicker .cat-label { color: var(--c-accent-text, var(--c-accent)); }
.more-posts { background: transparent; color: var(--c-text); border: 1px solid var(--c-text); border-radius: 999px; padding: 10px 26px; font-size: 12px; letter-spacing: .12em; }
.more-posts:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-ink, #fff); }

/* Sidebar */
.layout-mag .sidebar { top: 90px; }
.layout-mag .widget { min-width: 0; overflow-wrap: anywhere; }
.layout-mag .widget-title, .layout-mag .widget .wp-block-heading { display: block; text-align: left; font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: 22px; text-transform: none; padding: 0 0 8px; margin: 0 0 14px; border-bottom: 1px solid var(--c-line); position: relative; }
.layout-mag .widget-title::before { display: none; }
.layout-mag .widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--c-primary); flex: none; max-width: none; }
.layout-mag .widget select, .layout-mag .widget input, .layout-mag .widget table, .layout-mag .widget img, .layout-mag .widget iframe { max-width: 100%; }
.layout-mag .widget .wp-block-search__inside-wrapper { min-width: 0; }
.layout-mag .widget .wp-block-search__input { min-width: 0; width: 100%; }
.side-thumb { border-radius: 6px; }
.tab-heads { justify-content: flex-start; }
.tab-heads .is-active { border-color: var(--c-accent); }

/* Explore tiles */
.layout-mag .explore { background: var(--c-explore); text-align: left; padding: 44px 0 50px; }
.layout-mag .explore .sec-head { max-width: 1180px; margin-left: auto; margin-right: auto; }
.layout-mag .explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.layout-mag .explore-tile { position: relative; width: auto; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; max-height: 340px; }
.layout-mag .explore-offset { display: none; }
.layout-mag .explore-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.layout-mag .explore-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(15, 8, 12, .78)); }
.layout-mag .explore-label { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; text-align: left; margin: 0; font-family: var(--f-head); font-style: italic; font-size: 22px; font-weight: 500; text-transform: none; color: #fff; }
.layout-mag .explore-tile:hover img { transform: scale(1.04); }
.layout-mag .explore-img img { transition: transform .5s ease; }

/* Single post */
.cat-tag { background: transparent; color: var(--c-accent-text, var(--c-accent)); border: 1px solid currentColor; border-radius: 999px; font-style: normal; font-weight: 600; letter-spacing: .14em; font-size: 11px; padding: 4px 12px; transform: none; margin-bottom: 14px; }
.cat-tag:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-ink, #fff); }
.layout-mag .entry-title { font-weight: 600; letter-spacing: -.015em; line-height: 1.08; }
@media (min-width: 961px) { .layout-mag .entry-title { font-size: 46px; } }
.byline { color: var(--c-grey); }
.layout-mag .entry-figure { margin: 18px 0 18px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; max-height: 560px; }
.layout-mag .entry-figure img { width: 100%; height: 100%; object-fit: cover; }
.layout-mag .share { justify-content: flex-start; gap: 8px; }
.layout-mag .share-btn, .layout-mag .share-facebook, .layout-mag .share-x, .layout-mag .share-pinterest, .layout-mag .share-mail { width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1px solid var(--c-line); color: var(--c-text); }
.layout-mag .share-btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-ink, #fff); filter: none; }
.layout-mag .share-btn .icon { width: 15px; height: 15px; }
.layout-mag .entry-content { font-size: 17px; line-height: 1.7; }
.layout-mag .entry-content h2 { font-size: 26px; font-weight: 600; }
.layout-mag .entry-content h3 { font-size: 21px; font-weight: 600; }
.layout-mag .entry-content img, .layout-mag .entry-content iframe, .layout-mag .entry-content video, .layout-mag .entry-content figure, .layout-mag .entry-content .wp-block-embed { max-width: 100%; }
.layout-mag .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
.layout-mag .entry-content pre { max-width: 100%; overflow-x: auto; }
.layout-mag .entry-content .alignfull, .layout-mag .entry-content .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; width: auto; }
.layout-mag .entry-content a { color: var(--c-link-text, var(--c-primary)); }
.up-next small, .related-topics span { color: var(--c-accent-text, var(--c-accent)); }
.layout-mag .related .section-title { font-family: var(--f-head); font-style: italic; font-weight: 500; text-transform: none; font-size: 26px; }
.layout-mag .related .section-title::after { height: 1px; background: var(--c-line); align-self: center; }
.layout-mag .related .thumb { border-radius: 8px; aspect-ratio: 4 / 3; }

/* Archive */
.archive-name { font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: 30px; text-transform: none; text-align: left; }
.archive-lead-story .lead-media { aspect-ratio: 4 / 3; max-height: 460px; border-radius: var(--r); }
.mini-thumb { border-radius: 6px; }
.archive-top > * { min-width: 0; }

/* Footer */
.layout-mag .site-footer { text-align: center; }
.footer-logo .site-title { font-size: 26px; }

/* Responsive + overflow safety */
@media (max-width: 1100px) {
	.layout-mag .main-nav .menu a { padding: 22px 7px; font-size: 12.5px; }
}
@media (max-width: 960px) {
	.layout-mag .header-inner { height: 58px; padding: 0 16px; }
	.layout-mag .site-branding { position: static; transform: none; margin: 0; }
	.layout-mag .site-title { font-size: calc(var(--logo-h, 40px) * .66); }
	.layout-mag .custom-logo, .layout-mag .custom-logo-link img { max-height: calc(var(--logo-h, 40px) * .85); }
	.layout-mag .menu-toggle { display: inline-flex; margin-right: -8px; }
	.cover { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 18px; }
	.cover-text { margin: -40px 14px 0; padding: 18px 18px 16px; }
	.latest-strip { flex-direction: column; gap: 12px; }
	.strip-label { align-self: flex-start; }
	.strip-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.strip-list li:nth-child(3) { border-left: 0; padding-left: 0; }
	.spotlight .band-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0; }
	.layout-mag .with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.layout-mag .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.network-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
	.archive-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.layout-mag .container { padding-left: 16px; padding-right: 16px; }
	.cover-media { aspect-ratio: 4 / 3; border-radius: 8px; }
	.cover-text { margin: -30px 10px 0; }
	.cover-dek { display: none; }
	.top-item { grid-template-columns: 30px minmax(0, 1fr) 72px; gap: 12px; }
	.strip-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.strip-list li { border-left: 0; padding-left: 0; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
	.strip-list li:last-child { border-bottom: 0; padding-bottom: 0; }
	.layout-mag .card-list { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
	.layout-mag .card-list .thumb { aspect-ratio: 1; border-radius: 6px; max-height: none; }
	.layout-mag .card-list .card-title { font-size: 17px; }
	.layout-mag .card-list .card-excerpt { display: none; }
	.layout-mag .explore-grid { gap: 12px; padding: 0 16px; }
	.layout-mag .explore-label { font-size: 18px; left: 12px; bottom: 10px; }
	.layout-mag .entry-figure { aspect-ratio: 4 / 3; border-radius: 8px; }
	.layout-mag .share-btn, .layout-mag .share-facebook, .layout-mag .share-x, .layout-mag .share-pinterest, .layout-mag .share-mail { width: 36px; }
	.layout-mag .entry-content { font-size: 16.5px; }
	.layout-mag .header-ad img { max-width: 100%; height: auto; }
}

/* v3 polish */
.layout-mag .main-nav .menu { justify-content: flex-start; }
.layout-mag .main-nav .menu a { padding: 22px 8px; font-size: 13px; }
.layout-mag .widget .wp-block-search__button, .layout-mag .search-submit { flex: none; white-space: nowrap; }
.explore-head, .network-head { width: calc(100% - 40px); max-width: 1140px; margin-left: auto !important; margin-right: auto !important; }
.layout-mag .network-strip { background: var(--c-bg, #fff); text-align: left; padding: 50px 0 54px; margin-top: 0; border-top: 1px solid var(--c-line); }
.layout-mag .network-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; gap: 24px; }
.layout-mag .network-card { background: none; padding: 0; text-align: left; }
.layout-mag .network-media { height: auto; aspect-ratio: 16 / 10; border-radius: var(--r); }
.layout-mag .network-tag, .layout-mag .network-tag.tag-1, .layout-mag .network-tag.tag-2 { position: static; top: 0; margin-top: 14px; background: none; padding: 0; font-size: 11px; letter-spacing: .14em; color: var(--c-accent-text, var(--c-accent)); }
.layout-mag .network-card .serif-title { font-size: 19px; font-weight: 500; line-height: 1.2; margin: 6px 0 8px; }
.layout-mag .network-card .serif-title a { color: var(--c-text); }
.layout-mag .network-go { color: var(--c-link-text, var(--c-primary)); font-size: 11px; letter-spacing: .1em; }
@media (max-width: 960px) {
	.layout-mag .network-grid { grid-template-columns: minmax(0, 1fr); max-width: none; }
	.explore-head, .network-head { width: calc(100% - 32px); }
}
