/* =========================================================
   Poros Indonesia - tema portal berita bergaya detiknews
   ========================================================= */
:root {
  --red: #e31e24;
  --red-dark: #bd151a;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --bg: #f1f2f4;
  --card: #ffffff;
  --soft: #f7f7f8;
  --green: #25d366;
  --shadow: 0 2px 10px rgba(0, 0, 0, .06);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* progress bar */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--red); z-index: 9999; transition: width .1s linear;
}

/* top bar */
.topbar { background: #111; color: #d8d8d8; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.topbar a:hover { color: #fff; }
.channel-links { display: flex; gap: 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.channel-links::-webkit-scrollbar { display: none; }
.channel-links a { color: #cfcfcf; }
.channel-links a.active { color: #fff; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-right .date-text { color: #aaa; }
.icon-btn {
  background: none; border: 0; color: #ddd; cursor: pointer; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: #fff; }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.topbar-wa { color: var(--green) !important; font-weight: 700; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 54px; width: auto; object-fit: contain; border-radius: 5px; }
.brand-lockup { display: flex; flex-direction: column; gap: 5px; border-left: 1px solid #dcdcdc; padding-left: 12px; }
.brand-name {
  font-size: 18px; font-weight: 900; line-height: 1; letter-spacing: .005em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--red); }
.brand-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 12px; flex: 1; overflow-x: auto; scrollbar-width: none; height: 78px; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap;
  padding: 27px 0 24px; border-bottom: 3px solid transparent; color: #333;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); border-bottom-color: var(--red); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ticker */
.ticker { background: var(--card); border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; height: 42px; gap: 14px; }
.ticker-label {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; padding: 5px 10px; display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.75); } }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content { display: inline-flex; gap: 40px; white-space: nowrap; animation: marquee 50s linear infinite; }
.ticker:hover .ticker-content { animation-play-state: paused; }
.ticker-content a { font-size: 13px; color: #333; }
.ticker-content a:hover { color: var(--red); }
.ticker-content a::before { content: "\25CF"; color: var(--red); font-size: 8px; margin-right: 9px; vertical-align: 2px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* search */
.search-panel { display: none; background: var(--card); border-bottom: 1px solid var(--line); padding: 18px 0 22px; }
.search-panel.open { display: block; }
.search-form { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; }
.search-form svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 15px; min-width: 0; }
.search-form button { background: var(--red); color: #fff; border: 0; border-radius: 3px; padding: 8px 18px; cursor: pointer; font-weight: 700; }
.search-close { background: var(--soft) !important; color: var(--ink) !important; font-size: 20px !important; padding: 6px 12px !important; }
.search-results { margin-top: 14px; display: grid; gap: 8px; }
.search-result {
  display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 4px;
}
.search-result:hover { border-color: var(--red); }
.search-result img { width: 72px; height: 50px; object-fit: cover; border-radius: 3px; }
.search-result strong { font-size: 14px; display: block; }
.search-result span { font-size: 11px; color: var(--muted); }

/* shared section */
.section { padding: 26px 0 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-kicker { display: block; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-size: 23px; line-height: 1.2; margin: 2px 0 0; font-weight: 800; }
.section-title span { color: var(--red); }
.section-more { color: var(--red); font-size: 12px; font-weight: 700; }
.filter-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-tabs button {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 6px 13px; font-size: 12px; cursor: pointer; color: #444;
}
.filter-tabs button:hover { border-color: var(--red); color: var(--red); }
.filter-tabs button.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

/* hero */
.hero { padding-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.hero-feature {
  position: relative; min-height: 340px; border-radius: 5px; overflow: hidden;
  background: #222; box-shadow: var(--shadow);
}
.hero-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 48%, rgba(0,0,0,0) 80%);
}
.hero-feature-body { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.hero-label { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 4px 9px; display: inline-block; margin-bottom: 10px; }
.hero-feature h2 { font-size: 29px; line-height: 1.25; margin: 0 0 10px; font-weight: 800; }
.hero-feature h2 a:hover { text-decoration: underline; }
.hero-meta { font-size: 12px; color: #d5d5d5; }
.hero-side { background: var(--card); border-top: 3px solid var(--red); padding: 16px 18px; box-shadow: var(--shadow); }
.hero-side h3 { font-size: 15px; margin: 0 0 12px; text-transform: uppercase; }
.hero-side-list { display: grid; gap: 12px; }
.hero-side-item { display: grid; grid-template-columns: 82px 1fr; gap: 11px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.hero-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-side-item img { width: 82px; height: 60px; object-fit: cover; border-radius: 3px; }
.cat-label { color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hero-side-item a { font-size: 14px; font-weight: 700; line-height: 1.35; display: block; }
.hero-side-item a:hover { color: var(--red); }
.time { color: var(--muted); font-size: 11px; }

/* akumulasi baca */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.meta-row .time { margin: 0; }
.read-count { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--red); background: #fdeaea; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.read-count svg { width: 13px; height: 13px; flex: 0 0 auto; }
.article-meta .read-count { padding: 2px 9px; font-size: 12px; }
body.dark .read-count { background: #3a1d1f; color: #ff8b8f; }

/* content layout */
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.main-column { min-width: 0; }

/* article grid */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.article-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #ddd; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card h3 { font-size: 15px; line-height: 1.4; margin: 0; font-weight: 700; }
.article-card h3 a:hover { color: var(--red); }
.article-card p { font-size: 12px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.load-more-wrap { text-align: center; padding: 22px 0 4px; }
.load-more { background: var(--card); border: 1px solid var(--red); color: var(--red); border-radius: 3px; padding: 10px 26px; font-weight: 700; cursor: pointer; }
.load-more:hover { background: var(--red); color: #fff; }
.load-more[hidden] { display: none; }

/* news feed */
.feed-section { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 18px; }
.feed-list { display: grid; }
.feed-item { display: grid; grid-template-columns: 178px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item img { width: 178px; height: 118px; object-fit: cover; border-radius: 3px; }
.feed-item h3 { font-size: 17px; line-height: 1.35; margin: 4px 0 6px; font-weight: 700; }
.feed-item h3 a:hover { color: var(--red); }
.feed-item p { font-size: 13px; color: var(--muted); margin: 0 0 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* sidebar */
.sidebar { display: grid; gap: 16px; position: sticky; top: 14px; }
.widget { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 16px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.widget-head h3 { font-size: 16px; margin: 0; text-transform: uppercase; }
.widget-head a { color: var(--red); font-size: 11px; font-weight: 700; }
.popular-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: pop; }
.popular-list li { display: flex; gap: 11px; align-items: flex-start; padding-bottom: 11px; border-bottom: 1px dashed var(--line); }
.popular-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-list li::before {
  counter-increment: pop; content: counter(pop); color: var(--red);
  font-size: 21px; font-weight: 900; line-height: 1; min-width: 24px;
}
.popular-list a { font-size: 13px; font-weight: 600; line-height: 1.4; }
.popular-list a:hover { color: var(--red); }
.popular-list .time { display: block; margin-top: 3px; }

.wa-widget { border-top-color: var(--green); background: #f2fbf5; }
.wa-widget h3 { margin: 10px 0 6px; font-size: 16px; }
.wa-widget p { font-size: 13px; color: #45614d; margin: 0 0 13px; }
.wa-widget-icon svg { width: 28px; height: 28px; fill: var(--green); }
.wa-cta { display: block; background: var(--green); color: #fff !important; text-align: center; font-weight: 800; padding: 10px; border-radius: 4px; font-size: 14px; }
.wa-cta:hover { background: #1eb457; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 5px 9px; font-size: 12px; color: #444; }
.tag-cloud a:hover { border-color: var(--red); color: var(--red); }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; padding: 5px 6px; line-height: 1.25; max-height: 100%; overflow: hidden; }

/* article page */
.crumb { font-size: 12px; color: var(--muted); padding: 18px 0 4px; }
.crumb a:hover { color: var(--red); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; padding-bottom: 30px; }
.article-main { background: var(--card); border: 1px solid var(--line); padding: 24px; }
.article-main h1 { font-size: 30px; line-height: 1.3; margin: 8px 0 12px; font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.article-meta strong { color: var(--ink); }

/* bagikan artikel */
.share-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  padding: 11px 13px; margin: 0 0 20px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 6px;
}
.share-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-right: 2px; white-space: nowrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; padding: 7px 10px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--card); color: #333;
  cursor: pointer; transition: transform .12s ease, opacity .12s ease; text-decoration: none;
}
.share-btn svg { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
.share-btn:hover { transform: translateY(-1px); opacity: .92; }
.share-wa { background: #25d366; border-color: #25d366; color: #fff; }
.share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-x { background: #111; border-color: #111; color: #fff; }
.share-tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.share-copy.done { background: #e7f8ef; border-color: #25a55a; color: #128a45; }
.share-block {
  margin: 26px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); text-align: center;
}
.share-block h3 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .04em; }
.share-block .share-bar { justify-content: center; margin: 0; padding: 0; border: 0; background: none; }
body.dark .share-btn { background: #2a2a2a; border-color: #3a3a3a; color: #eee; }
body.dark .share-wa, body.dark .share-fb, body.dark .share-x, body.dark .share-tg { color: #fff; }
body.dark .share-wa { background: #1ea952; border-color: #1ea952; }
body.dark .share-fb { background: #1466cf; border-color: #1466cf; }
body.dark .share-x { background: #000; border-color: #000; }
body.dark .share-tg { background: #1b87bb; border-color: #1b87bb; }
body.dark .share-block { background: #1e1e1e; }
body.dark .share-copy.done { background: #17351f; border-color: #25a55a; color: #7ee2a3; }
body.dark .brand-lockup { border-left-color: #3a3a3a; }
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; }
.caption { font-size: 11px; color: var(--muted); margin: 7px 0 20px; }
.article-lead { font-size: 17px; font-weight: 600; line-height: 1.7; border-left: 3px solid var(--red); padding-left: 14px; margin: 0 0 20px; }
.article-body p { font-size: 15px; line-height: 1.8; margin: 0 0 16px; color: #333; }
.source-box { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--red); padding: 15px 17px; margin: 22px 0; }
.source-box strong { display: block; font-size: 13px; margin-bottom: 8px; }
.source-btn { display: inline-block; background: var(--red); color: #fff !important; padding: 9px 16px; border-radius: 3px; font-size: 13px; font-weight: 700; }
.source-btn:hover { background: var(--red-dark); }
.related { margin-top: 26px; border-top: 3px solid var(--ink); padding-top: 14px; }
.related h3 { font-size: 17px; margin: 0 0 12px; }
.related-list { display: grid; gap: 10px; }
.related-list a { font-size: 14px; font-weight: 600; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.related-list a:hover { color: var(--red); }

/* category page */
.category-head { background: var(--card); border-top: 3px solid var(--red); padding: 22px; margin: 20px 0 16px; }
.category-head h1 { font-size: 27px; margin: 3px 0 4px; }
.category-head p { color: var(--muted); font-size: 13px; margin: 0; }
.empty-state { background: var(--card); border: 1px solid var(--line); padding: 40px; text-align: center; color: var(--muted); }

/* admin */
.admin-wrap { padding: 24px 0 40px; display: grid; gap: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 16px; }
.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card strong { display: block; font-size: 26px; line-height: 1.2; }
.admin-panel { background: var(--card); border: 1px solid var(--line); padding: 20px; }
.admin-panel h2 { font-size: 17px; margin: 0 0 14px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.admin-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.admin-form label.full { grid-column: 1 / -1; }
.admin-form input, .admin-form select, .admin-form textarea { border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px; width: 100%; background: #fff; color: var(--ink); }
.admin-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.btn { border: 0; border-radius: 3px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.admin-note { font-size: 12px; color: var(--muted); background: #fff8e6; border: 1px solid #f0dfae; padding: 10px 12px; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin-table th, table.admin-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
table.admin-table th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* footer */
.footer { background: #111; color: #bbb; margin-top: 34px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 28px; padding: 36px 0 28px; }
.footer-logo { height: 52px; width: auto; object-fit: contain; background: #fff; padding: 6px 9px; border-radius: 3px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.socials { display: flex; gap: 9px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; background: #292929; display: grid; place-items: center; }
.socials a:hover { background: var(--green); }
.socials svg { width: 16px; height: 16px; fill: #fff; }
.footer-col h4 { color: #fff; font-size: 13px; margin: 0 0 12px; text-transform: uppercase; }
.footer-col a, .footer-col p { display: block; font-size: 12px; margin: 0 0 8px; line-height: 1.6; }
.footer-col a:hover { color: #fff; }
.footer-wa { color: var(--green) !important; font-weight: 700; }
.footer-bottom { border-top: 1px solid #2b2b2b; padding: 14px 0 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; flex-wrap: wrap; }

/* floating WA */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; box-shadow: 0 5px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.06); }
.wa-tooltip {
  position: absolute; right: 64px; white-space: nowrap; background: #111; color: #fff;
  font-size: 12px; padding: 6px 10px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* 404 */
.notfound { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.notfound strong { font-size: 82px; line-height: 1; color: var(--red); }
.notfound h1 { font-size: 25px; margin: 8px 0; }
.notfound p { color: var(--muted); margin-bottom: 20px; }
.notfound a { display: inline-block; background: var(--red); color: #fff; padding: 10px 20px; border-radius: 3px; font-weight: 700; }

/* dark mode (opsional, default tetap terang) */
body.dark { --ink: #f2f2f2; --muted: #a8a8a8; --line: #333; --bg: #141414; --card: #1e1e1e; --soft: #262626; color: #f2f2f2; }
body.dark .main-nav a, body.dark .ticker-content a, body.dark .feed-item p, body.dark .article-body p { color: #e2e2e2; }
body.dark .search-form input, body.dark .admin-form input, body.dark .admin-form select, body.dark .admin-form textarea { background: #252525; color: #f2f2f2; }
body.dark .wa-widget { background: #17251b; }
body.dark .wa-widget p { color: #b7d4bf; }
body.dark .filter-tabs button, body.dark .tag-cloud a { background: #262626; color: #ddd; }
body.dark .article-main, body.dark .footer { color: #eaeaea; }

/* responsive */
@media (max-width: 1000px) {
  .content-layout, .article-wrap { grid-template-columns: minmax(0, 1fr) 280px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .header-inner { min-height: 66px; }
  .brand img { height: 40px; }
  .brand { gap: 9px; }
  .brand-lockup { padding-left: 9px; gap: 4px; }
  .brand-name { font-size: 15px; }
  .brand-tag { font-size: 7.5px; letter-spacing: .1em; }
  .menu-btn { display: block; margin-left: auto; padding: 10px; border-radius: 5px; }
  .menu-btn:active { background: var(--soft); }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-btn span { transition: transform .18s ease, opacity .18s ease; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto;
    background: var(--card); z-index: 70; box-shadow: 0 12px 22px rgba(0,0,0,.16);
    padding: 6px 16px 14px; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a:hover, .main-nav a.active { border-bottom-color: var(--line); color: var(--red); }
  .hero-grid, .content-layout, .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .hero-feature { min-height: 290px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .brand-tag { display: none; }
  .brand-name { font-size: 14px; }
  .brand img { height: 36px; }
  .share-bar { gap: 6px; padding: 10px 11px; }
  .share-btn { font-size: 11px; padding: 6px 9px; }
  .share-btn svg { width: 14px; height: 14px; }
  .share-block { padding: 14px 10px; }
  .topbar-right .date-text, .topbar-slogan { display: none; }
  .article-grid, .sidebar, .gallery-grid, .footer-inner, .admin-form { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 108px 1fr; gap: 11px; }
  .feed-item img { width: 108px; height: 82px; }
  .feed-item h3 { font-size: 15px; }
  .hero-feature h2 { font-size: 22px; }
  .article-main { padding: 16px; }
  .article-main h1 { font-size: 23px; }
  .article-lead { font-size: 15px; }
  .ticker-content { gap: 24px; }
  .wa-float { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}
