/* ============================================================
   AMTICS · Editorial Design System (shared)
   Ink + gold · Fraunces + Inter · scoped under .ed
   Used by: AboutAmtics, WhyAmtics, Vision&Mission, ...
   All rules are namespaced under .ed so navbar/footer and
   other pages are never affected.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;450;500;600;700&display=swap');

.ed {
    --ink: #15112e;
    --ink-2: #211c46;
    --gold: #b8893b;
    --gold-d: #d8b465;
    --paper: #f6f4ee;
    --paper-2: #efece3;
    --text: #1c1838;
    --muted: #5d5874;
    --line: rgba(21, 17, 46, 0.12);
    --line-dark: rgba(255, 255, 255, 0.14);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', 'Montserrat', system-ui, sans-serif;
    --maxw: 1180px;
    --ease: cubic-bezier(.22, 1, .36, 1);

    font-family: var(--sans);
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

.ed-shell {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.ed-sec {
    padding: clamp(56px, 8vw, 104px) 0;
}

.ed-band {
    padding: clamp(48px, 7vw, 84px) 0;
}

.ed-alt {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- Kicker / eyebrow ---------- */
.ed-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.ed-kicker::before {
    content: "";
    width: 28px;
    height: 1.5px;
    background: currentColor;
}

.ed-kicker--light {
    color: var(--gold-d);
}

/* ---------- Section heading ---------- */
.ed-section-head {
    max-width: 60ch;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.ed-section-head h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

.ed-section-head p {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 18px 0 0;
}

/* ============================================================
   HERO
   ============================================================ */
.ed-hero {
    position: relative;
    background: radial-gradient(120% 140% at 80% -10%, #241d52 0%, var(--ink) 55%);
    color: #fff;
    overflow: hidden;
}

.ed-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.6;
    pointer-events: none;
}

.ed-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 84px);
}

.ed-hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.4rem, 6vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    max-width: 17ch;
}

.ed-hero h1 em {
    font-style: italic;
    color: var(--gold-d);
}

.ed-hero__lede {
    max-width: 58ch;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: rgba(255, 255, 255, 0.74);
    margin: 0 0 34px;
}

.ed-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 38px;
}

.ed-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
}

.ed-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.ed-hero__meta span:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-d);
}

/* ============================================================
   SPLIT (lead text + figure / two statements)
   ============================================================ */
.ed-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.ed-split--stretch {
    align-items: stretch;
}

.ed-split--top {
    align-items: start;
}

.ed-lead {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 26px;
}

.ed-lead b {
    font-weight: 600;
}

.ed-body {
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 18px;
    max-width: 62ch;
}

.ed-body:last-child {
    margin-bottom: 0;
}

.ed-figure {
    position: relative;
}

.ed-figure picture {
    display: block;
}

.ed-figure img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.ed-figure::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1.5px solid var(--gold);
    border-radius: 14px;
    z-index: -1;
}

/* ============================================================
   QUOTE BAND
   ============================================================ */
.ed-quote {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.ed-quote__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.ed-quote blockquote {
    margin: 0;
    max-width: 30ch;
    background: #fff;
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    padding: clamp(24px, 3vw, 36px);
    box-shadow: 0 16px 40px rgba(21, 17, 46, 0.06);
}

.ed-quote blockquote p {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.35rem, 3vw, 2.05rem);
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.ed-quote__note {
    color: var(--muted);
    font-size: 1rem;
    max-width: 48ch;
}

/* ============================================================
   STATS BAND (ink)
   ============================================================ */
.ed-stats {
    background: var(--ink);
    color: #fff;
}

.ed-stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: clamp(40px, 5vw, 64px) 0;
}

.ed-stat {
    text-align: center;
    padding: 10px 16px;
    border-right: 1px solid var(--line-dark);
}

.ed-stat:last-child {
    border-right: 0;
}

.ed-stat__num {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--gold-d);
    margin-bottom: 10px;
}

