/* Size repeated content by the space available, not by device model. */
.utility .wrap { flex-wrap: wrap; gap: .15rem 1rem; }
.hero-grid > *, .edition-grid > *, .card > *, .ads > * { min-width: 0; }
.hero-grid { gap: clamp(.8rem, 3vw, 2.5rem); padding-block: 20px 0; }
.hero-grid > :not(.cover) { padding-bottom: 1.4rem; }
/* The fallback artwork is 1670 x 942; PDF previews supply their own page proportions. */
.hero .cover { width: min(100%, 28rem); margin: 0 auto; align-self: end; position: relative; aspect-ratio: var(--visible-cover-ratio, 1670 / 376.8); overflow: clip; box-shadow: 0 -.15rem .9rem #082c5533, 0 .4rem 1.4rem #082c5540; }
.hero .cover img { position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; filter: none; }
.edition-grid .section-heading h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.edition-grid .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.edition-grid .card { padding: .9rem; gap: .9rem; font-size: 1rem; }
.edition-grid .mini { width: min(44%, 9rem); }
.edition-grid .mini img { height: clamp(8rem, 11vw, 10.5rem); }
.edition-grid .card h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.edition-grid .card p { font-size: .95rem; }
#events { display: flex; flex-direction: column; justify-content: center; }
#events .button { margin-block-start: 1rem; align-self: flex-start; }
.ads.premium { grid-template-columns: minmax(0, 1fr); }
.ads.premium img { width: 100%; height: auto; }
.ads.standard { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ads.standard > a { align-self: start; overflow: hidden; }
/* Match swift.jpg (250 x 150) at the current column width. */
.ads.standard img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
.section-heading form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.button, button, select, nav a { min-height: 2.75rem; }
nav a, .button { display: inline-flex; align-items: center; justify-content: center; }
.archive-year { margin-block: .75rem; border: 1px solid var(--line); border-radius: .6rem; background: #f5f9fd; }
.archive-year summary { cursor: pointer; color: white; background: var(--navy); border-radius: .5rem; padding: .8rem 1rem; font-weight: 700; }
.archive-year summary small { float: right; font-weight: 400; }
.archive-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: .75rem; padding: .75rem; align-items: start; }
.archive-month { background: white; border: 1px solid var(--line); border-radius: .5rem; padding: .5rem; }
.archive-month table { width: 100%; table-layout: fixed; border-spacing: 0 .15rem; text-align: center; }
.archive-month caption { text-align: left; font: bold 1.15rem Georgia, serif; padding: .45rem; }
.archive-month th { font-size: .75rem; color: #475b70; background: var(--pale); padding-block: .4rem; }
.archive-month td { height: 2rem; color: #536779; }
.archive-month a { display: block; padding-block: .3rem; background: var(--blue); color: white; border-radius: .35rem; font-weight: 700; }
.archive-month a:hover, .archive-month a:focus-visible { background: var(--navy); }
@media (max-width: 48rem) {
  .ads.standard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card a, footer a, .more { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .section-heading form { width: 100%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .hero .cover { width: min(90%, 23rem); order: 1; }
  .hero-grid > :not(.cover) { padding-bottom: 0; }
  footer .wrap { justify-content: flex-start; gap: .25rem 1rem; }
  footer span { width: 100%; }
}
@media (max-width: 30rem) {
  .ads.standard { grid-template-columns: minmax(0, 1fr); }
  .utility .wrap { justify-content: center; font-size: .8rem; }
  nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.5rem), 1fr)); gap: 0; }
  nav a { text-align: center; }
  .hero .button, .hero .more { display: flex; justify-content: center; margin: .4rem 0 0; }
  .section-heading label { flex-basis: 100%; }
  .section-heading select { flex: 1; min-width: 0; }
  .card, aside { font-size: 1rem; }
}
.site-nav { display: block; }
.about-page .language-links { margin-block: .75rem 1.5rem; }
.editor-letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.editor-letters article { border-top: .25rem solid var(--blue); background: #f6f9fc; padding: clamp(1rem, 2.5vw, 2rem); line-height: 1.65; }
.editor-letters h2 { margin-bottom: 1.25rem; }
.editor-letters p { margin-bottom: 1em; }
.editor-letters .signature { margin-top: 1.5rem; margin-bottom: 0; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(.15rem, 3vw, 3rem); }
.nav-toggle { display: none; }
@media (max-width: 48rem), (orientation: portrait) and (max-width: 64rem), (pointer: coarse) and (max-height: 32rem) and (max-width: 60rem) {
  .site-nav .nav-links { flex-direction: column; gap: 0; }
  .site-nav .nav-links a { justify-content: flex-start; padding-inline: 1rem; border-top: 1px solid #ffffff33; }
  .site-nav[data-ready] .nav-toggle { display: flex; align-items: center; gap: .6rem; padding-inline: 1rem; background: transparent; }
  .site-nav[data-ready] .nav-toggle[aria-expanded="false"] + .nav-links { display: none; }
}
