/* Gilroy webfont (brand font). Self-hosted from web/assets/fonts/.
    One family, multiple weights; swap so text paints immediately. */
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Regular.ttf')  format('truetype');  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Medium.ttf')   format('truetype');  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-Bold.ttf')     format('truetype');  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/assets/fonts/Gilroy-ExtraBold.otf') format('opentype'); font-weight: 800; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; font-weight: 700;}
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 0.5em; }

/* Shared container — centres content to max 1320px with side gutters. */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
}
/* ============================================================================
   Sticky masthead — wraps header_menu (black bar) + sub_header_menu (red bar)
   so both pin together while scrolling. z-index sits above page content but
   below the off-canvas sliding menu (.pm, z-index 2000).
   ========================================================================== */
.pub-masthead { position: sticky; top: 0; z-index: 1000; }

/* ============================================================================
   Header menu (header_menu.twig) — black bar.
   Background colour is dynamic: set via `style="--pub-header-bg: …"` inline.
   ========================================================================== */
.pub-header {
    background: var(--pub-header-bg);
    color: #fff;
    position: relative;
    z-index: 1000;
}
.pub-header__inner {
    position: relative;        /* logo centres within the 1320 container */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 80px;
}

/* Left */
.pub-header__burger {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 25px;
}

/* Center logo — absolutely centred so it stays mid-bar regardless of the
   side groups' widths. */
.pub-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
}
.pub-header__logo img {
    height: 75px;
    max-width: 190px;
    width: auto;
    display: block;
}

/* Right group */
.pub-header__right {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 28px;
}
.pub-header__subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.pub-header__subscribe:hover { opacity: .85; }

/* City picker */
.pub-header__city { position: relative; }
.pub-header__city-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
}
.pub-header__chevron { transition: transform .2s ease; }
.pub-header__city.is-open .pub-header__chevron { transform: rotate(180deg); }

.pub-header__city-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 88px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.pub-header__city.is-open .pub-header__city-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pub-header__city-menu li + li { border-top: 1px solid #f0f0f0; }
.pub-header__city-menu a {
    display: block;
    padding: 14px 24px;
    color: #111;
    font-weight: 800;
    font-size: 17px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}
.pub-header__city-menu a:hover { color: #e60023; }

@media (max-width: 768px) {
    .pub-header__inner { height: 64px; }
    .pub-header__logo img { height: 34px; }
    .pub-header__right { gap: 16px; }
    .pub-header__subscribe span { display: none; }  /* icon only on mobile */
    .pub-header__subscribe, .pub-header__city-toggle { font-size: 14px; }
}

/* ============================================================================
   Sub-header menu (sub_header_menu.twig) — thin channel bar.
   Background colour is dynamic: set via `style="--pub-subnav-bg: …"` inline.
   ========================================================================== */
.pub-subnav { background: var(--pub-subnav-bg); }
.pub-subnav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 14px 0;
}
.pub-subnav__item { position: relative; padding: 2px 22px; }
/* Vertical divider before every item except the first. */
.pub-subnav__item + .pub-subnav__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.55);
}
.pub-subnav__item a {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.pub-subnav__item a:hover { opacity: 0.85; }

/* Mobile: single row that scrolls horizontally instead of wrapping. */
@media (max-width: 700px) {
    .pub-subnav__list {
        flex-wrap: nowrap;
        /* `safe center`: centred when the items fit, but falls back
           to start when they overflow so the first items aren't
           clipped / unreachable while scrolling. */
        justify-content: safe center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;        /* Firefox */
        -ms-overflow-style: none;     /* old Edge/IE */
    }
    .pub-subnav__list::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
    .pub-subnav__item { padding: 2px 16px; }
}

/* ============================================================================
   Sliding (off-canvas) menu (sliding_menu.twig).
   Per-channel title/subtitle colours are dynamic: set via inline
   `style="color: …"` on .pm-channel__title / .pm-channel__sub.
   ========================================================================== */
.pm {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    color: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
    overflow: hidden;
}
.pm.is-open { transform: translateX(0); visibility: visible; }
.pm__scroll { height: 100%; overflow-y: auto; padding: 24px 40px 64px; }  /* full-width, no max-width container */

/* Top: back + search */
.pm__top { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.pm__back {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; color: #e60023; background: transparent; border: none; cursor: pointer;
}
.pm__search {
    position: relative; display: flex; align-items: center; gap: 10px;
    width: 100%; max-width: 440px; background: #fff; color: #666;
    border-radius: 999px; padding: 12px 22px;height:40px;
}
.pm__search input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; color: #111; }

/* Body: left area (channels + footer) · ad · blank. */
.pm__body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;   /* left spans 1-2, ad = 3, 4 blank */
    gap: 0 40px;
    align-items: start;
}
.pm__left { grid-column: 1 / 3; }
.pm__ad   { grid-column: 3; }

.pm__channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    align-items: start;
}
.pm__col { list-style: none; margin: 0; padding: 0; }

