/* Shell + components. Colours and sizes come from tokens.css. Light, sidebar left, framed panel.
   Each part is defined once, its narrow-screen rules right after it. Breakpoints: 1100px (two columns),
   800px (phone: the sidebar slides in, the panel loses its frame), 600px (the entry form). */

/* ---- base ---- */
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--beige-2); color: var(--ink); font: var(--fs-base)/1.4 var(--font); font-variant-numeric: tabular-nums; }      /* every digit as wide as the next, so figures line up */
button, input, select, textarea { font: inherit; min-height: var(--tap); }
button, a, summary, select, input, .card[data-go], .attn { touch-action: manipulation; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
  body { overflow-x: hidden; }
  input, select, textarea { font-size: var(--fs-base); }              /* iOS zooms into smaller fields */
}

/* ---- buttons: .primary (the one action of a form), .btn (with a border), .plain (text only), button.link (underlined) ---- */
.primary { min-height: var(--tap); padding: 0 1.4rem; border: 0; border-radius: var(--radius-md); background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; cursor: pointer; }
.primary:disabled { opacity: .5; cursor: default; }
.btn { min-width: var(--tap); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: none; color: var(--ink); cursor: pointer; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .4; cursor: default; }
.plain { padding: 0 1rem; border: 0; border-radius: var(--radius-md); background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
button.link { background: none; border: 0; color: var(--ink); text-decoration: underline; padding: 0; min-height: 32px; cursor: pointer; }

.app { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; }
@media (min-width: 801px) {
  .app { transition: grid-template-columns .18s ease; }
  .app.collapsed { grid-template-columns: 52px 1fr; }
}
@media (max-width: 800px) { .app { display: block; height: auto; } }

/* the sidebar's edge: drag it to make the sidebar wider or narrower (not when collapsed, not on a phone) */
.app { position: relative; }
.side-resize { position: absolute; top: 0; bottom: 0; left: calc(var(--side-w) - 5px); z-index: 5; width: 10px; cursor: col-resize; touch-action: none; }
.side-resize::after { content: ""; position: absolute; top: 12px; bottom: 12px; left: 4px; width: 2px; border-radius: var(--radius-full); background: transparent; transition: background .12s; }
.side-resize:hover::after, .side-resize:focus-visible::after, .resizing .side-resize::after { background: var(--tile-line-hover); }
.app.collapsed .side-resize { display: none; }
body.resizing { cursor: col-resize; user-select: none; } body.resizing .app { transition: none; }      /* no easing while dragging */
@media (max-width: 800px) { .side-resize { display: none; } }

/* ---- sidebar ---- */
.side { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; overflow: auto; }
@media (min-width: 801px) { .side { gap: 4px; padding: 12px 8px; overflow-x: hidden; white-space: nowrap; } }      /* tight enough to fit a laptop screen without scrolling */
@media (max-width: 800px) {                       /* phone: a slide-in menu */
  .side { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--side-w); height: 100dvh; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--beige-2); transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 24px var(--shade); }
  .side.open { transform: none; }
}

.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: var(--fs-base); padding: 6px 8px 12px; }
.brand .demo { margin-left: .2rem; }
.bname { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }      /* the name and, under it, the club: one title with the logo */
.logo { width: 26px; height: 26px; border-radius: 50%; background: var(--peach); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 7px 5px; border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); }
.brand .collapse { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; border: 0; border-radius: var(--radius-md); background: none; color: var(--ink); cursor: pointer; opacity: .7; }
.brand .collapse:hover { background: var(--hover); opacity: 1; }
@media (min-width: 801px) { .brand { padding: 4px 4px 10px; overflow: hidden; } }
@media (max-width: 800px) { .brand .collapse { display: none; } .side .brand .logo { cursor: pointer; } }

/* Add entry: the one action in the menu, a quiet button (not a menu row); only the plus has colour */
.side-add { display: flex; align-items: center; gap: .65rem; min-height: var(--control); padding: 0 9px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); box-shadow: var(--shadow-tile); color: var(--ink); font: inherit; font-size: var(--fs-base); font-weight: 600; cursor: pointer; overflow: hidden; }
.side-add:hover { border-color: var(--tile-line-hover); }
.side-add .ni { flex: none; color: var(--peach-deep, var(--et)); }
.app.collapsed .side-add { width: 36px; }

.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; justify-content: flex-start; gap: .65rem; min-height: 34px; padding: 0 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-base); background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.side nav a:hover { background: var(--hover); }
.side nav a.on { background: var(--green); color: var(--beige); font-weight: 600; }
.side nav a .ni { flex: none; opacity: .75; }
.side nav a.on .ni { opacity: 1; }
.label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 12px 12px 4px; }
.side nav .label { margin-top: 6px; }
.gn { font-weight: inherit; }
.navdot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: auto; flex: none; }      /* a green that asks for attention; why is on Home */
.side nav a.on .navdot { background: var(--beige); }
.navdate { font-size: var(--fs-sm); font-weight: 400; opacity: .7; margin-left: auto; }
.navdate .wi { vertical-align: -2px; margin-right: .1rem; }
@media (min-width: 801px) {
  .side nav { gap: 1px; }
  .side nav a { padding: 0 9px; min-height: 33px; overflow: hidden; transition: background .1s; }
  .side nav .label { padding: 8px 9px 2px; overflow: hidden; transition: opacity .12s; }
}

/* collapsed: one icon column; every icon keeps its place */
@media (min-width: 801px) {
  .app.collapsed .side nav .label { color: transparent; background: linear-gradient(var(--line), var(--line)) 9px 70% / calc(100% - 18px) 1px no-repeat; }      /* same height as the label, so the icons below do not move */
  .app.collapsed .side nav .gw, .app.collapsed .side nav .gi { display: none; }      /* the greens: only the number when the sidebar is collapsed */
  .app.collapsed .side nav .gn { margin: 0 auto; }
  .app.collapsed .brand .demo { display: none; }
  .app.collapsed .brand { font-size: 0; gap: 0; padding-left: 0; padding-right: 0; justify-content: center; }      /* one row as when open, only the button to open it again, centred over the icons (the name stays a flex item, so no gap) */
  .app.collapsed .brand .logo { display: none; }
  .app.collapsed .brand .collapse { margin: 0; }
  .app.collapsed .who { display: none; }
  .app.collapsed .who-btn { padding: 0; }
}
.app.collapsed .ver { display: none; }

/* ---- profile row with its menu (bottom of the sidebar) ---- */
.profile { position: relative; margin-top: auto; }
.who-btn { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: 6px 10px; background: none; border: 0; border-radius: var(--radius); color: var(--muted); font-size: var(--fs-md); font-weight: 400; cursor: pointer; text-align: left; }
.who-btn:hover, .who-btn[aria-expanded="true"] { background: var(--hover); }
.who-btn .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.av { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--peach); color: var(--green); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.av.big { width: 56px; height: 56px; font-size: var(--fs-xl); margin-bottom: 6px; }
.pop { position: fixed; left: var(--pop-l, 8px); bottom: var(--pop-b, 72px); width: min(264px, calc(100vw - 16px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-lg); z-index: 30; }
.pcard .sub2, .pcard strong { white-space: normal; overflow-wrap: anywhere; }
.pcard { background: var(--beige); border-radius: var(--radius); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-bottom: 8px; }
.prow { padding: 10px 8px 4px; }      /* a section heading in the menu, the same label as 'Choose club' */
.pop input[type=date] { width: 100%; margin: 2px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 8px; background: var(--card); color: var(--ink); }
.pop p { margin: 0 8px 4px; white-space: normal; }      /* the sidebar does not wrap; the menu text does */
.pop .chips.views { margin: 4px 8px 6px; flex-wrap: wrap; }
.pop button.link { margin: 0 8px 8px; text-align: left; }
.ver { font-size: var(--fs-xs); color: var(--muted); padding: 2px 10px 0; opacity: .8; letter-spacing: .02em; user-select: all; }

/* the club line under the name: logo column 18 px, like the icons in the menu */
.clublist { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.clublist .label { padding: 4px 8px; }
.clubitem { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: 6px 8px; background: none; border: 0; border-radius: var(--radius); color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; }
.clubitem:hover { background: var(--beige); }
.clubitem .cn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; white-space: normal; }      /* the menu sits in the sidebar, which never wraps; a long role wraps here so the check stays inside */
.clubitem small { font-weight: 400; color: var(--muted); }
.clubitem .check { flex: none; width: 1rem; text-align: center; color: var(--info); font-weight: 700; }

/* ---- framed panel: header bar and content ---- */
.main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 8px 8px 8px 0; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0; }
@media (max-width: 800px) { .main { margin: 0; border-radius: 0; border: 0; overflow: visible; display: block; } }

