/* ==========================================================================
   GigHub News
   Magazine layout in the shape of the tagDiv Newspaper front page, wearing
   the GigHub brand: the logo blue and red, Futura/Jost type, square corners
   everywhere. Left to right throughout.
   ========================================================================== */

:root {
    --brand-red: #a91e38;
    --brand-blue: #254f83;

    --ink: #16233d;
    --body: #2c3242;
    --meta: #8a8f9c;
    --line: #e4e7ee;
    --line-strong: #16233d;
    --page-bg: #ffffff;
    --shade: #f6f7f9;
    --dark: #14151a;
    --dark-alt: #1c1e25;

    --accent: var(--brand-red);
    --link: var(--brand-blue);

    --font: Futura, 'Futura PT', 'Futura Std', Jost, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --page: 1200px;
    --gutter: 20px;
    --col-gap: 40px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--body);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    direction: ltr;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; color: var(--ink); margin: 0 0 12px; line-height: 1.22; }
p { margin: 0 0 16px; }

.container {
    width: 100%;
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* -------------------------------------------------------------- masthead */

.masthead {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.masthead-logo { display: inline-flex; align-items: center; gap: 12px; }
.masthead-logo img { width: 160px; height: auto; }
.masthead-logo .kicker {
    border-left: 1px solid var(--line);
    padding-left: 12px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--meta);
}
.masthead-promo {
    flex: 0 1 470px;
    background: var(--dark);
    color: #fff;
    padding: 8px 10px 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-image: linear-gradient(120deg, #16233d 0%, #a91e38 130%);
}
.masthead-promo p { margin: 0; font-size: 12px; line-height: 1.4; color: #e6e9f1; }
.masthead-promo .btn-sm { padding: 6px 12px; font-size: 11px; white-space: nowrap; }
.masthead-promo strong { display: block; font-size: 15px; color: #fff; letter-spacing: 0.01em; }

/* ------------------------------------------------------------ main nav */

.mainnav {
    background: #fff;
    border-bottom: 3px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 40;
}
.mainnav-inner { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.mainnav-list {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mainnav-list::-webkit-scrollbar { display: none; }
.mainnav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 52px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.mainnav-list > li > a:hover { color: var(--accent); }
.mainnav-list > li > a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.mainnav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }

.mainnav-tools { position: relative; }
.icon-btn.is-open { border-color: var(--ink); background: var(--ink); color: #fff; }

/* The search panel hangs off the magnifier rather than running the width of
   the page: same shape as the rest of the furniture, square and bordered. */
.navsearch {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 330px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(22, 35, 61, 0.14);
    padding: 20px;
    z-index: 50;
}
.navsearch::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.navsearch form { display: grid; gap: 16px; }
.navsearch input[type="search"] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 8px 2px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
}
.navsearch input[type="search"]:focus { outline: 0; border-bottom-color: var(--accent); }
.navsearch input[type="search"]::placeholder { color: var(--meta); }
.navsearch button {
    justify-self: start;
    border: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 20px;
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    cursor: pointer;
}
.navsearch button:hover { background: var(--accent); }

/* --------------------------------------------------------------- ticker */

.ticker {
    --ticker-h: 30px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.ticker-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: var(--ticker-h);
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 14px;
    white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; min-width: 0; }
.ticker-item {
    display: none;
    margin: 0;
    font-size: 14px;
    line-height: var(--ticker-h);
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticker-item.is-current { display: block; animation: ticker-next 0.4s ease both; }
.ticker-item a:hover { color: var(--accent); }
.ticker-nav { display: flex; gap: 4px; }
.ticker-nav button {
    width: var(--ticker-h); height: var(--ticker-h);
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}
.ticker-nav button:hover { border-color: var(--ink); }

/* Opening move, once per visit: a red bar sweeps the full width, draws back
   into the label, then the headline slides in. An inline script beside the
   markup adds .no-intro on later page views before anything is painted. */
.ticker::before {
    content: '';
    position: absolute;
    z-index: 2;
    left: 0;
    top: 50%;
    height: var(--ticker-h);
    margin-top: calc(var(--ticker-h) / -2);
    width: 0;
    background: var(--accent);
    animation: ticker-sweep 1s cubic-bezier(0.7, 0, 0.3, 1) both;
    pointer-events: none;
}
.ticker .ticker-track { animation: ticker-in 0.5s ease 0.85s both; }
.ticker .ticker-nav { animation: ticker-fade 0.4s ease 1s both; }
.ticker.no-intro::before { display: none; }
.ticker.no-intro .ticker-track,
.ticker.no-intro .ticker-nav { animation: none; }

@keyframes ticker-sweep {
    0%   { width: 0; }
    45%  { width: 100%; }
    100% { width: 0; }
}
@keyframes ticker-in {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
}
@keyframes ticker-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ticker-next {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ticker::before { display: none; }
    .ticker .ticker-track, .ticker .ticker-nav, .ticker-item.is-current { animation: none; }
}

/* ----------------------------------------------------------- lead mosaic */

.mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin: 24px 0 36px;
}
.mosaic-side { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.mosaic-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.tile {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--dark);
    min-height: 220px;
}
.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.tile:hover img { transform: scale(1.04); }
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,12,18,0.88) 0%, rgba(10,12,18,0.35) 45%, rgba(10,12,18,0) 75%);
}
.tile-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 20px;
    color: #fff;
}
.tile-title {
    color: #fff;
    margin: 0 0 8px;
    font-weight: 600;
    line-height: 1.24;
}
.tile-lead { min-height: 460px; }
.tile-lead .tile-title { font-size: 30px; }
.tile-top { min-height: 228px; }
.tile-top .tile-title { font-size: 21px; }
.tile-small { min-height: 228px; }
.tile-small .tile-title { font-size: 16px; }
.tile-meta { font-size: 12px; color: rgba(255,255,255,0.78); }
.tile-meta strong { color: #fff; font-weight: 600; }

.cat-badge {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 9px;
    margin-bottom: 10px;
}
.cat-badge:hover { color: #fff; opacity: 0.9; }
.tile .cat-badge { position: relative; }

/* ---------------------------------------------------------- page layout */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--col-gap);
    padding-bottom: 50px;
}
.layout-wide { grid-template-columns: minmax(0, 1fr); }

/* Both columns ride along as the page scrolls: the longer one scrolls, the
   shorter one holds in view, and the two finish together above the footer.
   news.js sets each column's top so a tall column still shows its end. */
@media (min-width: 1081px) {
    .layout { align-items: start; }
    .layout > main,
    .layout > .sidebar { position: sticky; top: 75px; }
}

/* --------------------------------------------------------------- module */

.module { margin-bottom: 42px; }
.module-head {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 22px;
}
.module-head h2, .module-head .module-title {
    margin: 0 0 -2px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 16px;
}
.module-head .module-more {
    align-self: center;
    margin-left: auto;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--meta);
}
.module-head .module-more:hover { color: var(--accent); }

