/* Simply Bitcoin console: fonts and the console's own components (kit m40cv).
   tokens.css and components.css are the design's files, byte for byte. This file adds only what the console
   needs beyond them: the self-hosted fonts (Inter and Archivo, SIL Open Font License, see fonts-OFL.txt) and a
   few components, each reading tokens only, each class starting sb-. They go into the design's components.css
   at the next design round. */

/* ---------- Fonts (served from /static, no outside request) ---------- */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/static/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/static/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- C1. Flash: the one line after an action ---------- */
.sb-flash { background: var(--sb-surface); border-radius: var(--sb-radius-md); box-shadow: var(--sb-ring); padding: var(--sb-space-3) var(--sb-space-4); margin-bottom: var(--sb-space-6); font-size: var(--sb-text-base); display: flex; flex-wrap: wrap; gap: var(--sb-space-2) var(--sb-space-4); align-items: baseline; }

/* ---------- C2. Job as a link (opens Home with the Ask box filled) ---------- */
.sb-job--link { display: inline-flex; align-items: center; text-decoration: none; }
.sb-jobs--start { justify-content: flex-start; margin-top: var(--sb-space-3); }

/* ---------- C3. Text area: a field that keeps line breaks ---------- */
.sb-area { height: auto; min-height: 96px; padding: var(--sb-space-3) 14px; line-height: 1.45; resize: vertical; display: block; }
.sb-ask__row .sb-area { min-height: 52px; height: 52px; padding: 14px 20px; resize: none; line-height: 24px; }

/* ---------- C4. Fold: a quiet "more" that opens in place ---------- */
.sb-fold > summary { font: var(--sb-weight-semibold) 14px var(--sb-font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; width: fit-content; }
.sb-fold > summary::-webkit-details-marker { display: none; }
.sb-fold[open] > summary { margin-bottom: var(--sb-space-2); }

/* ---------- C5. Settings form: checks, order numbers, stacked fields ---------- */
.sb-form { display: grid; gap: var(--sb-space-4); padding-block: var(--sb-space-4); min-width: 0; }
.sb-check { display: flex; align-items: center; gap: var(--sb-space-3); min-height: var(--sb-tap); padding-block: var(--sb-space-1); }
.sb-check + .sb-check { border-top: 1px solid var(--sb-line); }
.sb-check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--sb-ink); }
.sb-check label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sb-field.sb-pos { width: 72px; flex: none; padding: 0 var(--sb-space-2); text-align: center; }

/* ---------- C6. Post preview media grid (two to four images) ---------- */
.sb-pv__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin-top: 10px; border-radius: var(--sb-radius-md); overflow: hidden; }
.sb-pv__grid .sb-pv__media { margin-top: 0; border-radius: 0; aspect-ratio: 1; }

/* kit m40cw: a job pill that sends its ask at once (a one-button form inside .sb-jobs); new component for the brain */
.sb-jobform { display: inline-flex; margin: 0; }
.sb-jobform .sb-job { cursor: pointer; }

/* kit m40cw: the fold under a long list (newest few, then "Show all N"); new component for the brain */
.sb-fold > .sb-fold__open { list-style: none; cursor: pointer; padding: var(--sb-space-4) 0; font-weight: 600; color: var(--sb-ink); text-decoration: underline; text-underline-offset: 3px; }
.sb-fold > .sb-fold__open::-webkit-details-marker { display: none; }
.sb-fold[open] > .sb-fold__open { display: none; }
.sb-jobs > .sb-fold { flex-basis: 100%; }
.sb-jobs > .sb-fold > .sb-fold__open { padding: var(--sb-space-1) 0; }
.sb-cal__day .sb-fold > .sb-fold__open { padding: var(--sb-space-1) 0; font-size: var(--sb-text-sm); }
.sb-cal__day .sb-fold[open] { display: flex; flex-direction: column; gap: var(--sb-space-2); }
.sb-sec > .sb-fold[open], .sb-sec > .sb-fold > .sb-card + .sb-card { margin-top: var(--sb-space-4); }
.sb-nums--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sb-nums--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-meta--after { margin-top: var(--sb-space-3); }
.sb-row__sub { display: block; }
.sb-sechead + .sb-nums { margin-top: 0; }
@media (max-width: 760px) { .sb-nums--4, .sb-nums--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
