/* ==========================================================================
   TUMAKURU — Editorial Minimalist Design System
   Warm Deccan Stone, Palm Green & Terracotta Ochre
   Mobile-first, tactile, zero-framework Vanilla CSS
   ========================================================================== */

:root {
  /* Light Theme — Warm Sandstone & Alabaster */
  --bg: #f6f3ec;
  --bg-elevated: #fcfaf6;
  --bg-subtle: #ede8dc;
  --bg-glass: rgba(246, 243, 236, 0.86);

  --ink: #171b18;
  --ink-secondary: #4e5650;
  --ink-muted: #78807a;

  --accent: #1d4e3d;
  --accent-soft: rgba(29, 78, 61, 0.1);
  --accent-ink: #f8f6f1;

  --warm: #c45d28;
  --warm-soft: rgba(196, 93, 40, 0.12);

  --border: rgba(23, 27, 24, 0.09);
  --border-strong: rgba(23, 27, 24, 0.18);

  --shadow-sm: 0 2px 10px rgba(23, 27, 24, 0.04);
  --shadow-md: 0 10px 30px rgba(23, 27, 24, 0.06);
  --shadow-lg: 0 18px 44px rgba(23, 27, 24, 0.1);

  --map-fill: #e7e1d3;
  --map-fill-hover: #d8d0be;
  --map-stroke: #f6f3ec;
  --map-active: #1d4e3d;
  --map-neighbor: rgba(23, 27, 24, 0.04);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-kn: 'Noto Sans Kannada', sans-serif;

  /* Radii & Spacing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1120px;
  --header-h: 64px;
  --bottom-nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #121513;
  --bg-elevated: #191d1a;
  --bg-subtle: #222723;
  --bg-glass: rgba(18, 21, 19, 0.86);

  --ink: #f2efe8;
  --ink-secondary: #adb5ae;
  --ink-muted: #7d867e;

  --accent: #5db994;
  --accent-soft: rgba(93, 185, 148, 0.14);
  --accent-ink: #0f1613;

  --warm: #e4844a;
  --warm-soft: rgba(228, 132, 74, 0.16);

  --border: rgba(242, 239, 232, 0.09);
  --border-strong: rgba(242, 239, 232, 0.18);

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.44);

  --map-fill: #242a25;
  --map-fill-hover: #2f3831;
  --map-stroke: #121513;
  --map-active: #5db994;
  --map-neighbor: rgba(242, 239, 232, 0.03);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

/* Subtle organic stone-paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.kn {
  font-family: var(--font-kn);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================================
   Top Navigation Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-kn {
  font-family: var(--font-kn);
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
  background: var(--bg-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.header-weather-chip:hover {
  background: var(--accent-soft);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--ink);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--border-strong);
}

.icon-btn:active {
  transform: scale(0.94);
}

/* ==========================================================================
   Immersive Editorial Hero
   ========================================================================== */

.hero {
  padding: 18px 0 28px;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #1c241e;
  box-shadow: var(--shadow-lg);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.hero-frame:hover .hero-img {
  transform: scale(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 20, 17, 0.22) 0%, rgba(16, 20, 17, 0.14) 38%, rgba(16, 20, 17, 0.84) 100%),
    linear-gradient(90deg, rgba(16, 20, 17, 0.65) 0%, rgba(16, 20, 17, 0) 65%);
}

.hero-top-meta {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.86);
  font-weight: 500;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 28px 22px 24px;
  color: #f8f6f1;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(248, 246, 241, 0.76);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 4.75rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(248, 246, 241, 0.86);
  max-width: 52ch;
  margin-bottom: 20px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(248, 246, 241, 0.2);
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(248, 246, 241, 0.65);
}

.hero-metric-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f8f6f1;
}

/* ==========================================================================
   Breaking Ticker Bar
   ========================================================================== */

.ticker-wrap {
  margin-top: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.ticker-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.ticker-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: opacity 0.25s var(--ease);
}

.ticker-link:hover {
  color: var(--accent);
}

.ticker-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ticker-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ticker-btn:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

/* ==========================================================================
   Section Layout & Headers
   ========================================================================== */

.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.section-kicker {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  max-width: 58ch;
}

