/* ============================================================
   Kanadada.com — News UI (simple, light, mobile-first friendly)
   Loaded after style.css; uses its design tokens.
   ============================================================ */

:root { --c1: #4F7CFF; --c2: #0E1426; --c3: #7C3AED; --bottom-nav-h: 60px; }

::selection { background: var(--color-red); color: #fff; }
:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; border-radius: 6px; }
body { padding-top: 0; }
body.no-scroll { overflow: hidden; }
.container { max-width: 1180px; }
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--color-red); box-shadow: none; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Header (solid, sticky) ---------- */
.site-header {
  position: sticky; top: 0; left: auto; right: auto; transform: none; width: 100%;
  background: var(--color-surface); border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(16,24,40,.06); }
.site-header .header-inner { height: var(--header-h); max-width: 1180px; padding: 0 24px; gap: 20px; }
.logo { gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--color-text); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--color-red); color: #fff; font-size: 15px; }
.logo-dot { color: var(--color-red); }
.main-nav { gap: 2px; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--color-text-muted); }
.main-nav a:hover, .main-nav a.active { background: var(--color-surface-2); color: var(--color-text); }
.header-actions { gap: 8px; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text-muted); font-size: 14px; }
.search-trigger span { min-width: 110px; text-align: left; }
.search-trigger:hover { background: var(--color-border); }
.icon-btn { width: 38px; height: 38px; background: transparent; color: var(--color-text); }
.icon-btn:hover { background: var(--color-surface-2); }
.theme-toggle .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-dark { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-light { display: inline; color: var(--color-gold); }
.header-auth-links { display: flex; gap: 6px; align-items: center; }
.header-auth-links .btn { padding: 9px 16px; font-size: 14px; }
.user-menu-btn { border-radius: 999px; padding: 4px 12px 4px 4px; height: 38px; color: var(--color-text); }
.user-menu-dropdown { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; }
.hamburger, .mobile-nav { display: none !important; }

/* ---------- Category bar ---------- */
.news-catbar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.news-catbar-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; -webkit-overflow-scrolling: touch; }
.news-catbar-nav::-webkit-scrollbar { display: none; }
.news-catbar-nav a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--color-text-muted); background: var(--color-surface-2); transition: background .15s ease, color .15s ease; }
.news-catbar-nav a:hover { color: var(--color-text); }
.news-catbar-nav a.active { background: var(--color-text); color: var(--color-surface); }
html[data-theme="dark"] .news-catbar-nav a.active { background: var(--color-red); color: #fff; }

/* ---------- Placeholder (light tint of category colour) ---------- */
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: color-mix(in srgb, var(--c1) 14%, var(--color-surface)); color: color-mix(in srgb, var(--c1) 75%, #000); }
.ph i { font-size: 26px; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--color-indigo-tint); color: var(--color-indigo); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); display: inline-block; flex-shrink: 0; }

/* ============================================================
   SLIDER
   ============================================================ */
