/*
Theme Name: dds_emilykrousephoto.com
Theme URI: https://emilykrousephoto.com/
Author: Emily Krouse
Description: Editorial theme for an online magazine about film photography, architecture, interiors and the histories of properties.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ekfilm
*/

:root {
    --bg: #F7F8FA;
    --bg-alt: #EDF0F4;
    --bg-side: #F0F2F5;
    --ink: #1C2B3A;
    --accent: #4A6FA5;
    --gold: #C9A96E;
    --muted: #7A8A9A;
    --line: #DCE1E8;
    --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
    --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, #E8ECF1 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, #E8ECF1 0 1px, transparent 1px 24px);
    background-size: 34px 34px;
    -webkit-font-smoothing: antialiased;
}
body.home {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 240' opacity='0.04'%3E%3Cg fill='none' stroke='%231C2B3A' stroke-width='6'%3E%3Crect x='10' y='10' width='340' height='220'/%3E%3Crect x='40' y='52' width='280' height='136'/%3E%3C/g%3E%3Cg fill='%231C2B3A'%3E%3Crect x='30' y='22' width='16' height='14'/%3E%3Crect x='70' y='22' width='16' height='14'/%3E%3Crect x='110' y='22' width='16' height='14'/%3E%3Crect x='150' y='22' width='16' height='14'/%3E%3Crect x='190' y='22' width='16' height='14'/%3E%3Crect x='230' y='22' width='16' height='14'/%3E%3Crect x='270' y='22' width='16' height='14'/%3E%3Crect x='310' y='22' width='16' height='14'/%3E%3Crect x='30' y='204' width='16' height='14'/%3E%3Crect x='70' y='204' width='16' height='14'/%3E%3Crect x='110' y='204' width='16' height='14'/%3E%3Crect x='150' y='204' width='16' height='14'/%3E%3Crect x='190' y='204' width='16' height='14'/%3E%3Crect x='230' y='204' width='16' height='14'/%3E%3Crect x='270' y='204' width='16' height='14'/%3E%3Crect x='310' y='204' width='16' height='14'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, #E8ECF1 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, #E8ECF1 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -60px top 40px, 0 0, 0 0;
    background-size: 520px auto, 34px 34px, 34px 34px;
}
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.ek-content a, .widget a, .ek-link {
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.25s ease;
}
.ek-content a:hover, .widget a:hover, .ek-link:hover { background-size: 100% 1px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.22;
    margin: 1.6em 0 0.6em;
    color: var(--ink);
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

.ek-content h2, .ek-content h3, .ek-dot {
    position: relative;
    padding-left: 16px;
}
.ek-content h2::before, .ek-content h3::before, .ek-dot::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

p { margin: 0 0 1.15em; }
p, li, dd, td, .ek-card-title, .ek-tile h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid var(--gold);
    background: var(--bg-alt);
    font-family: var(--serif);
    font-size: 1.2rem;
}

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--bg-alt); border: 1px solid var(--line); }

.ek-content ol { list-style: none; counter-reset: ekroman; padding-left: 2.6rem; }
.ek-content ol > li { counter-increment: ekroman; position: relative; margin-bottom: 0.45em; }
.ek-content ol > li::before {
    content: counter(ekroman, upper-roman) ".";
    position: absolute;
    left: -2.6rem;
    width: 2.1rem;
    text-align: right;
    font-family: var(--serif);
    color: var(--gold);
    font-weight: 600;
}
.ek-content ul { padding-left: 1.4rem; }
.ek-content ul > li::marker { color: var(--gold); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.ek-skip:focus {
    position: fixed; top: 10px; left: 10px; z-index: 100;
    width: auto; height: auto; clip: auto;
    padding: 0.6rem 1rem; background: var(--ink); color: #fff;
}

/* ---------- Container ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Top bar & header ---------- */
.ek-topbar { height: 3px; background: linear-gradient(90deg, #4A6FA5, #C9A96E); }

.ek-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.ek-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 0;
}
.ek-brand { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 auto; }
.ek-brand-mark { flex: 0 0 auto; display: block; }
.ek-brand-mark img, .ek-brand-mark svg { display: block; width: 58px; height: 58px; object-fit: contain; }
.ek-brand-text { min-width: 0; max-width: 620px; }
.ek-site-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--ink);
    font-weight: 600;
}
.ek-site-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ek-nav-toggle[hidden] { display: none !important; }
.ek-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 2px;
    padding: 0.45rem 0.85rem;
    font: 500 0.9rem var(--sans);
    cursor: pointer;
}
.ek-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.8rem; }
.ek-nav a {
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.3rem 0;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.25s ease;
}
.ek-nav a:hover, .ek-nav .current-menu-item > a { color: var(--accent); background-size: 100% 1px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    padding: 1.4rem 0 0;
    font-size: 0.86rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.45rem; color: var(--gold); }

