/* Elseleaf 0.1.0. Shared semantic colours keep core blocks in both appearances. */
:root {
  --el-bg: #fafaf8; --el-surface: #fff; --el-text: #292b26; --el-muted: #6b6f65;
  --el-accent: #ae2025; --el-on-accent: #fff; --el-tint: #f5eeeb; --el-line: #dddfd7;
  --el-soft: #eeefe8; --el-sage: #e1e6d7; --el-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --el-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance="light"]) {
    --el-bg: #18191c; --el-surface: #25262b; --el-text: #f3ede1; --el-muted: #b4afa5;
    --el-accent: #f19b9f; --el-on-accent: #241b1d; --el-tint: #30272b; --el-line: #414146;
    --el-soft: #282b29; --el-sage: #303a30; color-scheme: dark;
  }
}
:root[data-appearance="night"], .editor-styles-wrapper.el-editor-night {
  --el-bg: #18191c; --el-surface: #25262b; --el-text: #f3ede1; --el-muted: #b4afa5;
  --el-accent: #f19b9f; --el-on-accent: #241b1d; --el-tint: #30272b; --el-line: #414146;
  --el-soft: #282b29; --el-sage: #303a30; color-scheme: dark;
}
.editor-styles-wrapper:not(.el-editor-night) {
  --el-bg: #fafaf8; --el-surface: #fff; --el-text: #292b26; --el-muted: #6b6f65;
  --el-accent: #ae2025; --el-on-accent: #fff; --el-tint: #f5eeeb; --el-line: #dddfd7;
  --el-soft: #eeefe8; --el-sage: #e1e6d7; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--el-bg); color: var(--el-text); font-family: var(--el-sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--el-sage); color: var(--el-text); }
:where(h1,h2,h3,h4) { font-family: var(--el-serif); font-weight: 400; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.35rem,4.6vw,3.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.7rem,3.2vw,2.25rem); letter-spacing: -.035em; }
h3 { font-size: 1.5rem; letter-spacing: -.025em; }
p { margin-block: 0 1em; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--el-accent); }
:focus-visible { outline: 2px solid var(--el-accent); outline-offset: 5px; border-radius: 2px; }
button, input, select, textarea { font: inherit; }
button, select, summary, input[type="radio"] { cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
[hidden] { display: none !important; }
.wp-site-blocks > * { margin-block-start: 0; }
.el-shell { width: min(1040px, calc(100% - 80px)); margin-inline: auto; }
.el-main { min-height: 45vh; padding-block: 46px 64px; }
.el-narrow { max-width: 700px; margin-inline: auto; }
.el-section { margin-block: 40px 0; }
.el-main > :first-child, .el-section > :first-child { margin-block-start: 0; }
.el-intro { margin-bottom: 40px; }
.el-intro h1 { margin: 0 0 12px; }
.el-intro p { color: var(--el-muted); font-size: 18px; max-width: 630px; }
.el-eyebrow { font-family: var(--el-sans); font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--el-accent); }
.el-intro .el-eyebrow { font-size: 12px; color: var(--el-accent); }
.el-muted { color: var(--el-muted); }
.el-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.el-section-heading h2 { margin: 0; }
.el-text-link, .el-section-heading > a { font-size: 14px; font-weight: 500; text-decoration: none; }
.el-text-link { display: inline-block; padding-block: 8px; }
.el-text-link span, .el-section-heading > a span { margin-left: 6px; }
.el-text-link:hover, .el-section-heading > a:hover { text-decoration: underline; }
.el-header-wrap { border-bottom: 1px solid var(--el-line); }
.el-header { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 32px; }
.el-brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--el-serif); font-size: 31px; letter-spacing: -.055em; line-height: 1; text-decoration: none; white-space: nowrap; }
.el-brand svg { width: 25px; height: 32px; color: var(--el-accent); }
.el-header .wp-block-navigation { font-size: 14px; font-family: var(--el-sans); }
.el-header .wp-block-navigation__container { gap: 30px; }
.el-header .wp-block-navigation-item__content { padding-block: 12px; }
.el-header .current-menu-item > a { text-decoration: underline; text-underline-offset: 6px; }
.el-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--el-bg) !important; color: var(--el-text) !important; padding: 32px; }
.el-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 25px; gap: 14px; }
.el-header .wp-block-navigation__responsive-container-open,
.el-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.el-header .wp-block-navigation__responsive-container-close { display: flex; }
.el-footer { padding-block: 30px 32px; border-top: 1px solid var(--el-line); }
.el-footer-top { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.el-footer .el-brand { font-size: 25px; }
.el-footer .el-brand svg { height: 27px; width: 21px; }
.el-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.el-footer-links .wp-block-navigation__container { gap: 6px 22px; }
.el-footer-links .wp-block-navigation__submenu-container { background: var(--el-surface); color: var(--el-text); border-color: var(--el-line); }
.el-footer-links a { padding-block: 8px; text-decoration: none; }
.el-footer-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 30px; }
.el-footer-bottom > p { color: var(--el-muted); font-size: 13px; margin: 0; }
.el-appearance { padding: 0; margin: 0; border: 0; }
.el-appearance legend { font-size: 12px; color: var(--el-muted); margin-bottom: 5px; }
.el-appearance-options { display: flex; gap: 2px; }
.el-appearance label { position: relative; }
.el-appearance input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; }
.el-appearance span { display: block; padding: 9px 12px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; }
.el-appearance input:checked + span { border-color: var(--el-line); background: var(--el-surface); }
.el-appearance input:focus-visible + span { outline: 2px solid var(--el-accent); outline-offset: 2px; }
.el-programme-rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.el-programme-cover { display: block; position: relative; overflow: hidden; border-radius: 7px; color: #fff; aspect-ratio: 1.7; background: #374438; }
.el-programme-cover:hover { color: #fff; }
.el-programme-cover img { width: 100%; height: 100%; object-fit: cover; }
.el-programme-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(15,24,18,.78),rgba(15,24,18,0) 70%); }
.el-programme-cover span { z-index: 1; }
.el-programme-cover .el-cover-title { position: absolute; bottom: 17px; left: 18px; right: 40px; font-family: var(--el-serif); font-size: clamp(19px,2.4vw,26px); line-height: 1.1; letter-spacing: -.025em; }
.el-programme-cover .el-cover-arrow { position: absolute; right: 16px; bottom: 16px; font-size: 20px; }
.el-programme-cover .el-cover-label { position: absolute; top: 14px; left: 14px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 2px 5px; background: rgba(15,24,18,.8); border-radius: 2px; }
.el-programme-caption { display: block; color: var(--el-muted); font-size: 13px; margin-top: 9px; text-decoration: none; }
.el-featured { background: var(--el-tint); padding: 24px; border-radius: 9px; }
.el-featured h2 { font-size: 29px; }
.el-featured-grid, .el-publication-grid, .el-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.el-publisher-spotlight { display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 5px; background: var(--el-surface); }
.el-publisher-spotlight img { width: 68px; height: 68px; border-radius: 5px; object-fit: cover; }
.el-publisher-spotlight h3 { margin: 0 0 4px; font-size: 23px; }
.el-publisher-spotlight p { color: var(--el-muted); font-size: 14px; line-height: 1.45; margin: 0; }
.el-publisher-spotlight a { text-decoration: none; }
.el-card { min-width: 0; background: var(--el-surface); border: 1px solid var(--el-line); border-radius: 7px; overflow: hidden; }
.el-card-art { display: block; width: 100%; aspect-ratio: 2.65; object-fit: cover; background: var(--el-soft); }
.el-missing-art { display: grid; place-items: center; font-family: var(--el-serif); font-size: 28px; color: var(--el-muted); background: var(--el-soft); }
.el-profile-header > .el-missing-art { width: 160px; height: 160px; border-radius: 8px; }
.el-card-body { padding: 20px 22px 16px; }
.el-card h3 { margin: 4px 0 8px; font-size: 26px; }
.el-card h3 a { text-decoration: none; }
.el-card p { font-size: 15px; color: var(--el-muted); line-height: 1.5; margin-bottom: 12px; }
.el-card-meta { font-size: 12px; color: var(--el-accent); text-transform: uppercase; letter-spacing: .075em; }
.el-card-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; align-items: center; }
.el-card-actions a { padding-block: 10px; font-size: 14px; }
.el-source-link { color: var(--el-muted); text-decoration: none; overflow-wrap: anywhere; }
.el-invitation { display: flex; align-items: center; gap: 22px; padding: 28px 30px; background: var(--el-tint); border-radius: 7px; margin-top: 44px; }
.el-invitation > .wp-block-group { flex: 1; margin: 0; }
.el-invitation h2 { font-size: 25px; margin: 0 0 5px; }
.el-invitation p { font-size: 14px; color: var(--el-muted); margin: 0; }
.el-invitation > p a { color: var(--el-text); white-space: nowrap; }
.el-button, .wp-block-button__link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 11px 20px; border: 1px solid var(--el-accent); border-radius: 5px; background: var(--el-accent); color: var(--el-on-accent); font-family: var(--el-sans); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; gap: 12px; cursor: pointer; }
.el-button:hover, .wp-block-button__link:hover { color: var(--el-on-accent); filter: brightness(.93); }
.el-button-secondary { background: transparent; color: var(--el-text); border-color: var(--el-line); }
.el-button-secondary:hover { color: var(--el-accent); }
.el-empty { background: var(--el-soft); border-radius: 8px; padding: clamp(24px,5vw,48px); margin-block: 28px; }
.el-empty h2 { margin: 0 0 15px; }
.el-empty p { color: var(--el-muted); max-width: 600px; }
.el-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--el-line); margin-block: 26px 24px; }
.el-tabs a { padding: 12px 0; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.el-tabs a[aria-current="page"] { border-color: var(--el-accent); color: var(--el-accent); }
.el-search { display: flex; gap: 10px; max-width: 680px; }
.el-search input { flex: 1; min-width: 0; }
.el-field, .el-search input, .el-filters select, .wp-block-search__input { min-height: 46px; background: var(--el-surface); color: var(--el-text); border: 1px solid var(--el-line); border-radius: 5px; padding: 10px 13px; font-size: 16px; }
.el-filters { margin-block: 20px 24px; }
.el-filter-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding-block: 16px; }
.el-filter-grid label { display: grid; gap: 5px; font-size: 13px; }
.el-filters summary { display: inline-block; padding: 8px 0; color: var(--el-muted); font-size: 14px; }
.el-filters summary::before { content: '+ '; }
.el-filters[open] summary::before { content: '− '; }
.el-result-count { font-size: 14px; color: var(--el-muted); margin-bottom: 16px; }
.el-pagination { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 34px; }
.el-pagination a, .el-pagination span { min-width: 44px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--el-line); border-radius: 4px; text-align: center; text-decoration: none; }
.el-pagination [aria-current] { background: var(--el-text); color: var(--el-bg); }
.el-profile-header { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; margin: 24px 0 36px; }
.el-profile-header > img { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; }
.el-profile-header h1 { margin: 8px 0 12px; }
.el-profile-header p { color: var(--el-muted); max-width: 600px; }
.el-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px; }
.el-tag { font-size: 13px; padding: 4px 11px; border-radius: 30px; border: 1px solid var(--el-line); text-decoration: none; }
.el-breadcrumb { font-size: 13px; color: var(--el-muted); margin-bottom: 30px; }
.el-edition { padding: 24px 0; border-top: 1px solid var(--el-line); display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.el-edition h3 { margin: 0 0 6px; }
.el-edition p { margin: 0; color: var(--el-muted); font-size: 14px; }
.el-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,70px); align-items: center; margin-block: 50px 64px; }
.el-split h2 { margin: 0 0 18px; }
.el-split p { color: var(--el-muted); }
.el-split > * { min-width: 0; margin-block: 0; }
.el-reading-demo { background: var(--el-surface); border: 1px solid var(--el-line); border-radius: 9px; padding: clamp(22px,4vw,36px); }
.el-reading-demo h3 { font-size: 32px; margin: 20px 0; }
.el-reading-demo .el-demo-passage { font-family: var(--el-serif); font-size: 21px; line-height: 1.55; color: var(--el-text); }
.el-reading-demo mark { background: var(--el-sage); color: var(--el-text); padding: 2px; }
.el-reading-demo .el-demo-caption { margin: 25px 0 0; padding-top: 14px; border-top: 1px solid var(--el-line); font-size: 12px; }
.el-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; padding-block: 34px; border-block: 1px solid var(--el-line); }
.el-feature-grid h3 { margin: 10px 0; }
.el-feature-grid p { color: var(--el-muted); font-size: 15px; margin: 0; }
.el-feature-number { font-size: 12px; color: var(--el-accent); letter-spacing: .08em; }
.el-art-panel { background: var(--el-sage); border-radius: 8px; overflow: hidden; }
.el-art-panel img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.el-flow { display: grid; gap: 10px; background: var(--el-soft); border-radius: 8px; padding: 28px; }
.el-flow > .wp-block-group { background: var(--el-surface); border: 1px solid var(--el-line); border-radius: 6px; padding: 18px 22px; margin: 0; }
.el-flow h3 { margin: 3px 0 6px; font-size: 24px; }
.el-flow p { font-size: 14px; margin: 0; }
.el-steps { list-style: none; counter-reset: steps; padding: 0; }
.el-steps > li { counter-increment: steps; position: relative; padding: 24px 0 24px 56px; border-bottom: 1px solid var(--el-line); }
.el-steps > li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 29px; color: var(--el-accent); font-size: 12px; }
.el-steps h3 { margin: 0 0 9px; }
.el-steps p { margin: 0; color: var(--el-muted); }
.el-callout { padding: 22px 26px; border-left: 2px solid var(--el-accent); background: var(--el-tint); margin-block: 30px; }
.el-callout p { margin: 0; }
.el-faq .wp-block-details { padding: 21px 0; border-bottom: 1px solid var(--el-line); }
.el-faq summary { font-size: 18px; }
.el-faq details p { color: var(--el-muted); margin: 16px 0 0; max-width: 650px; }
.el-availability p:last-child { margin-bottom: 0; }
.el-article .wp-block-post-title { margin-block: 16px 24px; }
.el-article .wp-block-post-content { font-family: var(--el-serif); font-size: 21px; line-height: 1.7; }
.el-article .wp-block-post-content h2 { margin-top: 1.7em; }
.el-article .wp-block-post-date { color: var(--el-muted); font-size: 13px; }
.el-article .wp-block-post-featured-image { margin-block: 30px; }
.el-archive-list { padding: 0; }
.el-archive-list > li { border-bottom: 1px solid var(--el-line); padding-block: 24px; }
.el-archive-list .wp-block-post-title { font-size: 29px; }
.el-archive-list .wp-block-post-title a { text-decoration: none; }
.el-preview-note { background: var(--el-soft); color: var(--el-muted); font-size: 12px; padding: 9px 24px; text-align: center; }
.el-preview-note a { margin-left: 8px; }
@media (max-width: 780px) {
  .el-shell { width: calc(100% - 48px); }
  .el-header { min-height: 84px; }
  .el-header .wp-block-navigation__container { gap: 20px; }
  .el-main { padding-block: 34px 48px; }
  .el-featured-grid { grid-template-columns: 1fr; }
  .el-split { gap: 26px; }
  .el-card-actions { display: block; }
  .el-card-actions a { display: block; }
  .el-feature-grid { gap: 20px; }
}
@media (max-width: 600px) {
  .el-shell { width: calc(100% - 40px); }
  .el-header { min-height: 78px; }
  .el-brand { font-size: 29px; }
  .el-intro { margin-bottom: 28px; }
  .el-intro p { font-size: 16px; }
  .el-section { margin-top: 32px; }
  .el-section-heading { gap: 12px; margin-bottom: 16px; }
  .el-section-heading h2 { font-size: 27px; }
  .el-section-heading > a { font-size: 13px; flex-shrink: 0; }
  .el-programme-rail { grid-template-columns: none; grid-auto-columns: min(82%,310px); grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; gap: 12px; scrollbar-width: thin; }
  .el-programme-rail > * { scroll-snap-align: start; }
  .el-programme-cover .el-cover-title { font-size: 25px; }
  .el-featured { padding: 20px 16px; }
  .el-publisher-spotlight { padding: 15px; gap: 15px; }
  .el-publication-grid, .el-results { grid-template-columns: 1fr; gap: 16px; }
  .el-card-art { aspect-ratio: 2.5; }
  .el-card-body { padding: 19px 20px 13px; }
  .el-card-actions { display: flex; }
  .el-invitation { display: block; padding: 25px; margin-top: 32px; }
  .el-invitation > p { margin-top: 12px; }
  .el-footer-top, .el-footer-bottom { align-items: start; flex-direction: column; gap: 20px; }
  .el-footer-bottom { margin-top: 22px; }
  .el-split { grid-template-columns: 1fr; margin-block: 32px 44px; gap: 26px; }
  .el-feature-grid { grid-template-columns: 1fr; gap: 26px; }
  .el-profile-header { grid-template-columns: 1fr; gap: 20px; }
  .el-profile-header > img { width: 96px; height: 96px; }
  .el-edition { align-items: start; flex-direction: column; gap: 8px; }
  .el-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .el-filter-grid select { width: 100%; min-width: 0; }
  .el-reading-demo { padding: 26px; }
  .el-preview-note { text-align: left; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print { .el-header-wrap, .el-footer, .el-invitation, .el-preview-note { display: none; } :root { --el-bg: #fff; --el-text: #000; --el-muted: #444; } .el-shell { width: 100%; } a { text-decoration: underline; } }
