/*
Theme Name: TrustPost
Theme URI: https://trustpost.org
Author: TrustPost
Author URI: https://trustpost.org
Description: A clean, editorial NYT × Bloomberg-inspired WordPress theme. Dark mode, reading progress, table of contents, related posts, breadcrumbs, JSON-LD SEO, bookmarks & claps, trending widget, newsletter, customizer accent color, full archive templates.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trustpost
Tags: blog, news, editorial, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --tp-bg: #ffffff;
  --tp-fg: #111111;
  --tp-muted: #6b6b6b;
  --tp-border: #e6e6e6;
  --tp-accent: #c8102e;
  --tp-surface: #fafaf7;
  --tp-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --tp-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-max: 1240px;
}
html[data-theme="dark"] {
  --tp-bg: #0e0e0e; --tp-fg: #f2f2f2; --tp-muted: #a0a0a0;
  --tp-border: #262626; --tp-surface: #181818; --tp-accent: #ff4d63;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--tp-bg); color: var(--tp-fg);
  font-family: var(--tp-sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--tp-accent); }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--tp-border); margin: 30px 0; }
.container { max-width: var(--tp-max); margin: 0 auto; padding: 0 20px; }
.section-title { font-family: var(--tp-serif); font-size: 26px; margin: 30px 0 16px; font-weight: 700; border-bottom: 2px solid var(--tp-fg); padding-bottom: 8px; }

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--tp-accent); z-index: 999; transition: width .1s;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--tp-bg); border-bottom: 1px solid var(--tp-border); }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 12px; color: var(--tp-muted); border-bottom: 1px solid var(--tp-border); text-transform: uppercase; letter-spacing: .08em; }
.site-branding { text-align: center; padding: 18px 0 14px; }
.site-title { font-family: var(--tp-serif); font-weight: 900; font-size: clamp(28px, 5vw, 48px); letter-spacing: -0.02em; margin: 0; line-height: 1; }
.site-title a { color: var(--tp-fg); }
.site-description { margin: 6px 0 0; font-size: 13px; color: var(--tp-muted); font-style: italic; }
.main-navigation { border-top: 1px solid var(--tp-border); border-bottom: 1px solid var(--tp-border); overflow-x: auto; }
.main-navigation ul { display: flex; flex-wrap: nowrap; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 22px; min-width: max-content; }
.main-navigation li a { display: inline-block; padding: 12px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.main-navigation li.current-menu-item a, .main-navigation li.current-cat a { color: var(--tp-accent); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.theme-toggle, .search-toggle, .icon-btn {
  background: none; border: 1px solid var(--tp-border); color: var(--tp-fg);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 12px; font-family: inherit; font-weight: 600;
}
.theme-toggle:hover, .search-toggle:hover, .icon-btn:hover { background: var(--tp-fg); color: var(--tp-bg); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 60px 20px; }
.search-overlay.open { display: flex; }
.search-overlay form { background: var(--tp-bg); padding: 18px; border-radius: 8px; width: 100%; max-width: 600px; display: flex; gap: 8px; }
.search-overlay input { flex: 1; padding: 14px; border: 1px solid var(--tp-border); background: transparent; color: var(--tp-fg); font-size: 18px; border-radius: 4px; font-family: inherit; }

/* Breadcrumbs */
.breadcrumbs { font-size: 12px; color: var(--tp-muted); margin: 16px 0; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumbs a:hover { color: var(--tp-accent); }

/* Layout */
.site-main { padding: 20px 0 60px; }
.content-area { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 980px) { .content-area.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Post card */
.post-card { border-bottom: 1px solid var(--tp-border); padding: 22px 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .post-card { grid-template-columns: 1fr 240px; } }
.post-card .thumb { overflow: hidden; }
.post-card .thumb img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; width: 100%; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .cat { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-accent); }
.post-card h2 { font-family: var(--tp-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 6px 0 10px; font-weight: 700; }
.post-card .excerpt { color: var(--tp-muted); margin: 0 0 10px; }
.post-card .meta { font-size: 13px; color: var(--tp-muted); }

/* Featured hero — full-width, NYT lead-story style */
.featured-hero { border-bottom: 2px solid var(--tp-fg); padding: 24px 0 32px; margin: 0 0 32px; display: block; }
.featured-hero .cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-accent); margin-bottom: 10px; }
.featured-hero__title { font-family: var(--tp-serif); font-size: clamp(30px, 4.6vw, 60px); line-height: 1.04; margin: 0 0 16px; font-weight: 900; letter-spacing: -0.015em; max-width: 18ch; }
.featured-hero__title a { color: inherit; }
.featured-hero__title a:hover { color: var(--tp-accent); }
.featured-hero__excerpt { font-family: var(--tp-serif); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: var(--tp-muted); margin: 0 0 14px; max-width: 62ch; }
.featured-hero .meta { font-size: 13px; color: var(--tp-muted); margin-bottom: 22px; }
.featured-hero__thumb { display: block; overflow: hidden; }
.featured-hero__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease; }
.featured-hero__thumb:hover img { transform: scale(1.02); }
@media (min-width: 900px) {
  .featured-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
  .featured-hero__text { order: 2; }
  .featured-hero__thumb { order: 1; }
  .featured-hero__title { max-width: none; }
}

