/* =====================================================================
   Media Hub — public press room (media-hub.html)
   Wide, mobile-first layout for the public portal. Visual reference:
   docs/media-hub-mockup.html — colours come from the branding CSS
   variables applied by public.js, never hardcoded.
   ===================================================================== */

:root {
    /* Brand-derived palette: everything is a shade of the branding colours,
       so a re-branded installation follows automatically. */
    --mh-brand: var(--brand-color, #0f5d8c);
    --mh-brand-deep: color-mix(in srgb, var(--brand-color, #0f5d8c) 78%, #000);
    --mh-accent: var(--brand-color, #0f5d8c);
    --mh-new: var(--success-color, #28a745);
    --mh-paper: #f2f6f8;
    --mh-card: #ffffff;
    --mh-ink: var(--text-color, #14293a);
    --mh-ink-soft: #5a7184;
    --mh-line: var(--border-color, #d8e2e8);
    --mh-chip: #e7eff4;
    --mh-hdr-h: 62px;
}

/* This page scrolls on the VIEWPORT.
   styles.css (html,body{height:100%}) plus public.css (body{overflow-y:auto
   !important}) turn the BODY into its own scroll box: window.scrollY would stay
   frozen at 0, the window scroll event would never fire, and with it infinite
   scroll, the scroll restore on Back and the no-jump merge of the live blog.
   media-hub.css is loaded by this page only, so this override is local. */
html {
    height: auto;
    /* The page ground: on html (not body) so the fixed watermark pseudo
       element (z-index:-1) can sit between the ground and the content */
    background: var(--mh-paper);
}

body.mh-body {
    height: auto;
    overflow-y: visible !important;
    background: transparent;
    /* Sticky footer: with little content the footer still reaches the bottom
       of the viewport (the active view below grows to fill the gap) */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--mh-ink);
    font-size: 15px;
    line-height: 1.55;
}

body.mh-body a {
    color: var(--mh-brand);
}

/* Competition logo as a near-transparent watermark, CENTRED in the content
   area (the active view spans exactly from the filter bar to the footer thanks
   to the sticky-footer flex layout): the air above and below the logo is
   symmetric by construction, on every viewport. The URL arrives at runtime
   (validate-token) via the --mh-watermark variable; no variable, no watermark. */
.mh-view.on::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--mh-watermark, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(48vw, 520px);
    opacity: 0.05;
    pointer-events: none;
}

.mh-body button {
    font: inherit;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* ============= Boot / error states ============= */
.mh-boot {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mh-ink-soft);
    font-size: 14px;
}

.mh-error-card {
    text-align: center;
}

.mh-error-card h1 {
    font-size: 19px;
    margin-bottom: 10px;
}

.mh-error-card p {
    font-size: 14px;
    color: var(--mh-ink-soft);
    line-height: 1.6;
}

/* ============= Header (sticky) ============= */
.mh-hdr {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--mh-brand-deep);
    color: #fff;
}

.mh-hdr-in {
    max-width: 1180px;
    margin: 0 auto;
    /* Slimmer vertical padding compensates the bigger logo: the header keeps
       its 62px total height (--mh-hdr-h drives the filter bar sticky offset) */
    padding: 8px 20px;
    /* 3 columns: logo | centered title | user — the title sits in the true
       middle of the header regardless of how wide the side blocks are */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.mh-hdr .page-logos {
    justify-self: start;
}

.mh-hdr .page-logos {
    flex: 0 0 auto;
    margin: 0;
    justify-content: flex-start !important;
}

.mh-hdr .page-logos img {
    max-height: 46px;
    max-width: 150px;
    width: auto;
    height: auto;
    display: block;
}

/* Left group: competition identity (logo + name) */
.mh-hdr-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mh-hdr-comp {
    font-size: 14px;
    font-weight: 600;
    opacity: .85;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* App title, dead centre of the header */
.mh-hdr-app {
    justify-self: center;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .4px;
    white-space: nowrap;
}

.mh-hdr-user {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mh-who {
    text-align: right;
    line-height: 1.25;
    min-width: 0;
}

.mh-who b {
    font-size: 13.5px;
    font-weight: 600;
    display: block;
}

.mh-who span {
    font-size: 11.5px;
    opacity: .75;
}

/* Logo and title act as the home of the press room */
.mh-home {
    cursor: pointer;
}

.mh-home:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
    border-radius: 3px;
}

/* ---------- Invite a colleague (mailto to the press office) ---------- */
/* Scoped to the header AND more specific than `body.mh-body a`, which paints
   every link in the brand blue: inheriting that put blue text on the blue
   header and the button was unreadable. */
.mh-hdr .mh-invite,
.mh-hdr .mh-invite:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 4px;
    /* A light fill lifts it off the deep-blue bar: an outline alone reads as
       decoration, not as something to click. */
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.mh-hdr .mh-invite svg {
    /* currentColor, so the envelope never drifts from the label.
       An svg clips to its own box by default: at 15px inside a 16-unit viewBox
       the outer stroke of the envelope fell on a fractional pixel and the edge
       came out shaved (worse under Windows display scaling). A whole 16px box
       plus overflow:visible removes the rounding from the equation. */
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    overflow: visible;
}

.mh-hdr .mh-invite:hover,
.mh-hdr .mh-invite:focus {
    background: rgba(255, 255, 255, .3);
    border-color: #fff;
    color: #fff;
}

.mh-hdr .mh-invite:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ---------- Language flags (they replace the two language combos) ---------- */
.mh-flags {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Specific enough to beat .mh-body button { font: inherit } and friends */
.mh-flags .mh-flag {
    width: 30px;
    height: 21px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 3px;
    background: none;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    opacity: .55;
    transition: opacity .15s, transform .15s, box-shadow .15s;
}

.mh-flags .mh-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.mh-flags .mh-flag:hover {
    opacity: .85;
}

/* The active language is simply the lit flag: full colour, no frame
   (Marco, 2026-08-17: the white ring was too heavy) */
.mh-flags .mh-flag.on {
    opacity: 1;
}

.mh-flags .mh-flag:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* "Powered by" mirrored in the header */
.mh-hdr-powered {
    display: flex;
    align-items: center;
}

/* public.js injects the same block used in the footer, which carries a
   margin-top meant for that position: in the header it pushed the logo
   below the vertical centre. */
.mh-hdr-powered .page-powered-by {
    margin: 0;
}

/* height, NOT max-height: styles.css sets an explicit height:20px on the
   powered-by mark, and a max-height can only shrink an image, never enlarge it —
   with max-height alone the logo stayed at 20px. The source is 349x101, so 28px
   is still a downscale: no blur. */
.mh-hdr-powered img {
    height: 28px;
    max-height: none;
    width: auto;
    display: block;
    border-radius: 4px;
}

.mh-hdr-powered .page-powered-by-text span {
    display: none;          /* the header has room for the mark, not the words */
}

.mh-lang {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12.5px;
}

.mh-lang option {
    color: var(--mh-ink);
}

/* ============= Filter bar ============= */
.mh-fbar {
    background: var(--mh-card);
    border-bottom: 1px solid var(--mh-line);
    position: sticky;
    top: var(--mh-hdr-h);
    z-index: 30;
}

/* Same width and padding as .mh-hdr-in: header and filter bar line up exactly */
.mh-fbar-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 6px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mh-fbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mh-search {
    flex: 1 1 240px;
    min-width: 180px;
    position: relative;
}

.mh-search input {
    width: 100%;
    height: 34px;
    box-sizing: border-box;
    padding: 0 10px 0 32px;
    border: 1px solid var(--mh-line);
    border-radius: 5px;
    font: inherit;
    font-size: 12.5px;
    /* White like every other control in the filter row */
    background: var(--mh-card);
    color: var(--mh-ink);
}

.mh-search svg {
    position: absolute;
    left: 9px;
    top: 9px;
    opacity: .45;
    pointer-events: none;
}

/* Section menu: a full-width segmented bar — every tab takes an equal share */
.mh-tabs {
    display: flex;
    gap: 6px;
    width: 100%;
    background: var(--mh-paper);
    border: 1px solid var(--mh-line);
    border-radius: 8px;
    padding: 4px;
}

/* .mh-tabs .mh-tab (not just .mh-tab): must out-rank ".mh-body button { font:
   inherit }", whose font shorthand would silently reset weight and size */
.mh-tabs .mh-tab {
    flex: 1 1 0;
    text-align: center;
    border: none;
    background: none;
    padding: 9px 8px;
    border-radius: 6px;
    font-size: 14.5px;
    /* Unselected items wear the header identity: same deep brand colour,
       same bold weight as the header title (Marco, 2026-08-15) */
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--mh-brand-deep);
    white-space: nowrap;
    transition: background .12s, color .12s;
}

.mh-tab:hover {
    background: var(--mh-chip);
    color: var(--mh-brand-deep);
}

.mh-tab.on {
    background: var(--mh-accent);
    color: #fff;
    box-shadow: 0 1px 4px rgba(15, 93, 140, .35);
}

.mh-fsel {
    height: 34px;
    box-sizing: border-box;
    border: 1px solid var(--mh-line);
    border-radius: 5px;
    padding: 0 8px;
    font: inherit;
    font-size: 12.5px;
    background: var(--mh-card);
    color: var(--mh-ink);
    /* The filters share the row evenly: they grow to fill it, and a long or
       short OPTION never changes the width (flex-basis wins over content) */
    flex: 1 1 150px;
    min-width: 130px;
    width: auto;
}

input.mh-fsel[type="date"] {
    flex: 1 1 140px;
    min-width: 130px;
}

.mh-count {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--mh-ink-soft);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Message bar (public.js MessageManager writes here) */
.mh-msgwrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.mh-msgwrap .public-message-bar {
    margin-top: 10px;
    position: static;
}

/* ============= Layout ============= */
.mh-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 60px;
}

.mh-view {
    display: none;
}

.mh-view.on {
    display: block;
    /* The active view absorbs the leftover height: the footer stays at the
       bottom of the viewport even when the feed is almost empty */
    flex: 1 0 auto;
    width: 100%;
    /* Containing block for the watermark pseudo element */
    position: relative;
}

.mh-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 18px;
    color: var(--mh-new);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mh-divider::before,
.mh-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mh-line);
}

.mh-divider.later {
    color: var(--mh-ink-soft);
    margin-top: 26px;
}

/* ============= Feed cards ============= */
.mh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.mh-card {
    background: var(--mh-card);
    border: 1px solid var(--mh-line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font: inherit;
    color: inherit;
    width: 100%;
}

.mh-card:hover {
    box-shadow: 0 6px 18px rgba(10, 58, 87, .14);
    transform: translateY(-2px);
}

.mh-card:focus-visible {
    outline: 3px solid var(--mh-accent);
    outline-offset: 2px;
}

.mh-ph {
    height: 170px;
    position: relative;
    background: var(--mh-chip);
    overflow: hidden;
}

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

.mh-ph .mh-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-ph .mh-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10, 58, 87, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-ph .mh-play svg {
    margin-left: 4px;
}

.mh-ph .mh-n {
    position: absolute;
    right: 10px;
    bottom: 8px;
    background: rgba(10, 58, 87, .62);
    color: #fff;
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
}

.mh-cbody {
    padding: 13px 15px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.mh-kicker {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--mh-brand);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mh-kicker .mh-new-flag {
    color: var(--mh-new);
}

.mh-ctitle {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.3;
}

.mh-cabs {
    font-size: 13.5px;
    color: var(--mh-ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mh-cmeta {
    margin-top: auto;
    font-size: 12px;
    color: var(--mh-ink-soft);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mh-cmeta b {
    color: var(--mh-ink);
    font-weight: 600;
}

.mh-empty {
    /* Sits right below the filter bar, above the centred watermark */
    padding: 0;
    text-align: center;
    color: var(--mh-ink-soft);
}

.mh-more {
    padding: 18px 0;
    text-align: center;
    color: var(--mh-ink-soft);
    font-size: 12.5px;
}

/* ============= Live blog timeline ============= */
.mh-blog {
    /* Full width of the content column, aligned with header and filter bar */
    max-width: none;
    margin: 0;
}

.mh-bday {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--mh-ink-soft);
    margin: 18px 0 10px;
}

.mh-bentry {
    background: var(--mh-card);
    border: 1px solid var(--mh-line);
    border-left: 3px solid var(--mh-accent);
    border-radius: 8px;
    padding: 13px 16px;
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
}

.mh-btime {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--mh-brand);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.mh-bdot {
    color: var(--mh-new);
    font-size: 9px;
    line-height: 1;
}

.mh-btags {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--mh-brand);
    margin-bottom: 3px;
}

.mh-btxt {
    font-size: 14px;
    line-height: 1.55;
    min-width: 0;
    word-break: break-word;
}

/* Floating "N new updates" prompt of the live blog: appears only when the
   reader is scrolled away from the top, so the timeline never jumps under them */
.mh-newbar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 45;
    background: var(--btn-primary-bg, var(--mh-brand));
    color: var(--btn-text-color, #fff);
    border: none;
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(10, 58, 87, .35);
    animation: mh-newbar-in .25s ease-out;
}

.mh-newbar:hover {
    background: var(--mh-brand-deep);
}

@keyframes mh-newbar-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============= Detail views ============= */
.mh-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--mh-line);
    background: var(--mh-card);
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--mh-brand);
    margin-bottom: 18px;
}

.mh-back:hover {
    background: var(--mh-chip);
}

.mh-art {
    max-width: 760px;
    margin: 0 auto;
    background: var(--mh-card);
    border: 1px solid var(--mh-line);
    border-radius: 8px;
    padding: 34px 40px 40px;
}

.mh-art .mh-kicker {
    margin-bottom: 10px;
}

.mh-art h1 {
    font-size: 29px;
    line-height: 1.22;
    font-weight: 700;
    margin-bottom: 10px;
}

.mh-meta {
    font-size: 12.5px;
    color: var(--mh-ink-soft);
}

.mh-art .mh-meta {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mh-line);
    margin-bottom: 20px;
}

.mh-cover {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
    display: block;
}

.mh-cap {
    font-size: 12px;
    color: var(--mh-ink-soft);
    margin-bottom: 20px;
}

.mh-body-html {
    font-size: 15px;
}

.mh-body-html p {
    margin-bottom: 14px;
}

.mh-body-html ul,
.mh-body-html ol {
    margin: 0 0 14px 22px;
}

.mh-body-html img {
    max-width: 100%;
    height: auto;
}

.mh-body-html table {
    max-width: 100%;
    border-collapse: collapse;
}

.mh-att {
    margin-top: 26px;
    border-top: 1px solid var(--mh-line);
    padding-top: 16px;
}

.mh-att h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--mh-ink-soft);
    margin-bottom: 12px;
    font-weight: 700;
}

