/* ==========================================================================
   Editor's Broadsheet — Blog Redesign CSS
   Replaces: tachyons, story.css, descartes.css, retro-cards.css, toc.css, custom.css
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --color-bg: #FAF8F5;
  --color-text: #2D2926;
  --color-text-muted: #6B6560;
  --color-accent: #E8421E;
  --color-link: #3730A3;
  --color-link-hover: #E8421E;
  --color-border: #E0DCD7;
  --color-border-light: #EDEAE6;
  --color-surface: #FFFFFF;
  --color-code-bg: #F3F1EE;
  --color-pill-bg: #EDEAE6;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
  --font-ui: 'Outfit', sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1200px;
  --article-width: 700px;
  --sidebar-width: 280px;
  --header-height: 60px;
  --thumb-size: 60px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Sharp corners everywhere */
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  /* Paper grain texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' x='0' y='0' fill='%23000' fill-opacity='0.02'/%3E%3Crect width='1' height='1' x='2' y='2' fill='%23000' fill-opacity='0.015'/%3E%3Crect width='1' height='1' x='3' y='0' fill='%23000' fill-opacity='0.01'/%3E%3Crect width='1' height='1' x='1' y='3' fill='%23000' fill-opacity='0.025'/%3E%3C/svg%3E");
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-accent);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  max-width: 100%;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-title:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.site-nav a.nav-il {
  font-weight: 600;
}

.nav-sep {
  width: 1px;
  height: 1.2em;
  background: var(--color-border);
  display: inline-block;
  vertical-align: middle;
}

.site-nav .nav-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav .nav-icon svg {
  width: 14px;
  height: 14px;
}

/* Social links in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.nav-social a {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.nav-social a:hover {
  color: var(--color-accent);
}

.nav-social svg {
  width: 18px;
  height: 18px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
}

/* --- Layout Containers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* --- Homepage Hero Banner --- */
.homepage-hero {
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 70%,
    var(--color-bg) 100%
  );
  display: flex;
  align-items: flex-end;
}

.homepage-hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.homepage-hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-top: 0.35rem;
}

/* --- Hero band — full-width dark strip at bottom of hero images --- */
.hero-band {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  padding: 0.5rem 2rem;
}

.hero-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* --- Featured Post --- */
.featured-post {
  margin-bottom: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}

.featured-post-thumb-link {
  flex-shrink: 0;
  display: flex;
}

.featured-post-thumb {
  width: 160px;
  object-fit: cover;
  display: block;
  border-radius: 6px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.featured-post-body {
  flex: 1;
  min-width: 0;
}

.featured-post-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.featured-post-title a {
  color: var(--color-text);
  text-decoration: none;
}

.featured-post-title a:hover {
  color: var(--color-accent);
}

.featured-post-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.featured-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --- Post List Rows --- */
.post-list {
  list-style: none;
}

.post-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color 0.1s ease;
  position: relative;
}

.post-row:hover {
  background-color: rgba(0,0,0,0.015);
  cursor: pointer;
}

.post-row:first-child {
  border-top: 1px solid var(--color-border);
}

.post-thumb-link {
  flex-shrink: 0;
  display: flex;
  position: relative;
  z-index: 1;
}

.post-thumb {
  width: 90px;
  height: 60px;
  min-width: 90px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.post-date {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.post-title-link {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.35;
}

.post-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-title-link:hover {
  color: var(--color-link);
}

.post-category {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-pill-bg);
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Hide category pill on term (single-category) pages — it's redundant */
.page-kind-term .post-category {
  display: none;
}

/* --- Year-grouped post sections (term pages) --- */
.year-group {
  margin-bottom: 1rem;
}

.year-group .post-list {
  margin: 0;
}

h2.year-group-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 2px solid var(--color-text);
}

details.year-group > summary.year-group-header {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.year-group > summary.year-group-header::-webkit-details-marker {
  display: none;
}

details.year-group > summary.year-group-header::after {
  content: "+";
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
}

details.year-group > summary.year-group-header:hover::after {
  background: var(--color-accent);
  color: #fff;
}

details.year-group[open] > summary.year-group-header {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
}

details.year-group[open] > summary.year-group-header::after {
  content: "\2212";
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.6rem;
  background: var(--color-border-light);
  border-left: 3px solid var(--color-accent);
}

/* Author card */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.author-role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.author-bio-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.author-tagline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-accent);
  font-style: italic;
  margin-top: 0.35rem;
}

/* Category list */
.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 0.35rem;
}

.category-list a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.category-list a:hover {
  color: var(--color-link);
}

