/*
Theme Name: Petster
Theme URI: https://www.petster.si/
Author: Ivan Turković
Description: Magazine theme for Petster.si — spletni portal za ljubitelje živali. Latest-headline strip, trending bar, featured story with latest/popular tabs, category blocks, newsletter and free-guide signups, video band and article archive.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petster
*/

/* ---------- Tokens ---------- */
:root {
  --accent: #B8461F;
  --accent-dark: #8A3416;
  --accent-soft: #F6E3DC;
  --accent-tint: #FBF4F1;
  --ink: #1B1B1B;
  --ink-2: #444444;
  --muted: #555555;
  --line: #E5E5E5;
  --line-2: #EEEEEE;
  --bg: #F0F1F2;
  --surface: #FFFFFF;
  --dark: #1B1B1B;
  --dark-2: #1A202C;
  --stories: #6D28D9;
  --font-head: 'Jost', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --font-read: 'Source Serif 4', Georgia, serif;
  --wrap: 1200px;
  --gutter: 20px;
  --radius: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.25; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--surface); color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Top strip ---------- */
.topstrip { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.topstrip .wrap { display: flex; flex-wrap: wrap; align-items: stretch; padding: 0; }
.topstrip__date { padding: 9px 16px 9px var(--gutter); color: var(--muted); }
.topstrip__label { padding: 9px 14px; background: var(--accent); color: #fff; font-weight: 500; }
.topstrip__latest { flex: 1 1 300px; padding: 9px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topstrip__menu { display: flex; gap: 18px; padding: 9px var(--gutter) 9px 14px; margin: 0; list-style: none; }
.topstrip__menu a { font-weight: 500; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); }
.site-header__bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 56px; height: 56px; flex: 0 0 auto; color: var(--accent); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-head); font-size: 42px; line-height: 1; font-weight: 700; letter-spacing: -0.5px; }
.brand__suffix { color: var(--accent); }
.brand__tagline { margin-top: 4px; font-size: 14px; color: var(--muted); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 15px var(--font-head); text-align: center; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle { display: none; }

.main-nav { border-top: 1px solid var(--line); border-bottom: 3px solid var(--accent); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > .wrap > ul { display: flex; flex-wrap: wrap; font-family: var(--font-head); font-size: 15px; font-weight: 500; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 13px 14px; }
.main-nav > .wrap > ul > li:first-child > a { padding-left: 0; }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-post-ancestor > a { color: var(--accent); }
.main-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,0.12); z-index: 20; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 10px 16px; }

.searchbar { display: none; background: var(--surface); border-top: 1px solid var(--line); }
.searchbar.is-open { display: block; }
.searchbar .wrap { padding-top: 14px; padding-bottom: 14px; }

/* ---------- Forms ---------- */
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #CCCCCC; border-radius: 10px; background: #fff; }
.search-form button { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 500 14px var(--font-head); }

/* ---------- Trending ---------- */
.trending { padding-top: 16px; }
.trending__inner { display: flex; align-items: stretch; background: var(--surface); font-size: 14px; overflow: hidden; }
.trending__label { flex: 0 0 auto; display: flex; align-items: center; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 500; position: relative; z-index: 1; }
.trending__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.trending__track { display: flex; width: max-content; animation: petster-ticker var(--ticker-duration, 40s) linear infinite; }
.trending__items { display: flex; flex: 0 0 auto; margin: 0; padding: 10px 0; list-style: none; white-space: nowrap; }
.trending__items li { display: flex; align-items: center; }
.trending__items li::after { content: '•'; padding: 0 18px; color: var(--accent); }
.trending__items a { white-space: nowrap; }
.trending__inner:hover .trending__track, .trending__inner:focus-within .trending__track { animation-play-state: paused; }
@keyframes petster-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trending__track { animation: none; }
  .trending__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .trending__items[aria-hidden] { display: none; }
}

/* ---------- Layout ---------- */
.site-main { padding-top: 16px; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cols__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.cols__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 22px; }
.panel { background: var(--surface); padding: 22px; }
.section { margin-top: 32px; }