/* header bar: title on top, the page's tabs below it with a thin active underline */
.top { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }
.top h1 { margin: 0; font-weight: 600; }
.top #msg { margin-left: auto; font-size: var(--fs-md); color: var(--muted); }
.titleicon { display: grid; place-items: center; color: var(--ink); opacity: .8; }
.titleicon:empty { display: none; }
.toptabs { display: flex; order: 5; flex-basis: 100%; }
.tabs[hidden] { display: none !important; }
.toptabs .tabs { margin: 0; border: 0; gap: .15rem; }
.toptabs .tabs button { padding: 0 .9rem; margin-bottom: -1px; }
.burger { display: none; }
.to-log { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--control); padding: 0 .7rem; margin-left: .5rem; font-size: var(--fs-md); font-weight: 600; }      /* a smaller .btn with an icon */
@media (min-width: 801px) {
  .top { row-gap: 0; padding: 14px 24px 12px; border-bottom-color: var(--line-soft); }
  .top:has(.tabs) { padding-bottom: 0; }
  .top h1 { font-size: var(--fs-xl); }
  .toptabs { margin-top: 6px; }
  .toptabs .tabs button { height: 34px; padding: 0; margin: 0 1.4rem -1px 0; font-size: var(--fs-md); font-weight: 500; border-bottom-width: 2px; }      /* the line sits exactly under the tab text: no side padding, spacing through the margin */
  .toptabs .tabs button[aria-selected="true"] { font-weight: 600; }
}
@media (max-width: 800px) {
  .top { position: sticky; top: 0; z-index: 10; min-height: 64px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: var(--paper); }
  .top h1 { font-size: var(--fs-lg); flex: 1; }
  .top #msg { order: 4; flex-basis: 100%; }
  .toptabs { align-self: stretch; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }      /* the strip runs to the screen edge; a fade on the side where more tabs are (set by tabEdges in shell.js) */
  .toptabs::-webkit-scrollbar { display: none; }
  .toptabs.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .toptabs.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
  .toptabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
  .toptabs .tabs button { height: 40px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .to-log { padding: 0 .5rem; order: 2; }
}

.content { grid-column: 1; overflow: auto; padding: 4px 24px 32px; }      /* no dotted pattern: it competed with the content on every page */
@media (max-width: 800px) { .content { overflow: visible; padding: 4px max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); } }


/* ---- type ---- */
/* caps: the small heading in capitals, above a block (h2, .sect) or inside a tile (.card h3, .d-l, .wn-l, a table group) */
h2, .sect, .card h3, .d-l, .wn-l, .weertable tr.grp th { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
h2, .sect { margin: 1.5rem 0 .5rem; }
h2 { display: flex; gap: 1rem; align-items: baseline; }
article > h2:first-child { font-size: var(--fs-lg); text-transform: none; letter-spacing: 0; color: var(--ink); margin-top: 16px; }      /* the title of a tab */
.sub2 { color: var(--muted); font-size: var(--fs-md); }
.lead { font-size: var(--fs-base); margin: .4rem 0; }
.quiet { margin: .2rem 0; }
.lastline { margin: .6rem 0 .2rem; }
.lastline b { font-weight: 600; }
pre { background: var(--beige); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; overflow-x: auto; font: var(--fs-md)/1.5 var(--mono); white-space: pre-wrap; }

/* status marks: colour + symbol + word, never colour alone. Before the components, so a pill or label keeps its own weight */
.in, .ok, .l0 { color: var(--ok); }
.above, .below { color: var(--warn); }
.attention, .l1 { color: var(--attn-ink); }
.alert { color: var(--act-ink); }
.l2 { color: var(--act-ink); }
.unknown { color: var(--muted); }
.ok, .attention, .alert, .l1, .l2 { font-weight: 600; }
.stage0 { color: var(--muted); } .stage1 { color: var(--warn); font-weight: 600; } .stage2 { color: var(--warn); font-weight: 700; } .stage3 { color: var(--act-ink); font-weight: 700; }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .cards, .cards.three, .cards.four { grid-template-columns: 1fr; } }
/* tile: the white box with a border. Cards, day tiles, the weather blocks, the attention rows, folded settings: all one */
.card, .stile, .dtile, .wnow, .hstrip, .fdays, .savebar, details.setpage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-tile); }
.card { padding: var(--pad); }
.card.warn { background: var(--card); border-color: var(--attn-line); box-shadow: var(--shadow-tile), inset 0 0 0 1px var(--attn-bg); }      /* a card that asks to be looked at: white with the amber of the notices, not a coloured fill */
.card h3 { margin: 0 0 .3rem; display: flex; justify-content: space-between; gap: .5rem; }
.card h3 span { text-transform: none; letter-spacing: 0; }
.card .big { margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }      /* a figure on a card stays smaller than the page title */
.card .big small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.card p { margin: .25rem 0; }
.chev-go { color: var(--muted); font-size: var(--fs-lg); line-height: 1; transition: transform .12s; }      /* the arrow of a clickable tile; see .go at the end */
.card h3 .chev-go { margin-left: auto; text-transform: none; letter-spacing: 0; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--peach); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---- controls ---- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 1rem 0; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0 1rem; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.chip, .gpick-b { min-height: var(--control); padding: 0 .85rem; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--card); color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: 500; cursor: pointer; }      /* Chip: a choice (period, view, filter, a green); pressed = filled ink */
.chip:hover, .gpick-b:hover { border-color: var(--tile-line-hover); }
.chip[aria-pressed="true"], .gpick-b[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chips.views { display: flex; gap: .6rem; margin-bottom: 1rem; }
.chips.periods { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .2rem 0 1rem; }
@media (max-width: 800px) { .chip, .chips button, .gpick-b { min-height: var(--tap); } }
.pill, .ltype { display: inline-block; padding: .05rem .55rem; border-radius: var(--radius-full); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }      /* Tag: a status or a kind, not tappable; tinted in its colour */
.pill.ok { background: var(--ink-08); color: var(--ink); }
.pill.alert { background: var(--act-bg); color: var(--act-ink); }
.pill.attention { background: var(--attn-bg); color: var(--attn-ink); }
.demo { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; background: var(--tint); border-radius: var(--radius-full); padding: .1rem .5rem; }
.lamp-inline { margin-left: .6rem; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* ---- meters: a bar, its threshold, its band ---- */
.meter { position: relative; height: 8px; border-radius: var(--radius-full); background: var(--ink-08); margin: .55rem 0 .4rem; }
.meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-full); background: var(--ink-50); }
.meter-thr { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: var(--radius-xs); }
.meter-band { position: absolute; top: -3px; bottom: -3px; background: var(--band); border-radius: var(--radius-full); }
.meter-edge { position: absolute; top: -4px; bottom: -4px; width: 1.5px; margin-left: -.75px; background: var(--muted); border-radius: var(--radius-xs); }      /* the limits of the band, as the ticks of a gauge */

