/* ==========================================================================
   Editorial design system
   --------------------------------------------------------------------------
   Type and hairline rules carry the layout. No cards, no drop shadows, no
   rounded corners, no filled chips. Loaded after style.css so it wins.

   Scope: page content lives inside .ed. Site chrome (navbar/footer) is styled
   at the end of this file.
   ========================================================================== */

:root {
    --ed-ink: #14120f;
    --ed-ink-soft: #46423c;
    --ed-muted: #6f6a63;
    --ed-line: #e3ded6;
    --ed-line-soft: #efebe4;
    --ed-paper: #faf9f7;
    --ed-paper-deep: #f2efe9;
    --ed-accent: #055eee;
    --ed-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --ed-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ed-rail: 148px;
}

.ed {
    background: var(--ed-paper);
    color: var(--ed-ink);
    font-family: var(--ed-sans);
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
}

.ed ::selection {
    background: #d9e4ff;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.ed-wrap {
    max-width: 1080px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.ed-wrap-wide {
    max-width: 1240px;
}

/* The spine: label rail left, content right. */
.ed-spine {
    display: grid;
    grid-template-columns: var(--ed-rail) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 3.5rem);
}

.ed-section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    scroll-margin-top: 5rem;
}

.ed-section + .ed-section {
    border-top: 1px solid var(--ed-line);
}

