:root {
  --ink: #0A1628;
  --ink-2: #13233d;
  --sea: #0E7490;
  --gold: #C9A227;
  --red: #C41E3A;
  --paper: #F6F3EE;
  --card: #fff;
  --muted: #5b6573;
  --line: #e6e1d8;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container-au { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }

/* Topbar */
.topbar {
  background: var(--ink);
  color: #dbe4f0;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container-au { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #dbe4f0; opacity: .85; }
.topbar a:hover { color: var(--gold); opacity: 1; }
.ticker-mini { color: var(--gold); font-weight: 600; letter-spacing: .04em; }

/* Brand */
.brandbar { background: #fff; border-bottom: 1px solid var(--line); }
.brandbar .container-au {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0 14px;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  font-family: var(--serif); font-weight: 700; letter-spacing: .18em; font-size: 28px;
}
.logo img { width: 46px; height: 46px; }
.logo small { display: block; letter-spacing: .28em; font-size: 11px; color: var(--sea); font-family: var(--sans); font-weight: 600; margin-top: 2px; text-align: center; }
.search-wrap { display: flex; justify-content: flex-end; }
.search-wrap form { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-wrap input { border: 0; padding: 8px 14px; min-width: 180px; outline: none; }
.search-wrap button { border: 0; background: var(--ink); color: #fff; padding: 8px 14px; }
.brand-meta { font-size: 13px; color: var(--muted); }

/* Nav */
.mainnav {
  background: var(--ink);
  position: sticky; top: 0; z-index: 50;
}
.mainnav .container-au { display: flex; align-items: center; }
.mainnav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; width: 100%; }
.mainnav a {
  display: block; color: #fff; padding: 13px 16px; font-weight: 600;
  letter-spacing: .04em; font-size: 14px; text-transform: uppercase;
}
.mainnav a:hover, .mainnav .active > a { color: var(--gold); }
.mainnav .drop { position: relative; }
.mainnav .drop-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(10,22,40,.15);
  padding: 8px 0; z-index: 20;
}
.mainnav .drop:hover .drop-menu { display: block; }
.mainnav .drop-menu a { color: var(--ink); padding: 8px 16px; text-transform: none; font-weight: 500; }
.mainnav .drop-menu a:hover { background: var(--paper); color: var(--sea); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; padding: 8px 12px; }

/* Breaking */
.breaking {
  background: var(--red); color: #fff; display: flex; align-items: stretch; overflow: hidden;
}
.breaking-label {
  background: #8b1028; padding: 8px 16px; font-weight: 800; letter-spacing: .08em;
  font-size: 12px; white-space: nowrap; display: flex; align-items: center;
}
.breaking-track { overflow: hidden; flex: 1; }
.breaking-track ul {
  display: flex; list-style: none; margin: 0; padding: 8px 0; gap: 36px;
  animation: marquee 32s linear infinite; width: max-content;
}
.breaking-track a { color: #fff; font-weight: 600; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Ads */
.ad-slot {
  background: repeating-linear-gradient(-45deg, #efeae2, #efeae2 8px, #f7f3ec 8px, #f7f3ec 16px);
  border: 1px dashed #d3cbbd; color: #8a8276; text-align: center;
  padding: 18px; margin: 16px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
}
.ad-slot.ad-real { background: #fff; border-style: solid; padding: 8px; }
.ad-sidebar { min-height: 250px; }
.ad-in-article { margin: 28px 0; }

/* Headlines */
.headline-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin: 18px 0 8px;
}
.card-news { position: relative; overflow: hidden; background: #111; color: #fff; display: block; }
.card-news img, .card-news .ph {
  width: 100%; height: 100%; object-fit: cover; display: block;
  min-height: 220px; transition: transform .5s ease;
}
.card-news:hover img { transform: scale(1.04); }
.card-news .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(6,12,24,.92));
  padding: 48px 18px 16px;
}
.card-news .kicker {
  display: inline-block; background: var(--red); color: #fff; font-size: 11px;
  font-weight: 700; letter-spacing: .08em; padding: 3px 8px; margin-bottom: 8px; text-transform: uppercase;
}
.card-news h2, .card-news h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.2; }
.card-main { min-height: 460px; }
.card-main img, .card-main .ph { min-height: 460px; }
.card-main h2 { font-size: clamp(26px, 3vw, 40px); }
.side-stack { display: grid; gap: 14px; }
.side-stack .card-news { min-height: 223px; }
.side-stack img, .side-stack .ph { min-height: 223px; }
.subheads {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0 8px;
}
.subheads .card-news { min-height: 210px; }
.subheads img, .subheads .ph { min-height: 210px; }
.subheads h3 { font-size: 18px; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin: 10px 0 40px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 3px solid var(--ink); margin: 28px 0 16px; padding-bottom: 8px;
}
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 28px; }
.section-head a { color: var(--sea); font-weight: 600; font-size: 14px; }
.news-list { display: grid; gap: 16px; }
.news-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 14px;
  background: #fff; padding: 10px; border: 1px solid var(--line);
}
.news-row img, .news-row .ph { width: 100%; height: 130px; object-fit: cover; }
.news-row h3 { margin: 0 0 6px; font-size: 20px; font-family: var(--serif); }
.news-row p { margin: 0; color: var(--muted); font-size: 14px; }
.meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-bottom: 6px; }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.thumb-card { background: #fff; border: 1px solid var(--line); }
.thumb-card img, .thumb-card .ph { width: 100%; height: 170px; object-fit: cover; }
.thumb-card .body { padding: 12px 14px 16px; }
.thumb-card h3 { margin: 6px 0 0; font-size: 18px; font-family: var(--serif); line-height: 1.25; }

/* Sidebar */
.side-box { background: #fff; border: 1px solid var(--line); margin-bottom: 18px; }
.side-box h3 {
  margin: 0; padding: 12px 14px; background: var(--ink); color: #fff;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.side-box .inner { padding: 12px 14px; }
.rank-item { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border: 0; }
.rank-item b { font-family: var(--serif); font-size: 22px; color: var(--gold); line-height: 1; }
.author-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.author-row:last-child { border: 0; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-row small { color: var(--muted); display: block; }

/* Districts */
.district-bar { background: #fff; border: 1px solid var(--line); padding: 14px; margin: 8px 0 24px; }
.district-bar h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  border: 1px solid var(--line); padding: 5px 10px; font-size: 13px; background: var(--paper);
}
.chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Magazines */
.mag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mag-cover {
  background: #fff; padding: 12px; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mag-cover:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(10,22,40,.12); }
.mag-cover img { width: 100%; aspect-ratio: 8/11; object-fit: cover; box-shadow: 6px 8px 0 rgba(10,22,40,.12); }
.mag-cover h3 { margin: 12px 0 4px; font-size: 16px; font-family: var(--serif); }
a.btn, button.btn {
  display: inline-block; background: var(--ink); color: #fff !important; padding: 8px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; border: 0; cursor: pointer;
  border-radius: 0; text-decoration: none;
}
a.btn-gold, button.btn-gold { background: var(--gold); color: var(--ink) !important; }
a.btn-outline, button.btn-outline { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
a.btn-red, button.btn-red { background: var(--red); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; color: #fff; background: var(--sea);
  border-radius: 0;
}

/* Article */
.article { background: #fff; border: 1px solid var(--line); padding: 28px; }
.article h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 8px 0 12px; }
.article .lead { font-size: 20px; color: #334155; }
.article-hero { margin: 16px 0 20px; }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body p { margin: 0 0 16px; }
.article-body blockquote {
  margin: 24px 0; padding: 8px 20px; border-left: 4px solid var(--gold);
  font-family: var(--serif); font-size: 22px; color: #334155;
}
.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.share a { padding: 6px 12px; color: #fff !important; font-size: 13px; font-weight: 600; }
.share .x { background: #111; }
.share .fb { background: #1877f2; }
.share .wa { background: #25d366; }
.tags a { display: inline-block; margin: 4px 4px 0 0; padding: 4px 10px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.comments { margin-top: 28px; }
.comment { border-top: 1px solid var(--line); padding: 12px 0; }
.form-control, textarea, select, input[type=text], input[type=email], input[type=password], input[type=url], input[type=file] {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); font-family: inherit; background: #fff;
}
label { font-weight: 600; font-size: 13px; display: block; margin: 10px 0 4px; }
.alert { padding: 10px 14px; margin: 10px 0; }
.alert-ok { background: #ecfdf3; color: #166534; }
.alert-err { background: #fef2f2; color: #991b1b; }

.pager ul { display: flex; gap: 6px; list-style: none; padding: 0; }
.pager a { display: block; padding: 6px 12px; border: 1px solid var(--line); background: #fff; }
.pager .active a { background: var(--ink); color: #fff; border-color: var(--ink); }

.page-hero {
  background: var(--ink); color: #fff; padding: 28px 0 22px; margin-bottom: 22px;
}
.page-hero h1 { margin: 0; font-family: var(--serif); font-size: 36px; }
.page-hero p { margin: 6px 0 0; color: #cbd5e1; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 40px 0 18px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; font-family: var(--serif); margin: 0 0 12px; }
.site-footer a { color: #cbd5e1; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold); }
.copy { border-top: 1px solid #24344f; margin-top: 24px; padding-top: 14px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cookie {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 720px; margin: auto;
  background: var(--ink); color: #fff; padding: 14px 16px; display: none; z-index: 80;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.cookie.show { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.mag-detail { display:grid; grid-template-columns:280px 1fr; gap:28px; align-items:start; }

@media (max-width: 992px) {
  .brandbar .container-au { grid-template-columns: 1fr; text-align: center; }
  .search-wrap { justify-content: center; }
  .headline-grid, .layout, .subheads, .grid-3, .grid-4, .mag-grid, .foot-grid, .news-row, .gallery-grid, .mag-detail {
    grid-template-columns: 1fr;
  }
  .subheads { grid-template-columns: 1fr 1fr; }
  .card-main, .card-main img, .card-main .ph { min-height: 280px; }
  .nav-toggle { display: block; }
  .mainnav ul { display: none; flex-direction: column; }
  .mainnav ul.open { display: flex; }
  .mainnav .drop-menu { position: static; box-shadow: none; display: block; background: #13233d; }
  .mainnav .drop-menu a { color: #fff; }
}
@media (max-width: 600px) {
  .subheads { grid-template-columns: 1fr; }
  .logo { font-size: 22px; }
}