/* Category sections on home */
.cat-section { margin: 0 0 48px; }
.cat-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--tp-fg); margin-bottom: 22px; }
.cat-section__head h2 { font-family: var(--tp-serif); font-size: clamp(20px, 2vw, 26px); font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.cat-section__head h2 a { color: inherit; }
.cat-section__more { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tp-accent); white-space: nowrap; }
.cat-section__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .cat-section__grid { grid-template-columns: repeat(3, 1fr); } }
.cs-card__thumb { display: block; overflow: hidden; margin-bottom: 12px; }
.cs-card__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.cs-card__thumb:hover img { transform: scale(1.04); }
.cs-card__title { font-family: var(--tp-serif); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; margin: 0 0 8px; font-weight: 700; }
.cs-card__title a { color: inherit; }
.cs-card__title a:hover { color: var(--tp-accent); }
.cs-card__excerpt { color: var(--tp-muted); font-size: 15px; margin: 0 0 8px; }
.cs-card .meta { font-size: 12px; color: var(--tp-muted); }
@media (min-width: 720px) {
  .cs-card--lead { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--tp-border); }
  .cs-card--lead .cs-card__thumb { margin-bottom: 0; }
  .cs-card--lead .cs-card__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; }
}

/* Category strip on home */
.home-section-title { display: flex; align-items: center; gap: 14px; font-family: var(--tp-serif); font-size: 22px; font-weight: 700; margin: 40px 0 16px; padding-bottom: 6px; border-bottom: 2px solid var(--tp-fg); text-transform: uppercase; letter-spacing: 0.04em; }

/* Single post */
.single-post-header { max-width: 760px; margin: 20px auto 30px; text-align: center; }
.single-post-header .cat { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tp-accent); }
.single-post-header h1 { font-family: var(--tp-serif); font-size: clamp(32px, 5vw, 56px); line-height: 1.1; margin: 14px 0 16px; font-weight: 900; letter-spacing: -0.01em; }
.single-post-header .lede { font-size: 20px; color: var(--tp-muted); margin: 0 auto 18px; max-width: 640px; font-family: var(--tp-serif); }
.single-post-header .byline { font-size: 13px; color: var(--tp-muted); text-transform: uppercase; letter-spacing: .08em; }
.single-featured img { width: 100%; max-height: 560px; object-fit: cover; }
.single-featured figcaption { font-size: 13px; color: var(--tp-muted); padding: 8px 0; text-align: center; font-style: italic; }

