:root {
  color-scheme: light;
  --ocean: #062c3d;
  --ocean-2: #0b465a;
  --teal: #1f9c92;
  --foam: #e7f4f0;
  --paper: #f3f0e8;
  --white: #fffefa;
  --ink: #13303b;
  --muted: #5f7177;
  --line: rgba(6, 44, 61, .15);
  --sun: #ee8f45;
  --shadow: 0 18px 50px rgba(6, 44, 61, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); min-height: 100vh; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--ocean-2); }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; background: white; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.topbar { height: 72px; padding: 0 clamp(1rem, 3vw, 3rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; background: rgba(243, 240, 232, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { color: var(--ocean); font-weight: 750; text-decoration: none; letter-spacing: -.03em; font-size: 1.08rem; }
.brand span { color: var(--teal); }
.view-tabs { display: flex; gap: .35rem; background: rgba(6, 44, 61, .06); padding: .3rem; border-radius: 99px; }
.tab { border: 0; color: var(--muted); background: transparent; padding: .58rem .9rem; border-radius: 99px; font-size: .88rem; font-weight: 680; }
.tab.active { color: white; background: var(--ocean); }
#saved-count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 1rem; background: rgba(255,255,255,.17); font-size: .72rem; }
.access-button { justify-self: end; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: .55rem .85rem; color: var(--ocean); font-weight: 700; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .5rem; }
.header-actions select { min-height: 38px; border-radius: 99px; background: var(--white); font-weight: 700; }
.info-button { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ocean); font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--sun); }
.public-status { cursor: default; }
.public-status .status-dot { background: #37a56b; box-shadow: 0 0 0 4px rgba(55,165,107,.12); }
.app-view { display: none; }
.app-view.active { display: block; }
.intro-band { color: white; background: var(--ocean); min-height: 230px; padding: clamp(2rem, 5vw, 4.8rem) max(1.25rem, calc((100vw - 1280px) / 2)); display: flex; align-items: end; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.intro-band::after { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -240px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.02); pointer-events: none; }
.intro-band > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .55rem; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; color: var(--ocean); line-height: 1.06; }
.intro-band h1 { color: white; margin: 0; font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -.045em; }
.intro-band p:not(.eyebrow) { max-width: 680px; color: rgba(255,255,255,.74); margin: .9rem 0 0; line-height: 1.6; }
.year-control { display: flex; padding: .28rem; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; white-space: nowrap; }
.year-control button { border: 0; background: transparent; color: rgba(255,255,255,.72); padding: .65rem .85rem; border-radius: 99px; font-weight: 700; }
.year-control button.active { background: white; color: var(--ocean); }
.workspace { max-width: 1280px; margin: -1.5rem auto 0; padding: 0 1.25rem 4rem; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 1.25rem; position: relative; z-index: 3; }
.place-panel, .climate-panel { background: var(--white); border: 1px solid rgba(255,255,255,.65); border-radius: 22px; box-shadow: var(--shadow); }
.place-panel { padding: 1rem; align-self: start; position: sticky; top: 88px; max-height: calc(100vh - 105px); display: flex; flex-direction: column; }
.search-label, .scenario-row label, #access-form label { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.search-wrap { display: flex; align-items: center; gap: .45rem; margin: .55rem 0 1rem; background: var(--paper); border-radius: 12px; padding: 0 .75rem; border: 1px solid transparent; }
.search-wrap:focus-within { border-color: var(--teal); }
.search-wrap input, .solution-tools input { border: 0; outline: 0; background: transparent; width: 100%; min-height: 44px; color: var(--ink); }
.place-list { overflow: auto; padding-right: .25rem; }
.mobile-place-select { display: none; }
.place-group { margin: .8rem .55rem .3rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
.place-button { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 13px; padding: .72rem .75rem; color: var(--ink); display: grid; grid-template-columns: 30px 1fr; gap: .55rem; }
.place-button:hover { background: var(--paper); }
.place-button.active { background: var(--foam); color: var(--ocean); }
.place-icon { font-size: 1.2rem; padding-top: .1rem; }
.place-button strong { display: block; font-size: .96rem; }
.place-button small { display: block; color: var(--muted); margin-top: .18rem; line-height: 1.3; }
.climate-panel { min-height: 600px; padding: clamp(1.3rem, 4vw, 3.25rem); }
.empty-state { text-align: center; max-width: 480px; margin: 7rem auto; }
.empty-state h2 { font-size: 2rem; margin-bottom: .6rem; }
.empty-state p { color: var(--muted); line-height: 1.6; }
.pulse-globe { font-size: 5rem; color: var(--teal); line-height: 1; }
.primary { border: 0; border-radius: 99px; padding: .78rem 1.15rem; background: var(--ocean); color: white; font-weight: 750; }
.primary:hover { background: var(--ocean-2); }
.place-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.place-heading h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin: 0 0 .8rem; letter-spacing: -.04em; }
.evidence-pill { border-radius: 99px; padding: .5rem .7rem; background: var(--foam); color: #0b675f; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: .42rem .65rem; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700; }
button.chip.active { background: var(--ocean); color: white; border-color: var(--ocean); }
.scenario-row { margin: 1.8rem 0; padding: 1rem; background: var(--paper); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: .45rem 2rem .45rem .7rem; }
.report-status { color: var(--muted); margin: 1rem 0; }
.report-status.error { color: #9d3e30; }
.metric-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.metric-tab { border: 0; border-bottom: 2px solid transparent; padding: .5rem .2rem; margin-right: .85rem; color: var(--muted); background: transparent; }
.metric-tab.active { color: var(--ocean); border-color: var(--teal); font-weight: 750; }
.metric-card { border-top: 1px solid var(--line); padding: 1.4rem 0 1rem; }
.metric-card h3 { font-size: 1.55rem; margin: 0 0 .35rem; }
.bars { margin: 1.5rem 0; display: grid; gap: .9rem; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 180px) minmax(100px, 1fr) 95px; align-items: center; gap: 1rem; font-size: .88rem; }
.bar-track { height: 14px; background: #e3e4df; border-radius: 99px; overflow: hidden; }
.bar { height: 100%; min-width: 3px; background: #9ba7a7; border-radius: inherit; }
.bar.future { background: linear-gradient(90deg, var(--teal), #48c4ad); }
.bar-row strong { text-align: right; }
.metric-notes, .claim-card p, .method-card, .solution-card p { color: var(--muted); line-height: 1.55; }
.delta { display: inline-flex; padding: .3rem .55rem; border-radius: 6px; background: var(--foam); color: #0b675f; font-weight: 750; font-size: .82rem; }
.claim-card { border-left: 3px solid var(--sun); padding: .2rem 0 .2rem 1.15rem; margin: 1.5rem 0; }
.claim-card h3 { margin: .3rem 0; font-size: 1.35rem; }
.claim-card small { color: var(--muted); }
.method-card { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.method-card summary { color: var(--ocean); cursor: pointer; font-weight: 750; }
.method-card div { padding-top: .7rem; }
.solutions-head { max-width: 1280px; margin: auto; padding: clamp(2rem, 6vw, 5rem) 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.solutions-head h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -.04em; }
.solutions-head p:not(.eyebrow) { max-width: 680px; color: var(--muted); line-height: 1.6; }
.solution-tools { display: grid; gap: .6rem; min-width: 270px; }
.solution-tools input { min-height: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 .75rem; }
.filter-chips { max-width: 1280px; margin: 0 auto 1.4rem; padding: 0 1.25rem; }
.solution-grid { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem 5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.solution-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; display: flex; flex-direction: column; min-height: 300px; box-shadow: 0 8px 30px rgba(6,44,61,.04); }
.solution-card h2 { font-size: 1.65rem; margin: .7rem 0 .4rem; }
.solution-card .meta { font-size: .74rem; color: var(--teal); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.solution-card .place { font-size: .8rem; color: var(--muted); }
.solution-visual { position: relative; width: calc(100% + 2.5rem); margin: -1.25rem -1.25rem .9rem; }
.solution-media { display: block; width: 100%; margin: 0; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px 18px 0 0; background: var(--paper); }
.photo-scope { position: absolute; left: .75rem; bottom: .75rem; padding: .35rem .55rem; border-radius: 7px; background: rgba(2, 38, 52, .88); color: white; font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.media-badge { display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start; margin: -.15rem 0 .7rem; padding: .45rem .65rem; border-radius: 8px; background: var(--foam); color: var(--ocean); font-size: .78rem; font-weight: 800; }
.solution-card .card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.text-button { border: 0; background: transparent; color: var(--ocean); font-weight: 800; padding: .5rem 0; }
.bookmark { border: 1px solid var(--line); background: transparent; width: 42px; height: 42px; border-radius: 50%; color: var(--ocean); font-size: 1.15rem; }
.bookmark.active { color: white; background: var(--teal); border-color: var(--teal); }
dialog { border: 0; border-radius: 20px; padding: 0; color: var(--ink); background: var(--white); box-shadow: 0 24px 90px rgba(0,0,0,.28); max-width: min(480px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(1,20,29,.65); backdrop-filter: blur(4px); }
#access-form { padding: 2rem; display: grid; gap: .85rem; position: relative; }
#access-form h2 { margin: 0; font-size: 2.1rem; }
#access-form p { margin: 0 0 .6rem; color: var(--muted); line-height: 1.5; }
#access-form input { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .7rem; }
.close-button { position: absolute; right: 1rem; top: 1rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.5rem; }
.form-error { color: #9d3e30 !important; font-size: .85rem; }
.story-dialog { width: min(780px, calc(100vw - 1.5rem)); max-width: 780px; max-height: min(900px, calc(100vh - 2rem)); }
.info-dialog { width: min(660px, calc(100vw - 1.5rem)); max-width: 660px; max-height: min(820px, calc(100dvh - 1.5rem)); }
#story-detail { padding: clamp(1.5rem, 5vw, 3.5rem); }
#info-detail { padding: clamp(1.5rem, 5vw, 3.25rem); position: relative; }
#info-detail h1 { margin: .4rem 2.5rem 1rem 0; font-size: clamp(2.2rem, 6vw, 3.5rem); }
#info-detail h2 { margin: 1.6rem 0 .4rem; font-size: 1.35rem; }
#info-detail p { color: var(--muted); line-height: 1.65; }
.story-photo { width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; margin: 1rem 0 .45rem; }
.photo-caption { color: var(--muted); font-family: inherit !important; font-size: .86rem !important; line-height: 1.5 !important; }
.media-card { margin: 1rem 0 1.5rem; padding: 1rem; border-radius: 14px; background: var(--foam); }
.media-card p { font-family: inherit !important; font-size: .9rem !important; line-height: 1.55 !important; }
.media-card a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; }
#story-detail h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: .5rem 0; }
#story-detail h2 { margin-top: 2rem; font-size: 1.5rem; }
#story-detail p { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.75; }
#story-detail .source-list p, #story-detail .action-box p, #story-detail .story-meta { font-family: inherit; font-size: .88rem; }
.action-box { background: var(--foam); border-radius: 15px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.source-list { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 120px); background: var(--ocean); color: white; border-radius: 99px; padding: .75rem 1rem; z-index: 80; opacity: 0; transition: .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--line); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.15rem; margin-right: .4rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 681px) and (max-width: 1050px) {
  .topbar { padding-inline: 1rem; gap: .65rem; }
  .brand { font-size: .96rem; }
  .tab { padding-inline: .65rem; font-size: .78rem; }
  .public-status { display: none; }
  .workspace { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); padding-inline: 1rem; }
  .climate-panel { padding: 2rem; }
  .solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topbar {
    position: relative;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    padding: .75rem max(1rem, env(safe-area-inset-right)) .7rem max(1rem, env(safe-area-inset-left));
  }
  .brand { font-size: .92rem; white-space: nowrap; }
  .header-actions select { min-height: 36px; max-width: 118px; padding: .35rem 1.65rem .35rem .65rem; font-size: .86rem; }
  .info-button { width: 36px; height: 36px; flex-basis: 36px; }
  .public-status { display: none; }
  .view-tabs {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    padding: .24rem;
    border-radius: 16px;
  }
  .tab {
    min-width: 0;
    min-height: 46px;
    padding: .4rem .25rem;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(.67rem, 2.9vw, .78rem);
    line-height: 1.12;
  }
  .intro-band {
    min-height: 0;
    display: block;
    padding: 1.55rem max(1.25rem, env(safe-area-inset-right)) 1.45rem max(1.25rem, env(safe-area-inset-left));
  }
  .intro-band::after { width: 310px; height: 310px; right: -145px; top: -165px; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.02); }
  .intro-band .eyebrow { font-size: .66rem; letter-spacing: .11em; }
  .intro-band h1 { max-width: 12ch; font-size: clamp(2.55rem, 12vw, 3.25rem); line-height: .98; }
  .intro-band p:not(.eyebrow) { margin-top: .8rem; font-size: 1rem; line-height: 1.48; }
  .year-control { display: inline-flex; margin-top: 1rem; }
  .year-control button { min-width: 64px; padding: .52rem .7rem; font-size: .88rem; }
  .workspace { grid-template-columns: minmax(0, 1fr); margin-top: 0; padding: 0; gap: 0; }
  .place-panel {
    position: static;
    width: 100%;
    max-height: none;
    padding: 1.05rem max(1rem, env(safe-area-inset-right)) .85rem max(1rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .search-label { font-size: .76rem; }
  .search-wrap { margin: .45rem 0 .75rem; }
  .place-list { display: none; }
  .mobile-place-select { display: block; width: 100%; min-height: 46px; margin: 0; background: var(--white); }
  .place-group { display: none; }
  .climate-panel {
    min-height: 0;
    padding: 1.5rem max(1.15rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.15rem, env(safe-area-inset-left));
    border-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .empty-state { margin: 3rem auto; }
  .place-heading, .scenario-row, .solutions-head { align-items: stretch; flex-direction: column; }
  .place-heading h2 { font-size: 2.55rem; }
  .evidence-pill { align-self: start; }
  .scenario-row { margin: 1.25rem 0; }
  .scenario-row select { width: 100%; }
  .bar-row { grid-template-columns: 78px minmax(70px, 1fr) 76px; gap: .45rem; font-size: .78rem; }
  .metric-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .metric-tab { flex: 0 0 auto; }
  .solutions-head { padding: 2rem 1rem 1.1rem; gap: 1rem; }
  .solutions-head h1 { font-size: 2.7rem; }
  .solution-grid { grid-template-columns: 1fr; padding-inline: 1rem; }
  .solution-tools { min-width: 0; width: 100%; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .35rem; }
  .story-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .info-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  #story-detail { padding: 1.5rem 1.15rem 2rem; }
  #info-detail { padding: 1.5rem 1.15rem 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
