:root {
  --bg: #f6f6f4;
  --fg: #222;
  --card-bg: #fff;
  --border: #e0e0de;
  --muted: #555;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050509;
    --fg: #f5f5ff;
    --card-bg: #11131a;
    --border: #35354a;
    --muted: #c5c9e6;
  }
}

body.light-mode {
  --bg: #f6f6f4;
  --fg: #222;
  --card-bg: #fff;
  --border: #e0e0de;
  --muted: #555;
}

body.dark-mode {
  --bg: #050509;
  --fg: #f5f5ff;
  --card-bg: #11131a;
  --border: #35354a;
  --muted: #c5c9e6;
}

body {
  background: var(--bg);
  color: var(--fg);
  margin: 40px auto;
  padding: 0 20px;
  max-width: 920px;
  font-family: "Inter", sans-serif;
  line-height: 1.8;
}

@media (max-width: 768px) {
  body {
    margin: 16px auto;
    padding: 0 16px;
  }
}


/* (Removed old theme-toggle styles) */

/* ---------- HEADER MENU (Zenn/Qiita like) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  background: linear-gradient(135deg,
    rgba(52, 120, 246, 0.03) 0%,
    rgba(229, 72, 77, 0.03) 50%,
    rgba(16, 163, 127, 0.03) 100%
  );
  border-radius: 12px;
}
@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.site-logo a {
  color: var(--fg);
  text-decoration: none;
}

.site-logo img {
  height: 54px;
  width: auto;
}

@media (max-width: 768px) {
  .site-logo img {
    height: 48px;
  }
}
/* Logo switching for themes */
.logo-dark { display: none; }
.logo-light { display: block; }

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-color-scheme: dark) {
  .logo-dark { display: block; }
  .logo-light { display: none; }
}
body.light-mode .logo-dark { display: none; }
body.light-mode .logo-light { display: block; }
body.dark-mode .logo-dark { display: block; }
body.dark-mode .logo-light { display: none; }

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover {
  color: var(--fg);
}

/* ---------- header (old h1 removal override) ---------- */
/* h1 styling is now handled by .site-logo */


/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  margin-bottom: 16px;
  font-size: 13px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

.date-header {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
}

