.downloads-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: end; }
.downloads-hero { position: relative; }
.downloads-hero::after { content: ""; position: absolute; height: 4px; inset: auto 0 0; background: linear-gradient(90deg, #f78321 0 20%, #c75e96 20% 40%, #0081cc 40% 60%, #587d9c 60% 80%, #e9ac24 80% 100%); }
.downloads-summary { display: flex; gap: clamp(1.5rem, 3vw, 3rem); padding: 1rem 0 .3rem; }
.downloads-summary div { display: grid; gap: .25rem; }
.downloads-summary div + div { padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid #c7d5e0; }
.downloads-summary strong { font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.05em; color: var(--steel); }
.downloads-summary span { font-size: .89rem; color: var(--muted); white-space: nowrap; }
.downloads-main { padding-block: clamp(2rem, 4vw, 3.6rem) 5rem; }
.downloads-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.7rem; }
.downloads-intro > p { max-width: 52ch; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.downloads-search { display: flex; align-items: center; gap: .75rem; width: min(100%, 470px); flex: 0 1 470px; min-height: 52px; padding: .65rem 1rem; border: 1px solid #bbcdd9; border-radius: 7px; background: white; }
.downloads-search svg { color: var(--steel); flex: none; }
.downloads-search:focus-within { outline: 2px solid #477da2; outline-offset: 3px; }
.downloads-search input { border: 0; outline: 0; background: transparent; min-width: 0; width: 100%; font-size: 1rem; }
.downloads-search input::placeholder { color: #61788a; opacity: 1; }
.download-clear { padding: .25rem 0 .25rem .6rem; border: 0; border-left: 1px solid var(--line); background: transparent; font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.downloads-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.4rem); align-items: start; }
.downloads-sidebar { position: sticky; top: 106px; }
.downloads-sidebar > h2 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.download-categories { display: grid; gap: 5px; }
.download-categories a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 49px; border: 1px solid transparent; border-radius: 6px; padding: .8rem .9rem; font-size: .94rem; line-height: 1.35; font-weight: 700; }
.download-categories a:hover { background: var(--pale); }
.download-categories a[aria-current="true"] { background: var(--navy); color: white; }
.category-count { display: inline-grid; place-items: center; min-width: 25px; padding: .15rem .35rem; flex: none; border-radius: 4px; background: #e9f0f4; color: #46647b; font-size: .75rem; font-variant-numeric: tabular-nums; }
.download-categories a[aria-current="true"] .category-count { background: #ffffff22; color: white; }
.downloads-archive-note { margin: 1.4rem .9rem 0; font-size: .82rem; line-height: 1.55; color: #667a8b; }
.downloads-results { min-width: 0; scroll-margin-top: 100px; }
.downloads-result-status { margin: 0 0 1.15rem; color: var(--muted); font-size: .87rem; min-height: 1.3rem; }
.download-section { margin: 0 0 2.7rem; scroll-margin-top: 105px; }
.download-section-head { display: flex; align-items: baseline; gap: 1rem; justify-content: space-between; padding-bottom: 1rem; border-bottom: 2px solid var(--steel); }
.download-section-head h2 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.14; letter-spacing: -.03em; }
.download-section-head > span { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.download-list { list-style: none; padding: 0; margin: 0; }
.download-item { border-bottom: 1px solid var(--line); }
.download-row-link, .download-row-unavailable { display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 89px; padding: 1rem .2rem; border-radius: 3px; }
.download-row-link { transition: background .15s; }
.download-row-link:hover { background: #f4f8fa; }
.download-row-link:focus-visible { outline-offset: 1px; }
.document-icon { display: grid; place-items: center; color: var(--steel); background: #edf3f7; width: 43px; height: 49px; border-radius: 5px; }
.document-copy { display: grid; gap: .35rem; min-width: 0; }
.document-title { color: var(--ink); font-weight: 700; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.download-row-link:hover .document-title { text-decoration: underline; text-underline-offset: 4px; }
.document-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; color: #60788a; font-size: .8rem; line-height: 1.4; }
.document-action { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; color: #365c7a; padding-left: 1rem; font-size: .82rem; font-weight: 700; }
.catalogue-action-label { color: #365c7a; font-weight: 700; }
.catalogue-row-link .document-meta { display: grid; gap: .25rem; }
.document-archive { display: inline-flex; padding: .15rem .45rem; border: 1px solid #dfcba3; border-radius: 4px; background: #fcf7eb; color: #765712; font-size: .72rem; }
.document-unavailable-label { color: #6a7b87; font-size: .76rem; white-space: nowrap; padding-left: .5rem; }
.download-item.is-unavailable .document-icon { color: #7b8c99; background: #f1f3f5; }
.download-item.is-unavailable .document-title { color: #586d7e; }
.downloads-empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed #bccdd8; border-radius: 8px; background: #f7fafb; }
.downloads-empty h2 { font-size: 1.8rem; line-height: 1.2; }
.downloads-empty p { margin: .9rem auto 1.4rem; color: var(--muted); max-width: 49ch; }
@media (max-width: 1100px) {
  .downloads-hero-grid { gap: 2rem; }
  .downloads-summary { gap: 1.1rem; }
  .downloads-summary div + div { padding-left: 1.1rem; }
  .downloads-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 1.8rem; }
  .document-action > span { display: none; }
  .document-action { padding-left: .4rem; }
}
@media (max-width: 900px) {
  .downloads-hero-grid { grid-template-columns: 1fr; }
  .downloads-summary { gap: 1.6rem; padding-top: 0; }
  .downloads-summary div + div { padding-left: 1.6rem; }
  .downloads-summary strong { font-size: 2.8rem; }
  .downloads-summary span { font-size: .83rem; }
  .downloads-intro { display: block; margin-bottom: 1.8rem; }
  .downloads-search { margin-top: 1.2rem; width: 100%; }
  .downloads-layout { grid-template-columns: 1fr; gap: 1.9rem; }
  .downloads-sidebar { position: static; }
  .download-categories { display: flex; flex-wrap: wrap; gap: 6px; }
  .download-categories a { min-height: 41px; padding: .6rem .8rem; font-size: .84rem; border-color: #d1dde5; }
  .downloads-archive-note { margin: 1rem 0 0; max-width: 75ch; }
}
@media (max-width: 520px) {
  .downloads-main { padding-bottom: 3rem; }
  .downloads-summary { gap: 1.3rem; }
  .downloads-summary div + div { padding-left: 1.3rem; }
  .downloads-search { min-height: 49px; padding-inline: .8rem; }
  .downloads-search input { font-size: .91rem; }
  .download-clear { font-size: .7rem; }
  .download-categories a { font-size: .81rem; }
  .download-row-link, .download-row-unavailable { grid-template-columns: 32px minmax(0, 1fr) auto; gap: .7rem; min-height: 89px; padding-block: .9rem; }
  .document-icon { width: 32px; height: 41px; }
  .document-icon svg { width: 19px; height: 24px; }
  .document-title { font-size: .94rem; }
  .document-meta { font-size: .75rem; }
  .document-action { padding: 0; }
  .document-action svg { width: 19px; }
  .document-unavailable-label { display: none; }
  .download-section { margin-bottom: 2.1rem; }
}