/* Story cards ------------------------------------------------------------ */

.card-grid { display: grid; gap: 28px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-thumb { position: relative; display: block; overflow: hidden; background: var(--shade); }
.card-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s ease; }
.card-thumb:hover img { transform: scale(1.04); }
.card-thumb .cat-badge { position: absolute; left: 0; bottom: 0; margin: 0; }

.card-title { font-size: 19px; margin: 14px 0 8px; }
.card-title a:hover { color: var(--accent); }
.card-grid.cols-3 .card-title { font-size: 16px; }
.card-excerpt { color: var(--body); font-size: 14px; margin: 0; }

.meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--meta);
    margin-bottom: 10px;
}
.meta .author { color: var(--ink); font-weight: 600; }
.meta .dot { color: var(--line); }
.meta .comments {
    background: var(--ink);
    color: #fff;
    padding: 1px 7px;
    font-size: 11px;
}

/* List rows (thumbnail beside a headline) */

.post-list { display: grid; gap: 18px; }

.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.comment-list li { font-size: 14px; line-height: 1.5; color: var(--meta); }
.comment-list .comment-who { font-weight: 600; color: var(--ink); }
.comment-list a { color: var(--ink); font-style: italic; }
.comment-list a:hover { color: var(--accent); }
.comment-list p { margin: 4px 0 0; color: var(--ink); }
.post-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; align-items: start; }
.post-row .card-thumb img { aspect-ratio: 4 / 3; }
.post-row h3 { font-size: 15px; margin: 0 0 6px; line-height: 1.35; }
.post-row .meta { margin: 0; }
.post-row-lg { grid-template-columns: 140px minmax(0, 1fr); }
.post-row-lg h3 { font-size: 17px; }

