/* =====================================================================
   DLX theme — follows the DLX Brand Bible (v10.2025) and deployedlogix.com
   ---------------------------------------------------------------------
   Colours   Very dark shades of gray (between Midnight Moves #000000 and
             Gallant Gray #3E3E3E) with Rapid Red #8A191B as the accent;
             Desert Tan #967C51 tints the rating stars.
             Two tints of Rapid Red (#C8393C, #E0605B) are used only where
             #8A191B on black is too dark to see (focus rings, selection
             outlines, small red text). The Brand Bible asks for tints and
             shades to be approved by the lead designer: all of them live
             in the :root block below, so they're easy to review or change.
   Type      Headers: Peridot Compressed, ALL-CAPS. Body: Peridot Narrow.
             Where Peridot isn't installed or licensed for the web, the
             Brand Bible's office fonts are used: Oswald (bundled, open
             licence) for headers and Arial for body copy.
             To use Peridot itself, add its web-licensed .woff2 files to
             /static/fonts and the @font-face rules at the bottom.
   Logo      The white globe only ever sits on black or Gallant Gray,
             unaltered, with its ®.
   ===================================================================== */
@font-face { font-family: "Oswald DLX"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("/static/fonts/oswald-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald DLX"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("/static/fonts/oswald-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; }

:root, body.auth-page {
  /* brand colours */
  --midnight: #000000; --rapid-red: #8A191B; --gallant-gray: #3E3E3E; --desert-tan: #967C51;
  /* shades + tints (for lead-designer review) */
  --bg: #161616; --panel: #1c1c1c; --raised: #2a2a2a; --line: #353535; --well: #121212;
  --chrome: #1f1f1f;                   /* top bar, home masthead, sign-in card */
  --field: #121212;                    /* search boxes and inputs */
  --text: #f2f2f2; --muted: #a8a8a8;
  --select: var(--rapid-red);          /* fills: buttons, active rows, selected tags (white text on top: 8.6:1) */
  --focus: #C8393C;                    /* outlines and rings on black, where #8A191B can't be seen */
  --red-text: #E0605B;                 /* the rare small red label on black */
  --red: #C8393C; --yellow: #BFA06A;   /* errors / stars (a Desert Tan tint) */

  --font: "Peridot Narrow", "Peridot PE Narrow", Arial, Helvetica, sans-serif;
  --display: "Peridot Compressed", "Peridot PE Compressed", "Oswald DLX", Oswald, "Arial Narrow", sans-serif;
  --radius-s: 2px; --radius-m: 3px;    /* the website is squared off */
  color-scheme: dark;
}
body { font-size: 13.5px; }

/* ---------------------------------------------------------------- display type: ALL-CAPS, compressed */
h1, h2, .shelf-head h2, .mast-ident h1, .auth-card h1, .page-nav a, .home-brand span, .tabs button,
.text-btn.primary, .topbar-upload, .sec-head h2, .side-head h2, .card-section h2, .settings h2 {
  font-family: var(--display); text-transform: uppercase;
}
h2 { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.text-btn.primary, .topbar-upload { font-weight: 500; letter-spacing: .06em; font-size: 13px; }
.primary { background: var(--rapid-red); border-color: var(--rapid-red); color: #fff; }
.primary:hover:not(:disabled) { background: #A01E21; border-color: #A01E21; }
.danger-solid { background: var(--rapid-red); border-color: var(--rapid-red); }
.text-btn:not(.primary):hover { border-color: #5a5a5a; }

/* ---------------------------------------------------------------- top bar: black, like the website header */
.topbar { background: var(--chrome); border-bottom: 1px solid var(--line); }
.home-brand img { background: none; padding: 0; height: 30px; }
.home-brand span { font-size: 18px; font-weight: 600; letter-spacing: .05em; }
.page-nav a { font-size: 15px; font-weight: 500; letter-spacing: .06em; color: #cfcfcf; padding: 5px 12px; border-radius: 0; }
.page-nav a:hover { color: #fff; background: none; }
.page-nav a[aria-current="page"] { color: #fff; background: none; box-shadow: inset 0 -3px 0 var(--rapid-red); }
.search { background: var(--field); border-color: var(--line); }
.search:focus-within { border-color: var(--focus); }
#user-btn { background: var(--raised); }

/* ---------------------------------------------------------------- selection + focus */
:focus-visible { outline-color: var(--focus); }
.card.selected, .txr.selected { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.loupe-msg .bar span { background: var(--focus); }
.fav-btn.on, .fav-toggle.on, .loupe-fav.on { color: var(--red-text); }
.fav-toggle.on { border-color: color-mix(in srgb, var(--red-text) 50%, var(--line)); }
.fav-nav .heart { color: var(--red-text); }
.pane-handle:hover::before, .pane-handle.dragging::before, .pane-handle:focus-visible::before { background: var(--focus); }
.drop-zone.over, .drop-zone:focus-visible, .search.big:focus-within { border-color: var(--focus); }
.badge { background: var(--rapid-red); }
.see-all, a.see-all { color: var(--muted); }

/* ---------------------------------------------------------------- panes */
.sidebar, .inspector, .pane-handle { background: var(--panel); }
.card { background: #202020; border-color: #2c2c2c; }
.card:hover { border-color: #4a4a4a; }
.crumbs { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.ffav-toggle[aria-pressed=true] { border-color: var(--yellow); }

/* ---------------------------------------------------------------- home masthead: black band, red rule, slashes */
.masthead { --m-bg: var(--chrome); --m-line: #3a3a3a; border-bottom: 4px solid var(--rapid-red); }
.mast-ident h1 { font-size: 38px; font-weight: 700; letter-spacing: .02em; line-height: 1.05; }
.portal-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: #cfcfcf; }
.portal-label::after { content: " //"; color: var(--red-text); font-weight: 700; letter-spacing: -.05em; }
.org-plate[data-bg="dark"] { background: #141414; border-color: #3a3a3a; }
.org-plate { border-radius: var(--radius-m); }
.search.big { background: var(--field); border-color: #3a3a3a; }
.shelf-head h2 { font-size: 24px; font-weight: 600; letter-spacing: .03em; color: var(--text); }
.section-name { font-family: var(--display); text-transform: uppercase; font-size: 20px; font-weight: 600; letter-spacing: .03em; }
.folder-name, .coll-name { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; font-size: 15px; }
.folder-card { background: var(--panel); }
.section-tile, .mosaic, .tile-img, .folder-thumb { border-radius: var(--radius-m); }

/* ---------------------------------------------------------------- sign-in page */
body.auth-page { background: var(--bg); }
.auth-card { background: var(--chrome); border-color: var(--line); border-top: 4px solid var(--rapid-red); }
.auth-card h1 { font-size: 24px; font-weight: 600; letter-spacing: .04em; }

/* ---------------------------------------------------------------- settings */
.tabs button[aria-current] { background: var(--rapid-red); color: #fff; }
.tabs button { letter-spacing: .05em; font-size: 14px; }

/* To use Peridot on the web, add its licensed files to /static/fonts and uncomment:
@font-face { font-family: "Peridot Compressed"; font-weight: 700; src: url("/static/fonts/PeridotCompressed-Bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Peridot Compressed"; font-weight: 900; src: url("/static/fonts/PeridotCompressed-Black.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Peridot Narrow"; font-weight: 400; src: url("/static/fonts/PeridotNarrow-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Peridot Narrow"; font-weight: 600; src: url("/static/fonts/PeridotNarrow-Semibold.woff2") format("woff2"); font-display: swap; }
*/

/* The globe stands alone in the top bar: the Brand Bible doesn't allow other words or fonts locked up
   beside the logo. The site name stays available to screen readers. */
.home-brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-brand { padding: 0 6px 0 2px; margin-right: 10px; }
/* Text links: a Rapid Red tint that stays readable on black (5:1) */
main a:not([class]), .auth-card a:not([class]), .settings a:not([class]) { color: var(--red-text); }
main a:not([class]):hover, .auth-card a:not([class]):hover { color: #fff; }
.page-nav a, .page-nav a:not([class]) { color: #cfcfcf; }
.page-nav a[aria-current="page"], .page-nav a:hover { color: #fff; }

/* ---------------------------------------------------------------- home page: darker top, lighter body */
body.home-page { --bg: #222222; --panel: #2a2a2a; --well: #1a1a1a; --line: #3a3a3a; background: var(--bg); }
body.home-page .topbar { background: #121212; border-bottom-color: #2a2a2a; }
body.home-page .masthead { --m-bg: #161616; --m-line: #2e2e2e; }
body.home-page .org-plate[data-bg="dark"] { background: #101010; border-color: #2e2e2e; }
body.home-page .search.big { background: #0e0e0e; border-color: #2e2e2e; }
body.home-page #user-btn { background: #1e1e1e; }
.email-cell a, .email-cell a:not([class]) { color: var(--text); text-decoration: underline; text-decoration-color: #555; }
.email-cell { white-space: nowrap; }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: #A01E21; }

/* phones: icon-only upload, compact account button, no keyboard hints */
@media (max-width: 800px) {
  .topbar .topbar-upload { font-size: 0; letter-spacing: 0; padding: 6px 9px; }
  #user-btn { max-width: 96px; font-size: 12px; padding: 5px 8px; }
  .statusbar .hint { display: none; }
  .page-nav a { font-size: 14px; }
}
