/* GENERATED from docs/mockups/detective.css by server-php/tools/sync-design.py. Do not edit: change the
   design file (design session) and re-run the script. @font-face rules live in fonts.css. */
/* MedTective: "The Detective's Study" layer (docs/DESIGN.md → Redesign). Loaded after tokens.css
   and components.css: it maps the redesign palette onto the existing token names and reskins the
   shell and components, so every screen takes the new look without new markup.
   Light = parchment and ink engraving; dark = the desk by candlelight; the rail is a navy leather
   spine in both. Brass is the one action colour. Book text stays on calm paper, English and LTR,
   and the four highlight kinds keep their colours, shapes, underlines and labels.
   Image paths are relative to the web app's /app/css/ folder (copied by sync-design.py). */

:root {
  --tray: #e9dcbe;          /* parchment page */
  --slide: #f4ead3;         /* raised panels, cards, lists */
  --slide-edge: rgba(255, 255, 255, .55);
  --frost: #ecdcb9;         /* handwritten label band, segmented track */
  --frost-tex: none;
  --grain: transparent;
  --paper: #fbf6ea;         /* book text ground: calm, lighter than the page */
  --paper-ink: #1d2348;
  --line: #d9c399;
  --line-strong: #b99c6a;
  --control-edge: #8c7655;  /* 3.6:1 on panels, 4:1 on paper */
  --shadow: rgba(70, 45, 10, .28);
  --bar: #161a3a; --bar-solid: #161a3a;
  --ink: #1d2348;           /* the detective's ink */
  --ink-2: #5c4a31;         /* 6.2:1 on the page, 7.1:1 on panels */
  --pencil: #3b2f20;
  --haem: #7a520f;          /* brass: the action colour (6.4:1 under button text; 5.1:1 as text on the page) */
  --on-haem: #fff8e8;
  --haem-wash: rgba(122, 82, 15, .13);
  --select: rgba(154, 106, 23, .28);
  --eosin: #9a6a17;         /* place and progress fills */
  --eosin-ink: #7a520f;
  --on-eosin: #fff8e8;
  --stain-a: transparent; --stain-b: transparent;
  --danger: #a8323f;
  --ok: #246a44;
  --on-state: #fff8e8;
  --font-head: "Literata", Georgia, serif;
  --r-md: 14px; --r-card: 18px;
  /* the navy leather spine (both themes) */
  --spine: #161a3a; --spine-fg: #cfc3a6; --spine-hi: #f3cf7e; --spine-line: #343b6b; --spine-ring: #e0b357;
  --page-bg: linear-gradient(rgba(244, 234, 210, .5), rgba(244, 234, 210, .5)), url("../img/T1.webp") 0 0 / 560px repeat, #e9dcbe;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tray: #0f1226; --slide: #1b2042; --slide-edge: rgba(255, 255, 255, .06); --frost: #232850; --frost-tex: none; --grain: transparent; --stain-a: transparent; --stain-b: transparent;
    --paper: #161a33; --paper-ink: #ece3cc; --line: #2c3260; --line-strong: #3d4478; --control-edge: #7d7a9c;
    --shadow: rgba(0, 0, 0, .5);
    --ink: #f1e7d0; --ink-2: #c4b796; --pencil: #e8dcc0;
    --haem: #e0b357; --on-haem: #2a1c05; --haem-wash: rgba(224, 179, 87, .16); --select: rgba(224, 179, 87, .28);
    --eosin: #e0b357; --eosin-ink: #f3cf7e; --on-eosin: #2a1c05;
    --danger: #ffb4ab; --ok: #8ad6a6; --on-state: #0f1226; --mark-edge: #e8dcc0;
    --page-bg: linear-gradient(rgba(12, 14, 32, .86), rgba(12, 14, 32, .86)), url("../img/T3.webp") 0 0 / 640px repeat, #0f1226;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --tray: #0f1226; --slide: #1b2042; --slide-edge: rgba(255, 255, 255, .06); --frost: #232850; --frost-tex: none; --grain: transparent; --stain-a: transparent; --stain-b: transparent;
  --paper: #161a33; --paper-ink: #ece3cc; --line: #2c3260; --line-strong: #3d4478; --control-edge: #7d7a9c;
  --shadow: rgba(0, 0, 0, .5);
  --ink: #f1e7d0; --ink-2: #c4b796; --pencil: #e8dcc0;
  --haem: #e0b357; --on-haem: #2a1c05; --haem-wash: rgba(224, 179, 87, .16); --select: rgba(224, 179, 87, .28);
  --eosin: #e0b357; --eosin-ink: #f3cf7e; --on-eosin: #2a1c05;
  --danger: #ffb4ab; --ok: #8ad6a6; --on-state: #0f1226; --mark-edge: #e8dcc0;
  --page-bg: linear-gradient(rgba(12, 14, 32, .86), rgba(12, 14, 32, .86)), url("../img/T3.webp") 0 0 / 640px repeat, #0f1226;
  color-scheme: dark;
}
:root:lang(fa) { --font-head: "Vazirmatn", system-ui, sans-serif; }