/* Split module: one big story beside a list */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.split-list { display: grid; gap: 16px; align-content: start; }

/* Overlay strip of three */

.overlay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.overlay-grid .tile { min-height: 260px; }
.overlay-grid .tile-title { font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ------------------------------------------------------------- sidebar */

.sidebar { display: grid; gap: 36px; align-content: start; }
.widget-head {
    display: flex;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 18px;
}
.widget-head h3 {
    margin: 0 0 -2px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 14px;
}

.social-counts { display: grid; gap: 8px; }
.social-count {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    padding: 10px 12px;
}
.social-count .badge {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
}
.social-count .badge svg { width: 16px; height: 16px; fill: currentColor; }
.social-count .figure { display: block; font-weight: 700; color: var(--ink); }
.social-count .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--meta); }
.social-count .cta { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--meta); }

.promo-box {
    background: linear-gradient(140deg, #254f83 0%, #a91e38 120%);
    color: #fff;
    padding: 30px 24px;
    text-align: center;
}
.promo-box h4 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.promo-box p { font-size: 13px; color: rgba(255,255,255,0.85); }
.promo-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta); text-align: center; margin-bottom: 8px; }

.newsletter-box { border: 1px solid var(--line); padding: 22px; background: var(--shade); }
.newsletter-box p { font-size: 13px; color: var(--body); }
.newsletter-form { display: flex; }
.newsletter-form input {
    flex: 1; min-width: 0;
    border: 1px solid var(--line);
    background: #fff;
    padding: 11px 12px;
    font: inherit;
    font-size: 14px;
}
.newsletter-form button {
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 0 18px;
    font: inherit;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.newsletter-form button:hover { background: var(--brand-blue); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
    border: 1px solid var(--line);
    padding: 5px 10px;
    font-size: 12px;
    color: var(--body);
}
.tag-cloud a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.cat-list li:last-child { border-bottom: 0; }
.cat-list .count { color: var(--meta); font-size: 12px; }
.cat-list .swatch { width: 3px; align-self: stretch; background: var(--ink); margin-right: 10px; }
.cat-list a { display: flex; align-items: center; flex: 1; }

/* -------------------------------------------------------------- article */

.page-head { padding: 28px 0 6px; }
.crumbs { font-size: 12px; color: var(--meta); margin-bottom: 14px; letter-spacing: 0.04em; }
.crumbs a:hover { color: var(--accent); }
.page-title { font-size: 34px; margin-bottom: 10px; }
.page-intro { color: var(--meta); max-width: 700px; }

.entry-title { font-size: 40px; line-height: 1.14; margin-bottom: 14px; }
.entry-standfirst { font-size: 19px; color: var(--body); margin-bottom: 18px; line-height: 1.5; }
.entry-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--meta);
    margin-bottom: 24px;
}
.entry-meta img.avatar { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.entry-figure { margin: 0 0 24px; }
/* Portrait photographs would otherwise run the length of the screen before
   the first paragraph, so the lead picture is cropped to a fixed band. */
.entry-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.entry-figure figcaption { font-size: 12px; color: var(--meta); padding-top: 8px; }
.entry-body { font-size: 17px; line-height: 1.72; color: var(--body); }
.entry-body h2 { font-size: 24px; margin: 32px 0 12px; }
.entry-body blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--accent);
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink);
}
.entry-body blockquote p { margin: 0; }
.entry-body a { color: var(--link); text-decoration: underline; }
/* A picture dropped into the body from the newsroom toolbar — see the
   ![caption](file) syntax in includes/functions.php's body_to_html(). */