.mh-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.mh-thumbs.wide {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.mh-thumb {
    height: 130px;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: none;
    padding: 0;
    background: var(--mh-chip);
}

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

.mh-thumb:hover,
.mh-thumb:focus-visible {
    outline: 3px solid var(--mh-accent);
    outline-offset: 1px;
}

.mh-gal-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mh-gal-head h1 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.mh-gal-head .mh-meta {
    margin-top: 4px;
}

.mh-btn {
    border: none;
    border-radius: 5px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mh-btn-p {
    background: var(--btn-primary-bg, var(--mh-brand));
    color: var(--btn-text-color, #fff);
}

.mh-btn-p:hover {
    background: var(--mh-brand-deep);
}

.mh-btn[disabled] {
    opacity: .6;
    cursor: default;
}

.mh-btn-dl {
    margin-left: auto;
}

.mh-player {
    max-width: 860px;
    margin: 0 auto;
}

.mh-player video {
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    background: #000;
    display: block;
}

.mh-vinfo {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 16px;
    flex-wrap: wrap;
}

.mh-vinfo h1 {
    font-size: 23px;
    font-weight: 700;
    margin: 4px 0 6px;
}

.mh-usage-note {
    font-size: 12px;
    color: var(--mh-ink-soft);
    margin-top: 14px;
}

/* Discipline shown next to a piece of content: a shortcut to the whole sport.
   Discreet by design - it must not read as a badge or steal the headline. */
.mh-dlink {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.mh-dlink:hover,
.mh-dlink:focus-visible {
    text-decoration: underline;
}

/* ---------- View switcher (grid / list) ---------- */
.mh-views {
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--mh-line);
    border-radius: 6px;
    overflow: hidden;
}

.mh-views .view-switcher-btn {
    background: var(--mh-card);
    border: none;
    padding: 5px 9px;
    line-height: 0;
    color: var(--mh-ink-soft);
    cursor: pointer;
}

.mh-views .view-switcher-btn.on {
    background: var(--mh-accent, var(--mh-brand));
    color: #fff;
}

/* ---------- List view ----------
   Same density as the live blog rows: a thin line, thumbnail on the left, title
   and a minimal meta on the right. Scanning fifty items must feel like reading a
   timeline, not like scrolling fifty cards. */
.mh-grid.mh-grid-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mh-grid.mh-grid-list .mh-card {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--mh-accent);
    border-radius: 8px;
}

.mh-grid.mh-grid-list .mh-ph {
    flex: 0 0 92px;
    height: 58px;
    min-height: 0;
    border-radius: 5px;
    overflow: hidden;
}

/* The overlays belong to the big cards: on a row they are noise */
.mh-grid.mh-grid-list .mh-ph .mh-n,
.mh-grid.mh-grid-list .mh-ph .mh-glyph {
    display: none;
}

.mh-grid.mh-grid-list .mh-cbody {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    gap: 2px;
}

.mh-grid.mh-grid-list .mh-ctitle {
    font-size: 14.5px;
    line-height: 1.25;
    /* One line: the row must not grow with the title */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The abstract and the tags are what makes a card tall: a row does without */
.mh-grid.mh-grid-list .mh-cabs,
.mh-grid.mh-grid-list .mh-tags {
    display: none;
}

.mh-grid.mh-grid-list .mh-kicker,
.mh-grid.mh-grid-list .mh-cmeta {
    margin: 0;
    font-size: 11.5px;
}

@media (max-width: 560px) {
    .mh-grid.mh-grid-list .mh-ph {
        flex-basis: 68px;
        height: 46px;
    }

    .mh-grid.mh-grid-list .mh-ctitle {
        font-size: 13.5px;
    }
}

/* ---------- Related posts (foot of a detail) ---------- */
.mh-related {
    max-width: 860px;
    margin: 22px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--mh-line);
}

.mh-related h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--mh-ink-soft);
    font-weight: 700;
    margin-bottom: 10px;
}

