/* forsyth board — gridstack + editing chrome, on top of dash.css tokens */

.board-wrap { max-width: 1320px; }
.board-wrap .pagehead { padding-bottom: 20px; }

.tool-btn {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  background: none; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px;
}
.tool-btn:hover { color: var(--accent); border-color: var(--accent); }
.tool-btn.on { color: var(--accent-2); border-color: var(--accent-2); }

/* board pagehead: on the homepage the banner is the headline, so the page
   furniture shrinks to one quiet line rather than a title stack */
.board-wrap .pagehead { padding: 30px 0 6px; }
.board-wrap .pagehead.minimal { padding: 18px 0 0; }
.board-wrap .pagehead .sub {
  font-size: 12.5px; color: var(--text-mute); margin: 0;
}
.board-wrap .pagehead .sub a { color: var(--accent); }
.tool-btn.save { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); }
.tool-btn.save:hover { color: var(--bg); background: var(--accent-2); }

/* edit bar */
.edit-bar {
  position: sticky; top: 49px; z-index: 400;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-2);
}
.edit-bar-inner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}
.edit-hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute); }
.edit-bar select, .edit-bar input[type="text"] {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; padding: 5px 8px;
}
.edit-bar input[type="text"] { min-width: 220px; }
.edit-bar .pub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim); display: inline-flex;
  align-items: center; gap: 6px; }

/* grid items = panels */
.grid-stack { margin-bottom: 60px; }
.grid-stack-item-content {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  box-shadow: 0 1px 3px var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.wg-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 0;
}
.wg-head h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-mute); margin: 0;
  font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* one-tap range presets (widgets with a `ranges` entry in the registry) */
.wg-range { margin-left: auto; display: inline-flex; gap: 2px; }
.wg-range button {
  background: none; border: 1px solid transparent; cursor: pointer;
  color: var(--text-mute); font: 500 10px var(--mono);
  padding: 1px 6px; border-radius: 4px; letter-spacing: 0.04em;
}
.wg-range button:hover { color: var(--accent); }
.wg-range button.on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.wg-tools { display: none; gap: 4px; }
.editing .wg-tools { display: inline-flex; }
.wg-tools button {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 4px; font-size: 11px; cursor: pointer; padding: 1px 7px;
}
.wg-tools button:hover { color: var(--accent); border-color: var(--accent); }
.wg-body { flex: 1; min-height: 0; padding: 8px 14px 12px; overflow: auto; position: relative; }
.wg-body .leaflet-container { position: absolute; inset: 8px 14px 12px; height: auto; width: auto; }
.editing .grid-stack-item-content { outline: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.editing .wg-body { pointer-events: none; opacity: 0.75; }  /* drag anywhere while editing */

/* widget internals reuse dash.css classes; small extras: */
.wg-big { font-family: var(--mono); font-size: 40px; letter-spacing: -0.03em; line-height: 1.05; }
.wg-big .u { font-size: 0.45em; color: var(--text-mute); }
.wg-sub { color: var(--text-dim); font-size: 13.5px; margin: 4px 0 10px; }
.wg-banner {
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45;
  border-left: 3px solid var(--accent-2); padding-left: 14px; margin: 4px 0;
}
.wg-empty { color: var(--text-mute); font-style: italic; font-size: 13.5px; }
.wg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wg-table td, .wg-table th { padding: 6px 8px; border-bottom: 1px solid var(--border-2); text-align: left; }
.wg-table th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500; }
.wg-table .mono { font-family: var(--mono); }

/* forecast (station panel + board widget) */
.fc-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.fc-seg {
  flex: 1 0 52px; min-width: 52px; text-align: center;
  border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 3px;
  display: flex; flex-direction: column; gap: 2px;
}
.fc-seg .t { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-mute); white-space: nowrap; overflow: hidden; }
.fc-seg .t2 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em;
  color: var(--text-dim); white-space: nowrap; }
.fc-seg .g { font-size: 17px; line-height: 1.2; }
.fc-seg .v { font-family: var(--mono); font-size: 13px; }
/* daily cards carry "27°/18°", which needs a little more room than one value */
.fc-strip.daily .fc-seg { flex-basis: 68px; min-width: 68px; }
.fc-strip.daily .fc-seg .v { font-size: 12px; }
.fc-seg .p { font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); }
.fc-chart { margin-top: 8px; }
.fc-foot { margin: 6px 0 0; }

/* dialogs + human-report styles moved to dash.css (2026-07-18): the report
   button and dialog live on EVERY page, including index.html which loads
   only dash.css — they were invisible-ly unstyled there. */

/* first-run tour: a spotlight hole (its giant shadow is the dimmer) + card */
.tour-hole {
  position: fixed; z-index: 1200; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62); transition: all 0.25s ease;
}
.tour-card {
  position: fixed; z-index: 1201; width: 300px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
  box-shadow: 0 16px 48px var(--shadow);
}
.tour-card h4 { font-family: var(--serif); font-weight: 500; font-size: 17px; margin: 0 0 6px; }
.tour-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; margin: 0 0 12px; }
.tour-card .row { display: flex; align-items: center; gap: 8px; }
.tour-card .n { font: 10px var(--mono); color: var(--text-mute); margin-right: auto; }

/* admin console + shared small forms */
.tool-btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.tool-btn.danger:hover { background: var(--bad); color: var(--bg); }
.admin-form {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.admin-form input {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; padding: 6px 9px;
}
.key-reveal {
  margin-top: 12px; padding: 12px 14px;
  border: 1px dashed var(--accent-2); border-radius: 4px;
}
.key-reveal .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2); display: block; margin-bottom: 6px; }
.key-reveal code { font-family: var(--mono); font-size: 14px; user-select: all; }
.job-out {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
  background: var(--bg-elev); border: 1px solid var(--border-2);
  padding: 10px 12px; margin-top: 12px; max-height: 200px; overflow: auto;
  white-space: pre-wrap;
}

/* board picker (topbar) */
.board-picker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  background: var(--bg-card); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  max-width: 190px;
}

/* download row (station page) */
.dl-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dl-quick, .dl-custom { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-custom label { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px; }
.dl-custom input[type="date"] {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px;
}
.dl-row .pub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px; }

/* gridstack drag affordance in our palette */
.grid-stack-item.ui-draggable-dragging .grid-stack-item-content { border-color: var(--accent); }
.grid-stack-placeholder > .placeholder-content {
  background: color-mix(in srgb, var(--accent) 12%, transparent) !important;
  border: 1px dashed var(--accent) !important;
}
