/* Dev Logs - matches app style (Inter, #141414 bg, gold accent) */

.dev-logs-body {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  background: #141414;
  color: #d8d8d8;
  margin: 0;
  overflow: hidden;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.dev-logs-layout {
  display: flex;
  height: calc(100vh - 52px); /* 52px = top nav height */
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.dev-logs-sidebar {
  width: 240px;
  background: #111;
  border-right: 1px solid #1e1e1e;
  padding: 1.5rem 0.75rem;
  height: 100%;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 10;
}

.dev-logs-sidebar h2 {
  font-size: 0.68rem;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 0.5rem 0.75rem;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 0.75rem;
}

.log-nav-item {
  display: block;
  padding: 0.55rem 0.75rem;
  margin-bottom: 1px;
  border-radius: 4px;
  color: #888;
  text-decoration: none;
  font-size: 0.83rem;
  line-height: 1.35;
  transition: color 0.15s, background 0.15s;
}

.log-nav-item:hover {
  color: #d8d8d8;
  background: #1a1a1a;
}

.log-nav-item.active {
  color: #c8a96e;
  background: rgba(200, 169, 110, 0.08);
}

.log-nav-item .log-date {
  font-size: 0.7rem;
  color: #444;
  margin-top: 2px;
}

.log-nav-item.active .log-date {
  color: #7a6030;
}

/* ── Content ─────────────────────────────────────────────────────────────── */

.dev-logs-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3rem 4rem;
}

/* Sidebar toggle - mobile only */
.sidebar-toggle {
  display: none;
}

/* ── Log entries ─────────────────────────────────────────────────────────── */

.log-entry {
  max-width: 780px;
  background: #181818;
  border: 1px solid #212121;
  border-radius: 8px;
  padding: 2.5rem 2.75rem;
  margin-bottom: 2rem;
  /* Clears fixed top nav when jumping from sidebar / hash navigation */
  scroll-margin-top: 4.5rem;
}

.log-entry:last-child {
  margin-bottom: 2rem;
}

.log-entry--highlight {
  border-left: 3px solid rgba(200, 169, 110, 0.45);
}

.log-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #212121;
}

.log-header .log-date {
  display: inline-block;
  font-size: 0.68rem;
  color: #7a6235;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: rgba(200, 169, 110, 0.07);
  border: 1px solid rgba(200, 169, 110, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.85rem;
}

.log-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e8e4dc;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.log-entry--highlight .log-title {
  color: #c8a96e;
}

/* ── Content typography ──────────────────────────────────────────────────── */

.log-content {
  font-size: 0.925rem;
  line-height: 1.85;
  color: #b0a898;
}

/* Log file bodies historically used h3/h4. The renderer promotes them to
   h2/h3 so the detail page hierarchy is h1 (title) → h2 → h3. CSS selectors
   below target the promoted tags. */
.log-content h2 {
  color: #d8d0c0;
  font-size: 1.0rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(200, 169, 110, 0.4);
}

.log-content h2.log-pro-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: #f2cae8;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 0.55rem 0.85rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid rgba(210, 90, 195, 0.7);
  border-radius: 0 6px 6px 0;
  background:
    linear-gradient(90deg,
      rgba(98, 32, 90, 0.28) 0%,
      rgba(60, 22, 64, 0.12) 45%,
      rgba(60, 22, 64, 0) 100%);
  text-shadow:
    0 0 16px rgba(210, 90, 195, 0.35),
    0 1px 0 rgba(20, 4, 12, 0.85);
  box-shadow:
    inset 0 0 24px rgba(205, 75, 185, 0.08),
    0 0 18px rgba(205, 75, 185, 0.06);
}