/* ---- tables and folds ---- */
/* a table is one tile: soft lines between the rows, no lines between the columns, a quiet head */
table { width: 100%; font-size: var(--fs-base); border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-tile); }      /* its own size, also inside a folded block (details is 14 px); 14 px on a phone, below */
th, td { padding: .6rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); border-bottom-color: var(--line); white-space: nowrap; }
tr:last-child > td { border-bottom: 0; }
tr.sum td { font-weight: 600; border-top: 1px solid var(--line); }
.card table { border: 0; border-radius: 0; box-shadow: none; }      /* a table inside a tile has no frame of its own */
.tablewrap { overflow-x: auto; }
@media (max-width: 800px) {
  table { font-size: var(--fs-md); display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: .3rem .4rem; }
}
details { font-size: var(--fs-md); }
details summary { cursor: pointer; margin: .6rem 0; }
/* one way to fold: a thin chevron, right when closed and down when open, as the headings in the menu (.navhead); before the text, after it on a row (.fdx, .mlow) */
summary { list-style: none; } summary::-webkit-details-marker { display: none; }
details > summary::before, .navhead::after, .fdx > summary::after, .mlow summary::after { content: ""; display: inline-block; flex: none; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details > summary::before { margin: 0 .6rem 2px .15rem; }
details[open] > summary::before, .navhead[aria-expanded="true"]::after, .fdx[open] > summary::after, .mlow details[open] summary::after { transform: rotate(45deg); }
.fdx > summary::before, .mlow summary::before { content: none; }
@media (prefers-reduced-motion: reduce) { details > summary::before, .navhead::after, .fdx > summary::after, .mlow summary::after { transition: none; } }
details ul { margin: .4rem 0; padding-left: 1.2rem; }
.more { margin: 1.2rem 0; }
.more > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }

/* ---- charts ---- */
.legend { margin: .2rem 0 .4rem; font-size: var(--fs-md); color: var(--muted); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-xs); margin: 0 .25rem 0 .6rem; vertical-align: baseline; }
.legend .sw:first-child { margin-left: 0; }
.legend:has(i) { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; margin-top: .6rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-xs); margin: 0 .4rem 0 0; }
.legend:has(i) .sub2 { margin-left: auto; }
/* hover card */
.hit { fill: transparent; pointer-events: all; }
.hit:hover { fill: var(--ink-05); }
.hit-dot { cursor: help; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--paper); padding: .45rem .65rem; border-radius: var(--radius-md); font-size: var(--fs-sm); line-height: 1.45; box-shadow: var(--shadow-lg); max-width: 280px; }
.tip[hidden] { display: none; }
.tip b { display: block; font-weight: 600; margin-bottom: .1rem; }
.tip span { display: block; opacity: .9; }
/* chart text keeps one size on every screen; --k: see the end of core.js */
.spark { width: 100%; max-width: 360px; height: auto; display: block; margin: .6rem 0 .2rem; }
.spark .axis { stroke: var(--line); }
.spark .thr { stroke: var(--warn); stroke-dasharray: 4 3; }
.spark .ln { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linejoin: round; }
.spark .dot { fill: var(--peach); stroke: var(--ink); stroke-width: 1; }
.spark .lbl { fill: var(--muted); font-size: calc(var(--fs-xs) / var(--k, 1)); }
.spark .ln.fc { stroke-dasharray: 4 3; opacity: .85; }      /* expected values (forecast): dashed */
.spark .dot.fc { fill: var(--paper); stroke: currentColor; stroke-width: 1.6; }
.waterchart { width: 100%; height: auto; display: block; }
.waterchart .axis { stroke: var(--line); }
.waterchart .grid { stroke: var(--line); stroke-dasharray: 2 3; opacity: .7; }
.waterchart .lbl { fill: var(--muted); font-size: calc(var(--fs-xs) / var(--k, 1)); paint-order: stroke; stroke: var(--paper); stroke-width: calc(3px / var(--k, 1)); stroke-linejoin: round; }
.waterchart .lbl.hr { font-size: calc(var(--fs-xs) / var(--k, 1)); opacity: .85; }
.waterchart .ln { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linejoin: round; }
.waterchart .dot { fill: var(--peach); stroke: var(--ink); stroke-width: 1; }
/* series colours */
.wr { fill: var(--rain); }
.we { fill: var(--et); }
.wi { fill: var(--irrigation); }
.trange { fill: color-mix(in srgb, var(--ink) 12%, transparent); }      /* lowest to highest: a grey band, the mean the line (as on Topdressing) */
.legend .sw.wr { background: var(--rain); }
.legend .sw.we { background: var(--et); }
.legend .sw.wi { background: var(--irrigation); }
.legend .sw.tr { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.legend .sw.band { background: var(--band); }
.sl { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wl { fill: none; stroke-width: 2; stroke-linejoin: round; }
.wl.sb, .dot.sb { stroke: var(--ink); }
.wl.ss, .dot.ss { stroke: var(--series-1); }
.dot.sb, .dot.ss { fill: var(--paper); stroke-width: 2; }
.legend .sw.sb { background: var(--ink); }
.legend .sw.ss { background: var(--series-1); }
.tri { vertical-align: -2px; margin-left: .2rem; }
.waterchart .yearl { stroke: var(--line); stroke-width: 1; }      /* where a new year starts on a chart over several seasons */
.dmark { fill: var(--muted); }
/* time chart, the Nutrients way: a head with the measure and its unit, grey context and one series in ink, solid = measured, dashed = expected, the names at the line ends */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin: .2rem 0 .4rem; }
.chart-head b { font-size: var(--fs-base); font-weight: 600; }
.chart-head .chips { display: flex; gap: .35rem; }
.chart-head .legend { margin: 0; }
.timeline svg + .chart-head { margin-top: 1.4rem; }
.timeline .band { fill: var(--band-soft); }
.timeline .now, .timeline .zero { stroke: var(--ink); stroke-width: 1; opacity: .25; }
.timeline .sl.ctx { stroke: var(--series-ctx, var(--context)); }
.timeline .sl.acc { stroke: var(--series-acc, var(--ink)); stroke-width: 2.5; }
.timeline .sl.exp { stroke-dasharray: 5 4; }
.timeline .dot-end { stroke: var(--card); stroke-width: 1.5; }
.timeline .dot-end.acc { fill: var(--series-acc, var(--ink)); } .timeline .dot-end.ctx { fill: var(--series-ctx, var(--context)); } .timeline .dot-end.out { fill: var(--act); }
.timeline .end { font-weight: 600; } .timeline .end.acc { fill: var(--series-acc, var(--ink)); }
.timeline .spread { fill: color-mix(in srgb, var(--ink) 10%, transparent); }
.timeline .thr { stroke: var(--ink); stroke-width: 1; opacity: .45; }
.timeline .sl.over { stroke: var(--attn); stroke-width: 2.5; }
.timeline .tdmark { stroke: var(--ink); stroke-width: 2; opacity: .55; }
.legend .sw.mean { background: var(--ink); } .legend .sw.ctx { background: var(--context); border-radius: 50%; } .legend .sw.spread { background: color-mix(in srgb, var(--ink) 18%, transparent); } .legend .sw.over { background: var(--attn); }
.chart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: .3rem 0 1.2rem; }
.chart-foot .legend { margin: 0; }
.chart-head .chips.views { margin: 0; }
/* Growth: a dot per green per mowing; colour is the state (grey, orange outside the band), the green in focus is the ink */
.timeline .gdot { fill: var(--context); stroke: var(--card); stroke-width: .6; }
.qhead { margin-top: 1.2rem; }
.timeline .gdot.acc { fill: var(--ink); }
.timeline .gdot.out { fill: var(--attn); }
.timeline .gdot.acc.out { stroke: var(--ink); stroke-width: 1.5; }
.timeline .gdot.open { fill: var(--card); stroke: var(--context); stroke-width: 1.6; }      /* within 10 days of a new mowing height: less reliable */
.timeline .gdot.open.acc { stroke: var(--ink); } .timeline .gdot.open.out { stroke: var(--attn); }
.timeline .cseg { fill: var(--context); stroke: var(--card); stroke-width: .5; } .timeline .cseg.acc { fill: var(--ink); }
.timeline.water { --series-acc: var(--water); --series-ctx: color-mix(in srgb, var(--water) 30%, transparent); }      /* Water draws in its own colour */
.timeline .fcb { opacity: .4; }
/* growth (GvX) and water charts */
.gvxchart .gband { fill: var(--band-soft); }
.gvxchart .gref { stroke: var(--muted); stroke-dasharray: 4 3; }
.gvxchart .gpline { fill: none; stroke: var(--gp); stroke-width: 1.5; opacity: .35; }
.gvxchart .evicon { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gvxchart .evicon .evbg { fill: var(--card); stroke: none; }
.gvxchart .evicon.fert { stroke: var(--fert); }
.gvxchart .heatrow { fill: var(--line); opacity: .45; }
.gvxchart .fcline { stroke-dasharray: 4 3; opacity: .8; }
.gvxchart .fcb { opacity: .4; }
.gvxchart .nowl { stroke: var(--muted); stroke-dasharray: 2 3; opacity: .6; }
.gvxchart + .chips.views { margin-top: .4rem; }
.legend .sw.gband { background: var(--band); }
.legend .sw.gpl { background: var(--gp); opacity: .5; }
.legend .ev-l { display: inline-flex; align-items: center; gap: .2rem; margin-left: .5rem; }
.legend .gpbtn { margin-left: .6rem; }
.gfilter { margin-bottom: .4rem; }

/* ---- Today ---- */
/* the attention bar at the top of a page: the same rows, tinted by their level, with an icon and a pill per green */
.gpill { display: inline-flex; align-items: baseline; gap: .35rem; padding: .05rem .6rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-full); color: var(--ink); font-size: var(--fs-md); font-weight: 400; }
.gpill b { font-weight: 700; }
.gnum { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.45rem; padding: 0 .3rem; border-radius: var(--radius-full); background: var(--green); color: var(--card); font-size: var(--fs-xs); font-weight: 700; line-height: 1; vertical-align: middle; }      /* a green by its hole number, as on a pin sheet */
.gpill .gnum { margin-left: -.4rem; }
/* the green picker: the same badge as a button; pressed = in focus or shown */
.gpick { display: flex; flex-wrap: wrap; gap: .35rem; }
.gpick-b { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-width: var(--control); padding: 0 .6rem; font-weight: 700; }      /* the Chip with a green's number */
.gpick-b i { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 800px) { .gpick-b { min-width: var(--tap); } }
/* coming days: one tile per day, coloured by its type */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; }
.stile { display: flex; flex-direction: column; gap: .1rem; padding: var(--pad-sm); position: relative; }
.stile.note { background: var(--card); border-color: var(--attn-line); }
.stile b { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; text-transform: capitalize; }
.st-t { font-size: var(--fs-lg); font-weight: 600; } .st-r { font-size: var(--fs-md); color: var(--muted); }
.stile .st-i { position: absolute; right: .6rem; top: .5rem; display: grid; place-items: center; }
.stile .st-i .ni2 { width: 22px; height: 22px; }
.ni2 { flex: none; }
.t-droog { --wx: var(--dry-icon); } .t-warm { --wx: var(--warm-icon); } .t-hitte { --wx: var(--heat-icon); } .t-regen { --wx: var(--wet-icon); }
.t-natregen { --wx: var(--soak-icon); } .t-wind { --wx: var(--wind-icon); } .t-vorst { --wx: var(--frost-icon); }      /* a day type and its colour */
.stile .st-i, .fd-i { color: var(--wx, var(--muted)); }
.stile.t-hitte, .stile.t-natregen, .stile.t-wind, .stile.t-vorst { background: color-mix(in srgb, var(--wx) 7%, var(--card)); border-color: color-mix(in srgb, var(--wx) 30%, var(--line)); }      /* a notable day: a light tint, never a full fill */
/* last done */
.done { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; }
.dtile { display: flex; flex-direction: column; gap: .1rem; padding: var(--pad-sm); }
.dtile b { font-size: var(--fs-lg); font-weight: 600; }
/* the page: what to look at on the left, the days ahead and the last work on the right; under each other below 1100 px */
.today { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 0 2rem; align-items: start; }
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; margin: 1.1rem 0 0; }
.today-head b { font-size: var(--fs-lg); font-weight: 600; }
.today-side > h2:first-child { margin-top: 1.2rem; }
.today .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.today .done { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
.today .dtile { flex-direction: row; align-items: baseline; gap: .75rem; }
.today .dtile .d-l { flex: 1; }
.today .dtile b { font-size: var(--fs-base); }
@media (max-width: 1100px) { .today { grid-template-columns: minmax(0, 1fr); } .today .strip { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } }

/* ---- Weather ---- */
.weertable td:nth-child(n+2), .weertable th:nth-child(n+2) { text-align: right; }
.weertable tr.grp th { background: var(--beige); text-align: left; }
.weertable tr.fc td { color: var(--muted); font-style: italic; }
/* now: one compact line, this hour's temperature large; it wraps on a phone */
.wnow { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; row-gap: .3rem; margin-top: .6rem; padding: var(--pad); }      /* now: today's icon, the temperature in ink, the rain and the rest under it */
.wn-i .ni2 { width: 30px; height: 30px; }
.nmark { display: inline-grid; place-items: center; margin-left: .3rem; color: var(--attn-ink); vertical-align: -2px; }      /* a day in Notable weather */
.nmark svg { width: 14px; height: 14px; }
.wn-t { font-size: var(--fs-2xl); font-weight: 600; line-height: 1; }
.wn-x { display: flex; flex-direction: column; gap: .1rem; }
.wn-r { font-weight: 600; } .wn-w { color: var(--muted); font-size: var(--fs-md); }
/* the hours ahead: one column per hour, as wide as there is room for and scrolled sideways when there is not; a dashed line where a new day starts */
.hstrip { display: flex; overflow-x: auto; padding: .55rem .2rem; scroll-snap-type: x proximity; }
.hcell { flex: 1 0 3rem; display: grid; grid-template-rows: auto auto 28px auto auto; justify-items: center; row-gap: .2rem; font-size: var(--fs-md); scroll-snap-align: start; }
.hcell.day { border-left: 1px dashed var(--line); }
.hcell .h { font-size: var(--fs-sm); color: var(--muted); } .hcell.day .h { color: var(--ink); font-weight: 700; }
.hcell .t { font-weight: 600; }
.hcell .rb { align-self: end; width: 10px; height: 0; background: var(--rain); border-radius: var(--radius-xs) var(--radius-xs) 0 0; }
.hcell .mm { min-height: 1.1em; font-size: var(--fs-xs); color: var(--rain-ink); }
.hcell .wd { font-size: var(--fs-xs); color: var(--muted); }
/* the days ahead: day, icon, lowest, bar, highest, rain, ET0, wind, arrow; the bars of all rows on one temperature scale; a day opens to its hours */
.fdays { padding: .2rem .9rem; }
.fday { display: grid; grid-template-columns: 5rem 1.6rem 2.2rem minmax(3rem, 1fr) 2.2rem 4.5rem 4.5rem 4.5rem 1rem; align-items: center; column-gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.fday.head { border-top: 0; padding: .35rem 0 .1rem; font-size: var(--fs-xs); line-height: 1.2; color: var(--muted); }
.fday.sum { font-weight: 600; }
.fday .n { text-align: right; } .fday .lo { color: var(--muted); }
.fd-d { font-weight: 600; white-space: nowrap; }
.fd-i { display: grid; place-items: center; }
.fdx { font-size: inherit; }
.fdx > summary { margin: 0; cursor: pointer; }
.fdx > summary::after { justify-self: center; color: var(--muted); } .fdx > summary:hover::after { color: var(--ink); }
.fdx > .hstrip { margin: 0 0 .6rem; border: 0; background: var(--paper); box-shadow: none; }
.tbar { position: relative; height: 6px; border-radius: var(--radius-full); background: var(--beige); }
.tbar i { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: var(--radius-full); background: var(--t-mid); }
.tbar b { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
@media (max-width: 800px) { .fdays { padding: .2rem .6rem; } .fday { grid-template-columns: 3.3rem 1.2rem 1.6rem minmax(2rem, 1fr) 1.6rem 2.3rem 2rem 2.1rem .7rem; column-gap: .35rem; font-size: var(--fs-md); } }

/* ---- work pages: Growth, Nutrition, Maintenance, Water ---- */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); margin-top: 1rem; }
.mcard { display: flex; flex-direction: column; }
.mcard .spark { max-width: none; }
.mcard .mnote { margin-top: auto; padding-top: .6rem; }
.mcard .note { font-size: var(--fs-sm); }
.mnote { margin-top: .4rem; font-size: var(--fs-md); }
.mnote summary { cursor: pointer; color: var(--muted); }
.fcline { margin: .6rem 0 0; font-size: var(--fs-md); color: var(--muted); }
.fcline b { color: var(--ink); }
.fcline b.attention { color: var(--attn-ink); }
.conds { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .3rem; font-size: var(--fs-md); }
.conds li { display: flex; gap: .4rem; align-items: baseline; color: var(--muted); }
.conds li b { margin-left: auto; font-weight: 600; color: var(--ink); }
.conds li.met { color: var(--ink); }
.conds li.met span { color: var(--attn-ink); font-weight: 700; }
/* one figure for all greens */
.gbars { display: grid; gap: .55rem; padding: 14px 16px; }
.gb-head, .gb-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 11rem; align-items: center; gap: .6rem 1.5rem; }
.gb-l { font-weight: 600; white-space: nowrap; }
.gb-v { white-space: nowrap; text-align: right; padding-right: .25rem; }
.gb-row .meter { margin: 0; }
.gb-row.is-attention .meter-fill, .gb-row.is-attention .ndot:not(.prev) { background: var(--attn); }      /* a green in an attention bar: its bar or dot and figure in that bar's colour */
.gb-row.is-alert .meter-fill, .gb-row.is-alert .ndot:not(.prev) { background: var(--act); }
.gb-row.is-attention .gb-v > b { color: var(--attn-ink); } .gb-row.is-alert .gb-v > b { color: var(--act-ink); }
@media (min-width: 801px) { .gbars.wide .gb-head, .gbars.wide .gb-row { grid-template-columns: 5rem minmax(0, 1fr) 7.5rem 8rem; gap: .4rem 1.2rem; } }      /* a fourth column: the shortfall on Nutrients */
.gb-head b { font-size: var(--fs-base); }
a.gbars { color: inherit; text-decoration: none; } .gb-head .chev-go { justify-self: end; }      /* a bar card that opens a page as a whole: no link underline, its arrow on the right */
.gbars.wide .gb-head span:last-child, .gb-x { text-align: right; white-space: nowrap; }
.gvx .meter { overflow: visible; }
.gvx .trend { font-size: var(--fs-sm); color: var(--muted); margin-left: .35rem; white-space: nowrap; }
@media (max-width: 800px) { .gb-head, .gb-row { grid-template-columns: 4.2rem minmax(0, 1fr) auto; } :is(.gb-head, .gb-row) > :nth-child(2) { grid-column: 2 / -1; } .gb-v { grid-column: 1 / 3; text-align: left; margin-top: -.3rem; } .gb-x { margin-top: -.3rem; } .gb-head span:nth-child(n+3) { display: none; } }      /* phone: the name and the track, below them the figure (and the shortfall) */
/* considerations for fertilising */
/* nutrients: per element a dot per green (greenRows with dots) */
.nblock { gap: .45rem; padding: 12px 16px; margin: 0 0 .7rem; }
.ntrack { position: relative; height: 16px; border-radius: var(--radius-md); background: var(--ink-05); }
.nband { position: absolute; top: 3px; bottom: 3px; border-radius: var(--radius-full); background: var(--ink-12); }
.ndot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); }
.ndot.prev { background: var(--card); border: 1.6px solid var(--muted); }
.nlegend .ndot { position: relative; display: inline-block; top: 0; margin: 0 .15rem 0 0; vertical-align: -1px; }

