/* National Gazette v2.0.0
   Newspaper layout carried forward from the HG v1.7 design: scenic backdrop fading into a white newsroom canvas,
   dark section navigation, image-led section strip, compact first screen on laptop viewports. */

:root {
  --ng-navy: #0b1f3a;
  --ng-red: #c8102e;
  --ng-red-dark: #a00d24;
  --ng-ink: #11161c;
  --ng-ink-2: #2a323a;
  --ng-muted: #5a636b;
  --ng-line: #e1e5e8;
  --ng-soft: #f5f6f6;
  --ng-page: #eef1f1;
  --ng-paper: #ffffff;
  --ng-nav-top: #151c23;
  --ng-nav-bottom: #0a0e12;
  --ng-shadow: 0 14px 44px rgba(15, 24, 32, .16);
  --ng-radius: 12px;
  --ng-shell: min(1780px, calc(100vw - 44px));
  --ng-serif: var(--gh-font-heading, Georgia, "Times New Roman", serif);
  --ng-sans: var(--gh-font-body, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; position: relative; overflow-x: hidden; background: var(--ng-page); color: var(--ng-ink); font-family: var(--ng-sans); font-size: 16px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--ng-red); outline-offset: 2px; border-radius: 3px; }
.ng-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ng-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ng-navy); color: #fff; padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.ng-skip:focus { top: 12px; }
.ng-muted { color: var(--ng-muted); }
[hidden] { display: none !important; }

/* Animated link underline (HG signature) */
.ng-card h3 a, .ng-latest-item h3 a, .ng-lead h1 a, .ng-feature h2 a, .gh-content a, .ng-section-heading a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s ease;
}
.ng-card h3 a:hover, .ng-latest-item h3 a:hover, .ng-lead h1 a:hover, .ng-feature h2 a:hover, .ng-section-heading a:hover { background-size: 100% 2px; color: var(--ng-red); }
.gh-content a { color: var(--ng-red); background-size: 100% 1px; }
.gh-content a:hover { background-size: 100% 2px; }

/* Shell and backdrop */
.ng-shell { width: var(--ng-shell); margin-inline: auto; }
.ng-narrow { width: min(860px, 100%); margin-inline: auto; }
.ng-shell-page { position: relative; z-index: 1; min-height: 100vh; }
.ng-main { position: relative; z-index: 2; outline: none; }
.ng-backdrop {
  position: absolute; inset: 0 0 auto 0; height: clamp(860px, 72vw, 1240px); z-index: 0; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(238,241,241,0) 0%, rgba(238,241,241,0) 48%, rgba(238,241,241,.2) 61%, rgba(238,241,241,.6) 75%, rgba(238,241,241,.92) 88%, var(--ng-page) 100%),
    var(--ng-backdrop, url("../images/masthead-australia.svg"));
  background-size: 100% 100%, max(2048px, 100vw) auto;
  background-position: center top, center top;
  background-repeat: no-repeat;
}