body { background: var(--page-bg); background-attachment: fixed; }
:focus-visible { outline-color: var(--haem); outline-offset: 3px; border-radius: 6px; }

/* Images that differ per theme or per detective version */
:root[data-theme="dark"] .only-light, :root[data-theme="light"] .only-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-light { display: none !important; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .only-dark { display: none !important; } }
:root:not([data-v="w"]) .only-w, :root[data-v="w"] .only-m { display: none !important; }

/* ---------- Wordmark and headings ---------- */
.brand { font: 800 var(--fs-2xl)/1 var(--font-book); color: var(--ink); direction: ltr; }
.brand b { color: var(--haem); font-weight: 800; }
.page-head h1, .section-head h2, .empty h3 { font-weight: 800; }
:root:lang(fa) .page-head h1, :root:lang(fa) .section-head h2, :root:lang(fa) .empty h3 { font-weight: 900; }

/* ---------- The navy spine: rail from 900px, bottom bar on phones ---------- */
.tabbar { background: var(--spine) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-top: 1px solid var(--spine-line); }
.tab { color: var(--spine-fg); }
.tab[aria-current="page"] { color: var(--spine-hi); }
.tab[aria-current="page"] .tab__pill { background: rgba(224, 179, 87, .16); }
.tab .emblem { width: 28px; height: 28px; object-fit: contain; display: block; }
.tab .tab__pill .i { width: 22px; height: 22px; }
.tab .disc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1d2348; box-shadow: inset 0 0 0 2px #b48a33; color: #f1e7d0; }
.tab .disc .i { width: 16px; height: 16px; }
.avatar { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #f1e7d0; box-shadow: 0 0 0 2px var(--spine-ring), 0 6px 14px -6px rgba(0, 0, 0, .6); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
@media (min-width: 900px) {
  .rail { background: var(--spine); border-inline-end: 1px solid var(--spine-line); box-shadow: inset -1px 0 0 rgba(224, 179, 87, .18); color: var(--spine-fg); }
  .rail .brand { color: #f1e7d0; font-size: var(--fs-xl); padding-bottom: var(--s4); }
  .rail .brand b { color: var(--spine-hi); }
  .rail .me { display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s3) var(--s5); color: #f1e7d0; text-decoration: none; }
  .rail .me small { display: block; color: var(--spine-fg); font-size: var(--fs-xs); }
  .rail .me b { font-weight: 700; }
  .rail .me .avatar { width: 52px; height: 52px; flex: none; }
  .rail .tab { color: var(--spine-fg); }
  .rail .tab .emblem, .rail .tab .disc { width: 34px; height: 34px; }
  .rail .tab[aria-current="page"] { background: rgba(224, 179, 87, .14); color: var(--spine-hi); box-shadow: inset 0 0 0 1px rgba(224, 179, 87, .45); }
  .rail .tab:hover { background: rgba(224, 179, 87, .08); }
  .rail .rail__foot, .rail .rail__foot .muted { color: var(--spine-fg); }
  .rail .rail__foot a { color: var(--spine-hi); }
}

/* ---------- Controls ---------- */
.btn { font-weight: 700; box-shadow: 0 6px 16px -10px var(--haem); }
.btn:hover { filter: brightness(1.06); }
.btn--outline { box-shadow: inset 0 0 0 1.5px var(--haem); }
.btn--quiet { box-shadow: none; }
.btn[disabled] { box-shadow: none; }
.search { background: var(--paper); }
.progress { background: color-mix(in srgb, var(--line) 70%, transparent); }

/* ---------- Cards: the slide becomes a paper card with a handwritten label band ---------- */
.slide { border-radius: var(--r-card); border-color: var(--line); box-shadow: 0 10px 26px -16px var(--shadow), 0 2px 6px -4px var(--shadow); }
.slide::after { display: none; }
.slide__label { border-inline-end: 1px dashed var(--line-strong); font-size: 16px; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; } /* break long words at a syllable, with a hyphen */
.slide__spec, [dir="rtl"] .slide__spec { background: none; }
:root:lang(fa) .slide__label[lang="en"] { font-family: var(--font-label); } /* labels keep the hand, not the English-island book font */
.list { border-radius: var(--r-card); }
.paper { border-radius: 10px; }
.sheet { border-radius: var(--r-card) var(--r-card) 0 0; }
@media (min-width: 900px) { .sheet { border-radius: var(--r-card); } }

/* ---------- Pictures in empty states ---------- */
.empty .pic { width: min(220px, 60vw); aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto var(--s4); }
.empty .scene { width: min(560px, 100%); aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); display: block; margin: 0 auto var(--s5); box-shadow: 0 10px 26px -16px var(--shadow); }
[dir="rtl"] .empty .scene { transform: scaleX(-1); }