/* ---- Soil & Plant ---- */
.mlsn td:not(:first-child), .mlsn th:not(:first-child) { text-align: right; white-space: nowrap; }
.mlsn .over { color: var(--act-ink); font-weight: 600; }
.mlsn tr.grp td { color: var(--muted); font-size: var(--fs-md); }
.tablewrap > table.mlsn { display: table; }
.reports tr[data-soilrep] { cursor: pointer; }
.reports tr[data-soilrep]:hover td { background: var(--paper); }
.reports tr[aria-current="true"] td { background: var(--fill); font-weight: 600; }
.reports tr[aria-current="true"] td:first-child { box-shadow: inset 3px 0 0 var(--ink); }      /* the report that is open */

/* ---- Logbook ---- */
.logtable td:nth-child(1) { white-space: nowrap; }
.logtable .ln { white-space: nowrap; line-height: 1.5; }
/* grouped by day: the date once, a line between the days, none within a day */
.logtable td { border-bottom: 0; }
.logtable tr.newday > td { border-top: 1px solid var(--rule); }
.lday { font-weight: 600; }
.ltype { color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 14%, var(--card)); }
.lt-maaien { --c: var(--log-maaien); } .lt-onderhoud { --c: var(--log-onderhoud); } .lt-voeding { --c: var(--log-voeding); } .lt-zaaien { --c: var(--log-zaaien); }
.lt-ziekte { --c: var(--log-ziekte); } .lt-metingen { --c: var(--log-metingen); } .lt-weer { --c: var(--log-weer); } .lt-notities { --c: var(--log-notities); }
.logtable .gnum { margin: 0 .1rem .2rem 0; }
.logtable .sub2 { white-space: nowrap; }
.logfilters { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: .5rem 0 1rem; }
.logfilters .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.logfilters select, .logfilters input { min-height: var(--control); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 .6rem; font: inherit; background: var(--card); color: var(--ink); }
.logfilters #log-q { margin-left: auto; min-width: 14rem; }
/* a type filter: a dot in the type's colour; chosen, the pill takes the type's tint as in the table */
.lchip { padding: 0 .75rem; }
.lchip[class*="lt-"] { display: inline-flex; align-items: center; gap: .4rem; }
.lchip[class*="lt-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lchip[class*="lt-"][aria-pressed="true"] { background: color-mix(in srgb, var(--c) 14%, var(--card)); border-color: color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); font-weight: 600; }
.myentries { margin-bottom: 1rem; }
.myentries summary { cursor: pointer; font-weight: 600; margin-bottom: .4rem; }

/* ---- Settings ---- */
details.setpage { margin: .6rem 0; font-size: var(--fs-base); }      /* one page of the dashboard, folded */
details.setpage > summary { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .8rem 1rem; }
details.setpage > summary::before { margin: 0 .2rem 0 .15rem; color: var(--muted); }
details.setpage > .sect { margin: .8rem 1rem .4rem; }
details.setpage > .settings { width: calc(100% - 2rem); margin: 0 1rem 1rem; }
/* a form, not a table: per setting the name with its note under it, the value on the right; the note reads as text until you click it */
.settings, .settings tbody { display: block; border: 0; border-radius: 0; box-shadow: none; background: none; }
.settings tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name value" "note value"; column-gap: 2rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.settings tr:first-child { display: none; }      /* the column heads */
.settings tr:last-child { border-bottom: 0; }
.settings td { display: block; padding: 0; border: 0; }
.settings td:nth-child(1) { grid-area: name; font-weight: 600; }
.settings td:nth-child(2) { grid-area: value; align-self: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.settings td:nth-child(3) { grid-area: note; color: var(--muted); font-size: var(--fs-md); }
.settings .setin { width: 6.5rem; min-height: var(--control); padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--ink); font-weight: 600; }
.settings .setin.num { text-align: right; }
.settings .setin:not(.num) { width: 16rem; max-width: 100%; text-align: left; }
.settings .setin.list { width: 4.5rem; }
.settings .setin[type=date] { width: 10rem; }
.settings .setin:hover { border-color: var(--tile-line-hover); }
.settings .setnote { display: block; width: 100%; min-height: 0; margin: .1rem 0 0 -.45rem; padding: .2rem .45rem; border: 1px solid transparent; border-radius: var(--radius-md); background: none; color: var(--muted); font-size: var(--fs-md); resize: none; field-sizing: content; }
.settings .setnote:hover { border-color: var(--line); }
.settings .setnote:focus { border-color: var(--line); background: var(--card); color: var(--ink); }
.settings tr.own { box-shadow: inset 3px 0 0 var(--info); padding-left: .8rem; }      /* a value changed on the site: blue, like other new things */
@media (max-width: 800px) { .settings tr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "value" "note"; row-gap: .3rem; } .settings td:nth-child(2) { justify-content: flex-start; } }
.savebar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 1rem; padding: .5rem .5rem .5rem 1rem; }
.savebar .primary { min-height: var(--control); padding: 0 1.1rem; font-size: var(--fs-md); }
.savebar.dirty { background: color-mix(in srgb, var(--info) 7%, var(--card)); border-color: color-mix(in srgb, var(--info) 35%, transparent); }      /* blue, like the marker of a value changed on the site */
.savebar.dirty #set-msg { color: var(--info); font-weight: 600; }

