/* =========================================================
   Great Udaipur — news magazine theme
   Hand-written, no framework. Mobile first.
   ========================================================= */

:root {
  --brand: #b3121f;
  --brand-dark: #8a0d17;
  --gold: #e8a33d;
  --ink: #15171c;
  --ink-2: #353a45;
  --muted: #6a7180;
  --line: #e4e6eb;
  --soft: #f4f5f7;
  --paper: #ffffff;
  --night: #0f1724;
  --night-2: #172234;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .06);
  --wrap: 1240px;
  --sans: "Inter", "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Mukta", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; }
.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ---------- top bar ---------- */
.topbar { background: var(--night); color: #c9d0dc; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.today { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-width: 0; }
.d-short { display: none; }
.top-links { display: flex; align-items: center; gap: 16px; }
.top-links a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s; }
.top-links a:hover { color: #fff; }

/* ---------- masthead ---------- */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-text { min-width: 0; }
.brand img { width: 150px; height: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 700 30px/1 var(--serif); letter-spacing: -.01em; }
.brand-tag { font-size: 13px; color: var(--muted); margin-top: 6px; }
.adv { display: block; max-width: 560px; flex: 1 1 auto; }
.adv img { width: 100%; height: auto; border-radius: 8px; background: var(--night); }

/* ---------- navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--brand); color: #fff; transition: box-shadow .2s; }
.navbar.is-stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.navbar-in { display: flex; align-items: center; min-height: 52px; gap: 8px; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav a { display: block; padding: 15px 16px; font-weight: 600; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-toggle, .search-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font-size: 22px; }
.nav-toggle:hover, .search-toggle:hover { background: rgba(255, 255, 255, .12); }
.nav-toggle { display: none; }
.search-panel { background: var(--brand-dark); padding-block: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--ink); }
.search-form button { border: 0; border-radius: 8px; padding: 0 20px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- ticker ---------- */
.ticker { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker-in { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--brand); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(179, 18, 31, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(179, 18, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 18, 31, 0); } }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-move a { padding-inline: 22px; white-space: nowrap; color: var(--ink-2); position: relative; }
.ticker-move a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--gold); }
.ticker-move a:hover { color: var(--brand); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- section headers ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.section-head h2 { font: 700 20px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: #fff; padding: 10px 14px 8px; border-radius: 6px 6px 0 0; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--brand); }
.section-head a:hover { text-decoration: underline; }
.section-head.on-dark { border-color: rgba(255, 255, 255, .25); }
.section-head.on-dark h2 { background: var(--gold); color: var(--night); }
.section-head.on-dark a { color: var(--gold); }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--soft); aspect-ratio: 16 / 10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font: 700 19px/1.3 var(--serif); }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s, color .2s; }
.card-title a:hover { color: var(--brand); background-size: 100% 1px; }
.excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.meta time { display: inline-flex; align-items: center; gap: 5px; }
.chip { align-self: flex-start; display: inline-block; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 4px; transition: background .2s; }
.chip:hover { background: var(--ink); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--night-2), var(--brand-dark)); color: rgba(255, 255, 255, .85); font: 700 18px/1.2 var(--serif); text-align: center; padding: 12px; }

/* lead */
.card-lead .card-img { aspect-ratio: 16 / 9; }
.card-lead .card-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.card-lead .excerpt { font-size: 17px; }

/* overlay */
.card-overlay { border-radius: var(--radius); overflow: hidden; }
.card-overlay .card-img { border-radius: 0; aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
.card-overlay .card-body { position: relative; margin-top: auto; padding: 60px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(8, 10, 16, .88)); }
.card-overlay .card-title { font-size: 17px; }
.card-overlay .meta { color: rgba(255, 255, 255, .78); }
.card-overlay { min-height: 220px; justify-content: flex-end; }

