/* The atlas pairs six small forecast traces with one calibrated plotting field. */
.home {
  --atlas-ink: #242752;
  --atlas-paper: #fffcf7;
  --atlas-grid: #dcdfeb;
  --atlas-signal: #4b52a4;
  --atlas-rated: #a84416;
  background: var(--atlas-paper);
}
.home .site-head::after {height: 2px; background: var(--atlas-ink)}
.home .header-action, .home .btn-primary {background: var(--atlas-rated); color: #fff}
.journal-wrap {width: min(1190px, calc(100% - 48px)); margin: 30px auto 64px}
.atlas-head {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px;
  padding: clamp(20px, 3vw, 42px); background: var(--atlas-ink); color: #fdfbf5;
  border-radius: 12px 12px 0 0;
}
.atlas-title h1 {margin: 0 0 5px; font-size: clamp(2.6rem, 4.4vw, 4rem); color: inherit; letter-spacing: -.035em; line-height: 1.05}
.atlas-title p {font-size: 1.15rem; color: #dfdef2; line-height: 1.4; margin: 0}
.atlas-jumps {display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px}
.atlas-jumps a {color: #fff2cf; font-size: .98rem; text-underline-offset: 4px}
.sky-stamp {display: flex; align-items: center; gap: 8px}
.sky-dial {width: clamp(64px, 7vw, 100px); color: #b2b5dd; flex-shrink: 0}
.sky-stamp strong, .sky-stamp small, .atlas-sign label {display: block}
.sky-stamp strong {font: 500 1.3rem var(--mono); color: #ffda8b}
.sky-stamp small {font: .72rem var(--mono); color: #dfdef2; margin-top: 5px}
.sky-stamp span, .atlas-sign label {color: #e2e3f3; font-size: .95rem}
.atlas-sign {border-left: 1px solid #686b91; padding-left: 28px}
.atlas-sign select {padding: 7px 8px; border-radius: 3px; border: 0; color: var(--atlas-ink); background: #fffaf0; max-width: 100%}
.signal-panel {border: 1px solid #c8cada; background: #fff; border-radius: 0 0 12px 12px; overflow: hidden; color: var(--atlas-ink)}
.signal-heading, .plot-label, .leaf-top, .plot-inspector {display: flex; align-items: center; justify-content: space-between; gap: 12px}
.signal-heading {padding: 19px 27px; background: #f3f4fa; border-bottom: 1px solid var(--atlas-grid)}
.signal-heading h2, .shelf h2 {font-size: 1.55rem; margin: 0}
.signal-heading p {margin: 1px 0 0; color: #555970; font-size: .95rem}
.signal-heading label {white-space: nowrap; font-size: .95rem}
.signal-heading select, .record-leaf select, #check-custom {background: white; border: 1px solid #acaec0; border-radius: 4px; padding: 3px 8px; color: var(--atlas-ink)}
.signal-layout {display: grid; grid-template-columns: minmax(160px, 19%) 1fr}
#signal-axis {padding: 12px; background: #f8f8fc; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--atlas-grid)}
#signal-axis button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 9px 12px;
  background: transparent; color: #434661; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 600;
}
#signal-axis button:hover {background: #eeeff7}
#signal-axis button[aria-pressed=true] {background: #dedff2; border-color: #c4c6e4; color: #25275f}
#signal-axis svg {width: 48px; height: 20px; flex-shrink: 0}
#signal-axis polyline {fill: none; stroke: currentColor; stroke-width: 1.7}
.plot-work {padding: 18px 25px 16px; min-width: 0}
.plot-label h3 {font-size: 1.55rem; margin: 0}
#plot-sign {font-weight: 600; font-size: .95rem; color: #484b73}
.plot-legend {display: flex; gap: 3px 16px; flex-wrap: wrap; font-size: .88rem; color: #565971; margin: 2px 0 4px}
.plot-legend span::before {content: ""; display: inline-block; width: 18px; margin: 0 6px 3px 0; border-top: 2px solid var(--atlas-signal)}
.plot-legend .back-key::before {border-top-style: dashed}
.plot-legend .rated-key::before {width: 8px; height: 8px; margin-bottom: 0; border: 0; border-radius: 50%; background: var(--atlas-rated)}
#signal-plot {display: block; width: 100%; height: 204px; cursor: crosshair}
#signal-plot text {font: 10px var(--mono); fill: #555970}
.plot-grid, .week-grid {stroke: var(--atlas-grid); stroke-width: 1}
.week-grid {stroke-dasharray: 2 4}
.model-line, .felt-line, .cursor-line {fill: none; stroke: var(--atlas-signal); stroke-width: 2.1}
.model-line.reconstructed {stroke-dasharray: 4 4}
.model-dot {fill: white; stroke: var(--atlas-signal); stroke-width: 2}
.felt-line {stroke: var(--atlas-rated)}
.felt-dot {fill: var(--atlas-rated); stroke: white; stroke-width: 1.5}
.cursor-line {stroke: #7b7e99; stroke-dasharray: 2 3; stroke-width: 1}
.plot-inspector {border-top: 1px solid var(--atlas-grid); padding-top: 10px; margin-top: 6px; flex-wrap: wrap}
.plot-inspector output {font-size: .95rem; flex: 1}
.plot-inspector input {width: 80px; accent-color: var(--atlas-signal)}
#inspect-check, .journal-choice {cursor: pointer; border: 1px solid #b8b9cf; background: #fff; color: var(--atlas-ink); border-radius: 4px; padding: 4px 10px; font-size: .98rem}
#inspect-check:hover, .journal-choice:hover {background: #ecedf7}
.plot-detail {border-top: 1px solid var(--atlas-grid); padding: 9px 24px; color: #4c506b; font-size: .95rem}
.plot-detail p {margin: 8px 0}
summary {cursor: pointer}
.atlas-data {max-height: 220px; overflow: auto}
.atlas-data table, .axis-compare {width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums}
.atlas-data th, .atlas-data td, .axis-compare th, .axis-compare td {text-align: left; padding: 3px 8px; border-bottom: 1px solid var(--atlas-grid)}
.journal-spread {display: grid; grid-template-columns: .84fr 1.16fr; gap: 20px; margin-top: 22px; align-items: start}
.forecast-leaf, .record-leaf {min-width: 0; border-radius: 8px; padding: clamp(18px, 2.5vw, 32px)}
.forecast-leaf {background: #edf0fa; border: 1px solid #c9cede}
.record-leaf {background: #fbf7ed; border: 1px solid #dcd2bc}
.leaf-top {border-bottom: 1px solid #c6c6cd; padding-bottom: 9px; color: #4b5067; min-height: 42px}
.leaf-top time, #check-date {font: .8rem var(--mono); color: #55596a}
.forecast-leaf h2, .record-leaf h2 {margin: 18px 0 5px; font-size: clamp(1.9rem, 2.6vw, 2.55rem)}
#daily-profile {margin: 12px 0 22px}
.profile-row {display: grid; grid-template-columns: 90px 1fr 18px; gap: 10px; align-items: center; line-height: 1.65}
.profile-row i {position: relative; background: #bdc4de; height: 2px}
.profile-row i::before {content: ""; position: absolute; left: 50%; top: -3px; height: 8px; border-left: 1px solid #858dae}
.profile-row i::after {content: ""; position: absolute; left: var(--position); top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--atlas-signal); transform: translate(-50%,-50%)}
.profile-row b {text-align: right; font: .88rem var(--mono)}
#forecast-text {font-family: var(--display); font-size: clamp(1.45rem, 2vw, 1.95rem); line-height: 1.22; margin: 5px 0 15px}
#forecast-preview, #forecast-method {color: #4a4c6a; font-size: .95rem}
#forecast-method p {margin: .65em 0}
#check-date {margin: 8px 0 13px}
.measure-hint, .journal-note {font-size: 1rem; margin: 8px 0 12px}
.rating-set {display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px}
.rating-row {min-width: 0; padding: 0; margin: 0; border: 0}
.rating-row legend {font-weight: 600; padding: 0; margin-bottom: 3px}
.rating-row>div {display: flex}
.rating-row label {flex: 1; position: relative}
.rating-row input {position: absolute; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer}
.rating-row span {display: block; text-align: center; background: #fffefb; border: 1px solid #c9c1b0; border-right: 0; line-height: 1.85}
.rating-row label:last-child span {border-right: 1px solid #c9c1b0}
.rating-row input:checked+span {background: var(--atlas-rated); color: white}
.rating-row input:focus-visible+span {outline: 2px solid var(--atlas-ink); outline-offset: 1px; position: relative}
.rating-row small {color: #625d54; font-size: .85rem}
.reset-ratings {padding: 0; border: 0; background: transparent; text-decoration: underline; color: #605c70; margin: 6px 0 15px; cursor: pointer}
.record-leaf form>label, .record-leaf textarea {display: block}
.record-leaf textarea {width: 100%; min-height: 78px; resize: vertical; margin: 4px 0 12px; padding: 9px; background: #fffefb; border: 1px solid #b8b1a1; border-radius: 4px}
.journal-choice {margin: 4px 5px 4px 0}
.journal-pair p {border-left: 3px solid #939bc5; padding: 4px 12px; margin: 12px 0; background: #fffdf8}
.journal-pair b {display: block; font-size: .95rem}
.axis-compare {font-size: .95rem; margin: 12px 0}
.axis-compare caption {text-align: left; font-weight: 600}
#journal-status:empty {display: none}
#journal-status {margin: 10px 0 0; color: #933b16}
#check-custom {margin-top: 8px}
.shelf {margin-top: 32px; padding-top: 16px; border-top: 1px solid #d6d5d3}
.shelf p {display: flex; flex-wrap: wrap; gap: 5px 24px; margin: 8px 0}
@media(max-width: 920px) {
  .atlas-head {gap: 16px}
  .sky-stamp div {display: none}
  .atlas-sign {padding-left: 16px}
  .plot-inspector input {width: 60px}
}
@media(max-width: 740px) {
  .journal-wrap {width: calc(100% - 24px); margin-top: 16px}
  .atlas-head {grid-template-columns: 1fr auto; gap: 14px 10px}
  .atlas-sign {grid-column: 1/-1; border: 0; padding: 0; display: flex; align-items: center; gap: 10px}
  .atlas-title h1 {font-size: clamp(2.1rem, 7vw, 3rem)}
  .atlas-title p {font-size: 1rem}
  .sky-dial {width: 58px}
  .signal-heading {padding: 12px 15px}
  .signal-layout, .journal-spread {grid-template-columns: 1fr}
  #signal-axis {display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--atlas-grid)}
  #signal-axis button {font-size: .98rem; padding: 6px 7px}
  #signal-axis svg {width: 27px}
  .plot-work {padding: 12px}
  .plot-inspector output {flex-basis: 100%}
  .plot-inspector input {width: 40%}
  .plot-detail {padding: 9px 12px}
  .journal-spread {gap: 14px; margin-top: 14px}
}
@media(max-width: 480px) {
  .rating-set {grid-template-columns: 1fr}
  .rating-row span {line-height: 2.05}
  .signal-heading h2 {font-size: 1.3rem}
  .signal-heading label {font-size: .85rem}
  .plot-legend {font-size: .82rem; gap: 3px 9px}
  #signal-axis button {justify-content: center; flex-direction: column; gap: 0}
  #signal-axis svg {width: 40px; height: 12px}
}
