
    :root { --color-bg: #ffffff; --color-bg-secondary: #fafaf9; --color-bg-tertiary: #f5f5f4; --color-text-primary: #1c1917; --color-text-secondary: #44403c; --color-text-tertiary: #78716c; --color-border: #e7e5e4; --color-border-light: #f5f5f4; --color-accent: #0f3b2c; --color-accent-light: #ecfdf5; --color-accent-muted: #2d5a4a; --color-nearby: #0f3b2c; --color-error: #991b1b; --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Helvetica, sans-serif; --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03); --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05); --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08); --transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1); }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%); font-family: var(--font-sans); color: var(--color-text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }
    h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
    .logo { font-size: 1.35rem; font-weight: 600; color: var(--color-text-primary); letter-spacing: -0.03em; }
    .mobile-layout, .desktop-layout { min-height: 100vh; }
    .header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid rgba(231, 229, 228, 0.95); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(28,25,23,0.02); }
    .header-actions { display: flex; gap: 10px; }
    .icon-btn { background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 9px 15px; font-size: 0.875rem; font-weight: 500; color: var(--color-text-secondary); cursor: pointer; transition: var(--transition); font-family: inherit; box-shadow: var(--shadow-sm); }
    .icon-btn:hover { background: var(--color-bg-secondary); border-color: #d6d3d1; color: var(--color-text-primary); }
    .feed-container { padding: 28px 20px 96px; max-width: 860px; margin: 0 auto; }
    .story-card, .desktop-story-card { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%); border-radius: 22px; padding: 22px; margin-bottom: 16px; transition: var(--transition); border: 1px solid #ece9e6; cursor: pointer; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); }
    .story-card:hover, .desktop-story-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08); border-color: #ddd6d0; }
    .story-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
    .story-source { font-weight: 700; color: var(--color-accent-muted); }
    .story-category { color: var(--color-text-tertiary); background: var(--color-bg-secondary); padding: 4px 9px; border-radius: 999px; }
    .story-nearby { color: var(--color-nearby); font-weight: 700; background: var(--color-accent-light); padding: 4px 10px; border-radius: 999px; font-size: 0.68rem; }
    .story-title { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.35; margin-bottom: 10px; color: var(--color-text-primary); letter-spacing: -0.02em; }
    .story-summary { font-size: 0.97rem; color: var(--color-text-secondary); line-height: 1.65; margin-bottom: 14px; }
    .story-footer { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--color-text-tertiary); padding-top: 12px; border-top: 1px solid var(--color-border-light); }
    .empty-state { text-align: center; padding: 56px 24px; color: var(--color-text-tertiary); font-size: 0.95rem; background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%); border-radius: 22px; border: 1px solid #ece9e6; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); }
    .bottom-nav { position: fixed; bottom: 16px; left: 16px; right: 16px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(16px); border: 1px solid rgba(231, 229, 228, 0.98); display: flex; justify-content: center; gap: 10px; padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 50; border-radius: 22px; box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12); }
    .nav-item { background: none; border: none; padding: 10px 14px; font-size: 0.88rem; font-weight: 500; color: var(--color-text-tertiary); cursor: pointer; transition: var(--transition); font-family: inherit; border-radius: 999px; }
    .nav-item.active { color: white; font-weight: 600; background: var(--color-accent); box-shadow: 0 8px 20px rgba(15,59,44,0.25); }
    .nav-item:hover { color: var(--color-text-primary); background: var(--color-bg-tertiary); }
    .pull-to-refresh { text-align: center; padding: var(--space-sm); color: var(--color-text-tertiary); font-size: 0.75rem; transition: transform 0.2s; transform: translateY(-100%); }
    .pull-to-refresh.visible { transform: translateY(0); }
    .desktop-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; gap: 24px; max-width: 1440px; margin: 0 auto; padding: 24px; }
    .desktop-sidebar, .desktop-right { position: sticky; top: 24px; align-self: start; }
    .desktop-sidebar { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%); border: 1px solid #ece9e6; border-radius: 24px; padding: 24px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05); }
    .sidebar-logo h1 { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 10px; }
    .desktop-nav { display: flex; flex-direction: column; gap: 10px; }
    .desktop-nav-item, .desktop-action-btn, .desktop-report-btn { width: 100%; border-radius: 16px; border: 1px solid var(--color-border); background: #fff; padding: 12px 14px; text-align: left; font: inherit; cursor: pointer; transition: var(--transition); color: var(--color-text-secondary); }
    .desktop-nav-item.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); box-shadow: 0 12px 25px rgba(15,59,44,0.18); }
    .desktop-main { min-width: 0; }
    .desktop-right { display: flex; flex-direction: column; gap: 16px; }
    .info-card { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%); border: 1px solid #ece9e6; border-radius: 20px; padding: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04); }
    .info-card h3 { font-size: 0.95rem; margin-bottom: 12px; }
    .info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.88rem; color: var(--color-text-secondary); }
    .info-row:last-child { border-bottom: 0; padding-bottom: 0; }
    .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .filter-chip { border: 1px solid var(--color-border); background: #fff; color: var(--color-text-secondary); border-radius: 999px; padding: 8px 12px; font-size: 0.82rem; cursor: pointer; transition: var(--transition); }
    .filter-chip.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
    .legal-footer, .desktop-legal-footer { color: var(--color-text-tertiary); font-size: 0.78rem; text-align: center; padding: 8px 20px 120px; }
    .legal-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; }
    .legal-link { color: var(--color-text-tertiary); cursor: pointer; text-decoration: none; }
    .dropdown-trigger, .modal-input, .modal-select, .modal-textarea { width: 100%; border: 1px solid var(--color-border); border-radius: 14px; background: #fff; padding: 12px 14px; font: inherit; }
    .modal-overlay { position: fixed; inset: 0; background: rgba(28,25,23,0.42); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 2000; }
    .modal { width: min(560px, 100%); max-height: min(82vh, 760px); overflow: hidden; background: #fff; border: 1px solid #ece9e6; border-radius: 24px; box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22); padding: 22px; display: flex; flex-direction: column; }
    .modal h3 { font-size: 1.1rem; margin-bottom: 14px; letter-spacing: -0.02em; }
    .modal-scrollable { overflow: auto; padding-right: 4px; }
    .modal-label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--color-text-secondary); margin: 14px 0 8px; }
    .modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
    .modal-btn { border: 1px solid var(--color-border); background: #fff; color: var(--color-text-secondary); border-radius: 14px; padding: 10px 16px; font: inherit; cursor: pointer; transition: var(--transition); }
    .modal-btn.primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); box-shadow: 0 10px 24px rgba(15,59,44,0.22); }
    .modal-btn:hover { background: var(--color-bg-secondary); color: var(--color-text-primary); }
    .modal-btn.primary:hover { background: #124534; }
    .dropdown-menu { margin-top: 10px; border: 1px solid var(--color-border); border-radius: 16px; background: #fff; box-shadow: 0 18px 36px rgba(15,23,42,0.08); }
    .dropdown-option { padding: 10px 14px; cursor: pointer; }
    .dropdown-option.selected, .dropdown-option:hover { background: var(--color-accent-light); }
    .skeleton-card { background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #ffffff 100%); border-radius: 22px; padding: 22px; margin-bottom: 16px; border: 1px solid #ece9e6; }
    .skeleton-line { height: 12px; background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-border) 50%, var(--color-border-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); margin-bottom: var(--space-sm); }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    .skeleton-title { width: 75%; height: 24px; }
    .skeleton-text { width: 100%; height: 60px; }
    .skeleton-text.short { width: 60%; height: 40px; }
    @media (max-width: 1024px) { .desktop-layout { grid-template-columns: 1fr; padding: 0; } .desktop-sidebar, .desktop-right { position: static; } .desktop-right { order: 3; padding: 0 20px 100px; } .desktop-main { order: 2; } }
    @media (max-width: 768px) { .header { padding: 14px 16px; } .feed-container { padding: 20px 16px 108px; } .story-card { margin-bottom: 12px; padding: 20px; } .story-title { font-size: 1.12rem; } .bottom-nav { left: 12px; right: 12px; bottom: 12px; } }
  
/* ── Server-rendered additions ─────────────────────────────────────────
   The original stylesheet was written for markup that JavaScript produced.
   These rules cover the elements the Blade templates introduce: real links
   where there were buttons, headings, and the prose blocks. */

a { color: inherit; }

.site-tagline {
  color: var(--color-text-tertiary);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

/* Nav items and filter chips are links now, not buttons. */
.desktop-nav-item,
.filter-chip,
.desktop-action-btn {
  text-decoration: none;
  display: inline-block;
}

.desktop-nav-item { display: block; }

.desktop-nav-item:hover,
.filter-chip:hover { border-color: #cfcac4; }

.desktop-nav-item.active:hover { border-color: var(--color-accent); }

.desktop-action-btn.primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  text-align: center;
  margin-top: 10px;
}

.nav-section { margin-top: 22px; }

.nav-section h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.nav-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.86rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

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

.page-head { margin-bottom: 22px; }

.page-head h1 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-intro {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 62ch;
}

.story-title { font-size: 1.12rem; margin-bottom: 8px; }
.story-title a { text-decoration: none; }
.story-title a:hover { color: var(--color-accent); }

.story-category { text-decoration: none; }
.story-place { text-decoration: none; color: var(--color-text-tertiary); }
.story-place:hover { color: var(--color-accent); }

.story-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  margin-top: 14px;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.empty-hint { margin-top: 8px; font-size: 0.88rem; }

.link-cloud { margin-top: 34px; }

.link-cloud h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

.link-cloud .filter-chip { font-size: 0.78rem; }

.prose-card {
  background: #fff;
  border: 1px solid #ece9e6;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.prose-card p { margin-bottom: 14px; color: var(--color-text-secondary); max-width: 66ch; }
.prose-card p:last-child { margin-bottom: 0; }

.modal-input { width: 100%; }

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

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

.copyright { font-size: 0.76rem; color: var(--color-text-tertiary); margin-top: 10px; }

@media (max-width: 1100px) {
  .desktop-layout { grid-template-columns: 1fr; }
  .desktop-sidebar, .desktop-right { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .story-card:hover { transform: none; }
}

/* Section tabs shown only when the layout is stacked. */
.mobile-tabs { display: none; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .mobile-tabs { display: flex; }

  /* Content first, filters next, the long link lists last. */
  .desktop-main { order: 1; }
  .desktop-right { order: 2; }
  .desktop-sidebar { order: 3; }

  /* The sidebar's own nav duplicates .mobile-tabs once stacked. */
  .desktop-sidebar .desktop-nav,
  .desktop-sidebar .site-tagline { display: none; }
}

/* Source attribution sits in the card footer and opens the publisher. */
.story-footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.story-source-link {
  font-weight: 700;
  color: var(--color-accent-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.story-source-link:hover { color: var(--color-accent); text-decoration: underline; }

.external-mark { font-size: 0.85em; opacity: 0.7; }

/* Reading-language switcher in the header. */
.lang-switch { display: inline-flex; gap: 4px; align-items: center; }

.lang-option {
  font-size: 0.78rem;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

.lang-option:hover { border-color: #cfcac4; color: var(--color-text-primary); }

.lang-option.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

@media (max-width: 620px) {
  .header { flex-wrap: wrap; gap: 10px; }
  .header-actions { flex-wrap: wrap; }
}

/* A sticky column taller than the screen cannot be scrolled past - the browser
   has nowhere left to move it to - so the foot of Topics and of Places was
   unreachable until the middle column had scrolled far enough to release it.
   Each sidebar scrolls within itself instead. */
@media (min-width: 1101px) {
  .desktop-sidebar,
  .desktop-right {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* Places carry their story count, so the ordering is visibly about something. */

/* Sub-topics of the chosen topic. */
.subcat-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border-light); }
.subcat-heading {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-tertiary); margin-bottom: 10px;
}
.chip-count { margin-left: 5px; opacity: 0.55; font-variant-numeric: tabular-nums; }
.story-subcategory { text-decoration: none; }

/* Where nothing belongs beside the feed, the feed takes the room. */
@media (min-width: 1101px) {
  .desktop-layout.no-aside { grid-template-columns: 280px minmax(0, 1fr); }
}

/* The open topic, marked in the list that opened it. */
.nav-links a.active { color: var(--color-accent); font-weight: 600; }

/* The change-location form sits in the left column with the other controls. */
.desktop-sidebar form.nav-section .modal-input { margin-bottom: 10px; }
