/* blog.kituwa.com — the small layer the shared Cirrus blog styles do not cover. */

/* Fact strip reused by launch and campaign posts. */
.blog-cirrus .news-article__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  padding: .9rem 1.1rem;
  margin: 1.2em 0;
  background: var(--cir-paper-soft);
  border: 1px solid var(--cir-line);
  border-radius: 10px;
  font-size: .92rem;
}
.blog-cirrus .news-article__facts span strong { color: var(--cir-ink-deep); }

.blog-cirrus .blog-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.blog-cirrus .blog-tags a {
  font-family: var(--cir-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cir-muted);
  border: 1px solid var(--cir-line);
  border-radius: 999px;
  padding: .28rem .7rem;
}
.blog-cirrus .blog-tags a:hover { color: var(--cir-teal); border-color: var(--cir-teal); }

/* Timeline page. */
.tl-body { padding: 40px 0 80px; }
.tl-month + .tl-month { margin-top: 2.6rem; }
.tl-month h2 {
  font-family: var(--cir-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--cir-line);
}
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .62rem 0;
  border-bottom: 1px solid var(--cir-line);
}
.tl-list time {
  font-family: var(--cir-mono);
  font-size: .76rem;
  color: var(--cir-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tl-list a { color: var(--cir-ink); font-weight: 600; text-decoration: none; }
.tl-list a:hover { color: var(--cir-teal); }
.tl-kind {
  font-family: var(--cir-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cir-muted);
}
@media (max-width: 640px) {
  .tl-list li { grid-template-columns: 1fr; gap: .15rem; }
  .tl-kind { display: none; }
}

/* Watchdog page. */
.wd-body { padding: 40px 0 80px; }
.wd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.4rem;
}
.wd-card {
  background: var(--cir-paper-soft);
  border: 1px solid var(--cir-line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.wd-card h2 { margin: 0 0 .5rem; font-size: 1rem; font-family: var(--cir-display); }
.wd-card p { margin: 0; font-size: .92rem; color: var(--cir-muted); }
.wd-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.wd-table th,
.wd-table td {
  text-align: left;
  padding: .5rem .6rem;
  border-bottom: 1px solid var(--cir-line);
}
.wd-table th {
  font-family: var(--cir-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cir-muted);
}

/* ---- Dark theme ---------------------------------------------------------
   The house standard: every site ships light and dark. The Cirrus blog was
   light-only, so this layer repaints the tokens and the few surfaces the blog
   actually uses. */
@media (prefers-color-scheme: dark) {
  :root {
    --cir-paper: #0b1721;
    --cir-paper-soft: #10202e;
    --cir-paper-blue: #122436;
    --cir-ink: #e9f1f7;
    --cir-ink-deep: #f6fafd;
    --cir-muted: #9fb3c4;
    --cir-soft: #7d93a6;
    --cir-line: #20394a;
    --cir-line-strong: #2b4b5f;
    --cir-teal: #4fd1c5;
    --cir-teal-dark: #38b2a6;
    --cir-teal-soft: #12332f;
    --cir-gold-soft: #33280f;
    --cir-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.7);
  }
  html, body, .blog-cirrus { background: #0b1721; color: var(--cir-ink); }
  .site-header { background: rgba(11, 23, 33, .94); border-bottom: 1px solid var(--cir-line); }
  .site-header .site-brand__text,
  .site-nav a, .site-actions a { color: var(--cir-ink); }
  .site-footer { background: #08131c; color: #c9d8e4; }
  .site-footer a { color: #dbe7f0; }
  .blog-cirrus .blog-hero,
  .blog-cirrus .blog-article__hero {
    background:
      radial-gradient(55% 48% at 12% 8%, rgba(30, 62, 88, .55), transparent 70%),
      radial-gradient(50% 44% at 88% 4%, rgba(24, 54, 78, .5), transparent 72%),
      linear-gradient(180deg, #0f2233 0%, #0c1a26 55%, #0b1721 100%);
  }
  .blog-cirrus .blog-hero .cir-cloud,
  .blog-cirrus .blog-article__hero .cir-cloud { background: rgba(40, 76, 104, .35); }
  .blog-cirrus .blog-hero__stats div {
    background: rgba(16, 32, 46, .85);
    border-color: var(--cir-line);
  }
  .blog-cirrus .blog-hero__stats strong { color: var(--cir-ink); }
  .blog-cirrus .blog-card,
  .blog-cirrus .blog-featured,
  .blog-cirrus .blog-search input,
  .blog-cirrus .wd-card,
  .blog-cirrus .blog-featured__art,
  .blog-cirrus .blog-card__media { background: #10202e; border-color: var(--cir-line); }
  .blog-cirrus .blog-card h3 a,
  .blog-cirrus .blog-featured h2 a { color: var(--cir-ink); }
  .blog-cirrus .blog-card p,
  .blog-cirrus .blog-featured__dek { color: var(--cir-muted); }
  .blog-cirrus .blog-filters button {
    background: #10202e; color: var(--cir-ink); border-color: var(--cir-line);
  }
  .blog-cirrus .blog-filters button.is-active { background: var(--cir-teal-soft); color: var(--cir-teal); }
  .blog-cirrus .blog-search input { color: var(--cir-ink); }
  .blog-cirrus .article-body { color: #c6d5e2; }
  .blog-cirrus .article-body h2,
  .blog-cirrus .article-body h3,
  .blog-cirrus .article-body strong { color: var(--cir-ink); }
  .blog-cirrus .article-body code { background: #10202e; border-color: var(--cir-line); }
  .blog-cirrus .news-article__facts { background: #10202e; border-color: var(--cir-line); }
  .blog-cirrus .blog-tags a { color: var(--cir-muted); border-color: var(--cir-line); }
  .tl-list li { border-color: var(--cir-line); }
  .tl-list a { color: var(--cir-ink); }
  .wd-table th, .wd-table td { border-color: var(--cir-line); }
  .cir-btn { color: #06231f; }
}

/* Daily entry cover — the same frame every day, only the photograph changes. */
.blog-cirrus .blog-article__art {
  margin: 26px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1712;
  box-shadow: 0 18px 40px rgba(8, 24, 18, .18);
}
.blog-cirrus .blog-article__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 720px) {
  .blog-cirrus .blog-article__art { border-radius: 12px; margin-top: 18px; }
}

/* Pagination — twenty posts per page. */
.blog-cirrus .blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 36px 0 8px;
}
.blog-cirrus .blog-pager a,
.blog-cirrus .blog-pager__page,
.blog-cirrus .blog-pager__step {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--cir-line);
  border-radius: 999px;
  font: 600 13px/1 var(--cir-sans, system-ui);
  color: var(--cir-teal-dark);
  background: #ffffff;
  text-decoration: none;
}
.blog-cirrus .blog-pager__page { min-width: 40px; justify-content: center; padding: 0 10px; }
.blog-cirrus .blog-pager a:hover { border-color: var(--cir-teal); color: var(--cir-teal-dark); }
.blog-cirrus .blog-pager .is-current {
  background: var(--cir-teal);
  border-color: var(--cir-teal);
  color: #06231f;
}
.blog-cirrus .blog-pager__gap { color: var(--cir-soft); padding: 0 4px; }
