/* Theme "kicker": a light, general-interest magazine look modeled on the
   Kicker WordPress theme (news.kicker.axiomthemes.com) — dark utility bar
   above a centered masthead, a bold horizontal category nav with an
   accent underline on the active tab, a multi-story hero (one big card +
   a stacked list of secondary stories, not a single hero + plain list),
   a scrollable category "browse strip", and classic thumbnail-above-text
   cards throughout (rounded corners, soft shadow) rather than the
   full-bleed dark-overlay cards other themes in this network use. Same
   renderHome/renderCategory/renderPost/renderTag/renderSearch/renderAbout
   contract as every other theme (see functions/_themes/kicker.js). */
:root {
  --ink: #1b1c22; --muted: #6b6f76; --line: #e8e6e1; --paper: #ffffff;
  --accent: #ff5630; --accent-ink: #ffffff; --sidebar-bg: #f6f5f2; --badge: #14151a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Inter', -apple-system, sans-serif; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.placeholder-img {
  display: flex; align-items: center; justify-content: center; width: 100%; object-fit: cover;
  background: linear-gradient(135deg, #f1efe8, #e3e0d5); color: var(--muted);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* --- Utility bar + masthead + nav --- */
.utility-bar { background: var(--badge); color: #9a9a9f; font-size: 12px; }
.utility-bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 9px 24px; flex-wrap: wrap; gap: 8px; }
.utility-left { display: flex; gap: 8px; align-items: center; }
.icon-dot { width: 24px; height: 24px; border-radius: 50%; background: #24252c; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; color: #fff; }
.icon-dot:hover { background: var(--accent); }
.utility-right { display: flex; gap: 16px; align-items: center; font-weight: 600; color: #c7c7cc; }
.utility-right a:hover { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: center; padding: 28px 24px; }
.logo-group { display: flex; align-items: center; gap: 12px; flex-direction: column; }
.logo-box { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; }
.logo-img { height: 72px; width: auto; max-width: 420px; object-fit: contain; flex-shrink: 0; }
.site-name { font-size: 30px; font-weight: 900; text-align: center; }
.site-tagline { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: center; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.main-nav { background: #fff; border-bottom: 2px solid var(--ink); }
.main-nav .wrap { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; }
.main-nav a { display: inline-block; color: var(--ink); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 15px 16px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.main-nav a.home { color: var(--accent); border-bottom-color: var(--accent); }
.main-nav a:hover:not(.home) { color: var(--accent); }

.browse-strip { background: var(--sidebar-bg); border-bottom: 1px solid var(--line); }
.browse-strip .wrap { display: flex; gap: 10px; overflow-x: auto; padding: 12px 24px; }
.browse-strip a { flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.browse-strip a:hover { border-color: var(--accent); color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 34px 24px 20px; max-width: 1180px; margin: 0 auto; align-items: start; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* --- Section headings --- */
.section-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.section-heading h2 { font-size: 19px; font-weight: 900; position: relative; padding-left: 14px; }
.section-heading h2::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; background: var(--accent); border-radius: 2px; }
.section-heading::after { content: ""; flex: 1; border-bottom: 1px solid var(--line); }
.section-heading .see-all { font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
section.cat-section { margin-bottom: 44px; }

/* --- Category pill (on-image badge) --- */
.cat-pill { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px; }
.featured-ribbon { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 11px; border-radius: 999px; }
.meta { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* --- Hero: one big story + stacked secondary stories --- */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 46px; }
.hero-main { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,20,20,.04); }
.hero-main .placeholder-img, .hero-main > img { height: 320px; }
.hero-main-body { padding: 22px 24px 26px; }
.hero-main h1 { font-size: 27px; line-height: 1.22; margin: 12px 0 10px; }
.hero-main p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; font-weight: 400; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.hero-side-item .placeholder-img, .hero-side-item > img { width: 96px; height: 78px; border-radius: 9px; flex-shrink: 0; font-size: 9px; }
.hero-side-item .side-body { min-width: 0; }
.hero-side-item .cat-pill { margin-bottom: 6px; }
.hero-side-item h3 { font-size: 14.5px; line-height: 1.3; }

/* --- Standard post card (grid) --- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,20,20,.04); }
.post-card .placeholder-img, .post-card > img { aspect-ratio: 16 / 9; height: auto; }
.post-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat-pill { align-self: flex-start; }
.post-card h3 { font-size: 15.5px; line-height: 1.32; }
.post-card p { font-size: 13px; color: var(--muted); margin: 0; font-weight: 400; }
.post-card .meta { margin-top: auto; padding-top: 4px; }

/* --- Section layout variants --- */
.split-section { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; background: var(--sidebar-bg); border-radius: 16px; padding: 24px; }
.split-feature { display: block; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.split-feature .placeholder-img, .split-feature > img { height: 200px; font-size: 10px; }
.split-feature-body { padding: 16px 18px 18px; }
.split-feature h3 { font-size: 19px; line-height: 1.28; margin: 8px 0 6px; }
.split-list { list-style: none; margin: 0; padding: 0; counter-reset: split; }
.split-list li { counter-increment: split; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.split-list li:last-child { border-bottom: none; }
.split-list li::before { content: counter(split); font-size: 19px; font-weight: 900; color: var(--accent); width: 24px; flex-shrink: 0; }
.split-list .s-title { font-size: 13.5px; font-weight: 700; line-height: 1.32; }

.row-list { display: flex; flex-direction: column; gap: 0; }
.row-item { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: none; }
.row-item .placeholder-img, .row-item > a > img { width: 92px; height: 68px; border-radius: 10px; flex-shrink: 0; font-size: 8px; }
.row-item h3 { font-size: 14.5px; line-height: 1.3; margin-bottom: 4px; }

/* --- CTA banner --- */
.cta-banner { background: var(--ink); color: #fff; border-radius: 16px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 46px; flex-wrap: wrap; }
.cta-banner h2 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.cta-banner p { margin: 0; font-size: 13.5px; color: #b9b9c0; font-weight: 400; }
.cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-form input { padding: 12px 14px; border: none; border-radius: 999px; font-size: 14px; width: 220px; font-family: inherit; }
.cta-form button { padding: 12px 22px; border: none; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }

/* --- Sidebar --- */
.widget { background: var(--sidebar-bg); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: 16px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 10px; }
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending-list li { counter-increment: trend; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before { content: counter(trend); font-size: 19px; font-weight: 900; color: var(--accent); flex-shrink: 0; width: 22px; }
.trending-list .t-title { font-size: 13.5px; font-weight: 700; line-height: 1.32; }
.trending-list .t-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.newsletter-widget input { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.newsletter-widget button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; }
.tag-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.social-row { display: flex; gap: 10px; }
.social-row a { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: center; padding: 12px 6px; font-size: 12px; font-weight: 800; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.ad-widget { border: 1px dashed #cfcdc5; background: transparent; border-radius: 14px; text-align: center; color: #a9a7a0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 60px 10px; }

.category-title { font-size: 30px; margin: 0 0 8px; }
.category-desc { font-size: 14px; color: var(--muted); margin: 0 0 26px; font-weight: 400; }
.pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.pagination a { color: var(--accent); }

/* --- Single post --- */
.single-post { max-width: 760px; }
.single-post-header h1 { font-size: 34px; line-height: 1.22; margin: 10px 0 14px; }
.single-post-headline { width: 100%; max-height: 460px; object-fit: cover; margin: 20px 0 30px; border-radius: 16px; }
.single-post-content { font-size: 18px; font-weight: 400; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 24px; margin: 34px 0 16px; }
.single-post-content h3 { font-size: 20px; margin: 26px 0 12px; }
.single-post-content img { margin: 24px 0; width: 100%; border-radius: 12px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-header .cat-pill { display: inline-block; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { background: var(--sidebar-bg); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.tag-pill-link:hover { background: var(--accent); color: #fff; }

.related-posts { max-width: 760px; margin: 60px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.related-posts h2 { font-size: 19px; margin-bottom: 20px; }

.search-form { display: flex; gap: 10px; margin: 0 0 22px; }
.search-form input { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.search-form button { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 0 22px; font-weight: 700; cursor: pointer; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 28px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; }

/* --- Footer --- */
.site-footer { background: var(--badge); color: #b7b7bd; padding: 48px 24px 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid #2a2a31; }
.footer-grid h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.footer-grid p { font-size: 13px; color: #93939a; line-height: 1.6; font-weight: 400; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-grid li a:hover { color: var(--accent); }
.footer-newsletter input { width: 100%; padding: 10px 14px; border: 1px solid #33333b; border-radius: 8px; background: #1e1e24; color: #fff; font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.footer-newsletter button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.footer-bottom { padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #6b6b72; }
.footer-social { display: flex; gap: 8px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
