/* Shared reading layout for the blog archive and articles. */
.journal {
  --color-primary:#17253a; --color-text:#28374b; --color-muted:#506078;
  --color-accent:#124d9a; --color-bg:#fff; --color-bg-soft:#eff4fa; --color-border:#d2dce7;
  background:#fafbfd; color:var(--color-text); word-break:keep-all; overflow-wrap:anywhere;
  padding-block:16px clamp(44px,6vw,84px);
}
.blog-view .site-head .wrap,.journal .wrap { max-width:1120px; padding-inline:clamp(16px,4vw,48px); }
.journal .breadcrumb { padding:0; margin:0 0 19px; color:var(--color-muted); }
.journal .breadcrumb a { color:var(--color-accent); }
.journal :is(a,summary,[tabindex]):focus-visible { outline:3px solid #267be4; outline-offset:3px; }
.archive-intro { margin:22px 0 24px; }
.archive-intro h1,.story-hero h1 { margin:0; letter-spacing:-.061em; line-height:1.18; text-wrap:balance; }
.archive-intro h1 { font-size:clamp(2.05rem,4.7vw,3.9rem); }
.archive-intro p { color:var(--color-muted); margin:9px 0 0; line-height:1.7; }
.shelf { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 22px; }
.shelf .card { min-width:0; border:0; border-radius:0; background:none; box-shadow:none; transition:none; transform:none; }
.shelf .card>a:first-child { display:block; }
.shelf .card-thumb,.story-art { display:block; width:100%; aspect-ratio:3/2; object-fit:contain; background:#e4ecf9; border-radius:3px; }
.shelf .card-body { padding:13px 0 0; }
.journal .card-meta,.journal .post-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 13px; color:var(--color-muted); font-size:.83rem; line-height:1.5; font-variant-numeric:tabular-nums; }
.journal .tag { border:0; border-radius:0; padding:0; background:none; color:var(--color-accent); font-weight:700; }
.shelf .card-title { margin:7px 0; font-size:clamp(1.12rem,1.7vw,1.42rem); letter-spacing:-.045em; line-height:1.42; }
.shelf .card-title a { color:var(--color-primary); }
.shelf .card-title a:hover { text-decoration:underline; text-underline-offset:.18em; }
.shelf .card-excerpt { color:var(--color-muted); font-size:.95rem; line-height:1.7; }
.shelf .feature { grid-column:1/-1; display:grid; grid-template-columns:1.04fr 1fr; align-items:center; background:#101e33; color:#f7faff; }
.shelf .feature .card-body { padding:clamp(20px,3vw,42px); }
.shelf .feature .card-thumb { border-radius:0; }
.shelf .feature .card-title { font-size:clamp(1.45rem,2.8vw,2.5rem); line-height:1.26; }
.shelf .feature .card-title a { color:#fff; }
.shelf .feature :is(.card-meta,.card-excerpt) { color:#d5e2f4; }
.shelf .feature .tag { color:#9ccdff; }
.guide,.contents { background:transparent; border:0; border-radius:0; }
.journal :is(.guide,.contents)[open] { background:transparent; }
.guide { margin-top:42px; border-block:1px solid var(--color-border); padding:16px 0; }
.guide>summary,.contents>summary { cursor:pointer; color:var(--color-accent); font-weight:700; }
.guide p { margin:12px 0; }
.story-hero { display:grid; grid-template-columns:1.18fr 1fr; align-items:center; gap:clamp(24px,4vw,58px); padding-block:12px 28px; border-bottom:1px solid var(--color-border); }
.story-hero h1 { font-size:clamp(1.8rem,3.35vw,3.05rem); line-height:1.25; }
.story-hero .post-meta { margin:15px 0 0; }
.reading { width:min(100%,734px); margin:clamp(23px,4vw,48px) auto; }
.contents { border-block:1px solid var(--color-border); padding:12px 0; margin-bottom:24px; }
.contents ol { margin:10px 0 2px 1.4em; line-height:1.9; }
.journal .post-content { font-size:clamp(1rem,1.05vw,1.075rem); line-height:1.91; }
.journal .post-content p { margin:.65em 0 1em; }
.journal .post-content h2,.journal .faq-section h2 { margin:1.65em 0 .48em; line-height:1.4; letter-spacing:-.047em; font-size:clamp(1.34rem,2.25vw,1.85rem); }
.journal .post-content h3 { margin:1.2em 0 .45em; font-size:1.12em; }
.journal [id] { scroll-margin-top:85px; }
.journal .editor-meta { color:var(--color-muted); font-size:.82rem; }
.journal .page-summary { background:none; border:0; padding:0; margin:0 0 1.5rem; }
.journal .post-content .page-summary h2 { margin-top:.65em; }
.journal .post-content :is(a,code) { overflow-wrap:anywhere; }
.journal .article-action { display:inline-block; background:var(--color-accent); color:white; padding:9px 16px; text-decoration:none; font-weight:700; border-radius:4px; }
.journal .post-content .article-action { color:white; }
.journal .data-scroll { overflow-x:auto; max-width:100%; min-width:0; margin:1rem 0 1.4rem; }
.journal .data-scroll table { width:100%; border-collapse:collapse; table-layout:auto; color:var(--color-text); font-size:.94rem; line-height:1.6; background:#fff; text-align:left; }
.journal .data-scroll .wide-data { min-width:36rem; }
.journal .data-scroll caption { color:var(--color-primary); text-align:left; font-weight:700; margin-bottom:8px; }
.journal .data-scroll :is(th,td) { border:1px solid var(--color-border); padding:9px 11px; text-align:left; vertical-align:top; overflow-wrap:break-word; }
.journal .data-scroll th { background:#eaf0f8; color:var(--color-primary); }
.journal .data-scroll tr:nth-child(even) td { background:#f5f8fc; }
.journal .data-scroll img { width:30px; height:30px; object-fit:contain; }
.journal .faq-section { margin-block:32px; }
.journal .faq-section details { background:#fff; color:var(--color-text); }
.journal .return-link { display:inline-block; margin-top:18px; color:var(--color-accent); font-weight:700; }
.more-stories { margin-top:42px; padding-top:23px; border-top:1px solid var(--color-border); }
.more-stories>h2 { font-size:1.4rem; margin-bottom:16px; }
@media(max-width:850px) {
  .shelf { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
  .story-hero,.shelf .feature { grid-template-columns:1fr; gap:0; }
  .story-hero { padding-top:0; }
  .story-art { margin-top:17px; }
  .shelf .feature .card-body { padding:18px; }
  .shelf { gap:24px 14px; }
  .journal .data-scroll :is(th,td) { padding:8px; }
}
@media(max-width:540px) {
  .shelf { grid-template-columns:1fr; }
  .blog-view .brand img { width:clamp(160px,58vw,230px); }
  .more-stories .shelf .card:not(.feature) { display:grid; grid-template-columns:minmax(96px,34%) 1fr; gap:13px; align-items:start; }
  .more-stories .shelf .card:not(.feature) .card-body { padding:0; }
  .more-stories .shelf .card:not(.feature) .card-title { font-size:1.06rem; }
  .shelf .card-excerpt { font-size:.89rem; }
}