.category-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.sidebar-view-all {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* --- Category Search Strip --- */
.cat-search-strip {
  background: var(--color-border-light);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.cat-search-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.cat-search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.cat-search-input:focus {
  border-color: var(--color-accent);
}

.cat-search-input::placeholder {
  color: var(--color-text-muted);
}

.cat-search-clear {
  position: absolute;
  left: 370px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}

.cat-search-clear:hover {
  color: var(--color-text);
}

.cat-search-no-results {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 2rem 0;
}

.cat-search-count {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.cat-description {
  margin-bottom: 2rem;
}

/* --- Article Page --- */

/* Article hero: photo with title overlaid, fading into background */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.1) 60%,
    var(--color-bg) 100%
  );
  display: flex;
  align-items: flex-end;
}

.article-hero-content {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  padding: 1.5rem 2rem;
}

.article-hero-content-inner {
  max-width: 900px;
}

.article-hero-content h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin: 0 0 0.5rem 0;
}

.article-hero-meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.article-hero-meta a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-hero-meta a:hover {
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  max-width: calc(var(--article-width) + 220px + 3rem);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.article-main {
  max-width: var(--article-width);
}

.article-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.article-meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-meta a {
  color: var(--color-text-muted);
}

.article-meta a:hover {
  color: var(--color-link);
}

.article-meta .meta-sep {
  margin: 0 0.4rem;
}

/* Article body content */
.article-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #000;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.article-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-body a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(55, 48, 163, 0.3);
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-code-bg);
  font-style: italic;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body img {
  margin: 1.5rem 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid var(--color-border);
}

.article-body figure {
  margin: 1.5rem 0;
}

.article-body figcaption,
.article-body .figcaption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article-body th {
  background: var(--color-code-bg);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
}

.article-body caption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-align: left;
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* Code blocks */
.article-body code,
code {
  font-family: var(--font-code);
  font-size: 0.85em;
  background: var(--color-code-bg);
  padding: 0.15em 0.35em;
}