/* Top bar */
.ng-topbar { position: relative; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.08); }
.ng-topbar-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; font-size: 13.5px; }
.ng-weather-line, .ng-utility-nav { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.ng-weather-icon { color: #c58a00; font-size: 17px; }
.ng-weather-range { font-size: 12px; color: var(--ng-muted); }
.ng-weather-place { font-weight: 600; }
.ng-topbar-sep { opacity: .35; }
.ng-weather-line [data-weather-place]:empty, .ng-weather-line [data-weather-place]:empty + .ng-topbar-sep { display: none; }
.ng-edition { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--ng-navy); color: #fff; font: 800 10.5px/1 var(--ng-sans); text-transform: uppercase; letter-spacing: .08em; }
.ng-edition svg { transition: transform .15s ease; }
.ng-edition[aria-expanded="true"] svg { transform: rotate(180deg); }
.ng-edition-wrap { position: relative; }
.ng-region-pop { position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; width: 380px; max-width: calc(100vw - 24px); padding: 16px; background: #fff; border: 1px solid #dfe3e5; border-radius: 10px; box-shadow: 0 16px 40px rgba(15,24,32,.18); white-space: normal; font-size: 13.5px; }
.ng-region-pop::before { content: ""; position: absolute; left: 22px; top: -7px; width: 12px; height: 12px; background: #fff; border-left: 1px solid #dfe3e5; border-top: 1px solid #dfe3e5; transform: rotate(45deg); }
.ng-region-pop-intro { margin: 0 0 12px; color: var(--ng-ink-2); }
.ng-region-pop .ng-region { min-width: 0; max-width: none; }
.ng-region-pop-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ng-line); }
.ng-region-pop-foot a { font-weight: 700; color: var(--ng-red); }
.ng-region-pop-foot span { font-size: 11px; color: var(--ng-muted); }
.ng-edition:hover, .ng-edition:focus-visible { background: var(--ng-red); color: #fff; }
.ng-utility-nav a { font-weight: 600; }
.ng-utility-nav a:hover { color: var(--ng-red); }
.ng-search-button { border: 0; background: transparent; padding: 4px 6px; display: inline-flex; }
.ng-support-button { background: var(--ng-red); color: #fff !important; border-radius: 999px; padding: 8px 18px; box-shadow: 0 5px 18px rgba(200,16,46,.22); }
.ng-support-button:hover { background: var(--ng-red-dark); }

/* Masthead */
.ng-masthead { position: relative; height: 172px; overflow: hidden; }
.ng-masthead-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.66) 0 30%, rgba(255,255,255,.12) 52%, rgba(18,31,38,.06) 100%); }
.ng-masthead-inner { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 0 28px; }
.ng-brand { display: flex; flex-direction: column; align-items: center; width: max-content; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.ng-brand img { max-height: 118px; max-width: 420px; }
.ng-brand .ng-wordmark { display: block; height: 112px; width: auto; max-height: none; max-width: none; }
.ng-masthead-script { justify-self: start; transform: rotate(-3deg); display: flex; flex-direction: column; font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive; font-size: 25px; line-height: 1.05; color: #17222a; text-align: center; }
.ng-masthead-script::after { content: ""; display: block; width: 92px; height: 4px; margin: 5px auto 0; border-radius: 99px; background: var(--ng-red); transform: rotate(-8deg); }
.ng-masthead-stamp { justify-self: end; color: #fff; text-shadow: 0 2px 7px rgba(0,0,0,.45); text-align: center; letter-spacing: .28em; text-transform: uppercase; }
.ng-masthead-stamp strong { display: block; font-size: 14px; }
.ng-masthead-stamp small { display: block; font-size: 10px; margin-top: 10px; }

/* Main navigation (Ghost navigation) */
.ng-mainnav-wrap { position: relative; z-index: 15; margin-top: -5px; }
.ng-mainnav { min-height: 52px; display: flex; align-items: stretch; flex-wrap: wrap; overflow: hidden; background: linear-gradient(var(--ng-nav-top), var(--ng-nav-bottom)); border-radius: 12px 12px 0 0; box-shadow: 0 5px 20px rgba(0,0,0,.25); }
.ng-mainnav a { color: #fff; display: flex; align-items: center; padding: 0 22px; font-size: 14px; font-weight: 700; border-right: 1px solid rgba(255,255,255,.05); transition: background .2s ease; }
.ng-mainnav a:hover { background: #202934; }
.ng-mainnav a.is-active { background: linear-gradient(180deg, #e01735, var(--ng-red)); }

/* Section strip */
.ng-strip-wrap { position: relative; z-index: 14; background: var(--ng-paper); border-inline: 1px solid #d8dde0; }
.ng-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; }
.ng-tile { position: relative; display: flex; align-items: stretch; height: 70px; overflow: hidden; padding: 0; text-align: left; border: 1px solid #dde2e5; border-radius: 9px; background: var(--ng-soft); box-shadow: 0 2px 6px rgba(0,0,0,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ng-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); border-color: #c8ced2; }
.ng-tile-copy { position: relative; z-index: 2; width: 62%; padding: 10px 6px 8px 12px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, #fff 72%, rgba(255,255,255,.1)); }
.ng-tile-copy small { font-size: 9px; color: var(--ng-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; }
.ng-tile-copy strong { font: 700 17px/1.05 var(--ng-serif); margin-top: 2px; }
.ng-tile-art { width: 46%; margin-left: -8%; background-size: cover; background-position: center; clip-path: polygon(23% 0, 100% 0, 100% 100%, 0 100%); }
.ng-tile-tv { border: 0; background: #11161b; color: #fff; }
.ng-tile-tv .ng-tile-copy { background: linear-gradient(90deg, #11161b 72%, rgba(17,22,27,.3)); }
.ng-tile-tv .ng-tile-copy small { color: #ff7480; }
.ng-art-latest { background-image: url("../images/section-latest.webp"); }
.ng-art-politics { background-image: url("../images/section-politics.webp"); }
.ng-art-business { background-image: url("../images/section-business.webp"); }
.ng-art-finance { background-image: url("../images/section-finance.webp"); }
.ng-art-ai { background-image: url("../images/section-ai.webp"); }
.ng-art-tourism { background-image: url("../images/section-tourism.webp"); }
.ng-art-property { background-image: url("../images/section-property.webp"); }
.ng-art-jobs { background-image: url("../images/fallback-jobs.svg"); }
.ng-art-tv { background-image: url("../images/section-tv.webp"); }

/* Canvas */
.ng-canvas { position: relative; background: var(--ng-paper); border: 1px solid #d8dde0; border-top: 0; border-radius: 0 0 14px 14px; box-shadow: var(--ng-shadow); padding: 16px 18px 28px; margin-bottom: 34px; }

/* Shared type */
.ng-kicker { display: inline-block; color: var(--ng-red); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ng-kicker-light { display: inline-block; width: max-content; background: var(--ng-red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; }
.ng-ribbon { display: inline-flex; background: linear-gradient(180deg, #e3203f, var(--ng-red)); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 5px; padding: 5px 12px; }
.ng-button, .ng-button-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-weight: 800; padding: 11px 18px; line-height: 1.1; }
.ng-button { background: var(--ng-red); color: #fff; border: 0; }
.ng-button:hover { background: var(--ng-red-dark); }
.ng-button-ghost { border: 1px solid #c8cdd0; background: #fff; color: var(--ng-ink); }
.ng-button-ghost:hover { border-color: #8f979d; }
.ng-button-small { padding: 8px 12px; font-size: 13px; }
.ng-link-button { border: 0; background: none; padding: 0; color: var(--ng-red); font-weight: 700; text-decoration: underline; }
.ng-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #ebedef; padding: 0 3px 10px; }
.ng-panel-title h2 { font: 800 20px/1.1 var(--ng-serif); margin: 0; }
.ng-panel-title a { font-size: 11px; font-weight: 800; color: var(--ng-red); }
.ng-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; border-top: 1px solid #e6e9eb; padding-top: 16px; margin: 24px 0 12px; }
.ng-section-heading h2 { font: 800 28px/1.05 var(--ng-serif); margin: 2px 0 0; }
.ng-section-heading > a { font-size: 13px; font-weight: 800; color: var(--ng-red); }
.ng-empty { border: 1px dashed #c6ccd0; background: #f8f9f9; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 4px; color: var(--ng-muted); }
.ng-empty strong { color: var(--ng-ink); }
.ng-attrib { font-size: 11px; color: var(--ng-muted); margin: 10px 0 0; }
.ng-type { display: inline-block; font-size: 10px; font-weight: 700; color: var(--ng-muted); border: 1px solid var(--ng-line); border-radius: 4px; padding: 1px 6px; }
.ng-credit { font-size: 14px; color: var(--ng-muted); border-left: 3px solid var(--ng-red); padding-left: 10px; margin: 14px 0 0; }
.ng-credit a { color: var(--ng-red); text-decoration: underline; }

/* Fallback art */
.ng-fallback { display: block; width: 100%; height: 100%; background: url("../images/fallback-generic.svg") center / cover; }
.ng-fallback-latest { background-image: url("../images/section-latest.webp"); }
.ng-fallback-politics, .ng-fallback-politics-federal, .ng-fallback-politics-state, .ng-fallback-politics-local-government, .ng-fallback-politics-elections { background-image: url("../images/section-politics.webp"); }
.ng-fallback-business, .ng-fallback-business-economy, .ng-fallback-business-retail { background-image: url("../images/section-business.webp"); }
.ng-fallback-finance { background-image: url("../images/section-finance.webp"); }
.ng-fallback-ai { background-image: url("../images/section-ai.webp"); }
.ng-fallback-tourism { background-image: url("../images/section-tourism.webp"); }
.ng-fallback-property { background-image: url("../images/section-property.webp"); }
.ng-fallback-community, .ng-fallback-notice-board { background-image: url("../images/section-community.webp"); }
.ng-fallback-event, .ng-fallback-meetup { background-image: url("../images/section-events.webp"); }
.ng-fallback-jobs { background-image: url("../images/fallback-jobs.svg"); }
.ng-fallback-world { background-image: url("../images/fallback-world.svg"); }
.ng-fallback-sport { background-image: url("../images/fallback-sport.svg"); }
.ng-fallback-science { background-image: url("../images/fallback-science.svg"); }
.ng-fallback-health { background-image: url("../images/fallback-health.svg"); }
.ng-fallback-environment { background-image: url("../images/fallback-environment.svg"); }
.ng-fallback-courts-justice { background-image: url("../images/fallback-courts-justice.svg"); }
.ng-fallback-lifestyle { background-image: url("../images/fallback-lifestyle.svg"); }
.ng-fallback-australia { background-image: url("../images/fallback-australia.svg"); }
.ng-fallback-technology { background-image: url("../images/fallback-technology.svg"); }

/* Home first screen */
.ng-home-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) 360px 230px; gap: 14px; }
.ng-lead-zone, .ng-latest, .ng-rail > * { border: 1px solid #e0e4e7; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.ng-lead { display: grid; grid-template-columns: 42% 58%; min-height: 400px; height: 100%; overflow: hidden; border-radius: 10px; }
.ng-lead-copy { padding: 18px 22px 22px; }
.ng-lead h1 { font: 800 clamp(28px, 2.1vw, 42px)/1.02 var(--ng-serif); letter-spacing: -.5px; margin: 12px 0 12px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ng-byline { font-size: 12.5px; color: var(--ng-muted); }
.ng-lead-copy p { font-size: 15px; color: var(--ng-ink-2); max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ng-lead-image { position: relative; min-height: 300px; background: #dfe7ea; }
.ng-lead-image img, .ng-lead-image .ng-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ng-photo-caption { position: absolute; left: 12px; bottom: 10px; right: 12px; color: #fff; font-size: 11px; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.ng-latest { padding: 12px 12px 4px; }
.ng-latest-list { list-style: none; margin: 0; padding: 0; }
.ng-latest-item { display: grid; grid-template-columns: 1fr 76px; gap: 10px; padding: 11px 3px; border-bottom: 1px solid #edf0f1; }
.ng-latest-item:last-child { border-bottom: 0; }
.ng-latest-item h3 { font: 700 15px/1.12 var(--ng-serif); margin: 0 0 5px; }
.ng-latest-item small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--ng-muted); text-transform: uppercase; }
.ng-latest-item time { display: block; font-size: 10.5px; color: var(--ng-muted); margin-top: 2px; }
.ng-latest-item img, .ng-latest-thumb { width: 76px; height: 60px; object-fit: cover; border-radius: 4px; }
.ng-rail { display: flex; flex-direction: column; gap: 12px; }
.ng-weather-card { min-height: 96px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.ng-weather-big { font-size: 34px; color: #2f80c9; min-width: 34px; }
.ng-weather-card small { display: block; font-size: 11px; color: var(--ng-muted); }
.ng-weather-card strong { display: block; font-size: 22px; }
.ng-weather-card span { display: block; font-size: 11px; color: var(--ng-muted); }

/* Cards and grids */
.ng-grid { display: grid; gap: 14px; }
.ng-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ng-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ng-home-more { margin-top: 14px; }
.ng-card { display: flex; flex-direction: column; border: 1px solid #dfe3e5; border-radius: 8px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.ng-card:hover { transform: translateY(-3px); box-shadow: 0 9px 22px rgba(0,0,0,.1); }
.ng-card-image { position: relative; display: block; height: 140px; background: #e7eaeb; overflow: hidden; }
.ng-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ng-card:hover .ng-card-image img { transform: scale(1.03); }
.ng-card-label { position: absolute; left: 8px; top: 8px; background: #1a9b8b; color: #fff; border-radius: 4px; padding: 4px 8px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ng-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ng-card h3 { font: 700 17px/1.12 var(--ng-serif); margin: 0; }
.ng-card p { font-size: 12.5px; color: var(--ng-muted); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ng-card-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ng-muted); }

/* Ads */
.ng-ad { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: #f7f3ea; border: 1px solid #e6dfcf; min-height: 250px; }
.ng-ad-section-strip { min-height: 90px; margin: 0 0 14px; }
.ng-ad-post-rail { min-height: 250px; position: sticky; top: 16px; }
.ng-ad-inner { flex: 1; display: flex; flex-direction: column; }
.ng-ad-label { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a7e6a; padding: 6px 10px 0; }
.ng-ad-creative { display: block; flex: 1; }
.ng-ad-creative img { width: 100%; height: auto; }
.ng-ad-creative iframe { width: 100%; height: 100%; min-height: 250px; border: 0; }
.ng-ad-advertiser { font-size: 11px; color: #6b604c; padding: 4px 10px 8px; }
.ng-ad-disclosure { font-size: 10px; color: #6b604c; padding: 0 10px 10px; line-height: 1.3; }
.ng-ad.is-collapsed { display: none; }
.ng-house-ad { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; text-align: center; background: linear-gradient(160deg, #f7f3ea, #efe6d2); color: var(--ng-navy); }
.ng-house-ad small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ng-red); }
.ng-house-ad strong { font: 800 22px/1.1 var(--ng-serif); }
.ng-house-ad span { font-size: 12px; font-weight: 700; text-decoration: underline; }

/* Local to You and council */
.ng-local { margin: 26px 0 0; padding: 20px; border: 1px solid #e2e5e9; border-radius: 12px; background: #fbfbfa; }
.ng-local-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.ng-local-head h2 { font: 800 28px/1.05 var(--ng-serif); margin: 4px 0 6px; }
.ng-local-head p { margin: 0; color: var(--ng-muted); max-width: 52ch; }
.ng-local-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; margin-top: 16px; }
.ng-local-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: start; }
.ng-local-item { border-top: 3px solid var(--ng-red); padding-top: 10px; min-width: 0; }
.ng-local-item small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ng-muted); }
.ng-local-item h3 { font: 700 17px/1.15 var(--ng-serif); margin: 4px 0; }
.ng-local-item h3 a:hover { color: var(--ng-red); }
.ng-local-item p { font-size: 12.5px; color: var(--ng-muted); margin: 0; }
.ng-skeleton { height: 92px; border-radius: 8px; background: linear-gradient(90deg, #eceff1, #f6f7f8, #eceff1); background-size: 200% 100%; animation: ng-shimmer 1.2s infinite; }
@keyframes ng-shimmer { to { background-position: -200% 0; } }
.ng-region { min-width: 280px; max-width: 420px; }
.ng-region label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ng-region-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ng-region-row input { width: 110px; height: 38px; border: 1px solid #c4cace; border-radius: 6px; padding: 0 10px; background: #fff; }
.ng-region-note { font-size: 12.5px; color: var(--ng-muted); margin: 6px 0 0; min-height: 1em; }
.ng-region-current { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 6px; }
.ng-region-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ng-region-choices button { border: 1px solid #c4cace; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.ng-region-choices button:hover { border-color: var(--ng-red); color: var(--ng-red); }
.ng-council { border: 1px solid #e0e4e7; border-radius: 10px; background: #fff; padding: 12px; margin: 0 0 16px; }
.ng-council-compact { margin: 0; }
.ng-council-feed { display: grid; gap: 0; }
.ng-council:not(.ng-council-compact) .ng-council-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.ng-council-item { padding: 10px 2px; border-bottom: 1px solid #edf0f1; }
.ng-council-item:last-child { border-bottom: 0; }
.ng-council-item h3 { font: 700 15px/1.15 var(--ng-serif); margin: 0 0 4px; }
.ng-council-item h3 a:hover { color: var(--ng-red); }
.ng-council-item small { font-size: 10.5px; color: var(--ng-muted); }

/* Video surface and player */
.ng-video { margin-top: 10px; }
.ng-video-compact .ng-video-grid { grid-template-columns: minmax(0, 640px) minmax(260px, 1fr); }
.ng-video-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; }
.ng-video-main { position: relative; }
.ng-video-main h3 { font: 700 20px/1.15 var(--ng-serif); margin: 10px 0 0; }
.ng-video-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.ng-video-list button { width: 100%; display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--ng-line); background: #fff; border-radius: 8px; padding: 6px; }
.ng-video-list button[aria-current="true"] { border-color: var(--ng-red); box-shadow: inset 3px 0 0 var(--ng-red); }
.ng-video-list img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; }
.ng-video-list span { font-size: 13px; font-weight: 700; line-height: 1.2; }
.ng-player-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; border-radius: 8px; overflow: hidden; }
.ng-player-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ng-player-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: var(--ng-red); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ng-player-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.ng-player-stage { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.ng-player-stage:empty { display: none; }
.ng-player-stage iframe { width: 100%; height: 100%; border: 0; display: block; }

.ng-player { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.ng-player-window { width: 400px; background: #0f151a; color: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #323b43; box-shadow: 0 18px 42px rgba(0,0,0,.4); }
.ng-player.is-expanded .ng-player-window { width: min(760px, calc(100vw - 40px)); }
.ng-player.is-minimised .ng-player-window { display: none; }
.ng-player-launcher { border: 1px solid rgba(255,255,255,.3); background: #11181f; color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.ng-player-launcher span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ng-red); margin-right: 8px; }
.ng-player-head { height: 42px; padding: 0 8px 0 12px; display: flex; align-items: center; justify-content: space-between; background: #151d24; border-bottom: 1px solid #2e363e; }
.ng-player-head strong { font-size: 12px; }
.ng-player-head small { font-size: 10.5px; color: #a4adb5; margin-left: 8px; }
.ng-player-head-actions { display: flex; gap: 2px; }
.ng-player-head button { border: 0; background: transparent; color: #fff; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.ng-player-head button:hover { background: #222c35; }
.ng-player-media { position: relative; }
.ng-player-media .ng-player-facade, .ng-player-media .ng-player-stage { border-radius: 0; }
.ng-player-lower { background: #121a20; border-left: 3px solid var(--ng-red); padding: 8px 10px; font: 700 13.5px/1.25 var(--ng-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ng-player-controls { display: grid; grid-template-columns: repeat(4, 34px) 1fr 34px; gap: 3px; align-items: center; padding: 6px 8px; background: #11181f; }
.ng-player-controls button { height: 32px; border: 0; background: transparent; color: #fff; font-size: 15px; border-radius: 6px; }
.ng-player-controls button:hover { background: #222c35; }
.ng-player-controls input { width: 100%; accent-color: var(--ng-red); }
.ng-player-playlist { list-style: none; margin: 0; padding: 0; max-height: 110px; overflow: auto; border-top: 1px solid #29323a; }
.ng-player-playlist:empty { display: none; }
.ng-player-playlist button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 0; border-bottom: 1px solid #202830; background: transparent; color: #c7cfd5; text-align: left; font-size: 11.5px; }
.ng-player-playlist button[aria-current="true"] { color: #fff; background: #1b252d; box-shadow: inset 3px 0 0 var(--ng-red); }
.ng-player-more { margin: 0; padding: 8px 10px; font-size: 12px; border-top: 1px solid #29323a; }
.ng-player-more a { color: #fff; text-decoration: underline; }

/* Gazette TV */
.ng-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff1d2e; box-shadow: 0 0 0 5px rgba(255,29,46,.12); margin-right: 8px; animation: ng-pulse 1.5s infinite; }
@keyframes ng-pulse { 50% { box-shadow: 0 0 0 9px rgba(255,29,46,0); } }
.ng-floating-tv { position: fixed; right: 24px; bottom: 22px; z-index: 25; width: 300px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 8px; padding: 12px 14px; text-align: left; color: #fff; background: linear-gradient(135deg, #10161c, #27323d); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; box-shadow: 0 14px 30px rgba(0,0,0,.38); }
.ng-floating-tv strong { grid-column: 2; font-size: 14px; }
.ng-floating-tv > span:not(.ng-live-dot) { grid-column: 2; font-size: 11px; opacity: .8; }
.ng-floating-tv b { grid-column: 3; grid-row: 1 / 3; font-size: 10px; text-transform: uppercase; background: #2b3540; border-radius: 5px; padding: 4px 7px; }
.ng-floating-tv.is-live b { background: var(--ng-red); }
.ng-tv { position: fixed; inset: 0; z-index: 999; background: rgba(3,6,9,.97); }
.ng-tv-stage { width: 100vw; height: 100vh; display: grid; grid-template-rows: 60px auto 1fr; }
.ng-tv-top { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; color: #fff; background: #0b1015; border-bottom: 1px solid #29313a; }
.ng-tv-top > div { display: flex; align-items: center; gap: 8px; }
.ng-tv-top h2 { font: 800 18px var(--ng-serif); margin: 0; }
.ng-tv-live-label { font-size: 10px; font-weight: 800; background: var(--ng-red); border-radius: 4px; padding: 4px 6px; text-transform: uppercase; }
.ng-tv-top button { border: 1px solid #47515a; border-radius: 7px; background: #151d24; color: #fff; padding: 9px 13px; }
.ng-tv-notice { margin: 0; padding: 8px 24px; color: #d8dee3; background: #121a21; font-size: 13px; }
.ng-tv-frame { position: relative; min-height: 0; }
.ng-tv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ng-tv-loader { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: #fff; }
.ng-tv-loader strong { font: 800 36px var(--ng-serif); }
.ng-tv-loader p { color: #aeb7be; margin: 0; }
.ng-tv-button { border: 0; background: #111820; color: #fff; padding: 14px 18px; border-radius: 8px; font-weight: 800; }
.ng-tv-landing { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; padding: 54px; background: #0d1318; color: #fff; }
.ng-tv-landing h1 { font: 800 64px/1 var(--ng-serif); margin: 8px 0; }
.ng-tv-landing p { font-size: 19px; color: #c9d0d6; }
.ng-tv-poster { height: 420px; border: 1px solid #39434c; border-radius: 16px; color: #fff; font: 800 28px var(--ng-serif); background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.56)), url("../images/section-tv.webp") center / cover; }
body.ng-tv-open { overflow: hidden; }

/* Archive and section pages */
.ng-archive-hero { position: relative; isolation: isolate; min-height: 110px; padding: 16px 22px; margin-bottom: 14px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); overflow: hidden;
  background-image: linear-gradient(90deg, rgba(11,17,22,.9) 0%, rgba(11,17,22,.66) 40%, rgba(11,17,22,.12) 75%, rgba(11,17,22,.04) 100%), var(--ng-hero, url("../images/masthead-australia.svg"));
  background-size: cover; background-position: center; }
.ng-archive-hero h1 { font: 800 clamp(32px, 4vw, 50px)/.98 var(--ng-serif); margin: 6px 0 4px; }
.ng-archive-hero p { font-size: 14px; max-width: 760px; margin: 0; }
.ng-hero-latest { --ng-hero: url("../images/section-latest.webp"); }
.ng-hero-politics, .ng-hero-politics-federal, .ng-hero-politics-state, .ng-hero-politics-local-government, .ng-hero-politics-elections { --ng-hero: url("../images/section-politics.webp"); }
.ng-hero-business { --ng-hero: url("../images/section-business.webp"); }
.ng-hero-finance { --ng-hero: url("../images/section-finance.webp"); }
.ng-hero-ai { --ng-hero: url("../images/section-ai.webp"); }
.ng-hero-tourism { --ng-hero: url("../images/section-tourism.webp"); }
.ng-hero-property { --ng-hero: url("../images/section-property.webp"); }
.ng-hero-community { --ng-hero: url("../images/section-community.webp"); }
.ng-hero-event, .ng-hero-meetup { --ng-hero: url("../images/section-events.webp"); }
.ng-hero-world { --ng-hero: url("../images/fallback-world.svg"); }
.ng-hero-sport { --ng-hero: url("../images/fallback-sport.svg"); }
.ng-hero-science { --ng-hero: url("../images/fallback-science.svg"); }
.ng-hero-health { --ng-hero: url("../images/fallback-health.svg"); }
.ng-hero-environment { --ng-hero: url("../images/fallback-environment.svg"); }
.ng-hero-courts-justice { --ng-hero: url("../images/fallback-courts-justice.svg"); }
.ng-hero-lifestyle { --ng-hero: url("../images/fallback-lifestyle.svg"); }
.ng-hero-technology { --ng-hero: url("../images/fallback-technology.svg"); }
.ng-hero-jobs { --ng-hero: url("../images/fallback-jobs.svg"); }
.ng-archive-head { margin-bottom: 18px; }
.ng-archive-head h1 { font: 800 clamp(36px, 5vw, 60px)/1 var(--ng-serif); margin: 6px 0; }
.ng-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ng-pills a { padding: 7px 13px; border-radius: 999px; border: 1px solid #d3d8da; font-size: 13px; font-weight: 700; background: #fff; }
.ng-pills a:hover { border-color: var(--ng-red); color: var(--ng-red); }
.ng-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 260px; margin-bottom: 14px; border: 1px solid #e0e4e7; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.ng-feature-image { position: relative; min-height: 240px; background: #dde4e7; }
.ng-feature-image img, .ng-feature-image .ng-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ng-feature-copy { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ng-feature-copy h2 { font: 800 clamp(26px, 2.6vw, 36px)/1.04 var(--ng-serif); margin: 0; }
.ng-feature-copy p { font-size: 14px; color: var(--ng-muted); margin: 0; }
.ng-shelves .ng-shelf:first-child .ng-section-heading { margin-top: 26px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; font-weight: 700; }
.pagination a { color: var(--ng-red); }

/* Post */
.ng-post { padding: 40px 18px 60px; }
.ng-post-head h1 { font: 800 clamp(38px, 5.4vw, 72px)/1 var(--ng-serif); letter-spacing: -1.2px; margin: 10px 0 14px; }
.ng-post-deck { font: 400 21px/1.45 var(--ng-serif); color: var(--ng-ink-2); margin: 0 0 12px; }
.ng-post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ng-muted); font-size: 13.5px; }
.ng-post-meta a { font-weight: 700; color: var(--ng-ink); }
.ng-post-hero { width: min(1200px, 100%); margin: 28px auto 0; }
.ng-post-hero img { width: 100%; max-height: 720px; object-fit: cover; border-radius: 10px; }
.ng-post-hero figcaption { font-size: 12px; color: var(--ng-muted); margin-top: 8px; }
.ng-post-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: center; gap: 64px; margin-top: 36px; }
.ng-post-rail { display: flex; flex-direction: column; gap: 14px; }
.ng-rail-box { border: 1px solid #e0e4e6; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ng-rail-box strong { font: 800 22px/1.1 var(--ng-serif); }
.ng-rail-box p { font-size: 13px; color: var(--ng-muted); margin: 0; }
.ng-related { margin-top: 36px; }

/* Ghost content */
.gh-content { font: 18px/1.7 var(--ng-serif); color: var(--ng-ink); min-width: 0; }
.gh-content > * + * { margin-top: 1.1em; margin-bottom: 0; }
.gh-content h2 { font-size: 32px; line-height: 1.15; margin-top: 1.6em; }
.gh-content h3 { font-size: 25px; line-height: 1.2; margin-top: 1.4em; }
.gh-content img { border-radius: 7px; height: auto; }
.gh-content blockquote { border-left: 4px solid var(--ng-red); padding-left: 22px; margin-left: 0; font-size: 1.15em; color: var(--ng-ink-2); }
.gh-content figcaption { font: 13px/1.4 var(--ng-sans); color: var(--ng-muted); margin-top: 8px; text-align: center; }
.gh-content pre { overflow-x: auto; font-size: 14px; background: #f4f5f6; padding: 14px; border-radius: 8px; }
.gh-content table { display: block; overflow-x: auto; border-collapse: collapse; font: 15px/1.4 var(--ng-sans); }
.gh-content th, .gh-content td { border: 1px solid var(--ng-line); padding: 8px 10px; }
.kg-width-wide { position: relative; width: min(1100px, 92vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }
.kg-image { margin-inline: auto; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.kg-embed-card iframe { max-width: 100%; }
.ng-moved-note { font: 600 14px var(--ng-sans); color: var(--ng-muted); border: 1px dashed var(--ng-line); border-radius: 8px; padding: 10px 12px; }

/* Pages */
.ng-page { padding: 48px 18px 64px; }
.ng-page-head h1 { font: 800 clamp(40px, 5vw, 64px)/1 var(--ng-serif); margin: 0 0 12px; }
.ng-page-head p { font-size: 19px; color: var(--ng-muted); }
.ng-page-feature { width: min(1200px, 100%); margin: 24px auto 32px; border-radius: 10px; }
.ng-special-hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 18px; border: 1px solid #e1e4e5; border-radius: 12px; background: linear-gradient(120deg, #eef2f6, #fff); }
.ng-special-hero h1 { font: 800 clamp(36px, 4.4vw, 54px)/1 var(--ng-serif); margin: 6px 0 10px; }
.ng-special-hero p { font-size: 16.5px; color: var(--ng-muted); max-width: 720px; margin: 0; }
.ng-hero-dark { background: linear-gradient(120deg, #0d1318, #1d2833); color: #fff; border-color: #0d1318; }
.ng-hero-dark p { color: #c9d0d6; }
.ng-hero-warm { background: linear-gradient(120deg, #fff3ee, #fff); }
.ng-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0 0 16px; }
.ng-steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; padding: 13px 14px; border: 1px solid #dfe4e7; border-radius: 9px; background: #fff; }
.ng-steps li::before { content: counter(step); grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ng-navy); color: #fff; font-size: 12px; font-weight: 800; }
.ng-steps strong { font: 800 16px var(--ng-serif); }
.ng-steps span { font-size: 12.5px; color: var(--ng-muted); }
.ng-job-toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin: 16px 0; }
.ng-job-toolbar input, .ng-job-toolbar select { height: 44px; border: 1px solid #c4cace; border-radius: 7px; padding: 0 12px; background: #fff; }
.ng-jobs-list { display: flex; flex-direction: column; gap: 12px; }
.ng-job { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid #e0e4e6; border-radius: 10px; background: #fff; }
.ng-job-logo { width: 52px; height: 52px; border-radius: 9px; background: var(--ng-navy); color: #fff; display: grid; place-items: center; font-weight: 900; }
.ng-job-meta { font-size: 10.5px; color: var(--ng-muted); text-transform: uppercase; letter-spacing: .08em; }
.ng-job h2 { font: 800 22px/1.15 var(--ng-serif); margin: 4px 0; }
.ng-job p { font-size: 13px; color: var(--ng-muted); margin: 0 0 4px; }
.ng-job time { font-size: 11.5px; color: var(--ng-muted); }
.ng-more-link { text-align: right; font-weight: 800; color: var(--ng-red); }
.ng-callout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 22px; padding: 20px 22px; border: 1px solid #dfe3e5; border-radius: 10px; background: var(--ng-soft); }
.ng-callout h2 { font: 800 26px/1.05 var(--ng-serif); margin: 4px 0 6px; }
.ng-callout p { font-size: 14px; color: var(--ng-muted); margin: 0; max-width: 720px; }
.ng-block { margin-top: 8px; }
.ng-error { text-align: center; padding: 80px 24px; }
.ng-error h1 { font: 800 52px var(--ng-serif); margin: 8px 0; }

/* Footer */
.ng-footer { background: #18212a; color: #fff; border-top: 1px solid #0a0f14; padding: 18px 0 20px; }
.ng-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ng-footer-brand { display: flex; align-items: center; gap: 16px; }
.ng-footer-title { font: 700 18px/1 var(--ng-serif); color: #fff; letter-spacing: .01em; }
.ng-footer-brand > span { font-size: 11px; color: #b9c0c6; border-left: 1px solid #59626a; padding-left: 16px; text-transform: uppercase; letter-spacing: .12em; }
.ng-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.ng-footer a { font-size: 12px; color: #c2c9ce; }
.ng-footer a:hover { color: #fff; }

/* Desktop: persistent footer and compact first screen (HG v1.6 behaviour) */
@media (min-width: 1051px) {
  .ng-shell-page { padding-bottom: 48px; }
  .ng-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 8px 0 9px; box-shadow: 0 -5px 16px rgba(0,0,0,.12); }
  .ng-footer-title { font-size: 16px; }
  .ng-footer a, .ng-footer-brand > span { font-size: 10.5px; }
  .ng-floating-tv { bottom: 58px; }
  .ng-player { bottom: 60px; }
}

/* Laptop composition: first shelf above the fold at 1280/1366 */
@media (max-width: 1400px) {
  .ng-topbar-inner { min-height: 38px; font-size: 12.5px; }
  .ng-masthead { height: 124px; }
  .ng-brand .ng-wordmark { height: 86px; }
  .ng-masthead-script { font-size: 21px; }
  .ng-mainnav { min-height: 44px; }
  .ng-mainnav a { padding: 0 13px; font-size: 12.5px; }
  .ng-strip { gap: 6px; padding: 8px 10px; }
  .ng-tile { height: 58px; }
  .ng-tile-copy { width: 64%; padding: 7px 4px 6px 9px; }
  .ng-tile-copy small { font-size: 7.5px; }
  .ng-tile-copy strong { font-size: 14.5px; }
  .ng-canvas { padding: 10px 12px 20px; }
  .ng-home-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 10px; }
  .ng-rail { display: none; }
  .ng-lead { min-height: 300px; }
  .ng-lead-copy { padding: 13px 15px; }
  .ng-lead h1 { font-size: clamp(26px, 2.3vw, 34px); margin: 8px 0; }
  .ng-lead-copy p { font-size: 13px; line-height: 1.34; margin: 8px 0 11px; -webkit-line-clamp: 4; }
  .ng-button { padding: 8px 13px; font-size: 12.5px; }
  .ng-latest { padding: 8px 9px 0; }
  .ng-latest-item { grid-template-columns: 1fr 60px; gap: 8px; padding: 7px 2px; }
  .ng-latest-item h3 { font-size: 13.5px; }
  .ng-latest-item img, .ng-latest-thumb { width: 60px; height: 46px; }
  .ng-grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ng-grid-5 > .ng-ad { display: none; }
  .ng-home-more > .ng-card:nth-of-type(n+13) { display: none; }
  .ng-card-image { height: 100px; }
  .ng-card-body { padding: 8px 10px 10px; gap: 4px; }
  .ng-card h3 { font-size: 15px; }
  .ng-card p { font-size: 11px; }
  .ng-home-more { margin-top: 10px; gap: 10px; }
  .ng-floating-tv { width: 260px; padding: 10px 12px; }
  .ng-post-layout { grid-template-columns: minmax(0, 740px) 280px; gap: 34px; }
}
@media (max-height: 850px) and (min-width: 1051px) {
  .ng-masthead { height: 104px; }
  .ng-brand .ng-wordmark { height: 84px; }
  .ng-tile { height: 52px; }
  .ng-lead { min-height: 270px; }
  .ng-lead h1 { font-size: clamp(24px, 2.1vw, 32px); }
  .ng-latest-item { padding: 5px 2px; }
  .ng-card-image { height: 86px; }
}

/* Tablet */
@media (max-width: 1050px) {
  :root { --ng-shell: calc(100vw - 20px); }
  .ng-backdrop { height: 980px; }
  .ng-utility-nav a:not(.ng-support-button) { display: none; }
  .ng-masthead { height: 104px; }
  .ng-brand .ng-wordmark { height: 80px; }
  .ng-masthead-inner { grid-template-columns: 1fr auto; padding: 0 16px; }
  .ng-masthead-script { display: none; }
  .ng-mainnav a { flex: 1 0 auto; justify-content: center; min-height: 40px; padding: 0 10px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .ng-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ng-home-grid { grid-template-columns: 1fr; }
  .ng-latest { display: none; }
  .ng-grid-4, .ng-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ng-local-grid, .ng-video-grid { grid-template-columns: 1fr; }
  .ng-local-feed, .ng-council:not(.ng-council-compact) .ng-council-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-post-layout { grid-template-columns: 1fr; gap: 28px; }
  .ng-post-rail { display: none; }
  .ng-tv-landing { grid-template-columns: 1fr; padding: 32px; }
  .ng-tv-poster { height: 280px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .ng-backdrop { height: 820px; background-size: 100% 100%, max(1500px, 100vw) auto; }
  .ng-topbar-inner { min-height: 40px; padding: 0 12px; gap: 10px; }
  .ng-weather-line > :not(.ng-edition-wrap) { display: none; }
  .ng-utility-nav { gap: 10px; }
  .ng-support-button { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; font-size: 12px; }
  .ng-region-pop { position: fixed; left: 12px; right: 12px; top: 50px; width: auto; max-width: none; }
  .ng-region-pop::before { display: none; }
  .ng-masthead { height: 104px; }
  .ng-masthead-inner { grid-template-columns: 1fr; }
  .ng-masthead-stamp { display: none; }
  .ng-brand .ng-wordmark { height: 70px; }
  .ng-mainnav { border-radius: 0; }
  .ng-mainnav a { flex: 1 0 33%; font-size: 11.5px; padding: 0 8px; }
  .ng-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 7px; }
  .ng-tile { height: 56px; }
  .ng-canvas { width: 100%; border-radius: 0; border-inline: 0; padding: 10px 12px 18px; }
  .ng-lead { grid-template-columns: 1fr; }
  .ng-lead-image { min-height: 210px; order: -1; }
  .ng-lead h1 { font-size: 28px; -webkit-line-clamp: 6; }
  .ng-grid-4, .ng-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ng-card-image { height: 100px; }
  .ng-card p { display: none; }
  .ng-local { padding: 14px; }
  .ng-local-feed, .ng-council:not(.ng-council-compact) .ng-council-feed { grid-template-columns: 1fr; }
  .ng-region { min-width: 0; width: 100%; }
  .ng-feature { grid-template-columns: 1fr; }
  .ng-post { padding: 24px 12px 40px; }
  .ng-post-head h1 { font-size: 38px; letter-spacing: -.5px; }
  .ng-post-deck { font-size: 18px; }
  .gh-content { font-size: 17px; }
  .ng-special-hero { padding: 22px 18px; }
  .ng-steps { grid-template-columns: 1fr; }
  .ng-job-toolbar { grid-template-columns: 1fr; }
  .ng-job { grid-template-columns: 46px 1fr; }
  .ng-job .ng-button-ghost { grid-column: 2; justify-self: start; }
  .ng-floating-tv { display: none; }
  .ng-player { right: 10px; bottom: 10px; left: 10px; }
  .ng-player-window { width: 100%; }
  .ng-footer-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ng-footer-brand > span { border-left: 0; padding-left: 0; }
  .ng-video-list button { grid-template-columns: 96px 1fr; }
  .ng-video-list img { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .ng-topbar, .ng-mainnav-wrap, .ng-strip-wrap, .ng-ad, .ng-post-rail, .ng-player, .ng-floating-tv, .ng-footer, .ng-backdrop { display: none !important; }
  .ng-canvas { box-shadow: none; border: 0; }
}

/* Navigation icons: chosen by the menu label (Ghost turns "Latest News" into latest-news). Labels without an icon show text only. */
.ng-mainnav a[data-nav]::before { content: none; width: 15px; height: 15px; margin-right: 7px; flex: none; background: currentColor; -webkit-mask: var(--ng-ico) center / contain no-repeat; mask: var(--ng-ico) center / contain no-repeat; opacity: .9; }
.ng-mainnav a[data-nav="home"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M3 11 12 4l9 7%22/><path d=%22M5 10v10h14V10%22/><path d=%22M10 20v-6h4v6%22/></svg>"); }
.ng-mainnav a[data-nav="latest"]::before, .ng-mainnav a[data-nav="latest-news"]::before, .ng-mainnav a[data-nav="news"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%225%22 width=%2215%22 height=%2214%22 rx=%221%22/><path d=%22M18 9h3v8a2 2 0 0 1-2 2H5%22/><path d=%22M6 9h9M6 13h9M6 16h6%22/></svg>"); }
.ng-mainnav a[data-nav="australia"]::before, .ng-mainnav a[data-nav="local-to-you"]::before, .ng-mainnav a[data-nav="my-council"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z%22/><circle cx=%2212%22 cy=%2210%22 r=%222.5%22/></svg>"); }
.ng-mainnav a[data-nav="politics"]::before, .ng-mainnav a[data-nav="council"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M3 21h18M4 10h16M12 3 4 7v3h16V7z%22/><path d=%22M6 10v8M10 10v8M14 10v8M18 10v8%22/></svg>"); }
.ng-mainnav a[data-nav="world"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18%22/></svg>"); }
.ng-mainnav a[data-nav="business"]::before, .ng-mainnav a[data-nav="jobs"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%227%22 width=%2218%22 height=%2213%22 rx=%222%22/><path d=%22M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2M3 13h18%22/></svg>"); }
.ng-mainnav a[data-nav="finance"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M4 19h16%22/><path d=%22M6 16v-4M11 16V8M16 16v-6%22/><path d=%22m5 9 5-4 4 3 5-4%22/></svg>"); }
.ng-mainnav a[data-nav="sport"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22m12 7 4 3-1.5 5h-5L8 10z%22/><path d=%22M12 3v4M21 11l-5-1M17 20l-2.5-5M7 20l2.5-5M3 11l5-1%22/></svg>"); }
.ng-mainnav a[data-nav="technology"]::before, .ng-mainnav a[data-nav="ai"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%226%22 y=%226%22 width=%2212%22 height=%2212%22 rx=%222%22/><rect x=%229.5%22 y=%229.5%22 width=%225%22 height=%225%22/><path d=%22M9 3v3M15 3v3M9 18v3M15 18v3M3 9h3M3 15h3M18 9h3M18 15h3%22/></svg>"); }
.ng-mainnav a[data-nav="lifestyle"]::before, .ng-mainnav a[data-nav="life"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M12 20s-8-4.6-8-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 8 2.8C20 15.4 12 20 12 20z%22/></svg>"); }
.ng-mainnav a[data-nav="video"]::before, .ng-mainnav a[data-nav="gazette-tv"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22 rx=%222%22/><path d=%22m10 9 5 3-5 3z%22/></svg>"); }
.ng-mainnav a[data-nav="community"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%229%22 cy=%228%22 r=%223%22/><path d=%22M3 20a6 6 0 0 1 12 0%22/><circle cx=%2217%22 cy=%229%22 r=%222.5%22/><path d=%22M15.5 14.2A5 5 0 0 1 21 19%22/></svg>"); }
.ng-mainnav a[data-nav="tourism"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22m15.5 8.5-2 5-5 2 2-5z%22/></svg>"); }
.ng-mainnav a[data-nav="property"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M3 11 12 4l9 7%22/><path d=%22M5 10v10h14V10%22/><circle cx=%2212%22 cy=%2214%22 r=%222%22/><path d=%22M12 16v2%22/></svg>"); }
.ng-mainnav a[data-nav="directory"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3z%22/><path d=%22M5 17a3 3 0 0 1 3-3h11%22/></svg>"); }
.ng-mainnav a[data-nav="notice-board"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M9 3h6l-1 6 3 3v2H7v-2l3-3z%22/><path d=%22M12 14v7%22/></svg>"); }
.ng-mainnav a[data-nav="whats-on"]::before, .ng-mainnav a[data-nav="events"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><rect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/><path d=%22M3 10h18M8 3v4M16 3v4%22/></svg>"); }
.ng-mainnav a[data-nav="about"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><circle cx=%2212%22 cy=%2212%22 r=%229%22/><path d=%22M12 11v6M12 7.5v.5%22/></svg>"); }
.ng-mainnav a[data-nav="health"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M9 3h6v6h6v6h-6v6H9v-6H3V9h6z%22/></svg>"); }
.ng-mainnav a[data-nav="science"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><ellipse cx=%2212%22 cy=%2212%22 rx=%229%22 ry=%223.6%22/><ellipse cx=%2212%22 cy=%2212%22 rx=%229%22 ry=%223.6%22 transform=%22rotate%2860 12 12%29%22/><ellipse cx=%2212%22 cy=%2212%22 rx=%229%22 ry=%223.6%22 transform=%22rotate%28120 12 12%29%22/></svg>"); }
.ng-mainnav a[data-nav="environment"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M5 19C5 10 10 5 20 4c-1 10-6 15-15 15z%22/><path d=%22M5 19 13 11%22/></svg>"); }
.ng-mainnav a[data-nav="courts-justice"]::before, .ng-mainnav a[data-nav="courts"]::before { content: ""; --ng-ico: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22><path d=%22M12 4v16M7 20h10M5 7h14%22/><path d=%22m5 7-3 6a3 3 0 0 0 6 0zM19 7l-3 6a3 3 0 0 0 6 0z%22/></svg>"); }
@media (max-width: 640px) { .ng-mainnav a[data-nav]::before { display: none; } }

/* Fold (desktop, 1051px and up).
   Masthead, navigation and section strip keep one fixed height at every width.
   The first-screen row (lead, Latest, rail) is sized from the viewport height so the story row
   under the lead is always on screen: chrome above the lead is about 280px, the story row about 255px. */
@media (min-width: 1051px) {
  :root { --ng-lead-h: clamp(300px, calc(100svh - 566px), 440px); }
  .ng-masthead { height: 104px; }
  .ng-brand .ng-wordmark { height: 80px; }
  .ng-masthead-script { font-size: 21px; }
  .ng-mainnav { min-height: 46px; }
  .ng-strip { gap: 7px; padding: 10px 12px; }
  .ng-tile { height: 58px; }
  .ng-tile-copy strong { font-size: 15.5px; }
  .ng-home .ng-canvas, .ng-canvas.ng-home { padding-top: 12px; }
  .ng-home-grid { grid-template-rows: var(--ng-lead-h); }
  .ng-lead-zone, .ng-home-grid > .ng-latest, .ng-home-grid > .ng-rail { height: var(--ng-lead-h); min-height: 0; overflow: hidden; }
  .ng-lead { height: 100%; min-height: 0; }
  .ng-lead-image { min-height: 0; }
  .ng-lead-copy { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 16px 20px 18px; }
  .ng-lead-copy > * { flex: none; }
  .ng-lead-copy > .ng-ribbon { align-self: flex-start; }
  .ng-home-grid > .ng-latest { display: flex; flex-direction: column; }
  .ng-home-grid > .ng-latest .ng-latest-list { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
  .ng-lead h1 { font-size: clamp(26px, calc(1.2vw + 14px), 38px); line-height: 1.03; margin: 10px 0; -webkit-line-clamp: 4; }
  .ng-lead-copy p { flex: 0 1 auto; min-height: 0; font-size: 14px; line-height: 1.4; margin: 8px 0 12px; -webkit-line-clamp: 4; }
  .ng-lead-copy .ng-button { margin-top: auto; align-self: flex-start; }
  .ng-home-more { margin-top: 12px; }
  .ng-home-more .ng-card-image { height: 120px; }
  .ng-home-more .ng-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ng-home-more .ng-card p { -webkit-line-clamp: 2; }
}
@media (min-width: 1051px) and (max-width: 1400px) {
  .ng-lead h1 { -webkit-line-clamp: 4; }
  .ng-lead-copy p { -webkit-line-clamp: 3; font-size: 13px; }
}
@media (min-width: 1051px) and (max-height: 850px) {
  :root { --ng-lead-h: clamp(260px, calc(100svh - 500px), 400px); }
  .ng-home-more .ng-card-image { height: 86px; }
}
