/*
 * Olio Nuovo Days 2027 — theme styles.
 * Black on white, one green, typewriter type (HAL Timezone Mono) and narrow sans labels (G2 Erika).
 * The variables below are also read by the OND Competition plugin (producer area, blocks).
 */

/* ---------- Fonts (files in /fonts, see fonts/README.md) */
@font-face { font-family: "G2 Erika"; src: url("../../fonts/erika-regular.woff2") format("woff2"), url("../../fonts/erika-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HAL Timezone"; src: url("../../fonts/timezone-regular.woff2") format("woff2"), url("../../fonts/timezone-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HAL Timezone Book"; src: url("../../fonts/timezone-book.woff2") format("woff2"), url("../../fonts/timezone-book.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
/* No Medium cut (licence: Regular and Book only): bold text is synthesized from the Regular. */

/* ---------- Tokens */
:root {
    --ink: #000;
    --paper: #fff;
    --cream: #fff;
    --green: #3B9E28;                /* also rgb(60 154 43 / .75) on image hovers */
    --brick: var(--green);          /* the plugin's accent */
    --stone: #8A8A8A;
    --muted: #555;
    --line: #000;
    --line-soft: #d6d6d6;

    --serif-display: "HAL Timezone", "Courier New", Courier, monospace;   /* typewriter: titles, text, wordmark */
    --serif-body: "HAL Timezone", "Courier New", Courier, monospace;
    --sans: "G2 Erika", "Helvetica Neue", Arial, sans-serif;
    --serif-book: "HAL Timezone Book", var(--serif-display);   /* Book cut: lists, subtitles, leads */
    --serif-journal: var(--serif-display);   /* Journal and Olive Society titles: Mono Regular (no Timezone Standard licence) */

    /* Type scale (designer, 2026-11-06): size / line height */
    --fs-label: 12px;   --lh-label: calc(13 / 12);              /* G2 Erika: captions, links, small labels */
    --fs-button: 15px;  --lh-button: calc(18 / 15);             /* G2 Erika: buttons */
    --fs-text: 14px;    --lh-text: calc(16 / 14);               /* Timezone Regular: body text */
    --fs-lead: clamp(18px, 2vw, 24px);   --lh-lead: 1.25;       /* Timezone Book 24/30: subtitles */
    --fs-subtitle: clamp(24px, 2.6vw, 32px); --lh-subtitle: calc(30 / 32);   /* Timezone Regular 32/30: small titles (full-image hero) */
    --fs-list: clamp(24px, 3vw, 36px);   --lh-list: calc(40 / 36);           /* Timezone Book 36/40: lists (jury, journal) */
    --fs-title: clamp(34px, 5vw, 48px);  --lh-title: calc(40 / 48);          /* Timezone Regular 48/40: big titles */
    /* Section lines and frames: 1 px on standard screens. Frames are drawn with background
       gradients, and a band thinner than a device pixel is dropped or kept depending on where
       it falls (sides missing at random), so the designer's .5px only from 2x screens. */
    --line-w: 1px;
    --section-gap: clamp(64px, 11vw, 160px);   /* white space under a section divider */
    --fs-wordmark: clamp(36px, calc((100vw - 2 * var(--gutter)) / 9.3), 240px); /* 15 monospaced capitals across the page */

    --gutter: clamp(16px, 2vw, 24px);
    --nav-h: 60px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --frame-gap: 8px;   /* open frames: the horizontal lines stop short of the vertical ones */
}
@media (min-resolution: 2dppx) { :root { --line-w: .5px; } }

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 var(--fs-text)/var(--lh-text) var(--serif-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
/* Producer area (plugin forms): keeps its former text size and line height, the designer's scale is for the public pages. */
.ond-area { font-size: 15px; line-height: 1.45; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
/* Green is never used for small text (3.6:1 on white): links stay ink, hover adds a green underline. */
a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
/* Navigation links (header, menu, footer, intro link) and laureate names: the green line is drawn from left to right on hover
   (--draw-color: white on the green menu and band). */
:is(.site-header__account a, .site-header__menu, .site-footer a, .site-intro__bar a, .ond-laureate-tabs a) {
    text-decoration: none !important;
    background-image: linear-gradient(var(--draw-color, var(--green)), var(--draw-color, var(--green)));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .3s var(--ease, ease);
}
:is(.site-header__account a, .site-header__menu, .site-footer a, .site-intro__bar a, .ond-laureate-tabs a):is(:hover, :focus-visible) { background-size: 100% 2px; }
.site-menu, .site-footer__band { --draw-color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
    :is(.site-header__account a, .site-header__menu, .site-footer a, .site-intro__bar a, .ond-laureate-tabs a) { transition: none; }
}
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; }
h1, h2 { font-size: var(--fs-title); line-height: var(--lh-title); }
h3 { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
::selection { background: var(--green); color: var(--paper); }

.label, .has-label-font-size {
    font-family: var(--sans);
    font-size: var(--fs-label);
    line-height: var(--lh-label);
    letter-spacing: .02em;
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--paper); padding: 8px 12px; }

/* Editor palette and sizes */
.has-ink-color { color: var(--ink); } .has-ink-background-color { background-color: var(--ink); }
.has-paper-color { color: var(--paper); } .has-paper-background-color { background-color: var(--paper); }
.has-green-color { color: var(--green); } .has-green-background-color { background-color: var(--green); }
.has-grey-color { color: var(--stone); } .has-grey-background-color { background-color: var(--stone); }
.has-text-font-size { font-size: var(--fs-text); }
.has-lead-font-size { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.has-title-font-size { font-size: var(--fs-title); line-height: var(--lh-title); }

/* ---------- Header */
.site-header {
    position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
    gap: var(--gutter);
    height: var(--nav-h);
    padding: 14px var(--gutter);
    background: var(--paper);
    font-family: var(--sans); font-size: var(--fs-label);
}
/* The header is fixed on every page: the page starts below it, except under a full-image hero. */
body { padding-top: var(--nav-h); }
body.has-cover-hero { padding-top: 0; }
.site-header a, .site-header button { text-decoration: none; }
.site-header__account { display: flex; gap: 2.5em; }
.site-header__brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.site-header__logo { font-family: var(--serif-display); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.site-header__section { min-height: 1.3em; color: var(--stone); transition: opacity .3s; }
.site-header__section:empty { opacity: 0; }
.site-header__menu {
    justify-self: end;
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; color: inherit;
}
.site-header__menu:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
/* Pages that open on a full image: the header sits over it. */
/* Over a full-image hero the header is transparent with white text, then white again below it (theme.js). */
.site-header { transition: background-color .3s, color .3s; }
.has-cover-hero .site-header.is-over-hero { background: transparent; color: var(--paper); }
.has-cover-hero .site-header.is-over-hero .site-header__section { color: inherit; }
@media (max-width: 600px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-header__account { display: none; }
    .site-header__brand { align-items: flex-start; text-align: left; }
}

/* ---------- Full-screen menu */
/* The scrollbar keeps its place when the menu locks the page (no shift). The menu spans 100vw to cover
   the empty gutter (100vw includes it, 100% does not); its right padding adds the gutter back so Close stays in line. */
html { scrollbar-gutter: stable; }
html:has(body.menu-open) { background: var(--green); }   /* kept as a fallback: worked in Chrome and Firefox */
body.menu-open { overflow: hidden; }
.site-menu {
    position: fixed; inset: 0; z-index: 100;
    display: flex; flex-direction: column;
    background: var(--green); color: var(--ink);
    padding: 14px var(--gutter) 0;
    right: auto; width: 100vw; padding-right: calc(var(--gutter) + 100vw - 100%);
    overflow: hidden auto;
    animation: menu-in .35s var(--ease);
}
.site-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; } }
.site-menu a { text-decoration: none; }
.site-menu a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--paper); text-decoration-thickness: 2px; }
.site-menu__bar { display: grid; grid-template-columns: 1fr auto 1fr; font-family: var(--sans); font-size: var(--fs-label); }
.site-menu__bar .site-header__menu:hover { text-decoration-color: var(--paper); }
.site-menu__body {
    flex: 1;
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gutter); align-items: start;
    align-content: center;   /* the row (image, small links, sections) sits in the middle of the space between the bar and the wordmark */
    padding: 48px 0 24px;
}
.site-menu__image { margin: 0; }
.site-menu__image img { width: 100%; aspect-ratio: 3/4; object-fit: cover; max-width: 220px; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
/* Small links; a menu item with the CSS class "menu-gap" starts a new group. */
.site-menu__small { font-family: var(--sans); font-size: var(--fs-label); line-height: 1.5; }
.site-menu__small .menu-gap { margin-top: 1.2em; }
/* Sections: top-level items are titles (custom link "#" = not clickable), their sub-items the links. */
.site-menu__list { display: flex; flex-direction: column; gap: 2.2em; }
.site-menu__list > li > a { display: block; text-transform: uppercase; margin-bottom: .4em; }
.site-menu__list a[href="#"] { pointer-events: none; cursor: default; }
.keep-the__word { text-transform: lowercase; }   /* "the OLIVE SOCIETY": menu item with the class keep-the (inc/setup.php) */
.site-menu__list .sub-menu { padding-left: 1.75em; line-height: 1.3; }
/* "Not sure" finder (Menu - Not Sure mockup): in place of the image; "[ ]" before the open item. */
.site-menu__finder { max-width: 22em; font: 400 var(--fs-label)/1.3 var(--sans); }
.site-menu__finder[hidden] { display: none; }
.site-menu__finder-head { display: flex; justify-content: space-between; align-items: start; gap: 1em; margin-bottom: 40px; }
.site-menu__finder-title, .site-menu__finder-result { margin: 0; }
.site-menu__finder-field { display: block; }
.site-menu__finder select {
    appearance: none; width: 100%; padding: 6px 28px 6px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M1 1l8 6-8 6' fill='none' stroke='%23000'/%3E%3C/svg%3E") right 4px center no-repeat;
    color: var(--ink); font: 400 var(--fs-text) var(--serif-body); cursor: pointer;
}
.site-menu__finder select:focus-visible { outline: none; border-bottom-width: 2px; }   /* no white frame (designer) */
.site-menu__finder-result { margin-top: 18px; min-height: 2.6em; }
.site-menu__finder-link { display: inline-block; margin-top: 12px; text-decoration: underline !important; text-decoration-thickness: 1px !important; }
/* "[ ]" before the hovered link: sections' links and the small links of the first column (designer). */
.site-menu__list :is(a.is-finder-open, .sub-menu a), .site-menu__small a { position: relative; }
.site-menu__list a.is-finder-open::before,
.site-menu__list .sub-menu a:is(:hover, :focus-visible)::before,
.site-menu__small a:is(:hover, :focus-visible)::before { content: "[ ]"; position: absolute; right: calc(100% + .5em); white-space: nowrap; letter-spacing: -2px; }
.site-menu__small a:is(:hover, :focus-visible)::before { letter-spacing: 0; }   /* Erika: the brackets need no tightening */
.site-menu__list .sub-menu a:hover, .site-menu__small a:hover { text-decoration: none; }
.site-menu .site-wordmark { margin: 0 calc(var(--gutter) * -1); padding-bottom: var(--gutter); position: sticky; bottom: 0; flex-shrink: 0; background: var(--green); } /* always at the bottom, as in the mockup, even when the menu scrolls */
@media (max-width: 800px) {
    .site-menu__body { grid-template-columns: 1fr; align-items: start; align-content: start; }
    .site-menu__image { display: none; }
    .site-menu__finder { order: 0; max-width: none; }
    .site-menu__sections { order: 1; }   /* sections first, small links after */
    .site-menu__small { order: 2; }
}
@media (max-width: 600px) { .site-menu__bar { grid-template-columns: 1fr auto; } }

/* ---------- Wordmark */
.site-wordmark {
    margin: 0;
    font-family: var(--serif-display);
    font-size: var(--fs-wordmark);
    line-height: .85;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
    overflow: hidden;
}
.site-wordmark:has(.site-wordmark__svg) { padding-inline: var(--gutter); line-height: 0; }
.site-wordmark__svg { display: block; width: 100%; height: auto; }
.site-wordmark--fixed { position: sticky; bottom: 0; z-index: 2; pointer-events: none; }

/* ---------- Layout of the page content */
.site-main { min-height: 50vh; }
.entry-content > * { margin-inline: var(--gutter); }
.entry-content > .alignfull { margin-inline: 0; }
.entry-content > .alignfull:is(.site-aside, .site-teaser, .site-cards, .site-journal) { padding-inline: var(--gutter); }
.entry-content > .alignwide { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.entry-content > :where(p, ul, ol, h2, h3, h4, blockquote):not(.alignwide, .alignfull) { max-width: 720px; margin-inline: auto; padding-inline: var(--gutter); }
.entry-content > * + * { margin-top: clamp(32px, 6vw, 96px); }
.entry-content > :where(p, ul, ol) + :where(p, ul, ol) { margin-top: 0; }
.page-head { padding: clamp(48px, 10vw, 120px) var(--gutter) clamp(24px, 4vw, 48px); text-align: center; }
.page-head__title { margin: 0 auto; max-width: 18ch; }
.entry-media img { width: 100%; }
.page-empty { text-align: center; padding: 48px var(--gutter); }

/* ---------- Section divider */
.site-section {
    border-top: var(--line-w) solid var(--line);
    padding: 6px var(--gutter) 0;
    text-align: center;
    color: var(--ink);
}
.entry-content > .site-section { margin-inline: var(--gutter); }
.entry-content > .site-section + * { margin-top: var(--section-gap); }
/* After a full-width image: no line. Before one: no line either, the label sits on the image, in white. */
:is(.wp-block-image, .wp-block-cover, .site-hero--cover, .site-hero--carousel, .site-journal-cover).alignfull + .site-section { border-top-color: transparent; }
:is(.wp-block-image, .wp-block-cover, .site-hero--cover, .site-hero--carousel, .site-journal-cover).alignfull + :is(.ond-jury-block, .ond-jury) .ond-jury__bar { border-top: 0; }
.entry-content > .site-section:has(+ :is(.wp-block-image.alignfull, .wp-block-cover.alignfull, .site-hero--cover, .site-hero--carousel, .site-latest)) {
    position: relative; z-index: 2; height: 0; padding: 0; border-top-color: transparent; color: var(--paper);
}
.entry-content > .site-section:has(+ :is(.wp-block-image.alignfull, .wp-block-cover.alignfull, .site-hero--cover, .site-hero--carousel, .site-latest)) > .label { position: absolute; left: 0; right: 0; top: 10px; }
.entry-content > .site-section:has(+ :is(.wp-block-image.alignfull, .wp-block-cover.alignfull, .site-hero--cover, .site-hero--carousel, .site-latest)) + * { margin-top: 0; }

/* ---------- Heading and text set against the left edge (Additional CSS class "site-left", "site-left--narrow") */
.entry-content > .site-left { max-width: none; margin-inline: var(--gutter); padding-inline: 0; text-align: left; }
.entry-content > .site-left--narrow { max-width: 34ch; }
.entry-content > .site-left + .site-left { margin-top: 24px; }
p.site-left::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }

/* ---------- Text with side label */
.site-aside {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);   /* designer: label column 120 px */
    gap: var(--gutter);
}
.site-aside__content p { margin: 0; }   /* paragraphs follow each other without space */
.entry-content > .site-aside + .site-aside { margin-top: 25px; }   /* designer: 25 px between two texts */
.site-aside__label { margin: .3em 0 0; }
.site-aside--sticky .site-aside__label { position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.site-aside__content > .acf-innerblocks-container > :first-child,
.site-aside__content > :first-child { margin-top: 0; }
/* Mockups: the first two lines of each paragraph are indented (a floated spacer two lines high). */
.site-aside__content > .acf-innerblocks-container > p::before,
.site-aside__content > p::before,
p.site-hero__text::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
/* Align right / left (block toolbar): half of the page, against that side. */
.site-aside.alignright,
.site-aside.alignleft { float: none; width: auto; max-width: none; margin-inline: 0; }
.entry-content > .site-aside.alignright,
.entry-content > .site-aside.alignleft { margin-inline: var(--gutter); }
@media (min-width: 701px) {
    .site-aside.alignright.alignright { margin-left: calc(50% + var(--gutter) / 2); }
    .site-aside.alignleft.alignleft { margin-right: calc(50% + var(--gutter) / 2); }
}
@media (max-width: 700px) { .site-aside { grid-template-columns: 1fr; } }

/* ---------- Intro with image (home "Our philosophy") */
.site-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 2fr);
    gap: 0 var(--gutter);
    align-items: start;
}
.entry-content > .site-intro.alignfull { padding-inline: var(--gutter); }
.site-intro__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--gutter); margin-bottom: 24px; color: var(--stone); }
.site-intro__bar a { color: inherit; text-decoration: none; }
.site-intro__bar a:hover { color: var(--ink); }
.site-intro__lead { padding-left: 1.5em; }
.site-intro__lead p, .site-intro__text p { margin: 0 0 1em; }
.site-intro__media { margin: 0; }
.site-intro__media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.site-intro__text p::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
.site-intro__thumbs {
    grid-column: 3; justify-self: end;
    display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
    width: min(100%, 420px);
}
.site-intro__thumbs li { flex: 1 1 0; }
.site-intro__thumbs img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 900px) {
    .site-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
    .site-intro__lead { grid-column: 1 / -1; padding-left: 0; }
    .site-intro__text { grid-column: 2; }
    .site-intro__thumbs { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
    .site-intro { grid-template-columns: 1fr; }
    .site-intro__text { grid-column: 1; }
}

/* ---------- Hero */
.site-hero--wordmark {
    text-align: center; padding-top: clamp(24px, 4vw, 48px);
    /* Home: the block fills the screen under the header, the wordmark at the bottom. */
    min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column;
}
.site-hero__kicker { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 34ch; margin: 0 auto 24px; }   /* two lines, as typed */
.site-hero--wordmark .site-hero__media { margin: 0 auto; width: min(560px, 70vw, (100svh - var(--nav-h) - 22vw) * 4 / 3); }   /* small screens: the image shrinks so the wordmark stays in view */
.site-hero--wordmark .site-hero__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.site-hero--wordmark .site-wordmark { margin-top: auto; padding-top: .2em; padding-bottom: 24px; position: relative; }

.site-hero--cover { position: relative; min-height: 100svh; color: var(--paper); display: flex; align-items: flex-end; }
.site-hero--cover .site-hero__media { position: absolute; inset: 0; margin: 0; }
.site-hero--cover .site-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.site-hero--cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
.site-hero__links {
    position: absolute; z-index: 1; left: 50%; top: 45%; transform: translate(-50%, -50%);
    display: flex; flex-direction: column;
    width: min(240px, 70vw);
    list-style: none; margin: 0; padding: 0; text-align: center;
}
/* Stacked open frames (mockup): shared vertical lines, one line between two links. */
.site-hero__links a {
    display: block;
    padding: 22px 16px;
    color: var(--paper);
    font: 400 var(--fs-button)/var(--lh-button) var(--sans);
    text-decoration: none;
}
.site-hero__links { gap: 12px; width: 160px; }   /* centred links: one frame each, button size (designer) */
.site-hero__links a { display: flex; align-items: center; justify-content: center; min-height: 60px; }
.site-hero--links-bottom .site-hero__links { gap: 0; }
.site-hero__links a:hover,
.site-hero__links a:focus-visible { color: var(--green); text-decoration: none; }
.site-hero__caption {
    position: relative; z-index: 1; width: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end;
    padding: var(--gutter) var(--gutter) clamp(24px, 4vw, 48px);
}
.site-hero__title { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); }
.site-hero--cover .site-hero__title { font-size: var(--fs-subtitle); line-height: var(--lh-subtitle); max-width: 14ch; }
.site-hero__text { margin: 0; max-width: 46ch; }
@media (max-width: 700px) { .site-hero__caption { grid-template-columns: 1fr; } }
/* Links at the bottom left (Olive Society mockup): small title, framed links side by side,
   then the big title with the text beside it. */