/* Channel row */
.pm-channel { padding: 4px 0; }
.pm-channel__row { display: flex; align-items: center; gap: 16px; }
.pm-channel__main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.pm-channel__icon { width: 50px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.pm-channel__text { display: flex; flex-direction: column; line-height: 1.15; }
.pm-channel__title { font-size: 24px; font-weight: 800; }
.pm-channel__sub { font-size: 14px; font-weight: 700; font-style: italic; opacity: .95; }

.pm-channel__toggle {
    flex: 0 0 auto; width: 30px; height: 30px; position: relative;
    background: transparent; border: none; cursor: pointer; color: #fff;
}
.pm-channel__toggle::before,
.pm-channel__toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%; background: #fff;
}
.pm-channel__toggle::before { width: 22px; height: 2.5px; transform: translate(-50%, -50%); }               /* horizontal */
.pm-channel__toggle::after  { width: 2.5px; height: 22px; transform: translate(-50%, -50%); transition: transform .2s ease; } /* vertical */
.pm-channel.is-open .pm-channel__toggle::after { transform: translate(-50%, -50%) scaleY(0); }             /* + → − */

/* Children (revealed) */
.pm-channel__children {
    list-style: none; margin: 6px 0 0; padding: 0 0 0 60px;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.pm-channel.is-open .pm-channel__children { max-height: 600px; }
.pm-channel__children a { display: block; padding: 5px 0; font-size: 18px; font-weight: 800; color: #fff; }
.pm-channel__children a:hover { color: #e60023; }

/* Ad column (col 3) with red divider bar */
.pm__ad { border-left: 2px solid #e60023; padding-left: 40px; }
.pm__ad img { width: 100%; max-width: 340px; border-radius: 4px; }

/* Footer */
.pm__footer { margin-top: 48px; max-width: 420px; }
.pm__news { font-size: 16px; line-height: 1.6; color: #e6e6e6; margin: 0 0 12px; }
.pm__news-cta { margin: 0 0 24px; }
.pm__news-cta a { font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pm__social { display: flex; gap: 20px; margin-bottom: 28px; }
.pm__social a { color: #fff; }
.pm__social a:hover { color: #e60023; }
.pm__copy { font-size: 14px; color: #bdbdbd; margin: 0; }

/* ── Footer nav — hidden by default, shown only on mobile (below) ── */
.pm-fnav { display: none; }
.pm-fnav__logo img { width: 150px; height: auto; display: block; }
.pm-fnav__tagline { margin: 20px 0 22px; max-width: 240px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.pm-fnav__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.pm-fnav__col-title { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; }
.pm-fnav__links { list-style: none; margin: 0; padding: 0; }
.pm-fnav__links li { margin-bottom: 11px; }
.pm-fnav__links a { color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.pm-fnav__links a:hover { color: #e60023; }

/* ── Tablet: 2 columns, no ad (4th mockup) ── */
@media (max-width: 1099px) {
    .pm__body { grid-template-columns: 1fr; }   /* left spans full, ad hidden */
    .pm__left { grid-column: auto; }
    .pm__ad { display: none; }
}

/* ── Mobile: single column (3rd mockup) ── */
@media (max-width: 700px) {
    .pm__scroll { padding-left: 20px; padding-right: 20px; }
    .pm__channels { grid-template-columns: 1fr; }
    .pm__search { max-width: none; }
    .pm-channel__title { font-size: 20px; }
    .pm-channel__icon { width: 50px; height: 50px; }
    .pm__footer { max-width: none; }
    .pm-fnav { display: block; margin-top: 36px; }   /* footer nav: mobile only */
}
