/* ChangkoNews — "live news desk": ink-black chrome, signal-red breaking bar, bold Kanit headlines,
   colour-coded section desks with thick top rules. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f3f4f6;
  --text: #0b1020;
  --muted: #5a6275;
  --line: #e3e5ea;
  --ink: #0b1020;           /* masthead / footer chrome */
  --ink-2: #161d33;
  --ink-line: #262f4a;
  --red: #e10600;           /* signal red: breaking, live, brand */
  --red-d: #b30500;
  --amber: #ffc21a;
  --sc: var(--red);         /* current section colour */
  --radius: 4px;
  --display: "Kanit", "Noto Sans Thai", "Leelawadee UI", "Thonburi", system-ui, sans-serif;
  --body: "Noto Sans Thai", "Leelawadee UI", "Thonburi", system-ui, sans-serif;
}
/* section colour codes */
.sec-politics { --sc: #d6001c; }
.sec-thailand { --sc: #00875a; }
.sec-economy  { --sc: #d97100; }
.sec-society  { --sc: #7339e6; }
.sec-world    { --sc: #0068c9; }
.sec-more     { --sc: #475467; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--body); font-size: 16.5px; line-height: 1.7; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sc); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
main :focus-visible { outline-color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1280px; margin-inline: auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
main { flex: 1 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.meta { font-size: .8rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: #fff; }
.topbar { border-bottom: 1px solid var(--ink-line); font-size: .78rem; color: #aeb5c8; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.today-label { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; padding: 0 6px; border-radius: 2px; margin-right: 4px; }
#today { color: #fff; font-weight: 500; }
.updated time { color: var(--amber); font-weight: 600; }

.mast-row { display: flex; align-items: center; gap: 24px; padding: 18px 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo:hover { color: inherit; }
.logo-mark { border-radius: 8px; }
.logo-text { display: inline-flex; align-items: stretch; font-family: var(--display); font-weight: 800; font-size: 1.85rem; line-height: 1; letter-spacing: .01em; }
.logo-a { color: #fff; padding: 6px 8px 6px 0; }
.logo-b { background: var(--red); color: #fff; padding: 6px 10px; border-radius: 3px; transform: skewX(-8deg); }
.mast-tag { flex: 1; min-width: 0; color: #c6cbd9; font-size: .9rem; border-left: 3px solid var(--red); padding-left: 14px; line-height: 1.5; }
.onair { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; color: #fff; border: 1px solid var(--ink-line); padding: 5px 12px; border-radius: 999px; }
.onair-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(225 6 0 / .7); } 100% { box-shadow: 0 0 0 9px rgb(225 6 0 / 0); } }

.nav { background: var(--ink-2); border-top: 1px solid var(--ink-line); }
.nav ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  display: block; padding: 12px 18px 10px; white-space: nowrap; color: #e6e9f2;
  font-family: var(--display); font-weight: 600; font-size: 1rem; border-bottom: 4px solid transparent;
}
.nav li:first-child a { padding-left: 0; }
.nav a:hover { color: #fff; border-bottom-color: var(--sc); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--sc); background: linear-gradient(to top, rgb(255 255 255 / .06), transparent); }
.nav li:first-child a[aria-current="page"] { background: none; }

/* breaking ticker */
.ticker { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); border-top: 3px solid var(--red); }
.ticker-row { display: flex; align-items: stretch; gap: 0; padding: 0 20px; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .95rem; padding: 8px 16px 8px 14px; margin-left: -20px; padding-left: 20px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.ticker-label .live-dot { background: #fff; animation-name: pulse-w; }
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .8); } 100% { box-shadow: 0 0 0 8px rgb(255 255 255 / 0); } }
.ticker-viewport { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; align-items: center; }
.ticker-list li { display: flex; align-items: center; gap: 8px; padding: 0 22px; white-space: nowrap; font-size: .9rem; font-weight: 500; position: relative; }
.ticker-list li::after { content: ""; position: absolute; right: 0; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
.ticker-list time { font-family: var(--display); font-weight: 700; color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 14px 0 0; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #b3b8c4; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- shared bits ---------- */
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .78rem; line-height: 1.4; }
.kicker {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; color: var(--sc);
  font-size: .82rem; letter-spacing: .01em;
}
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--sc); border-radius: 1px; }
.kicker:hover { text-decoration: underline; text-underline-offset: 3px; }
.type { color: var(--muted); font-weight: 600; }
.type::before { content: "·"; margin-right: 8px; color: #b3b8c4; }
.card-meta time { color: var(--muted); }
.card-meta time::before { content: "·"; margin-right: 8px; color: #b3b8c4; }
.col-title {
  display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  padding: 8px 0 10px; border-top: 4px solid var(--ink); margin-bottom: 12px;
}
.live-title { border-top-color: var(--red); }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-size: .72rem;
  letter-spacing: .12em; padding: 2px 8px 1px; border-radius: 2px;
}
.live-badge .live-dot { background: #fff; width: 6px; height: 6px; animation-name: pulse-w; }

/* ---------- home: front page ---------- */
.front { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 8px; }
.front > section { min-width: 0; }
.lead-post { display: flex; flex-direction: column; gap: 14px; }
.lead-img { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.lead-post:hover .lead-img img { transform: scale(1.03); }
.lead-flag {
  position: absolute; left: 0; bottom: 0; background: var(--red); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: .85rem; padding: 6px 14px; letter-spacing: .02em;
}
.lead-body { border-left: 6px solid var(--sc); padding-left: 16px; display: flex; flex-direction: column; gap: 8px; }
.lead-body h2 { font-size: clamp(1.6rem, 2.7vw, 2.35rem); line-height: 1.25; font-weight: 700; }
.lead-sub { color: #343b4f; font-size: 1.02rem; line-height: 1.65; }

.second { display: flex; flex-direction: column; }
.second-post { padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.second-post:last-child { border-bottom: 0; margin-bottom: 0; }
.second-img { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 4px; }
.second-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.second-post h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.second-post.has-img h3 { font-size: 1.2rem; }

.live { min-width: 0; }
.feed { position: relative; }
.feed li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; }
.feed li::before { content: ""; position: absolute; left: 61px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.feed li:last-child::before { display: none; }
.feed li::after { content: ""; position: absolute; left: 57px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--sc); }
.feed li:first-child::after { background: var(--red); border-color: var(--red); }
.feed time { display: flex; flex-direction: column; line-height: 1.25; text-align: right; padding-right: 6px; }
.feed time b { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--text); }
.feed time span { font-size: .7rem; color: var(--muted); }
.feed li > div { padding-left: 14px; }
.feed-sec { font-size: .72rem; font-weight: 700; color: var(--sc); line-height: 1.3; margin-bottom: 2px; }
.feed a { font-size: .93rem; font-weight: 500; line-height: 1.5; display: block; }

/* desk = full-width section with thick top rule */
.desk { margin-top: 36px; }
.desk-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-top: 6px solid var(--sc); padding-top: 10px; margin-bottom: 18px; position: relative;
}
.desk-head::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; }
.desk-head h2 { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.desk-head h2 a:hover { color: var(--sc); }
.more { flex: none; font-size: .88rem; font-weight: 600; color: var(--sc); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); border-bottom: 4px solid var(--sc); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }

/* section blocks */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.block { margin-top: 40px; min-width: 0; }
.block-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.block-lead { display: flex; flex-direction: column; gap: 8px; }
.block-img { display: block; overflow: hidden; border-radius: var(--radius); }
.block-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.block-lead:hover .block-img img { transform: scale(1.04); }
.block-lead h3 { font-size: 1.15rem; line-height: 1.4; }
.sub { color: var(--muted); font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.block-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .93rem; font-weight: 500; line-height: 1.5; }
.block-list li:first-child { border-top: 0; padding-top: 0; }
.block-list time { font-family: var(--display); font-weight: 700; color: var(--sc); font-size: .88rem; }
.block:first-child, .block:nth-child(even):last-child { grid-column: 1 / -1; }
.block:first-child .block-body, .block:nth-child(even):last-child .block-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.block:first-child .block-lead, .block:nth-child(even):last-child .block-lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.block:first-child .block-lead .block-img, .block:nth-child(even):last-child .block-lead .block-img { grid-row: span 3; }
.block:first-child .block-lead h3 { font-size: 1.4rem; }

.empty { text-align: center; padding: 80px 16px; }
.empty-flag { display: inline-block; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; padding: 4px 14px; letter-spacing: .1em; margin-bottom: 14px; }
.empty h2 { font-size: 1.8rem; margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* ---------- listing ---------- */
.list-head { padding-top: 18px; }
.list-head > * { max-width: 860px; }
.list-kicker {
  display: inline-block; background: var(--sc); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: .82rem; padding: 3px 12px; letter-spacing: .04em; margin-bottom: 10px;
}
.list-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.15; }
.list-head h1 small { font-size: .45em; font-weight: 600; color: var(--muted); vertical-align: middle; }
.list-intro { color: var(--muted); font-size: 1.02rem; margin-top: 8px; }
.list-head::after { content: ""; display: block; max-width: none; height: 6px; background: var(--sc); margin-top: 18px; }
.list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 8px; }
.list-main { min-width: 0; }
.list-main > .ad-slot { padding: 0; }
.rows .row { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 220px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rows time { display: flex; flex-direction: column; line-height: 1.3; border-top: 3px solid var(--sc); padding-top: 6px; }
.rows time b { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.rows time span { font-size: .74rem; color: var(--muted); }
.row-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row h3 { font-size: 1.22rem; line-height: 1.4; }
.row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.row .kicker { position: relative; z-index: 2; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.row:hover h3 a { color: var(--sc); }
.rows .row:first-child { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr); }
.rows .row:first-child h3 { font-size: 1.55rem; line-height: 1.3; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 30px 0 10px; font-size: .92rem; color: var(--muted); }
.pager a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--ink); color: #fff; font-family: var(--display);
  font-weight: 600; border-radius: var(--radius);
}
.pager a:hover { background: var(--red); color: #fff; }

.side { min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-top: 20px; }
.side .ad-slot { margin: 0; padding: 0; }
.side-secs li a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0 9px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--sc); font-weight: 600; margin-bottom: 4px; }
.side-secs li a[aria-current="page"] { background: var(--surface); color: var(--sc); }
.count { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface); padding: 0 8px; border-radius: 999px; margin-right: 8px; }

/* ---------- article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 18px; }
.post { min-width: 0; max-width: 820px; }
.post-head { display: flex; flex-direction: column; gap: 14px; }
.cat { color: var(--muted); background: var(--surface); padding: 1px 8px; border-radius: 2px; }
.post-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); font-weight: 700; line-height: 1.25; }
.post-sub { font-size: 1.15rem; line-height: 1.6; color: #343b4f; border-left: 4px solid var(--sc); padding-left: 14px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sc); }
.byline-text { flex: 1; min-width: 200px; line-height: 1.45; }
.byline-name { font-weight: 600; }
.byline-name a { color: var(--sc); }
.byline-name a:hover { text-decoration: underline; }
.desk-name { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.byline-time { font-size: .8rem; color: var(--muted); }
.share { display: flex; gap: 6px; }
.share a { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--ink); }
.share .sh-fb { background: #1f4fa8; }
.share .sh-line { background: #06a74a; }
.share a:hover { color: #fff; opacity: .88; }
.post-cover { margin: 22px 0 0; }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.dateline { margin-top: 22px; font-size: .9rem; color: var(--muted); }
.dateline b { color: var(--red); font-family: var(--display); letter-spacing: .02em; }
.post-body { font-size: 1.1rem; line-height: 1.9; margin-top: 8px; }
.post-body p { margin: 0 0 1.15em; }
.post-body > p:first-of-type::first-line { font-weight: 600; }
.post-body h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; padding-left: 12px; border-left: 5px solid var(--sc); }
.post-body h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.post-body a { color: var(--sc); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { border-radius: var(--radius); margin: 1em 0; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--surface); border-left: 5px solid var(--red); font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.15em; }
.post-body ul { list-style: square; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .4em; }
.post-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body .ad-slot { padding: 0; }
.post-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 16px 0; border-top: 4px solid var(--ink); margin-top: 20px; font-size: .92rem; }
.pf-label { font-family: var(--display); font-weight: 700; margin-right: 6px; color: var(--muted); }
.post-foot a { color: var(--sc); font-weight: 600; }
.tag { background: var(--surface); padding: 2px 10px; border-radius: 2px; font-weight: 500; }
.article-layout .side { position: sticky; top: 16px; align-self: start; padding-top: 0; }
.related { margin-bottom: 8px; }

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 10px; }
.nf-code {
  font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 14vw, 10rem); line-height: 1; color: #fff;
  background: var(--ink); padding: 14px 30px 20px; border-bottom: 10px solid var(--red); letter-spacing: -.02em;
}
.nf-text h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.nf .list-kicker { background: var(--red); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-block; background: var(--red); color: #fff; font-family: var(--display); font-weight: 600; padding: 8px 20px; border-radius: var(--radius); }
.btn:hover { background: var(--red-d); color: #fff; }
.chip { display: inline-block; padding: 7px 14px; border: 2px solid var(--sc); color: var(--sc); font-weight: 600; border-radius: var(--radius); font-size: .92rem; }
.chip:hover { background: var(--sc); color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c6cbd9; margin-top: 56px; border-top: 6px solid var(--red); font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px; padding-top: 40px; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo-text { font-size: 1.6rem; }
.footer-tagline { color: #fff; font-family: var(--display); font-weight: 500; }
.footer-title { font-family: var(--display); font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink-line); }
.footer-sections li a { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.footer-sections li a::before { content: ""; width: 10px; height: 10px; background: var(--sc); border-radius: 1px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-latest li { padding: 8px 0; border-bottom: 1px solid var(--ink-line); line-height: 1.5; }
.footer-latest li:last-child { border-bottom: 0; }
.footer-latest time { display: block; font-size: .74rem; color: var(--amber); font-weight: 600; }
.footer-latest a { color: #e6e9f2; }
.footer-bottom { background: #060914; font-size: .8rem; }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding-top: 8px; padding-bottom: 8px; }
.to-top { font-weight: 600; color: #fff; }

/* ---------- ads ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 24px auto; max-width: 1280px; width: 100%; padding: 0 20px; text-align: center; overflow: hidden; min-width: 0; }
.ad-unit { width: 100%; max-width: 100%; overflow: hidden; }
.ad-unit > * { max-width: 100%; }
.ad-slot.ad-sidebar { margin: 0; padding: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .front { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .live { grid-column: 1 / -1; }
  .front > .live .feed { columns: 2; column-gap: 32px; }
  .front > .live .feed li { break-inside: avoid; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onair { display: none; }
}
@media (max-width: 960px) {
  .list-layout, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .article-layout .side { position: static; }
  .blocks { grid-template-columns: minmax(0, 1fr); }
  .block:first-child .block-lead, .block:nth-child(even):last-child .block-lead { display: flex; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mast-tag { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .mast-row { padding: 14px 16px; }
  .ticker-row { padding: 0 16px; }
  .ticker-label { margin-left: -16px; padding-left: 16px; font-size: .88rem; }
  .front { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 16px; }
  .front > .live .feed { columns: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .block-body, .block:first-child .block-body, .block:nth-child(even):last-child .block-body { grid-template-columns: minmax(0, 1fr); }
  .rows .row, .rows .row:first-child { grid-template-columns: minmax(0, 1fr) 120px; gap: 6px 14px; }
  .rows time { grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: baseline; border-top: 0; padding-top: 0; }
  .rows time b { font-size: .95rem; color: var(--sc); }
  .rows .row h3, .rows .row:first-child h3 { font-size: 1.05rem; }
  .rows .sub { display: none; }
  .row img { aspect-ratio: 4 / 3; }
  .nf { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .nf-code { justify-self: start; }
  .post-body { font-size: 1.05rem; }
  .desk-head h2 { font-size: 1.35rem; }
  .ad-slot { padding: 0 16px; }
}
@media (max-width: 520px) {
  .topbar .updated { display: none; }
  .logo-text { font-size: 1.45rem; }
  .logo-mark { width: 36px; height: 36px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: start; }
  .card-img img { aspect-ratio: 4 / 3; }
  .card h3 { font-size: .98rem; }
  .card .type { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .share { width: 100%; }
  .lead-body h2 { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-viewport { overflow-x: auto; mask-image: none; }
  .ticker-dup { display: none; }
}