.site-hero--links-bottom .site-hero__caption {
    grid-template-columns: minmax(0, 400px) minmax(0, 540px);
    column-gap: var(--gutter); row-gap: 24px; align-items: start;
}
.site-hero--links-bottom .site-hero__name { grid-column: 1 / -1; margin: 0; font: 400 clamp(28px, 3vw, 44px)/1.05 var(--serif-display); }
.site-hero--links-bottom .site-hero__links {
    position: static; transform: none;
    grid-column: 1; flex-direction: row; width: 100%;
}
.site-hero--links-bottom .site-hero__links li { flex: 1 1 0; }
.site-hero--links-bottom .site-hero__links a { height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.site-hero--links-bottom .site-hero__links li:not(:last-child) a { --frame-bottom-w: var(--line-w); --frame-right-w: 0px; }
.site-hero--links-bottom .site-hero__title { grid-column: 1; }
.site-hero--links-bottom .site-hero__text { grid-column: 2; align-self: start; padding-top: .3em; }
@media (max-width: 700px) {
    .site-hero--links-bottom .site-hero__caption { grid-template-columns: 1fr; }
    .site-hero--links-bottom .site-hero__text { grid-column: 1; }
}

/* Story (Olive Society mockup): the block fills the screen under the header; at the bottom a line
   of text, two framed links side by side sharing one line, and the big title on the lines typed. */
.site-hero--story {
    min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
    text-align: center; padding: clamp(24px, 4vw, 48px) var(--gutter) 24px;
}
.site-hero--story .site-hero__kicker { margin-bottom: 24px; }
.site-hero--story .site-hero__links { position: static; transform: none; flex-direction: row; gap: 0; width: auto; }
.site-hero--story .site-hero__links li { width: 160px; }
.site-hero--story .site-hero__links a { height: 100%; color: var(--ink); }
.site-hero--story .site-hero__links li:not(:last-child) a { --frame-right-w: 0px; }
.site-hero--story .site-hero__links a:is(:hover, :focus-visible) { color: var(--green); }
.site-hero--story .site-hero__title {
    margin-top: clamp(16px, 2vw, 24px);
    font: 400 clamp(56px, 9.5vw, 160px)/.9 var(--serif-journal); letter-spacing: -.01em;
}

/* Carousel: full-width images, label and title top left; the previous and next images at the
   edges, half-way down, lead to them (theme.js). Cross-fade, nothing moves with reduced motion. */
.site-hero--carousel { position: relative; color: var(--paper); }
.site-carousel { position: relative; height: min(100svh, 64vw); min-height: 420px; overflow: hidden; background: var(--ink); }
.site-carousel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.site-carousel__slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease); }
.site-carousel__image { width: 100%; height: 100%; object-fit: cover; }
.site-carousel__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), transparent 40%); pointer-events: none; }
.site-carousel__caption { position: absolute; z-index: 1; top: var(--gutter); left: var(--gutter); right: var(--gutter); display: flex; flex-direction: column; gap: 4px; }
.site-carousel__label { font: 400 var(--fs-label)/var(--lh-label) var(--sans); }
.site-carousel__title { max-width: 14ch; font: 400 var(--fs-title)/var(--lh-title) var(--serif-display); }
.site-carousel__nav {
    position: absolute; z-index: 2; top: 42%; width: clamp(64px, 11.5vw, 170px); aspect-ratio: 11 / 10;
    padding: 0; border: 0; background: var(--ink); cursor: pointer; overflow: hidden;
}
.site-carousel__nav--prev { left: 0; }
.site-carousel__nav--next { right: 0; }
.site-carousel__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease), transform .4s var(--ease); }
.site-carousel__thumb.is-shown { opacity: 1; }
.site-carousel__nav:is(:hover, :focus-visible) .site-carousel__thumb { transform: scale(1.06); }
.site-carousel__nav:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
    .site-carousel__slide, .site-carousel__slide.is-active, .site-carousel__thumb { transition: none; }
    .site-carousel__nav:is(:hover, :focus-visible) .site-carousel__thumb { transform: none; }
}

