/* Article layout; uses the existing portal palette and system fonts. */
.entry-head { padding-top: 64px; padding-bottom: 38px; max-width: 1000px; }
.entry-head h1 { font-size: clamp(2rem, 5.5vw, 3.65rem); line-height: 1.22; letter-spacing: -.035em; margin: 22px 0 14px; color: var(--fg); }
.entry-subtitle { color: var(--teal); font-size: clamp(1.15rem, 2.6vw, 1.65rem); margin: 0 0 22px; }
.entry-meta { font-size: .87rem; color: var(--muted); line-height: 1.85; }
.entry-lead { max-width: 760px; font-size: 1.17rem; line-height: 1.95; margin-top: 30px; }
.prose { width: min(100% - 40px, 740px); margin-inline: auto; font-size: 1.08rem; line-height: 1.95; }
.prose p { margin: 1.3em 0; }
.prose h2 { color: var(--fg); font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.45; letter-spacing: -.015em; margin: 2.7em 0 .8em; scroll-margin-top: 86px; }
.prose strong { color: var(--fg); }
.entry-wide { width: min(100% - 40px, 1060px); margin: 36px auto; }
.entry-wide img { width: 100%; border-radius: 12px; }
.entry-wide figcaption { color: var(--muted); font-size: .86rem; line-height: 1.8; margin-top: 12px; }
.cover { margin-top: 0; margin-bottom: 46px; }
.design-pair, .video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.design-pair figure, .video-pair figure { margin: 0; min-width: 0; }
.video-pair video { display: block; width: 100%; aspect-ratio: 16 / 10; background: #05090c; border-radius: 12px; }
.town-figure { max-width: 800px; }
.contents { display: block; background: var(--surface); border: 1px solid var(--line); padding: 22px 26px; border-radius: 14px; margin: 36px 0 44px; }
.contents strong { font-size: .92rem; color: var(--teal); }
.contents ol { padding-left: 1.5em; margin: 12px 0 0; }
.contents li { margin: 6px 0; }
.contents a { color: var(--text); padding: 0; white-space: normal; font-size: 1rem; }
.contents a:hover { text-decoration: underline; background: none; }
.prose blockquote { border-left: 3px solid var(--teal); color: var(--fg); padding: 8px 0 8px 24px; margin: 36px 0; font-size: 1.2rem; }
.table-scroll { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-scroll caption { text-align: left; padding: 16px; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.table-scroll th, .table-scroll td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
.table-scroll thead { background: var(--surface); color: var(--teal); }
.article-note { background: var(--surface); border-radius: 12px; padding: 24px; margin: 40px 0; font-size: .92rem; color: var(--muted); }
.article-note p { margin-bottom: 0; }
.article-end { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 72px; }
.blog-list { padding: 0 0 90px; }
.blog-list .feature { margin: 0; }
.blog-list h2 { font-size: 1.8rem; line-height: 1.4; }
.blog-list .feature-art img { object-fit: contain; }
.language-link { border: 1px solid var(--line-2); border-radius: 999px; margin-left: 8px; color: var(--fg); }
.journal-layout { max-width: 1280px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 42px; align-items: start; }
.journal-story { min-width: 0; }
.journal-story .prose { width: min(100%, 740px); }
.journal-story .entry-wide { width: 100%; }
.timeline { display: block; position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 8px; }
.timeline-rail { align-self: stretch; }
.timeline .eyebrow { letter-spacing: .12em; }
.timeline ol { list-style: none; margin: 22px 0 0 7px; padding: 0 0 0 18px; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; margin: 0 0 18px; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--bg); }
.timeline a { display: block; padding: 3px 5px; white-space: normal; font-size: .88rem; line-height: 1.6; }
.timeline time { display: block; color: var(--teal); font-size: .79rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.workflow-overview { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 24px; margin-bottom: 64px; }
.workflow-overview h2 { margin: 0 0 18px; }
.workflow-overview p { margin: 16px 0; }
.workflow-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: .95rem; line-height: 1.6; }
.workflow-steps li { border-top: 1px solid var(--line-2); padding-top: 10px; }
.workflow-steps span { display: block; font-size: .8rem; color: var(--gold); margin-bottom: 4px; }
.workflow-note { color: var(--muted); font-size: .92rem; }
.journal-stage { margin-bottom: 64px; }
.journal-stage .stage-date { color: var(--teal); font-size: .85rem; letter-spacing: .1em; margin: 0 0 10px; }
.journal-stage h2 { margin: 0 0 24px; scroll-margin-top: 92px; }
.stage-notes { margin: 28px 0; }
.stage-notes > div { border-top: 1px solid var(--line); padding: 20px 0; }
.stage-notes dt { color: var(--teal); font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.stage-notes dd { margin: 0; }
.journal-story .video-pair { margin: 36px 0; }
.video-pair figcaption { color: var(--muted); font-size: .86rem; line-height: 1.8; margin-top: 12px; }
@media (max-width: 1000px) {
  .journal-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 860px; }
  .timeline { position: static; max-height: none; overflow: visible; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .timeline a { font-size: 1rem; }
  .timeline li:last-child { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .portal-with-journal .top-row { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
  .portal-with-journal .top-row nav { width: 100%; justify-content: space-between; gap: 2px; }
  .entry-head { padding-top: 38px; }
  .entry-lead { font-size: 1.06rem; }
  .design-pair { gap: 12px; }
  .video-pair { grid-template-columns: 1fr; }
  .prose { font-size: 1.02rem; }
  .contents { padding: 18px; }
  .table-scroll th, .table-scroll td { padding: 10px; font-size: .85rem; }
  .journal-page .top-row { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; }
  .journal-page .top-row nav { width: 100%; justify-content: flex-end; }
  .journal-layout { padding-inline: 20px; }
  .journal-stage h2 { scroll-margin-top: 130px; }
  .workflow-overview { padding: 20px; }
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