.article-body { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1100px; margin: 30px auto; }
@media (min-width: 1000px) { .article-body { grid-template-columns: 240px minmax(0, 720px); } }
.toc-wrap { display: none; }
@media (min-width: 1000px) { .toc-wrap { display: block; } }
.toc { position: sticky; top: 200px; font-size: 13px; }
.toc h4 { font-family: var(--tp-serif); font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--tp-muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--tp-border); }
.toc li a { display: block; padding: 6px 12px; color: var(--tp-muted); border-left: 2px solid transparent; margin-left: -2px; line-height: 1.35; }
.toc li.active a { color: var(--tp-fg); border-left-color: var(--tp-accent); font-weight: 600; }
.toc li.lvl-3 a { padding-left: 24px; font-size: 12px; }

.entry-content { font-size: 19px; line-height: 1.75; font-family: var(--tp-serif); }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { font-family: var(--tp-serif); font-size: 30px; margin: 1.6em 0 .5em; font-weight: 700; scroll-margin-top: 200px; }
.entry-content h3 { font-family: var(--tp-serif); font-size: 22px; margin: 1.4em 0 .5em; font-weight: 700; scroll-margin-top: 200px; }
.entry-content blockquote { border-left: 4px solid var(--tp-accent); margin: 1.6em 0; padding: 4px 0 4px 24px; font-family: var(--tp-serif); font-size: 24px; font-style: italic; line-height: 1.4; }
.entry-content a { border-bottom: 1px solid currentColor; }
.entry-content img { margin: 1.4em auto; border-radius: 4px; }
.entry-content code { background: var(--tp-surface); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; font-family: ui-monospace, monospace; }
.entry-content pre { background: var(--tp-surface); padding: 16px; border-radius: 6px; overflow-x: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }

/* Article action bar */
.article-actions { display: flex; gap: 10px; align-items: center; margin: 24px auto; max-width: 720px; padding: 14px 0; border-top: 1px solid var(--tp-border); border-bottom: 1px solid var(--tp-border); flex-wrap: wrap; }
.article-actions .label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--tp-muted); margin-right: auto; }
.clap-btn, .bookmark-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--tp-border); border-radius: 999px; background: transparent; color: var(--tp-fg); cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 600; }
.clap-btn:hover, .bookmark-btn:hover, .clap-btn.active, .bookmark-btn.active { background: var(--tp-accent); color: #fff; border-color: var(--tp-accent); }
.share-bar { display: inline-flex; gap: 6px; }
.share-bar a { font-size: 12px; padding: 6px 12px; border: 1px solid var(--tp-border); border-radius: 999px; }

.post-tags { max-width: 720px; margin: 28px auto; }
.post-tags a { display: inline-block; border: 1px solid var(--tp-border); padding: 4px 12px; border-radius: 999px; font-size: 12px; margin: 0 6px 6px 0; }

/* Author bio */
.author-bio { max-width: 720px; margin: 40px auto; padding: 24px; background: var(--tp-surface); border: 1px solid var(--tp-border); border-radius: 6px; display: flex; gap: 18px; align-items: flex-start; }
.author-bio img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; flex: 0 0 72px; }
.author-bio h4 { margin: 0 0 6px; font-family: var(--tp-serif); font-size: 20px; }
.author-bio p { margin: 0; color: var(--tp-muted); font-size: 14px; }

/* Related posts */
.related-posts { max-width: 1100px; margin: 50px auto; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: block; border: 1px solid var(--tp-border); border-radius: 4px; overflow: hidden; background: var(--tp-bg); }
.related-card img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.related-card:hover img { transform: scale(1.04); }
.related-card .cat { display: block; padding: 12px 14px 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-accent); }
.related-card h3 { padding: 6px 14px 14px; margin: 0; font-family: var(--tp-serif); font-size: 18px; line-height: 1.25; }