.mh-related-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--mh-line);
    border-left: 3px solid var(--mh-accent);
    border-radius: 6px;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
}

.mh-related-item:hover {
    background: var(--mh-chip);
}

.mh-related-kicker {
    flex: 0 0 auto;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--mh-ink-soft);
}

.mh-related-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 600;
}

/* ---------- BREAKING ----------
   The "no badges" rule of the design system governs the backoffice lists; on
   the public press room a breaking story must be visible across the page. */
.mh-breaking {
    display: inline-block;
    background: var(--error-color, #d32f2f);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .8px;
    padding: 2px 7px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Content tags: plain text with a # marker, never a filled badge. They read as
   metadata and only reveal themselves as links on hover (via .mh-dlink). */
.mh-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 8px;
}

.mh-tag {
    font-size: 12px;
    color: var(--mh-ink-soft);
}

.mh-tag::before {
    content: '#';
    opacity: .5;
    margin-right: 1px;
}

.mh-tag-more::before {
    content: '';
}

/* In a detail the chips close the page, so they get a separator */
.mh-tags.detail {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--mh-line);
}

/* ---------- Documents (DOCUMENT posts) ---------- */
/* A document pack has no picture of its own: the card falls back to a glyph
   instead of an empty grey box. */
.mh-ph.mh-ph-doc {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mh-ink-soft);
}