/* ---- dialogs ---- */
dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--beige); color: var(--ink); max-width: 28rem; width: calc(100% - 2rem); }
dialog h2 { font-size: var(--fs-md); margin-top: 0; }
dialog label { display: block; margin: .6rem 0; }
dialog input, dialog select, dialog textarea { display: block; width: 100%; margin-top: .25rem; }
dialog.wide { max-width: min(960px, calc(100% - 2rem)); }
.dialog-head h2, .entry-head h2 { margin: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }      /* a dialog has a title, not a section label */
@media (max-width: 800px) { dialog { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; } }

/* entry: a quiet card with a fixed position and height, so it does not move when you switch kind */
#entry { padding: 0; width: min(34rem, calc(100% - 1.5rem)); margin: 7vh auto auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); overflow: hidden; }
#entry::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
#form { display: grid; grid-template-rows: auto auto 1fr auto; height: min(36rem, 84vh); }
.entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 18px 22px 8px; }
.entry-day { color: var(--muted); font-size: var(--fs-md); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 4px 22px 6px; padding: 4px; background: var(--beige-2); border-radius: var(--radius); }
.seg button { min-height: var(--control); padding: 0 .4rem; border: 0; border-radius: var(--radius-md); background: none; color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); box-shadow: var(--shadow-sm); }
.entry-body { overflow-y: auto; padding: 10px 22px 14px; }
#entry label { display: block; margin: 0 0 .85rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
#entry label .sub2 { font-weight: 400; }
#entry input:not([type="radio"]):not([type="checkbox"]), #entry select, #entry textarea { display: block; width: 100%; margin-top: .3rem; min-height: var(--tap); padding: 0 .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--fs-base); font-weight: 400; }
#entry textarea { padding: .6rem .75rem; }
#entry input:focus, #entry select:focus, #entry textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
#entry .flabel { display: block; margin: 0 0 .35rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
#entry .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; }
#entry .chips label.chip { display: inline-flex; align-items: center; margin: 0; width: auto; color: var(--ink); font-size: var(--fs-md); font-weight: 500; letter-spacing: 0; cursor: pointer; }      /* the Chip, against the form's own label style */
#entry .chips label.chip input { display: none; }
#entry .chips label.chip:has(input:checked) { background: var(--ink); color: var(--card); border-color: var(--ink); }
#entry .stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: .2rem 0 1rem; }      /* disease stage, 0 to 3 */
#entry .stages .stage { min-height: 46px; padding: 0 .2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
#entry .stages .stage:hover { background: var(--ink); color: var(--paper); }
.rondeScroll { overflow-x: auto; }
.ronde { width: 100%; background: none; border: 0; border-radius: 0; box-shadow: none; border-collapse: separate; border-spacing: 0 6px; }
.ronde th, .ronde td { border: 0; padding: 0 .3rem 0 0; text-align: left; background: none; font-size: var(--fs-md); font-weight: 600; }
.ronde th:first-child { white-space: nowrap; padding-right: .6rem; }
#entry .ronde input { width: 100%; min-width: 4.2rem; margin: 0; text-align: right; }
.draftnote { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: 0 0 .8rem; padding: .45rem .75rem; background: var(--attn-bg); border-radius: var(--radius); font-size: var(--fs-md); }
.calc { margin: -.4rem 0 .8rem; min-height: 1.1em; }
.entry-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--card); }
/* round: one green per screen on the phone, the whole table on a wide screen */
.rnav { display: none; }
@media (max-width: 600px) {
  #entry { margin-top: 3vh; }
  #form { height: min(38rem, 90vh); }
  .entry-head, .entry-body, .entry-foot { padding-left: 16px; padding-right: 16px; }
  .seg { grid-template-columns: 1fr 1fr; margin-left: 16px; margin-right: 16px; }
  .rnav { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 0 .8rem; }
  .rnav button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: var(--fs-2xl); cursor: pointer; }
  .rnav button:disabled { opacity: .35; }
  #rlabel { font-weight: 700; font-size: var(--fs-base); }
  .ronde, .ronde tbody, .ronde tr, .ronde th, .ronde td { display: block; width: 100%; }
  .ronde tr.rhead { display: none; }
  .ronde tr[data-ri] { display: none; }
  .ronde tr[data-ri].on { display: block; }
  .ronde tr[data-ri] > th { display: none; }
  .ronde td { padding: 0 0 .9rem; }
  .ronde td::before { content: attr(data-label); display: block; margin-bottom: .25rem; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
  #entry .ronde input { min-height: 58px; font-size: var(--fs-xl); text-align: left; padding: 0 1rem; }
}