.byline {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.byline-after {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.article-comment {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.editor-comment {
  max-width: 800px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
  background: linear-gradient(90deg, rgba(52, 120, 246, 0.05) 0%, transparent 100%);
  border-radius: 10px;
}

.editor-note {
  max-width: 800px;
  margin: 40px auto 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(127,127,127,0.04);
}

.editor-note-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.editor-note-body {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.7;
}

.postscript-container {
  max-width: 720px;
  margin: 80px auto 40px;
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(52, 120, 246, 0.04) 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  scroll-margin-top: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.postscript-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}
.postscript-body {
  font-size: 15px;
  line-height: 1.9;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.share-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  transition: opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.75;
}

.share-btn.twitter { background: #111827; }
.share-btn.hatena { background: #00a4de; }
.share-btn.pocket { background: #ef4056; }


/* ---------- HERO BIG (1位) ---------- */
.hero-big {
  padding: 28px;
  background: var(--card-bg);
  border-radius: 14px;
  margin-bottom: 35px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-left: 4px solid var(--category-color, #3478f6);
  position: relative;
  scroll-margin-top: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.5s ease, box-shadow 0.2s ease, opacity 0.5s ease;
}
.hero-big:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
h2.title {
  margin: 0;
}

.hero-big .title {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 10px;   /* カテゴリから少し離す */
  margin-bottom: 12px; /* 本文と間をあける */
}

.top3-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------- HERO SEMI (2位・3位) ---------- */
.hero-semi {
  padding: 24px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-left: 4px solid var(--category-color, #3478f6);
  position: relative;
  scroll-margin-top: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.5s ease, box-shadow 0.2s ease, opacity 0.5s ease;
}
.hero-semi:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}
.hero-semi .title {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 10px;   /* カテゴリから少し離す */
  margin-bottom: 12px; /* 本文と間をあける */
}

/* ---------- spacing ---------- */
.top3-end-space {
  margin-top: 40px;
}

/* ---------- NAV LINKS ---------- */
.nav-links {
  text-align: center;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 8px;
}
.nav-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}
.nav-links .disabled {
  color: var(--muted);
  cursor: default;
  margin: 0 8px;
}
.nav-sep {
  color: var(--border);
}

/* ---------- NORMAL CARDS ---------- */
.card {
  padding: 20px;
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--category-color, #3478f6);
  position: relative;
  scroll-margin-top: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.5s ease, box-shadow 0.15s, opacity 0.5s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.card .title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 10px;   /* カテゴリから少し離す */
  margin-bottom: 12px; /* 本文と間をあける */
}

/* ---------- CATEGORY TAG ---------- */
.category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

/* ---------- LINK ---------- */
a {
  color: #3478f6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.link-icon::after {
  content: " ↗";
}

.source-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.source-note a {
  color: var(--muted);
  text-decoration: underline;
}

.source-note a:hover {
  color: var(--fg);
}

.section-tag {
  display: inline-block;
  background: #3182CE; /* Calm blue background */
  color: #fff; /* White text */
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  margin-right: 6px;
}


.no-articles {
  max-width: 720px;
  margin: 40px auto 60px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* --- Editors Page Specific --- */
.page-lead {
  color: var(--muted);
  font-size: 15px;
  margin-top: -6px;
}
.ai-note {
  margin: 14px 0 28px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--muted);
  font-size: 13.5px;
}

.editors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) {
  .editors-grid { grid-template-columns: 1fr; }
}

.editor-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.editor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.editor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.editor-icon {
  font-size: 22px;
  line-height: 1;
}
.editor-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.editor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.editor-badge {
  display: inline-block;
  background: #3182CE;
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.editor-focus {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
}

.editor-summary {
  margin: 0 0 10px;
  font-size: 14.5px;
}
.editor-philosophy {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 3px solid #3182CE;
  font-size: 14.5px;
  font-weight: 600;
}

.editor-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- ARCHIVE PAGES ---------- */
.archive-container {
  max-width: 720px;
  margin: 40px auto;
}

.archive-month-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-month-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.archive-month-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.archive-month-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--fg);
}

.month-label {
  font-size: 20px;
  font-weight: 700;
}

.article-count {
  font-size: 14px;
  color: var(--muted);
}

.archive-date-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.archive-date-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.archive-date-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.archive-date-item a {
  display: block;
  padding: 16px 12px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- CATEGORY PAGES ---------- */
.category-container {
  max-width: 820px;
  margin: 40px auto;
}

.category-description {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.category-articles {
  display: grid;
  gap: 18px;
}

.category-article-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.category-article-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.category-article-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--fg);
  text-decoration: none;
}

.category-article-title:hover {
  text-decoration: underline;
}

.category-article-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.category-index-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-index-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-index-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.category-index-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--fg);
}

/* ---------- HAMBURGER MENU ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  position: relative;
  transition: background 0.2s;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.2s, top 0.2s;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

/* Hamburger to X animation */
.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
    z-index: 1000;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    font-size: 16px;
    padding: 8px 0;
  }

  .site-header {
    position: relative;
    margin-bottom: 20px;
    padding: 12px 0;
  }
}

/* ---------- SEARCH BOX ---------- */
.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

@media (max-width: 768px) {
  .search-box {
    display: none;
  }
}

/* Nav search box (mobile hamburger menu) */
.nav-search-box {
  display: none;
  position: relative;
}

@media (max-width: 768px) {
  .nav-search-box {
    display: block;
    margin: 0 -20px 12px -20px;
    padding: 0 20px;
  }
}

#nav-site-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

#nav-site-search:focus {
  outline: none;
  border-color: #3478f6;
}

#nav-site-search::placeholder {
  color: var(--muted);
}

#nav-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  right: -20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1001;
}

#nav-search-results .search-result-item {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}

#nav-search-results .search-result-item:last-child {
  border-bottom: none;
}

