/*
Theme Name: JejakPerintis
Theme URI: https://jejakperintis.id
Author: JejakPerintis Team
Author URI: https://jejakperintis.id
Description: Ultra-lightweight professional news/magazine theme optimized for Core Web Vitals, Google News, and extreme performance. SEO-first with built-in NewsArticle schema. Manadozone-inspired layout.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jejakperintis
Tags: news, magazine, blog, two-columns, right-sidebar, custom-colors, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, rtl-language-support
*/

:root {
  --jp-primary: #c62828;
  --jp-secondary: #b71c1c;
  --jp-accent: #e53935;
  --jp-bg: #ffffff;
  --jp-bg-alt: #f5f5f5;
  --jp-text: #1a1a1a;
  --jp-text-muted: #666;
  --jp-border: #e5e5e5;
  --jp-nav-bg: #111;
  --jp-nav-text: #fff;
  --jp-radius: 3px;
  --jp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jp-lh: 1.65;
  --jp-max: 1140px;
  --jp-content: 720px;
}

[data-theme="dark"] {
  --jp-bg: #121212;
  --jp-bg-alt: #1e1e1e;
  --jp-text: #e8e8e8;
  --jp-text-muted: #aaa;
  --jp-border: #333;
  --jp-nav-bg: #000;
  --jp-primary: #ef5350;
  --jp-secondary: #e57373;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--jp-font);
  font-size: 16.5px;
  line-height: var(--jp-lh);
  color: var(--jp-text);
  background: var(--jp-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: var(--jp-text);
}
p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--jp-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ===== HEADER (Manadozone style) ===== */
.site-header {
  background: var(--jp-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.header-inner {
  max-width: var(--jp-max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Top bar */
.top-bar {
  background: var(--jp-bg-alt);
  border-bottom: 1px solid var(--jp-border);
  font-size: 0.8rem;
  color: var(--jp-text-muted);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.15rem;
  gap: 1rem;
}
.top-search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--jp-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--jp-bg);
}
.top-search input {
  border: none;
  padding: 0.3rem 0.75rem;
  font-size: 0.85rem;
  width: 160px;
  background: transparent;
  color: var(--jp-text);
  outline: none;
}
.top-search button {
  background: none;
  border: none;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  color: var(--jp-text-muted);
  display: flex;
}

/* Logo bar */
.logo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  gap: 1rem;
}
.site-branding { text-align: center; flex: 1; }
.site-logo-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo-main {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--jp-primary);
  line-height: 1.1;
  text-transform: uppercase;
}
.logo-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jp-text);
  margin-top: 0.1rem;
}
.custom-logo-link img { max-height: 56px; width: auto; margin: 0 auto; }
.header-actions { display: flex; gap: 0.35rem; }
.btn-icon {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--jp-text);
  border-radius: 50%;
  padding: 0;
}
.btn-icon:hover { background: var(--jp-bg-alt); }
.menu-toggle { display: none; }

/* Primary nav - dark bar */
.primary-nav {
  background: var(--jp-nav-bg);
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.primary-nav a {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--jp-nav-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: rgba(255,255,255,.08);
  border-bottom-color: var(--jp-primary);
  text-decoration: none;
}

/* Secondary nav */
.secondary-nav {
  background: var(--jp-bg-alt);
  border-bottom: 1px solid var(--jp-border);
  font-size: 0.8rem;
}
.secondary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.secondary-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--jp-text-muted);
  text-decoration: none;
}
.secondary-nav a:hover { color: var(--jp-primary); }

.header-search {
  padding: 0.75rem 0;
  background: var(--jp-bg-alt);
  border-bottom: 1px solid var(--jp-border);
}

