/* Daily News - mobile-first, fast, readable. No frameworks. */
:root {
  --text: #1a1a1a;
  --muted: #666;
  --border: #e5e5e5;
  --brand: #0b5fff;
  --brand-dark: #0848c2;
  --bg: #fff;
  --bg-soft: #f6f7f9;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.site-logo:hover { text-decoration: none; color: var(--brand); }
.menu-toggle { margin-left: auto; padding: 8px 12px; border: 1px solid var(--border); background: #fff; border-radius: 8px; cursor: pointer; font: inherit; }
.main-nav { display: none; width: 100%; flex-direction: column; gap: 4px; }
.main-nav.open { display: flex; }
.main-nav a { color: var(--text); font-weight: 600; padding: 8px 0; border-top: 1px solid var(--border); }
.header-search { display: flex; width: 100%; gap: 8px; }
.header-search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.header-search button, .btn { padding: 9px 14px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.header-search button:hover, .btn:hover { background: var(--brand-dark); }

/* Hero and cards */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p, .card-excerpt { color: var(--muted); margin: 0 0 10px; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.meta a { color: var(--muted); font-weight: 600; }
.section-title { font-size: 1.25rem; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card-body { padding: 14px; }
.card h2, .card h3 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 8px; }
.card h2 a, .card h3 a { color: var(--text); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); }

/* Article */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin: 20px 0 10px; }
.article { max-width: 760px; margin: 0 auto; padding: 16px 0 32px; }
.article h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.article-hero { border-radius: var(--radius); margin: 16px 0; }
.article-content { font-size: 1.08rem; line-height: 1.75; }
.article-content p { margin: 0 0 1.1em; }
.article-content h2 { font-size: 1.4rem; margin: 1.4em 0 0.6em; line-height: 1.3; }
.article-content h3 { font-size: 1.2rem; margin: 1.2em 0 0.5em; }
.article-content img { border-radius: var(--radius); }
.article-content a { word-break: break-word; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.article-tags a { padding: 5px 10px; background: var(--bg-soft); border-radius: 999px; color: var(--text); font-size: 0.85rem; }
.related { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 16px; }

/* Ads - always visible, never hidden */
.ad-slot { margin: 20px auto; text-align: center; }
.ad-slot iframe, .ad-slot ins, .ad-slot img { max-width: 100%; }

/* Wait page - same card style as the rest of the site, click-only */
.wait-page { max-width: 560px; margin: 32px auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.wait-page h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 12px; }
.wait-title { font-weight: 700; margin: 0 0 8px; }
.wait-dest { word-break: break-all; color: var(--muted); font-size: 0.95rem; margin: 0 0 8px; }
.wait-target { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.wait-note { color: var(--muted); font-size: 0.85rem; margin: 16px 0 0; }
.btn-large { display: inline-block; width: 100%; padding: 14px 20px; font-size: 1.05rem; margin-top: 16px; }
.btn:disabled, .btn-large:disabled { background: #9ca3af; cursor: not-allowed; }

/* Pagination, forms, footer */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.pagination .current { background: var(--text); color: #fff; }
.empty { color: var(--muted); padding: 32px 0; }
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); margin-top: 32px; padding: 24px 0 16px; }
.footer-inner { display: grid; gap: 16px; }
.copyright { text-align: center; color: var(--muted); font-size: 0.85rem; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  .article h1 { font-size: 2.5rem; }
  .menu-toggle { display: none; }
  .main-nav { display: flex; width: auto; flex-direction: row; gap: 18px; margin-left: auto; }
  .main-nav a { border-top: 0; padding: 0; }
  .header-search { width: 220px; margin-left: auto; }
  .header-inner { flex-wrap: nowrap; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
