/* sheet.css — the document: the analysis sheet's own typography and structure (masthead, figure margin,
   sections, figure, table, forecast, footer). The study's CSS, unchanged. */

.sheet{ max-width:960px; margin:0 auto; padding:clamp(20px,4vw,44px) clamp(16px,4vw,40px); }

/* masthead */
header.mast{ border:2px solid var(--ink); background:rgba(221,227,232,.7); }
.mast .band{ display:flex; justify-content:space-between; align-items:flex-end;
  padding:16px 20px; border-bottom:1px solid var(--ink); flex-wrap:wrap; gap:10px; }
.mast h1{ font-family:"Archivo",sans-serif; font-weight:700; font-size:clamp(22px,4.4vw,38px);
  letter-spacing:.02em; margin:0; text-transform:uppercase; }
.mast .sub{ font-family:"IBM Plex Mono",ui-monospace,Consolas,monospace; font-size:12px;
  color:var(--ink-2); letter-spacing:.04em; text-transform:uppercase; }
.mast .stamp{ text-align:right; }
.mast .doc{ display:flex; flex-wrap:wrap; font-family:"IBM Plex Mono",monospace; font-size:11px;
  letter-spacing:.06em; color:var(--ink-2); text-transform:uppercase; }
.mast .doc > span{ padding:7px clamp(10px,2.4vw,20px); border-right:1px solid var(--hair); }   /* direct children only: the typing layer fills these with character spans */
.mast .doc > span:last-child{ border-right:0; }

/* two-column: figure margin + body */
.doc-body{ display:grid; grid-template-columns:132px 1fr; gap:0;
  margin-top:26px; border-top:1px solid var(--hair); }
.figcol{ border-right:1px solid var(--hair); padding:22px 14px 22px 0; min-width:0; }
.figtag{ font-family:"Archivo",sans-serif; font-weight:700; font-size:13px;
  letter-spacing:.14em; text-transform:uppercase; }
.figtag small{ display:block; font-family:"IBM Plex Mono",monospace; font-weight:400;
  font-size:11px; letter-spacing:.02em; color:var(--ink-2); margin-top:5px; text-transform:none; }
.dimstack{ margin-top:20px; }
.maincol{ padding:22px 0 22px 26px; min-width:0; }

section{ margin-bottom:34px; }
section:last-child{ margin-bottom:0; }
h2{ font-family:"Archivo",sans-serif; font-weight:700; font-size:15px;
  letter-spacing:.1em; text-transform:uppercase; margin:0 0 4px;
  display:flex; align-items:baseline; gap:10px; }
h2 .no{ font-family:"IBM Plex Mono",monospace; font-weight:500; font-size:12px;
  color:var(--ink); border:1px solid var(--ink); padding:1px 6px; letter-spacing:.04em; }
.kicker{ font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-2);
  letter-spacing:.08em; text-transform:uppercase; margin:0 0 14px; }
p{ margin:0 0 12px; max-width:64ch; }
.lede{ font-size:17px; color:var(--ink); }

/* figure 1 */
figure{ margin:0; border:1px solid var(--ink); background:rgba(221,227,232,.55); }
figure .frame{ padding:14px; }
svg.chart{ display:block; width:100%; height:auto; }
figcaption{ border-top:1px solid var(--hair); padding:9px 14px;
  font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-2);
  letter-spacing:.03em; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.legend{ display:flex; gap:18px; margin-top:12px; font-family:"IBM Plex Mono",monospace;
  font-size:11px; color:var(--ink-2); flex-wrap:wrap; letter-spacing:.02em; }
.legend b{ display:inline-flex; align-items:center; gap:6px; font-weight:400; }
.swatch{ width:14px; height:0; border-top:1.5px solid var(--ink); display:inline-block; }
.swatch.g{ border-top:0; width:9px; height:9px; border-radius:50%;
  background:var(--green); }

/* observations table */
table{ border-collapse:collapse; width:100%; font-family:"IBM Plex Mono",monospace;
  font-size:12.5px; }
.tablewrap{ overflow-x:auto; border:1px solid var(--hair); }
th,td{ text-align:right; padding:7px 10px; border-bottom:1px solid var(--hair);
  white-space:nowrap; }
th:first-child, td:first-child{ text-align:left; }
thead th{ background:rgba(30,42,56,.06); font-weight:500; text-transform:uppercase;
  font-size:11px; letter-spacing:.05em; color:var(--ink-2); border-bottom:1.5px solid var(--ink); }
tbody tr:last-child td{ border-bottom:0; }
td .mark{ color:var(--green); font-weight:500; }

/* forecast */
.fc{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--hair);
  border:1px solid var(--hair); }
.fc .cell{ background:var(--paper); padding:14px; }
.fc .day{ font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.06em;
  color:var(--ink-2); text-transform:uppercase; margin-bottom:8px; }
.fc .temp{ font-family:"Archivo",sans-serif; font-weight:700; font-size:26px; }
.fc .temp small{ font-size:13px; color:var(--ink-2); font-weight:400; }
.fc .cond{ font-size:13px; margin-top:4px; }

footer{ margin-top:30px; border-top:2px solid var(--ink); padding-top:12px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-family:"IBM Plex Mono",monospace; font-size:11px; color:var(--ink-2);
  letter-spacing:.03em; text-transform:uppercase; }

@media (max-width:720px){
  .doc-body{ grid-template-columns:1fr; }
  .figcol{ border-right:0; border-bottom:1px solid var(--hair); padding:14px 0; }
  .maincol{ padding:22px 0 0; }
  .dimstack{ display:none; }
  .fc{ grid-template-columns:1fr; }
}