/* Sidebar */
.sidebar { font-size: 14px; }
.widget { background: var(--tp-surface); border: 1px solid var(--tp-border); padding: 18px; margin-bottom: 24px; border-radius: 6px; }
.widget-title { font-family: var(--tp-serif); font-size: 18px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--tp-border); text-transform: uppercase; letter-spacing: .04em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--tp-border); }
.widget li:last-child { border-bottom: 0; }

/* Trending list */
.trending-list { list-style: none; padding: 0; margin: 0; counter-reset: trend; }
.trending-list li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--tp-border); align-items: center; }
.trending-list li:last-child { border-bottom: 0; }
.trending-list .num { font-family: var(--tp-serif); font-size: 24px; font-weight: 900; color: var(--tp-accent); line-height: 1; }
.trending-list a { font-weight: 600; line-height: 1.3; }

/* Newsletter */
.newsletter { background: var(--tp-fg); color: var(--tp-bg); padding: 30px; border-radius: 8px; text-align: center; margin: 40px 0; }
.newsletter h3 { font-family: var(--tp-serif); font-size: 28px; margin: 0 0 8px; }
.newsletter p { opacity: .8; margin: 0 0 18px; }
.newsletter form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; padding: 12px 14px; border: 0; border-radius: 4px; font-family: inherit; font-size: 15px; }
.newsletter button { background: var(--tp-accent); color: #fff; border: 0; padding: 12px 22px; border-radius: 4px; cursor: pointer; font-weight: 700; font-family: inherit; }

/* Comments */
.comments-area { max-width: 720px; margin: 40px auto; }
.comments-title { font-family: var(--tp-serif); font-size: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--tp-border); padding: 14px 0; }
.comment-meta { font-size: 13px; color: var(--tp-muted); margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea, .search-form input[type=search] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--tp-border); background: var(--tp-bg); color: var(--tp-fg); border-radius: 4px; margin: 4px 0 12px; font-family: inherit; font-size: 15px;
}
.comment-form .submit, .search-form .search-submit, .wp-block-button__link, button[type=submit].search-submit {
  background: var(--tp-fg); color: var(--tp-bg); border: 0; padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer;
}

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--tp-border); border-radius: 4px; font-size: 14px; }
.pagination .current { background: var(--tp-fg); color: var(--tp-bg); border-color: var(--tp-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--tp-border); padding: 40px 0 24px; margin-top: 60px; background: var(--tp-surface); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--tp-serif); font-weight: 900; font-size: 26px; }
.social-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.social-row a { font-size: 12px; border: 1px solid var(--tp-border); padding: 6px 12px; border-radius: 999px; }
.footer-copy { text-align: center; font-size: 13px; color: var(--tp-muted); margin-top: 30px; border-top: 1px solid var(--tp-border); padding-top: 18px; }

/* Search form */
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input[type=search] { margin: 0; }

/* 404 */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-family: var(--tp-serif); font-size: 120px; margin: 0; color: var(--tp-accent); line-height: 1; }

/* Author archive header */
.author-header { display: flex; gap: 20px; align-items: center; padding: 30px 0; border-bottom: 2px solid var(--tp-fg); margin-bottom: 30px; }
.author-header img { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; }
.author-header h1 { font-family: var(--tp-serif); font-size: 36px; margin: 0; }
.author-header p { margin: 6px 0 0; color: var(--tp-muted); }

/* Utility / WP core */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.screen-reader-text { position: absolute; left: -9999px; }
.sticky { display: block; }
.gallery-caption { display: block; font-size: 13px; color: var(--tp-muted); }
.bypostauthor { display: block; }
.wp-caption-text { font-size: 13px; color: var(--tp-muted); text-align: center; }

/* =========================================================
   Home — NYT × Bloomberg layout (v1.2)
   ========================================================= */
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tp-accent); margin: 0 0 6px; }
.kicker a { color: inherit; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tp-muted); margin: 0 0 10px; }
.eyebrow a { color: var(--tp-accent); }