.ed-stat__label {
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

/* ============================================================
   CARD GRID (pillars / features)
   Seamless hairline grid
   ============================================================ */
.ed-cards {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.ed-cards--2 {
    grid-template-columns: repeat(2, 1fr);
}

.ed-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.ed-card {
    background: #fff;
    padding: clamp(26px, 3vw, 38px);
    transition: background 0.3s var(--ease);
}

.ed-card:hover {
    background: #fffdf8;
}

.ed-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(184, 137, 59, 0.12);
    color: var(--gold);
    margin-bottom: 22px;
}

.ed-card__icon svg {
    width: 22px;
    height: 22px;
}

.ed-card__icon i {
    font-size: 19px;
}

.ed-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.28rem;
    color: var(--ink);
    margin: 0 0 12px;
}

.ed-card p {
    color: var(--muted);
    font-size: 0.97rem;
    margin: 0;
}

.ed-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.ed-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--muted);
}

.ed-meta i {
    color: var(--gold);
}

/* ============================================================
   VISION / MISSION statement cards
   ============================================================ */
.ed-vm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 32px);
}

.ed-statement {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: clamp(30px, 4vw, 48px);
    position: relative;
}

.ed-statement--ink {
    background: var(--ink);
    border-color: transparent;
    color: #fff;
}

.ed-statement__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.ed-statement--ink .ed-statement__tag {
    color: var(--gold-d);
}

.ed-statement__tag i {
    font-size: 15px;
}

.ed-statement p {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.4;
    color: inherit;
    margin: 0 0 14px;
}

.ed-statement--ink p {
    color: rgba(255, 255, 255, 0.9);
}

.ed-statement p:last-child {
    margin-bottom: 0;
}

.ed-statement ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: m;
}

.ed-statement ol li {
    counter-increment: m;
    position: relative;
    padding-left: 40px;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--muted);
}

.ed-statement--ink ol li {
    color: rgba(255, 255, 255, 0.82);
}

.ed-statement ol li:last-child {
    margin-bottom: 0;
}

.ed-statement ol li::before {
    content: counter(m, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.ed-statement--ink ol li::before {
    color: var(--gold-d);
}

/* ============================================================
   VALUES CHIPS
   ============================================================ */
.ed-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ed-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.ed-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.ed-chip:hover {
    border-color: var(--gold);
    background: #fffdf8;
}

/* ============================================================
   SHOWCASE (image grid)
   ============================================================ */
.ed-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(18px, 2.5vw, 28px);
}

.ed-shot {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin: 0;
}

.ed-shot picture {
    display: block;
    width: 100%;
    height: 100%;
}

.ed-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.ed-shot:hover img {
    transform: scale(1.05);
}

.ed-shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px 16px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(to top, rgba(21, 17, 46, 0.85), transparent);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.ed-cta {
    background: radial-gradient(110% 160% at 85% 0%, #241d52 0%, var(--ink) 60%);
    color: #fff;
}

.ed-cta__inner {
    padding: clamp(48px, 7vw, 88px) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 44px;
}

.ed-cta h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.15;
    margin: 8px 0 0;
    max-width: 18ch;
}

.ed-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ed-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ed-btn svg {
    width: 16px;
    height: 16px;
}

.ed-btn--primary {
    background: var(--gold-d);
    color: var(--ink);
}

.ed-btn--primary:hover {
    transform: translateY(-2px);
    background: #e6c074;
    box-shadow: 0 12px 28px rgba(216, 180, 101, 0.3);
}

.ed-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.ed-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--gold-d);
    color: var(--gold-d);
}

/* ---------- Focus visibility (WCAG 2.2) ---------- */
.ed a:focus-visible {
    outline: 2px solid var(--gold-d);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

    .ed-split,
    .ed-vm {
        grid-template-columns: 1fr;
    }

    .ed-split .ed-figure {
        order: -1;
    }

    .ed-figure::before {
        inset: 12px -12px -12px 12px;
    }

    .ed-quote__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ed-quote blockquote {
        max-width: none;
    }

    .ed-stats__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 0;
    }

    .ed-stat:nth-child(3) {
        border-right: 0;
    }

    .ed-cards--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ed-showcase__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .ed-cards--2,
    .ed-cards--3 {
        grid-template-columns: 1fr;
    }

    .ed-stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ed-stat {
        border-right: 1px solid var(--line-dark);
    }

    .ed-stat:nth-child(2n) {
        border-right: 0;
    }

    .ed-showcase__grid {
        grid-template-columns: 1fr;
    }

    .ed-cta__actions,
    .ed-btn {
        width: 100%;
    }

    .ed-btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ed *,
    .ed *::before {
        transition: none !important;
    }

    .ed-shot:hover img,
    .ed-btn:hover {
        transform: none;
    }
}