.news-home { padding-top: 18px; padding-bottom: 40px; }
.slider { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--color-surface-2); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 400px; display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 72%, #000), color-mix(in srgb, var(--c3) 62%, #000));
}
.slide-bg { position: absolute; inset: 0; }
.slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.slide-bg i { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); font-size: clamp(120px, 20vw, 220px); opacity: .16; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%); }
.slide-body { position: relative; z-index: 1; padding: 30px 34px 66px; max-width: 760px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.slide h2 { color: #fff; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.slide p { color: rgba(255,255,255,.9); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-time { font-size: 13px; color: rgba(255,255,255,.8); }
.slider-btn { position: absolute; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111827; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 2; transition: transform .15s ease; }
.slider-btn:hover { transform: scale(1.07); }
.slider-btn.prev { right: 66px; } .slider-btn.next { right: 18px; }
.slider-dots { position: absolute; left: 34px; bottom: 30px; display: flex; gap: 8px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .25s ease, background .25s ease; padding: 0; }
.slider-dots button.is-active { width: 26px; background: #fff; }

/* ============================================================
   HEADLINE LIST
   ============================================================ */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.section-head h2 { font-size: 22px; letter-spacing: -.02em; }
.view-all-link { font-size: 14px; font-weight: 700; color: var(--color-red); display: inline-flex; gap: 6px; align-items: center; }
.hl-list { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 0 20px; }
.hl { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.hl:last-child { border-bottom: 0; }
.hl-main { flex: 1; min-width: 0; }
.hl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--color-text-muted); margin-bottom: 5px; }
.hl-cat { font-weight: 700; color: color-mix(in srgb, var(--c1) 42%, var(--color-text)); }
.hl-cat:hover { text-decoration: underline; }
.hl-title { font-size: 17.5px; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
.hl-title a:hover { color: var(--color-red); }
.hl-excerpt { margin-top: 5px; font-size: 14px; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-thumb { width: 96px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; background: var(--color-surface-2); }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hl--compact { padding: 12px 0; gap: 12px; }
.hl--compact .hl-title { font-size: 15px; }
.hl--compact .hl-thumb { width: 60px; height: 60px; }
.more-btn { margin-top: 14px; }

.cat-boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.cat-box { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--c1); border-radius: 16px; padding: 14px 18px 4px; }
.cat-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.cat-box-head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cat-box-head a { font-size: 13px; font-weight: 700; color: var(--color-red); }
.cat-box .hl--compact .hl-meta { display: none; }
.cat-box .hl--compact .hl-thumb { display: none; }

/* sidebar */
.home-side { display: flex; flex-direction: column; gap: 16px; }
.side-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 18px 20px; }
.side-box h3 { font-size: 16px; margin-bottom: 10px; }
.trending { list-style: none; }
.trending li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--color-border); align-items: flex-start; }
.trending li:first-child { border-top: 0; padding-top: 2px; }
.trend-num { font-size: 22px; font-weight: 800; color: var(--color-red); min-width: 20px; line-height: 1.1; }
.trending a { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.trending a:hover { color: var(--color-red); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 13px; font-size: 13.5px; font-weight: 600; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); }
.chip:hover { background: var(--color-border); }
.chip.active { background: var(--color-text); color: var(--color-surface); }
.side-cta { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: #C41B31; color: #fff; }
.side-cta strong { font-size: 17px; } .side-cta span { font-size: 14px; }
.side-cta:hover { background: #A8162A; }

.empty-hero { text-align: center; padding: 100px 20px; color: var(--color-text-muted); }
.empty-hero i { font-size: 48px; color: var(--color-red); margin-bottom: 14px; }
.empty-hero h1 { font-size: 28px; margin-bottom: 6px; color: var(--color-text); }

/* ---------- Page headings (list/search) ---------- */
.page-top { padding-top: 22px; }
.page-title-lg { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.025em; margin-bottom: 4px; }
.page-sub { color: var(--color-text-muted); font-size: 14px; margin-bottom: 4px; }
.search-page-form { display: flex; gap: 8px; max-width: 560px; margin: 12px 0 6px; }
.search-page-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--color-border-strong); border-radius: 10px; font-size: 16px; background: var(--color-surface); color: var(--color-text); }
.search-results-wrap { margin-top: 18px; padding-bottom: 40px; }
.breadcrumb { font-size: 13px; color: var(--color-text-muted); padding: 0 0 10px; }
.breadcrumb a:hover { color: var(--color-red); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); font-weight: 600; }
.pagination a.active { background: var(--color-text); color: var(--color-surface); border-color: var(--color-text); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--color-text-muted); background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: 16px; }

/* ============================================================
   ARTICLE
   ============================================================ */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; transform-origin: 0 50%; transform: scaleX(0); background: var(--color-red); }