.log-content h3 {
  color: #c0b8a8;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.log-content ul,
.log-content ol {
  margin: 0.75rem 0 1rem;
  padding-left: 1.5rem;
}

.log-content li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

.log-content p {
  margin: 0 0 1rem;
}

.log-content a {
  color: #7db3d3;
  text-decoration: underline;
  text-decoration-color: rgba(125, 179, 211, 0.35);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.log-content a:hover {
  color: #9bc5e0;
  text-decoration-color: rgba(155, 197, 224, 0.7);
}

.log-content a:visited {
  color: #a88bc4;
  text-decoration-color: rgba(168, 139, 196, 0.35);
}

.log-content blockquote {
  margin: 1.25rem 0;
  padding: 0.875rem 1.125rem;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid #242424;
  color: #888;
  font-style: italic;
}

.log-content blockquote.log-callout {
  background: rgba(200, 169, 110, 0.06);
  border-left-color: rgba(200, 169, 110, 0.3);
  font-style: normal;
  color: #c0b0a0;
}

.log-content code {
  background: #1a1a1a;
  border: 1px solid #242424;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  color: #a0d0a0;
}

.log-content video {
  max-width: min(100%, 860px);
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1.25rem auto;
  border: 1px solid #242424;
}

.log-content .log-placeholder-media {
  margin: 1.5rem 0;
  text-align: center;
}

.log-content .log-placeholder-media img,
.log-content .log-screenshot {
  max-width: min(100%, 860px);
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid #242424;
}

.log-content .log-placeholder-media img.log-screenshot-small,
.log-content .log-screenshot.log-screenshot-small {
  max-width: min(100%, 360px);
}

/* Supporter badge preview - same scale as supporter page .sup-emblem (dev logs do not load supporter.css) */
.log-content .log-supporter-badge-wrap {
  margin: 1.5rem 0;
  text-align: center;
}

@keyframes log-supporter-badge-shine {
  0%, 15% {
    transform: translateX(-160%) skewX(-12deg);
  }
  65%, 100% {
    transform: translateX(320%) skewX(-12deg);
  }
}

@keyframes log-supporter-badge-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(40, 140, 255, 0.22),
      0 0 80px rgba(20, 100, 220, 0.1),
      0 0 2px rgba(160, 220, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 55px rgba(40, 140, 255, 0.38),
      0 0 110px rgba(20, 100, 220, 0.18),
      0 0 2px rgba(160, 220, 255, 0.62);
  }
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter .log-tier-supporter-label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c8e8ff;
  text-shadow:
    0 0 20px rgba(80, 170, 255, 0.6),
    0 1px 0 rgba(0, 20, 40, 0.8);
  line-height: 1;
  white-space: nowrap;
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter,
.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter:visited {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg,
      #152a42 0%,
      #1c3d5e 28%,
      #143552 55%,
      #0f2840 100%);
  border: 1px solid rgba(100, 190, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(40, 140, 255, 0.22),
    0 0 80px rgba(20, 100, 220, 0.1),
    0 0 2px rgba(160, 220, 255, 0.4);
  overflow: hidden;
  vertical-align: middle;
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.11) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-12deg);
  pointer-events: none;
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 0;
  background: linear-gradient(to top, rgba(120, 200, 255, 0.1), transparent);
  border-radius: 0 0 7px 7px;
  pointer-events: none;
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter:hover {
  border-color: rgba(140, 210, 255, 0.55);
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter:hover .log-tier-supporter-label {
  color: #dff4ff;
  text-shadow:
    0 0 24px rgba(80, 170, 255, 0.75),
    0 1px 0 rgba(0, 20, 40, 0.8);
}

.log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter:focus-visible {
  outline: 2px solid rgba(140, 210, 255, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter {
    transition: border-color 0.2s ease;
    animation: log-supporter-badge-glow 3.5s ease-in-out infinite;
  }

  .log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter::before {
    animation: log-supporter-badge-shine 5.5s ease-in-out 1.5s infinite;
  }

  .log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter .log-tier-supporter-label {
    transition: color 0.2s ease, text-shadow 0.25s ease;
  }
}

@media (max-width: 640px) {
  .log-content .log-supporter-badge-wrap a.log-tier-badge.log-tier-supporter .log-tier-supporter-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

/* Pro badge preview - exact /pro hero badge (dev logs do not load pro.css) */
.log-content .log-pro-badge-wrap {
  margin: 1.5rem 0;
  text-align: center;
}

.log-content .log-pro-badge-wrap .log-pro-badge-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.log-content .log-pro-badge-wrap .log-pro-badge-link:focus-visible {
  outline: none;
}

.log-content .log-pro-badge-wrap .log-pro-badge-link:focus-visible .pro-hero-badge {
  outline: 2px solid rgba(225, 145, 210, 0.85);
  outline-offset: 3px;
}

@keyframes log-pro-badge-shine {
  0%, 15% { transform: translateX(-160%) skewX(-12deg); }
  65%, 100% { transform: translateX(320%) skewX(-12deg); }
}

@keyframes log-pro-badge-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(205, 75, 185, 0.22),
      0 0 80px rgba(180, 30, 175, 0.1),
      0 0 2px rgba(255, 180, 245, 0.4);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.5) inset,
      0 2px 8px rgba(0, 0, 0, 0.5),
      0 0 55px rgba(210, 90, 195, 0.38),
      0 0 110px rgba(180, 30, 175, 0.18),
      0 0 2px rgba(255, 200, 245, 0.62);
  }
}

.log-content .log-pro-badge-wrap .pro-hero-badge {
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  background:
    linear-gradient(165deg,
      rgba(255, 255, 255, 0.13) 0%,
      rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg,
      #3c1640 0%,
      #62205a 28%,
      #4a1746 55%,
      #310d30 100%);
  border: 1px solid rgba(210, 90, 195, 0.5);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(205, 75, 185, 0.22),
    0 0 80px rgba(180, 30, 175, 0.1),
    0 0 2px rgba(255, 180, 245, 0.4);
  overflow: hidden;
  vertical-align: middle;
}

.log-content .log-pro-badge-wrap .pro-hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.13) 50%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-12deg);
  pointer-events: none;
}