/* ---------- Numbered cards */
.site-cards { display: grid; grid-template-columns: repeat(var(--cards), minmax(0, 1fr)); gap: 0; }
.site-card__frame {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 16px;
    min-height: 200px; padding: 32px 24px 24px;
    --frame-gap: 10px;
    text-align: center; text-decoration: none;
    transition: background-color .25s;
}
/* Neighbouring cards share one vertical line: only the last card draws its right line. */
.site-card:not(:last-child) .site-card__frame { --frame-right-w: 0px; }
a.site-card__frame:hover { background-color: var(--green); color: var(--ink); }
.site-card__caption { color: var(--stone); }
.site-card__text { max-width: 18ch; }   /* the designer's line breaks */
.site-card__caption { margin: 8px 0 0; }
@media (max-width: 800px) { .site-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gutter); } }
@media (max-width: 800px) { .site-cards .site-card .site-card__frame { --frame-right-w: var(--line-w); } }
@media (max-width: 460px) { .site-cards { grid-template-columns: 1fr; } }

/* ---------- Competition teaser */
.site-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gutter); }
.site-teaser__head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; text-align: center; }
.site-teaser__head > * { grid-column: 2; margin: 0; }
.site-teaser__title { font-size: var(--fs-title); line-height: var(--lh-title); }
.site-teaser__text { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.site-teaser .ond-registration { display: contents; }
.site-teaser .ond-registration__badge { grid-column: 1; grid-row: 1; justify-self: start; }
.site-teaser .ond-registration__status { grid-column: 2; }
/* Right column, stacked: Notify me form (edition not open yet), buttons, login link. */
.site-teaser .ond-registration__notify { grid-column: 3; grid-row: 1; justify-self: end; }
.site-teaser .ond-registration__actions { grid-column: 3; grid-row: 1; justify-self: end; }
.site-teaser .ond-registration__notify ~ .ond-registration__actions { grid-row: 2; }
.site-teaser .ond-registration__login { grid-column: 3; grid-row: 3; justify-self: end; }
.site-teaser .ond-registration__side { display: contents; }
/* Layout "below" on desktop (video of 2026-10-30): the badge and the right column stay in view while the
   section scrolls (sticky over every row), the title, text, image and row in the middle column. */
@media (min-width: 801px) {
    .site-teaser--below { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(6, auto); }
    .site-teaser--below .site-teaser__head { display: contents; }
    .site-teaser--below .site-teaser__head > *,
    .site-teaser--below .ond-registration__status { grid-column: 2; text-align: center; }
    .site-teaser.site-teaser--below :is(.site-teaser__media, .site-teaser__row, .site-teaser__results) { grid-column: 2; width: 100%; }
    .site-teaser--below .ond-registration__badge,
    .site-teaser--below .ond-registration__side {
        grid-row: 1 / -1; align-self: start;
        position: sticky; top: calc(var(--nav-h) + 148px);
    }
    .site-teaser--below .ond-registration__side { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
}
.site-teaser--below .site-teaser__media { grid-column: 1 / -1; width: min(820px, 100%); justify-self: center; margin: 0; }
.site-teaser--right .site-teaser__media { grid-column: 2; margin: 0; }
.site-teaser__media img { width: 100%; }
/* Under the image: caption | text (first two lines indented) | edition status, as wide as the image. */
.site-teaser__row {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
    gap: var(--gutter); align-items: start;
    width: min(820px, 100%); justify-self: center;
}
.site-teaser--right .site-teaser__row { width: 100%; }
.site-teaser__caption, .site-teaser__status { margin: 0; color: var(--stone); }
.site-teaser__status { text-align: right; }
.site-teaser__status .ond-status { margin: 0; }
.site-teaser__status .ond-status span { display: block; }
.site-teaser__aside p { margin: 0 0 1em; }
.site-teaser__aside p::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
/* Layout "right" (Southern mockup): text block on the left, left-aligned, badge beside the title;
   image on the right with caption + text under it; the status is already in the text block. */
.site-teaser--right { align-items: start; }
.site-teaser--right .site-teaser__head {
    grid-column: 1; grid-row: 1;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px; text-align: left; align-content: start;
}
.site-teaser--right .site-teaser__head > * { grid-column: 1 / -1; justify-self: start; }
.site-teaser--right .site-teaser__title { grid-column: 2; grid-row: 1; }
.site-teaser--right .ond-registration__badge { grid-column: 1 !important; grid-row: 1 !important; padding-top: .6em; }
.site-teaser--right .ond-registration__status { grid-column: 1 / -1; grid-row: 2; }
.site-teaser--right .site-teaser__text { grid-row: 3; }
.site-teaser--right .ond-registration__notify,
.site-teaser--right .ond-registration__actions { grid-column: 1 / -1 !important; grid-row: 4 !important; justify-self: start !important; margin-top: 32px; }
.site-teaser--right .ond-registration__notify ~ .ond-registration__actions { grid-row: 5 !important; margin-top: 16px; }
.site-teaser--right .ond-registration__notify { justify-self: start !important; justify-content: flex-start; text-align: left; }
.site-teaser--right .ond-registration__notify * { text-align: left; justify-content: flex-start; }
.site-teaser--right .ond-registration__login { grid-column: 1 / -1 !important; grid-row: 6 !important; justify-self: start !important; }
.site-teaser--right .ond-registration__status,
.site-teaser--right .site-teaser__text { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); margin: 0; text-align: left; }
.site-teaser--right .site-teaser__media { grid-column: 2; grid-row: 1; }
.site-teaser--right .site-teaser__row { grid-column: 2; grid-row: 2; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr); }
.site-teaser--right .site-teaser__status { display: none; }
.site-teaser__results { margin: 0; }
.site-teaser__results .ond-last-results { margin: 0; }
.site-teaser__results a { text-decoration: none; color: var(--stone); }
.site-teaser__results .ond-last-results__badge { display: block; color: var(--ink); }
.site-teaser__results a:hover .ond-last-results__badge { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.site-teaser--right .site-teaser__results { grid-column: 1; grid-row: 2; align-self: start; }
.site-teaser--below .site-teaser__results { grid-column: 1 / -1; width: min(820px, 100%); justify-self: center; }

@media (max-width: 800px) {
    .site-teaser, .site-teaser__head { grid-template-columns: 1fr; }
    .site-teaser__head > *, .site-teaser .ond-registration > *, .site-teaser .ond-registration__side > * { grid-column: 1 !important; grid-row: auto !important; justify-self: center !important; }
    .site-teaser--right .site-teaser__media,
    .site-teaser--right .site-teaser__row,
    .site-teaser--right .site-teaser__results { grid-column: 1; grid-row: auto; }
    .site-teaser__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .site-teaser__aside { grid-column: 1 / -1; grid-row: 2; }
}

/* Home teasers, designer's notes of 2026-11-06 */
.site-teaser__title { font-family: var(--serif-book); font-size: clamp(36px, 4vw, 60px); line-height: 1; }   /* "Northern Hemisphere" on one line in the middle column */
.site-teaser .ond-registration__status { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); }
/* "Already have / an account? / [ Log in ]" on three centred lines under the button. */
.site-teaser .ond-registration__login { max-width: 8.5em; text-align: center; font: var(--fs-label)/var(--lh-label) var(--sans); }
.site-teaser .ond-registration__login a { display: block; text-decoration: none; }
.site-teaser .ond-registration__login a::before { content: "[ "; }
.site-teaser .ond-registration__login a::after { content: " ]"; }
/* Status under the image: "Open now / Entries close / 30 September 2026", the date on one line. */
.site-teaser__status .ond-status__date { display: block; white-space: nowrap; }
/* Notify me: the button, the email line beside it once the button is clicked (theme.js), the note under it. */
.site-teaser .ond-registration__notify { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px var(--gutter); align-items: center; justify-content: stretch; }
.site-teaser .ond-registration__notify .ond-cta { grid-column: 1; grid-row: 1; }
.site-teaser .ond-registration__notify-field { grid-column: 2; grid-row: 1; }
.site-teaser .ond-registration__notify-field input[type=email] { width: 100%; min-width: 0; border: 0; border-bottom: var(--line-w) solid var(--ink); padding: 6px 0; background: transparent; font: var(--fs-text) var(--serif-body); }
.site-teaser .ond-registration__notify-note,
.site-teaser .ond-registration__notify-message { grid-column: 2; font: var(--fs-label)/var(--lh-label) var(--sans); color: var(--stone); }
.site-teaser .ond-registration__notify-message--sent { color: var(--green) !important; }
.site-teaser .ond-registration__notify.is-collapsed :is(.ond-registration__notify-field, .ond-registration__notify-note) { visibility: hidden; }
@media (min-width: 801px) {
    /* Northern ("below"): title, closing date, subtitle; the badge centred in the left column on the title line,
       the button and login centred in the right column; the badge stops at the text under the image. */
    .site-teaser--below .site-teaser__title { grid-row: 1; }
    .site-teaser--below .ond-registration__status { grid-row: 2; }
    .site-teaser--below .site-teaser__text { grid-row: 3; }
    .site-teaser--below .site-teaser__media { grid-row: 4; }
    .site-teaser--below .site-teaser__row { grid-row: 5; }
    .site-teaser--below .site-teaser__results { grid-row: 6; }
    .site-teaser--below .ond-registration__badge { justify-self: center; padding-top: .9em; }   /* stops at the text under the image: theme.js */
    .site-teaser.site-teaser--below .ond-registration__side { justify-self: center; align-items: center; text-align: center; }
    /* Southern ("right"): the text column runs the height of the image and its row; Notify me at the bottom,
       level with the text under the image; the last results under the image, in the caption column. */
    .site-teaser--right .site-teaser__head { grid-row: 1 / 3; grid-template-rows: auto auto auto 1fr auto; height: 100%; }
    .site-teaser--right .ond-registration__notify { grid-row: 5 !important; margin-top: 32px; align-self: end; width: min(420px, 100%); }
    .site-teaser--right .ond-registration__notify ~ .ond-registration__actions { grid-row: 6 !important; }
    .site-teaser--right .ond-registration__login { grid-row: 7 !important; }
    .site-teaser--right .site-teaser__results { grid-column: 2; grid-row: 2; }
}

