/* ARCA and ATaC publications: styles matched to arca.org.uk and atac.org.uk.
   Measured from the live sites, November 2026. Theme colours come from :root variables set per site. */

@font-face { font-family: "Muli"; src: url("/assets/fonts/mulish-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Muli"; src: url("/assets/fonts/mulish-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Muli"; src: url("/assets/fonts/mulish-latin-wght-italic.woff2") format("woff2"); font-weight: 200 1000; font-style: italic; font-display: swap; }

:root { --text: #242424; --body: #212529; --grey-panel: #f2f2f2; --rule: #e6e6e6; --muted: #595959; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Muli", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--body); background: #fff; }
img { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0 0 22px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--band); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; color: var(--text); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 10px; top: 10px; }
.site-container { max-width: 1318px; margin: 0 auto; padding: 0 26px; }
@media (max-width: 768px) { .site-container { padding: 0 16px; } }

/* Buttons, as on the live sites: square corners, 15px bold */
.btn-primary, .btn-outline, .btn-accent, .btn-plain {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  padding: 10px 20px; border: 1px solid var(--primary); border-radius: 0; font-size: 15px; font-weight: 700;
  line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--pale); color: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.92); color: #fff; }
.btn-plain { background: #fff; color: var(--text); border-color: #bebebe; }
.btn-plain:hover { background: var(--grey-panel); color: var(--text); }
.btn-primary svg, .btn-outline svg, .btn-plain svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { background: #fff; position: relative; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 93px; gap: 16px; }
.site-logo { display: block; width: 150px; flex: none; }
.site-logo img { display: block; width: 150px; height: auto; }
.header-right { display: flex; align-items: center; gap: 18px; }
.search-toggle { background: none; border: 0; padding: 10px; color: #111; cursor: pointer; display: flex; }
.search-toggle svg { width: 24px; height: 24px; }
.header-search { display: none; align-items: stretch; }
.header-search input { width: 260px; height: 46px; border: 2px solid var(--primary); padding: 0 12px; font-size: 13px; }
.header-search .btn-accent { min-height: 46px; }
.site-header.search-open .header-search { display: flex; }
.btn-login { padding: 13.5px 20px 13.5px 18px; }
.btn-login svg { width: 22px; height: 22px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 11px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: var(--text); }

.site-nav { background: #fff; }
.nav-list { list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-wrap: wrap; row-gap: 4px; }
.nav-item { position: static; }
.nav-item + .nav-item > .nav-link { border-left: 2px solid var(--text); }
.nav-link { display: flex; align-items: center; gap: 4px; padding: 3px 11px 2px; font-size: 13px; font-weight: 700; line-height: 18px; color: var(--text); text-decoration: none; }
.nav-item:first-child > .nav-link { padding-left: 0; }
.nav-link:hover, .nav-item.active > .nav-link { color: var(--primary); }
.nav-chev { width: 8px; height: 6px; }
.nav-drop { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid var(--primary); box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.nav-item.open > .nav-drop { display: block; }
.nav-drop-inner { max-width: 1318px; margin: 0 auto; padding: 22px 26px 26px; }
.nav-drop-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.nav-drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 24px; }
.nav-drop-grid a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule); }
.nav-drop-grid a:hover { color: var(--primary); }
@media (min-width: 993px) { .nav-item.has-drop:hover > .nav-drop { display: block; } }

.band { height: 16px; background: var(--primary); border-bottom: 6px solid var(--band); margin-bottom: 19px; }

@media (max-width: 992px) {
  .btn-login span { display: none; }
  .btn-login { padding: 12px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; border-top: 1px solid var(--rule); }
  .site-header.nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; padding: 8px 0 14px; }
  .nav-item + .nav-item > .nav-link { border-left: 0; border-top: 1px solid var(--rule); }
  .nav-link, .nav-item:first-child > .nav-link { padding: 12px 0; font-size: 15px; justify-content: space-between; }
  .nav-drop { position: static; box-shadow: none; border-top: 0; }
  .nav-drop-inner { padding: 0 0 10px 14px; }
  .nav-drop-title { display: none; }
  .header-search { position: absolute; left: 16px; right: 16px; top: 100%; background: #fff; padding: 10px 0; }
  .header-search input { flex: 1; width: auto; }
}
@media (max-width: 768px) { .band { margin-bottom: 10px; } }

/* Breadcrumb */
.breadcrumb ol { list-style: none; margin: 0; padding: 0 0 18px; display: flex; flex-wrap: wrap; font-size: 13px; line-height: 18px; }
.breadcrumb li + li::before { content: "|"; padding: 0 6px; color: var(--text); }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--primary); }

/* Footer */
.site-footer { background: var(--primary); color: #fff; margin-top: 25px; padding-top: 19px; font-size: 13px; line-height: 16px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .underline { text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.footer-contact { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.footer-links { flex: 1 1 340px; display: flex; gap: 40px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-social { flex: 1 1 160px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-social-title { font-weight: 700; }
.footer-social-icons { display: flex; gap: 18px; }
.footer-social-icons a { display: flex; width: 26px; height: 26px; }
.footer-social-icons svg { width: 100%; height: 100%; }
.footer-copy { text-align: center; font-size: 10px; padding: 22px 26px 14px; }
@media (max-width: 768px) { .footer-social { align-items: flex-start; } }

/* Page headings and text */
.page-head { display: flex; flex-direction: column; gap: 10px; max-width: 860px; margin-bottom: 28px; }
.page-title { font-size: 36px; line-height: 45px; color: var(--primary); }
.lead { font-size: 18px; line-height: 1.27; color: var(--text); margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); }
.muted { color: var(--muted); font-size: 13px; }
@media (max-width: 768px) { .page-title { font-size: 28px; line-height: 35px; } }

/* Library */
.lib-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 30px; }
.lib-tabs { display: flex; flex-wrap: wrap; flex: 999 1 560px; }
.lib-tab { flex: 1 1 130px; max-width: 260px; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 12px 14px; background: #fff; border: 1px solid var(--rule); font-size: 16px; font-weight: 700; color: #6b6b6b; text-decoration: none; text-align: center; }
.lib-tab:hover { color: var(--text); }
.lib-tab[aria-current="page"] { color: var(--text); border-bottom: 3px solid var(--primary); }
.lib-search { flex: 1 1 320px; display: flex; }
.lib-search input { flex: 1; min-width: 0; height: 54px; border: 2px solid var(--primary); border-right: 0; padding: 0 14px; font-size: 14px; color: var(--text); }
.lib-search .btn-accent { min-height: 54px; }

.feature { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; background: var(--grey-panel); padding: 34px; margin-bottom: 34px; }
.feature-cover { flex: 0 0 250px; display: block; box-shadow: 0 10px 28px rgba(0,0,0,.25); transform: rotate(-1.5deg); transition: transform .2s; }
.feature-cover:hover { transform: rotate(0) scale(1.02); }
.feature-cover img { display: block; width: 100%; height: auto; }
.feature-body { flex: 999 1 380px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feature-body h2 { font-size: 30px; line-height: 1.13; color: var(--text); }
.feature-body p { margin: 0; font-size: 15px; line-height: 1.38; color: var(--text); max-width: 640px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .feature { padding: 22px; } .feature-cover { flex-basis: 170px; } }

.lib-section { padding-top: 34px; margin-top: 4px; border-top: 1px solid var(--rule); margin-bottom: 30px; }
.lib-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lib-section-head h2 { font-size: 24px; line-height: 1.13; color: var(--primary); }
.lib-section-head a { font-size: 15px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 30px 26px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.card:hover { color: var(--text); }
.card-cover { aspect-ratio: 210 / 297; background: #e9ecef; box-shadow: 0 2px 10px rgba(0,0,0,.16); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover .card-cover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-kind { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #6b6b6b; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.card:hover .card-title { color: var(--primary); text-decoration: underline; }
.card-meta { font-size: 13px; color: var(--muted); }
.empty { background: var(--grey-panel); padding: 30px; font-size: 15px; }
.results-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.result { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: var(--text); padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.result img { width: 90px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.result-title { font-weight: 700; font-size: 17px; }
.result:hover .result-title { color: var(--primary); text-decoration: underline; }
.result-snip { font-size: 14px; color: var(--text); margin-top: 4px; }
.result-snip mark { background: #fff1a8; color: inherit; }

/* Reader page */
.reader-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.reader-head h1 { font-size: 36px; line-height: 45px; color: var(--primary); }
@media (max-width: 768px) { .reader-head h1 { font-size: 26px; line-height: 32px; } }
.below-reader { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; }
.below-reader .about { flex: 999 1 520px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.below-reader .share { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; }
.below-reader h2 { font-size: 20px; color: var(--text); }
.below-reader p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.download-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--grey-panel); padding: 14px 16px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 700; }
.download-bar:hover { background: #e8e8e8; color: var(--text); }
.download-bar svg { width: 22px; height: 22px; color: var(--primary); flex: none; }
.copy-row { display: flex; }
.copy-row input { flex: 1; min-width: 0; height: 46px; border: 2px solid var(--primary); border-right: 0; padding: 0 10px; font-size: 13px; }
.share-links { display: flex; gap: 8px; flex-wrap: wrap; }
.share-links a, .share-links button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #bebebe; background: #fff; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.share-links a:hover, .share-links button:hover { background: var(--grey-panel); color: var(--text); }