/* ---------- Buttons ---------- */
.ek-btn, .ek-content .wp-block-button__link, .comment-form .submit, .ek-search button {
    display: inline-block;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: transparent;
    color: var(--accent);
    padding: 0.62rem 1.3rem;
    font: 500 0.92rem/1.3 var(--sans);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.ek-btn:hover, .ek-content .wp-block-button__link:hover, .comment-form .submit:hover, .ek-search button:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- Layouts ---------- */
.ek-main { padding-bottom: 5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-top: 1.5rem;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.5rem;
}
.content-area { min-width: 0; }

.ek-page-title { font-size: 2.6rem; margin: 0.8rem 0 1.4rem; }
.ek-rule-title { position: relative; padding-top: 1.3rem; }
.ek-rule-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 40px; height: 1px;
    background: var(--gold);
}
.ek-lead { color: var(--muted); max-width: 640px; }

.ek-entry-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.6rem; }
.ek-entry-meta a { color: var(--muted); }
.ek-entry-thumb { margin: 0 0 2rem; }
.ek-entry-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ek-content { max-width: 760px; }
.ek-content img { display: block; }
.ek-content figure { margin: 1.8em 0; }
.ek-content figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.ek-tags { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- Sidebar ---------- */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.8rem 1.6rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--ink);
    padding-left: 14px;
    position: relative;
}
.sidebar .widget-title::before {
    content: ""; position: absolute; left: 0; top: 0.6em;
    width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); font-size: 0.82rem; display: block; }
.sidebar p { color: var(--ink); }

/* ---------- Cards ---------- */
.ek-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.layout-with-sidebar .ek-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-thumb { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card-thumb-empty {
    display: block;
    aspect-ratio: 3 / 2;
    background:
        linear-gradient(135deg, rgba(74,111,165,0.14), rgba(201,169,110,0.12)),
        repeating-linear-gradient(90deg, #DDE3EA 0 1px, transparent 1px 22px),
        #EDF0F4;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.5rem; min-width: 0; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.card-title { font-size: 1.28rem; margin: 0 0 0.7rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.95rem; color: #3A4A5A; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: 1rem; align-self: flex-start; font-size: 0.9rem; }
.ek-empty { padding: 2.5rem 2rem; border: 1px solid var(--line); background: #fff; color: var(--muted); }

/* ---------- Pagination ---------- */
.ek-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}
.ek-pagination .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    text-align: center;
    background: #fff;
    font-size: 0.92rem;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.ek-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.ek-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.ek-pagination .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ---------- Search form ---------- */
.ek-search { display: flex; gap: 0.5rem; max-width: 520px; }
.ek-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: 400 0.95rem var(--sans);
}

/* ---------- Front page sections ---------- */
.ek-front { width: 85%; margin-left: auto; margin-right: auto; }
.front-section { padding: 100px 0; }
.ek-divider { height: 1px; width: 60%; background: var(--line); margin: 56px 0; }
.ek-section-head { margin-bottom: 3rem; max-width: 640px; }
.ek-section-head h2 { font-size: 2.3rem; margin: 0 0 0.8rem; }
.ek-section-head p { color: var(--muted); margin: 0; }

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, #DDE3EA 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, #DDE3EA 0 1px, transparent 1px 24px);
    background-size: 34px 34px;
    padding: 100px 3.5rem;
}

/* Hero */
.fs-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    margin-top: 2.5rem;
    overflow: hidden;
    background: #1C2B3A;
}
.fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(28, 43, 58, 0.4);
}
.fs-hero-text {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 0 3.5rem 5rem;
    color: #fff;
}
.fs-hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 1.4rem;
}
.fs-hero-line { width: 64px; height: 1px; background: var(--gold); margin-bottom: 1.3rem; }
.fs-hero-text p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 560px; margin: 0; }

/* Timeline */
.ek-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.ek-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: var(--line);
}
.ek-tl-item {
    position: relative;
    width: 50%;
    padding: 0 3.2rem 3.4rem 0;
    text-align: right;
}
.ek-tl-item:last-child { padding-bottom: 0; }
.ek-tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 3.4rem 3.2rem; text-align: left; }
.ek-tl-item:nth-child(even):last-child { padding-bottom: 0; }
.ek-tl-item::after {
    content: "";
    position: absolute;
    top: 0.95rem;
    right: -3px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.ek-tl-item:nth-child(even)::after { right: auto; left: -3px; }
.ek-tl-year {
    display: block;
    font-family: var(--serif);
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.ek-tl-roman { font-family: var(--serif); color: var(--gold); font-size: 0.95rem; margin-right: 0.4rem; }
.ek-tl-item h3 { font-size: 1.2rem; margin: 0 0 0.4rem; padding: 0; }
.ek-tl-item p { margin: 0; color: var(--ink); font-size: 0.97rem; }

/* Latest posts */
.fs-latest .ek-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.fs-latest .ek-section-head > div { max-width: 640px; }

/* Quote */
.fs-quote {
    background: #1C2B3A;
    padding: 110px 3.5rem;
    color: #fff;
}
.fs-quote figure {
    position: relative;
    width: min(100%, 700px);
    margin: 0 auto;
    padding-left: 2.4rem;
}
.fs-quote figure::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6rem;
    width: 3px; height: 60px;
    background: var(--gold);
}
.fs-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--serif);
    font-size: 2.4rem;
    line-height: 1.3;
    color: #fff;
    text-align: center;
}
.fs-quote figcaption { margin-top: 1.8rem; text-align: center; color: #7A8A9A; font-size: 0.95rem; }

/* Topic map */
.ek-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.ek-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #F7F8FA;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 2rem 1.8rem 2.1rem;
    color: var(--ink);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.ek-tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.ek-tile svg { display: block; width: 40px; height: 40px; margin-bottom: 1.4rem; }
.ek-tile h3 { font-size: 1.3rem; margin: 0 0 0.5rem; color: var(--ink); }
.ek-tile p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.ek-tile-num { font-family: var(--serif); color: var(--gold); font-size: 0.9rem; margin-bottom: 0.3rem; }

/* ---------- 404 ---------- */
.ek-404 { padding: 2rem 0 1rem; }
.ek-404-code { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--line); margin: 0; }
.ek-404 .ek-search { margin: 2rem 0; }