/* ---------- Open frames (mockups): vertical lines full height, horizontal lines
   stopping --frame-gap short of them, so the corners never close.
   Use the class "frame" on any element (or a block's "Additional CSS class").
   Each side can be recoloured (--frame-left/-right/-top/-bottom) and the right
   line dropped (--frame-right-w: 0) where neighbours share a line. */
.frame,
.site-hero__links a,
.ond-edition-tabs__tab,
.button-frame,
.wp-block-button.is-style-ond-frame .wp-block-button__link,
.ond-cta,
.site-card__frame,
.ond-area .ond-button,
.ond-area .acf-form-submit .acf-button,
.ond-area .acf-repeater .acf-actions .acf-button,
.ond-area .ond-status-box,
.ond-area .ond-results,
.ond-area .ond-edition,
.ond-area .ond-type-card,
.ond-area .ond-next-step,
.ond-area .ond-message,
.ond-area .ond-terms,
.ond-area .ond-bank,
.ond-area .acf-field-accordion,
.ond-area .ond-tabs li,
.ond-area .ond-dates div {
    --frame-color: currentColor;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
    background-image:
        linear-gradient(var(--frame-left, var(--frame-color)), var(--frame-left, var(--frame-color))),
        linear-gradient(var(--frame-right, var(--frame-color)), var(--frame-right, var(--frame-color))),
        linear-gradient(var(--frame-top, var(--frame-color)), var(--frame-top, var(--frame-color))),
        linear-gradient(var(--frame-bottom, var(--frame-color)), var(--frame-bottom, var(--frame-color))) !important;
    background-repeat: no-repeat !important;
    background-size:
        var(--frame-left-w, var(--line-w)) 100%,
        var(--frame-right-w, var(--line-w)) 100%,
        calc(100% - 2 * var(--frame-gap)) var(--frame-top-w, var(--line-w)),
        calc(100% - 2 * var(--frame-gap)) var(--frame-bottom-w, var(--line-w)) !important;
    background-position: left top, right top, center top, center bottom !important;
}

