/*

Magazine page — additive layer over the Spectrum kit (Tooplate 2163).
Same tokens, same 2px-ink-border language, no overrides of the kit's system.

*/

.mag-hero {
    padding: 132px 0 42px;
    border-bottom: 2px solid var(--ink);
}

.mag-eyebrow {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
}

.mag-hero h1 {
    font-weight: 700;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    max-width: 15ch;
}

.mag-hero h1 em {
    font-style: normal;
    color: var(--magenta);
}

.mag-lede {
    margin-top: 22px;
    max-width: 660px;
    font-size: 1.05rem;
    color: #444;
}

.mag-body {
    padding: 44px 0 30px;
}

.mag-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.mag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mag-chip {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: 30px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background 0.12s linear, color 0.12s linear, border-color 0.12s linear;
}

.mag-chip:hover {
    background: var(--green);
}

.mag-chip.active {
    background: var(--ink);
    color: var(--white);
}

.mag-chip .n {
    opacity: 0.62;
    margin-left: 6px;
}

.mag-count {
    font-size: 0.88rem;
    color: #555;
    font-weight: 500;
}

.mag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
    /* One height for every box in the grid, so the mailing-list card matches its
       neighbours exactly instead of sitting 3px short. Rows still grow if an excerpt
       is unusually long - this is a floor, not a clamp. */
    --mag-card-h: 295px;
}

.mag-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: var(--mag-card-h);
    border: 2px solid var(--ink);
    background: var(--white);
    padding: 22px 22px 24px;
    transition: background 0.14s linear, color 0.14s linear;
}

.mag-card[hidden] {
    display: none;
}

.mag-card:hover {
    background: var(--green);
}

.mag-card:nth-child(3n+2):hover {
    background: var(--orange);
    color: var(--white);
}

.mag-card:nth-child(3n):hover {
    background: var(--magenta);
    color: var(--white);
}

.mag-topic {
    align-self: flex-start;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 2px solid currentColor;
    border-radius: 30px;
    padding: 4px 11px;
}

.mag-card h3 {
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.mag-card h3 a {
    text-decoration: none;
}

.mag-card h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mag-meta {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #555;
}

.mag-card:hover .mag-meta,
.mag-card:hover .mag-excerpt {
    color: inherit;
    opacity: 0.86;
}

.mag-excerpt {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #444;
}

.mag-more {
    display: block;
    margin: 34px auto 0;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--ink);
    color: var(--white);
    border: none;
    border-radius: 40px;
    padding: 15px 38px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mag-more:hover {
    background: var(--orange);
}

.mag-more[hidden] {
    display: none;
}

.mag-cap {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.mag-sources {
    border-top: 2px solid var(--ink);
    padding: 46px 0 70px;
}

.mag-sources h2 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.mag-sources p {
    font-size: 0.92rem;
    color: #555;
    max-width: 700px;
    margin-bottom: 18px;
}

/* ---------- mailing-list card: 3rd grid slot, sticky ---------- */

.mag-news {
    display: flex;
}

@media (min-width: 860px) {
    /* Spanning rows gives the sticky card somewhere to travel. A span fills its cells
       exactly, so the feed around it packs tightly with no holes. Below this width the
       grid is a single column, where a tall span would leave a gap and a pinned card
       would sit on top of the feed - so there it is simply the 3rd card in the flow. */
    .mag-news {
        grid-row: span 3;
    }
}

.mag-news-card {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    width: 100%;
    margin: 0;
    min-height: var(--mag-card-h);
    background: var(--magenta);
    /* Text reversed to white. Measured against this magenta that is 3.14:1 - fine for
       the 21.6px bold heading, below AA for the body copy and the label. */
    color: var(--white);
    border: 2px solid var(--ink);
    padding: 26px 24px 28px;
}

.mag-news-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.75;
}

.mag-news-card h3 {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    margin: 10px 0 8px;
}

.mag-news-copy {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.mag-news-label {
    display: block;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.mag-news-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mag-news-row input {
    flex: 1 1 150px;
    min-width: 0;
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 11px 12px;
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    border-radius: 0;
}

.mag-news-row button {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--ink);
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mag-news-row button:hover {
    background: var(--white);
    color: var(--ink);
}

.mag-news-row input:focus-visible,
.mag-news-row button:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.mag-news-hp {
    /* The honeypot: reachable by a form-filler, invisible to a person. Off-screen
       rather than display:none, because the crude bots skip a hidden field. */
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mag-news-msg {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 12px;
    min-height: 1.2em;
}

.mag-news-msg.err,
.mag-news-msg.ok {
    font-weight: 600;
}

.mag-news-msg.ok {
    /* reversed too: outlined in white rather than a white fill, so the confirmation
       stays readable now the card's text is white */
    background: transparent;
    padding: 8px 10px;
    border: 2px solid var(--white);
}

.mag-source-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
}

.mag-source-list li {
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--ink);
    border-radius: 30px;
    padding: 6px 14px;
}

.mag-source-list li.failed {
    border-color: var(--orange);
    color: #8a2c00;
}

@media (max-width: 900px) {
    .mag-hero {
        padding: 112px 0 34px;
    }
    .mag-grid {
        grid-template-columns: 1fr;
    }
}

/* 'Our take' pointer from the reading list to our own analysis. Deliberately quiet:
   the magazine is other people's work, and this is one line pointing at ours. */
.mag-ourtake {
    margin-top: 16px;
    padding: 12px 16px;
    border-left: 4px solid var(--orange);
    background: #fffbe8;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 46rem;
}

/* ---------------------------------------------------------------------------
   From our desk: our own analysis, above the reading list.
   Full grid width (1 / -1) so it reads as a feature and leaves the feed's column
   flow - and the sign-up card's 3-row span - exactly where it was. Ink band, because
   this card is ours and the feed cards are other publishers'; the orange kicker is
   the kit's own accent, already used for hover on the cards below.
   --------------------------------------------------------------------------- */
.mag-editorial {
    grid-column: 1 / -1;
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--ink);
    padding: 28px 32px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.mag-ed-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--orange);
}

.mag-editorial h3 {
    margin: 0 0 12px;
    font-size: 27px;
    line-height: 1.18;
    max-width: 900px;
}

.mag-editorial h3 a { color: var(--white); text-decoration: none; }
.mag-editorial h3 a:hover { color: var(--orange); }

.mag-ed-note {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #cccccc;
    max-width: 760px;
}

.mag-ed-cta { margin: 0; }

.mag-ed-cta a {
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 2px;
}

.mag-ed-cta a:hover { color: var(--orange); }

@media (max-width: 860px) {
    .mag-editorial { padding: 22px 20px; }
    .mag-editorial h3 { font-size: 21px; }
    .mag-ed-note { font-size: 14px; }
}


/* ---- the point-form synopsis on a card (added 12 Oct 2026) ------------------------------
   Three facts read out of the article itself, printed where the publisher's opening line
   used to sit. Deliberately the same size and colour as .mag-excerpt so a card with a
   synopsis carries the same weight as one without - only the bullets change. */
.mag-points {
    margin: 0;
    padding: 0 0 0 1.05em;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
    list-style: disc;
}

.mag-points li { margin: 0 0 5px; }
.mag-points li:last-child { margin-bottom: 0; }
.mag-points li::marker { color: #8a8a8a; }

.mag-card:hover .mag-points { color: inherit; opacity: 0.86; }

@media (max-width: 860px) {
    .mag-points { font-size: 0.9rem; }
}