.mh-doc-head {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0 12px;
    border-top: 1px solid var(--mh-line);
    padding-top: 16px;
}

.mh-doc-head h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--mh-ink-soft);
    font-weight: 700;
}

.mh-doclist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mh-docrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--mh-line);
    border-radius: 6px;
}

.mh-docglyph {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 46px;
    color: var(--mh-ink-soft);
}

.mh-docext {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.mh-docinfo {
    flex: 1 1 auto;
    min-width: 0;
}

.mh-docinfo b {
    display: block;
    font-size: 14px;
    word-break: break-word;
}

.mh-doccredit {
    display: block;
    font-size: 12px;
    color: var(--mh-ink-soft);
    margin-top: 2px;
}

.mh-docsize {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--mh-ink-soft);
    white-space: nowrap;
}

@media (max-width: 560px) {
    .mh-docrow {
        flex-wrap: wrap;
    }

    .mh-docrow .mh-btn {
        margin-left: auto;
    }
}

/* ============= Lightbox ============= */
.mh-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(8, 25, 38, .93);
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.mh-lb.on {
    display: flex;
}

.mh-lb-img {
    max-width: min(880px, 88vw);
    max-height: 62vh;
    border-radius: 6px;
    object-fit: contain;
    touch-action: pan-y;
}

