/* =========================================================================
   Shared UI components of the whole site (22/11/2026) -- the contact page's visual language, extracted so every page uses it:
   a wide content column, section headings in the mono face with the short hazard-tape rule under them, content in cards (soft
   panel, 1px border, a yellow left edge, rounded corners), big yellow pill action buttons, outlined pill links for e-mail and
   phone, small mono field labels, generous spacing. One stylesheet, loaded by default.html on every page (the contact page's own
   contact.css keeps only what is specific to that page).

   Rules of this file:
   * theme variables only (--color-jet, --color-border, --color-primary-text, --ghost-accent-color, --font-mono ...): the light and the
     dark theme come for free and behave the same. NOTE screen.css forces EVERY text colour to #0B0B0B / #F2F2F2 with !important (except
     the yellow buttons), so a "muted" colour cannot be set here: muted text is made with opacity.
   * nothing inline, nothing off-origin, no script, no new font (the site's CSP, docker/site/nginx.conf).
   * the markup of the owner's own pages (about, works, posts, legal) is NOT touched: their bodies are styled through selectors on
     the existing elements (`.gh-article .gh-content > h3`, `.page-about ...`). The `.gh-article .gh-content` prefix is on purpose: it
     out-ranks the theme's `.gh-content > ...` rules without !important.
   * rem = 10px on this site (html { font-size: 62.5% }).
   ========================================================================= */

/* ---------- the accent colour, as a fallback ----------
   The theme's yellow is printed into every page's <head> as `:root { --ghost-accent-color: ... }` from the `accent_color` setting -- except on
   the 404 page, whose <head> Ghost's algorithm leaves bare (head.py). There the footer's yellow buttons were see-through. The <head> style
   comes later in the document than this file, so on every other page it still wins; this only fills the gap. */
:root { --ghost-accent-color: #FFD400; }

/* ---------- the sideways overflow of the home page on a phone (fixed 22/11/2026) ----------
   The storm cloud behind the hero title (`.el-storm`, made by the inline script of default.html) is `clamp(420px, 80%, 920px)` wide and
   centred, so on a 390 px phone it ran from -15 to 405 px and the page scrolled sideways by 15 px. Clipping the hero's x-axis is enough. */
.gh-header { overflow-x: clip; }

/* ---------- the wide column and the rhythm between sections ---------- */
.el-wrap {
    width: min(1120px, 100% - var(--container-gap, 32px) * 2);
    margin-inline: auto;
}

.el-section { margin-top: clamp(48px, 6vw, 88px); }

/* ---------- section headings: mono caps + the site's short hazard-tape rule ---------- */
.el-h,
.gh-container .gh-container-title {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 1.2rem + 0.9vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--color-primary-text);
}

.el-h::after,
.gh-container .gh-container-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 10px;
    background-image: repeating-linear-gradient(45deg, #FFD400 0 4px, #0B0B0B 4px 8px);
}

/* ---------- small mono field labels ---------- */
.el-label {
    margin: 0 0 4px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary-text);
}

/* ---------- the three action buttons (components/actions.html) ----------
   They are the footer's own `.el-action-btn` (yellow pill, mono caps): the theme forces light text on EVERYTHING in dark mode except what
   carries that class (screen.css: `[data-theme="dark"] :not(.el-action-btn)...`), so the class is what keeps the black-on-yellow text
   readable there. Bigger than the footer's, and without its perpetual pulse + shimmer. */
.el-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.el-act.el-action-btn {
    display: flex;
    gap: 16px;
    min-height: 72px;
    padding: 14px 24px 14px 20px;
    border: 1px solid #000;
    animation: none;
}

.el-act.el-action-btn::before { display: none; }

.el-act.el-action-btn svg {
    width: 28px;
    height: 28px;
    animation: none;
}

.el-act span { min-width: 0; }

.el-act.el-action-btn small { font-size: 1.1rem; opacity: 0.8; }

.el-act.el-action-btn strong {
    font-size: 1.7rem;
    overflow-wrap: anywhere;
}

.el-act.el-action-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 212, 0, 0.5);
    outline: 3px solid var(--color-primary-text);
    outline-offset: 3px;
}

/* ---------- cards: soft panel, 1px border, a yellow left edge, rounded corners ---------- */
.el-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.el-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 22px 24px 24px;
    background-color: var(--color-jet);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--ghost-accent-color);
    border-radius: 12px;
    color: var(--color-primary-text);
}

.el-card h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.el-card p {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.5;
    color: var(--color-secondary-text);
}

/* a card that links: the title's link covers the whole card (one link, one tab stop) */
.el-card-link {
    color: inherit;
    text-decoration: none;
}

