/*
Theme Name: Shikaku Step
Theme URI: https://shikaku-step.com
Author: shikaku-step.com
Description: 資格・通信講座情報サイト専用テーマ — Academic Warmth
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shikaku-step
*/

/* ── Design Tokens ─────────────────────────── */
:root {
  --c-navy:          #1C2B4A;
  --c-navy-light:    #243660;
  --c-amber:         #D97706;
  --c-amber-light:   rgba(217, 119, 6, 0.12);
  --c-amber-glow:    rgba(217, 119, 6, 0.07);
  --c-emerald:       #065F46;
  --c-emerald-light: rgba(6, 95, 70, 0.1);
  --c-bg:            #FDFBF7;
  --c-surface:       #FFFFFF;
  --c-surface-alt:   #F2EDE5;
  --c-text:          #1C2B4A;
  --c-muted:         #6B6560;
  --c-light:         #9C9490;
  --c-border:        #E8E0D5;
  --c-border-dark:   #D0C8BC;

  --f-display: 'Noto Serif JP', Georgia, serif;
  --f-body:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
  --f-num:     'Playfair Display', Georgia, serif;

  --radius:     8px;
  --radius-lg:  14px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 1px 4px rgba(28, 43, 74, 0.06);
  --shadow:     0 4px 16px rgba(28, 43, 74, 0.09);
  --shadow-lg:  0 12px 40px rgba(28, 43, 74, 0.14);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; scroll-padding-top: 80px; }
body  {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ── Layout ────────────────────────────────── */
.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}
.layout-article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ── Reading Progress ──────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--c-amber);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Header ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-navy);
  border-bottom: 3px solid var(--c-amber);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.logo-ja {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-amber);
  opacity: 0.85;
  letter-spacing: 0.06em;
}
.logo-main {
  font-family: var(--f-body);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.06em;
}
.logo-dot { color: var(--c-amber); font-size: 1.2em; }

.primary-nav ul { display: flex; align-items: center; gap: 0.2rem; }
.primary-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 5px 12px;
  border-radius: 5px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.primary-nav a:hover { background: rgba(255,255,255,0.1); color: #FFF; }

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0 14px;
  height: 36px;
  gap: 7px;
  min-width: 190px;
  transition: background var(--transition), border-color var(--transition);
}
.header-search:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: rgba(217,119,6,0.5);
}
.header-search input {
  background: none;
  border: none;
  outline: none;
  font-size: 0.82rem;
  color: #FFF;
  width: 100%;
  font-family: var(--f-body);
}
.header-search input::placeholder { color: rgba(255,255,255,0.35); }
.header-search-icon { opacity: 0.45; flex-shrink: 0; color: #FFF; }

/* ── Hero ──────────────────────────────────── */
.site-hero {
  background: var(--c-navy);
  background-size: cover;
  background-position: center top;
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
/* Directional overlay: opaque on left for readability, near-transparent on right to show image */
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    rgba(20, 30, 55, 0.88) 0%,
    rgba(20, 30, 55, 0.70) 35%,
    rgba(28, 43, 74, 0.32) 62%,
    transparent 88%
  );
  pointer-events: none;
}
/* Warm accent glow — left side only so right image is clear */
.site-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 85%, rgba(6,95,70,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.hero-label::before { content: ''; width: 20px; height: 1px; background: rgba(255,255,255,0.4); }
.hero-heading {
  display: flex;
  align-items: center;
  gap: 0.12em;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: #FFF;
  line-height: 1.38;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.hero-heading .logo-ja {
  font-size: 0.46em;
  line-height: 1;
  color: var(--c-amber);
  opacity: 0.9;
  letter-spacing: 0.08em;
  text-shadow: none;
  align-self: center;
}
.hero-heading .logo-main {
  font-size: 1em;
  font-family: var(--f-body);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.hero-heading .logo-dot { font-size: 1em; }
.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.06);
}


/* ── Category Bar ──────────────────────────── */
.category-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.category-bar-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--c-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.cat-tab:hover, .cat-tab.is-active { color: var(--c-navy); border-color: var(--c-amber); }
.cat-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-amber); }

/* ── Section Header ────────────────────────── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.75rem; }
.section-title {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 1.25em;
  background: var(--c-amber);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-more {
  font-size: 0.8rem;
  color: var(--c-amber);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section-more::after { content: '→'; }
.section-more:hover { gap: 8px; }

/* ── Posts Section ─────────────────────────── */
.posts-section { padding: 3rem 0 5rem; }

/* ── Posts Grid ────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.posts-grid-2col { grid-template-columns: repeat(2, 1fr); }

/* ── Post Card ─────────────────────────────── */
.post-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--c-navy);
  display: block;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

.thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-navy) 0%, #2D4A7A 60%, #3D5FA0 100%);
}
.thumb-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(217,119,6,0.32) 0%, transparent 48%),
    radial-gradient(circle at 18% 72%, rgba(6,95,70,0.18) 0%, transparent 40%);
}
.thumb-placeholder-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  user-select: none;
}

.post-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  width: fit-content;
}
.post-tag-amber   { background: var(--c-amber-light);    color: var(--c-amber); }
.post-tag-navy    { background: rgba(28,43,74,0.08);     color: var(--c-navy); }
.post-tag-emerald { background: var(--c-emerald-light);  color: var(--c-emerald); }

.post-card-title {
  font-family: var(--f-display);
  font-size: 1.0rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--c-navy);
}
.post-card-title a { transition: color var(--transition); }
.post-card-title a:hover { color: var(--c-amber); }
.post-card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.post-card-excerpt {
  font-size: 0.84rem;
  color: var(--c-muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
}
.post-card-meta { font-size: 0.72rem; color: var(--c-light); display: flex; align-items: center; gap: 6px; }
.post-read-time {
  font-size: 0.7rem;
  color: var(--c-muted);
  background: var(--c-surface-alt);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Sidebar ───────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-self: start;
}
.sidebar-widget {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-header {
  background: var(--c-navy);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title { font-family: var(--f-display); font-size: 0.86rem; font-weight: 700; color: #FFF; }
.widget-title-icon { color: var(--c-amber); flex-shrink: 0; }
.widget-body { padding: 1.2rem; }

/* ── Ranking ───────────────────────────────── */
.ranking-list { display: flex; flex-direction: column; }
.ranking-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.ranking-item:first-child { padding-top: 0; }
.ranking-item:last-child  { border-bottom: none; padding-bottom: 0; }
.ranking-num {
  font-family: var(--f-num);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  margin-top: 3px;
}
.ranking-num-1     { font-size: 1.5rem; color: #D97706; }
.ranking-num-2     { font-size: 1.5rem; color: #71717A; }
.ranking-num-3     { font-size: 1.5rem; color: #92400E; }
.ranking-num-other { font-size: 1.1rem; color: var(--c-light); }
.ranking-thumb {
  width: 68px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-navy);
  position: relative;
}
.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ranking-body { flex: 1; min-width: 0; }
.ranking-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.ranking-title:hover { color: var(--c-amber); }
.ranking-title::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.ranking-meta { font-size: 0.7rem; color: var(--c-light); margin-top: 3px; }

/* ── Article Single ────────────────────────── */
.article-wrap { padding: 2.5rem 0 5rem; }
.article-breadcrumb {
  font-size: 0.78rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--c-amber); }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb-sep { color: var(--c-light); }
.article-header { margin-bottom: 1.75rem; }
.article-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-navy);
  margin: 1rem 0 1.25rem;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--c-muted);
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--c-border);
}
.article-meta-item { display: flex; align-items: center; gap: 5px; }

.article-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.article-thumbnail-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.article-thumbnail-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-navy) 0%, #2D4A7A 55%, #D97706 130%);
}
.article-thumbnail-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 33%, rgba(217,119,6,0.38) 0%, transparent 42%),
    radial-gradient(circle at 15% 70%, rgba(6,95,70,0.22) 0%, transparent 38%);
}

/* ── TOC ───────────────────────────────────── */
.toc-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.toc-header {
  background: var(--c-navy);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.toc-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFF;
}
.toc-header-icon { color: var(--c-amber); }
.toc-toggle-icon { color: rgba(255,255,255,0.45); font-size: 0.65rem; transition: transform var(--transition); }
.toc-box.is-open .toc-toggle-icon { transform: rotate(180deg); }
.toc-body { padding: 1.25rem 1.5rem; display: none; }
.toc-box.is-open .toc-body { display: block; }

.toc-list { counter-reset: toc-h2; }
.toc-h2 { counter-increment: toc-h2; margin-bottom: 0.65rem; }
.toc-h2 > a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-navy);
  display: flex;
  align-items: baseline;
  gap: 9px;
  line-height: 1.5;
  transition: color var(--transition);
}
.toc-h2 > a::before {
  content: counter(toc-h2);
  font-family: var(--f-num);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-amber);
  flex-shrink: 0;
  min-width: 18px;
}
.toc-h2 > a:hover { color: var(--c-amber); }
.toc-h3-list { margin: 0.4rem 0 0 1.6rem; display: flex; flex-direction: column; gap: 0.3rem; }
.toc-h3 a {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.5;
  transition: color var(--transition);
}
.toc-h3 a::before { content: '–'; color: var(--c-light); flex-shrink: 0; }
.toc-h3 a:hover { color: var(--c-amber); }