/* Lead section */
.lead-section { border-bottom: 1px solid var(--tp-border); padding: 20px 0 40px; margin-bottom: 36px; }
.lead-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 980px) { .lead-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; } }

.lead-story__thumb { display: block; overflow: hidden; background: var(--tp-surface); }
.lead-story__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.lead-story__thumb:hover img { transform: scale(1.02); }
.lead-story__body { padding-top: 20px; }
.lead-story__title { font-family: var(--tp-serif); font-weight: 900; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.015em; margin: 6px 0 18px; max-width: 16ch; }
.lead-story__title a { color: inherit; }
.lead-story__title a:hover { color: var(--tp-accent); }
.lead-story__excerpt { font-family: var(--tp-serif); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--tp-muted); margin: 0 0 18px; max-width: 62ch; }
.lead-story__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--tp-muted); margin-bottom: 16px; }
.lead-story__meta a { color: var(--tp-fg); }
.lead-story__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tp-fg); border-bottom: 1px solid var(--tp-fg); padding-bottom: 2px; }
.lead-story__cta:hover { color: var(--tp-accent); border-color: var(--tp-accent); }

/* Right rail */
.lead-rail { border-top: 2px solid var(--tp-fg); padding-top: 16px; }
.rail-kicker { font-family: var(--tp-serif); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; color: var(--tp-fg); }
.rail-item { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--tp-border); }
.rail-item:last-of-type { border-bottom: 0; }
.rail-item__title { font-family: var(--tp-serif); font-size: 18px; line-height: 1.25; margin: 2px 0 6px; font-weight: 700; }
.rail-item__title a { color: inherit; }
.rail-item__title a:hover { color: var(--tp-accent); }
.rail-item__excerpt { color: var(--tp-muted); font-size: 14px; margin: 0 0 6px; line-height: 1.5; }
.rail-item__meta { font-size: 12px; color: var(--tp-muted); margin: 0; }
.rail-trending { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--tp-border); }

/* Home blocks */
.home-block { margin: 0 0 56px; }
.home-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--tp-border); padding-bottom: 12px; margin-bottom: 28px; }
.home-block__head .kicker { color: var(--tp-fg); margin: 0; }
.home-block__head h2 { font-family: var(--tp-serif); font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; margin: 6px 0 0; line-height: 1.1; }
.home-block__head .see-all { font-size: 13px; color: var(--tp-muted); white-space: nowrap; }
.home-block__head .see-all:hover { color: var(--tp-accent); }

/* Magazine cards (image-top) */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 36px 28px; }
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.mag-card { display: flex; flex-direction: column; }
.mag-card__thumb { display: block; overflow: hidden; background: var(--tp-surface); }
.mag-card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.mag-card__thumb:hover img { transform: scale(1.04); }
.mag-card__body { padding-top: 14px; }
.mag-card__body .kicker { display: flex; gap: 8px; align-items: center; color: var(--tp-muted); }
.mag-card__body .kicker a { color: var(--tp-accent); }
.mag-card__title { font-family: var(--tp-serif); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; margin: 6px 0 8px; font-weight: 700; }
.mag-card__title a { color: inherit; }
.mag-card__title a:hover { color: var(--tp-accent); }
.mag-card__excerpt { color: var(--tp-muted); font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.mag-card__meta { font-size: 12px; color: var(--tp-muted); margin: 0; }

/* Section strip */
.section-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 14px 0; border-top: 1px solid var(--tp-border); border-bottom: 1px solid var(--tp-border); margin: 0 0 44px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; background: var(--tp-surface); padding-left: 16px; padding-right: 16px; }
.section-strip__label { font-weight: 700; color: var(--tp-fg); margin-right: 8px; }
.section-strip a { color: var(--tp-muted); }
.section-strip a:hover { color: var(--tp-accent); }