/* ============================================================
   EXTENSIONS · PDF viewer · director/portrait · prose · buttons
   ============================================================ */

/* Dark-text button for light backgrounds */
.ed-btn--line {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.ed-btn--line:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
}

/* PDF viewer card */
.ed-pdf {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(21, 17, 46, 0.08);
}

.ed-pdf__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.ed-pdf__bar span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ink);
}

.ed-pdf__bar i {
    color: var(--gold);
}

.ed-pdf__dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--gold);
    transition: color 0.2s var(--ease);
}

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

.ed-pdf iframe {
    display: block;
    width: 100%;
    height: 76vh;
    min-height: 520px;
    border: 0;
    background: #f3f1ea;
}

/* Mobile/tablet: shrink the PDF page to fit the screen width (no scrolling
   to read a page). Pairs with #view=FitH on the iframe src. A4 portrait. */
@media (max-width: 820px) {
    .ed-pdf--fit iframe {
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1.414;
    }
}

/* Director / person */
.ed-director {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.ed-portrait {
    position: relative;
    max-width: 340px;
    margin: 0;
}

.ed-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
}

.ed-portrait::before {
    content: "";
    position: absolute;
    inset: 16px -16px -16px 16px;
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    z-index: -1;
}

.ed-portrait figcaption {
    margin-top: 22px;
}

.ed-portrait__name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--ink);
    margin: 0;
}

.ed-portrait__role {
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 5px 0 0;
}

/* Prose block (long-form message) */
.ed-prose p {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0 0 18px;
}

.ed-prose .ed-lead {
    color: var(--ink);
    margin-bottom: 24px;
}

.ed-sign {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.ed-sign strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
}

.ed-sign span {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Inline highlight stats (e.g. inside director message) */
.ed-minihits {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 40px;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
}

.ed-minihit b {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--gold);
    line-height: 1;
}

.ed-minihit span {
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 900px) {
    .ed-director {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .ed-portrait {
        margin-inline: auto;
    }

    .ed-director .ed-prose {
        text-align: left;
    }
}

/* Faculty grid */
.ed-faculty {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 30px);
}

.ed-fac {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ed-fac:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(21, 17, 46, 0.10);
}

.ed-fac__photo {
    aspect-ratio: 1 / 1;
    background: var(--paper-2);
    overflow: hidden;
}

.ed-fac__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s var(--ease);
}

.ed-fac:hover .ed-fac__photo img {
    transform: scale(1.04);
}

.ed-fac__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.ed-fac__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
    margin: 0 0 6px;
}

.ed-fac__badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(184, 137, 59, 0.12);
    padding: 3px 9px;
    border-radius: 999px;
}