/* ---- states: last, so they win over a tile's own colours ---- */
/* clickable: a tile or row that opens a page, the same everywhere; keyboard focus keeps its outline */
.go { cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.go:hover, .go:focus-visible { border-color: var(--tile-line-hover); box-shadow: var(--shadow-md); }
.go:hover .chev-go { transform: translateX(3px); color: var(--ink); }

/* ---- less motion ---- */
@media (prefers-reduced-motion: reduce) {
  .app, .side, .go, .chev-go, details.setpage > summary::before { transition: none; }
  .flash { animation: none; }
}

/* a green's page: its facts as tags; the rows (name with date and source, gauge, value, small chart) on the left, the last work on the right */
.gfacts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0; }
.gfacts .pill { background: var(--ink-08); color: var(--ink); }
.gnow { display: grid; padding: 4px var(--pad); }
.gpage { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
.gpage.one, .gpage > div:only-child { grid-column: 1 / -1; }
.gpage.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .gpage { grid-template-columns: minmax(0, 1fr); } }
.mrows { padding: 2px var(--pad); }
#p-green .card + .card, #p-green .gbars + .mlink { margin-top: .6rem; }      /* cards of one group, and the link under a bar card, apart */
.mrow { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(84px, max-content) 200px 16px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.mrow:last-child { border-bottom: 0; }
.mrow.plain { grid-template-columns: minmax(170px, 1fr) minmax(0, 1.3fr) 16px; }
.mrow.short { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; } .mrow.short > span:last-child:empty { display: none; } .mrow.short .mr-v { white-space: nowrap; }      /* the last work: the name, the date and how long ago on one line */
.gb-head .sub2 b { color: var(--ink); font-size: var(--fs-base); margin-right: .3rem; }
.mr-l { display: flex; flex-direction: column; min-width: 0; } .mr-l b { font-weight: 600; } .mr-l small { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.mr-v { text-align: right; font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mrow.plain .mr-v { white-space: normal; } .mr-v small { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.mrow.plain .mr-v { font-size: var(--fs-base); font-weight: 600; } .mrow.plain .mr-v .sbar { margin-top: .35rem; }
.mrow .gauge { display: block; width: 100%; }      /* a block, so the numbers under the ticks take their room */
.mrow.is-out .mr-v { color: var(--attn-ink); } .mrow.is-out .g-track em { background: var(--attn-ink); }
.mrow.is-old { opacity: .72; }
a.mrow:hover .mr-l b { text-decoration: underline; } a.mrow:hover .chev-go { transform: translateX(3px); color: var(--ink); }
.mchart { display: grid; gap: 2px; width: 200px; } .mchart svg { display: block; width: 200px; height: 40px; }
.mchart .band { fill: var(--band); } .mchart .ml { fill: none; stroke: var(--context); stroke-width: 1.5; stroke-linejoin: round; }
.mchart circle { fill: color-mix(in srgb, var(--ink) 45%, transparent); stroke: var(--card); stroke-width: 1; } .mchart circle.last { fill: var(--ink); } .mchart circle.out { fill: var(--attn); }
.mc-d { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
.mlink { display: inline-block; margin: .5rem 1.2rem 0 0; font-size: var(--fs-md); font-weight: 600; color: var(--ink); text-decoration: none; } .mlink:hover { text-decoration: underline; }
.mlinks { margin: 0; }
@media (max-width: 800px) {      /* phone: the name, the value and the arrow on one line; the gauge and the chart under them */
  .mrow, .mrow.plain { grid-template-columns: minmax(0, 1fr) auto 16px; grid-template-areas: "l v c" "g g g" "m m m"; gap: 6px 10px; }
  .mrow > .mr-l { grid-area: l; } .mrow > .mr-v { grid-area: v; } .mrow > :last-child { grid-area: c; } .mrow > .mr-g { grid-area: g; } .mrow > .mr-c { grid-area: m; }
  .mrow.plain { grid-template-columns: minmax(0, 1fr) 16px; grid-template-areas: "l c" "v v"; gap: 4px 10px; } .mrow.plain .mr-v { text-align: left; }      /* a passport value can be long: under its name */
  .mrow.short { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v"; }
  .mr-c:empty, .mr-g:empty { display: none; }
}

.gp-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) minmax(130px, 1fr); gap: .5rem; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.gp-row:last-child { border-bottom: 0; }
.gp-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .gp-row { grid-template-columns: 1fr; gap: 2px; } }

.lab-out { color: var(--ink); font-weight: 600; }      /* not the amber of attention: most rows of a lab test are outside the range */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only[hidden] { display: none; }
a.gpill { text-decoration: none; color: inherit; }
a.gpill:hover b { text-decoration: underline; }
@media (max-width: 800px) { .side nav a { min-height: var(--tap); } }

/* ---- phone: tap targets of 44 px, and the day tiles on Home ---- */
@media (max-width: 800px) {
  .to-log, .side-add, .logfilters select, .logfilters input, .settings .setin, .primary, .seg button, #entry .chips label.chip { min-height: var(--tap); }
  .lchip, .savebar .primary { min-height: var(--tap); min-width: var(--tap); }
  .sub2 > a { display: inline-block; padding: 12px 0; margin: -12px 0; }      /* an inline link in a note: 44 px to tap without moving the text */
  button.link { min-height: var(--tap); }
  details:not(.setpage):not(.fdx) > summary { padding-block: .75rem; margin: 0; }
  a.gpill { position: relative; }
  a.gpill::after { content: ""; position: absolute; inset: -10px -4px; }      /* the pill looks the same; its tap area reaches 44 px */
  .logtable td:last-child { min-width: 16rem; }      /* the remark keeps a readable width (the table scrolls sideways) instead of wrapping into a tall, narrow column */
  .main { min-height: 100dvh; }      /* a short page still fills the screen with paper */
  .stile b { padding-right: 1.8rem; }      /* the weather icon sits in the top right corner; the day name stops before it */
}
@media (max-width: 500px) { .today .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Home: the first three rows of attention, the rest one click away */
.gcav { padding: 4px var(--pad); }
.gcav ul { margin: .5rem 0; padding-left: 1.1rem; display: grid; gap: .4rem; }
body.nodays .nav-day, body.nodays .navdate { display: none !important; }      /* no figures per day: nothing about days */
.nodata { display: none !important; }

/* Grass: one bar per measurement, the species as segments */
.gcovers { display: grid; gap: 12px; }      /* the greens under each other */
.gcover h3 { margin: 0 0 .5rem; }
.gc-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; align-items: center; padding: 3px 0; }
.gc-l { font-size: var(--fs-sm); color: var(--muted); }
.sbar { display: flex; height: 22px; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); gap: 1px; }      /* the stacked bar (core.js stackBar) */
.sbar i { display: grid; place-items: center; font-style: normal; font-size: var(--fs-xs); color: var(--ink); min-width: 0; }
.gscroll { overflow-x: auto; }

/* the club under the name Greenside (in .bname), a dropdown when the account has more than one */
.clubbar { display: flex; align-items: center; gap: .4rem; min-width: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.clubbar em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app.collapsed .clubbar { display: none; }
.gcav summary { cursor: pointer; padding: 10px 0; color: var(--muted); }
.gcav[open] summary { color: var(--ink); }
.mlow ul { list-style: none; margin: .25rem 0 0; padding: 0; }
.mlow li { border-top: 1px solid var(--line); }
.mlow summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: 8px 0; }
.mlow summary b { margin-left: auto; }
.mlow summary::after { color: var(--muted); }
.mlow summary b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mlow details p { margin: 0 0 8px; }

/* lab values: the range is information; a value outside it is a little heavier, with a neutral marker */
.vm { margin-left: .3rem; font-size: var(--fs-xs); color: var(--muted); }
.outv { font-weight: 700; }
tr.calm td { color: var(--muted); }

.clubpick { position: relative; display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; cursor: pointer; border-radius: var(--radius-md); }
.clubpick em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clubpick select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; font-size: var(--fs-base); }
.clubpick:hover { color: var(--ink); }
.clubpick:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .5rem 0 1rem; }
.filters .chips, .filters .gpick { margin: 0; }
.filters .gpick { margin-left: auto; }      /* the period on the left, the greens on the right: changing the period does not move them */
.pagefoot { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; }
.pagefoot:not(:has(button:not([hidden]))) { display: none; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--ink); color: var(--card); padding: 8px 12px; border-radius: 0 0 var(--radius-md) 0; }
.skip:focus { left: 0; }
main.content:focus { outline: none; }
.lead + .gpick { margin: .5rem 0 .75rem; }
.gcav.card { padding-top: 0; padding-bottom: 0; }

.gpill.bare { background: none; border-color: transparent; padding-left: 0; padding-right: 0; margin-left: .25rem; }
@media (max-width: 800px) {
  .mlsn td:first-child, .mlsn th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }      /* a table that scrolls sideways keeps its first column */
}
.repick { margin: 0 0 1rem; }
.repick > summary { cursor: pointer; padding: 6px 0; }
.repick[open] > summary { margin-bottom: .5rem; }

.outt { color: var(--attn-ink); font-weight: 600; }      /* outside its target: the same amber as a flagged measurement */

/* attention: one white strip with a thin border in the colour of its kind, a different icon per kind */
.attn { list-style: none; margin: .8rem 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.attn li.n { --nc: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; padding: .6rem .9rem; background: var(--card); border: 1px solid color-mix(in srgb, var(--nc) 50%, var(--card)); border-radius: var(--radius); box-shadow: none; }
.attn li.k-band.lv-alert { --nc: var(--act-ink); } .attn li.k-band.lv-attention { --nc: var(--attn); } .attn li.k-band.lv-fine { --nc: var(--ok); }
.attn li.k-unusual { --nc: var(--unusual); } .attn li.k-risk { --nc: var(--risk); } .attn li.k-advice { --nc: var(--green); }
.attn li.n.go:hover { border-color: var(--nc); }
.attn li.k-data { --nc: var(--tile-line-hover); border-style: dashed; background: var(--paper); box-shadow: none; color: var(--muted); }      /* about the data, not the greens: the same strip, quieter */
.n-ic { display: grid; place-items: center; flex: none; color: var(--nc); }
.n-main { flex: 1 1 220px; min-width: 0; display: grid; gap: .1rem; }
.n-t { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; } .n-t b { font-weight: 600; color: var(--ink); } .n-t .sub2 { margin-left: 0; }
.n-aside { font-weight: 400; } .attn li .chev-go { margin-left: auto; color: var(--muted); opacity: .6; }
.sev { display: inline-block; padding: 0 .45rem; border: 1px solid currentColor; border-radius: var(--radius-full); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--risk); }
/* the gauge: the band is what is allowed, a tick and the number at each limit, each green as its badge on its value */
.gauge { flex: none; width: 190px; padding: 7px 0 15px; }
.g-track { position: relative; display: block; height: 8px; border-radius: var(--radius-full); background: var(--ink-08); }
.g-band { position: absolute; top: 0; bottom: 0; border-radius: var(--radius-full); background: color-mix(in srgb, var(--ink) 18%, transparent); }
.g-track u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); text-decoration: none; }
.g-track u s { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; font-size: var(--fs-xs); text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-track em { position: absolute; top: -7px; width: 22px; height: 22px; margin-left: -11px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--card); border: 2px solid var(--card); font-size: var(--fs-xs); font-style: normal; font-weight: 700; }
.attn li.k-band.lv-alert .g-track em { background: var(--act-ink); } .attn li.k-band.lv-attention .g-track em { background: var(--attn-ink); }
.rmeter { display: flex; gap: 3px; width: 96px; flex: none; } .rmeter i { flex: 1; height: 8px; border-radius: var(--radius-xs); background: var(--ink-12); } .rmeter i.on { background: var(--risk); }
@media (max-width: 800px) { .gauge { width: 100%; } .rmeter { width: 100%; } .attn li .chev-go { display: none; } }
.rmeter { position: relative; } .rmeter.marked { margin-bottom: 14px; } .rmeter s { position: absolute; top: 11px; transform: translateX(-50%); font-size: var(--fs-xs); text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.clublist:empty { display: none; }

.attn-more { margin-top: .5rem; } .attn-more > summary { cursor: pointer; color: var(--muted); padding: .6rem .25rem; min-height: 44px; } .attn-more[open] > summary { margin-bottom: .2rem; } .attn-more .attn { margin: 0; }
.rmeter.dots { gap: 6px; width: auto; } .rmeter.dots i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.g-track em { padding: 0 3px; width: auto; min-width: 22px; transform: translateX(-50%); margin-left: 0; white-space: nowrap; z-index: 2; } .g-track u { z-index: 1; }      /* the badge over the tick of a limit: a tick through a number cannot be read (the number under the tick says the limit) */
.n-ic { color: var(--ic, var(--nc)); }
.attn li.k-band.lv-attention { --ic: var(--attn-ink); } .attn li.k-band.lv-alert { --ic: var(--act-ink); }
.g-track em { border-radius: var(--radius-full); }

.gp-v { display: grid; gap: .3rem; min-width: 0; } .gp-v .sbar { max-width: 320px; }
.labsum { display: grid; gap: .35rem; margin: 0 0 .75rem; } .labsum-row { display: grid; grid-template-columns: 26px minmax(120px, 360px) auto; gap: .6rem; align-items: center; }

.navhead { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; font: inherit; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); cursor: pointer; text-align: left; }
.navhead::after { margin-right: 6px; }      /* the chevron: see 'one way to fold' */
@media (min-width: 801px) { .navhead { min-height: 0; } }      /* as low as a menu row; on a phone the 44 px of every button */
.navhead[aria-expanded="false"]:has(+ .navgroup .navdot:not([hidden]))::before { content: ""; order: 1; width: 8px; height: 8px; margin: 0 .7rem 0 auto; border-radius: 50%; background: var(--warn); }      /* a folded group keeps the dot of a green that asks for attention */
.navhead::after { order: 2; }
.navhead:hover { color: var(--ink); }
.navgroup[hidden] { display: none; }