/* Buttons */
/* One size for every button (designer): at least 140 x 60, text centred with room around it. */
.button-frame,
.wp-block-button.is-style-ond-frame .wp-block-button__link,
.ond-cta {
    display: inline-flex !important; align-items: center; justify-content: center;   /* !important: the plugin's .ond-cta (inline-block) loads after */
    min-width: 140px; min-height: 60px;
    padding: 10px 24px;
    text-align: center;
    color: var(--ink) !important;
    font: 400 var(--fs-button)/var(--lh-button) var(--sans) !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    text-decoration: none;
    background-color: transparent !important;
    transition: background-color .2s;
}
/* Hover: no fill, the frame (currentColor) and the text turn green. */
.button-frame:hover,
.wp-block-button.is-style-ond-frame .wp-block-button__link:hover,
.ond-cta:hover { color: var(--green) !important; background-color: transparent !important; opacity: 1; }
.button-frame:hover, .ond-cta:hover, .ond-area .ond-button:hover, .site-card__frame:hover, .card__link:hover,
.site-header__logo:hover, .wp-block-button__link:hover { text-decoration: none; }

/* ---------- Image block "Green on hover" (with a link) */
.wp-block-image.is-style-ond-hover a,
.site-teaser__link { position: relative; display: block; }
.wp-block-image.is-style-ond-hover a::after,
.site-teaser__link::after {
    content: "[ Learn more ]";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgb(60 154 43 / .75);   /* --green, the photo shows through */
    color: var(--paper);
    font: 400 var(--fs-label) var(--sans);
    opacity: 0; transition: opacity .3s var(--ease);
}
.wp-block-image.is-style-ond-hover a:hover::after,
.wp-block-image.is-style-ond-hover a:focus-visible::after,
.site-teaser__link:hover::after,
.site-teaser__link:focus-visible::after { opacity: 1; }

/* ---------- Group "Sticky title": its first heading stays under the header */
.wp-block-group.is-style-ond-sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 1; }

/* ---------- Cover block: with a content position (e.g. bottom left), core shrinks the inner
   container to its content (width: auto); keep it full width so centred titles and texts are centred on the page. */
.entry-content .wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
    width: 100%;
    padding-inline: var(--gutter);
}
.wp-block-cover .wp-block-cover__inner-container > .has-text-align-center:not(h1, h2) { max-width: 70ch; margin-inline: auto; }

/* ---------- Site hero, layout "split" (About): image on the left half, centred title and text on the right,
   a thin vertical line under them. */
.site-hero--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.site-hero--split .site-hero__media { margin: 0; }
.site-hero--split .site-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Text beside the image, at about three quarters of its height (designer). */
.site-hero--split .site-hero__caption { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; padding: 48px clamp(32px, 5vw, 80px) 9vw; }
.site-hero--split .site-hero__title { max-width: 18ch; margin: 0 0 16px; }   /* two lines */
.site-hero--split .site-hero__text { max-width: 36ch; margin: 0; }
@media (max-width: 700px) {
    .site-hero--split { grid-template-columns: 1fr; }
    .site-hero--split .site-hero__caption { padding: 32px var(--gutter); }
}

/* ---------- Latest article (About): newest post over its featured image */
.site-latest { position: relative; min-height: 90vh; display: flex; align-items: flex-end; color: var(--paper); }
.site-latest__media { position: absolute; inset: 0; margin: 0; }
.site-latest__media img { width: 100%; height: 100%; object-fit: cover; }
.site-latest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4), transparent 55%); pointer-events: none; }
.site-latest__caption { position: relative; z-index: 1; max-width: 520px; padding: var(--gutter) var(--gutter) clamp(48px, 8vw, 120px); }
.site-latest__label { margin: 0 0 16px; }
.site-latest__title { font: 400 clamp(32px, 4vw, 48px)/.95 var(--serif-journal); margin: 0 0 16px; }
.site-latest__title a { text-decoration: none; }
.site-latest__excerpt p { margin: 0 0 1em; }
.site-latest__excerpt p::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
.site-latest__more { margin: 32px 0 0; }
.site-latest a:hover { color: var(--paper); text-decoration-color: var(--green); }

/* ---------- Journal list (About): category tabs, big titles, active title's image beside the list */
.site-journal, .entry-content > .site-journal { margin-top: 20px; }
.site-journal__tabs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-bottom: var(--line-w) solid var(--line); padding: 0 0 8px; margin-bottom: clamp(32px, 5vw, 64px); }
.site-journal__tab { background: none; border: 0; padding: 0; font: inherit; color: var(--stone); cursor: pointer; text-transform: inherit; }
.site-journal__tab.is-active, .site-journal__tab[aria-selected="true"] { color: var(--ink); }
.site-journal__list { list-style: none; margin: 0; padding: 0; }
.site-journal__title { font: 400 var(--fs-list)/var(--lh-list) var(--serif-book); text-decoration: none; transition: color .2s; }
.site-journal__item.is-active .site-journal__title { color: var(--green); }
.site-journal__title:hover { text-decoration: none; }   /* the green is the hover */
.site-journal__detail { display: none; }
.site-journal__image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.site-journal__excerpt { margin: 8px 0 0; }
@media (min-width: 900px) {
    .site-journal__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); column-gap: clamp(24px, 5vw, 64px); }
    .site-journal__item { display: contents; }
    .site-journal__title { grid-column: 1; justify-self: start; }
    .site-journal__detail { display: block; grid-column: 2; grid-row: 1 / span 99; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
    .site-journal__item.is-active .site-journal__detail { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) { .site-journal__detail { transition: none; } }

/* ---------- Gravity Forms (contact, Olive Society): underlined fields, open frames for the message and the button.
   Put the form in a group with the class "site-narrow" to centre it at the mockup's width. */
.site-narrow { max-width: 420px; margin-inline: auto !important; }
.gform_wrapper .gfield_label, .gform_wrapper .gform-field-label { font: 400 var(--fs-label) var(--sans); }
.gform_wrapper input[type=text], .gform_wrapper input[type=email], .gform_wrapper input[type=tel], .gform_wrapper input[type=url], .gform_wrapper input[type=number], .gform_wrapper select {
    width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 10px 0; font: 400 var(--fs-text) var(--serif-body); color: var(--ink); box-shadow: none;
}
.gform_wrapper select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='%23000'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 28px; }
.gform_wrapper textarea {
    width: 100%; min-height: 160px; border: 0; border-radius: 0; padding: 12px; font: 400 var(--fs-text) var(--serif-body); box-shadow: none; resize: vertical;
    background: linear-gradient(var(--ink), var(--ink)) left top / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) right top / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center top / calc(100% - 16px) 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center bottom / calc(100% - 16px) 1px no-repeat;
}
.gform_wrapper :is(input, select, textarea):focus { outline: none; border-color: var(--green); }
.gform_wrapper .gform_footer input[type=submit], .gform_wrapper .gform_footer button, .gform_wrapper .gform-button {
    padding: 14px 26px; border: 0 !important; border-radius: 0; color: var(--ink); cursor: pointer; font: 400 var(--fs-label)/1.2 var(--sans);
    background: linear-gradient(var(--ink), var(--ink)) left top / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) right top / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center top / calc(100% - 16px) 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center bottom / calc(100% - 16px) 1px no-repeat;
    transition: background-color .2s;
}
.gform_wrapper .gform_footer :is(input[type=submit], button):hover, .gform_wrapper .gform-button:hover {
    color: var(--green);
    background: linear-gradient(var(--green), var(--green)) left top / 1px 100% no-repeat, linear-gradient(var(--green), var(--green)) right top / 1px 100% no-repeat, linear-gradient(var(--green), var(--green)) center top / calc(100% - 16px) 1px no-repeat, linear-gradient(var(--green), var(--green)) center bottom / calc(100% - 16px) 1px no-repeat;
}

/* Framed variant (About mockup "Get in touch"): put the form in a group with the class "site-form-frames".
   One open frame per field, side by side; the label is hidden but covers the frame (a click anywhere focuses
   the field), so set a placeholder on each field in Gravity Forms. The active frame turns green and tinted. */
