/* v4 components: one responsive editorial shell. */
.masthead, .site-footer { padding-inline: calc((100vw - var(--article-frame)) / 2); }
.masthead { position: relative; z-index: 10; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); align-items: flex-end; gap: 2rem; width: 100%; min-height: 104px; padding: 20px 0 15px; }
.wordmark { grid-column: 2; justify-self: center; display: grid; align-items: center; gap: .18rem; max-width: 100%; min-width: 0; text-align: center; text-decoration: none; }
.wordmark-english, .footer-wordmark { font: 900 clamp(2rem, 4.1vw, 4rem)/.82 var(--display); letter-spacing: -.08em; white-space: nowrap; }
.wordmark-lens { color: var(--muted); font: 700 .6rem/1 var(--mono); letter-spacing: .12em; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 1rem; padding-bottom: .15rem; }
.archive-search-toggle, .search-submit, .search-close { border: 0; background: transparent; cursor: pointer; }
.archive-search-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.archive-search-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.archive-search-panel { position: absolute; z-index: 20; top: 100%; right: max(24px, calc((100vw - 1440px) / 2)); left: max(24px, calc((100vw - 1440px) / 2)); padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--ink); background: var(--paper); }
.header-search-form { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; }
.header-search-form label { font: 700 .72rem/1 var(--body); letter-spacing: .1em; }
.header-search-form input { min-width: 0; padding: .65rem .25rem; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; }
.search-submit { min-height: 42px; padding: .65rem .85rem; color: var(--paper); background: var(--ink); font-size: .75rem; font-weight: 700; }
.search-close { min-width: 44px; min-height: 44px; font-size: 1.8rem; line-height: 1; }
.edition-nav { overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.edition-nav::-webkit-scrollbar { display: none; }
.edition-menu { display: grid; grid-template-columns: repeat(6, max-content); justify-content: center; column-gap: clamp(1.5rem, 2.5vw, 3rem); width: 100%; min-width: 0; margin: 0; padding: 0; list-style: none; }
.edition-menu a { display: block; padding: .92rem .25rem; text-align: center; text-decoration: none; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.edition-menu li:first-child a { text-align: left; }
.edition-menu li:last-child a { text-align: right; }
.edition-menu a:hover, .edition-menu .current-menu-item > a { color: var(--wine); text-decoration: underline; }
.disc-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 44px; text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.disc-link b { display: grid; width: 2.6rem; aspect-ratio: 1; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; }
.story-category { color: var(--wine); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ledger-card { min-width: 0; }
.ledger-image { display: block; overflow: hidden; aspect-ratio: 1; background: var(--paper-strong); }
.ledger-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ledger-image:hover img { transform: scale(1.035); }
.ledger-card-copy { padding-top: .85rem; }
.ledger-card-copy > span, .ledger-card-copy small { color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.ledger-card h3 { margin: .35rem 0 .45rem; font: 500 clamp(1.35rem, 2.2vw, 2rem)/1.1 var(--display); }
.ledger-card h3 a { text-decoration: none; }
.ledger-card p { margin-bottom: .7rem; color: #4d4a44; font-size: .9rem; }
.site-footer { margin-top: 0; color: var(--paper); background: var(--ink); }
.footer-inner { width: 100%; padding: clamp(3rem, 8vw, 8rem) 0 1.5rem; }
.footer-wordmark { display: block; margin-bottom: clamp(3rem, 8vw, 8rem); color: var(--paper); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .65fr; gap: clamp(2rem, 5vw, 6rem); padding-block: 1.5rem 3rem; border-top: 1px solid rgba(242,239,231,.34); }
.footer-grid h2 { margin-bottom: .8rem; font: 500 clamp(1.2rem, 2.3vw, 2rem)/1.25 var(--display); }
.footer-grid > section:first-child h2 { font-size: clamp(1.85rem, 3.5vw, 3.5rem); }
.footer-grid p, .footer-menu a { color: rgba(242,239,231,.74); font-size: .88rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: .45rem; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid rgba(242,239,231,.2); color: rgba(242,239,231,.57); font-size: .68rem; letter-spacing: .06em; }
.footer-meta p { margin: 0; }
