/* Activate Global Media — layer on top of Source.
   Brand: deep teal #083C46, signal coral #F2633F, warm ivory #F7F1E6, graphite #182026.
   Coral text uses the darker #B23A17 so small labels stay readable on ivory (5.3:1). */

:root {
    --agm-teal: #083C46;
    --agm-teal-2: #0E4E5A;
    --agm-coral: #F2633F;
    --agm-coral-text: #B23A17;
    --agm-ivory: #F7F1E6;
    --agm-paper: #FBF8F2;
    --agm-graphite: #182026;
    --agm-muted: #5B6770;
    --agm-rule: rgba(24, 32, 38, .14);
    --agm-rule-strong: #182026;
}

/* ---------- Shared pieces ---------- */

.agm-label {
    margin: 0 0 14px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--agm-graphite);
}
.agm-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 3px;
    margin: 0 8px 3px 0;
    vertical-align: middle;
    background: var(--agm-coral);
}
.agm-label-light { color: var(--agm-ivory); }

.agm-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--agm-coral-text);
}
.agm-kicker:hover { opacity: 1; text-decoration: underline; }

/* Branded fallback art for stories without a photo */
.agm-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 6% 7%;
    overflow: hidden;
    color: var(--agm-ivory);
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(242, 99, 63, .28), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(42, 110, 122, .55), transparent 60%),
        linear-gradient(160deg, #0B4A56 0%, #083C46 45%, #062C34 100%);
}
.agm-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--agm-coral);
}
.agm-cover-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34%;
    max-width: 180px;
    transform: translate(-50%, -58%);
    opacity: .95;
}
.agm-cover-kicker,
.agm-cover-brand {
    position: relative;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.agm-cover-brand { opacity: .7; font-weight: 600; }
.gh-card-image.agm-fallback { aspect-ratio: 16 / 9; }

/* ---------- Edition bar (masthead strip) ---------- */

.agm-home { padding-top: 0; }
.agm-edition {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--agm-rule-strong);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    color: var(--agm-muted);
}
.agm-edition-date { font-weight: 600; color: var(--agm-graphite); }
.agm-edition-motto { letter-spacing: .16em; text-transform: uppercase; font-size: 1.1rem; }
.agm-edition-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--agm-teal); }
.agm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--agm-coral); box-shadow: 0 0 0 0 rgba(242, 99, 63, .6); animation: agm-pulse 2s infinite; }
@keyframes agm-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 99, 63, .55); } 70% { box-shadow: 0 0 0 8px rgba(242, 99, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 99, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .agm-dot { animation: none; } }

/* ---------- Front block ---------- */

.agm-front {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--agm-rule);
}
.agm-front.no-brief { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.agm-front-side { padding-left: 32px; border-left: 1px solid var(--agm-rule); }
.agm-front-side .agm-card + .agm-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--agm-rule); }

