@font-face {
  font-family: Inter;
  src: url(inter.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font:
    16px Inter,
    Arial,
    sans-serif;
  color-scheme: dark;
  background: #000;
  color: #fff;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
  width: 100%;
  margin: 0;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
}
.earth-stage {
  position: relative;
  min-height: 0;
  container-type: size;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  outline: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.earth-stage[data-dragging] {
  cursor: grabbing;
}
.surface,
.surface canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.first-earth {
  border-radius: 50%;
  position: absolute;
  width: min(90.2cqw, 78cqh);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.lunar-limb {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  animation: lunar-arrival 190ms ease-out;
}
@keyframes lunar-arrival { from { transform: translateX(1cm); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .lunar-limb { animation: none; } }
.news-dot {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: inherit;
  touch-action: none;
  outline: 0;
}
.country-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.country-highlight path {
  fill: rgb(255 255 255 / .085);
  stroke: rgb(255 255 255 / .59);
  stroke-width: .85;
  stroke-linejoin: round;
}
.country-highlight text {
  fill: #fff;
  font: 500 13px Inter, sans-serif;
  letter-spacing: .015em;
  paint-order: stroke;
  stroke: #0a1015b0;
  stroke-width: 2.4px;
  stroke-linejoin: round;
}
.light {
  position:relative; width:2.5px; height:2.5px; border-radius:50%;
  background:white; pointer-events:none;
  box-shadow: 0 0 3px 1px rgb(232 245 255 / .64), 0 0 7px 2px rgb(214 237 255 / .24);
}
.news-dot:focus-visible { outline:1px dashed white; outline-offset:1px; }
.earth-stage[data-over-dot] { cursor: pointer; }
.city-name {
  display: none;
  pointer-events: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  color: #161616;
  box-shadow: 0 2px 8px #0002;
  font: 500 12px/1.3 Inter, sans-serif;
  white-space: nowrap;
}
.news-dot[data-labeled] .city-name {
  display: block;
}
.news-dot[data-labeled] { z-index: 2; }
.earth-stage[data-dragging] .city-name {
  display: none !important;
}
.news-card {
  position: absolute;
  z-index: 4;
  max-height: calc(100% - 32px);
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  color-scheme: light;
  padding: 20px 22px 15px;
  color: #161616;
  cursor: auto;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  box-shadow: 0 9px 34px #0004;
  animation: appear 0.15s ease-out;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-card {
    animation: none;
  }
}

.edition {
  --sky: #000;
  --masthead-ink: #fff;
  --search-fill: #141414;
  --search-hint: #dedede;
  --control-hover: #202020;
  --focus-ring: #ffffff55;
  --edge: max(8px, env(safe-area-inset-left), env(safe-area-inset-right));
  --title-pad: max(var(--edge), env(safe-area-inset-top));
  --wordmark-width: clamp(190px, 22vw, 320px);
  background: var(--sky);
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
:root {
  --ink: #262626;
  --wash: #f2f2f2;
}
button, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.edition[data-theme=light] {
  --sky: #fff; --masthead-ink: #111; --search-fill: #f3f3f3;
  --control-hover: #ededed; --search-hint: #383838; --focus-ring: #0004;
  color-scheme: light;
}
.earth-stage { background: var(--sky); }
.edition[data-theme=light] .surface { clip-path: circle(var(--globe-radius) at 50% 50%); }
.globe-header {
  position: relative; z-index: 5; padding: var(--title-pad) var(--edge) var(--edge);
  color: var(--masthead-ink); pointer-events: none;
}
.masthead-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 4px; direction:ltr;
}
.masthead-actions {
  position:relative; grid-area:1/3; min-width:0; display:flex;
  justify-content:flex-end; align-items:center;
}
.masthead-row > .publication-title { grid-area:1/2; max-width:calc(100vw - 2 * var(--edge) - 224px); }
.masthead-row > .masthead-tools { grid-area:1/1; justify-self:start; margin-left:0; }
.masthead-tools .language-menu { left:0; right:auto; }
[dir=rtl] .masthead-row > * { direction:rtl; }
.masthead-row button, .news-search { pointer-events: auto; }
.publication-title { min-width:0; width: var(--wordmark-width); margin: 0; color: inherit; line-height: 0; }
.publication-title button { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: none; }
.masthead-tools { position:relative; margin-left:auto; display:flex; align-items:center; flex:none; }
[dir=rtl] .masthead-tools, [dir=rtl] .masthead-actions { flex-direction:row-reverse; }

.wordmark { display: block; width: 100%; height: auto; overflow: hidden; }
.archive-card {
  max-height: min(60vh, calc(100% - 32px)); padding:0;
  overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin;
}
.card-heading {
  position: sticky; top:0; z-index:1; display:flex; align-items:center; gap:4px;
  padding:11px 13px 11px 20px; background:#fff; border-bottom:1px solid #e3e3e3;
}
.place-label { flex:1; font-size:14px; font-weight:600; }
.icon-button { display:grid; place-items:center; width:32px; height:32px; border:0; border-radius:50%; background:transparent; }
.icon-button:hover, .reader-close:hover { background:var(--wash); }
.archive-card .month-group, .empty-location { padding: 16px 20px 18px; }
.month-group + .month-group { border-top:1px solid #d7d7d7; }
.month-jump {
  display:inline-flex; align-items:center; gap:7px; padding:5px 0; border:0;
  color:var(--ink); background:none; font-size:13px; font-weight:650;
}
.month-jump:hover { text-decoration:underline; text-underline-offset:3px; }
.entry {
  display: grid;
  grid-template-columns: clamp(48px, 24%, 78px) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  padding: 16px 0;
}
.story-view {
  position: relative;
  display: block;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: 5px;
  background: #000;
}
.story-view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-view.world img { object-fit: contain; }
.story-view.local::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(10px, 9%, 16px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, #fffe 22%, #fff8 36%, #fff2 55%, transparent 72%);
  filter: drop-shadow(0 0 1px #242424a6);
}
.entry-detail { grid-column: 1 / -1; }
.reader-articles .entry {
  grid-template-columns: clamp(76px, 24%, 180px) minmax(0, 1fr);
  column-gap: clamp(14px, 3vw, 26px);
}
.reader-articles .entry-detail { grid-column: 2; }
@media (max-width: 620px) {
  .reader-articles .entry-detail { grid-column: 1 / -1; }
}
.entry:last-child { padding-bottom:0; }
.entry + .entry { border-top:1px solid #e7e7e7; }
.entry-toggle {
  width:100%; display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding:0; border:0; text-align:left; color:#171717; background:none;
  font-size:21px; line-height:1.2; letter-spacing:-.045em; font-weight:550;
  overflow-wrap:anywhere;
}
.entry-toggle svg { flex:none; align-self:flex-start; margin-top:5px; color:var(--ink); }
.entry-place { margin:5px 0 0; color:#626262; font-size:13px; font-weight:500; line-height:1.35; }
.entry-lead, .entry-detail p, .empty-location p {
  margin:8px 0 0; color:#404040; font-size:15px; letter-spacing:-.012em; line-height:1.55;
}
.entry-detail p { margin-top:10px; }
.entry-notes { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:12px; color:#626262; font-size:12px; }
.entry-notes a, .text-button { color:var(--ink); text-underline-offset:3px; }
.text-button { margin:10px 0 3px; padding:4px 0; border:0; background:none; text-decoration:underline; font-weight:550; font-size:14px; }
.archive-reader {
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0;
  border:0; color:#141414; background:#fff; color-scheme:light;
}
.archive-reader[open] { display:grid; grid-template-rows:auto minmax(0,1fr); }
.archive-reader::backdrop { background:#000; }
.reader-bar {
  display:flex; justify-content:space-between; align-items:center; gap:24px;
  padding: max(15px,env(safe-area-inset-top)) max(5vw,env(safe-area-inset-right)) 15px max(5vw,env(safe-area-inset-left)); border-bottom:1px solid #dedede;
}
.reader-brand { width:clamp(124px,16vw,177px); color:var(--ink); }
.reader-close, .reader-switch, .month-select {
  display:inline-flex; align-items:center; gap:7px; padding:8px 12px; border:1px solid #d5d5d5;
  border-radius:20px; background:white; font:500 13px/1.3 Inter, sans-serif;
}
.reader-scroll { overflow:auto; overscroll-behavior:contain; }
.reader-page { width:min(100% - 42px,790px); margin:0 auto; padding:clamp(35px,7vh,85px) 0 80px; }
.reader-context { display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:600; font-size:14px; }
.reader-masthead h1 {
  margin:15px 0 24px; font-size:clamp(44px,7vw,87px); letter-spacing:-.076em; font-weight:550; line-height:1;
  overflow-wrap:anywhere;
}
.reader-controls { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding-bottom:17px; border-bottom:2px solid #242424; font-size:14px; color:#505050; }
.reader-switches { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.reader-switch,.month-select { color:var(--ink); }
.reader-switch:hover,.month-select:hover { background:var(--wash); }
.month-select { position:relative; padding:0; }
.month-select select { padding:8px 32px 8px 12px; appearance:none; color:inherit; border:none; border-radius:20px; outline-offset:2px; background:transparent; cursor:pointer; }
.month-select svg { position:absolute; right:11px; pointer-events:none; }
.reader-articles .month-group { padding:24px 0 26px; }
.reader-articles .entry { padding:24px 0; }
.reader-articles .entry-toggle { font-size:clamp(23px,3vw,34px); }
.reader-articles .entry-lead, .reader-articles .entry-detail p { font-size:16px; max-width:70ch; }
@media (max-width: 620px) and (pointer: coarse), (max-height: 540px) and (max-width: 1000px) and (pointer: coarse) {
  .surface, .first-earth { filter: brightness(.902776) contrast(.95) saturate(1.01); }
  .surface { clip-path: circle(var(--globe-radius) at 50% 50%); }
  .edition {
    --wordmark-width: min(320px, calc(100vw - 2 * var(--edge) - 158px));
  }
}
@media (max-width:620px) {
  .archive-card { max-height:min(52dvh,calc(100% - 80px)); }
  .reader-bar { padding-inline:18px; }
  .reader-controls { align-items:flex-start; }
}

.archive-credit { margin-top:42px; padding-top:14px; border-top:1px solid #ddd; font-size:12px; }
.archive-credit a { color:#555; text-underline-offset:3px; }

.news-search {
  position: relative;
  flex:none;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--masthead-ink);
  font-family: Inter, sans-serif;
}
.news-search[data-expanded] { flex:0 1 30rem; min-width:0; }
.query-area { position:relative; flex:1; min-width:0; }
.background-toggle, .search-glass {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  color: var(--masthead-ink); background: transparent; border: 0; border-radius: 50%;
}
.background-toggle:hover, .search-glass:hover, .news-search[data-expanded] .search-glass { background: var(--control-hover); }
.query-line {
  display:grid; grid-template-columns:minmax(0, 1fr); align-items:center; min-height:42px;
  box-sizing: border-box; border-radius: 22px; color: var(--masthead-ink); background: var(--search-fill);
}
.query-line:focus-within { box-shadow: inset 0 0 0 1px var(--focus-ring); }
.query-line input, .reader-query input {
  box-sizing: border-box; width: 100%; min-width: 0; color: inherit; border: 0; background: transparent;
  font: inherit;
}
.query-line input { grid-area:1 / 1; padding:10px 15px; outline:none; font-size:16px; }
.query-line input::placeholder { color: var(--search-hint); }
.query-prompt {
  position:relative; grid-area:1 / 1; margin:4px 12px 4px 15px; pointer-events:none;
  font-size: clamp(12px, 3.8vw, 14px); line-height: 1.25; color: var(--search-hint);
  animation: prompt-in 380ms ease-out both;
}
.field-link { pointer-events: auto; border: 0; padding: 0; color: inherit; background: none; text-decoration: underline; text-underline-offset: 3px; }
@keyframes prompt-in { from { opacity: .42; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .query-prompt { animation: none; } }
.search-panel {
  position:absolute; left:0; top:calc(100% + 6px); width:100%;
  max-height: min(55vh, var(--results-height, 48dvh)); overflow: auto; overscroll-behavior: contain;
  color: var(--ink); background: white; color-scheme: light; border-radius: 12px;
  border: 1px solid #dadada; box-sizing: border-box; box-shadow: 0 5px 20px #0003;
}
.search-panel button { border: 0; color: inherit; background: transparent; text-align: left; }
.search-panel button:focus-visible { outline-offset: -3px; }
.search-panel-head, .all-matches {
  display: flex; align-items: center; gap: 6px; padding: 12px 15px; font-size: 12px;
}
.search-panel-head { color: #555; border-bottom: 1px solid #e5e5e5; }
.search-panel-head .choose-field { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; padding: 4px; }
.search-panel-head .clear-field { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0; }
.preview-story, .field-list button { display: block; width: 100%; padding: 12px 15px; }
.preview-story span { display: block; font-size: 15px; font-weight: 550; line-height: 1.3; letter-spacing: -.02em; }
.preview-story small { display: block; margin-top: 4px; font-size: 12px; color: #666; }
.search-panel .preview-story + .preview-story, .search-panel .all-matches { border-top: 1px solid #e5e5e5; }
.search-panel .all-matches { width: 100%; justify-content: space-between; font-weight: 600; }
.search-panel button:hover, .field-list button[aria-pressed=true] { background: #f2f2f2; }
.field-list { padding: 5px 0; }
.field-list button { font-size: 14px; }
.search-empty { font-size: 14px; line-height: 1.5; color: #555; }
.search-panel .search-empty { margin: 14px 15px 18px; }
.search-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 18px; }
.reader-query {
  display: flex; flex: 1 1 220px; gap: 8px; align-items: center; min-width: 0;
  padding: 8px 12px; border: 1px solid #d5d5d5; border-radius: 20px;
}
.reader-query svg { flex: none; }
.reader-query input { padding: 0; outline: none; font-size: 16px; }
.reader-query:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-tools .month-select { max-width: 100%; }
.search-tools select { width: 100%; }

@media (max-width: 680px), (max-height: 540px) and (max-width: 1000px) and (pointer: coarse) {
  .masthead-row {
    --control-width: 44px;
    grid-template-columns: repeat(2, var(--control-width)) minmax(0, 1fr) repeat(2, var(--control-width));
    column-gap: 0;
  }
  .masthead-tools, .masthead-actions, .masthead-actions > .news-search { display: contents; }
  .masthead-tools > .background-toggle { grid-area: 1 / 1; }
  .masthead-tools > .language-select { grid-area: 1 / 2; }
  .masthead-row > .publication-title {
    grid-area: 1 / 3;
    justify-self: center;
    max-width: min(100%, calc(100vw - 2 * var(--edge) - 204px));
  }
  .masthead-actions > .hand-settings { grid-area: 1 / 4; position: relative; }
  .masthead-actions .hand-menu-toggle, .masthead-tools .language-trigger { width: 100%; }
  .masthead-actions .hand-menu { right: calc(0px - var(--control-width)); }
  .news-search > .search-glass { grid-area: 1 / 5; }
  .news-search > .query-area { grid-area: 2 / 1 / 3 / -1; }
}

/* The menu belongs to the masthead. Cursor preferences only affect the globe. */
.hand-settings { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hand-settings { display: block; }
}
.hand-menu-toggle {
  width: 32px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent;
}
.hand-menu-toggle:hover, .hand-menu-toggle[aria-expanded=true] { background: var(--control-hover); }
.hand-menu {
  position: absolute; top: calc(100% + 8px); right: 0; pointer-events: auto;
  width: min(352px, calc(100vw - 2 * var(--edge))); box-sizing: border-box;
  padding: 16px; border-radius: 12px; background: #fff; color: #171717; color-scheme: light;
  border: 1px solid #dadada; box-shadow: 0 5px 20px #0003;
  font-family: Inter, sans-serif; overflow-y: auto; overscroll-behavior: contain;
}
.hand-menu fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hand-menu legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.hand-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.hand-options label { position: relative; cursor: pointer; }
.hand-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hand-options span { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; text-align: center; border: 1px solid transparent; border-radius: 8px; font-size: 13px; }
.hand-options img { width: 28px; height: 28px; }
.hand-options label:hover span { background: #f5f5f5; }
.hand-options input:checked + span { background: #f2f2f2; border-color: #5a5a5a; }
.hand-options input:focus-visible + span { outline: 2px solid #222; outline-offset: 1px; }
@media (any-hover: hover) and (any-pointer: fine) {
  .earth-stage { cursor: var(--open-hand, var(--open-file)) 18 20, grab; }
  .earth-stage[data-over-dot] { cursor: pointer; }
  .earth-stage[data-dragging] { cursor: var(--drag-hand, var(--drag-file)) 18 20, grabbing; }
  @supports (cursor: image-set(url("") 1x) 18 20, grab) {
    .edition:is([data-hand-tone="white"], [data-hand-tone="brown"]) {
      --open-hand: image-set(var(--open-file) 1x, var(--open-retina) 2x);
      --drag-hand: image-set(var(--drag-file) 1x, var(--drag-retina) 2x);
    }
  }
}

.language-select { position: relative; pointer-events: auto; }
.language-trigger {
  min-width: 34px; height: 44px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: 600 14px/1 Inter,sans-serif; cursor: pointer;
}
.language-trigger:hover { background: var(--control-hover); }
.language-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.language-menu {
  position: absolute; z-index: 2; top: calc(100% + 2px); right: 0; width: 195px;
  max-width: calc(100vw - 110px); max-height: min(70dvh, 480px); overflow-y: auto;
  overscroll-behavior: contain; display: grid; padding: 7px; box-sizing: border-box;
  color: white; background: rgb(15 18 22 / 65%); border: 1px solid #ffffff4d;
  border-radius: 10px; box-shadow: 0 8px 24px #0003;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.language-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 3px 10px; min-height: 24px; border: 0; border-radius: 5px; cursor: pointer;
  font: 500 14px/1.35 Inter,sans-serif; background: transparent; color: inherit;
}
.language-menu small { font: 500 11px Inter,sans-serif; opacity: .78; }
.language-menu button:is(:hover, [aria-checked=true]) { background: #ffffff29; }
.language-menu button:focus-visible { outline: 1px solid white; outline-offset: -1px; }
@media (pointer: coarse) { .language-menu button { min-height: 40px; } }
.translation-status { display:block; font:400 .8rem/1.4 Inter,sans-serif; opacity:.8; }
[dir=rtl] .reader-page, [dir=rtl] .archive-card, [dir=rtl] .search-panel { text-align:start; }

/* The date picker uses the Sea Mist palette in both globe themes. */
.hand-settings { display:block; }
.hand-menu { width:min(392px, calc(100vw - 2 * var(--edge))); max-height:calc(100dvh - 90px); padding:10px; z-index:6; }
.hand-menu .cursor-tones { margin:12px 5px 4px; }
.newsletter-signup { margin: 4px 5px 12px; padding: 0 0 12px; border-bottom: 1px solid #dfe4ea; }
.newsletter-signup h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.newsletter-signup p, .newsletter-signup a { margin: 0 0 6px; font-size: 13px; line-height: 1.45; }
.newsletter-signup a { color: #175883; }
.newsletter-signup form { margin: 8px 0; }
.newsletter-signup label { display: block; margin-bottom: 4px; font-size: 14px; }
.newsletter-controls { display: flex; gap: 6px; }
.newsletter-controls input, .newsletter-controls button { min-height: 42px; border: 1px solid #aeb9c4; border-radius: 6px; padding: 6px 9px; font: inherit; }
.newsletter-controls input { flex: 1; min-width: 0; background: #fff; color: #17212b; font-size: 16px; }
.newsletter-controls button { flex-shrink: 0; background: #175883; color: #fff; border-color: #175883; cursor: pointer; font-size: 14px; font-weight: 600; }
.newsletter-controls button:disabled { opacity: .7; cursor: wait; }
.newsletter-signup [role="status"] p { margin: 6px 0 0; }
.ocean-calendar { overflow:hidden; border:1px solid #ccd8e7; border-radius:9px; color:#213b55; background:linear-gradient(155deg,#f3f8ff,#dfeaf8); font:500 13px/1.35 Inter, sans-serif; }
.ocean-calendar button { cursor:pointer; color:inherit; font:inherit; }
.ocean-calendar button:focus-visible, .ocean-calendar input:focus-visible { outline:2px solid #175883; outline-offset:-2px; }
.cal-top,.cal-heading,.cal-nav,.cal-modes,.cal-actions,.cal-footer { display:flex; align-items:center; }
.cal-top,.cal-heading,.cal-footer { justify-content:space-between; gap:8px; }
.cal-intro { padding:12px 12px 0; }
.cal-intro strong { font-size:15px; }
.cal-intro p { margin:4px 0 0; color:#354e65; }
.ocean-calendar button:disabled { opacity:.42; cursor:default; box-shadow:none; }
.cal-top { padding:12px 12px 6px; }
.cal-top strong { font-size:14px; }
.cal-modes { border:1px solid #cbd8e7; border-radius:6px; padding:2px; background:#dfeaf6; }
.cal-modes button,.cal-nav button { border:0; padding:3px 7px; border-radius:4px; background:transparent; }
.cal-modes [aria-pressed=true] { background:#f6faff; box-shadow:0 1px 3px #28486729; }
.cal-heading { padding:5px 12px 9px; }
.cal-heading > span { font-size:clamp(17px,4.2vw,22px); font-weight:650; letter-spacing:-.04em; }
.cal-nav { gap:1px; }
.cal-nav button { display:grid; place-items:center; background:#f5f8ff; border:1px solid #cdd9e6; min-height:27px; font-size:12px; }
.cal-week,.cal-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.cal-week span { text-align:center; padding:3px 0; color:#354e65; font-size:11px; }
.cal-grid { background:#ccd9e8; gap:1px; border-block:1px solid #ccd9e8; touch-action:none; user-select:none; }
.cal-grid button { min-width:0; padding:0 1px; border:0; min-height:30px; font-size:12px; background:#f5f8ff; }
.cal-grid [data-weekend] { background:#e7effa; }
.cal-grid [data-outside] { color:#5b6a7c; }
.cal-grid [aria-pressed=true] { background:#b4cef3; color:#203b54; }
.cal-grid [data-edge] { background:#507ebc; color:#fff; font-weight:700; }
.cal-grid [aria-current=date] span { border-bottom:2px solid currentColor; padding-bottom:1px; }
.cal-grid button:hover { box-shadow:inset 0 0 0 1px #6288b8; }
.cal-months { grid-template-columns:repeat(4,minmax(0,1fr)); }
.cal-months button { min-height:47px; font-size:14px; }
.cal-bounds { display:flex; gap:10px; padding:10px 12px 0; }
.cal-bounds label { flex:1; min-width:0; font-size:11px; }
.cal-bounds input { display:block; width:100%; box-sizing:border-box; margin-top:3px; padding:7px; border:1px solid #cbd8e7; background:#f5f8ff; color:#203b54; border-radius:5px; font:500 13px/1.2 Inter,sans-serif; }
.cal-bounds input[aria-invalid=true] { border-color:#a63a32; }
.cal-actions { padding:10px 12px 0; gap:10px; flex-wrap:wrap; }
.cal-actions label { display:flex; align-items:center; gap:4px; font-size:12px; }
.cal-actions input { margin:0; accent-color:#507ebc; }
.cal-actions button { margin-inline-start:auto; border:0; border-radius:5px; padding:6px 12px; background:#507ebc; color:white; font-weight:600; }
.cal-actions button:disabled { opacity:.5; cursor:default; }
.cal-note { margin:8px 12px 0; font-size:11px; color:#3c5268; }
.cal-footer { padding:6px 12px 9px; }
.cal-footer button { border:0; background:none; padding:3px 0; font-size:12px; text-decoration:underline; text-underline-offset:2px; }
.map-empty { position:absolute; z-index:3; bottom:10%; left:50%; transform:translateX(-50%); margin:0; padding:7px 12px; border-radius:6px; background:#e5f5fb; color:#17455b; font:500 13px Inter,sans-serif; pointer-events:none; }
@media (hover:none), (pointer:coarse) { .hand-menu .cursor-tones { display:none; } }
@media (max-width:520px) { .hand-menu { max-height:calc(100dvh - var(--title-pad) - 60px); } .cal-grid button { min-height:33px; } }

.story-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 30px; margin: 0; padding: 4px 9px;
  background: transparent; color: #282828; border: 0; border-radius: 6px;
  font: 550 12px/1.3 Inter, sans-serif; cursor: pointer; touch-action: manipulation;
}
.story-share:hover { text-decoration: underline; text-underline-offset: 3px; }
.story-share:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.share-dialog {
  position: fixed; inset: 0; margin: 0; box-sizing: border-box;
  width: 100%; max-width: none; height: 100%; max-height: none;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0; background: transparent; font-family: Inter, sans-serif;
}
.share-dialog[open] { display: grid; place-items: center; grid-template: minmax(0,1fr) / minmax(0,1fr); }
.share-dialog::backdrop { background: rgba(0,0,0,.46); }
.share-picture {
  display: block; height: min(100%, 960px); max-width: 100%; aspect-ratio: 3 / 4;
  width: auto; max-height: calc((100vw - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right))) * 4 / 3);
}
.share-picture img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-touch-callout: default; }
.share-dialog button { border: 0; border-radius: 20px; padding: 10px 16px; cursor: pointer; font: inherit; }
.share-close-keyboard { position: absolute; inset-block-start: max(16px,env(safe-area-inset-top)); inset-inline-end: max(16px,env(safe-area-inset-right)); }
.share-close-keyboard:not(:focus-visible) { opacity: 0; pointer-events: none; }
.share-fallback { max-width: 320px; padding: 18px; background: white; color: #181818; border-radius: 10px; }
.share-fallback p { margin: 0 0 12px; line-height: 1.45; }
.share-dialog :focus-visible { outline: 2px solid #63bfff; outline-offset: 2px; }
@media (pointer: coarse) { .story-share { min-height: 44px; } }

/* A story card is a link to the reader. Share has its own target. */
.entry { position: relative; }
.entry-heading { margin: 0; }
.entry-toggle { text-decoration: none; text-align: start; }
.reader-articles .entry-toggle::after { content: ""; position: absolute; inset: 0; }
.entry-toggle:hover > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.reader-articles .entry-toggle:focus-visible::after { outline: 2px solid currentColor; outline-offset: 2px; }
.entry-visual { min-width: 0; }
.entry-visual .story-share { position: relative; z-index: 1; margin-block-start: 8px; padding-inline: 6px; gap: 4px; }
.entry-month-actions {
  grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px;
}
.archive-card .entry:first-child { padding-top: 0; }
.archive-card .entry { grid-template-columns: minmax(72px,24%) minmax(0,1fr); }
.reader-bar-actions { display: flex; align-items: center; gap: 10px; }
.reader-bar-actions > .reader-close { min-height: 42px; }

.clear-archive { color: inherit; text-underline-offset: 3px; padding: 6px; }
.archive-select { max-width: 100%; min-width: 0; }
.archive-select select { max-width: 100%; }
.list-month { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.story-page { max-width: 710px; margin: 0 auto; }
.story-dateline { color: #535353; font-size: 14px; font-weight: 550; line-height: 1.45; }
.story-page h1 { margin: 14px 0 26px; font-size: clamp(35px,5.1vw,65px); line-height: 1.04; font-weight: 570; letter-spacing: -.055em; overflow-wrap: anywhere; }
.story-opening { font-size: clamp(19px,2.4vw,24px); line-height: 1.55; letter-spacing: -.018em; }
.story-paragraph { font-size: clamp(17px,2vw,20px); line-height: 1.65; }
.story-browse { margin-top: 34px; padding-top: 20px; border-top: 1px solid #dedede; }
.story-browse h2 { margin: 0 0 12px; font-size: 16px; }
.story-browse div { display: flex; flex-wrap: wrap; gap: 8px; }
.story-browse a { display: inline-flex; align-items: center; gap: 6px; color: inherit; border: 1px solid #ccc; border-radius: 20px; padding: 9px 12px; font-size: 14px; text-decoration: none; }
.story-browse a:hover { background: #f3f3f3; }
a.preview-story { text-decoration: none; }
@media (max-width: 620px) {
  .reader-bar { gap: 8px; }
  .reader-bar-actions { gap: 6px; }
  .reader-bar-actions .story-share { padding-inline: 7px; }
  .reader-bar-actions > button, .story-share, .story-browse a { min-height: 44px; }
  .reader-bar:has(.story-share) .reader-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .reader-bar:has(.story-share) .reader-close { min-width: 44px; justify-content: center; }
}
.group-controls, .archive-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.group-controls { justify-content: space-between; width: 100%; }
.archive-group { font-size: 13px; font-weight: 500; }
.archive-group select { background: white; border: 0; border-bottom: 1px solid #bcbcbc; color: #222; font: inherit; padding: 5px 0; }
a.preview-story { color: inherit; text-align: start; box-sizing: border-box; }
a.preview-story:hover { background: #f2f2f2; }