.art-breadcrumb { padding: 16px 24px 4px; font-size: 13px; color: var(--color-text-muted); }
.art-breadcrumb a:hover { color: var(--color-red); }
.art-layout { display: grid; grid-template-columns: 52px minmax(0, 720px) 300px; gap: 36px; justify-content: center; padding-top: 14px; padding-bottom: 48px; }
.art-share { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 10px; }
.art-share-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); font-size: 16px; }
.art-share-btn:hover { background: var(--color-surface-2); }
.art-share-btn.active { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.art-share-btn.art-like { height: auto; padding: 10px 0 8px; flex-direction: column; gap: 2px; border-radius: 22px; }
.art-share-btn.art-like .blog-like-count { font: 700 11px var(--font-body); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--c1) 42%, var(--color-text)); }
.art-title { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; margin: 12px 0 12px; text-wrap: balance; }
.art-lead { font-size: 18.5px; line-height: 1.5; color: var(--color-text-muted); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 18px 0 22px; padding: 12px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); font-size: 13.5px; color: var(--color-text-muted); }
.art-meta .by { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text); font-weight: 700; }
.art-meta .avatar-sm { width: 28px; height: 28px; }
.art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art-cover { border-radius: 16px; overflow: hidden; margin: 0 0 24px; aspect-ratio: 16/9; background: var(--color-surface-2); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-body { font-size: 18px; line-height: 1.75; color: var(--color-text); }
.art-body p { margin-bottom: 1.1em; }
.art-body h2, .art-body h3 { margin: 1.6em 0 .5em; letter-spacing: -.015em; }
.art-body h3 { font-size: 20px; }
.art-body ul, .art-body ol { padding-left: 24px; margin-bottom: 1.1em; list-style: disc; }
.art-body ol { list-style: decimal; }
.art-body a { color: var(--color-red); text-decoration: underline; text-underline-offset: 3px; }
.art-body img { border-radius: 12px; margin: 1.2em 0; }
.art-body blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--color-red); color: var(--color-text-muted); }
.source-card { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0 10px; padding: 16px 18px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.source-card-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 16px; color: var(--color-red); background: var(--color-red-tint); }
.source-card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.source-card p { font-size: 13.5px; color: var(--color-text-muted); }
.source-card .btn { margin-top: 10px; }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.art-tags .tag { padding: 6px 13px; border-radius: 999px; background: var(--color-surface-2); font-size: 13px; font-weight: 600; }
.art-share-inline { display: none; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.art-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.blog-comments { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.blog-comments h2 { font-size: 20px; margin-bottom: 14px; }
.comment-form textarea { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border-strong); border-radius: 12px; padding: 12px 14px; }
.comment-login-cta { padding: 16px; border-radius: 12px; background: var(--color-surface-2); text-align: center; font-weight: 600; }
.comment-login-cta a { color: var(--color-red); text-decoration: underline; }

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay[hidden] { display: none; }
.search-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 0; }
.search-overlay-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.5); }
.search-dialog { position: relative; width: min(640px, 100%); background: var(--color-surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-dialog-form { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--color-border); }
.search-dialog-form > i { color: var(--color-text-muted); }
.search-dialog-form input { flex: 1; border: 0; background: transparent; font-size: 17px; color: var(--color-text); padding: 6px 0; outline: none; box-shadow: none; min-width: 0; }
.search-close { font: 600 12px var(--font-body); padding: 6px 10px; border-radius: 8px; background: var(--color-surface-2); color: var(--color-text-muted); }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--color-border); }
.search-results a:hover { background: var(--color-surface-2); }
.sr-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--color-red); min-width: 78px; }
.sr-title { flex: 1; font-weight: 600; font-size: 15px; }
.search-results i { color: var(--color-text-muted); font-size: 12px; }
.search-empty { padding: 22px; text-align: center; color: var(--color-text-muted); font-size: 14px; }
.search-hint { padding: 10px 18px; font-size: 12px; color: var(--color-text-muted); background: var(--color-surface-2); }
.search-hint kbd { font: 600 11px var(--font-body); padding: 2px 6px; border-radius: 6px; background: var(--color-surface); border: 1px solid var(--color-border-strong); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); color: var(--color-text); margin-top: 16px; padding: 40px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 28px; }
.footer-brand .logo { color: var(--color-text); }
.footer-tagline { margin-top: 12px; font-size: 15px; color: var(--color-text); max-width: none; }
.footer-ai-note { font-size: 12.5px; color: var(--color-text-muted); margin-top: 6px; max-width: 38ch; }
.footer-col .footer-h { color: var(--color-text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-col a { display: block; color: var(--color-text); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--color-red); padding-left: 0; }
.footer-bottom { border-top: 1px solid var(--color-border); padding: 16px 0; font-size: 13px; color: var(--color-text-muted); }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.bottom-nav { display: none; }

/* ============================================================
   ADMIN — automation page
   ============================================================ */
.news-admin-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.news-admin-card h2 { font-size: 18px; margin-bottom: 14px; }
.hours-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.hours-grid label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; padding: 8px 0; border: 1px solid var(--color-border); border-radius: 8px; cursor: pointer; background: var(--color-surface); }
.hours-grid input:checked + span { font-weight: 800; color: var(--color-red); }
.news-log { background: #111827; color: #E5E7EB; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; padding: 14px 16px; border-radius: 10px; white-space: pre-wrap; max-height: 360px; overflow: auto; }
.news-code { background: var(--color-surface-2); padding: 10px 12px; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; display: block; margin: 6px 0 12px; }
.news-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.news-help { font-size: 12.5px; color: var(--color-text-muted); margin-top: 4px; }
.news-ai-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--color-indigo-tint); color: var(--color-indigo); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 720px) 280px; }
  .art-share { display: none; }
  .art-share-inline { display: flex; }
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 24px; }
  .art-layout { grid-template-columns: minmax(0, 1fr); padding-left: 0; padding-right: 0; }
  .art-side { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --header-h: 54px; }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); font-size: 16px; }
  .container, .site-header .header-inner { padding-left: 16px; padding-right: 16px; }
  .site-header .header-inner { gap: 8px; }
  .main-nav, .search-trigger, .header-auth-links, .user-menu { display: none; }
  .header-actions { margin-left: auto; }
  .logo { font-size: 19px; }
  .art-breadcrumb { padding: 12px 16px 0; }

  .news-catbar-nav { padding: 9px 0; gap: 8px; }
  .news-catbar-nav a { padding: 8px 15px; font-size: 14.5px; }

  .news-home { padding-top: 12px; }
  .slider { margin: 0 -16px; border-radius: 0; }
  .slide { min-height: 330px; }
  .slide-body { padding: 20px 18px 46px; gap: 8px; }
  .slide h2 { font-size: 23px; }
  .slide p { display: none; }
  .slider-btn { display: none; }
  .slider-dots { bottom: 16px; left: 0; right: 0; justify-content: center; }

  .hl-list { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 0 16px; }
  .hl { padding: 15px 0; gap: 14px; }
  .hl-title { font-size: 16.5px; }
  .hl-thumb { width: 88px; height: 66px; }
  .hl-excerpt { display: none; }
  .cat-boxes { grid-template-columns: 1fr; gap: 12px; }
  .section-head h2 { font-size: 20px; }
  .btn, .chip, .pagination a { min-height: 44px; }
  .more-btn { display: flex; align-items: center; justify-content: center; }

  .art-title { font-size: 27px; }
  .art-lead { font-size: 17px; }
  .art-body { font-size: 17.5px; line-height: 1.75; }
  .art-cover { margin: 0 -16px 20px; border-radius: 0; }
  .art-layout > article, .art-layout > aside { padding: 0 16px; }

  .news-admin-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }

  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 16px rgba(16,24,40,.06);
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--color-text-muted); font-size: 11px; font-weight: 600; background: none; }
  .bottom-nav i { font-size: 19px; }
  .bottom-nav .active { color: var(--color-red); }
  .search-overlay { padding-top: 0; }
  .search-dialog { width: 100%; border-radius: 0 0 18px 18px; }
  .search-hint { display: none; }
}
@media (max-width: 380px) { .hl-thumb { width: 74px; height: 56px; } .footer-top { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } }

/* ============================================================
   v5 — Long articles, media, motion
   ============================================================ */
.art-figure { margin: 0 0 22px; }
.art-figure .art-cover { margin-bottom: 0; }
.art-figure figcaption { font-size: 12px; color: var(--color-text-muted); padding: 6px 2px 0; text-align: right; }
.art-figure figcaption a:hover { color: var(--color-red); text-decoration: underline; }

.key-points { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--color-red); border-radius: 12px; padding: 16px 20px 6px; margin: 0 0 26px; }
.key-points strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-red); margin-bottom: 8px; }
.key-points ul { list-style: none; padding: 0; margin: 0 0 10px; }
.key-points li { position: relative; padding: 5px 0 5px 22px; font-size: 16px; line-height: 1.5; margin: 0; }
.key-points li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-red); }
.art-body h3 { font-size: 21px; margin: 1.8em 0 .5em; padding-left: 12px; border-left: 4px solid var(--color-red); line-height: 1.25; }
.art-body > h3:first-child { margin-top: 0; }

.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin: 0 0 24px; cursor: pointer; background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 70%, #000), color-mix(in srgb, var(--c3) 60%, #000)); }
.video-embed img { width: 100%; height: 100%; object-fit: cover; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--color-red); font-size: 22px; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .2s ease; }
.video-play i { margin-left: 3px; }
.video-embed:hover .video-play { transform: scale(1.1); }
.video-embed::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; transition: opacity .2s; }
.video-embed.is-playing::after, .video-embed.is-playing .video-play { display: none; }