/* ===== MAIN LAYOUT ===== */
.site-main {
  max-width: var(--jp-max);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 2.5rem;
}
.site-main.full-width { max-width: var(--jp-max); }
.home-magazine { display: block; }
.home-content { max-width: 100%; }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  border-radius: var(--jp-radius);
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 0.75rem;
  aspect-ratio: 16/9;
  max-height: 420px;
}
.hero-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide .hero-img,
.hero-slide .hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}
.hero-placeholder { background: #333; }
.hero-link { display: block; height: 100%; color: #fff; text-decoration: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,.88));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.35rem 2.75rem;
  color: #fff;
}
.hero-cat {
  display: inline-block;
  background: var(--jp-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
  width: fit-content;
  border-radius: 2px;
}
.hero-title {
  font-size: clamp(1.1rem, 3.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-date { font-size: 0.8rem; opacity: 0.9; }

.hero-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0.65rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
}
.hero-btn {
  pointer-events: auto;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-btn:hover { background: rgba(255,255,255,.35); }
.hero-dots {
  pointer-events: auto;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
}
.hero-dot.is-active { background: #fff; width: 18px; border-radius: 4px; }

/* Thumbs under slider */
.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.hero-thumb-card {
  border-radius: var(--jp-radius);
  overflow: hidden;
  background: #222;
  position: relative;
  min-height: 110px;
}
.hero-thumb-card a {
  display: block;
  height: 100%;
  color: #fff;
  text-decoration: none;
  position: relative;
}
.hero-thumb-card .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 110px;
  aspect-ratio: 16/10;
}
.hero-thumb-card .thumb-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.55rem 0.65rem;
}
.thumb-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--jp-primary);
  margin-bottom: 0.15rem;
}
.thumb-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== CATEGORY BLOCKS ===== */
.cat-block {
  margin-bottom: 2rem;
}
.cat-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.cat-block-header .section-title {
  margin: 0;
  border-bottom: 3px solid var(--jp-primary);
  padding-bottom: 0.3rem;
}
.cat-block-header .section-title a { color: inherit; text-decoration: none; }
.cat-block-header .section-title a:hover { color: var(--jp-primary); }
.cat-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jp-primary);
  white-space: nowrap;
  text-decoration: none;
}
.cat-more:hover { text-decoration: underline; }
.cat-block-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}
.cat-featured {
  border-radius: var(--jp-radius);
  overflow: hidden;
  background: var(--jp-bg-alt);
  border: 1px solid var(--jp-border);
}
.cat-featured a { color: inherit; text-decoration: none; display: block; }
.cat-featured img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.cat-feat-body { padding: 0.85rem; }
.cat-feat-body h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.cat-feat-body time { font-size: 0.78rem; color: var(--jp-text-muted); }
.cat-list { display: flex; flex-direction: column; gap: 0.65rem; }
.cat-list-item a {
  display: flex;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  align-items: flex-start;
}
.cat-list-item a:hover h4 { color: var(--jp-primary); }
.cat-list-item img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--jp-radius);
  flex-shrink: 0;
}
.cat-list-item h4 {
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-list-item time { font-size: 0.75rem; color: var(--jp-text-muted); }

/* ===== NEWS FEED (list) ===== */
.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--jp-primary);
  display: inline-block;
  text-transform: none;
}
.news-feed { margin-top: 0.5rem; }
.feed-list { display: flex; flex-direction: column; gap: 0; }
.feed-item {
  border-bottom: 1px solid var(--jp-border);
  padding: 1rem 0;
}
.feed-item:first-child { padding-top: 0; }
.feed-link {
  display: flex;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}
.feed-link:hover .feed-title { color: var(--jp-primary); }
.feed-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 95px;
  overflow: hidden;
  border-radius: var(--jp-radius);
  background: var(--jp-bg-alt);
}
.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-body { flex: 1; min-width: 0; }
.feed-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  color: var(--jp-text);
}
.feed-meta {
  font-size: 0.78rem;
  color: var(--jp-text-muted);
  margin-bottom: 0.35rem;
}
.feed-cat { color: var(--jp-primary); font-weight: 600; }
.feed-excerpt {
  font-size: 0.88rem;
  color: var(--jp-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.feed-more { text-align: center; margin: 1.5rem 0 0; }
.btn-more {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: var(--jp-primary);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--jp-radius);
  text-decoration: none !important;
}
.btn-more:hover { opacity: 0.9; }

/* ===== SINGLE / ARCHIVE shared ===== */
.entry { margin-bottom: 2rem; }
.entry-header { margin-bottom: 1.15rem; }
.entry-title { font-size: 1.75rem; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.entry-title a { color: inherit; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--jp-text-muted);
  align-items: center;
  margin-bottom: 1rem;
}
.meta-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--jp-text);
}
.meta-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.meta-category a {
  background: var(--jp-primary);
  color: #fff !important;
  padding: 0.12rem 0.45rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.entry-thumbnail { margin-bottom: 1.15rem; border-radius: var(--jp-radius); overflow: hidden; }
.entry-content { font-size: 1.05rem; line-height: 1.7; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--jp-radius); margin: 1.25em 0; }
.entry-content blockquote {
  margin: 1.4em 0;
  padding: 0.7em 1.1em;
  border-left: 4px solid var(--jp-primary);
  background: var(--jp-bg-alt);
  font-style: italic;
}
.entry-footer {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--jp-border);
  font-size: 0.9rem;
}
.entry-tags a {
  display: inline-block;
  background: var(--jp-bg-alt);
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  margin: 0.15rem 0.25rem 0.15rem 0;
  color: var(--jp-text-muted);
  font-size: 0.82rem;
}

.author-box {
  display: flex;
  gap: 1.1rem;
  padding: 1.25rem;
  background: var(--jp-bg-alt);
  border-radius: var(--jp-radius);
  margin: 1.75rem 0;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.author-box h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.author-box p { margin: 0; font-size: 0.9rem; color: var(--jp-text-muted); }

.related-posts { margin: 2rem 0; }
.related-posts h2 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card a { color: inherit; text-decoration: none; }
.related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--jp-radius);
  margin-bottom: 0.4rem;
}
.related-card h3 { font-size: 0.95rem; margin: 0; line-height: 1.35; }
.related-card time { font-size: 0.75rem; color: var(--jp-text-muted); }