.article-body pre,
pre {
  background: var(--color-code-bg);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-body pre code,
pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Rouge syntax highlighting */
.rouge.highlight {
  position: relative;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.rouge.highlight pre {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

/* Copy button */
.copy-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
  z-index: 10;
}

.copy-button:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

/* Headline anchors */
.headline-hash {
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 0.75em;
}

h2:hover .headline-hash,
h3:hover .headline-hash,
h4:hover .headline-hash {
  opacity: 0.4;
}

.headline-hash:hover {
  opacity: 1 !important;
}

/* --- Admonition Blocks (AsciiDoc NOTE, TIP, WARNING, etc.) --- */
.admonitionblock {
  margin: 1.5rem 0;
  border: none;
  overflow: visible;
}

.admonitionblock > table {
  border-collapse: separate;
  border: none;
  background: none;
  width: 100%;
  border-left: 4px solid var(--color-text-muted);
  background: #F5F3F0;
}

.admonitionblock > table td {
  border: none;
}

.admonitionblock > table td.icon {
  text-align: center;
  width: 3rem;
  vertical-align: top;
  padding: 0.75rem 0 0.75rem 0.75rem;
}

.admonitionblock > table td.icon [class^="fa icon-"] {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
}

.admonitionblock > table td.icon [class^="fa icon-"]::before {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: none;
}

.admonitionblock > table td.icon .icon-note    { background: #546E7A; }
.admonitionblock > table td.icon .icon-tip     { background: #558B2F; }
.admonitionblock > table td.icon .icon-warning { background: #E65100; }
.admonitionblock > table td.icon .icon-caution { background: #C62828; }
.admonitionblock > table td.icon .icon-important { background: var(--color-accent); }

.admonitionblock > table td.icon .icon-note::before    { content: "i"; color: #fff; }
.admonitionblock > table td.icon .icon-tip::before     { content: "✦"; color: #fff; }
.admonitionblock > table td.icon .icon-warning::before { content: "!"; color: #fff; }
.admonitionblock > table td.icon .icon-caution::before { content: "!!"; color: #fff; font-size: 0.7rem; }
.admonitionblock > table td.icon .icon-important::before { content: "!"; color: #fff; }

.admonitionblock > table td.content {
  padding: 0.75rem 1rem 0.75rem 0.5rem;
  border-left: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

.admonitionblock > table td.content > :last-child > :last-child {
  margin-bottom: 0;
}

/* Type-specific border + background colors */
.admonitionblock.note > table  { border-left-color: #546E7A; background: #F0F3F5; }
.admonitionblock.tip > table   { border-left-color: #558B2F; background: #F2F7ED; }
.admonitionblock.warning > table  { border-left-color: #E65100; background: #FFF3E0; }
.admonitionblock.caution > table  { border-left-color: #C62828; background: #FBE9E7; }
.admonitionblock.important > table { border-left-color: var(--color-accent); background: #FDE8E4; }

/* --- Table of Contents (Right Sidebar) --- */
.toc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
}

.toc-sidebar-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* Target Hugo-generated TOC structure */
.toc-sidebar nav#TableOfContents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-sidebar nav#TableOfContents ul ul {
  padding-left: 0.75rem;
}

.toc-sidebar nav#TableOfContents a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc-sidebar nav#TableOfContents a:hover {
  color: var(--color-text);
}

.toc-sidebar nav#TableOfContents a.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 500;
}

/* Also style the existing theme TOC classes for compatibility */
.docs-toc {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  padding: 0;
  background: none;
  border: none;
  width: 220px;
  flex-shrink: 0;
}

.docs-toc .toc-top {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-toc .docs-toc-title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}

.docs-toc #TableOfContents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-toc #TableOfContents ul ul {
  padding-left: 0.75rem;
}

.docs-toc #TableOfContents a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.3rem 0.75rem;
  border-left: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-toc #TableOfContents a:hover {
  color: var(--color-text);
}

.docs-toc #TableOfContents a.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  font-weight: 500;
}

/* Mobile TOC label (reuse from old theme) */
.toc-mobile-label {
  display: none;
}

/* Mobile TOC as <details> */
.toc-mobile {
  display: none;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-code-bg);
}

.toc-mobile summary {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.toc-mobile nav ul {
  list-style: none;
  padding: 0 1rem 0.75rem;
}

.toc-mobile nav ul ul {
  padding-left: 0.75rem;
}

.toc-mobile nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.2rem 0;
  display: block;
  text-decoration: none;
}

.toc-mobile nav a:hover {
  color: var(--color-link);
}

/* --- Article content container matching old theme structure --- */
.container-fluid.docs {
  max-width: calc(var(--article-width) + 220px + 3rem + 4rem);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-fluid.docs > .row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.docs-content {
  max-width: var(--article-width);
}

/* Article within the docs layout */
.docs-content .article {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
}

.docs-content .article p {
  margin-bottom: 1.25rem;
}

.docs-content .article h2,
.docs-content .article h3,
.docs-content .article h4 {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.docs-content .article h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #000;
}

.docs-content .article h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.docs-content .article h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content .article a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: rgba(55, 48, 163, 0.3);
  text-underline-offset: 2px;
}

.docs-content .article a:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

.docs-content .article ul,
.docs-content .article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.docs-content .article li {
  margin-bottom: 0.35rem;
}

.docs-content .article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-code-bg);
  font-style: italic;
}

.docs-content .article blockquote p:last-child {
  margin-bottom: 0;
}

.docs-content .article img {
  margin: 1.5rem 0;
  display: block;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid var(--color-border);
}

/* Exclude hidden pagefind meta images from shadow treatment */
.docs-content .article img[style*="display:none"],
.article-body img[style*="display:none"] {
  box-shadow: none;
  border: none;
}

.docs-content .article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.docs-content .article th,
.docs-content .article td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.docs-content .article th {
  background: var(--color-code-bg);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
}

.docs-content .article hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-link);
}

/* --- About the Author section (in articles) --- */
.about-the-author {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: var(--article-width);
  margin: 0;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.about-the-author a {
  color: var(--color-link);
}

.about-the-author img {
  max-width: 200px;
}

/* --- Giscus comments --- */
.giscus-container {
  max-width: var(--article-width);
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
}

.pagination a:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

.pagination .active span {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Hugo internal pagination template compatibility */
.page-item .page-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.page-item .page-link:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

.page-item.active .page-link {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Pagefind Search --- */
.pagefind-ui {
  --pagefind-ui-primary: var(--color-link);
  --pagefind-ui-text: var(--color-text);
  --pagefind-ui-background: var(--color-surface);
  --pagefind-ui-border: var(--color-border);
  --pagefind-ui-tag: var(--color-pill-bg);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: var(--font-ui);
}

/* --- Category pages --- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-pill {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: var(--color-pill-bg);
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
}

.category-pill:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* --- Compact cards (category term pages) --- */
.compact-card {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
  color: var(--color-text);
}

.compact-card:hover {
  background-color: rgba(0,0,0,0.015);
}

.compact-card-thumb {
  width: 120px;
  height: 80px;
  min-width: 120px;
  object-fit: cover;
}

.compact-card-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.compact-card-content p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- Article header on single pages (title box area) --- */
.article-header {
  max-width: calc(var(--article-width) + 220px + 3rem);
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

/* Styles for title box used by the existing theme */
.title-box {
  padding: 1.5rem 0;
}

.title-box h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.title-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.title-subtitle a {
  color: var(--color-text-muted);
}

.title-subtitle a:hover {
  color: var(--color-link);
}

/* --- Page hero (categories, search, etc.) --- */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.1) 60%,
    var(--color-bg) 100%
  );
  display: flex;
  align-items: flex-end;
}

.page-hero-content {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  padding: 0.5rem 2rem;
}

.page-hero-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin: 0;
  display: inline;
}

.page-hero-content p {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  display: inline;
  margin-left: 0.75rem;
}

/* --- Page heading (fallback for pages without hero) --- */
.page-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
}

.page-heading-sub {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem 0;
}

/* --- Categories page --- */
.cat-section {
  margin-bottom: 2rem;
}

.cat-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #000;
}

.cat-popular-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-popular-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.cat-popular-item:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.cat-count {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.cat-popular-item:hover .cat-count,
.cat-item:hover .cat-count {
  color: rgba(255,255,255,0.7);
}

.cat-az-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.cat-jump-link {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: all 0.15s ease;
}

.cat-jump-link:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.cat-filter-container {
  display: flex;
  align-items: center;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.cat-filter-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
}

.cat-filter-input::placeholder {
  color: var(--color-text-muted);
}

.cat-filter-clear {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  display: none;
}

.cat-by-letter {
  margin-top: 1rem;
}

.cat-letter-section {
  margin-bottom: 1.5rem;
  scroll-margin-top: 80px;
}

.cat-letter-header {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--color-border);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem;
}

.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.cat-item:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .toc-sidebar,
  .docs-toc,
  .toc-mobile,
  .toc-mobile-label,
  .sidebar,
  .nav-social,
  .site-footer,
  .copy-button,
  .giscus-container,
  .hide-print {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .article-layout,
  .container-fluid.docs > .row {
    grid-template-columns: 1fr;
  }

  a { color: inherit; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .article-layout,
  .container-fluid.docs > .row {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  .nav-social {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 2rem;
    gap: 0.75rem;
    z-index: 99;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 640px) {
  :root {
    --thumb-size: 48px;
    --header-height: 52px;
  }

  .homepage-hero {
    min-height: 200px;
  }

  .homepage-hero-title {
    font-size: 1.75rem;
  }

  .homepage-hero-subtitle {
    font-size: 0.8rem;
  }

  .hero-band {
    padding: 0.4rem 1.25rem;
  }

  .article-hero {
    min-height: 220px;
  }

  .article-hero-content h1 {
    font-size: 1.75rem;
  }

  .article-hero-content {
    padding: 1.25rem 1rem 1rem;
  }

  .article-hero-meta {
    font-size: 0.75rem;
  }

  .site-header {
    padding: 0 1rem;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .mobile-nav a {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.25rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .featured-post-title {
    font-size: 1.75rem;
  }

  .featured-post-thumb {
    width: 100px;
  }

  .post-thumb {
    width: 72px;
    height: 48px;
    min-width: 72px;
  }

  .post-row {
    gap: 0.5rem;
  }

  .post-date {
    font-size: 0.7rem;
  }

  .post-category {
    display: none;
  }

  .article-title,
  .title-box h1 {
    font-size: 2rem;
  }

  .article-layout,
  .container-fluid.docs {
    padding: 1rem;
  }

}

/* --- Responsive: Small Mobile (≤400px) --- */
@media (max-width: 400px) {
  .post-thumb {
    width: 60px;
    height: 40px;
    min-width: 60px;
  }

  .post-date {
    display: none;
  }
}

/* --- Utility classes used by inherited theme templates --- */
.w-100 { width: 100%; }
.w-50 { width: 50%; }
.db { display: block; }
.dib { display: inline-block; }
.dn { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.tc { text-align: center; }
.tr { text-align: right; }
.tl { text-align: left; }
.fr { float: right; }
.fl { float: left; }
.cf::after { content: ""; display: table; clear: both; }
.pa2 { padding: 0.5rem; }
.pa3 { padding: 1rem; }
.pa4 { padding: 2rem; }
.ph3 { padding-left: 1rem; padding-right: 1rem; }
.ph4 { padding-left: 2rem; padding-right: 2rem; }
.ph5-l { padding-left: 4rem; padding-right: 4rem; }
.pv2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pv3 { padding-top: 1rem; padding-bottom: 1rem; }
.pv4 { padding-top: 2rem; padding-bottom: 2rem; }
.pb3 { padding-bottom: 1rem; }
.pb4 { padding-bottom: 2rem; }
.pb6 { padding-bottom: 8rem; }
.pt3 { padding-top: 1rem; }
.pt4 { padding-top: 2rem; }
.pt5-l { padding-top: 4rem; }
.mt0 { margin-top: 0; }
.mt3 { margin-top: 1rem; }
.mt5 { margin-top: 4rem; }
.mb0 { margin-bottom: 0; }
.mb2 { margin-bottom: 0.5rem; }
.mb4 { margin-bottom: 2rem; }
.mr2 { margin-right: 0.5rem; }
.ma0 { margin: 0; }
.f2 { font-size: 2.25rem; }
.f3 { font-size: 1.5rem; }
.f5 { font-size: 1rem; }
.f6 { font-size: 0.875rem; }
.f7 { font-size: 0.75rem; }
.fw1 { font-weight: 100; }
.fw3 { font-weight: 300; }
.lh-title { line-height: 1.25; }
.lh-copy { line-height: 1.6; }
.no-underline { text-decoration: none; }
.b { font-weight: bold; }
.i { font-style: italic; }
.sans-serif { font-family: var(--font-ui); }
.near-white { color: rgba(255,255,255,0.9); }
.white { color: white; }
.white-50 { color: rgba(255,255,255,0.5); }
.gray { color: #777; }
.bg-white { background-color: var(--color-surface); }
.bg-black { background-color: #000; }
.bg-black-30 { background-color: rgba(0,0,0,0.3); }
.bg-black-60 { background-color: rgba(0,0,0,0.6); }
.bg-mid-gray { background-color: #555; }
.ba { border: 1px solid; }
.bb { border-bottom: 1px solid; }
.bt { border-top: 1px solid; }
.b--silver { border-color: silver; }
.br2 { /* sharp corners override */ }
.br3 { /* sharp corners override */ }
.br-100 { /* sharp corners override - except for avatars */ }
.dim { opacity: 1; transition: opacity 0.15s ease-in; }
.dim:hover { opacity: 0.5; }
.cover { background-size: cover; }
.bg-top { background-position: top; }
.center { margin-left: auto; margin-right: auto; }
.mw-100 { max-width: 100%; }
.measure-wide { max-width: 34em; }
.nested-copy-line-height p { line-height: 1.6; }
.nested-links a { color: var(--color-link); }
.nested-links a:hover { color: var(--color-link-hover); }
.ttu { text-transform: uppercase; }
.display-print { display: none; }

@media (min-width: 30em) {
  .flex-row-ns { flex-direction: row; }
  .items-start { align-items: flex-start; }
  .w4-m { width: 8rem; }
  .h4-m { height: 8rem; }
  .mb0-ns { margin-bottom: 0; }
  .pl3-ns { padding-left: 1rem; }
  .pv3-ns { padding-top: 1rem; padding-bottom: 1rem; }
}

@media (min-width: 60em) {
  .w5-ns { width: 16rem; }
  .h5-ns { height: 16rem; }
  .w-third-l { width: 33.33%; }
  .pv4-l { padding-top: 2rem; padding-bottom: 2rem; }
  .tc-l { text-align: center; }
  .mt5-l { margin-top: 4rem; }
  .pt5-l { padding-top: 4rem; }
  .f5-l { font-size: 1rem; }
}

/* Border-box utility */
.border-box { box-sizing: border-box; }

/* W6 - used by retro cards */
.w6 { max-width: 32rem; }

/* Header wrapper */
.header-wrapper {
  position: relative;
  overflow: hidden;
}

/* Glass header - simplified for redesign (used by inherited pages) */
.glass-header {
  display: none; /* Hidden in the new design — replaced by site-header */
}

.glass-nav {
  display: none; /* Hidden in the new design — replaced by site-header */
}

/* Retro card - simplified fallback for any inherited pages */
.retro-card-container {
  margin-bottom: 1rem;
}

.retro-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1rem;
  position: relative;
}

.retro-card-inner {
  position: relative;
  z-index: 1;
}

.retro-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.retro-card-content { }

.retro-card-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.retro-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.retro-card-title a {
  color: var(--color-text);
  text-decoration: none;
}

.retro-card-title a:hover {
  color: var(--color-link);
}

.retro-card-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.retro-card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.retro-card-date {
  display: none; /* Date shown in meta instead */
}

.retro-card-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.retro-card-clickable:hover {
  border-color: var(--color-text-muted);
}

@media (min-width: 30em) {
  .retro-card-image {
    width: 8rem;
    height: 8rem;
    min-width: 8rem;
    margin-bottom: 0;
  }
}

/* Flex column override */
.flex-column { flex-direction: column; }