.ed-section-tight {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.ed-deep {
    background: var(--ed-paper-deep);
}

.ed-label {
    color: var(--ed-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .ed-label-sticky {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}

/* ── Type ──────────────────────────────────────────────────────────────── */
.ed-eyebrow {
    margin: 0 0 clamp(1rem, 2vw, 1.75rem);
    color: var(--ed-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ed-display {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(2.9rem, 8.5vw, 5.75rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.015em;
}

.ed-title {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.015em;
}

.ed-heading {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ed-statement {
    max-width: 24ch;
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(1.75rem, 3.6vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ed-lead {
    max-width: 40ch;
    margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
    color: var(--ed-muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.65;
}

.ed-text {
    max-width: 62ch;
    margin: 1.15rem 0 0;
    color: var(--ed-ink-soft);
    font-size: 0.98rem;
    line-height: 1.8;
}

.ed-serif {
    font-family: var(--ed-serif);
    font-weight: 400;
}

.ed-muted {
    color: var(--ed-muted);
}

/* ── Actions ───────────────────────────────────────────────────────────── */
.ed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* Underlined link, not a button -- the page reads as a document. */
.ed-action {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--ed-ink);
    color: var(--ed-ink);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.ed-action:hover,
.ed-action:focus-visible {
    gap: 0.75rem;
    border-color: var(--ed-accent);
    color: var(--ed-accent);
}

.ed-action span {
    font-size: 0.85em;
}

/* Solid rectangle for pages that must convert. Sharp corners keep it
   editorial; weight makes it unmissable. */
.ed-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    border: 1px solid var(--ed-ink);
    background: var(--ed-ink);
    color: var(--ed-paper);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ed-cta:hover,
.ed-cta:focus-visible {
    background: var(--ed-accent);
    border-color: var(--ed-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Matches .ed-action span -- without this the arrow renders heavy inside a
   solid button. */
.ed-cta span {
    font-size: 0.85em;
}

.ed-cta-ghost {
    background: transparent;
    color: var(--ed-ink);
}

.ed-cta-ghost:hover,
.ed-cta-ghost:focus-visible {
    background: var(--ed-ink);
    border-color: var(--ed-ink);
    color: var(--ed-paper);
}

.ed-more {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 1.15rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--ed-line);
    color: var(--ed-ink);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.ed-more:hover,
.ed-more:focus-visible {
    gap: 0.7rem;
    border-color: var(--ed-accent);
    color: var(--ed-accent);
}

.ed-more span {
    font-size: 0.85em;
}

/* ── Facts strip ───────────────────────────────────────────────────────── */
.ed-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ed-ink);
}

.ed-fact dt {
    margin-bottom: 0.4rem;
    color: var(--ed-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ed-fact dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ── Rows: the workhorse (experience, services, features, lists) ───────── */
.ed-row {
    display: grid;
    grid-template-columns: var(--ed-rail) minmax(0, 1fr);
    gap: clamp(0.5rem, 5vw, 3.5rem);
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--ed-line-soft);
}

.ed-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.ed-row:last-child {
    padding-bottom: 0;
}

.ed-row-tight {
    padding: 1.35rem 0;
}

/* Left rail content */
.ed-index {
    color: var(--ed-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.ed-current {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    color: var(--ed-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ed-current::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ed-accent);
}

.ed-org {
    margin: 0.5rem 0 0;
    color: var(--ed-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Mid-tone: the hairline colour is too faint to read at this size. */
.ed-org .sep {
    color: #bdb7ad;
}

/* Small outlined tag, e.g. ON-SITE / REMOTE */
.ed-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--ed-line);
    color: var(--ed-muted);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: 1px;
}

/* ── Inline list set in serif (skills, stacks) ─────────────────────────── */
.ed-set {
    margin: 0;
    font-family: var(--ed-serif);
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    line-height: 1.45;
}

.ed-set .sep {
    margin: 0 0.55rem;
    color: var(--ed-line);
}

/* ── Link rows (certifications, posts, projects) ───────────────────────── */
.ed-linkrow {
    display: grid;
    grid-template-columns: var(--ed-rail) minmax(0, 1fr) auto;
    align-items: baseline;
    gap: clamp(0.5rem, 5vw, 3.5rem);
    padding: 1.35rem 0;
    border-top: 1px solid var(--ed-line-soft);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.ed-linkrow:first-of-type {
    border-top: 0;
}

.ed-linkrow-title {
    font-family: var(--ed-serif);
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.ed-linkrow-meta {
    margin-top: 0.3rem;
    color: var(--ed-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ed-linkrow-arrow {
    color: var(--ed-line);
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

a.ed-linkrow:hover {
    border-color: var(--ed-ink);
}

a.ed-linkrow:hover .ed-linkrow-title {
    color: var(--ed-accent);
}

a.ed-linkrow:hover .ed-linkrow-arrow {
    color: var(--ed-accent);
    transform: translate(3px, -3px);
}

/* ── Figures ───────────────────────────────────────────────────────────── */
.ed-figure {
    overflow: hidden;
    background: linear-gradient(180deg, #f1eee9, #e6e1d8);
}

.ed-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ed-portrait {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(180deg, #f1eee9, #e6e1d8);
}

.ed-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(0.7) contrast(1.03);
    mix-blend-mode: multiply;
}

/* ── Prose (blog article bodies) ───────────────────────────────────────── */
.ed-prose {
    max-width: 68ch;
    color: var(--ed-ink-soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

.ed-prose > * + * {
    margin-top: 1.35rem;
}

/* An article opening on a heading would otherwise start with 2.75rem of dead
   space from the heading rule below. */
.ed-prose > :first-child {
    margin-top: 0;
}

.ed-prose hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--ed-line);
    opacity: 1;
}

.ed-prose h2,
.ed-prose h3,
.ed-prose h4 {
    margin-top: 2.75rem;
    color: var(--ed-ink);
    font-family: var(--ed-serif);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ed-prose h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.ed-prose h3 {
    font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.ed-prose h4 {
    font-size: 1.2rem;
}

.ed-prose a {
    color: var(--ed-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--ed-line);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ed-prose a:hover {
    color: var(--ed-accent);
    text-decoration-color: var(--ed-accent);
}

.ed-prose img {
    max-width: 100%;
    height: auto;
}

.ed-prose blockquote {
    margin-inline: 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--ed-ink);
    color: var(--ed-ink);
    font-family: var(--ed-serif);
    font-size: 1.35rem;
    line-height: 1.5;
}

.ed-prose ul,
.ed-prose ol {
    padding-left: 1.35rem;
}

.ed-prose li + li {
    margin-top: 0.5rem;
}

.ed-prose code {
    padding: 0.15rem 0.4rem;
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
    font-size: 0.88em;
}

.ed-prose pre {
    overflow-x: auto;
    padding: 1.25rem;
    border: 1px solid var(--ed-line);
    background: var(--ed-paper-deep);
    font-size: 0.85rem;
    line-height: 1.7;
}

.ed-prose pre code {
    padding: 0;
    background: none;
}

.ed-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.ed-prose th,
.ed-prose td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--ed-line-soft);
    text-align: left;
}

.ed-prose th {
    color: var(--ed-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.ed-field {
    margin-bottom: 1.75rem;
}

.ed-field label,
.ed-label-form {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ed-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ed-input {
    width: 100%;
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid var(--ed-line);
    border-radius: 0;
    background: transparent;
    color: var(--ed-ink);
    font-family: var(--ed-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.ed-input::placeholder {
    color: #b9b3a9;
}

.ed-input:focus {
    border-bottom-color: var(--ed-ink);
    box-shadow: none;
    outline: none;
}

.ed-input:focus-visible {
    outline: none;
}

textarea.ed-input {
    min-height: 8rem;
    resize: vertical;
}

select.ed-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236f6a63' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    padding-right: 1.5rem;
}

.ed-error {
    margin-top: 0.4rem;
    color: #b3261e;
    font-size: 0.8rem;
}

.ed-input.is-invalid {
    border-bottom-color: #b3261e;
    background-image: none;
}

.ed-note {
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--ed-accent);
    background: var(--ed-paper-deep);
    color: var(--ed-ink-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ed-note-success {
    border-left-color: #1c7c54;
}

.ed-note-error {
    border-left-color: #b3261e;
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.ed-empty {
    padding: 2rem 0;
    color: var(--ed-muted);
    font-size: 0.95rem;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.ed-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ed-line);
    list-style: none;
}

.ed-pagination .page-link {
    padding: 0.4rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ed-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.ed-pagination .page-link:hover {
    border-color: var(--ed-line);
    background: transparent;
    color: var(--ed-ink);
}

.ed-pagination .active .page-link {
    border-color: var(--ed-ink);
    background: transparent;
    color: var(--ed-ink);
}

.ed-pagination .disabled .page-link {
    color: var(--ed-line);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Touch targets. The underline on these links is the design, so they can't
       just be made 44px tall -- that would detach the rule from the text.
       Expand the hit area invisibly instead. */
    .ed-action,
    .ed-more,
    .ed-footer a:not(.ed-social) {
        position: relative;
    }

    .ed-action::after,
    .ed-more::after,
    .ed-footer a:not(.ed-social)::after {
        content: "";
        position: absolute;
        inset: -13px -10px;
    }

    .navbar-brand {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .ed-cta {
        padding: 1rem 1.5rem;
    }

    /* Facts sit two-up rather than collapsing to one tall column. */
    .ed-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem 1rem;
    }

    /* Stacked: the column gap would become a row gap and stack on top of the
       margins below, leaving ~30px of dead air under every rail label. */
    /* Masthead portraits. The source is a transparent cutout at ratio ~0.56;
       forcing it into the boxed 3:4 crop at phone widths scales it to fill and
       clips his shoulders. Drop the panel and let the PNG sit on the paper at
       its natural ratio -- nothing cropped, no box edges. */
    .ed-mast-portrait,
    .ed-hero-portrait {
        aspect-ratio: auto;
        overflow: visible;
        background: none;
    }

    .ed-mast-portrait img,
    .ed-hero-portrait img {
        height: auto;
        object-fit: contain;
    }

    .ed-spine,
    .ed-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ed-linkrow {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 1rem;
        row-gap: 0;
    }

    .ed-linkrow > .ed-index {
        grid-column: 1 / -1;
        margin-bottom: 0.3rem;
    }

    .ed-label {
        margin-bottom: 1.25rem;
    }

    .ed-row .ed-index {
        margin-bottom: 0.5rem;
    }

    .ed-row-tight .ed-index {
        margin-bottom: 0.3rem;
    }
}

/* ── Site chrome ───────────────────────────────────────────────────────── */
.ed-navbar {
    background: var(--ed-paper) !important;
    border-bottom: 1px solid var(--ed-line);
    box-shadow: none !important;
    font-family: var(--ed-sans);
}

.ed-navbar.scrolled {
    box-shadow: none !important;
    border-bottom-color: var(--ed-ink);
}

.ed-navbar .nav-link {
    color: var(--ed-muted) !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.ed-navbar .nav-link:hover,
.ed-navbar .nav-link.active {
    background: transparent !important;
    color: var(--ed-ink) !important;
    transform: none !important;
}

.ed-navbar .nav-link::after {
    display: none;
}

/* ── Desktop dropdown ─────────────────────────────────────────────────── */
.ed-navbar .dropdown-menu {
    margin-top: 0.75rem;
    padding: 0.4rem;
    min-width: 15rem;
    border: 1px solid var(--ed-line);
    border-radius: 0;
    background: var(--ed-paper);
    box-shadow: 0 18px 40px rgba(20, 18, 15, 0.07);
}

.ed-navbar .dropdown-item {
    padding: 0.6rem 0.75rem;
    border-radius: 0;
    color: var(--ed-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: normal;
    transition: background 0.15s ease, color 0.15s ease;
}

.ed-navbar .dropdown-item:hover,
.ed-navbar .dropdown-item:focus {
    background: var(--ed-paper-deep);
    color: var(--ed-ink);
}

.ed-navbar .dropdown-item.active {
    background: transparent;
    color: var(--ed-ink);
    font-weight: 700;
}

/* Bootstrap's caret is a CSS triangle; a thin chevron sits better. */
.ed-navbar .dropdown-toggle::after {
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.45em;
    border: 0;
    border-right: 1.2px solid currentColor;
    border-bottom: 1.2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    vertical-align: middle;
}

/* ── Burger ───────────────────────────────────────────────────────────── */
.ed-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
}

.ed-burger:focus {
    box-shadow: none;
    outline: none;
}

.ed-burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    margin-left: auto;
    background: var(--ed-ink);
    transition: transform 0.2s ease, width 0.2s ease;
}

.ed-burger span:last-child {
    width: 16px;
}

.ed-burger:hover span:last-child {
    width: 24px;
}

/* ── Drawer ───────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Drive Bootstrap's own custom properties rather than fighting them:
       `.offcanvas.offcanvas-end` is specificity (0,2,0) and overrides a plain
       `.ed-drawer` width/border every time. */
    .ed-drawer {
        --bs-offcanvas-width: min(88vw, 380px);
        --bs-offcanvas-bg: var(--ed-paper);
        --bs-offcanvas-border-color: var(--ed-line);
        --bs-offcanvas-border-width: 1px;
    }

    .ed-drawer .offcanvas-header {
        align-items: center;
        padding: 1.35rem 1.5rem;
        border-bottom: 1px solid var(--ed-line);
    }

    /* Bootstrap pushes the header's close button over via `.btn-close`'s
       margin-left:auto; this is a custom button, so it needs its own. */
    .ed-drawer-close {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        margin-left: auto;
        padding: 0.35rem 0;
        border: 0;
        background: none;
        color: var(--ed-muted);
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    /* .ed-label carries a mobile margin-bottom that would offset it from the
       close button. */
    .ed-drawer .offcanvas-header .ed-label {
        margin-bottom: 0;
    }

    .ed-drawer-close span {
        font-size: 1.15rem;
        line-height: 1;
    }

    .ed-drawer-close:hover {
        color: var(--ed-ink);
    }

    .ed-drawer .offcanvas-body {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 1.5rem 1.5rem;
    }

    /* Serif, set large -- the drawer is a page, not a menu strip. */
    .ed-drawer .navbar-nav .nav-link {
        padding: 0.9rem 0 !important;
        border-bottom: 1px solid var(--ed-line-soft);
        color: var(--ed-ink) !important;
        font-family: var(--ed-serif);
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 1.2;
        transition: color 0.15s ease, padding-left 0.15s ease;
    }

    .ed-drawer .navbar-nav .nav-link:hover {
        padding-left: 0.4rem !important;
        color: var(--ed-accent) !important;
    }

    .ed-drawer .navbar-nav .nav-link.active {
        color: var(--ed-accent) !important;
    }

    .ed-drawer-group {
        display: block;
        padding: 1.35rem 0 0.6rem;
        color: var(--ed-muted);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    .ed-drawer-sub {
        margin: 0 0 0.9rem;
        padding: 0;
        list-style: none;
        border-bottom: 1px solid var(--ed-line-soft);
    }

    .ed-drawer-sub a {
        display: block;
        padding: 0.55rem 0;
        color: var(--ed-ink-soft);
        font-size: 0.95rem;
        text-decoration: none;
        transition: color 0.15s ease, padding-left 0.15s ease;
    }

    .ed-drawer-sub a:hover {
        padding-left: 0.4rem;
        color: var(--ed-accent);
    }

    .ed-drawer-sub a.active {
        color: var(--ed-accent);
        font-weight: 600;
    }

    .ed-drawer-foot {
        margin-top: auto;
        padding-top: 2rem;
    }

    .ed-drawer .offcanvas-backdrop.show {
        opacity: 0.35;
    }
}

.ed-footer {
    background: var(--ed-ink);
    color: #a9a49b;
    font-family: var(--ed-sans);
    font-size: 0.82rem;
}

.ed-footer a {
    color: #d8d3ca;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ed-footer a:hover {
    color: #fff;
}

/* Bare icons are ~14px tall -- unusable as touch targets without padding. */
.ed-footer .ed-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.ed-footer-sep {
    margin: 0 0.35rem;
    color: #55504a;
}

.sitelogo {
    height: 26px;
    width: auto;
}

@media (max-width: 768px) {
    .sitelogo {
        height: 22px;
    }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
    .ed {
        background: #fff;
    }

    .ed-actions,
    .ed-cta,
    .ed-portrait,
    .custom-navbar,
    .ed-navbar,
    footer,
    .ed-footer {
        display: none !important;
    }

    .ed-section {
        padding: 1.5rem 0;
    }

    .ed-row,
    .ed-linkrow {
        break-inside: avoid;
    }
}
