:root {
  --primary: #b45309;
  --background: #fffdf7;
  --text: #1c1917;
  --accent: #d97706;
  --font-serif: 'Noto Serif SC', Georgia, 'Songti SC', SimSun, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: var(--background); color: var(--text); line-height: 1.7; font-size: 16px; }

/* ===== masthead / header (print-style: nav split left/right of a centered brand) ===== */
.magazine-masthead-header { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.5rem; padding: 1.1rem 2rem; border-bottom: 2px solid var(--text); }
.magazine-masthead-header .brand { order: 2; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand-logo { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.masthead-nav { display: flex; gap: 1rem; flex: 1 1 0; min-width: 140px; }
.masthead-nav-left { order: 1; justify-content: flex-end; }
.masthead-nav-right { order: 3; justify-content: flex-start; }
.masthead-nav a { color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.masthead-nav a:hover { color: var(--primary); }
.site-header-tools { order: 4; display: flex; align-items: center; gap: .4rem; flex: none; margin-left: auto; }
.nav-toggle { display: none; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border: 1px solid rgba(128,128,128,.28); padding: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.nav-toggle::before { content: "☰"; font-size: .94rem; line-height: 1; }
.nav-toggle[aria-expanded="true"]::before { content: "×"; font-size: 1.18rem; }
.nav-toggle:hover { background: rgba(128,128,128,.08); border-color: var(--text); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 720px) {
  .magazine-masthead-header { justify-content: space-between; }
  .nav-toggle { display: inline-flex; }
  .masthead-nav { display: none; flex: 1 0 100%; min-width: 0; gap: .7rem; padding-top: .65rem; border-top: 1px solid rgba(128,128,128,.18); }
  .masthead-nav.is-open { display: flex; }
  .masthead-nav-left { order: 4; justify-content: flex-start; }
  .masthead-nav-right { order: 5; justify-content: flex-start; }
  .site-header-tools { order: 3; margin-left: 0; }
}
.site-search { position: relative; }
.site-search input { padding: .4rem .7rem; border: 1px solid rgba(128,128,128,.35); border-radius: 2px; background: var(--background); color: var(--text); font-size: .85rem; width: 180px; }
.site-search-results { position: absolute; right: 0; top: calc(100% + .3rem); width: 320px; max-width: 80vw; max-height: 320px; overflow-y: auto; background: var(--background); border: 1px solid rgba(128,128,128,.3); box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 10; }
.site-search-result { display: block; padding: .6rem .8rem; text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(128,128,128,.15); }
.site-search-result:last-child { border-bottom: none; }
.site-search-result:hover { background: rgba(128,128,128,.08); }
.site-search-result-title { display: block; font-weight: 600; font-size: .85rem; }
.site-search-result-summary { display: block; font-size: .75rem; opacity: .7; margin-top: .15rem; }

main { max-width: 1100px; margin: 0 auto; padding: 2rem; }

/* ===== magazine reader layout (article page: content + "编辑推荐" rail) ===== */
.magazine-reader { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2.5rem; align-items: start; }
.magazine-sidebar { position: sticky; top: 1.5rem; padding-left: 1.75rem; border-left: 1px solid rgba(128,128,128,.25); }
.magazine-sidebar-title { font-family: var(--font-serif); font-weight: 700; font-size: 1rem; margin: 0 0 .9rem; }
.magazine-sidebar-list { list-style: none; counter-reset: mrow; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.magazine-sidebar-list li { counter-increment: mrow; display: flex; flex-wrap: wrap; gap: .7rem; align-items: baseline; }
.magazine-sidebar-list li::before { content: counter(mrow, decimal-leading-zero); font-family: var(--font-serif); font-weight: 700; color: var(--accent); flex: none; }
.magazine-sidebar-list a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.magazine-sidebar-list a:hover { color: var(--primary); }
@media (max-width: 760px) {
  .magazine-reader { grid-template-columns: 1fr; }
  .magazine-sidebar { position: static; padding-left: 0; border-left: none; border-top: 1px solid rgba(128,128,128,.25); padding-top: 1.25rem; }
}

/* drop cap on the article's opening paragraph — a print-magazine signature */
.magazine-body > p:first-of-type::first-letter {
  font-family: var(--font-serif); float: left; font-size: 3.6em; line-height: .82;
  font-weight: 700; padding: .05em .08em 0 0; color: var(--primary);
}

.breadcrumb { font-size: .8rem; opacity: .7; margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: .04em; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 .4rem; }

/* ===== masthead intro (home) ===== */
.magazine-masthead { text-align: center; padding: 2.75rem 0 2.25rem; border-bottom: 1px solid rgba(128,128,128,.25); margin-bottom: 2.25rem; }
.magazine-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .85rem; }
.magazine-masthead h1 { font-family: var(--font-serif); font-size: 2.75rem; font-weight: 700; line-height: 1.15; margin: 0 0 .75rem; color: var(--text); }
.magazine-dek { font-size: 1.05rem; opacity: .78; max-width: 640px; margin: 0 auto; }
.magazine-masthead .cta-banner { justify-content: center; margin-top: 1.4rem; }

/* ===== hero h1 fallback (kept for robustness if intro partial is ever included) ===== */
.hero h1 { font-family: var(--font-serif); color: var(--text); }

/* ===== cta pills ===== */
.cta-banner { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-pill { display: inline-block; padding: .6rem 1.1rem; border-radius: 2px; border: 1px solid var(--text); background: transparent; color: var(--text); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }

/* ===== featured hero (carousel / spotlight / grid — driven by hero_layout) ===== */
.featured-hero { margin: 0 0 2rem; }
.hero-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .5rem; margin: 0 -.1rem; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 58%; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  min-height: 220px; padding: 1.5rem; border: 1px solid var(--text);
  background: var(--text); color: var(--background); text-decoration: none; text-align: center;
}
.hero-slide-icon { font-size: 2.3rem; }
.hero-slide-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.hero-slide-has-image { background-size: cover; background-position: center; }
.hero-slide-has-image .hero-slide-title { text-shadow: 0 1px 4px rgba(0,0,0,.7); }
@media (max-width: 640px) { .hero-slide { flex-basis: 82%; min-height: 190px; } }

/* carousel controls — serif ‹ › page-turn arrows + dash progress marks (hero-carousel.js) */
.featured-hero-carousel-section { position: relative; display: flex; align-items: center; gap: .8rem; }
.hero-carousel-arrow {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--text); color: var(--text);
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.hero-carousel-arrow:hover { background: var(--text); color: var(--background); }
.featured-hero-carousel-section .hero-track { flex: 1; min-width: 0; }
.hero-carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.hero-carousel-dot { width: 1rem; height: 2px; border-radius: 0; border: none; padding: 0; cursor: pointer; background: rgba(128,128,128,.35); transition: background .15s ease, width .15s ease; }
.hero-carousel-dot.is-active { background: var(--accent); width: 1.8rem; }

/* hero_layout: spotlight */
.featured-hero-spotlight { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.hero-spotlight-main { flex: 1 1 62%; min-width: 260px; display: flex; }
.hero-spotlight-main .hero-slide { flex: 1; min-height: 372px; }
.hero-spotlight-list { flex: 1 1 34%; min-width: 220px; display: flex; flex-direction: column; gap: .75rem; }
.hero-spotlight-item { min-height: 84px; padding: .9rem 1rem; flex-direction: row; justify-content: flex-start; text-align: left; }
.hero-spotlight-item .hero-slide-icon { font-size: 1.4rem; }
.hero-spotlight-item .hero-slide-title { font-size: .95rem; }

/* hero_layout: grid */
.featured-hero-grid-section { margin: 0 0 0; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.hero-grid-item { min-height: 150px; }

/* ===== magazine table of contents (本期精选) ===== */
.magazine-toc { margin: 2.5rem 0; }
.magazine-toc h2 { font-family: var(--font-serif); font-size: 1.3rem; border-bottom: 2px solid var(--text); padding-bottom: .5rem; margin-bottom: .5rem; }
.magazine-toc-list { list-style: none; margin: 0; padding: 0; }
.magazine-toc-item { display: flex; align-items: baseline; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed rgba(128,128,128,.3); }
.magazine-toc-index { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--accent); flex: none; width: 2.2rem; }
.magazine-toc-title { flex: 1; min-width: 0; }
.magazine-toc-title a { color: var(--text); text-decoration: none; font-weight: 600; }
.magazine-toc-title a:hover { color: var(--primary); }
.magazine-toc-date { flex: none; font-size: .78rem; opacity: .6; }

/* ===== category preview / category page (card grid) ===== */
.category-preview, .category-page { margin: 2.25rem 0 0; }
.pagination { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0; }
.pagination a, .pagination .is-current { min-width: 2.2rem; padding: .45rem .7rem; border: 1px solid rgba(128,128,128,.3); text-align: center; text-decoration: none; color: var(--text); }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.category-preview h2, .category-page h1 { font-family: var(--font-serif); font-size: 1.3rem; border-bottom: 1px solid rgba(128,128,128,.3); padding-bottom: .5rem; }
.category-preview h2 a { color: var(--text); text-decoration: none; }
.category-preview h2 a:hover { color: var(--primary); }
.category-preview-image { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); margin: 0 0 .75rem; }
/* newspaper "sections" grid — numbered mini index per category, not cards */
.magazine-sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.category-preview-magazine { margin: 0; }
.category-preview-magazine h2 { font-size: 1.05rem; }
.magazine-section-list { list-style: none; counter-reset: sect; margin: .75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.magazine-section-list li { counter-increment: sect; font-size: .88rem; padding-left: 1.4rem; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.magazine-section-list li::before { content: counter(sect) "."; position: absolute; left: 0; color: var(--accent); font-family: var(--font-serif); font-weight: 700; }
.magazine-section-list a { color: var(--text); text-decoration: none; }
.magazine-section-list a:hover { color: var(--primary); }

.magazine-ad-box { border: 1px solid rgba(128,128,128,.3); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.magazine-ad-box h2 { font-size: 1rem; }
.magazine-ad-list { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }
.magazine-ad-list a { color: var(--primary); font-weight: 700; text-decoration: none; }
.magazine-ad-list a:hover { text-decoration: underline; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin: 1rem 0; }
.card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem; border: 1px solid rgba(128,128,128,.3); text-decoration: none; color: var(--text); transition: border-color .15s ease; }
.card:hover { border-color: var(--primary); }
.card-title { flex: 1; font-family: var(--font-serif); font-weight: 600; }

/* card_style variants */
.card-style-elevated { border-color: transparent; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.card-style-elevated:hover { border-color: transparent; box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.card-style-minimal { border: none; border-bottom: 1px solid rgba(128,128,128,.3); padding: .8rem .4rem; }
.card-style-minimal:hover { border-bottom-color: var(--primary); }

/* ===== app download (category_type = app_download) ===== */
.app-download-section { margin: 2.25rem 0 0; }
.app-download-section h1, .app-download-section h2 { font-family: var(--font-serif); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); gap: 1rem; margin-top: 1rem; }
.download-card { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem; border: 1px solid rgba(128,128,128,.3); text-decoration: none; color: var(--text); transition: border-color .15s ease; }
.download-card:hover { border-color: var(--primary); }
.download-icon { font-size: 1.5rem; flex: none; }
.download-title { flex: 1; font-weight: 600; }
.download-btn { flex: none; padding: .4rem .9rem; border-radius: 2px; background: var(--text); color: var(--background); font-size: .82rem; font-weight: 600; white-space: nowrap; }

.app-download-hero { display: flex; flex-direction: column; gap: 1.25rem; margin: 1rem 0 1.5rem; padding: 1.25rem; border: 1px solid rgba(128,128,128,.3); }
.app-download-header { display: flex; gap: 1.5rem; align-items: flex-start; }
.app-download-icon-slot { flex: none; }
.app-download-icon { width: 64px; height: 64px; object-fit: cover; }
.app-download-icon-placeholder { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: rgba(128,128,128,.12); border: 1px dashed rgba(128,128,128,.4); }
.app-download-info { flex: 1; min-width: 0; }
.app-download-name { margin: 0 0 .4rem; font-family: var(--font-serif); color: var(--text); font-size: 1.15rem; }
/* horizontal screenshot gallery — real screenshots come back portrait (9:16) */
.app-download-gallery { display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
.app-download-gallery-shot { flex: none; width: 150px; height: 267px; object-fit: cover; scroll-snap-align: start; border: 1px solid rgba(128,128,128,.3); }
.app-download-desc { margin: 0 0 .8rem; opacity: .85; }
.app-download-hero-btn { display: inline-block; padding: .8rem 2rem; background: var(--text); color: var(--background); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.app-download-hero-btn.is-disabled { opacity: .52; cursor: not-allowed; }
.app-download-meta { margin: .7rem 0 0; font-size: .82rem; opacity: .75; }
.app-download-age-notice { margin: .4rem 0 0; font-size: .82rem; color: #b45309; }

.app-rating { display: flex; gap: 1.5rem; align-items: center; margin: .8rem 0; flex-wrap: wrap; }
.app-rating-summary { flex: none; text-align: center; }
.app-rating-number { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--text); }
.app-rating-stars { position: relative; display: inline-block; font-size: .95rem; line-height: 1; margin-top: .3rem; }
.app-rating-stars-bg { color: rgba(128,128,128,.3); white-space: nowrap; }
.app-rating-stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--primary); white-space: nowrap; }
.app-rating-bars { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: .25rem; }
.app-rating-bar-row { display: flex; align-items: center; gap: .5rem; font-size: .78rem; opacity: .8; }
.app-rating-bar-label { flex: none; width: .7rem; text-align: right; }
.app-rating-bar-track { flex: 1; height: 6px; background: rgba(128,128,128,.2); overflow: hidden; }
.app-rating-bar-fill { height: 100%; background: var(--primary); }

/* ===== tag cloud ===== */
.tag-cloud-section { margin-top: 2.5rem; }
.tag-cloud-section h2 { font-family: var(--font-serif); font-size: 1.2rem; }
.tag-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; background: transparent; border: 1px solid rgba(128,128,128,.35); font-size: .85rem; color: var(--text); }
/* index-page style — dotted leader lines like a magazine's back-page index */
.magazine-index-list { columns: 4 235px; column-gap: 2rem; margin-top: 1rem; }
.magazine-index-item { display: flex; align-items: baseline; gap: .4rem; break-inside: avoid; padding: .35rem 0; font-size: .92rem; }
.magazine-index-dots { flex: 1; border-bottom: 1px dotted rgba(128,128,128,.4); margin-bottom: .3rem; }
.magazine-index-count { opacity: .55; font-size: .8rem; font-family: var(--font-serif); }

/* ===== faq ===== */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { font-family: var(--font-serif); font-size: 1.2rem; }
/* narrow centered "编者问答" column with serif numbering */
.magazine-faq { max-width: 640px; }
.magazine-faq-item { padding: 1rem 0; border-bottom: 1px solid rgba(128,128,128,.2); }
.magazine-faq-q { display: flex; gap: .75rem; margin: 0 0 .4rem; font-weight: 700; font-family: var(--font-serif); }
.magazine-faq-num { color: var(--accent); }
.magazine-faq-a { margin: 0; opacity: .8; padding-left: 2.1rem; }

/* ===== about ===== */
.about-summary { margin-top: 2.5rem; }
.about-summary h2 { font-family: var(--font-serif); font-size: 1.2rem; }
.about-summary-sidebar { padding: 1.1rem 1.3rem; border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.04); }
/* colophon box — print-magazine "about this issue" framing, top+bottom rules */
.magazine-colophon { border-top: 1px solid var(--text); border-bottom: 1px solid rgba(128,128,128,.3); padding: 1.25rem 0; }
.magazine-colophon a { color: var(--primary); text-decoration: none; font-weight: 700; }
.magazine-colophon a:hover { text-decoration: underline; }

/* ===== article page ===== */
article h1 { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1.25; color: var(--text); }
.static-page { padding: 1.5rem 0; border-top: 1px solid rgba(128,128,128,.25); }
.article-meta { font-size: .85rem; opacity: .65; margin: -.5rem 0 1.2rem; }
.article-hero-image { display: block; width: 100%; max-width: 720px; aspect-ratio: 21 / 9; object-fit: cover; margin: 1rem auto 1.5rem; }
.article-actions { display: flex; gap: .6rem; margin: 0 0 1rem; }
.share-btn, .collect-btn { min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; padding: 0 1rem; border-radius: 2px; border: 1px solid rgba(128,128,128,.4); background: transparent; color: var(--text); font-size: .9rem; font-weight: 600; cursor: pointer; }
.share-btn:hover, .collect-btn:hover { border-color: var(--primary); }
.collect-btn.is-collected { border-color: var(--accent); color: var(--accent); }
.article-action-toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); padding: .6rem 1.2rem; background: rgba(0,0,0,.85); color: #fff; font-size: .85rem; z-index: 100; }

.featured-summary { border-collapse: collapse; margin: 1rem 0; }
.featured-summary td { border: 1px solid rgba(128,128,128,.3); padding: .5rem 1rem; }

.article-toc { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.03); }
.article-toc-title { margin: 0 0 .5rem; font-family: var(--font-serif); font-weight: 700; font-size: .95rem; }
.article-toc ul { margin: 0; padding: 0 0 0 1.1rem; }
.article-toc li { margin: .25rem 0; }
.article-toc a { color: var(--primary); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 0; }
.article-tags .tag-chip { font-size: .78rem; padding: .25rem .7rem; }

.author-box { display: flex; align-items: flex-start; gap: .9rem; margin-top: 2.25rem; padding: 1.1rem 1.3rem; border-top: 2px solid var(--text); }
.author-avatar { width: 3.5rem; height: 3.5rem; flex: 0 0 3.5rem; border-radius: 50%; object-fit: cover; background: rgba(128,128,128,.12); }
.author-box-content { min-width: 0; }
.author-box-name { margin: 0 0 .3rem; font-family: var(--font-serif); font-weight: 700; color: var(--text); }
.author-box-bio { margin: 0; opacity: .85; font-size: .9rem; }

/* ===== comments ===== */
.comments { margin-top: 2.5rem; border-top: 2px solid var(--text); padding-top: 1.5rem; }
.comments h2 { font-family: var(--font-serif); font-size: 1.2rem; }
.comment, .comment-reply { display: flex; align-items: flex-start; gap: .7rem; }
.comment { padding: .9rem 0; border-bottom: 1px solid rgba(128,128,128,.2); flex-wrap: wrap; }
.comment-avatar { width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; border-radius: 50%; object-fit: cover; background: rgba(128,128,128,.12); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: .8rem; opacity: .7; margin-bottom: .3rem; }
.comment-name { font-weight: 700; margin-right: .6rem; }
.comment-text { margin: 0; }
.comment-replies { flex: 1 0 calc(100% - 3.05rem); margin: .6rem 0 0 3.05rem; border-left: 2px solid rgba(128,128,128,.25); padding-left: 1rem; }
.comment-reply { padding: .5rem 0; }
.comment-reply.is-author .comment-name { color: var(--primary); }
.comment-compose { margin-top: 1.5rem; }
.comment-compose form { display: flex; align-items: flex-start; gap: .7rem; }
.comment-compose-fields { flex: 1; min-width: 0; display: grid; gap: .7rem; }
.comment-compose label { display: grid; gap: .3rem; font-size: .84rem; font-weight: 700; }
.comment-compose input, .comment-compose textarea { width: 100%; box-sizing: border-box; padding: .65rem .75rem; border: 1px solid rgba(128,128,128,.3); background: rgba(128,128,128,.035); color: var(--text); font: inherit; }
.comment-compose textarea { resize: vertical; }
.comment-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.comment-compose-actions p { margin: 0; font-size: .8rem; opacity: .68; }
.comment-compose-actions button { border: 0; padding: .6rem 1rem; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* ===== footer ===== */
.site-footer { text-align: center; padding: 2.25rem; opacity: .75; font-size: .85rem; border-top: 1px solid rgba(128,128,128,.25); }
.footer-nav { margin-bottom: .75rem; }
.footer-nav a { color: inherit; text-decoration: none; margin: 0 .6rem; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.footer-nav a:hover { text-decoration: underline; }

/* ===== visual_style variants (reinterpreted for this family) ===== */
.visual-style-clean .magazine-masthead h1 { letter-spacing: -.01em; }

.visual-style-editorial .site-header { border-bottom-width: 3px; }
.visual-style-editorial .magazine-masthead { border-bottom-width: 2px; }
.visual-style-editorial .magazine-masthead h1 { font-weight: 800; }
.visual-style-editorial .cta-pill { border-radius: 0; }
.visual-style-editorial .card-title, .visual-style-editorial .hero-slide-title { font-weight: 800; }

.visual-style-vibrant .magazine-eyebrow { color: var(--primary); }
.visual-style-vibrant .hero-slide { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.visual-style-vibrant .hero-slide-has-image { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.visual-style-vibrant .cta-pill { border-color: var(--primary); color: var(--primary); }
.visual-style-vibrant .cta-pill:hover { background: var(--primary); color: #fff; }

.card-date, .download-date, .magazine-section-date, .related-date { font-size: .78rem; opacity: .6; }
.card-date, .download-date, .magazine-section-date { flex: 1 0 100%; order: 99; }
.magazine-ad-date { font-size: .78rem; opacity: .6; font-weight: 400; }
.related-date { flex: 1 0 100%; order: 99; }
.hero-slide-date { position: absolute; bottom: .6rem; left: .8rem; font-size: .78rem; opacity: .6; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }

:root {
  --primary: #b45309;
  --bg: #fffdf7;
  --text: #1c1917;
  --accent: #d97706;
}
.card {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.2);
}
.button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  color: #fff;
  transition: transform 0.2s;
}