.ed-fac__role {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.ed-fac__email {
    margin: 0 0 12px;
    font-size: 0.85rem;
}

.ed-fac__email a {
    color: var(--muted);
    text-decoration: none;
    word-break: break-word;
    transition: color 0.2s var(--ease);
}

.ed-fac__email a:hover {
    color: var(--gold);
}

.ed-fac__topics {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ed-fac__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

.ed-fac__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s var(--ease);
}

.ed-fac__link:hover svg {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .ed-faculty {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ed-faculty {
        grid-template-columns: 1fr;
    }
}

/* Contact details list */
.ed-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ed-contact li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.ed-contact li:first-child {
    padding-top: 0;
}

.ed-contact li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ed-contact .ed-contact__ico {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(184, 137, 59, 0.12);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ed-contact .ed-contact__ico i {
    font-size: 18px;
}

.ed-contact__lbl {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 4px;
}

.ed-contact__val {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.ed-contact__val a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.ed-contact__val a:hover {
    color: var(--gold);
}

/* Map embed card */
.ed-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(21, 17, 46, 0.08);
    min-height: 100%;
}

.ed-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    border: 0;
}

/* Long-form legal / document pages */
.ed-doc {
    max-width: 820px;
}

.ed-doc h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    margin: 38px 0 12px;
}

.ed-doc h2:first-of-type {
    margin-top: 0;
}

.ed-doc p,
.ed-doc li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.ed-doc p {
    margin: 0 0 16px;
}

.ed-doc ul {
    padding-left: 20px;
    margin: 0 0 16px;
}

.ed-doc li {
    margin-bottom: 8px;
}

.ed-doc a {
    color: var(--gold);
    text-decoration: none;
}

.ed-doc a:hover {
    text-decoration: underline;
}

.ed-doc__updated {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

/* ============================================================
   EXTENSIONS 2 · publications · tiles · link-cards · status
   ============================================================ */

/* Publications list (academic style) */
.ed-publist {
    border-top: 1px solid var(--line);
}

.ed-pub {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.ed-pub__year {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gold);
    line-height: 1.5;
}

.ed-pub__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.4;
}

.ed-pub__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.ed-pub__title a:hover {
    color: var(--gold);
}

.ed-pub__meta {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.ed-pub__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
}

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

@media (max-width: 560px) {
    .ed-pub {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Image tiles (clubs, features) */
.ed-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 28px);
}

.ed-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ed-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(21, 17, 46, 0.10);
}

.ed-tile__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--paper-2);
}

.ed-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.ed-tile:hover .ed-tile__media img {
    transform: scale(1.05);
}

.ed-tile__body {
    padding: 22px 22px 24px;
}

.ed-tile__title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 8px;
}

.ed-tile__text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .ed-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .ed-tiles {
        grid-template-columns: 1fr;
    }
}

/* Clickable card + arrow (research hub) */
a.ed-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.ed-card__more {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    transition: gap 0.2s var(--ease);
}

a.ed-card:hover .ed-card__more {
    gap: 12px;
}

/* Status badge (projects) */
.ed-statusbadge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.ed-statusbadge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
}

.ed-statusbadge--done::before { background: #3f9b6b; }
.ed-statusbadge--active::before { background: var(--gold); }
.ed-statusbadge--proto::before { background: #5b8def; }
.ed-statusbadge--idea::before { background: #b6b0c4; }

/* ============================================================
   EXTENSIONS 3 · timeline · news list
   ============================================================ */

/* Vertical timeline (projects, milestones) */
.ed-timeline {
    position: relative;
    padding-left: 38px;
    max-width: 900px;
}

.ed-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--line);
}

.ed-tl {
    position: relative;
    padding-bottom: clamp(26px, 3.5vw, 40px);
}

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

.ed-tl::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--paper);
}

.ed-tl--alt::before {
    box-shadow: 0 0 0 4px var(--paper-2);
}

.ed-tl__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(22px, 3vw, 30px);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ed-tl__card:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 34px rgba(21, 17, 46, 0.08);
}

.ed-tl__card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.22rem;
    color: var(--ink);
    margin: 4px 0 10px;
}

.ed-tl__card>p {
    color: var(--muted);
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.6;
}

/* News & events list */
.ed-news {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ed-newsitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    padding: 18px 22px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    cursor: pointer;
}

.ed-newsitem:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(21, 17, 46, 0.09);
}

.ed-newsitem .news-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.35;
    margin: 0 0 6px;
}

.ed-newsitem .news-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.ed-newsitem .news-title a:hover {
    color: var(--gold);
}

.ed-newsitem .news-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--muted);
}

.ed-newsitem .file-icon {
    width: 1.7rem;
    height: 1.7rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ed-newsitem .file-link:hover .file-icon {
    transform: scale(1.12);
}

.ed-newsitem .file-icon.unavailable {
    filter: grayscale(100%) opacity(0.4);
    cursor: not-allowed;
}

/* date filter pills */
.ed-datefilter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.ed-datefilter .date-btn {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.ed-datefilter .date-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.ed-datefilter .date-btn.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.ed-news-container { display: none; }
.ed-news-container.active { display: block; animation: edFade 0.4s var(--ease); }

@keyframes edFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
    .ed-newsitem {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