.share-buttons { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 1.25rem 0; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  background: var(--jp-bg);
  color: var(--jp-text);
  font-size: 0.82rem;
}
.share-btn:hover { background: var(--jp-bg-alt); text-decoration: none; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--jp-text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--jp-text-muted); }
.breadcrumb span[aria-current] { color: var(--jp-text); }

.toc {
  background: var(--jp-bg-alt);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
}
.toc summary { font-weight: 700; cursor: pointer; list-style: none; }
.toc ul { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.toc a { color: var(--jp-text); }

/* Cards (archive) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--jp-bg);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  overflow: hidden;
}
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 0.9rem; }
.card-title { font-size: 1.05rem; margin: 0 0 0.35rem; line-height: 1.35; }
.card-title a { color: inherit; }
.card-meta { font-size: 0.78rem; color: var(--jp-text-muted); margin-bottom: 0.4rem; }
.card-excerpt {
  font-size: 0.88rem;
  color: var(--jp-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar */
.widget-area { margin-top: 1.5rem; }
.widget {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--jp-border);
}
.widget-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--jp-primary);
  display: inline-block;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--jp-border);
  font-size: 0.92rem;
}
.widget li:last-child { border-bottom: none; }

/* Footer */
.site-footer {
  background: var(--jp-bg-alt);
  border-top: 1px solid var(--jp-border);
  margin-top: 2.5rem;
  padding: 2rem 1.15rem 1.25rem;
}
.footer-inner {
  max-width: var(--jp-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.footer-bottom {
  max-width: var(--jp-max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--jp-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--jp-text-muted);
}
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  justify-content: center;
}
.footer-menu a { color: var(--jp-text-muted); }

.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.45rem;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  color: var(--jp-text);
  font-size: 0.88rem;
}
.pagination .current {
  background: var(--jp-primary);
  color: #fff;
  border-color: var(--jp-primary);
}

.ad-slot { margin: 1.25rem 0; text-align: center; min-height: 40px; }
.search-form { display: flex; gap: 0.4rem; }
.search-form input[type="search"] {
  flex: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius);
  background: var(--jp-bg);
  color: var(--jp-text);
  font-size: 0.95rem;
}
.search-form button {
  padding: 0.45rem 0.9rem;
  background: var(--jp-primary);
  color: #fff;
  border: none;
  border-radius: var(--jp-radius);
  cursor: pointer;
  font-weight: 600;
}

.focus-mode .site-header,
.focus-mode .widget-area,
.focus-mode .site-footer,
.focus-mode .related-posts,
.focus-mode .share-buttons,
.focus-mode .author-box,
.focus-mode .breadcrumb,
.focus-mode .ad-slot { display: none !important; }
.focus-mode .site-main { max-width: var(--jp-content); }
.focus-mode .entry-content { font-size: 1.12rem; }


/* Consistent horizontal breathing room */
.content-area,
.home-content {
  width: 100%;
}
.entry-content,
.feed-list,
.hero-section {
  max-width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .hero-side-card { min-height: 120px; }
  .hero-title { font-size: 1.25rem; }
}

@media (max-width: 700px) {
  .top-bar { display: none; }
  .menu-toggle { display: flex; }
  .search-mobile-only { display: flex; }
  .header-inner { padding-left: 1rem; padding-right: 1rem; }
  .site-main { padding-left: 1rem; padding-right: 1rem; }
  .logo-bar-inner { padding: 0.65rem 1rem; }
  .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .hero-overlay { padding: 1rem 1rem; }
  .feed-item { padding-left: 0; padding-right: 0; }
  .logo-main { font-size: 1.35rem; }
  .custom-logo-link img { max-height: 40px; }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: var(--jp-nav-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { padding: 0.75rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }

  .secondary-nav { display: none; }

  .hero-main { min-height: 240px; }
  .hero-main .hero-img { min-height: 240px; }
  .hero-title { font-size: 1.15rem; }
  .hero-side { grid-template-columns: 1fr 1fr; }

  .feed-thumb { width: 100px; height: 72px; }
  .feed-title { font-size: 0.95rem; }
  .feed-excerpt { display: none; }

  .hero-slider { max-height: 280px; aspect-ratio: 4/3; }
  .hero-overlay { padding: 1rem 1rem 2.4rem; }
  .hero-thumbs { grid-template-columns: 1fr 1fr; }
  .hero-thumbs .hero-thumb-card:nth-child(3) { display: none; }
  .cat-block-grid { grid-template-columns: 1fr; }
  .cat-list-item img { width: 72px; height: 54px; }


  .entry-title { font-size: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; align-items: center; }
}

@media (min-width: 701px) {
  .search-mobile-only { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