.el-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.el-card:has(.el-card-link) {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.el-card:has(.el-card-link)::after {
    content: '\2192';
    margin-top: auto;
    padding-top: 6px;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.el-card:has(.el-card-link:hover),
.el-card:has(.el-card-link:focus-visible) {
    border-color: var(--ghost-accent-color);
    box-shadow: 0 8px 28px rgba(255, 212, 0, 0.25);
}

.el-card:has(.el-card-link:focus-visible) {
    outline: 3px solid var(--color-primary-text);
    outline-offset: 3px;
}

.el-card-link:focus-visible { outline: none; }

/* ---------- outlined pill links: e-mail, phone ---------- */
.el-pill,
.gh-article .gh-content a[href^="mailto:"],
.gh-article .gh-content a[href^="tel:"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 14px 8px 12px;
    border: 1px solid var(--color-primary-text);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.el-pill {
    align-self: flex-start;
    margin-top: auto;
}

.el-pill svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: currentColor;
}

.el-pill span { min-width: 0; overflow-wrap: anywhere; }

/* the owner's own e-mail / phone links inside a page body become the same pill (the theme's hazard-tape underline goes) */
.gh-article .gh-content a[href^="mailto:"],
.gh-article .gh-content a[href^="tel:"] {
    margin-block: 2px;
    background-image: none !important;
    padding-bottom: 8px !important;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

/* hover keeps the text colour (the theme forces it in dark mode): a yellow tint and ring instead of a yellow fill */
.el-pill:hover,
.el-pill:focus-visible,
.gh-article .gh-content a[href^="mailto:"]:hover,
.gh-article .gh-content a[href^="mailto:"]:focus-visible,
.gh-article .gh-content a[href^="tel:"]:hover,
.gh-article .gh-content a[href^="tel:"]:focus-visible {
    background-color: rgba(255, 212, 0, 0.22);
    border-color: var(--ghost-accent-color);
    box-shadow: 0 0 0 2px var(--ghost-accent-color);
}

.el-pill:focus-visible,
.gh-article .gh-content a[href^="mailto:"]:focus-visible,
.gh-article .gh-content a[href^="tel:"]:focus-visible {
    outline: 3px solid var(--color-primary-text);
    outline-offset: 3px;
}

/* ---------- the closing strip (home page, about page): the three buttons and nothing else ---------- */
.el-strip { margin-bottom: clamp(24px, 4vw, 48px); }

/* =========================================================================
   The post feed: home, /page/N/, tag and author pages (`.gh-container`) and the "Lees ook" row of a post (`.el-related`)
   The cards keep the theme's markup; only what the theme drew (list rows with dividers, corner screws, the border that traces on
   hover, a 6 px rule under every title) is replaced by the shared card look.
   ========================================================================= */
.gh-container.gh-outer { padding-inline: 0; }

.gh-container:not(.has-sidebar) > .gh-container-inner {
    display: block;
    overflow: visible;
    width: min(1120px, 100% - var(--container-gap, 32px) * 2);
    max-width: none;
}

.gh-container { margin-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(8px, 2vw, 24px); }

/* tag and author pages: the heading block sits on the same wide column as the cards under it, without the divider line */
:is(.tag-template, .author-template) .gh-main.gh-outer { padding-inline: 0; }

.gh-archive.gh-inner {
    display: block;
    width: min(1120px, 100% - var(--container-gap, 32px) * 2);
    max-width: none;
    margin-block: clamp(40px, 4vw, 64px) 0;
}

.gh-archive .gh-archive-inner {
    padding-bottom: 0;
    border-bottom: 0;
}

.gh-archive:not(.has-sidebar):not(.has-image) .gh-archive-inner { grid-column: auto; }

:is(.tag-template, .author-template) .gh-container { margin-top: clamp(32px, 4vw, 56px); }

.gh-container.is-list.gh-outer .gh-feed,
.gh-container.is-grid.gh-outer .gh-feed,
.el-related .gh-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    container-type: normal;
    overflow: visible;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--color-jet);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--ghost-accent-color);
    border-radius: 12px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* the divider lines, the corner screws and the tracing border of the old card */
.gh-viewport :is(.gh-container, .el-related) .gh-card::before,
.gh-viewport :is(.gh-container, .el-related) .gh-card::after,
.gh-viewport :is(.gh-container, .el-related) .gh-card + .gh-card::before { display: none; }

.gh-viewport :is(.gh-container, .el-related) .gh-card:hover,
.gh-viewport :is(.gh-container, .el-related) .gh-card:has(.gh-card-link:focus-visible) {
    border-color: var(--ghost-accent-color);
    box-shadow: 0 8px 28px rgba(255, 212, 0, 0.25);
    transform: translateY(-2px);
}

.gh-viewport :is(.gh-container, .el-related) .gh-card:has(.gh-card-link:focus-visible) {
    outline: 3px solid var(--color-primary-text);
    outline-offset: 3px;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-link {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-link:focus-visible { outline: none; }

.gh-viewport :is(.gh-container, .el-related) .gh-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-lighter-gray);
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: none;
    padding: 18px 20px 20px;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-title {
    --factor: 0.9;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-link:hover .gh-card-title { opacity: 1; }

/* the rule under each card title is for section headings; a card title stays clean */
.gh-viewport :is(.gh-container, .el-related) .gh-card-title::after { display: none !important; }

.gh-viewport :is(.gh-container, .el-related) .gh-card-excerpt {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-meta {
    margin-top: auto;
    padding-top: 6px;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gh-viewport :is(.gh-container, .el-related) .gh-card-meta:not(:empty) { margin-top: auto; }

.gh-container .gh-more { margin-top: 32px; }

/* 'See all' under a feed of 12 posts or more (not on the site today: 11 posts): a 44 px tap target */
.gh-container .gh-more a { min-height: 44px; }

/* =========================================================================
   Pages: the article column, the page header, the body typography (post, about, works, legal, contact's own text)
   ========================================================================= */
.gh-article-header { margin-top: clamp(40px, 4vw, 64px); }

/* the tag above a post title: an outlined mono pill */
.gh-article .gh-article-tag {
    display: inline-flex;
    justify-self: start;
    width: fit-content;
    align-items: center;
    min-height: 44px;
    margin-bottom: 8px;
    padding: 4px 16px;
    border: 1px solid var(--color-primary-text);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.gh-article .gh-article-tag:hover,
.gh-article .gh-article-tag:focus-visible {
    background-color: rgba(255, 212, 0, 0.22);
    border-color: var(--ghost-accent-color);
    box-shadow: 0 0 0 2px var(--ghost-accent-color);
}

.gh-article .gh-article-tag:focus-visible { outline: 3px solid var(--color-primary-text); outline-offset: 3px; }

.gh-article-meta-content {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* the big picture under the title */
.gh-article .gh-article-image img,
.gh-archive .gh-article-image img {
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.gh-article .gh-article-image figcaption {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

/* ---------- headings inside the body: mono caps + the rule (h2/h3 = a section, h4 = a sub-section) ---------- */
.gh-article .gh-content > :is(h2, h3) {
    font-family: var(--font-mono);
    font-size: clamp(1.9rem, 1.35rem + 0.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.gh-article .gh-content > :is(h4, h5, h6) {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 1.35rem + 0.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.gh-article .gh-content > :is(h2, h3, h4, h5, h6)::after {
    content: '';
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 10px;
    background-image: repeating-linear-gradient(45deg, #FFD400 0 4px, #0B0B0B 4px 8px);
}

.gh-article .gh-content > :is(h4, h5, h6)::after { width: 48px; height: 4px; margin-top: 8px; }

.gh-article .gh-content > :is(h2, h3, h4, h5, h6) + * { margin-top: 18px; }

/* a heading after other content gets room; the theme's 56 px is kept for the first level */
.gh-article .gh-content > :is(h4, h5, h6):not(:first-child) { margin-top: 44px; }

/* ---------- text, lists ---------- */
.gh-article .gh-content > ul,
.gh-article .gh-content > ol { padding-left: 30px; }

/* only the lists the owner wrote in the body (direct children, and one level inside them): the booking page's app has lists of its own */
.gh-article .gh-content > ul > li,
.gh-article .gh-content > ul > li > ul > li { list-style: none; position: relative; }

.gh-article .gh-content > ul > li::before,
.gh-article .gh-content > ul > li > ul > li::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 0.62em;
    width: 9px;
    height: 9px;
    background-color: #FFD400;
    border: 1px solid #0B0B0B;
}

.gh-article .gh-content > ol > li::marker {
    font-family: var(--font-mono);
    font-weight: 700;
}

.gh-article .gh-content > :is(p, ul, ol) { line-height: 1.65; }

/* ---------- quotes ---------- */
.gh-article .gh-content blockquote {
    overflow: hidden;
    padding: 20px 24px 20px 28px;
    background: var(--color-jet);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 1.1em;
}

.gh-article .gh-content blockquote > * + * { margin-top: 12px; }

/* ---------- pictures, galleries, video: rounded corners, one rhythm ---------- */
.gh-article .gh-content .kg-image-card img,
.gh-article .gh-content .kg-gallery-image img {
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.gh-article .gh-content .kg-gallery-card { --gap: 12px; }

.gh-article .gh-content .kg-video-container {
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.gh-article .gh-content figcaption {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-align: left;
}

.gh-article .gh-content > figure { margin-block: 44px; }

.gh-article .gh-content table { border-radius: 8px; }

/* =========================================================================
   The about page: its lists become card grids (the markup stays the owner's: a <ul> of <li><strong>Title</strong>: text</li>)
   ========================================================================= */
.page-about .gh-article .gh-content > ul {
    grid-column: wide;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding-left: 0;
}

.page-about .gh-article .gh-content > ul > li {
    margin: 0;
    padding: 18px 22px 20px;
    background-color: var(--color-jet);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--ghost-accent-color);
    border-radius: 12px;
    line-height: 1.5;
}

.page-about .gh-article .gh-content > ul > li::before { display: none; }

/* =========================================================================
   The works page: the gallery spans the wide column; on a phone two pictures per row instead of three slivers
   ========================================================================= */
@media (max-width: 640px) {
    .page-works .gh-article .gh-content .kg-gallery-row { flex-wrap: wrap; gap: 12px; }
    .page-works .gh-article .gh-content .kg-gallery-image,
    .page-works .gh-article .gh-content .kg-gallery-image:not(:first-of-type) {
        flex: 1 1 calc(50% - 6px) !important;
        margin: 0;
        aspect-ratio: 1;
    }
    .page-works .gh-article .gh-content .kg-gallery-image img { height: 100%; object-fit: cover; }
}

/* =========================================================================
   Legal pages (privacy, cookies, terms): the article column, sections with the rule, definition lists as cards
   ========================================================================= */
.el-legal-page .gh-content > h3 {
    font-size: clamp(1.6rem, 1.35rem + 0.4vw, 1.9rem);
    letter-spacing: 0.01em;
}

.el-legal-page .gh-content > h3::after { width: 48px; height: 4px; margin-top: 8px; }

.el-legal-page .gh-content dl {
    padding: 4px 22px 14px;
    background-color: var(--color-jet);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--ghost-accent-color);
    border-radius: 12px;
}

.el-legal-page .gh-content dt {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.el-legal-page .gh-content dd { margin: 4px 0 0; }

/* =========================================================================
   The 404 page and the other bare pages: the "back" link as a pill
   ========================================================================= */
.gh-content a.el-action-btn {
    background-image: none !important;
    padding-bottom: 14px !important;
}

/* a single yellow button inside a page body (the 404 page's way back) is as wide as its text */
.gh-content .el-act { display: inline-flex; width: auto; }

/* =========================================================================
   Header and footer: only details (the shapes and the spacing of the buttons and links)
   ========================================================================= */
.gh-footer { margin-top: clamp(48px, 7vw, 104px); }

.el-footer-actions .el-action-btn { min-height: 52px; border: 1px solid #000; }



/* =========================================================================
   Phones
   ========================================================================= */
/* a long word in a page title (`Werk-/Interventie Aanvraag`) broke in the middle of INTERVENTIE at 390 px: a little smaller on a phone */
@media (max-width: 420px) {
    body:not(.page-contact) .gh-article-title { font-size: 2.7rem; }
}

/* tap targets on a PHONE only: the header's search / menu buttons were 32 px and the logo link 38 px. On a desktop the header must stay exactly the
   theme's: the theme's overflow script (source.js dropdown()) moves menu items into a "more" menu when the menu column is narrower than the list + 64 px,
   and 44 px buttons made the actions column 20 px wider, which moved that threshold. Below 768 px the menu is the burger panel, not a row. */
@media (max-width: 767px) {
    .gh-navigation .gh-icon-button { min-width: 44px; min-height: 44px; }
    .gh-navigation-logo { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 640px) {
    /* the footer's legal links: a 44 px tap target on a phone (on a desktop they stay the small text row) */
    .el-footer-legal a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
    .el-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .el-act { min-height: 68px; padding-inline: 18px; }
    .el-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .el-card { padding: 18px 18px 20px; }
    .gh-viewport :is(.gh-container, .el-related) .gh-card-wrapper { padding: 16px 16px 18px; }
    .gh-container.is-list.gh-outer .gh-feed,
    .gh-container.is-grid.gh-outer .gh-feed,
    .el-related .gh-feed { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .page-about .gh-article .gh-content > ul { grid-template-columns: minmax(0, 1fr); }
    .gh-article .gh-content blockquote { padding: 16px 18px 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .el-card:has(.el-card-link),
    .gh-viewport :is(.gh-container, .el-related) .gh-card,
    .el-pill,
    .gh-article .gh-article-tag { transition: none; }
    .gh-viewport :is(.gh-container, .el-related) .gh-card:hover { transform: none; }
}