#nav-search-results .search-result-item:hover {
  background: var(--hover-bg, rgba(128,128,128,0.1));
}

#site-search {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

#site-search:focus {
  outline: none;
  border-color: #3478f6;
}

#site-search::placeholder {
  color: var(--muted);
}

#search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

@media (max-width: 768px) {
  #search-results {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    max-height: 60vh;
  }
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(127,127,127,0.06);
}

.search-result-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.search-result-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.search-result-category {
  font-size: 13px;
  color: var(--muted);
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s, border-color 0.2s;
  z-index: 999;
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  background: var(--border);
}

/* ---------- KEYBOARD NAV & SCROLL ANIMATION ---------- */
.keyboard-focus {
  outline: 3px solid #3478f6 !important;
  outline-offset: 4px;
}

.hero-big.visible,
.hero-semi.visible,
.card.visible,
.postscript-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delay for cards */
.card:nth-child(1) { transition-delay: 0s; }
.card:nth-child(2) { transition-delay: 0.05s; }
.card:nth-child(3) { transition-delay: 0.1s; }
.card:nth-child(4) { transition-delay: 0.15s; }
.card:nth-child(5) { transition-delay: 0.2s; }

/* ---------- CATEGORY ACCENT BORDER ---------- */
/* Category-specific colors via data attribute */
.hero-big[data-category="Security"],
.hero-semi[data-category="Security"],
.card[data-category="Security"] {
  border-left-color: #e5484d;
}

.hero-big[data-category="AI"],
.hero-semi[data-category="AI"],
.card[data-category="AI"] {
  border-left-color: #3478f6;
}

.hero-big[data-category="Developer"],
.hero-semi[data-category="Developer"],
.card[data-category="Developer"] {
  border-left-color: #8bc34a;
}

.hero-big[data-category="OSS"],
.hero-semi[data-category="OSS"],
.card[data-category="OSS"] {
  border-left-color: #10a37f;
}

.hero-big[data-category="Cloud"],
.hero-semi[data-category="Cloud"],
.card[data-category="Cloud"] {
  border-left-color: #03a9f4;
}

.hero-big[data-category="Entertainment"],
.hero-semi[data-category="Entertainment"],
.card[data-category="Entertainment"] {
  border-left-color: #e91e63;
}

.hero-big[data-category="Gaming"],
.hero-semi[data-category="Gaming"],
.card[data-category="Gaming"] {
  border-left-color: #9c27b0;
}

.hero-big[data-category="Science"],
.hero-semi[data-category="Science"],
.card[data-category="Science"] {
  border-left-color: #795548;
}

.hero-big[data-category="Society"],
.hero-semi[data-category="Society"],
.card[data-category="Society"] {
  border-left-color: #ff5722;
}

.hero-big[data-category="Hardware"],
.hero-semi[data-category="Hardware"],
.card[data-category="Hardware"] {
  border-left-color: #607d8b;
}

.hero-big[data-category="Business"],
.hero-semi[data-category="Business"],
.card[data-category="Business"] {
  border-left-color: #9c27b0;
}

.hero-big[data-category="Startups"],
.hero-semi[data-category="Startups"],
.card[data-category="Startups"] {
  border-left-color: #4caf50;
}

.hero-big[data-category="Lifestyle"],
.hero-semi[data-category="Lifestyle"],
.card[data-category="Lifestyle"] {
  border-left-color: #ff9800;
}

.hero-big[data-category="Design"],
.hero-semi[data-category="Design"],
.card[data-category="Design"] {
  border-left-color: #673ab7;
}

/* ---------- PRINT ---------- */
@media print {
  .site-header,
  .site-nav,
  .nav-links,
  .share-buttons,
  .search-box,
  #search-results,
  #back-to-top,
  #theme-toggle-btn,
  footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero-big, .hero-semi, .card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a.source-link::after {
    content: " (" attr(href) ")";
    font-size: 10px;
    color: #666;
  }

  .keyboard-focus {
    outline: none !important;
  }
}