.mh-lb-cap {
    margin-top: 14px;
    text-align: center;
    max-width: 700px;
}

.mh-lb-cap b {
    font-size: 14.5px;
    font-weight: 600;
}

.mh-lb-cap div {
    font-size: 12.5px;
    opacity: .78;
    margin-top: 2px;
}

.mh-lb-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mh-lb-idx {
    font-size: 12.5px;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

.mh-lb-usage {
    margin-top: 14px;
    font-size: 11.5px;
    letter-spacing: .6px;
    text-transform: uppercase;
    opacity: .65;
    text-align: center;
}

.mh-lb-x {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    opacity: .8;
    line-height: 1;
}

.mh-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
}

.mh-lb-nav:hover {
    background: rgba(255, 255, 255, .25);
}

.mh-lb-prev {
    left: 22px;
}

.mh-lb-next {
    right: 22px;
}

.mh-foot {
    max-width: 1180px;
    margin: 0 auto;
    /* Breathing room above: keeps the watermark bottom clear of the footer */
    padding: 26px 20px 30px;
    font-size: 11.5px;
    color: var(--mh-ink-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* ============= Responsive (mobile-first requirement) ============= */
@media (max-width: 900px) {
    .mh-count {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    body.mh-body {
        font-size: 14.5px;
    }

    .mh-hdr-in {
        padding: 10px 14px;
        gap: 10px;
        /* Narrow screens: side columns shrink to content so the middle title
           gets the room and centers within the remaining space */
        grid-template-columns: auto 1fr auto;
    }

    .mh-hdr-app {
        font-size: 17px;
        /* A grid item is content-sized: without these it overflows its column
           and lands on top of the neighbours instead of being truncated. */
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Phone: the competition name is dropped altogether (Marco, 2026-08-14).
       Clamped to 90px it still collided with the centred title at 360-390px,
       and the competition is already implied by the logo. */
    .mh-hdr-comp {
        display: none;
    }

    /* Phone: the menu row scrolls horizontally (6 tabs never fit at 360px),
       the filter row wraps with the search full width and the selects paired */
    .mh-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mh-tab {
        flex: 1 0 auto;
        padding: 8px 12px;
        font-size: 13px;
    }

    .mh-fbar-filters {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .mh-search {
        flex: 1 1 100%;
    }

    .mh-fsel,
    input.mh-fsel[type="date"] {
        width: auto;
        flex: 1 1 44%;
        min-width: 0;
    }

    .mh-hdr-left,
    .mh-hdr-user {
        min-width: 0;
    }

    .mh-hdr .page-logos img {
        max-height: 30px;
        max-width: 84px;
    }

    .mh-who {
        max-width: 34vw;
    }

    .mh-who b {
        font-size: 12.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mh-who span {
        display: none;
    }

    /* The mark stays readable on a phone without crowding the row again */
    .mh-hdr-powered img {
        height: 22px;
    }

    /* The words go, the envelope stays: the action is still reachable but it
       stops competing with the name of the reader for the same row. */
    .mh-hdr .mh-invite span {
        display: none;
    }

    .mh-hdr .mh-invite {
        padding: 5px 7px;
    }

    .mh-flags .mh-flag {
        width: 26px;
        height: 18px;
    }

    .mh-fbar {
        position: static;
    }

    .mh-fbar-in {
        padding: 10px 14px;
        gap: 8px;
    }

    .mh-search {
        flex: 1 1 100%;
        max-width: none;
    }

    .mh-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .mh-tab {
        padding: 7px 11px;
        white-space: nowrap;
    }

    .mh-fsel {
        flex: 1 1 130px;
        max-width: none;
    }

    .mh-wrap {
        padding: 16px 14px 50px;
    }

    .mh-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mh-art {
        padding: 22px 18px 28px;
    }

    .mh-art h1 {
        font-size: 23px;
    }

    .mh-bentry {
        gap: 12px;
        padding: 11px 13px;
    }

    .mh-thumbs,
    .mh-thumbs.wide {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .mh-thumb {
        height: 100px;
    }

    .mh-lb {
        padding: 16px;
    }

    .mh-lb-nav {
        display: none;
    }

    .mh-lb-img {
        max-width: 94vw;
        max-height: 56vh;
    }

    .mh-gal-head .mh-btn-dl {
        margin-left: 0;
    }
}

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

    .mh-card,
    .mh-card:hover {
        transition: none;
        transform: none;
    }

    .mh-newbar {
        animation: none;
    }
}

/* Powered-by in the portal footer: larger than the 20px default of the other
   public pages (tester feedback) — scoped to this page only via .mh-foot */
.mh-foot .page-powered-by img {
    height: 34px;
}

.mh-foot .page-powered-by {
    font-size: 13px;
}