/* ── Entry Content ─────────────────────────── */
.entry-content { font-size: 1rem; line-height: 1.9; color: var(--c-text); }
.entry-content h2 {
  font-family: var(--f-display);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--c-navy);
  margin: 3rem 0 1rem;
  padding: 0.8rem 1.1rem 0.8rem 1.2rem;
  background: var(--c-surface-alt);
  border-left: 4px solid var(--c-amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.45;
}
.entry-content h3 {
  font-family: var(--f-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--c-navy);
  margin: 2.25rem 0 0.75rem;
  padding-left: 0.875rem;
  border-left: 3px solid var(--c-amber);
  line-height: 1.45;
}
.entry-content h4 { font-size: 0.98rem; font-weight: 700; color: var(--c-navy); margin: 1.75rem 0 0.6rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul,
.entry-content ol { margin-bottom: 1.25rem; padding-left: 0; }
.entry-content ul { list-style: none; }
.entry-content ul li { position: relative; padding-left: 1.1rem; margin-bottom: 0.45rem; }
.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
}
.entry-content ol { list-style: none; counter-reset: ol-counter; }
.entry-content ol li { counter-increment: ol-counter; padding-left: 1.75rem; margin-bottom: 0.45rem; position: relative; }
.entry-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--c-amber);
  color: #FFF;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-num);
}
.entry-content a { color: var(--c-amber); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.entry-content a:hover { opacity: 0.75; }
.entry-content strong { font-weight: 700; color: var(--c-navy); }
.entry-content em { font-style: italic; }
.entry-content blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--c-amber-glow);
  border-left: 4px solid var(--c-amber);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code {
  font-size: 0.875em;
  background: var(--c-surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  font-family: 'Courier New', monospace;
}
.entry-content pre {
  background: var(--c-navy);
  color: #E2E8F0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.entry-content pre code { background: none; border: none; padding: 0; color: inherit; font-size: 0.875rem; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.entry-content th,
.entry-content td { padding: 0.7rem 1rem; border: 1px solid var(--c-border); text-align: left; min-width: 90px; }
.entry-content th { background: var(--c-navy); color: #FFF; font-weight: 600; font-size: 0.85rem; }
.entry-content tr:nth-child(even) td { background: var(--c-surface-alt); }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.entry-content .callout-pass {
  background: var(--c-emerald-light);
  border: 1px solid rgba(6,95,70,0.2);
  border-left: 4px solid var(--c-emerald);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.entry-content .callout-point {
  background: var(--c-amber-light);
  border: 1px solid rgba(217,119,6,0.18);
  border-left: 4px solid var(--c-amber);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.entry-content .callout-pass p:last-child,
.entry-content .callout-point p:last-child { margin-bottom: 0; }

/* ── Related Posts ─────────────────────────── */
.related-section { margin-top: 4rem; padding-top: 3rem; border-top: 2px solid var(--c-border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }

/* ── Post Navigation ───────────────────────── */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.post-nav-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: block;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.post-nav-item:hover { border-color: var(--c-amber); box-shadow: 0 0 0 2px var(--c-amber-light); }
.post-nav-label { font-size: 0.7rem; color: var(--c-amber); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.post-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-next { text-align: right; }

/* ── Pagination ────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.posts-pagination .nav-links { display: flex; gap: 4px; align-items: center; }
.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: all var(--transition);
}
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current { background: var(--c-amber); border-color: var(--c-amber); color: #FFF; }
.posts-pagination .page-numbers.dots { border: none; background: none; pointer-events: none; }

/* ── No Posts ──────────────────────────────── */
.no-posts { text-align: center; padding: 5rem 0; color: var(--c-muted); font-size: 1.05rem; }

/* ── Footer ────────────────────────────────── */
.site-footer { background: var(--c-navy); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.footer-brand-name { display: flex; align-items: center; gap: 3px; margin-bottom: 0.6rem; font-size: 1.15rem; }
.footer-brand-desc { font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.8; max-width: 38ch; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.footer-nav a { font-size: 0.8rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-nav a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); }

/* ── Animations ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.post-card:nth-child(1) { animation: fadeUp 0.5s ease both 0.05s; }
.post-card:nth-child(2) { animation: fadeUp 0.5s ease both 0.12s; }
.post-card:nth-child(3) { animation: fadeUp 0.5s ease both 0.19s; }
.post-card:nth-child(4) { animation: fadeUp 0.5s ease both 0.26s; }
.post-card:nth-child(5) { animation: fadeUp 0.5s ease both 0.33s; }
.post-card:nth-child(6) { animation: fadeUp 0.5s ease both 0.40s; }

/* ── Scroll To Top ─────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--c-navy);
  color: #FFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(28,43,74,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  z-index: 900;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--c-amber); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
  .layout-article { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .posts-grid   { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .post-nav     { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-nav ul { align-items: flex-start; }
}
@media (max-width: 560px) {
  .posts-grid    { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .primary-nav   { display: none; }
}