.site-form-frames p { max-width: 38ch; }
.site-form-frames .gform_wrapper.gravity-theme .gform_fields { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.site-form-frames .gform_wrapper.gravity-theme .gfield { grid-column: auto; }
.site-form-frames .gfield:not(.gfield--type-hidden, .gform_validation_container) {
    --frame-color: var(--ink);
    position: relative; display: flex; flex-direction: column; min-height: clamp(160px, 16vw, 220px); cursor: text;
    background-image:
        linear-gradient(var(--frame-color), var(--frame-color)), linear-gradient(var(--frame-color), var(--frame-color)),
        linear-gradient(var(--frame-color), var(--frame-color)), linear-gradient(var(--frame-color), var(--frame-color));
    background-repeat: no-repeat;
    background-size: 1px 100%, 1px 100%, calc(100% - 2 * var(--frame-gap)) 1px, calc(100% - 2 * var(--frame-gap)) 1px;
    background-position: left top, right top, center top, center bottom;
    transition: background-color .2s;
}
.site-form-frames .gfield:focus-within { --frame-color: var(--green); background-color: rgb(59 158 40 / .06); }
.site-form-frames .gfield_error { --frame-color: #c0392b; }
.site-form-frames .gform_wrapper.gravity-theme .gfield_label { position: absolute; inset: 0; z-index: 0; margin: 0; padding: 0; font-size: 0; color: transparent; cursor: text; }
.site-form-frames .gfield_description:not(.validation_message), .site-form-frames .charleft { display: none; }
.site-form-frames .ginput_container { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.site-form-frames .gform_wrapper.gravity-theme :is(input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], select, textarea) {
    border: 0; padding: 12px 14px; background-color: transparent; font: 400 var(--fs-text)/1.4 var(--serif-body);
}
.site-form-frames .gform_wrapper.gravity-theme select { background-position: right 14px top 18px; padding-right: 40px; }
.site-form-frames .gform_wrapper.gravity-theme textarea { flex: 1; min-height: 0; height: 100%; resize: none; background: transparent; }
.site-form-frames .gform_wrapper :is(input, select, textarea)::placeholder { color: var(--muted); opacity: 1; }
.site-form-frames .gform_wrapper.gravity-theme .gfield_validation_message { position: relative; z-index: 1; margin: 0; padding: 0 14px 12px; border: 0; background: none; font: 400 var(--fs-label)/1.3 var(--sans); color: #c0392b; }
.site-form-frames .gform_wrapper.gravity-theme .gform_validation_errors { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; }
.site-form-frames .gform_footer { margin-top: clamp(32px, 5vw, 64px); }
@media (max-width: 700px) {
    .site-form-frames .gform_wrapper.gravity-theme .gform_fields { grid-template-columns: 1fr; }
    .site-form-frames .gfield:not(.gfield--type-textarea) { min-height: 0; }
    .site-form-frames .gfield--type-textarea { min-height: 180px; }
}

/* ---------- Galleries and images */
.wp-block-image figcaption, .wp-element-caption { font: 400 var(--fs-label)/1.3 var(--sans); text-align: left; margin-top: 8px; color: var(--ink); }
.wp-block-gallery.has-nested-images { gap: 8px; }

/* ---------- Post lists */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px var(--gutter); padding: 0 var(--gutter); }
.card__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.card__media { margin: 0; }
.card__media img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.card__title { font-size: var(--fs-lead); line-height: 1.2; }
.pagination { padding: 48px var(--gutter); text-align: center; font: var(--fs-label) var(--sans); }
.pagination .nav-links { display: flex; gap: 1.5em; justify-content: center; }

/* ---------- Footer */
.site-footer { margin-top: clamp(64px, 10vw, 160px); font-size: var(--fs-text); }
.site-footer__tagline { text-align: center; max-width: 24ch; margin: 0 auto 24px; font-family: var(--sans); font-size: var(--fs-label); }
.site-footer__place { border-top: var(--line-w) solid var(--line); padding: 6px var(--gutter) 0; font: var(--fs-label) var(--sans); }
.site-footer__columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gutter); padding: 64px var(--gutter) 24px; align-items: start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer__login { justify-self: end; font: var(--fs-label) var(--sans); }
.site-footer__band {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gutter);
    background: var(--green); padding: 10px var(--gutter);
    font: var(--fs-label) var(--sans);
}
.site-footer__band > :last-child { justify-self: end; }
.site-footer__newsletter { text-align: center; }
.site-footer__newsletter a:hover { color: var(--ink); text-decoration-color: var(--paper); }
.site-footer__newsletter input[type=email] { border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: inherit; padding: 4px; }
@media (max-width: 700px) {
    .site-footer__columns, .site-footer__band { grid-template-columns: 1fr; }
    .site-footer__login, .site-footer__band > :last-child { justify-self: start; }
    .site-footer__newsletter { text-align: left; }
}

/* =====================================================================
   Producer area (OND Competition plugin): open frames, no fills
   ===================================================================== */
.ond-area .ond-status-box,
.ond-area .ond-results,
.ond-area .ond-edition,
.ond-area .ond-type-card,
.ond-area .ond-next-step,
.ond-area .ond-terms,
.ond-area .ond-bank { background-color: transparent !important; }
.ond-area .ond-message { --frame-left-w: 3px; --frame-left: var(--stone); }
.ond-area .ond-message--error { --frame-left: #A3322A; }
.ond-area .ond-message--success { --frame-left: var(--green); }
.ond-area .ond-message--warning { --frame-left: #C08A1E; }
.ond-area .ond-message--info { --frame-left: var(--green); }

/* Grids of cells (profile tabs, key dates): neighbours share a vertical line, the grid draws the last one. */
.ond-area .ond-tabs,
.ond-area .ond-dates {
    border: 0 !important;
    gap: 0;
    background: linear-gradient(currentColor, currentColor) right top / 1px 100% no-repeat;
}
.ond-area .ond-tabs li,
.ond-area .ond-dates div { --frame-right-w: 0px; --frame-gap: 10px; }
.ond-area .ond-tabs a { background: transparent !important; box-shadow: none !important; height: 100%; }
.ond-area .ond-tabs li:has(a[aria-current="page"]) { --frame-bottom: var(--green); --frame-bottom-w: 3px; }
.ond-area .ond-tabs li:has(a:hover) { --frame-bottom: var(--green); }

/* Buttons of the producer area: same as the site buttons */
.ond-area .ond-button,
.ond-area .acf-form-submit .acf-button,
.ond-area .acf-repeater .acf-actions .acf-button {
    padding: 14px 26px;
    color: var(--ink) !important;
    background-color: transparent !important;
    font: 400 var(--fs-label)/1.2 var(--sans) !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    transition: background-color .2s;
}
.ond-area .ond-button:hover,
.ond-area .acf-form-submit .acf-button:hover,
.ond-area .acf-repeater .acf-actions .acf-button:hover { color: var(--green) !important; background-color: transparent !important; }
.ond-area .ond-badge--complete,
.ond-area .ond-badge--incomplete { color: var(--ink); }
.ond-area .ond-badge--complete::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; background: var(--green); vertical-align: -.05em; }

/* Profile "next step": the sentence highlighted like a text selection (green, white text), line by line. */
.ond-area .ond-next-step__text {
    background: var(--green);
    color: var(--paper);
    padding: .1em .25em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Certificate check (/verify): a valid certificate on a green background, black text and frame. */
.ond-area .ond-certificate--valid {
    background-color: var(--green) !important;
    color: var(--ink);
    --frame-left-w: var(--line-w);
    --frame-left: var(--ink);
}

/* Plugin texts drawn in the accent colour: ink instead (green stays for lines, fills and large text). */
.ond-eyebrow,
.ond-area a,
.ond-area a:hover,
.ond-link-button--neutral,
.ond-area-nav ul a:hover,
.ond-fees__highlight strong,
.ond-award--design .ond-award__medal,
.ond-area .acf-field-accordion .acf-accordion-icon,
.ond-area .acf-required,
.ond-jury__more,
.ond-juror__role,
.ond-distinction--design,
.ond-laureate-card__link:hover .ond-laureate-card__name,
.ond-dates__date { color: var(--ink) !important; }
.ond-area a,
.ond-area-nav ul a:hover,
.ond-jury__more { text-decoration-color: var(--green) !important; }

/* =====================================================================
   OND Competition plugin blocks, in the look of the 2027 mockups
   ===================================================================== */

/* Registration: badge "[ Open now ]" and status */
.ond-registration__badge { font: var(--fs-label) var(--sans); margin: 0; }
.ond-registration--registration-open .ond-registration__badge { color: var(--ink); }
.ond-registration__status { font-family: var(--serif-book); font-size: var(--fs-lead); line-height: var(--lh-lead); }
.ond-registration__notify { justify-content: flex-start; }   /* the plugin centres the field and the button */
.ond-registration__notify input[type=email] { border: 1px solid var(--ink); border-radius: 0; padding: 11px 12px; font: var(--fs-label) var(--sans); }

/* Notify me: note and messages at text size, confirmation in green. */
.ond-registration__notify-note,
.ond-registration__notify-message { font-size: 1rem; }
.ond-registration__notify-message--sent { color: var(--green) !important; }

/* Jury right after a Section divider: the divider already draws the line, no second line, less space. */
.entry-content > .site-section + :is(.ond-jury-block, .ond-jury) { margin-top: clamp(16px, 2.5vw, 32px); }
.site-section + :is(.ond-jury-block, .ond-jury) .ond-jury__bar,
.site-section + .ond-jury > .ond-jury__bar { border-top: 0; padding-top: 0; margin-bottom: var(--section-gap); }
.entry-content > .site-section:has(+ :is(.ond-jury-block, .ond-jury)) > .label { visibility: hidden; }   /* the jury's edition label takes its place */
.ond-jury--list .ond-jury__bar { margin-bottom: var(--section-gap); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: baseline; }
.ond-jury--list .ond-jury__bar .ond-jury__tabs { grid-column: 1; }
.ond-jury--list .ond-jury__bar .ond-jury__edition { grid-column: 2; text-align: center; }
/* Desktop: the jury tabs sit on the divider's line, at the height of the section title (left, title centred). */
@media (min-width: 801px) {
    .entry-content > .site-section + :is(.ond-jury-block, .ond-jury) { margin-top: -20px; }
    /* While the jury scrolls, its tabs stay in the header, on the line of the section title shown under the logo. */
    /* White background: in the header, the bar covers the section name shown under the logo (it shows its own edition label). */
    .ond-jury__bar:has(.ond-jury__tabs) { position: sticky; top: calc(var(--nav-h) - 24px); z-index: 51; pointer-events: none; background: var(--paper); }
    .ond-jury__bar:has(.ond-jury__tabs) > * { pointer-events: auto; }
}

/* Jury, list layout: tabs in mono, big names, green active name, 3:4 photo */
.ond-jury--list .ond-jury__tab { font: var(--fs-label) var(--sans); background: none; border: 0; padding: 0; cursor: pointer; color: var(--stone); }
.ond-jury--list .ond-jury__tab.is-active, .ond-jury--list .ond-jury__tab[aria-selected="true"] { color: var(--ink); }
.ond-jury--list .ond-jury__tab + .ond-jury__tab::before { content: "•"; margin: 0 .6em; color: var(--ink); }
.ond-jury--list .ond-jury__edition { font: var(--fs-label) var(--sans); }
.ond-jury--list .ond-juror__name {
    font-family: var(--serif-book); font-size: var(--fs-list); line-height: var(--lh-list);
    background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink);
    transition: color .2s;
}
.ond-jury--list .ond-juror.is-active .ond-juror__name { color: var(--green); }
@media (hover: hover) {
    .ond-jury--list .ond-jury__list:hover .ond-juror:not(.is-active) .ond-juror__name { color: var(--stone); }
}
.ond-jury--list .ond-juror__photo { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.ond-jury--list .ond-juror__function, .ond-jury--list .ond-juror__bio { font: var(--fs-label)/1.4 var(--sans); }

/* Edition dates, timeline: the plugin makes the image grow on hover (bottom-left corner). */
.ond-dates--timeline .ond-dates__number,
.ond-dates--timeline .ond-dates__text { font: var(--fs-label)/1.4 var(--sans); }
/* Edition dates, layout "Calendar" (Northern mockup of 2026-11-06): "[ 2026 edition ]" and the title on one line,
   then one row per step: date, step and text on the left, [n] in the middle, a small image on the right. */
.ond-dates.ond-dates--calendar .ond-dates__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gutter); margin-bottom: clamp(32px, 5vw, 64px); }
.ond-dates.ond-dates--calendar .ond-dates__edition { margin: 0; font: var(--fs-label)/var(--lh-label) var(--sans); color: var(--stone); }
.ond-dates.ond-dates--calendar .ond-dates__title { margin: 0; font: 400 var(--fs-title)/var(--lh-title) var(--serif-display); text-align: right; }
.ond-dates.ond-dates--calendar .ond-dates__list { border: 0; }
.ond-dates.ond-dates--calendar .ond-dates__item {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "date number media" "body number media";
    gap: 0 var(--gutter); align-items: start;
    padding: 0 0 clamp(32px, 4vw, 56px); border: 0; opacity: 1;
}
.ond-dates.ond-dates--calendar .ond-dates__date { grid-area: date; font: 400 var(--fs-lead)/var(--lh-lead) var(--serif-display); letter-spacing: 0; text-transform: none; }
.ond-dates.ond-dates--calendar .ond-dates__body { grid-area: body; gap: 8px; }
.ond-dates.ond-dates--calendar .ond-dates__label { font: 400 var(--fs-lead)/var(--lh-lead) var(--serif-display); }
.ond-dates.ond-dates--calendar .ond-dates__text { max-width: 26ch; font: 400 var(--fs-text)/var(--lh-text) var(--serif-body); color: var(--ink); }
.ond-dates.ond-dates--calendar .ond-dates__number { grid-area: number; font: var(--fs-label)/var(--lh-label) var(--sans); padding-top: .4em; }
.ond-dates.ond-dates--calendar .ond-dates__media { grid-area: media; width: 72px; margin: 0; }
.ond-dates.ond-dates--calendar .ond-dates__image { width: 100%; aspect-ratio: 1; object-fit: cover; transform: none; }
@media (max-width: 600px) {
    .ond-dates.ond-dates--calendar .ond-dates__head { flex-direction: column; align-items: flex-start; }
    .ond-dates.ond-dates--calendar .ond-dates__title { text-align: left; }
    .ond-dates.ond-dates--calendar .ond-dates__item { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "number date media" "number body media"; }
}