.agm-brief {
    align-self: start;
    padding: 24px;
    background: var(--agm-teal);
    color: var(--agm-ivory);
}
.agm-brief .agm-label { color: var(--agm-ivory); }
.agm-brief-title { margin: 0 0 10px; font-size: 2.6rem; line-height: 1.1; color: #fff; }
.agm-brief-text { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.45; opacity: .85; }
.agm-brief-list { margin: 0 0 18px; padding: 0; list-style: none; font-size: 1.4rem; }
.agm-brief-list li { padding: 7px 0 7px 22px; border-top: 1px solid rgba(247, 241, 230, .16); position: relative; }
.agm-brief-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 9px; height: 9px; background: var(--agm-coral); clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }
.agm-brief .gh-form { background-color: rgba(255, 255, 255, .1); }
.agm-brief .gh-form-input { color: #fff; }
.agm-brief .gh-form-input::placeholder { color: rgba(255, 255, 255, .55); }
.agm-brief .gh-button { background-color: var(--agm-coral); color: var(--agm-graphite); }
.agm-brief-fine { margin: 10px 0 0; font-size: 1.25rem; opacity: .7; }

/* ---------- Cards ---------- */

.agm-card-media { display: block; overflow: hidden; background: var(--agm-teal); }
.agm-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.agm-card:hover .agm-card-media img { transform: scale(1.02); }
.agm-card-title { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.agm-card-title a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.agm-card-dek { margin: 10px 0 0; font-size: 1.6rem; line-height: 1.45; color: var(--agm-muted); }
.agm-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; font-family: var(--font-sans); font-size: 1.25rem; color: var(--agm-muted); }
.agm-card-meta > * + *::before { content: "·"; margin-right: 12px; }

.agm-card-lead .agm-card-media { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.agm-card-lead .agm-card-title { font-size: clamp(3rem, 4.2vw, 4.8rem); line-height: 1.04; }
.agm-card-lead .agm-card-dek { font-size: 1.9rem; }
.agm-card-side .agm-card-title { font-size: 2.1rem; }
.agm-card-grid .agm-card-media { aspect-ratio: 3 / 2; margin-bottom: 14px; }
.agm-card-grid .agm-card-title { font-size: 2.2rem; }
.agm-card-grid .agm-card-dek { font-size: 1.45rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.agm-card-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--agm-rule); }
.agm-card-row .agm-card-media { aspect-ratio: 3 / 2; }
.agm-card-row .agm-card-title { font-size: 2.3rem; }

/* ---------- Live numbers band ---------- */

.agm-live {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: center;
    margin: 40px 0;
    padding: 36px 40px;
    color: var(--agm-ivory);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(242, 99, 63, .22), transparent 60%),
        var(--agm-graphite);
}
.agm-live[hidden] { display: none; }
.agm-live-title { margin: 0 0 10px; font-size: clamp(2.4rem, 3vw, 3.2rem); line-height: 1.1; color: #fff; }
.agm-live-text { margin: 0; font-size: 1.5rem; line-height: 1.5; opacity: .78; }
.agm-live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: rgba(247, 241, 230, .14); }
.agm-live-grid > div { padding: 18px 20px; background: var(--agm-graphite); }
.agm-live-grid dt { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.agm-live-grid dd { margin: 4px 0 0; font-family: var(--font-sans); font-size: 3.4rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.agm-live-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; font-size: 1.3rem; opacity: .8; }
.agm-live-foot a { color: var(--agm-coral); font-weight: 600; }

/* ---------- Sections ---------- */

.agm-section { padding: 36px 0 8px; border-top: 2px solid var(--agm-rule-strong); margin-top: 36px; }
.agm-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 22px; }
.agm-section-title { margin: 0; font-size: 3rem; }
.agm-section-dek { flex: 1; margin: 0; font-size: 1.5rem; color: var(--agm-muted); }
.agm-section-more { font-family: var(--font-sans); font-size: 1.35rem; font-weight: 700; color: var(--agm-teal); }
.agm-section-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

.agm-directory { margin: 8px 0 48px; }
.agm-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--agm-rule); border: 1px solid var(--agm-rule); }
.agm-directory-item { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: var(--agm-paper); transition: background .2s; }
.agm-directory-item:hover { opacity: 1; background: #fff; }
.agm-directory-name { font-size: 2.2rem; font-weight: 600; color: var(--agm-graphite); }
.agm-directory-desc { font-size: 1.4rem; line-height: 1.4; color: var(--agm-muted); }
.agm-directory-count { margin-top: auto; padding-top: 6px; font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; color: var(--agm-coral-text); }

.agm-more { margin-bottom: 56px; }
.agm-more-all { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--agm-teal); }

/* ---------- Article ---------- */

.gh-article-tag { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--agm-coral-text) !important; }
.agm-short { margin-top: 22px; padding: 16px 20px; border-left: 4px solid var(--agm-coral); background: var(--agm-paper); }
.agm-short .agm-label { margin-bottom: 6px; font-size: 1.1rem; }
.agm-short .agm-label::before { display: none; }
.agm-short .gh-article-excerpt { margin: 0; font-size: 1.9rem; line-height: 1.45; color: var(--agm-graphite); }
.gh-meta-share .gh-button-share { border-color: var(--agm-rule); }
.gh-content > blockquote { border-left-color: var(--agm-coral); }
.gh-content a { color: var(--agm-teal); text-decoration-color: rgba(8, 60, 70, .35); }

.agm-article-foot { margin-top: 48px; }
.agm-author { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 2px solid var(--agm-rule-strong); border-bottom: 1px solid var(--agm-rule); }
.agm-author-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agm-author-name { margin: 0; font-family: var(--font-sans); font-size: 1.7rem; font-weight: 700; }
.agm-author-bio { margin: 4px 0 6px; font-size: 1.5rem; line-height: 1.45; color: var(--agm-muted); }
.agm-author-more { font-size: 1.35rem; font-weight: 700; color: var(--agm-teal); }
.agm-standards { margin: 16px 0 0; font-size: 1.35rem; color: var(--agm-muted); }
.agm-standards a { color: var(--agm-teal); text-decoration: underline; }