/* ---------- Motion (transform/opacity only; GPU friendly) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.22,.8,.24,1) var(--rd, 0ms), transform .55s cubic-bezier(.22,.8,.24,1) var(--rd, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes imgIn { from { opacity: 0; } to { opacity: 1; } }

.slide.is-current .slide-body > * { animation: riseIn .7s cubic-bezier(.22,.8,.24,1) both; }
.slide.is-current .slide-body > :nth-child(2) { animation-delay: .08s; }
.slide.is-current .slide-body > :nth-child(3) { animation-delay: .16s; }
.slide.is-current .slide-body > :nth-child(4) { animation-delay: .24s; }
.slide.is-current .slide-bg img { animation: kenburns 9s ease-out both; }
.slider-dots button { position: relative; overflow: hidden; }
.slider-dots button.is-active { background: rgba(255,255,255,.4); }
.slider-dots button.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotfill 6s linear both; }
.slider:hover .slider-dots button.is-active::after { animation-play-state: paused; }

.hl-thumb img, .art-cover img, .video-embed img { animation: imgIn .5s ease both; }
.hl-thumb img { transition: transform .5s cubic-bezier(.22,.8,.24,1); }
.hl:hover .hl-thumb img { transform: scale(1.08); }
.hl-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s; }
.hl:hover .hl-title a { background-size: 100% 2px; }
.cat-box, .side-box { transition: transform .25s ease, box-shadow .25s ease; }
.cat-box:hover, .side-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active, .chip:active, .art-share-btn:active { transform: scale(.96); }
.logo-mark { transition: transform .35s cubic-bezier(.22,.8,.24,1); }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }
.bottom-nav a:active, .bottom-nav button:active { transform: scale(.9); }
.bottom-nav a, .bottom-nav button { transition: color .2s ease, transform .15s ease; }
.trending li { transition: transform .2s ease; }
.trending li:hover { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Accessibility / SEO helpers ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--color-text); color: var(--color-surface); padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; transition: top .15s ease; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#main:focus { outline: none; }
.editorial h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.editorial p, .editorial li { font-size: 16.5px; line-height: 1.7; }
.editorial ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }

/* ---------- Slider dots: 24px+ touch targets (WCAG 2.2 target size) ---------- */
.slider-dots { gap: 0; }
.slider-dots button { width: 28px; height: 28px; padding: 0; background: none; position: relative; overflow: visible; }
.slider-dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 99px; background: rgba(255,255,255,.6); transition: width .25s ease, margin .25s ease; }
.slider-dots button.is-active { width: 40px; background: none; }
.slider-dots button.is-active::before { width: 28px; margin-left: -14px; background: rgba(255,255,255,.4); }
.slider-dots button.is-active::after { inset: auto; left: 50%; top: 50%; width: 28px; height: 9px; margin: -4.5px 0 0 -14px; border-radius: 99px; background: #fff; transform-origin: left; }
.slider-dots { left: 24px; bottom: 22px; }
@media (max-width: 760px) { .slider-dots { left: 0; right: 0; bottom: 10px; } }
.art-body h2 { font-size: 21px; margin: 1.8em 0 .5em; padding-left: 12px; border-left: 4px solid var(--color-red); line-height: 1.25; letter-spacing: -.015em; }
.art-body > h2:first-child { margin-top: 0; }