.ond-dates.ond-dates--timeline .ond-dates__date,
.ond-dates.ond-dates--timeline .ond-dates__label { font-family: var(--serif-display); font-size: clamp(18px, 1.9vw, 34px); line-height: 1.05; }   /* six steps: "Registration" stays in its column */

/* Laureates and featured laureate */
.ond-laureates__filters select { border-radius: 0; border: 1px solid var(--ink); font: var(--fs-label) var(--sans); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- Results page (Last Competition mockup) */

/* Hero "edition": title and label on the left, portrait image in the middle, text and edition
   tabs on the right, both columns on the middle line of the image. Phones: title, image, text, tabs. */
.site-hero--edition {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36%) minmax(0, 1fr);
    align-items: center; gap: var(--gutter); padding: clamp(24px, 4vw, 48px) var(--gutter) 0;
}
.site-hero--edition .site-hero__media { margin: 0; }
.site-hero--edition .site-hero__media img { width: 100%; aspect-ratio: 7 / 10; object-fit: cover; }
.site-hero--edition .site-hero__title { margin: 0; font-size: var(--fs-title); max-width: 12ch; }
.site-hero__label { max-width: 12ch; margin: 8px 0 0; font-family: var(--sans); font-size: var(--fs-label); color: var(--stone); }
.site-hero--edition .site-hero__aside { justify-self: center; max-width: 34ch; }
.site-hero--edition .site-hero__text { margin: 0; }
.site-hero--edition .ond-edition-tabs ul { justify-content: flex-start; column-gap: 0; }   /* tabs side by side, sharing a line (over the plugin's gap) */
.site-hero--edition .ond-edition-tabs__tab { min-width: 0; }
@media (max-width: 900px) {
    .site-hero--edition { grid-template-columns: 1fr; }
    .site-hero--edition .site-hero__aside { justify-self: start; }
}

/* Edition tabs ([ond_edition_tabs]): framed links side by side, the current edition with a green frame and text. */
.ond-edition-tabs { margin-top: clamp(16px, 2vw, 28px); }
.ond-edition-tabs ul { display: flex; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.ond-edition-tabs li:not(:last-child) .ond-edition-tabs__tab { --frame-right-w: 0px; }
.ond-edition-tabs__tab {
    display: flex; align-items: center; justify-content: center; min-width: 140px; min-height: 60px; padding: 10px 24px;
    font: 400 var(--fs-button)/var(--lh-button) var(--sans); text-align: center; text-decoration: none; color: var(--ink);
    transition: color .25s;
}
.ond-edition-tabs__tab:hover,
.ond-edition-tabs__tab:focus-visible { color: var(--green); text-decoration: none; }
.ond-edition-tabs .ond-edition-tabs__tab.is-current { color: var(--green); background-color: transparent !important; }   /* over the plugin's filled tab */

/* Intro "story": image left, paragraphs with a note in the margin, credit top right, thumbnails bottom right. */
.site-intro--story { grid-template-columns: minmax(0, 36fr) minmax(0, 32fr) minmax(0, 32fr); grid-template-rows: auto 1fr auto; }
.site-intro--story .site-intro__media { grid-column: 1; grid-row: 1 / span 3; }
.site-intro--story .site-intro__media img { aspect-ratio: 3 / 5; max-height: calc(100svh - var(--nav-h) - 64px); }   /* shorter than the screen */
.site-intro__story { grid-column: 2; grid-row: 1 / span 2; }
.site-intro__paragraph { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 0 1em; margin-bottom: 0; }   /* paragraphs follow each other without space */
.site-intro__paragraph .site-intro__text p:last-child { margin-bottom: 0; }
.site-intro__note { margin: .3em 0 0; }
.site-intro__credit { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; text-align: right; color: var(--stone); }
.site-intro--story .site-intro__thumbs { grid-column: 2 / -1; grid-row: 3; align-self: end; justify-self: end; width: min(100%, 440px); gap: 8px; }
.site-intro--story .site-intro__thumbs img { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
    .site-intro--story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; }
    .site-intro--story .site-intro__media { grid-row: 1 / span 2; }
    .site-intro__credit { grid-column: 2; }
    .site-intro__story { grid-column: 2; grid-row: 2; }
    .site-intro--story .site-intro__thumbs { grid-column: 1 / -1; grid-row: 3; width: 100%; }
}
@media (max-width: 560px) {
    .site-intro--story { grid-template-columns: 1fr; }
    .site-intro--story .site-intro__media,
    .site-intro__credit,
    .site-intro__story { grid-column: 1; grid-row: auto; }
    .site-intro__credit { justify-self: start; text-align: left; max-width: none; }
    .site-intro__paragraph { grid-template-columns: 1fr; }
    .site-intro__note { margin: 0 0 .5em; }
}