.agm-readnext { margin: 56px 0 72px; }
.agm-readnext .gh-container-inner { padding-top: 28px; border-top: 2px solid var(--agm-rule-strong); }

/* Feed cards on tag/author pages */
.gh-card-tag { color: var(--agm-coral-text); letter-spacing: .1em; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .agm-front { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .agm-brief { grid-column: 1 / -1; margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
    .agm-brief > .agm-label, .agm-brief-title, .agm-brief-text { grid-column: 1; }
    .agm-brief-list { grid-column: 2; grid-row: 1 / span 3; }
    .agm-brief .gh-form, .agm-brief-fine { grid-column: 1 / -1; }
    .agm-section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .agm-edition { margin-bottom: 18px; }
    .agm-edition-motto { display: none; }
    .agm-front { grid-template-columns: minmax(0, 1fr); }
    .agm-front-side { margin-top: 28px; padding: 22px 0 0; border-left: 0; border-top: 2px solid var(--agm-rule-strong); }
    .agm-brief { display: block; margin-top: 28px; }
    .agm-card-lead .agm-card-media { margin-left: calc(-1 * var(--gap, 20px)); margin-right: calc(-1 * var(--gap, 20px)); }
    .agm-live { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; margin-left: calc(-1 * var(--gap, 20px)); margin-right: calc(-1 * var(--gap, 20px)); }
    .agm-live-grid dd { font-size: 2.8rem; }
    .agm-section-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .agm-card-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
    .agm-card-grid .agm-card-media { margin: 0; aspect-ratio: 1 / 1; }
    .agm-card-grid .agm-card-title { font-size: 1.9rem; }
    .agm-card-grid .agm-card-dek { display: none; }
    .agm-card-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
    .agm-card-row .agm-card-media { aspect-ratio: 1 / 1; }
    .agm-card-row .agm-card-title { font-size: 1.9rem; }
    .agm-card-row .agm-card-dek { display: none; }
    .agm-cover { padding: 8%; }
    .agm-card-grid .agm-cover-kicker, .agm-card-grid .agm-cover-brand, .agm-card-row .agm-cover-kicker, .agm-card-row .agm-cover-brand { display: none; }
    .agm-card-grid .agm-cover-mark, .agm-card-row .agm-cover-mark { width: 52%; transform: translate(-50%, -50%); }
}

/* Footer breathing room on the teal band */
.gh-footer.has-accent-color { padding-top: 80px; }
.gh-footer-signup { margin-bottom: 80px; }
.gh-footer-bar { margin-bottom: 56px; }

/* Small feed cards: keep the fallback art to the mark only */
.gh-card-image.agm-fallback .agm-cover-kicker,
.gh-card-image.agm-fallback .agm-cover-brand { display: none; }
.gh-card-image.agm-fallback .agm-cover-mark { width: 40%; transform: translate(-50%, -50%); }

/* ---------- Type: Fraunces headlines, Newsreader reading text (both SIL OFL) ---------- */
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
:root {
    --font-serif: "Fraunces", Georgia, Times, serif;
    --gh-font-heading: "Fraunces", Georgia, Times, serif;
    --gh-font-body: "Newsreader", Georgia, Times, serif;
}
.is-title,
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    font-family: "Fraunces", Georgia, Times, serif !important;
    font-weight: 620 !important;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 30, "WONK" 0;
    letter-spacing: -.005em;
}
.agm-card-lead .agm-card-title,
.gh-article-title,
.agm-live-title,
.gh-footer-signup-header,
.agm-section-title,
.agm-brief-title { letter-spacing: -.018em; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0; }
.gh-button, .gh-form-input, .agm-brief-list, .agm-brief-fine { font-family: var(--font-sans); }
.is-body,
.gh-content,
.agm-card-dek,
.agm-short .gh-article-excerpt {
    font-family: "Newsreader", Georgia, Times, serif;
    font-variation-settings: "opsz" 16;
}
.agm-card-dek { font-size: 1.7rem; }
.gh-article .gh-article-tag { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Newsreader runs small; size reading text up so it matches the old optical size */
.gh-content { font-size: 2.05rem; line-height: 1.6; }
@media (max-width: 767px) { .gh-content { font-size: 1.95rem; } }
.gh-content h2 { font-size: 2.8rem; line-height: 1.15; letter-spacing: -.005em; }
.gh-content h3 { font-size: 2.2rem; line-height: 1.2; }
@media (max-width: 767px) { .gh-content h2 { font-size: 2.4rem; } .gh-content h3 { font-size: 2rem; } }
