/* Blog pages opt out of the legal-article hide rule by using .blog-main. */
.blog-main { padding: 0 0 72px; }
.blog-main [data-lang-block] { display: none; }
.blog-main [data-lang-block].active { display: revert; }
.blog-main h1,
.blog-main h2,
.blog-main h3 { letter-spacing: -0.03em; }
.blog-main h2 { font-size: clamp(1.45rem, 2vw, 1.85rem); margin: 2.1rem 0 0.7rem; }
.blog-main h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }

.ph { position: relative; display: block; background: transparent; }
.cover-frame { aspect-ratio: 16 / 9; overflow: hidden; }
.cover-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.ph-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #082126;
  color: #f4f8f9;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.blog-hero {
  padding: 84px 0 108px;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(34, 211, 238, 0.45), transparent 52%),
    linear-gradient(155deg, #082126 0%, #0e7490 58%, #075d74 100%);
  color: #edf7f8;
}
.blog-kicker {
  margin: 0 0 12px;
  color: #a5f3fc;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.blog-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(2.8rem, 6vw, 4.8rem); }
.blog-hero p { max-width: 36rem; margin: 0; color: rgba(237, 247, 248, 0.84); font-size: 1.15rem; }

.blog-index { margin-top: -40px; padding-bottom: 8px; }
.featured-card,
.post-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.featured-card:hover,
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(7, 51, 61, .14); }
.featured-card:focus-visible,
.post-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.featured-card { display: grid; grid-template-columns: 1.35fr 1fr; margin-bottom: 48px; }
.featured-copy,
.post-card-copy { padding: 24px; }
.featured-flag {
  margin: 0 0 10px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.featured-copy h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.card-excerpt {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; }
.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.post-card h2 { margin: 0 0 8px; font-size: 1.45rem; }

.post-page { width: min(1100px, calc(100% - 40px)); margin: 28px auto 0; }
.post-title { margin: 8px 0 10px; font-size: clamp(2.3rem, 4vw, 3.35rem); line-height: 1.05; }
.post-cover { position: relative; margin: 20px 0 8px; border: 0; background: transparent; box-shadow: none; }
.post-cover::before,
.post-cover::after { content: none; }
.post-cover-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}
.prose > h1:first-of-type { display: none; }
.post-layout {
  width: 100%;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 200px minmax(0, 680px);
  gap: 40px;
  align-items: start;
  justify-content: center;
}
.post-column { min-width: 0; }
.post-meta { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose h1 { margin: 0 0 18px; font-size: clamp(2.3rem, 4vw, 3.35rem); line-height: 1.05; }
.prose p,
.prose li { color: var(--text); }
.prose a { color: var(--primary); }

.toc-label { margin: 0 0 10px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { color: var(--muted); text-decoration: none; font-size: 0.92rem; line-height: 1.35; }
.toc li { margin: 0 0 10px; }
.toc a:hover { color: var(--primary); }
.toc-desktop { position: sticky; top: 96px; }
.toc-mobile { display: none; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.toc-mobile summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.toc-mobile ol { padding: 0 14px 12px; }

.callout { margin: 1.5rem 0; padding: 16px 18px; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
.callout-note { border-left: 4px solid var(--primary); }
.callout-tip { border-left: 4px solid var(--mint); }
.callout p { margin: 0; }
.callout-label {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.callout-tip .callout-label { color: var(--mint); }

.inline-figure { margin: 1.6rem 0; }
.inline-figure img { width: 100%; height: auto; display: block; border-radius: 18px; background: #0e7490; }
.inline-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

.post-faq { margin-top: 48px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0 0 16px; color: var(--muted); }
.faq-safety { margin-top: 8px; padding: 4px 14px 0; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-left: 4px solid var(--primary); }
.post-links { margin-top: 28px; }
.post-links a { color: var(--primary); }
.photo-credit { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.85rem; }

.post-cta {
  width: min(1100px, calc(100% - 40px));
  margin: 64px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  justify-items: center;
  gap: 22px;
  text-align: center;
  border-radius: 32px;
  background: var(--dark-panel);
  color: var(--on-dark);
}
.post-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.post-cta p { margin: 0 0 18px; color: rgba(237, 247, 248, 0.82); }
.post-cta .store-badges { justify-content: center; }
.prose .store-badges { margin: 1.25rem 0 0.25rem; }
.cta-visual { margin: 0; width: min(720px, 100%); }
.cta-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

.post-body table,
.week-log {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 0.5rem;
  font-size: 0.92rem;
}
.post-column th,
.post-column td,
.week-log th,
.week-log td {
  border: 1px solid var(--line);
  padding: 8px 6px;
  vertical-align: top;
  text-align: left;
}
.week-log th:nth-child(n + 3):nth-child(-n + 9),
.week-log td:nth-child(n + 3):nth-child(-n + 9) {
  width: 2.2rem;
  text-align: center;
}

@media (max-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 680px); justify-content: start; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 760px) {
  .featured-card,
  .post-cta,
  .post-layout,
  .card-grid { grid-template-columns: 1fr; }
  .card-grid { gap: 24px; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; }
  .post-page,
  .post-cta,
  .blog-index { width: min(680px, calc(100% - 32px)); }
  .blog-index { margin-top: -28px; }
  .featured-card { margin-bottom: 32px; }
  .cta-visual { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-card,
  .post-card { transition: none; }
  .featured-card:hover,
  .post-card:hover { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .post-cover,
  .toc-desktop,
  .toc-mobile,
  .post-cta,
  .post-links,
  .ph-label { display: none !important; }
  .post-layout { display: block; width: auto; margin: 0; }
  .log-sheet {
    break-before: page;
    break-after: page;
    break-inside: avoid;
    page-break-before: always;
    page-break-after: always;
    page-break-inside: avoid;
  }
  .log-sheet .week-log {
    font-size: 8pt;
    line-height: 1.15;
    margin: 8pt 0;
  }
  .log-sheet .week-log th,
  .log-sheet .week-log td {
    border: 1px solid #000;
    padding: 2px;
  }
  .log-sheet .week-log tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .log-sheet .week-log th:nth-child(1),
  .log-sheet .week-log td:nth-child(1) { width: 34mm; }
  .log-sheet .week-log th:nth-child(2),
  .log-sheet .week-log td:nth-child(2) { width: 28mm; }
  .log-sheet .week-log th:nth-child(n + 3):nth-child(-n + 9),
  .log-sheet .week-log td:nth-child(n + 3):nth-child(-n + 9) {
    width: 8mm;
    text-align: center;
  }
  @page { size: A4 portrait; margin: 12mm; }
}