/* ---------- Pills & meta ---------- */
.pill { display: inline-block; padding: 4px 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4; }
.pill:hover { color: #fff; }
.meta { font-size: 13px; color: var(--muted); }
.more-link { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__lead { flex: 2 1 560px; position: relative; min-height: 430px; display: block; overflow: hidden; background: var(--dark); }
.hero__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%); }
.hero__caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; }
.hero__title { margin: 10px 0 6px; font-size: 32px; line-height: 1.2; font-weight: 600; color: #fff; }
.hero__lead:hover .hero__title { text-decoration: underline; text-decoration-thickness: 2px; }
.hero__date { font-size: 13px; color: #EEEEEE; }

.tabs { flex: 1 1 320px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; }
.tabs__list { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs__tab { flex: 1; min-height: 44px; border: 0; background: var(--bg); color: var(--ink); font: 500 14px var(--font-head); }
.tabs__tab[aria-selected=true] { background: var(--accent); color: #fff; }
.tabs__panel[hidden] { display: none; }
.tabs__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Lists & cards ---------- */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini { display: flex; gap: 12px; align-items: flex-start; }
.mini__img { flex: 0 0 86px; width: 86px; height: 64px; object-fit: cover; background: var(--bg); }
.mini__img--lg { flex-basis: 120px; width: 120px; height: 84px; }
.mini__body { display: flex; flex-direction: column; gap: 4px; }
.mini__title { font-family: var(--font-head); font-size: 15px; line-height: 1.35; font-weight: 500; }
.mini__date { font-size: 12px; color: var(--muted); }

.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 18px; border-bottom: 2px solid var(--block-color, var(--accent)); }
.block-head h2 { font-size: 18px; font-weight: 600; }
.block-head h2 span, .block-head h2 a { display: inline-block; padding: 6px 12px; background: var(--block-color, var(--accent)); color: #fff; }
.block-head .more-link { padding-bottom: 6px; color: var(--block-color, var(--accent)); }
.block-body { display: flex; flex-wrap: wrap; gap: 24px; }
.lead { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.lead img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg); }
.lead__title { font-size: 20px; line-height: 1.35; font-weight: 600; }
.lead__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.block-body .mini-list { flex: 1 1 260px; }

.grid { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.card__title { font-family: var(--font-head); font-size: 18px; line-height: 1.35; font-weight: 500; }

/* ---------- Sidebar ---------- */
.widget { background: var(--surface); padding: 18px; }
.widget-title, .widget h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.widget ul { margin: 0; padding: 0 0 0 18px; }
.ad-slot { text-align: center; }
.ad-slot .widget { padding: 0; background: transparent; }
.ad-sticky { position: sticky; top: 16px; }
.social-cards { display: flex; flex-direction: column; gap: 10px; }
.social-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.social-card__icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.social-card__icon--fb { background: #E7F0FD; color: #1877F2; }
.social-card__icon--ig { background: #FCE8F1; color: #C13584; }
.social-card__text { flex: 1; display: flex; flex-direction: column; }
.social-card__name { font-weight: 500; }
.social-card__handle { font-size: 13px; color: var(--muted); }
.social-card__cta { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rank-list a { display: flex; gap: 12px; align-items: flex-start; }
.rank-list__n { flex: 0 0 28px; font-family: var(--font-head); font-size: 26px; line-height: 1; font-weight: 700; color: var(--accent); }

/* ---------- Guide / newsletter ---------- */
.guide { margin-top: 40px; padding: 40px 44px; border-radius: var(--radius); background: var(--dark); color: #fff; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.guide__cover { flex: 0 0 auto; width: 120px; height: 150px; border-radius: 8px; background: var(--accent); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; box-shadow: 8px 8px 0 rgba(255,255,255,0.12); }
.guide__cover svg { width: 34px; height: 34px; color: #fff; }
.guide__cover span { font-family: var(--font-head); font-size: 14px; line-height: 1.2; font-weight: 700; }
.guide__text { flex: 1 1 340px; }
.guide__badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); font-size: 12px; font-weight: 500; }
.guide__title { margin-top: 10px; font-size: 28px; font-weight: 700; color: #fff; }
.guide__lede { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: #CCCCCC; }
.guide .signup { flex: 1 1 340px; }

.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type=email] { flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid #CCCCCC; border-radius: 999px; background: #fff; color: var(--ink); }
.signup .btn { height: 48px; }
.signup__consent { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.signup__consent input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }
.signup__consent a { text-decoration: underline; color: inherit; }
.guide .signup__consent { color: #CCCCCC; }
.signup--stacked { flex-direction: column; }
.signup--stacked input[type=email] { flex: 0 0 auto; border-radius: 12px; }
.signup--stacked .btn { border-radius: 12px; width: 100%; }

.inline-guide { margin: 30px 0; padding: 22px 24px; border: 2px solid var(--accent); border-radius: 16px; background: var(--accent-tint); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-family: var(--font-body); }
.inline-guide__cover { flex: 0 0 auto; width: 70px; height: 88px; border-radius: 6px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; }
.inline-guide__cover svg { width: 36px; height: 36px; }
.inline-guide__text { flex: 1 1 260px; }
.inline-guide__title { margin: 0; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; }
.inline-guide__lede { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.inline-guide .signup { flex: 1 1 100%; }

/* ---------- Video band ---------- */
.video-band { margin-top: 28px; padding: 36px; border-radius: var(--radius); background: var(--dark-2); }
.video-band__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.video-band__head h2 { font-size: 26px; font-weight: 700; color: #fff; }
.video-band__head a { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: #fff; }
.video-card { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.video-card:hover { color: #fff; }
.video-card__media { position: relative; }
.video-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.play { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.video-card__title { font-family: var(--font-head); font-size: 18px; line-height: 1.3; font-weight: 600; }

/* ---------- Archive section ---------- */
.archive-box { margin-top: 28px; background: var(--surface); padding: 32px; }
.archive-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.archive-box__head h2 { font-size: 26px; font-weight: 700; }
.archive-box__head p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.archive-box__head .search-form { flex: 0 1 380px; }
.years { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.years a { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.years a:hover { border-color: var(--accent); }
.older { display: flex; flex-wrap: wrap; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.older li { flex: 1 1 340px; min-width: 0; border-top: 1px solid var(--line-2); }
.older a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; }
.older__meta { font-size: 12px; color: var(--muted); }
.older__meta b { color: var(--accent); font-weight: 500; }
.older__title { font-family: var(--font-head); font-size: 17px; line-height: 1.35; font-weight: 500; }
.archive-box__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- Single ---------- */
.entry { background: var(--surface); padding: 40px 48px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.entry__title { margin: 14px 0; font-size: 42px; line-height: 1.15; font-weight: 700; letter-spacing: -0.5px; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 40px; height: 40px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.share__fb { background: #E7F0FD; color: #1877F2; }
.share__wa { background: #E3F7EA; color: #128C4B; }
.share__copy { background: var(--bg); color: var(--ink); }
.share__copy.is-done { background: var(--accent); color: #fff; }
.entry__thumb img { width: 100%; height: auto; }
.entry__thumb figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.entry-content { font-family: var(--font-read); font-size: 19px; line-height: 1.75; color: #222222; margin-top: 28px; overflow-wrap: anywhere; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content figure, .entry-content blockquote, .entry-content .wp-block-embed { margin: 0 0 20px; }
.entry-content h2 { margin: 34px 0 12px; font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.entry-content h3, .entry-content h4 { margin: 28px 0 10px; font-size: 21px; font-weight: 600; color: var(--ink); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img, .entry-content iframe, .entry-content video { max-width: 100%; height: auto; }
.entry-content iframe { aspect-ratio: 16 / 9; width: 100%; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: 6px; }
.entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--accent); font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.in-article-ad { margin: 30px auto; max-width: 336px; font-family: var(--font-body); }
.in-article-ad__label { margin: 0 0 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags a { padding: 7px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; }
.next-card { display: flex; flex-wrap: wrap; background: var(--surface); align-items: stretch; }
.next-card img { flex: 0 1 300px; width: 300px; max-width: 100%; min-height: 180px; object-fit: cover; }
.next-card__body { flex: 1 1 280px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.next-card__label { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.next-card__title { font-family: var(--font-head); font-size: 24px; line-height: 1.25; font-weight: 600; }

/* ---------- Archive pages ---------- */
.page-head { background: var(--surface); padding: 28px 32px; }
.page-head h1 { font-size: 34px; font-weight: 700; }
.page-head p, .page-head .archive-description { margin: 6px 0 0; color: var(--muted); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; background: var(--surface); font-weight: 500; }
.nav-links .page-numbers.current { background: var(--accent); color: #fff; }

/* ---------- Comments ---------- */
.comments { background: var(--surface); padding: 28px 32px; }
.comments h2 { font-size: 22px; margin-bottom: 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 14px 0; border-top: 1px solid var(--line-2); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-respond textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid #CCCCCC; border-radius: 10px; }
.comment-respond .submit { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 15px var(--font-head); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: var(--dark); color: #CCCCCC; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.site-footer a { color: #CCCCCC; }
.site-footer a:hover { color: #fff; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }

/* ---------- Popups ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.55); }
.modal.is-open { display: flex; }
.modal__box { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--radius); }
.modal__img { width: 100%; height: 170px; object-fit: cover; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.modal__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.modal__badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 600; }
.modal__title { font-size: 26px; font-weight: 700; }
.modal__lede { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.modal__note { margin: 0; font-size: 12px; color: var(--muted); }
body.has-modal { overflow: hidden; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); }
.sticky, .bypostauthor { }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav > .wrap > ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .main-nav.is-open > .wrap > ul { display: flex; }
  .main-nav a, .main-nav > .wrap > ul > li:first-child > a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .main-nav .sub-menu { display: block; position: static; box-shadow: none; padding-left: 16px; }
  .site-header__bar { flex-wrap: nowrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .brand { min-width: 0; gap: 8px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 26px; white-space: nowrap; }
  .brand__tagline { display: none; }
  .header-actions { flex: 0 0 auto; gap: 6px; }
  .header-actions .btn__label { display: none; }
  .header-actions .btn, .header-actions .icon-btn { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 10px; }
  .topstrip__menu { display: none; }
  .topstrip__latest { flex: 1 1 0; min-width: 0; }
  .trending { padding-top: 10px; }
  .hero__lead { min-height: 320px; }
  .hero__title { font-size: 24px; }
  .entry { padding: 24px 18px; }
  .entry__title { font-size: 30px; }
  .entry-content { font-size: 18px; }
  .guide, .video-band, .archive-box { padding: 24px 20px; }
  .guide__title { font-size: 24px; }
  .topstrip__date { display: none; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 22px; }
  .brand__mark { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