.entry-body figure.body-image { margin: 28px 0; }
.entry-body figure.body-image img { width: 100%; display: block; }
.entry-body figure.body-image figcaption { font-size: 13px; color: var(--meta); padding-top: 8px; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 30px 0; }
.entry-tags .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--meta); margin-right: 6px; }

.author-card { display: flex; gap: 18px; border: 1px solid var(--line); padding: 22px; margin-bottom: 40px; }
.author-card img { width: 80px; height: 80px; object-fit: cover; }
.author-card h4 { margin-bottom: 4px; }
.author-card .role { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.author-card p { font-size: 14px; margin: 0; }

.comment-list { display: grid; gap: 18px; margin-bottom: 30px; }
.comment { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.comment:last-child { border-bottom: 0; }
.comment h4 { margin-bottom: 4px; font-size: 15px; }
.comment .meta { margin-bottom: 8px; }
.comment p { margin: 0; font-size: 14px; }

/* ----------------------------------------------------------------- forms */

.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="number"], input[type="datetime-local"], input[type="file"],
select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    padding: 11px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-blue); outline-offset: -2px; }

.btn {
    display: inline-block;
    border: 1px solid transparent;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    font: inherit;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.btn:hover { background: var(--brand-blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

.notice { padding: 14px 16px; border-left: 3px solid var(--brand-blue); background: var(--shade); margin-bottom: 22px; font-size: 14px; }
.notice.is-ok { border-color: #1f6f54; }
.notice.is-error { border-color: var(--brand-red); }

/* ------------------------------------------------------------ pagination */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 40px; flex-wrap: wrap; }
.pager-count { font-size: 13px; color: var(--meta); }
.pager-links { display: flex; gap: 4px; align-items: center; }
.pager-num, .pager-step {
    min-width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    font-size: 13px;
    padding: 0 12px;
    color: var(--ink);
}
.pager-num:hover, .pager-step:hover { border-color: var(--ink); }
.pager-num.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-gap { padding: 0 6px; color: var(--meta); }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: auto; background: var(--dark); color: #b9bec9; }
.footer-top { padding: 48px 0 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-cols h4 { color: #fff; font-size: 17px; margin-bottom: 20px; }
.footer-cols .post-row h3 { font-size: 14px; }
.footer-cols .post-row h3 a { color: #fff; }
.footer-cols .post-row h3 a:hover { color: var(--brand-red); }
.footer-cols .meta { color: #7f8695; }
.footer-cols .cat-list li { border-bottom-color: rgba(255,255,255,0.08); color: #cdd2dc; }

.footer-mid { padding: 34px 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 34px; }
.footer-brand { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.footer-logo { width: 210px; }
.footer-kicker {
    margin: 12px 0 0;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7f8695;
}
.footer-brand p { font-size: 14px; color: #b9bec9; }
.footer-brand a { color: #8fb7ea; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dark-alt);
    color: #fff;
}
.footer-social a:hover { background: var(--brand-red); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    font-size: 13px;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 36px 40px; }
}

@media (max-width: 900px) {
    .masthead-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .masthead-promo { flex: 1 1 auto; width: 100%; }
    .mosaic { grid-template-columns: minmax(0, 1fr); }
    .tile-lead { min-height: 340px; }
    .tile-lead .tile-title { font-size: 24px; }
    .split { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .footer-brand { grid-template-columns: minmax(0, 1fr); }
    .entry-title { font-size: 30px; }
    .page-title { font-size: 26px; }
}

@media (max-width: 680px) {
    .card-grid.cols-2, .card-grid.cols-3, .overlay-grid, .form-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
    .sidebar { grid-template-columns: minmax(0, 1fr); }
    .mosaic-pair { grid-template-columns: minmax(0, 1fr); }
    .entry-body { font-size: 16px; }
    .post-row { grid-template-columns: 88px minmax(0, 1fr); }
    /* The headline needs the full width on a phone, so the label sits above
       it and the arrows drop away rather than squeezing the line. */
    .ticker { flex-wrap: wrap; gap: 10px; }
    .ticker::before { display: none; }
    .ticker-label { width: 100%; justify-content: center; }
    .ticker-nav { display: none; }
}