.log-content .log-pro-badge-wrap .pro-hero-badge::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 0;
  background: linear-gradient(to top, rgba(225, 145, 210, 0.14), transparent);
  border-radius: 0 0 7px 7px;
  pointer-events: none;
}

.log-content .log-pro-badge-wrap .pro-hero-badge-label {
  position: relative;
  z-index: 1;
  display: block;
  font-family: 'Russo One', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2cae8;
  text-shadow:
    0 0 20px rgba(210, 90, 195, 0.6),
    0 1px 0 rgba(20, 4, 18, 0.85);
  line-height: 1;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .log-content .log-pro-badge-wrap .pro-hero-badge {
    animation: log-pro-badge-glow 3.5s ease-in-out infinite;
  }

  .log-content .log-pro-badge-wrap .pro-hero-badge::before {
    animation: log-pro-badge-shine 5.5s ease-in-out 1.5s infinite;
  }
}

@media (max-width: 640px) {
  .log-content .log-pro-badge-wrap .pro-hero-badge {
    padding: 0.6rem 1.4rem;
  }

  .log-content .log-pro-badge-wrap .pro-hero-badge-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

/* ── Addendum ────────────────────────────────────────────────────────────── */

.log-addendum {
  margin-top: 1.75rem;
  padding: 0.875rem 1rem;
  background: rgba(90, 138, 90, 0.07);
  border: 1px solid rgba(90, 138, 90, 0.2);
  border-radius: 4px;
  color: #c0c8c0;
  font-size: 0.9rem;
}

.log-addendum p:first-child { margin-top: 0; }
.log-addendum p:last-child { margin-bottom: 0; }

.log-addendum .log-addendum-title {
  font-weight: 600;
  color: #c8a96e;
  margin-bottom: 0.5rem;
}

/* ── Feature badge ───────────────────────────────────────────────────────── */

.feature-badge {
  display: inline-block;
  background: rgba(90, 138, 90, 0.1);
  border: 1px solid rgba(90, 138, 90, 0.2);
  color: #90c490;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

/* Index and detail pages scroll the document; the legacy single-page layout
   used a non-scrolling flex container, which we override here. */
.dev-logs-body:has(.dev-logs-index),
.dev-logs-body--detail {
  overflow: auto;
}

/* ── Detail page (single log, centered reading column) ───────────────────── */

.dev-log-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Sticky sub-header. Desktop: a floating banner constrained to the article
   card width, sitting just below the main nav. Mobile: a flush full-width
   bar against the nav (the layout that worked best on small screens).
   In both cases the banner takes over from the article title once it
   scrolls behind the nav. */
.dev-log-sticky-header {
  position: fixed;
  top: 60px; /* anchored under the main nav */
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none; /* re-enabled on inner banner only */
  padding-top: 10px; /* breathing room between nav edge and floating banner */
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dev-log-sticky-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dev-log-sticky-header-inner {
  pointer-events: auto;
  /* Matches the .log-entry visible card width: .dev-log-page (780px)
     minus its horizontal padding (1.5rem each side). */
  max-width: 732px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 6px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.dev-log-sticky-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 32px;
  padding: 0 0.7rem 0 0.6rem;
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-left: 2px solid rgba(200, 169, 110, 0.6);
  border-radius: 3px;
  color: #c8a96e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.dev-log-sticky-back-label {
  display: inline-block;
}

.dev-log-sticky-back svg {
  transition: transform 0.18s ease;
}

.dev-log-sticky-back:hover {
  color: #d9be8a;
  border-color: rgba(200, 169, 110, 0.55);
  border-left-color: rgba(200, 169, 110, 0.85);
  background: rgba(200, 169, 110, 0.06);
}

.dev-log-sticky-back:hover svg {
  transform: translateX(-2px);
}

.dev-log-sticky-back:focus-visible {
  outline: 2px solid rgba(200, 169, 110, 0.6);
  outline-offset: 2px;
}

.dev-log-sticky-context {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.dev-log-sticky-number {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8a96e;
  flex-shrink: 0;
}

.dev-log-sticky-divider {
  color: #3a352d;
  flex-shrink: 0;
  font-weight: 600;
}

.dev-log-sticky-name {
  font-size: 0.88rem;
  color: #d8d0c0;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

@media (max-width: 640px) {
  /* On mobile the banner returns to a flush bar against the nav. */
  .dev-log-sticky-header {
    padding-top: 0;
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid rgba(200, 169, 110, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  }

  .dev-log-sticky-header-inner {
    max-width: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 1rem;
    height: 42px;
    gap: 0.65rem;
  }

  .dev-log-sticky-back {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .dev-log-sticky-back-label {
    display: none;
  }

  .dev-log-sticky-number {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .dev-log-sticky-name {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dev-log-sticky-header {
    transition: opacity 0.15s linear;
    transform: none;
  }

  .dev-log-sticky-header.is-visible {
    transform: none;
  }

  .dev-log-sticky-back svg,
  .dev-log-sticky-back:hover svg {
    transition: none;
    transform: none;
  }
}

/* On the detail page the article fills the centered column - drop the
   side-by-side max-width that the legacy multi-log layout used. */
.dev-log-page .log-entry {
  max-width: none;
  margin-bottom: 1.5rem;
}

.dev-log-page .log-pager {
  max-width: none;
}

@media (max-width: 640px) {
  .dev-log-page {
    padding: 1.5rem 1rem 3rem;
  }
}

/* ── Index page ──────────────────────────────────────────────────────────── */

.dev-logs-index {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.dev-logs-index-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e1e1e;
}

.dev-logs-index-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #e8e4dc;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.dev-logs-index-lede {
  font-size: 0.95rem;
  color: #888;
  margin: 0;
}

.dev-logs-index-empty {
  color: #666;
  text-align: center;
  padding: 3rem 0;
}

/* ── Hero: latest devlog (full width, prominent) ─────────────────────────── */

.dev-logs-hero {
  position: relative;
  display: block;
  background:
    /* Warm lift: brightness without heavy gold saturation */
    radial-gradient(ellipse 100% 80% at 12% -5%, rgba(255, 245, 228, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 90% 65% at 8% 0%, rgba(210, 195, 165, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 65% 80% at 100% 100%, rgba(20, 16, 12, 0.1) 0%, transparent 65%),
    linear-gradient(155deg, #211e1b 0%, #1d1b18 50%, #1a1816 100%);
  border: 1px solid rgba(255, 248, 235, 0.08);
  border-radius: 12px;
  padding: 2.25rem 2.5rem 2rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 1px 0 rgba(210, 195, 165, 0.07) inset,
    0 -1px 0 rgba(0, 0, 0, 0.22) inset,
    0 8px 28px rgba(0, 0, 0, 0.26);
  margin-bottom: 3rem;
}

.dev-logs-hero:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 248, 235, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.055) inset,
    0 1px 0 rgba(210, 195, 165, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.26) inset,
    0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Pro variant: applied when the latest log carries a "Pro Tier" / "Pro" tag.
   Keeps the gold spotlight in the upper-left (the dev log is still gold-themed)
   and mixes a Pro-magenta glow into the lower-right where the dark falloff
   used to live, so the card visually nods at the Pro content without losing
   its devlog identity. */
.dev-logs-hero--pro {
  background:
    radial-gradient(ellipse 100% 80% at 12% -5%, rgba(255, 245, 228, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 90% 65% at 8% 0%, rgba(210, 195, 165, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 70% 75% at 100% 100%, rgba(210, 90, 195, 0.035) 0%, transparent 60%),
    linear-gradient(155deg, #211e1b 0%, #1d1b18 50%, #1a1718 100%);
}

.dev-logs-hero--pro:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.055) inset,
    0 1px 0 rgba(210, 195, 165, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.26) inset,
    0 12px 32px rgba(60, 22, 64, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.28);
}

/* Air variant: applied to the Open Skies release (aircraft designer / air
   doctrines). Unlike the Pro variant, this one drops the warm gold spotlight
   entirely - a cool, light sky highlight in the upper-left pairs with the
   blue glow in the lower-right instead of fighting it. */
.dev-logs-hero--air {
  background:
    radial-gradient(ellipse 100% 80% at 12% -5%, rgba(225, 245, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 90% 65% at 8% 0%, rgba(180, 215, 240, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 70% 75% at 100% 100%, rgba(90, 175, 235, 0.065) 0%, transparent 60%),
    linear-gradient(155deg, #1c2024 0%, #1a1d20 50%, #161b1f 100%);
  border-color: rgba(210, 235, 255, 0.08);
}

.dev-logs-hero--air:hover {
  border-color: rgba(210, 235, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.055) inset,
    0 1px 0 rgba(200, 225, 245, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.26) inset,
    0 12px 32px rgba(20, 50, 80, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.28);
}

/* "Latest devlog" marker. A thin gold vertical bar (matching the highlight
   accent used on .log-entry--highlight elsewhere in the app) followed by a
   small stenciled label and a barely-visible pulse dot at the end. Reads
   quieter than the previous solid plaque so it sits with the new toned-down
   gradient rather than fighting it. */
.dev-logs-hero-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  line-height: 1;
}

.dev-logs-hero-marker-bar {
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, rgba(220, 205, 175, 0.9) 0%, rgba(200, 169, 110, 0.35) 100%);
  border-radius: 1px;
  box-shadow: 0 0 5px rgba(210, 195, 165, 0.22);
}

.dev-logs-hero-marker-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4c4a8;
}

.dev-logs-hero-marker-pulse {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(220, 205, 175, 0.85);
  box-shadow: 0 0 0 0 rgba(210, 195, 165, 0.32);
}

@media (prefers-reduced-motion: no-preference) {
  .dev-logs-hero-marker-pulse {
    animation: dev-logs-hero-marker-pulse 4s ease-out infinite;
  }
}

@keyframes dev-logs-hero-marker-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(210, 195, 165, 0.32); }
  70%  { box-shadow: 0 0 0 4px rgba(210, 195, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(210, 195, 165, 0); }
}


.dev-logs-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.dev-logs-hero-number {
  font-size: 0.72rem;
  color: #c8a96e;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.dev-logs-hero-date {
  font-size: 0.8rem;
  color: #6b6358;
}

.dev-logs-hero-date::before {
  content: '·';
  margin-right: 0.75rem;
  color: #3a352d;
}

.dev-logs-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f0eadc;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.dev-logs-hero-excerpt {
  font-size: 1rem;
  line-height: 1.7;
  color: #b0a898;
  margin: 0 0 1.25rem;
  max-width: 680px;
}

.dev-logs-hero-cta {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c8a96e;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(200, 169, 110, 0.35);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.dev-logs-hero:hover .dev-logs-hero-cta {
  color: #e0c08a;
  border-color: rgba(224, 192, 138, 0.6);
}

/* ── Tag pills (used on hero, archive cards, and detail header) ──────────── */

.dev-logs-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dev-logs-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #b0a898;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid #2a2723;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.dev-logs-tags--hero {
  margin: 0.25rem 0 1.35rem;
}

.dev-logs-tags--hero .dev-logs-tag {
  font-size: 0.74rem;
  padding: 0.3rem 0.75rem;
  color: #c0b8a8;
  background: rgba(200, 169, 110, 0.06);
  border-color: rgba(200, 169, 110, 0.22);
}

.dev-logs-tags--archive {
  margin: 0 0 0.85rem;
  gap: 0.3rem;
}

.dev-logs-tags--archive .dev-logs-tag {
  font-size: 0.66rem;
  padding: 0.18rem 0.5rem;
}

.dev-logs-tags--detail {
  margin: 0.85rem 0 0;
}

.dev-logs-tags--detail .dev-logs-tag {
  font-size: 0.72rem;
  color: #b0a898;
  background: rgba(200, 169, 110, 0.05);
  border-color: rgba(200, 169, 110, 0.2);
}

/* ── Archive grid ────────────────────────────────────────────────────────── */

/* "Previously" archive section uses the brand teal as a secondary accent,
   matching the landing page's "news / announcement" treatment. This keeps
   the page from feeling monotone (the gold hero card stays the focal point,
   teal signals the chronological backlog as secondary news.) */
.dev-logs-archive-heading {
  position: relative;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(52, 148, 124, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #1e1e1e;
}

.dev-logs-archive-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 1px;
  background: rgba(52, 148, 124, 0.55);
}

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

.dev-logs-archive-item {
  margin: 0;
  display: flex;
}

.dev-logs-archive-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #181818;
  border: 1px solid #212121;
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.dev-logs-archive-card:hover {
  border-color: rgba(52, 148, 124, 0.32);
  background: #1c1c1c;
  transform: translateY(-1px);
}

.dev-logs-archive-item--highlight .dev-logs-archive-card {
  border-left: 3px solid rgba(52, 148, 124, 0.42);
}

.dev-logs-archive-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.dev-logs-archive-number {
  font-size: 0.68rem;
  color: #5cc4a3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: rgba(52, 148, 124, 0.08);
  border: 1px solid rgba(52, 148, 124, 0.22);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.dev-logs-archive-date {
  font-size: 0.72rem;
  color: #666;
}

.dev-logs-archive-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8e4dc;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}

.dev-logs-archive-excerpt {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #8a8378;
  margin: 0 0 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dev-logs-archive-readmore {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(52, 148, 124, 0.9);
  letter-spacing: 0.01em;
}

.dev-logs-archive-card:hover .dev-logs-archive-readmore {
  color: #5cc4a3;
}

@media (max-width: 640px) {
  .dev-logs-index {
    padding: 2rem 1rem 3rem;
  }

  .dev-logs-index-header h1 {
    font-size: 1.65rem;
  }

  .dev-logs-hero {
    padding: 1.75rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
  }

  .dev-logs-hero-title {
    font-size: 1.55rem;
  }

  .dev-logs-hero-excerpt {
    font-size: 0.92rem;
  }

  .dev-logs-archive-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Detail page: previous / next pager ──────────────────────────────────── */

.log-pager {
  max-width: 780px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.log-pager-link {
  display: block;
  padding: 0.85rem 1rem;
  background: #181818;
  border: 1px solid #212121;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.log-pager-link:hover {
  border-color: rgba(200, 169, 110, 0.35);
  background: #1c1c1c;
}

.log-pager-next {
  text-align: right;
}

.log-pager-direction {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.log-pager-title {
  font-size: 0.88rem;
  color: #d8d0c0;
  font-weight: 500;
  line-height: 1.3;
}

.log-nav-index {
  font-style: italic;
  color: #666 !important;
}

.log-nav-index:hover {
  color: #d8d8d8 !important;
}

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

  .log-pager-next {
    text-align: left;
  }
}

/* ── Mobile overlay ──────────────────────────────────────────────────────── */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 50;
}

.mobile-overlay.active {
  display: block;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .dev-logs-body {
    overflow: auto;
  }

  .dev-logs-layout {
    height: auto;
    overflow: visible;
  }

  .dev-logs-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 260px;
    padding-top: 1rem;
    transition: left 0.25s ease;
    z-index: 60;
    border-right: 1px solid #242424;
  }

  .dev-logs-sidebar.mobile-open {
    left: 0;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #242424;
    border-radius: 4px;
    color: #888;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    margin-bottom: 1.75rem;
    transition: color 0.15s, border-color 0.15s;
  }

  .sidebar-toggle:hover {
    color: #d8d8d8;
    border-color: #333;
  }

  .dev-logs-content {
    padding: 1.5rem 1rem 3rem;
  }

  .log-entry {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
  }

  .log-title {
    font-size: 1.35rem;
  }
}