/* Laureates in tabs (OND Laureates, "Tabs" layout). */
.entry-content > .ond-laureates-block:has(.ond-laureate-tabs) { margin-inline: var(--gutter); }
.ond-laureate-tabs__title { margin: 0 0 clamp(16px, 2vw, 32px); font: 400 clamp(36px, 7.6vw, 132px)/1 var(--serif-display); letter-spacing: -.02em; white-space: nowrap; }   /* fitted to the full width by theme.js */
.ond-laureate-tabs__list { justify-content: space-between; gap: 8px 24px; border-bottom: var(--line-w) solid var(--ink); padding-bottom: 12px; }
.ond-laureate-tabs .ond-laureate-tabs__tab { padding: 0; font: 400 var(--fs-label)/var(--lh-label) var(--sans); color: var(--stone); }   /* over the plugin's "font: inherit" */
.ond-laureate-tabs__tab:hover,
.ond-laureate-tabs__tab[aria-selected="true"] { color: var(--ink); }
.ond-laureate-tabs__tab:focus-visible { outline: 1px solid var(--green); outline-offset: 4px; }
.ond-laureate-tabs__panel { padding-top: clamp(32px, 4vw, 64px); }
.ond-laureate-tabs__panel-title { margin: 0 0 16px; font: 400 var(--fs-label) var(--sans); }
.ond-laureate-tabs__table { table-layout: fixed; }
.ond-laureate-tabs__table th { padding: 0 0 clamp(32px, 4vw, 64px); font: 400 var(--fs-label)/1.3 var(--sans); color: var(--stone); }
.ond-laureate-tabs__table th:first-child { width: 37%; }
.ond-laureate-tabs__table th:nth-child(2) { text-align: center; }
.ond-laureate-tabs__table th:last-child { width: 18%; }
/* A laureate's lines are close, two laureates further apart; when a name takes two lines, the other cells sit on the last one. */
.ond-laureate-tabs__table td { padding: 0 1ch .3em 0; vertical-align: bottom; font: 400 var(--fs-lead)/var(--lh-lead) var(--serif-book); }   /* Timezone Book 24/30 (designer) */
.ond-laureate-tabs__producer a::after,
.ond-laureate-tabs__oil a::after { content: ","; }
@media (min-width: 701px) {
    /* "[ Olive oil ]" centred on the page (the column starts at 37 % and is 45 % wide). */
    .ond-laureate-tabs__table th:nth-child(2) { text-align: left; text-indent: calc(13 / 45 * 100% - 3em); }
}
.ond-laureate-tabs__table td:last-child { padding-right: 0; }
.ond-laureate-tabs__table a:hover { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: .15em; }
@media (max-width: 700px) {
    .ond-laureate-tabs__list { justify-content: flex-start; }
    .ond-laureate-tabs__table thead { display: none; }
    .ond-laureate-tabs__table,
    .ond-laureate-tabs__table tbody { display: block; }
    .ond-laureate-tabs__table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 1ch; padding: 12px 0; border-bottom: var(--line-w) solid var(--line); }
    .ond-laureate-tabs__table td { padding: 0; }
    .ond-laureate-tabs__oil { grid-column: 1 / -1; grid-row: 1; font-size: 22px; }
    .ond-laureate-tabs__table .ond-laureate-tabs__producer,
    .ond-laureate-tabs__table .ond-laureate-tabs__country { grid-row: 2; font: 400 var(--fs-label)/1.3 var(--sans); }
}

/* Journal cover: full image, label at the top, title and the latest articles at the bottom left. */
.site-journal-cover { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; color: var(--paper); }
.site-journal-cover__media { position: absolute; inset: 0; margin: 0; }
.site-journal-cover__media img { width: 100%; height: 100%; object-fit: cover; }
.site-journal-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4), transparent 60%), linear-gradient(0deg, rgba(0,0,0,.3), transparent 50%); pointer-events: none; }
.site-journal-cover__label { position: absolute; z-index: 1; top: 12px; left: 0; right: 0; margin: 0; text-align: center; }
.site-journal-cover__caption { position: relative; z-index: 1; padding: 64px calc(var(--gutter) * 2) clamp(96px, 16vh, 200px); }   /* a little above the middle */
.site-journal-cover__more { margin: 0 0 clamp(32px, 4vw, 56px); }
.site-journal-cover__title { margin: 0 0 clamp(32px, 4vw, 56px); font: 400 var(--fs-title)/var(--lh-title) var(--serif-journal); }
.site-journal-cover__posts { display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 5vw, 72px); margin: 0 0 24px; padding: 0; list-style: none; }
.site-journal-cover__posts li { max-width: 16em; }
.site-journal-cover__posts a { display: flex; flex-direction: column; text-decoration: none; }
.site-journal-cover__read { margin: 0; }
.site-journal-cover a { color: inherit; }
.site-journal-cover a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--green); }

/* ---------- Article (Article mockup) */
.article-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter);
    align-items: start;
    padding: clamp(48px, 9vw, 140px) var(--gutter) clamp(64px, 9vw, 140px);
}
.article-head__media { margin: 0; justify-self: center; width: min(100%, 460px); }
.article-head__media img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.article-head--no-image { grid-template-columns: minmax(0, 1fr); }
.article-head--no-image .article-head__text { margin-left: 50%; }
.article-head__meta { margin: 8px 0 24px; }
.article-head__meta a { color: inherit; text-decoration: none; }
.article-head__meta a:hover { text-decoration: underline; text-decoration-color: var(--green); }
.article-head__title { margin: 0 0 24px; max-width: 18ch; font: 400 clamp(36px, 4.6vw, 66px)/.95 var(--serif-journal); }
.article-head__lead { max-width: 38em; }
.article-head__lead p { margin: 0 0 1em; }
.article-head__lead p::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
.article-head__byline { margin: clamp(32px, 5vw, 64px) 0 0; }
@media (max-width: 700px) {
    .article-head { grid-template-columns: 1fr; }
    .article-head--no-image .article-head__text { margin-left: 0; }
}

/* Article content: notes in a narrow margin column, every paragraph indented. */
.article-content .site-aside { grid-template-columns: minmax(0, 10em) minmax(0, 1fr); }
.article-content > p::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
/* Each indent goes under the previous one: one-line paragraphs no longer step to the right. */
.article-content > :not(p) { clear: left; }
@media (min-width: 901px) {
    .site-aside--wide.site-aside--wide { margin-right: 28%; }
}
.article-signature { margin: clamp(80px, 12vw, 200px) auto clamp(80px, 12vw, 200px); text-align: center; }
.site-journal--article { margin: 0 var(--gutter) clamp(64px, 9vw, 140px); }

/* Article image: small (1/3), half, wide (2/3) or full, against the left or the right. */
.site-figure { margin-block: 0; }
.site-figure img { display: block; width: 100%; height: auto; }
.site-figure__caption { margin: 12px 0 0; max-width: 28em; }
@media (min-width: 701px) {
    .site-figure--small { width: calc(33.333% - var(--gutter)); }
    .site-figure--half { width: calc(50% - var(--gutter)); }
    .site-figure--wide { width: calc(70% - var(--gutter)); }
    .entry-content > .site-figure--right { margin-left: auto; }
}
.entry-content > .site-figure--full { margin-inline: 0; }

/* Image and text: image (small or half) on one side, note + text on the other. */
.site-media-text {
    display: grid; align-items: start; gap: var(--gutter);
    grid-template-columns: minmax(0, var(--media-w, 1fr)) minmax(0, 9em) minmax(0, var(--text-w, 2fr));
    grid-template-areas: "media label content";
}
.site-media-text--half { --media-w: 1.2fr; --text-w: 1.6fr; }
.site-media-text--right { grid-template-columns: minmax(0, 9em) minmax(0, var(--text-w, 2fr)) minmax(0, var(--media-w, 1fr)); grid-template-areas: "label content media"; }
.site-media-text__media { grid-area: media; margin: 0; }
.site-media-text__media img { display: block; width: 100%; height: auto; }
.site-media-text__caption { margin: 12px 0 0; }
.site-media-text__label { grid-area: label; margin: .3em 0 0; }
.site-media-text__content { grid-area: content; }
.site-media-text__content > .acf-innerblocks-container > :first-child,
.site-media-text__content > :first-child { margin-top: 0; }
.site-media-text__content > .acf-innerblocks-container > p::before,
.site-media-text__content > p::before { content: ""; float: left; clear: left; width: 5ch; height: 2lh; }
@media (max-width: 900px) {
    .site-media-text,
    .site-media-text--right { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); grid-template-areas: "media media" "label content"; }
}
@media (max-width: 560px) {
    .site-media-text,
    .site-media-text--right { grid-template-columns: 1fr; grid-template-areas: "media" "label" "content"; }
}