/* ---------- Comments ---------- */
.ek-comments { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 760px; }
.ek-comments ol { list-style: none; padding: 0; margin: 0 0 2rem; }
.ek-comments ol ol { padding-left: 2rem; margin: 1rem 0 0; }
.ek-comment { padding: 1.3rem 1.4rem; border: 1px solid var(--line); background: #fff; margin-bottom: 1rem; }
.ek-comment-head { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: baseline; margin-bottom: 0.5rem; }
.ek-comment-author { font-weight: 600; }
.ek-comment-date { font-size: 0.82rem; color: var(--muted); }
.ek-comment-await { font-size: 0.85rem; color: var(--accent); }
.ek-comment .reply a { font-size: 0.85rem; }
.comment-respond { margin-top: 1rem; }
.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.62rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font: 400 0.95rem var(--sans);
    color: var(--ink);
}
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.ek-comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.ek-footer {
    background: #1C2B3A;
    color: #C9D3DE;
    padding: 80px 0 0;
    margin-top: 0;
}
.ek-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}
.ek-footer .widget { min-width: 0; color: #C9D3DE; }
.ek-footer .widget-title {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: #FFFFFF;
    margin: 0 0 1.1rem;
    position: relative;
    padding-top: 1rem;
}
.ek-footer .widget-title::before {
    content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 1px; background: var(--gold);
}
.ek-footer p { color: #C9D3DE; font-size: 0.95rem; }
.ek-footer ul { list-style: none; margin: 0; padding: 0; }
.ek-footer li { padding: 0.3rem 0; color: #C9D3DE; }
.ek-footer a { color: #E4EAF1; }
.ek-footer a:hover { color: #FFFFFF; }
.ek-footer .widget a {
    background-image: linear-gradient(var(--gold), var(--gold));
}
.ek-copy {
    margin-top: 60px;
    border-top: 1px solid rgba(220, 225, 232, 0.14);
    padding: 1.6rem 0;
    font-size: 0.85rem;
    color: #8FA0B2;
}

/* ---------- Cookie banner ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    background: #F7F8FA;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    color: var(--ink);
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner .ek-btn { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single, .ek-front { width: 100%; }
    .ek-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ek-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ek-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .fs-hero-text h1 { font-size: 2.6rem; }
    .fs-quote blockquote { font-size: 2rem; }
    .ek-nav-toggle { display: inline-block; }
    .ek-header-inner { flex-wrap: wrap; }
    .ek-nav { width: 100%; display: none; }
    .ek-nav.is-open { display: block; }
    .ek-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 0.6rem; }
    .ek-nav li a { display: block; padding: 0.55rem 0; }
    body.home { background-size: 300px auto, 34px 34px, 34px 34px; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .ek-grid, .layout-with-sidebar .ek-grid, .ek-tiles, .ek-footer-cols { grid-template-columns: minmax(0, 1fr); }
    .front-section { padding: 64px 0; }
    .fs-alt { padding: 64px 1.4rem; }
    .fs-quote { padding: 70px 1.4rem; }
    .fs-hero { min-height: 460px; padding: 0; }
    .fs-hero-text { padding: 0 1.4rem 3rem; }
    .fs-hero-text h1 { font-size: 2.1rem; }
    .fs-quote blockquote { font-size: 1.55rem; }
    .fs-quote figure { padding-left: 1.4rem; }
    .ek-section-head h2 { font-size: 1.8rem; }
    .ek-page-title { font-size: 2rem; }
    .ek-timeline::before { left: 3px; }
    .ek-tl-item, .ek-tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.4rem 2rem; text-align: left; }
    .ek-tl-item::after, .ek-tl-item:nth-child(even)::after { left: 0; right: auto; }
    .ek-brand-mark img, .ek-brand-mark svg { width: 46px; height: 46px; }
    .ek-site-desc { display: none; }
    .sidebar { padding: 1.5rem 1.3rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 1rem 1.2rem; }
    .ek-search { flex-direction: column; }
}