/* list */
.card-list { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-list .card-body { padding-top: 0; }
.card-list .card-title { font-size: 21px; }

/* mini */
.card-mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.card-mini .card-img { aspect-ratio: 1; border-radius: 8px; }
.card-mini .card-body { padding: 0; gap: 4px; }
.card-mini .card-title { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-mini .ph { font-size: 11px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; padding-block: 28px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-side .card-overlay { min-height: 0; }
.hero-side .card-overlay .card-title { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 28px 48px; align-items: start; }
.band { background: var(--night); color: #fff; padding-block: 40px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroller .card { scroll-snap-align: start; min-height: 300px; }
.cat-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px 56px; }
.cat-block { display: flex; flex-direction: column; }
.cat-block > .card { margin-bottom: 18px; }
/* equal-height columns: fixed line counts for title/excerpt, fixed-height rows below */
.cat-block .card-grid .card-title { font-size: 19px; line-height: 1.3; height: calc(2 * 1.3em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-block .card-grid .excerpt { line-height: 1.55; height: calc(2 * 1.55em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list { display: grid; gap: 14px; grid-auto-rows: 96px; }
.cat-block .card-mini { height: 96px; overflow: hidden; }
.cat-block .card-mini .card-title { -webkit-line-clamp: 2; height: calc(2 * 1.35em); }
.cat-block .card-mini .card-img { height: 96px; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid .card-title { font-size: 19px; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; gap: 4px; min-width: 42px; height: 42px; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .dots { border: 0; min-width: 0; }

/* ---------- sidebar ---------- */
.sidebar { display: grid; gap: 28px; }
.widget-title { font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--line); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 44px; height: 2px; background: var(--brand); }
.widget-ad img { width: 100%; border-radius: var(--radius); }
.side-search { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.side-search input { flex: 1; min-width: 0; border: 0; padding: 11px 12px; outline: 0; }
.side-search button { border: 0; background: var(--ink); color: #fff; width: 46px; cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.side-search:focus-within { border-color: var(--brand); }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding-block: 10px; border-bottom: 1px dashed var(--line); }
.ranked li::before { content: counter(r, decimal-leading-zero); font: 700 22px/1 var(--serif); color: var(--line); color: #c6cad3; }
.ranked a { font: 600 15px/1.4 var(--serif); }
.ranked a:hover { color: var(--brand); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.cat-list a:hover, .cat-list a[aria-current] { color: var(--brand); }
.cat-list span { font-size: 12px; background: var(--soft); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.widget-cta { background: linear-gradient(140deg, var(--night), var(--night-2)); color: #fff; padding: 22px; border-radius: var(--radius); }
.widget-cta h2 { font: 700 21px/1.25 var(--serif); }
.widget-cta p { color: #c9d0dc; font-size: 14px; margin: 8px 0 16px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 8px; background: #25d366; color: #0b2b17; font-weight: 700; font-size: 15px; transition: filter .2s; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .3); margin-top: 8px; }

/* ---------- page head (archives) ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding-block: 24px 30px; }
.page-head h1 { font: 700 clamp(30px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -.01em; }
.page-head-row { display: flex; align-items: center; gap: 18px; }
.kicker { margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.page-sub { margin: 8px 0 0; color: var(--muted); }
.avatar { border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.crumbs .i { font-size: 11px; }
.empty { text-align: center; padding: 40px 20px; background: var(--soft); border-radius: var(--radius); }
.empty h2 { font: 700 26px var(--serif); }
.empty .side-search { max-width: 420px; margin: 18px auto 0; }

/* ---------- single post ---------- */
.single .crumbs { margin-bottom: 18px; }
.post-head { margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.post-title { font: 700 clamp(30px, 4.4vw, 48px)/1.12 var(--serif); letter-spacing: -.015em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.by { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.by img { border-radius: 50%; }
.updated { color: var(--ink-2); }
.post-hero { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.post-hero img { width: 100%; }
.post-hero figcaption { padding: 8px 12px; font-size: 12px; color: var(--muted); background: var(--soft); }
.post-hero figcaption a { color: inherit; text-decoration: underline; }

.entry { font: 400 19px/1.75 var(--serif); color: #1f2229; overflow-wrap: anywhere; }
.entry > * + * { margin-top: 1.1em; }
.entry p { margin: 0; }
.entry h2, .entry h3, .entry h4, .entry h5, .entry h6 { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-top: 1.6em; line-height: 1.25; }
.entry h2 { font-size: 1.55em; }
.entry h3 { font-size: 1.3em; }
.entry h4 { font-size: 1.15em; }
.entry h5, .entry h6 { font-size: 1em; }
.entry a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--brand); }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); font-style: italic; color: var(--ink-2); }
.entry hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.entry img { border-radius: 8px; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font: 400 14px/1.5 var(--sans); color: var(--muted); margin-top: 8px; text-align: center; }
.entry table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--sans); }
@media (max-width: 640px) { .entry table { display: block; overflow-x: auto; } }
.entry img, .entry video, .entry iframe, .entry embed { max-width: 100% !important; height: auto; }
.entry pre { overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.entry th { background: var(--soft); }
.entry iframe { max-width: 100%; }
.entry .aligncenter, .entry .wp-block-image.aligncenter img { margin-inline: auto; }
.entry .wp-block-image img { margin-inline: auto; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.entry .wp-block-gallery figure { margin: 0; }
.entry .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.entry .wp-block-column { flex: 1 1 260px; min-width: 0; }
.entry .wp-block-latest-posts__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; font: 600 16px/1.4 var(--sans); }
.entry .wp-block-latest-posts__list a { text-decoration: none; color: var(--ink); }

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-block: 18px; border-block: 1px solid var(--line); }
.share > span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; font-size: 18px; cursor: pointer; transition: transform .2s; }
.share a:hover, .share button:hover { transform: translateY(-2px); }
.s-wa { background: #25d366; } .s-fb { background: #1877f2; } .s-x { background: #111; } .s-in { background: #0a66c2; } .s-copy { background: var(--muted); }
.s-copy.done { background: #16a34a; }

.author-box { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-top: 32px; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.author-photo img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.author-info .kicker { margin-bottom: 4px; }
.author-name { font: 700 24px/1.2 var(--serif); }
.author-name a:hover { color: var(--brand); }
.author-role { margin: 4px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.author-bio { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; }
.author-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s; }
.author-links a:hover { border-color: var(--brand); color: var(--brand); }
.author-links a:first-child { background: var(--brand); border-color: var(--brand); color: #fff; }
.author-links a:first-child:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .author-box { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .author-photo { justify-self: center; }
  .author-links { justify-content: center; }
}

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.post-nav small { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.post-nav span { font: 700 17px/1.35 var(--serif); }
.pn-next { text-align: right; align-items: flex-end; grid-column: 2; }
.related { margin-top: 44px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 56px 72px; }
.notfound .big { font: 700 120px/1 var(--serif); color: var(--brand); margin: 0; }
.notfound h1 { font: 700 34px var(--serif); margin-top: 8px; }
.notfound > p { color: var(--muted); }
.notfound .side-search { max-width: 460px; margin: 20px auto 44px; }
.notfound .grid { text-align: left; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #b9c1ce; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-block: 52px 40px; }
.footer-brand { font: 700 26px/1 var(--serif); color: #fff; display: inline-block; margin-bottom: 14px; }
.footer-title { color: #fff; font: 700 14px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer p { margin: 0 0 12px; }
.site-footer a:hover { color: #fff; }
.site-footer p a, .contact-list a { color: var(--gold); }
.footer-list, .contact-list { list-style: none; margin: 0; padding: 0; }
.footer-list a { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.footer-list span { color: #7f8899; font-size: 13px; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 14px; }
.contact-list .i { color: var(--gold); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.social a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 18px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 600; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(179, 18, 31, .35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav a { padding: 15px 11px; font-size: 14px; }
  .nav a::after { left: 11px; right: 11px; }
  .nav-cta { padding: 8px 11px; font-size: 13px; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .card-list { grid-template-columns: 200px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .cat-blocks { grid-template-columns: 1fr 1fr; }
  .adv { display: none; }
  .masthead-in { justify-content: center; }

  .nav-toggle { display: grid; }
  .navbar-in { justify-content: space-between; }
  .nav { position: fixed; inset: 0 25% 0 0; z-index: 70; background: var(--night); padding: 70px 0 24px; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 16px; }
  .nav a::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: scaleY(0); }
  .nav a[aria-current]::after { transform: scaleY(1); }
  body.menu-open .navbar { z-index: 75; }
  body.menu-open .nav { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 65; }
  body.menu-open .nav-toggle { position: fixed; top: 10px; left: 12px; z-index: 80; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none !important; }
  .top-links { gap: 12px; }
  .today { font-size: 12px; }
  .brand img { width: 110px; }
  .brand-name { font-size: 24px; }
  .brand-tag { font-size: 12px; }
  .hero { padding-block: 18px; gap: 16px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side .card-overlay { min-height: 200px; }
  .card-list { grid-template-columns: 112px 1fr; gap: 14px; }
  .card-list .card-img { aspect-ratio: 1; }
  .card-list .card-title { font-size: 17px; }
  .card-list .excerpt { display: none; }
  .grid, .grid-3, .cat-blocks, .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .entry { font-size: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; }
  .section-head h2 { font-size: 16px; }
}
/* ---------- quick facts / post faq ---------- */
.quick-facts { margin: 0 0 30px; padding: 18px 20px; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.quick-facts h2 { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 12px; }
.quick-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 0 24px; }
.quick-facts dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.45; }
.quick-facts dt { font-weight: 700; color: var(--ink); }
.quick-facts dd { margin: 0; color: var(--ink-2); }
.qf-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.post-faq { margin-top: 36px; }
.post-faq h2 { font: 700 24px/1.3 var(--serif); margin-bottom: 14px; }
.sources { margin-top: 18px; font-size: 13px; color: var(--muted); }
.sources a { color: var(--ink-2); text-decoration: underline; }
@media (max-width: 900px) { .quick-facts dl { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .quick-facts dl > div { grid-template-columns: 1fr; gap: 2px; } .quick-facts { padding: 16px; } }

/* ---------- plan your visit ---------- */
.entry .plan-visit { margin-top: 1.6em; padding: 14px 16px; background: var(--soft); border-left: 4px solid var(--gold); border-radius: 8px; font: 400 16px/1.6 var(--sans); }

/* ---------- sponsored label ---------- */
.sponsored-note { margin: 0 0 22px; padding: 10px 14px; border-radius: 8px; background: #fff7e8; border: 1px solid #f3d9a6; font-size: 14px; color: var(--ink-2); }
.sponsored-note strong { color: var(--brand); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; margin-right: 4px; }
.sponsored-note a { color: var(--brand); text-decoration: underline; }
.lyb code { font-size: 14px; background: var(--soft); padding: 1px 6px; border-radius: 4px; }

/* ---------- list your business ---------- */
.nav-cta { flex: none; display: inline-flex; align-items: center; padding: 9px 14px; margin-right: 4px; border-radius: 8px; background: var(--gold); color: var(--night); font-weight: 700; font-size: 14px; white-space: nowrap; transition: filter .2s; }
.nav-cta:hover, .nav-cta[aria-current] { filter: brightness(1.08); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.footer-cta { display: inline-block; margin-top: 4px; padding: 8px 12px; border-radius: 8px; background: var(--gold); color: var(--night) !important; font-weight: 700; }
.lyb-head h1 { max-width: 820px; }
.lyb-lead { max-width: 760px; font-size: 17px; color: var(--ink-2); }
.lyb-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lyb-cta-row .btn { min-width: 180px; }
.lyb-section + .lyb-section { margin-top: 40px; }
.lyb-section h2 { font: 700 28px/1.2 var(--serif); margin-bottom: 14px; }
.lyb-section > p { color: var(--ink-2); font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.lyb-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lyb-points li { position: relative; padding: 14px 16px 14px 48px; background: var(--soft); border-radius: var(--radius); line-height: 1.55; color: var(--ink-2); }
.lyb-points li::before { content: "✓"; position: absolute; left: 16px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 13px/22px var(--sans); text-align: center; }
.lyb-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lyb-steps li { counter-increment: s; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.5; color: var(--ink-2); }
.lyb-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--night); color: #fff; font-weight: 700; }
.lyb-steps strong { display: block; color: var(--ink); }
.lyb-form { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f span, .cap-q span { color: var(--brand); }
.f-wide { grid-column: 1 / -1; }
.f input, .f select, .f textarea, .captcha input { width: 100%; padding: 11px 12px; border: 1px solid #d3d7de; border-radius: 8px; background: #fff; font-weight: 400; font-size: 15px; color: var(--ink); }
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .captcha input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.price-box { margin-top: 22px; border-radius: 12px; overflow: hidden; border: 2px solid var(--brand); }
.price-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 18px 20px; background: linear-gradient(140deg, var(--night), var(--night-2)); color: #fff; }
.price-label { margin: 0; color: #c9d0dc; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.price { margin: 4px 0 0; font: 700 44px/1 var(--serif); color: #fff; }
.price span { font-size: 28px; vertical-align: 10px; margin-right: 2px; color: var(--gold); }
.price small { display: block; margin-top: 6px; font: 600 13px var(--sans); color: var(--gold); }
.price-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #dfe4ec; }
.price-top li::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.agree { display: flex; gap: 10px; align-items: flex-start; padding: 14px 20px; background: #fff7e8; font-size: 14px; line-height: 1.5; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.price-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 16px 20px 6px; }
.captcha { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.captcha input { width: 120px; }
.price-bottom .btn { border: 0; cursor: pointer; }
.price-note { margin: 0; padding: 6px 20px 16px; font-size: 13px; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; line-height: 1.5; }
.notice-ok { background: #e8f8ee; color: #136c34; border: 1px solid #b6e6c7; }
.notice-err { background: #fdecee; color: var(--brand-dark); border: 1px solid #f5c2c7; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 900px) { .nav-cta { margin-left: auto; } }
@media (max-width: 640px) {
  .f-grid { grid-template-columns: 1fr; }
  .lyb-steps { grid-template-columns: 1fr; }
  .lyb-form { padding: 16px; }
  .price { font-size: 38px; }
  .price-bottom .btn { width: 100%; }
  .captcha input { width: 100%; }
  .captcha { width: 100%; }
  .lyb-cta-row .btn { flex: 1; min-width: 0; }
  .nav-cta { padding: 8px 10px; font-size: 13px; }
}

/* small phones (≤ 480px) */
@media (max-width: 480px) {
  .wrap { padding-inline: 14px; }
  .topbar { font-size: 12px; }
  .topbar-in { gap: 8px; }
  .top-links { gap: 10px; }
  .d-long { display: none; }
  .d-short { display: inline; }
  .masthead-in { justify-content: flex-start; padding-block: 14px; }
  .brand { gap: 10px; }
  .brand img { width: 92px; }
  .brand-name { font-size: 22px; }
  .brand-tag { font-size: 11.5px; line-height: 1.35; margin-top: 4px; }
  .ticker-label { font-size: 11px; }
  .ticker-in { gap: 10px; }
  .page-head { padding-block: 18px 22px; }
  .post-title { font-size: 28px; }
  .post-meta { gap: 6px 14px; font-size: 13px; }
  .entry { font-size: 17px; }
  .card-list { grid-template-columns: 100px 1fr; gap: 12px; }
  .card-list .card-title { font-size: 16px; }
  .share a, .share button { width: 38px; height: 38px; }
  .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; }
  .pagination .prev, .pagination .next { flex-basis: 100%; order: 2; }
  .footer-bottom-in { flex-direction: column; }
}
@media (max-width: 360px) {
  .top-links a[aria-label] { display: none; }
  .brand-tag { display: none; }
}

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

/* ---------- CMS helpers ---------- */
/* heading-tag swaps keep the designed look (owner can turn an H2 into H3/div without visual change) */
:where(.hx-h1){font-size:2em;font-weight:700}:where(.hx-h2){font-size:1.5em;font-weight:700}:where(.hx-h3){font-size:1.17em;font-weight:700}
.page-head .hx-h1{font:700 clamp(30px, 4vw, 44px)/1.1 var(--serif);letter-spacing:-.01em;margin:0}
.lyb-section > .hx-h2{font:700 28px/1.2 var(--serif);margin-bottom:14px}
.lyb-prose > p{color:var(--ink-2);font-size:17px;line-height:1.7;margin:0 0 14px}
.lyb-prose a{color:var(--brand);text-decoration:underline}
.faq summary .faq-q{display:inline;font:inherit;margin:0}
@media (max-width:640px){.sec-hide-m{display:none!important}}
