/* Shared styles for cluedcli.com's inner pages (the home page keeps its own inline styles). */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --line: #30363d;
  --text: #e6edf3;
  --muted: #9ba3ad;
  --you: #5ccfe6;
  --claude: #c49cf7;
  --s-working: #5b9bf8;
  --s-waiting: #f5b33b;
  --s-done: #3fd27a;
  --code-bg: #010409;
  --btn-bg: #e6edf3;
  --btn-text: #0d1117;
  --shot-line: #30363d;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --gutter: 16px;
  --r: 6px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f8fa;
    --line: #d0d7de;
    --text: #1f2328;
    --muted: #57606a;
    --you: #0b6f80;
    --claude: #7c3aed;
    --s-working: #1d4ed8;
    --s-waiting: #a15c07;
    --s-done: #1a7f37;
    --code-bg: #f6f8fa;
    --btn-bg: #312e81;
    --btn-text: #ffffff;
    --shot-line: #8c959f;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--you); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--you); outline-offset: 3px; border-radius: 2px; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.2; }
/* off screen upwards, not sideways: a page in Arabic would scroll sideways to a link parked at left: -9999px */
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-300%); background: var(--btn-bg); color: var(--btn-text); padding: 8px 12px; border-radius: var(--r); z-index: 10; }
.skip:focus { transform: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* top bar, as on the home page */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.05rem/1 var(--mono); }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.top nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font: 0.92rem var(--mono); }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 719px) {
  .top nav a, .foot ul a { position: relative; }
  .top nav a::after, .foot ul a::after { content: ""; position: absolute; inset: -12px -10px; }
}

/* article */
.page { max-width: 46rem; margin: 0 auto; padding: 24px var(--gutter) 56px; }
.crumbs { font: 0.85rem var(--mono); color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--muted); }
.page h1 { font: 800 clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem)/1.12 var(--sans); letter-spacing: -0.02em; margin: 0 0 20px; }
.lede { font-size: 1.12rem; }
.page h2 { font: 700 clamp(1.12rem, 1rem + 0.5vw, 1.32rem)/1.35 var(--mono); margin: 44px 0 14px; }
.page h3 { font: 700 1rem/1.4 var(--mono); margin: 26px 0 8px; }
.page ul, .page ol { padding-left: 1.25em; margin: 0 0 1em; }
.page li { margin-bottom: 0.45em; }
.page li::marker { color: var(--muted); }

/* "Claude Code today" box: what the official tool already does */
.today { border: 1.5px solid var(--line); border-left: 4px solid var(--you); border-radius: 3px; background: var(--surface); padding: 16px 20px; margin: 28px 0; }
.today h2 { margin-top: 0; font-size: 1rem; }
.today p:last-child { margin-bottom: 0; }
.today .src { font-size: 0.88rem; color: var(--muted); }

/* screenshots */
.shot { margin: 26px 0; }
.shot a { display: block; border: 1px solid var(--shot-line); border-radius: var(--r); overflow: hidden; }
.shot figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.95rem; }
.tbl caption { text-align: start; color: var(--muted); font-size: 0.9rem; padding-bottom: 8px; }
.tbl th, .tbl td { text-align: start; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font: 700 0.85rem var(--mono); color: var(--muted); }
.tbl td.num { font-family: var(--mono); white-space: nowrap; }
.tbl td.us { font-weight: 700; }
@media (max-width: 640px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl th, .tbl td { display: block; border: 0; padding: 2px 0; }
  .tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font: 0.8rem var(--mono); }
}

/* marks, as in clued */
.g { font-family: var(--mono); }
.g.done { color: var(--s-done); } .g.wait { color: var(--s-waiting); } .g.work { color: var(--s-working); }

/* terminal blocks */
.term { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 14px; }
.term .bar { padding: 6px 16px; border-bottom: 1px solid var(--line); font: 0.78rem var(--mono); color: var(--muted); }
.term pre { margin: 0; padding: 12px 16px; font-size: 0.82rem; line-height: 1.7; }
.term pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { display: block; padding-left: 2ch; text-indent: -2ch; }
.term .p::before { content: "$ "; color: var(--muted); user-select: none; -webkit-user-select: none; }
.term .c { display: block; color: var(--muted); }

/* get it */
.get { border-top: 1px dashed var(--line); margin-top: 48px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--btn-bg); color: var(--btn-text); font: 700 0.95rem/1 var(--mono); padding: 13px 18px; border-radius: var(--r); text-decoration: none; margin: 6px 0 0; }
.btn:hover { text-decoration: underline; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.more { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 20px; font: 0.92rem var(--mono); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 48px; font-size: 0.92rem; color: var(--muted); }
.foot ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); }
.foot p { margin: 0 0 6px; max-width: 46rem; }

/* Arabic pages */
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--arabic); }
[dir="rtl"] .page h1 { font-family: var(--arabic); letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .page h2, [dir="rtl"] .page h3 { font-family: var(--arabic); }
[dir="rtl"] .page ul, [dir="rtl"] .page ol { padding-left: 0; padding-right: 1.25em; }
[dir="rtl"] .today { border-left: 1.5px solid var(--line); border-right: 4px solid var(--you); }
[dir="rtl"] .tbl th, [dir="rtl"] .tbl td { padding: 10px 0 10px 12px; }
[dir="rtl"] .term, [dir="rtl"] code, [dir="rtl"] .brand { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .term { text-align: left; }
[dir="rtl"] .top nav ul, [dir="rtl"] .crumbs, [dir="rtl"] .more, [dir="rtl"] .foot ul, [dir="rtl"] .tbl thead th { font-family: var(--arabic); }
[dir="rtl"] .tbl td[data-l]::before { font-family: var(--arabic); }
[dir="rtl"] :not(pre) > code { white-space: nowrap; } /* a code span broken across lines reads in the wrong order in Arabic text */
[dir="rtl"] body { font-size: 19px; line-height: 1.8; } /* Arabic glyphs read smaller than Latin ones at the same size */