/* ==========================================================================
   Happenings / City Pulse Strip
   ========================================================================== */

.pulse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pulse-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pulse-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.pulse-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pulse-tag {
  color: var(--accent);
}

.pulse-card h3 {
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.pulse-card p {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.pulse-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.84rem;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Detailed Weather Module
   ========================================================================== */

.weather-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.select-pill {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 8px 34px 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2378807a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.segmented button {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.segmented button.is-active {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.weather-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.weather-primary {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.weather-now {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.weather-location-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.weather-temp-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.weather-big-temp {
  font-family: var(--font-display);
  font-size: clamp(4.1rem, 13vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.weather-condition-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-condition-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.weather-condition-sub {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.weather-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.weather-stat {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-weight: 600;
}

.weather-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.weather-stat-note {
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.weather-hourly-wrap {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.sub-block-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hourly-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.hourly-strip::-webkit-scrollbar {
  display: none;
}

.hour-pill {
  flex: 0 0 74px;
  scroll-snap-align: start;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.hour-pill.is-now {
  background: var(--accent);
  color: var(--accent-ink);
}

.hour-time {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.85;
}

.hour-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.hour-temp {
  font-size: 0.92rem;
  font-weight: 700;
}

.hour-rain {
  font-size: 0.7rem;
  opacity: 0.78;
}

.weather-daily-wrap {
  padding: 18px 20px 22px;
}

.daily-list {
  display: flex;
  flex-direction: column;
}

.day-row {
  display: grid;
  grid-template-columns: 76px 34px 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.day-row:last-child {
  border-bottom: none;
}

.day-name {
  font-weight: 600;
}

.day-icon {
  text-align: center;
  font-size: 1.05rem;
}

.day-low {
  color: var(--ink-muted);
  text-align: right;
  font-weight: 500;
}

.day-high {
  font-weight: 700;
  text-align: left;
}

.day-bar-track {
  height: 5px;
  border-radius: 99px;
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
}

.day-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

/* ==========================================================================
   Interactive Tumakuru 10-Taluk Map Section
   ========================================================================== */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.map-layout > *,
.news-layout > *,
.weather-primary > * {
  min-width: 0;
}

.map-canvas-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.svg-map-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px;
  overflow: hidden;
}

.tumakuru-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.taluk-shape {
  fill: var(--map-fill);
  stroke: var(--map-stroke);
  stroke-width: 2.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.22s var(--ease), transform 0.22s var(--ease), filter 0.22s var(--ease);
}

.taluk-shape:hover {
  fill: var(--map-fill-hover);
}

.taluk-shape.is-active {
  fill: var(--map-active);
}

.taluk-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
  text-anchor: middle;
  transition: fill 0.2s var(--ease);
}

.taluk-label.is-active {
  fill: var(--accent-ink);
}

.neighbor-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-muted);
  pointer-events: none;
  text-anchor: middle;
}

.highway-path {
  fill: none;
  stroke: var(--warm);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.55;
  pointer-events: none;
}

.exclave-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.65;
  pointer-events: none;
}

.osm-frame-wrap {
  width: 100%;
  height: 410px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.osm-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.taluk-chip-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.taluk-chip-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.2s var(--ease);
}

.chip-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.chip-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.taluk-inspector {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.taluk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.taluk-name {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.taluk-kn {
  font-family: var(--font-kn);
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.taluk-badge {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.taluk-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.taluk-fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-weight: 600;
}

.taluk-fact-val {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
}

.taluk-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.taluk-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taluk-highlights h4 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.highlight-list li {
  font-size: 0.88rem;
  padding-left: 14px;
  position: relative;
  color: var(--ink);
}

.highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.taluk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--border);
}

/* ==========================================================================
   Explore Directory — Landmarks, Restaurants, Cafes & Shopping
   ========================================================================== */

.editorial-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.editorial-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #f8f6f1;
  background: #1d221e;
  box-shadow: var(--shadow-md);
}

.editorial-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.editorial-banner:hover img {
  transform: scale(1.04);
}

.editorial-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 17, 0.08) 10%, rgba(16, 20, 17, 0.82) 100%);
}

.editorial-banner-body {
  position: relative;
  z-index: 2;
}

.editorial-banner-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 246, 241, 0.76);
  margin-bottom: 4px;
}

.editorial-banner h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 4px;
}

.editorial-banner p {
  font-size: 0.84rem;
  color: rgba(248, 246, 241, 0.84);
  max-width: 44ch;
}

.explore-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.search-box input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 0.88rem;
  transition: border-color 0.2s var(--ease);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.place-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.place-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.place-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.place-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.place-area {
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: right;
}

.place-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 3px;
}

.place-signature {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--warm);
}

.place-desc {
  font-size: 0.87rem;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.place-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.maps-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.maps-pill:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   News Wire & Instagram Pulse
   ========================================================================== */

.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.news-wire-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.wire-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.wire-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s var(--ease);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.news-item:hover .news-headline {
  color: var(--accent);
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.news-source {
  color: var(--accent);
}

.news-headline {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.news-summary {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.portal-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.portal-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Instagram Local Pulse Column */
.insta-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.insta-card:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.insta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.insta-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
}

.insta-handle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insta-focus {
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.insta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 32px;
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Mobile Bottom App Navigation Bar
   ========================================================================== */

.mobile-bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  border-radius: 14px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.mobile-bottom-nav a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ==========================================================================
   Reveal Motion
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Desktop)
   ========================================================================== */

@media (min-width: 680px) {
  .container {
    padding: 0 28px;
  }

  .hero-frame {
    min-height: 490px;
  }

  .hero-content {
    padding: 36px 36px 32px;
  }

  .pulse-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .editorial-feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .places-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taluk-chip-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (min-width: 960px) {
  body {
    padding-bottom: 24px;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-bottom-nav {
    display: none;
  }

  .hero-frame {
    min-height: 540px;
  }

  .pulse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weather-primary {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    align-items: center;
    padding: 28px 28px;
  }

  .weather-hourly-wrap,
  .weather-daily-wrap {
    padding-left: 28px;
    padding-right: 28px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .places-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   V2 Additions — Bilingual Toggle, Offline Banner, Commute, Calendar,
   Weekend Trails & Slide-Up Utilities Drawer
   ========================================================================== */

body.is-kn {
  font-family: var(--font-kn), var(--font-sans);
}

body.is-kn .section-title,
body.is-kn .hero h1 {
  font-family: var(--font-kn), var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lang-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.offline-banner {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}

.sub-section-block {
  margin-top: 32px;
}

.sub-section-head {
  margin-bottom: 16px;
}

.sub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

body.is-kn .sub-section-title {
  font-family: var(--font-kn), var(--font-display);
  font-weight: 600;
}

/* Commute Cards */
.commute-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.commute-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.commute-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
}

.commute-card p {
  font-size: 0.87rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.commute-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meta-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.commute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Seasonal Events & Jatras Calendar */
.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.event-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-window {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
}

.event-type {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 2px;
}

.event-place {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.event-note {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-top: 2px;
}

/* Multi-Stop Weekend Trails */
.trails-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.trail-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.trail-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 8px;
}

.trail-desc {
  font-size: 0.87rem;
  color: var(--ink-secondary);
  line-height: 1.52;
  margin-top: 6px;
}

.trail-stops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.trail-stop {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.trail-arrow {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.trail-foot {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* News Wire Language Filter Controls */
.wire-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Slide-Up Utilities & Helplines Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 18, 15, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.utilities-drawer {
  width: 100%;
  max-width: 620px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-lg);
  transform: translateY(28px);
  transition: transform 0.25s var(--ease);
}

.drawer-backdrop.is-open .utilities-drawer {
  transform: translateY(0);
}

.drawer-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-strong);
  margin: 0 auto 14px;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.util-group {
  margin-top: 18px;
}

.util-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 10px;
}

.util-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.util-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.util-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.util-meta {
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

@media (min-width: 680px) {
  .events-grid,
  .trails-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer-backdrop {
    align-items: center;
    padding: 24px;
  }

  .utilities-drawer {
    border-radius: 24px;
    padding: 24px 26px;
  }

  .drawer-handle {
    display: none;
  }
}

@media (min-width: 960px) {
  .commute-grid,
  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile header & drawer micro-polish for 360px–460px phones */
.header-weather-chip,
.util-row .maps-pill {
  white-space: nowrap;
  flex-shrink: 0;
}

.icon-btn,
.lang-btn {
  flex-shrink: 0;
}

@media (max-width: 460px) {
  .brand-kn {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-weather-chip {
    padding: 5px 9px;
    font-size: 0.76rem;
  }

  .lang-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   Phone-First Compact & Extendable Sections (Smooth Progressive Disclosure)
   ========================================================================== */

.accordion-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-top: 14px;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  text-align: left;
  transition: background-color 0.2s var(--ease);
}

.accordion-trigger:hover {
  background: var(--bg-subtle);
}

.accordion-title-group {
  min-width: 0;
}

.accordion-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.accordion-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2px;
}

.accordion-summary {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.accordion-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.accordion-box.is-open .accordion-chevron,
.expand-bar-btn[aria-expanded="true"] .expand-chevron {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.accordion-box.is-open > .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

.accordion-content {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Inline quick-action bar for Commute even when collapsed */
.commute-quick-bar {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.commute-quick-bar::-webkit-scrollbar {
  display: none;
}

.commute-quick-bar .maps-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Smooth collapsible drawer inside Weather / Map Inspector / News Desks */
.collapsible-region {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.collapsible-region.is-open {
  grid-template-rows: 1fr;
}

.collapsible-inner {
  overflow: hidden;
}

/* Full-width tactile expand/collapse bar inside cards */
.expand-bar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.expand-bar-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.expand-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.28s var(--ease);
}

/* "Show more / Show less" button below compact grids */
.section-more-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.section-more-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.section-more-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.section-more-btn:active {
  transform: scale(0.985);
}

/* Compact weather quick pills shown even when full forecast is collapsed */
.weather-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.weather-quick-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

/* Mobile-First Tight Rhythm (< 680px) */
@media (max-width: 679px) {
  .hero {
    padding: 12px 0 16px;
  }

  .hero-frame {
    min-height: 278px;
    border-radius: 20px;
  }

  .hero-top-meta {
    top: 14px;
    left: 16px;
    right: 16px;
    font-size: 0.7rem;
  }

  .hero-content {
    padding: 54px 18px 18px;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .hero h1 {
    font-size: 2.35rem;
    margin-bottom: 8px;
  }

  .hero-lead {
    font-size: 0.86rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-metrics {
    gap: 12px 18px;
    padding-top: 12px;
  }

  .hero-metric-value {
    font-size: 0.88rem;
  }

  .section {
    padding: 22px 0;
  }

  .section-head {
    margin-bottom: 14px;
    gap: 10px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-sub {
    font-size: 0.84rem;
    margin-top: 4px;
  }

  .pulse-card,
  .place-card {
    padding: 14px 16px;
    gap: 8px;
  }

  .pulse-card p,
  .place-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .weather-primary {
    padding: 18px 16px;
    gap: 14px;
  }

  .weather-big-temp {
    font-size: 3.4rem;
  }

  .weather-hourly-wrap,
  .weather-daily-wrap {
    padding: 14px 16px;
  }

  .svg-map-stage {
    padding: 8px;
  }

  .tumakuru-svg {
    max-height: 280px;
  }

  .osm-frame-wrap {
    height: 290px;
  }

  .taluk-inspector {
    padding: 16px;
    gap: 12px;
  }

  .taluk-name {
    font-size: 1.65rem;
  }

  .taluk-facts {
    padding: 10px 0;
  }

  /* Compact horizontal swipeable editorial banners on phone */
  .editorial-feature-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-bottom: 14px;
    scrollbar-width: none;
  }

  .editorial-feature-row::-webkit-scrollbar {
    display: none;
  }

  .editorial-banner {
    flex: 0 0 82%;
    scroll-snap-align: start;
    min-height: 132px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .editorial-banner h3 {
    font-size: 1.28rem;
  }

  .editorial-banner p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-wire-card,
  .insta-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .news-item {
    padding: 11px 0;
  }

  .news-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 680px) {
  .section-more-btn {
    width: auto;
    min-width: 220px;
  }
}