.blockh { display: flex; align-items: baseline; gap: .6rem; margin: 1.1rem 0 .5rem; } .blockh .sub2 { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.n-because { display: block; margin-top: .2rem; }

.attn-fine > summary { margin-bottom: .5rem; }

/* the course map on Home (js/map.js): pale ground, fairways, sand, and the greens with data in the brand ink */
.cmap-card { margin: 0 0 1rem; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); }
.cmap { display: block; width: 100%; height: auto; background: var(--beige); border-radius: 8px; }
.cmap-card figcaption { margin-top: .4rem; font-size: var(--fs-xs); }
.cm-rough { fill: color-mix(in srgb, var(--ok) 7%, var(--beige)); } .cm-fairway { fill: color-mix(in srgb, var(--ok) 16%, var(--paper)); } .cm-range { fill: color-mix(in srgb, var(--ok) 10%, var(--paper)); }
.cm-corridor-r { fill: none; stroke: color-mix(in srgb, var(--ok) 9%, var(--beige)); stroke-width: 90px; stroke-linecap: round; stroke-linejoin: round; }
.cm-corridor-f { fill: none; stroke: color-mix(in srgb, var(--ok) 20%, var(--paper)); stroke-width: 34px; stroke-linecap: round; stroke-linejoin: round; }
.cm-hole { fill: none; stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: 1px; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.cm-tee { fill: color-mix(in srgb, var(--ok) 42%, var(--paper)); stroke: color-mix(in srgb, var(--ok) 42%, var(--paper)); stroke-width: 5px; stroke-linejoin: round; } .cm-bunker { fill: var(--part-2); stroke: var(--part-2); stroke-width: 4px; stroke-linejoin: round; } .cm-house { fill: var(--line); }
.cm-green path { fill: color-mix(in srgb, var(--ok) 42%, var(--paper)); stroke: color-mix(in srgb, var(--ok) 60%, var(--paper)); stroke-width: .8px; vector-effect: non-scaling-stroke; }
.cm-num { font-size: 26px; font-weight: 700; fill: var(--ink); opacity: .55; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.cm-green.has .cm-num { fill: #fff; opacity: 1; stroke: none; }
.cm-dot { fill: var(--attn); stroke: var(--paper); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.cmap a { cursor: pointer; } .cmap a:hover .cm-green path, .cmap a:focus-visible path { stroke: var(--attn); stroke-width: 2px; }

.cm-ring { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5px; }
.cmap-card { cursor: zoom-in; }
.cmap-card.big { position: fixed; inset: 4vh 4vw; z-index: 60; margin: 0; cursor: zoom-out; display: grid; grid-template-rows: 1fr auto; box-shadow: 0 0 0 100vmax rgba(20, 55, 42, .45); }
.cmap-card.big .cmap { height: 100%; width: 100%; object-fit: contain; }
.cm-green.has .cm-num { font-size: 24px; }

.cmap.hole { background: var(--beige); } .cmap-card.hole { padding: 8px; } .cmap.hole .cm-tee { stroke-width: 1px; } .cmap.hole .cm-bunker { stroke-width: .8px; } 
.cm-green.has .cm-num { font-weight: 700; }

.cmap.hole .cm-corridor-r:not(.cur), .cmap.hole .cm-corridor-f:not(.cur) { opacity: .38; } .cmap.hole .cm-hole:not(.cur) { opacity: .4; } .cmap.hole .cm-hole.cur { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-dasharray: 3 4; }
.cmap-card.hole figcaption { display: grid; gap: .1rem; margin-top: .5rem; } .cmap-card.hole .hc { font-size: var(--fs-md); color: var(--ink); }

.cm-water { fill: color-mix(in srgb, var(--risk) 22%, var(--paper)); stroke: color-mix(in srgb, var(--risk) 35%, var(--paper)); stroke-width: .8px; vector-effect: non-scaling-stroke; }

/* dew and trends on Home (js/dew.js) */
.dewcard { padding: 12px; display: grid; gap: .8rem; } .dewlast { margin: 0; } .dewhead { display: grid; gap: .1rem; margin-bottom: .35rem; } .dewhead .sub2 { font-size: var(--fs-sm); }
.dewstrip { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; } .dw { display: block; height: 14px; border-radius: var(--radius-xs); background: var(--ink-12); }
.dw.possible { background: color-mix(in srgb, var(--risk) 38%, var(--paper)); } .dw.likely { background: var(--risk); } .dw.fr { box-shadow: inset 0 -4px 0 var(--info); }
.dewticks { display: flex; justify-content: space-between; margin-top: .15rem; font-size: var(--fs-xs); } .dewnote { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: var(--fs-xs); } .dewnote .dw { display: inline-block; width: 14px; }
.n-trend { flex: none; width: 72px; height: 24px; color: var(--muted); } .n-trend svg { display: block; } .n-trend path { fill: none; stroke: currentColor; stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; }
.n-trend circle { fill: var(--ink); } .n-trend .band { fill: var(--ok-bg); } .n-trend .thr { stroke: var(--attn); stroke-width: 1px; stroke-dasharray: 3 3; }
@media (max-width: 800px) { .n-trend { display: none; } }

.dewhead { grid-template-columns: auto 1fr; column-gap: .6rem; } .dewhead .sub2 { grid-column: 2; } .dewhead span:nth-child(2) { grid-column: 2; font-size: var(--fs-md); } .dewhead b { grid-row: 1 / span 2; align-self: center; min-width: 4.2rem; }
.dw { height: 16px; } .stile .st-w { font-size: var(--fs-xs); }
.dw.rain { background: color-mix(in srgb, var(--info) 34%, var(--paper)); }

/* collapsed sidebar: the dot of a green that asks for attention sits diagonally above its number, like a badge, and is not cut off */
.app.collapsed .side nav a { position: relative; overflow: visible; }
.app.collapsed .side nav .navdot { position: absolute; top: 3px; left: calc(50% + 9px); margin: 0; box-shadow: 0 0 0 2px var(--beige-2); }
.app.collapsed .side nav a.on .navdot { box-shadow: 0 0 0 2px var(--ink); }
