/* ==========================================================================
   Namma Shidlaghatta: design system v2
   Brand: crimson #C00818 (app icon + branded photo frame), magenta #E81058 + orange #F09008 (logo), blue (links), warm paper.
   Type: Baloo Tamma 2 (headings) + Noto Sans Kannada (text). Plain CSS, no build step, no nesting (older phones).
   Look: frosted header, soft tonal surfaces (no outlines), sliding-underline tabs, tiles, floating dock, sheets.
   ========================================================================== */
@view-transition { navigation: auto; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --c-crimson: #C00818; --c-crimson-dark: #96060F; --c-orange: #F09008; --c-magenta: #E81058;
  --c-blue: #1E73BE; --c-whatsapp: #128C4A; --c-telegram: #1B7FB5; --c-up: #1E8E4E; --c-down: #C0392B;
  --bg: #F4F2EE; --surface: #FFFFFF; --tone: #ECE8E2; --ink: #17161A; --ink-2: #5E5953;
  --line: #E4E0D9; --chip: #ECE8E2; --link: #1E73BE; --on-dark: #FFFFFF; --dark-panel: #17161A;
  --glass: rgb(244 242 238 / .82);
  --font-head: 'Baloo Tamma 2', 'Noto Sans Kannada', system-ui, sans-serif;
  --font-body: 'Noto Sans Kannada', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-2:  clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --step-3:  clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
  --text-scale: 1;
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem;
  --r-s: 10px; --r-m: 16px; --r-l: 22px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 56px; --dock-h: 86px;
  --red: var(--c-crimson); --orange: var(--c-orange); --card: var(--surface); --muted: var(--ink-2);
  --color-primary: var(--c-crimson); --color-secondary: var(--c-orange); --color-line: var(--line); --color-text-muted: var(--ink-2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0E0E10; --surface: #1A1A1D; --tone: #25252A; --ink: #F1EFEA; --ink-2: #A9A49D; --line: #2c2c31; --chip: #25252A; --link: #6FB3F0; --dark-panel: #08080A; --glass: rgb(14 14 16 / .8); --c-up: #5FD38A; --c-down: #FF8A8A; }
}
:root[data-theme="dark"] { --bg: #0E0E10; --surface: #1A1A1D; --tone: #25252A; --ink: #F1EFEA; --ink-2: #A9A49D; --line: #2c2c31; --chip: #25252A; --link: #6FB3F0; --dark-panel: #08080A; --glass: rgb(14 14 16 / .8); --c-up: #5FD38A; --c-down: #FF8A8A; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 3.5rem); }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.75; padding-bottom: var(--dock-h); overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(240 144 8 / .4); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.layout { display: grid; gap: var(--s-5); padding-block: var(--s-3); }
.main { min-width: 0; }
.aside { display: none; }
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 300; background: var(--c-crimson); color: #fff; padding: .6rem 1rem; border-radius: var(--r-s); }
.skip-link:focus { top: .5rem; }
@media (min-width: 64rem) {
  .layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-6); }
  .aside { display: block; position: sticky; top: calc(var(--header-h) + 4rem); align-self: start; }
  /* No sidebar content (plugin off): one centred reading column instead of a blank right gutter. */
  .layout:not(:has(> .aside)) { grid-template-columns: minmax(0, 48rem); justify-content: center; }
  body { padding-bottom: 0; }
}

/* ---------- buttons, icons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--r-pill); font: 600 .95rem/1 var(--font-head); text-decoration: none; background: var(--chip); color: var(--ink); transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(140deg, var(--c-crimson), var(--c-magenta)); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 .95rem; }
.icon { width: 22px; height: 22px; fill: currentColor; flex: none; } /* Phosphor icons are filled shapes; see inc/icons.php */
.icon-btn { display: inline-grid; place-items: center; position: relative; min-width: 42px; min-height: 42px; background: none; border: 0; border-radius: var(--r-pill); color: var(--ink); transition: background .2s, transform .15s; }
.icon-btn:hover { background: var(--chip); } .icon-btn:active { transform: scale(.92); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- header: frosted, collapsing greeting ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
}
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, var(--c-crimson), var(--c-magenta), var(--c-orange)); opacity: .85; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--header-h); }
.brand img { height: 36px; width: auto; max-width: none; }
:root[data-theme="dark"] .brand img { filter: drop-shadow(0 0 1px rgb(255 255 255 / .95)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: drop-shadow(0 0 1px rgb(255 255 255 / .95)); } }
.tools { display: flex; align-items: center; gap: 2px; }
.tools__send { display: none; margin-left: var(--s-2); }
@media (min-width: 64rem) { .tools__send { display: inline-flex; } }
.site-header.is-small { box-shadow: 0 8px 24px rgb(0 0 0 / .08); }

/* tabs: text with a sliding underline */
.topnav { max-width: 70rem; margin-inline: auto; padding-inline: 1rem; }

.topnav ul { position: relative; display: flex; gap: .35rem; list-style: none; margin: 0; padding: .1rem 0 .6rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.topnav ul::-webkit-scrollbar { display: none; }
.topnav a { display: flex; align-items: center; min-height: 38px; padding: 0 .95rem; border-radius: var(--r-pill); color: var(--ink-2); font: 600 .92rem/1 var(--font-head); white-space: nowrap; text-decoration: none; transition: color .2s, background .2s; }
.topnav a:hover { background: var(--chip); color: var(--ink); }
.topnav a[aria-current], .topnav .current-menu-item > a { background: var(--ink); color: var(--bg); }

/* ---------- tiles (home) ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-3); }
.tile { border-radius: var(--r-l); padding: var(--s-4); background: var(--surface); }
.tile--wide { grid-column: 1 / -1; }
.tile__k { margin: 0 0 var(--s-1); font: 600 .75rem/1.4 var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.tile--dark { background: var(--dark-panel); color: var(--on-dark); }
.tile--dark .tile__k { color: var(--c-orange); }
.wx__now { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.wx__temp { font: 600 1.9rem/1.1 var(--font-head); }
.wx__note { color: var(--ink-2); font-size: .85rem; line-height: 1.4; }
.wx__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: var(--s-3); }
.wx__day { padding: .5rem .2rem; border-radius: var(--r-m); background: var(--tone); text-align: center; font-size: .8rem; line-height: 1.3; }
.wx__day b { display: block; font: 600 1rem var(--font-head); }
.wx__bar { height: 4px; margin: .35rem .5rem 0; border-radius: 2px; background: rgb(128 128 128 / .25); overflow: hidden; } .wx__bar i { display: block; height: 100%; background: var(--c-blue); }

/* silk tile */
.silk__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.silk__label { margin: 0; font: 600 .78rem/1.4 var(--font-head); letter-spacing: .04em; color: var(--c-orange); }
.silk__more { color: var(--c-orange); font: 600 .9rem var(--font-head); text-decoration: none; white-space: nowrap; }
.silk__grid { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-2); }
.silk__pick { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 .25rem; color: inherit; text-align: left; opacity: .65; transition: opacity .2s, border-color .2s; }
.silk__pick.is-on { opacity: 1; border-color: var(--c-orange); }
.silk__name { display: block; font-size: .8rem; color: #BDBDBD; line-height: 1.3; }
.silk__price { display: block; font: 700 1.9rem/1.15 var(--font-head); letter-spacing: -.02em; }
.silk__price--text { font-size: 1.2rem; margin-top: var(--s-2); }
.up { color: var(--c-up); font-size: .9rem; } .down { color: var(--c-down); font-size: .9rem; }
.silk__chart { position: relative; height: 64px; margin-top: var(--s-3); touch-action: pan-y; cursor: crosshair; }
.silk__chart svg { width: 100%; height: 100%; }
.silk__line { fill: none; stroke: var(--c-orange); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.silk__area { fill: rgb(240 144 8 / .18); }
.silk__cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--c-orange); display: none; }
.silk__cursor.is-on { display: block; }
.silk__cursor::after { content: ""; position: absolute; left: -4px; top: var(--y, 0); width: 9px; height: 9px; border-radius: 50%; background: var(--c-orange); border: 2px solid var(--dark-panel); }
.silk__tip { display: flex; justify-content: space-between; gap: var(--s-3); min-height: 1.5em; margin-top: var(--s-1); font-size: .8rem; color: #BDBDBD; line-height: 1.5; }
.silk__tip b { color: #fff; font-weight: 600; }
.ratebar { position: fixed; top: calc(var(--header-h) + 3px); left: 0; right: 0; z-index: 55; background: var(--dark-panel); color: #fff; text-align: center; font-size: .85rem; line-height: 1.4; transform: translateY(-140%); transition: transform .28s var(--ease); }
.ratebar.is-on { transform: none; }
.ratebar a { display: block; padding: .4rem 1rem; color: inherit; text-decoration: none; }
.ratebar__k { color: var(--c-orange); font-weight: 600; } .ratebar__sep { opacity: .5; }

/* silk tools page */
.est { display: grid; gap: var(--s-3); }
.pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.pills button { border: 0; border-radius: var(--r-pill); padding: .4rem .9rem; min-height: 40px; background: #2a2a2e; color: #cfcfcf; font: 600 .85rem var(--font-head); }
.pills button.is-on { background: var(--c-orange); color: #17161A; }
.kg { display: flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: var(--r-m); background: #2a2a2e; }
.kg input { width: 100%; min-height: 44px; border: 0; background: none; color: #fff; font: 600 1.5rem var(--font-head); outline: none; }
.kg span { color: #9a9a9a; }
.quick { display: flex; gap: .4rem; } .quick button { flex: 1; min-height: 40px; border: 0; border-radius: var(--r-s); background: #2a2a2e; color: #fff; font: 600 .9rem var(--font-head); }
.est__amt { font: 700 2.2rem/1.1 var(--font-head); letter-spacing: -.02em; }
.est__rng { color: #a9a9a9; font-size: .85rem; line-height: 1.5; margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-top: var(--s-2); }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: #3a3a40; } .bars i.best { background: var(--c-orange); }

/* ---------- tags ---------- */
.tag { display: inline-block; padding: 0 .55rem; border-radius: 6px; background: var(--c-crimson); color: #fff; font: 700 .7rem/1.7 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.tag--silk { background: var(--c-orange); color: #17161A; }
.tag--places, .tag--culture { background: var(--c-blue); }
.tag--eatstay { background: var(--c-magenta); }
.tag--event { background: var(--c-whatsapp); }

/* ---------- sections, rail ---------- */
.sec .section-title, .section-title { display: flex; align-items: center; gap: var(--s-2); margin-block: var(--s-4) var(--s-2); font-size: var(--step-1); }
.section-title::before { content: ""; width: 5px; height: 1.2em; border-radius: 3px; background: linear-gradient(var(--c-crimson), var(--c-magenta)); }
.rail { display: flex; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
.rail::-webkit-scrollbar { display: none; }
.tcard { position: relative; flex: 0 0 min(84%, 24rem); scroll-snap-align: start; aspect-ratio: 1.62; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; background: var(--tone); transition: transform .2s var(--ease); }
.tcard:active { transform: scale(.98); }
.tcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard__body { position: absolute; inset: auto 0 0; display: grid; gap: .25rem; justify-items: start; padding: 2.5rem var(--s-3) var(--s-3); background: linear-gradient(transparent, rgb(0 0 0 / .85)); }
.tcard__title { font: 600 var(--step-1)/1.35 var(--font-head); color: #fff; text-wrap: balance; }
.dots { display: flex; justify-content: center; gap: 5px; margin: var(--s-2) 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: all .2s; }
.dots i.on { width: 16px; border-radius: 3px; background: var(--c-crimson); }
@media (min-width: 64rem) { .dots { display: none; } .tcard { flex-basis: calc((100% - 1.5rem) / 3); } }

/* ---------- story cards ---------- */
.feed { display: grid; gap: var(--s-3); }
.card { container-type: inline-size; background: var(--surface); border-radius: var(--r-l); overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 9rem; }
.card__link { display: grid; grid-template-columns: 7rem 1fr; gap: var(--s-3); padding: var(--s-3); color: inherit; text-decoration: none; }
.card__media img { width: 100%; aspect-ratio: 1.62; object-fit: cover; border-radius: var(--r-s); }
.card:not(:has(.card__media)) .card__link { grid-template-columns: 1fr; }
.card__title { margin-block: .15rem; font-size: calc(var(--step-1) * var(--text-scale)); font-weight: 600; line-height: 1.4; }
.card__meta { color: var(--ink-2); font-size: .8rem; line-height: 1.5; }
.card__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 0 var(--s-3) var(--s-3); }
.card__actions:empty { display: none; }
@container (min-width: 34rem) { .card__link { grid-template-columns: 11rem 1fr; } }
.card--hero { position: relative; content-visibility: visible; }
.card--hero .card__link { display: block; padding: 0; position: relative; color: #fff; }
.card--hero .card__media img { border-radius: 0; }
.card--hero .card__body { position: absolute; inset: auto 0 0; padding: 3rem var(--s-4) var(--s-4); background: linear-gradient(transparent, rgb(0 0 0 / .86)); }
.card--hero .card__title { color: #fff; font-size: calc(clamp(1rem, .95rem + .2vw, 1.1rem) * var(--text-scale)); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--hero .card__meta { color: #E2E2E2; }
.card.is-fresh { animation: fresh .55s var(--ease); }
@keyframes fresh { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- article ---------- */
.panel { background: var(--surface); border-radius: var(--r-l); padding: var(--s-4); }
.article__header { margin: calc(var(--s-4) * -1) calc(var(--s-4) * -1) 0; padding: var(--s-4); border-radius: var(--r-l) var(--r-l) 0 0; background: linear-gradient(180deg, rgb(var(--tint-rgb, 128 128 128) / .16), transparent); }
.article__title { font-size: calc(var(--step-3) * var(--text-scale)); margin-block: var(--s-2); }
.article__meta { color: var(--ink-2); font-size: .85rem; }
.article__media { margin: var(--s-4) calc(var(--s-4) * -1) 0; }
.article__media img { width: 100%; cursor: zoom-in; }
.article__tools { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }
.lang { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--chip); }
.lang button { min-height: 36px; padding: 0 1rem; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-2); font: 600 .9rem var(--font-head); transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--c-crimson); color: #fff; }
.correction { margin-top: var(--s-3); padding: .6rem .9rem; border-radius: var(--r-m); background: rgb(240 144 8 / .16); font-size: .9rem; line-height: 1.5; }
.correction summary { cursor: pointer; font: 600 .9rem var(--font-head); }
.correction p { margin: .4rem 0 0; }
.prose { margin-top: var(--s-4); font-size: calc(var(--step-0) * var(--text-scale)); max-width: 44rem; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.4em; font-size: var(--step-1); }
.prose img { border-radius: var(--r-s); cursor: zoom-in; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose figure { margin: 0; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-s); }
.prose table { display: block; overflow-x: auto; }
.prose a { overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem; text-align: left; }
.prose th { background: var(--chip); font-family: var(--font-head); }
.prose blockquote { border-inline-start: 4px solid var(--c-orange); padding-inline-start: var(--s-4); color: var(--ink-2); }
.prose--summary { border-inline-start: 4px solid var(--c-orange); padding-inline-start: var(--s-4); }
.prose__note { color: var(--ink-2); font: 600 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.crumbs { font-size: .85rem; color: var(--ink-2); } .crumbs a { text-decoration: none; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); } .plain-list li:last-child { border: 0; }
.page-head { padding-block: var(--s-3); }
.page-head h1 { font-size: var(--step-3); }
.page-head__desc { max-width: 44rem; color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.page-head__desc p { margin: .5rem 0 0; }
.page-head__desc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.page-head__en { font-size: .9rem; opacity: .9; padding-inline-start: var(--s-3); border-inline-start: 3px solid var(--c-orange); }
.page-head__en span { font: 600 .7rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--c-orange); margin-inline-end: .35rem; }
.empty { padding: var(--s-5); text-align: center; color: var(--ink-2); }
.read-progress { position: fixed; inset: 0 auto auto 0; z-index: 100; height: 3px; width: 0; background: linear-gradient(90deg, var(--c-orange), var(--c-magenta)); }
.pager, .navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-block: var(--s-5); }
.pager a, .pager span, .page-numbers { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); text-decoration: none; }
.pager [aria-current], .page-numbers.current { background: var(--c-crimson); color: #fff; }

/* ---------- new stories pill ---------- */
.newpill { position: fixed; top: calc(var(--header-h) + 3px + .75rem); left: 50%; transform: translateX(-50%); z-index: 62; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: var(--r-pill); background: linear-gradient(140deg, var(--c-crimson), var(--c-magenta)); color: #fff; font: 600 .9rem var(--font-head); box-shadow: 0 6px 18px rgb(0 0 0 / .3); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -18px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- floating dock ---------- */
.dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 2px; padding: 7px 9px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 10px 30px rgb(0 0 0 / .18), inset 0 0 0 .5px rgb(255 255 255 / .35); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .dock { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); } }
.dock a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.dock a[aria-current] { background: var(--tone); color: var(--c-crimson); }
.dock__fab { display: grid; place-items: center; width: 56px; height: 56px; margin-inline: 4px; border: 0; border-radius: 50%; background: linear-gradient(140deg, var(--c-crimson), var(--c-magenta)); color: #fff; box-shadow: 0 6px 16px rgb(192 8 24 / .45); transition: transform .25s var(--ease); }
.dock__fab[aria-expanded="true"] { transform: rotate(45deg); }
@media (min-width: 64rem) { .dock { display: none; } }

/* ---------- sheets, scrim, search ---------- */
.scrim { position: fixed; inset: 0; z-index: 89; background: rgb(0 0 0 / .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; inset: auto 0 0; z-index: 90; width: min(100%, 32rem); margin-inline: auto; padding: var(--s-4) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -8px 30px rgb(0 0 0 / .25); transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.sheet.is-open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.sheet::before { content: ""; display: block; width: 38px; height: 4px; margin: -.4rem auto .8rem; border-radius: 2px; background: var(--tone); }
.sheet__h { font-size: var(--step-1); margin-bottom: var(--s-2); }
.sheet__row { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 52px; padding: 0 .25rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: 500 1rem var(--font-body); text-decoration: none; text-align: left; }
.sheet__row:hover { background: var(--chip); }
.sheet__act { display: flex; align-items: center; gap: .9rem; width: 100%; margin-bottom: .5rem; padding: .7rem; border: 0; border-radius: var(--r-m); background: var(--tone); color: var(--ink); text-align: left; text-decoration: none; transition: transform .15s; }
.sheet__act:active { transform: scale(.98); }
.sheet__act b { display: block; font: 600 1rem var(--font-head); } .sheet__act small { color: var(--ink-2); font-size: .8rem; line-height: 1.3; display: block; }
.sheet__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; flex: none; }
.sheet__ic--wa { background: var(--c-whatsapp); } .sheet__ic--ev { background: var(--c-crimson); } .sheet__ic--bl { background: var(--c-blue); }
.palette { position: fixed; inset: 0; z-index: 100; padding: var(--s-4); background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: scale(.98); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.palette.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.palette__bar { display: flex; align-items: center; gap: .6rem; max-width: 40rem; margin: 0 auto; padding: 0 .4rem 0 1rem; height: 52px; border-radius: var(--r-m); background: var(--surface); }
.palette__bar input::-webkit-search-cancel-button, .palette__bar input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.palette__bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 1.05rem; }
.palette__quick { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 40rem; margin: var(--s-4) auto; }
.palette__quick a { padding: .45rem .9rem; border-radius: var(--r-pill); background: var(--chip); color: var(--ink); text-decoration: none; font: 600 .9rem var(--font-head); }
.palette__results { list-style: none; max-width: 40rem; margin: 0 auto; padding: 0; }
.palette__results li a { display: block; padding: .8rem .3rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.4; }
.palette__results small { display: block; color: var(--ink-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- photo viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: #000; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; transition: transform .25s var(--ease); cursor: zoom-in; }
.lightbox.is-zoom img { transform: scale(2); cursor: zoom-out; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .18); color: #fff; font-size: 1.4rem; }
.lightbox__x { top: 14px; right: 14px; } .lightbox__p { left: 10px; top: 50%; } .lightbox__n { right: 10px; top: 50%; }
.lightbox__c { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: .85rem; }

/* ---------- footer, ads ---------- */
.site-footer { padding: var(--s-6) var(--s-4); text-align: center; color: var(--ink-2); font-size: .85rem; }
.site-footer a { color: inherit; }
.ad-slot { margin-block: var(--s-3); text-align: center; overflow: hidden; }
.ad-slot::before { content: attr(data-label); display: block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.sticky-ad { position: fixed; inset: auto 0 calc(var(--dock-h) - 6px); z-index: 65; display: flex; justify-content: center; padding: 4px; background: var(--surface); }
.sticky-ad__close { position: absolute; right: 6px; top: 0; background: none; border: 0; font-size: 1.3rem; color: var(--ink-2); }
@media (min-width: 64rem) { .sticky-ad { display: none; } }
.is-article { padding-bottom: 5rem; }

/* ---------- Lite mode: less data, no motion ---------- */
[data-lite] .card__media, [data-lite] .tcard img, [data-lite] .article__media, [data-lite] .prose img { display: none; }
[data-lite] .card__link { grid-template-columns: 1fr; }
[data-lite] .tcard { aspect-ratio: auto; min-height: 7rem; background: var(--dark-panel); }
[data-lite] .tcard__body { position: static; background: none; padding: var(--s-4); }
[data-lite] .card--hero .card__body { position: static; background: none; }
[data-lite] .card--hero .card__link { color: inherit; } [data-lite] .card--hero .card__title { color: var(--ink); } [data-lite] .card--hero .card__meta { color: var(--ink-2); }
[data-lite] *, [data-lite] *::before, [data-lite] *::after { transition: none !important; animation: none !important; }
[data-lite] .lite-note { display: block; }
.lite-note { display: none; margin: var(--s-3) 0; padding: .6rem .9rem; border-radius: var(--r-m); background: var(--tone); font-size: .85rem; color: var(--ink-2); }
.lite-note button { border: 0; background: none; color: var(--link); text-decoration: underline; padding: 0 .3rem; }

@media print {
  .site-header, .dock, .aside, .card__actions, .sticky-ad, .read-progress, .sle-actionbar, .palette, .sheet, .scrim { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

.fine { font-size: .75rem; line-height: 1.4; color: var(--ink-2); margin: var(--s-2) 0 0; }
.tile--dark .fine { color: #a9a9a9; }
.fine a { color: inherit; text-decoration: underline; }

/* SEO / answer-engine helpers */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.answer { margin: var(--s-3) 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-m, 14px); background: var(--surface); border-inline-start: 4px solid var(--c-orange); font-weight: 500; line-height: 1.6; }
.answer small { display: block; margin-top: .25rem; font-weight: 400; color: var(--ink-2); }
.hubs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.hubs__list a { display: inline-block; padding: .45rem .8rem; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: .85rem; text-decoration: none; }
.hubs__list a:hover { background: var(--c-orange); color: #000; }
.crumbs span[itemprop], .crumbs > span { display: inline; }
.crumbs a, .crumbs span { overflow-wrap: anywhere; }

/* Lite mode: no ads */
[data-lite] .ad-slot, [data-lite] .sticky-ad { display: none !important; }

/* village pages */
.place-level { margin: var(--s-2) 0 0; font: 600 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--c-orange); }
.place-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-3); }
.place-card { padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); }
.place-card .section-title { margin-top: 0; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: var(--s-3); padding: .55rem 0; border-top: 1px solid var(--line); }
.kv li:first-child { border-top: 0; }
.kv span { color: var(--ink-2); } .kv a, .kv b { font-weight: 600; text-align: right; }
.place-up { margin: var(--s-4) 0; color: var(--ink-2); }

/* silk board + trend */
.board__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-1); }
.board__col { display: grid; gap: .1rem; }
.board__name { color: #cfcac2; font-size: .85rem; }
.board__price { font: 700 1.9rem/1.15 var(--font-head); letter-spacing: -.02em; }
.board__range { color: #a9a9a9; font-size: .8rem; }
.trend__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.trend__top .tile__k { margin: 0; } .trend__top .pills { margin: 0; }


/* article extras */
.keypoints { margin: var(--s-3) 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-m, 14px); background: var(--surface); border-inline-start: 4px solid var(--c-orange); }
.keypoints__k { margin: 0 0 .25rem; font: 600 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--c-orange); }
.keypoints ul { margin: 0; padding-inline-start: 1.1rem; } .keypoints li { margin: .2rem 0; line-height: 1.6; }
.article__report { margin: var(--s-4) 0 0; font-size: .85rem; } .article__report a { color: var(--ink-2); }
.quote-btn { position: absolute; z-index: 90; padding: .45rem .8rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 .8rem var(--font-head); cursor: pointer; }
[data-listen][aria-pressed="true"] { background: var(--c-crimson); color: #fff; }

/* empty states */
.empty-state { text-align: center; padding: var(--s-6) var(--s-4); }
.empty-state h2 { font-size: var(--step-2); margin: 0 0 var(--s-2); } .empty-state p { color: var(--ink-2); margin: 0 auto var(--s-3); max-width: 28rem; }

/* search + 404 */
.hubs__list a.is-on { background: var(--ink); color: var(--bg); }
.search-places { margin: .6rem 0 0; color: var(--ink-2); } .search-places a { margin-right: .6rem; font-weight: 600; }
.search-inline { display: flex; gap: var(--s-2); max-width: 26rem; margin: var(--s-3) auto; } .search-inline input { flex: 1; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; }
mark.hit { background: #FFE9A8; color: #17161A; border-radius: 3px; padding: 0 .1em; }


/* home Today card */
.today-wrap { margin-top: var(--s-3); }
.today { display: grid; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
.today__main { min-width: 0; }
.today .silk__grid { gap: var(--s-2) var(--s-6); margin-top: var(--s-1); }
.today .silk__price { font-size: 1.7rem; }
.silk__range { display: block; margin-top: .1rem; font-size: .72rem; color: #a9a9a9; line-height: 1.3; }
.today .silk__chart { height: 40px; margin-top: var(--s-2); }
.today .silk__tip { min-height: 1.2em; margin-top: .15rem; font-size: .72rem; }
.today__wait { margin: .4rem 0 0; font-size: .78rem; color: #cfcac2; }
.today__chips { display: flex; flex-wrap: wrap; gap: .28rem; }
.today .chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 34px; padding: 0 .55rem; border: 0; border-radius: 999px; background: #2a2a2f; color: #fff; font: 600 .74rem var(--font-head); text-decoration: none; cursor: pointer; white-space: nowrap; }
.today .chip:hover, .today .chip[aria-expanded="true"] { background: #3a3a40; }
.today .wx__days { margin-top: var(--s-2); } .today .wx__day { background: #26262b; color: #fff; }
.today__notices { list-style: none; margin: var(--s-2) 0 0; padding: 0; font-size: .85rem; line-height: 1.5; } .today__notices li { padding: .3rem 0; border-top: 1px solid #333338; } .today__notices li:first-child { border-top: 0; } .today__notices b { color: var(--c-orange); font-weight: 600; margin-right: .3rem; }
.today .fine { margin: var(--s-2) 0 0; font-size: .68rem; }
.bento--more { margin: var(--s-3) 0; }
@media (min-width: 64rem) { .today { grid-template-columns: 1.4fr 1fr; align-items: center; gap: var(--s-6); } }

/* sheet close buttons */
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.sheet__top .sheet__h { margin: 0; }
.sheet__x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tone); color: var(--ink); cursor: pointer; }
.sheet__x .icon { width: 20px; height: 20px; }

/* Display sheet */
.opt { display: flex; align-items: center; gap: var(--s-3); padding: .8rem 0; border-top: 1px solid var(--line); cursor: pointer; }
.opt:first-of-type { border-top: 0; }
.opt__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tone); color: var(--ink); }
.opt__t { flex: 1; min-width: 0; } .opt__t b { display: block; font-weight: 600; } .opt__t small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.35; }
.sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 48px; height: 29px; margin: 0; border-radius: 999px; background: #CFCAC2; cursor: pointer; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.sw:checked { background: var(--c-crimson); } .sw:checked::after { transform: translateX(19px); }
.sw:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--tone); }
.seg button { width: 40px; height: 34px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 .85rem var(--font-head); cursor: pointer; }
.seg button:nth-child(2) { font-size: 1.05rem; } .seg button:nth-child(3) { font-size: 1.25rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Today card chips: send news is the one coloured chip */
.today .chip .icon { width: 14px; height: 14px; }
.today .chip--send { background: var(--c-crimson); } .today .chip--send:hover { background: #d3101f; }

/* ---- Latest feed: lead story + compact rows ---- */
.feed__day { margin: var(--s-4) 0 var(--s-1); color: var(--ink-2); font: 700 .72rem/1.4 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; }
.card__title { margin-block: .25rem .1rem; font-size: calc(var(--step-0) * var(--text-scale)); }
.card__ex { color: var(--ink-2); font-size: .85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__just { position: absolute; left: .6rem; top: .6rem; padding: 0 .55rem; border-radius: 99px; background: var(--c-crimson); color: #fff; font: 700 .7rem/1.7 var(--font-head); }
.card__media { position: relative; }
.card:not(.card--lead):not(.card--hero):has(.card__media) .card__link { grid-template-columns: 4.5rem 1fr; padding-bottom: var(--s-2); }
.card:not(.card--lead):not(.card--hero) .card__media img { aspect-ratio: 1; border-radius: var(--r-m, 10px); }
.card--lead { content-visibility: visible; }
.card--lead .card__link { display: block; padding: 0; }
.card--lead .card__media img { aspect-ratio: 1.8; border-radius: 0; }
.card--lead .card__body { padding: var(--s-3) var(--s-4) var(--s-2); }
.card--lead .card__title { font-size: calc(var(--step-1) * var(--text-scale)); line-height: 1.35; }
.card--lead .card__ex { -webkit-line-clamp: 2; margin-top: .2rem; }
.card--lead .card__actions { padding: var(--s-2) var(--s-4) var(--s-3); border-top: 1px solid var(--line, rgb(0 0 0 / .08)); margin-top: var(--s-2); }
.card:not(.card--lead) .card__actions { padding-top: 0; }
@container (min-width: 34rem) { .card:not(.card--lead):not(.card--hero):has(.card__media) .card__link { grid-template-columns: 7rem 1fr; } }
[data-lite] .card:not(.card--lead):not(.card--hero) .card__link { grid-template-columns: 1fr; }

/* ---- Pager: progress + big Older button ---- */
.pager { display: grid; gap: var(--s-2); justify-items: stretch; }
.pager__of { text-align: center; color: var(--ink-2); font-size: .8rem; }
.pager__bar { height: 4px; border-radius: 4px; background: var(--chip); overflow: hidden; position: relative; }
.pager__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--c-crimson); border-radius: 4px; }
.pager__btns { display: flex; gap: var(--s-2); }
.pager__btns a { flex: 1; justify-content: center; gap: .5rem; min-height: 48px; font: 700 .95rem var(--font-head); }
.pager__next { background: var(--c-crimson) !important; color: #fff !important; }
.pager__next .icon { transform: rotate(90deg); }
.pager__prev .icon { transform: rotate(-90deg); }
.pager__btns a .icon { width: 1.1rem; height: 1.1rem; }
.pager .pager__bar { display: block; min-height: 0; height: 4px; padding: 0; border-radius: 4px; }
.pager .pager__of { display: block; min-height: 0; padding: 0; background: none; }
.pager__btns a { white-space: nowrap; padding: 0 .75rem; }
