/* Ledgerline sample docs: a fictional client's documentation portal, written by Doc Foundry.
   Deliberately its own look (a client's portal, not Doc Foundry's site), with a slim Doc Foundry
   banner so nobody mistakes it for a real product. */
:root {
  --ink: #0d1b2a; --muted: #4a5a6a; --line: #e3e8ee; --soft: #f6f8fa; --accent: #00A3AE; --accent-ink: #006b72;
  --code-bg: #0d1b2a; --code-fg: #e6edf3; --ok: #1a7f37; --warn: #9a6700; --bad: #b42318;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.65; }
a { color: var(--accent-ink); }
.banner { background: #001414; color: #E5FFFF; font-size: 13px; padding: 9px 20px; text-align: center; }
.banner a { color: #08D2DF; margin-left: 8px; }
.dtop { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.lm { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ver { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--muted); }
.hire { margin-left: auto; font-size: 14px; text-decoration: none; font-weight: 500; }
.dshell { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.dside { border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; }
.dside .dg { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 10px 6px; }
.dside .dg:first-child { margin-top: 0; }
.dside a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dside a:hover { background: var(--soft); }
.dside a[aria-current] { background: #e6f7f8; color: var(--accent-ink); font-weight: 500; }
.dmain { padding: 36px 56px 64px; max-width: 860px; min-width: 0; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: 36px; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 12px; }
h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; padding-top: 8px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
pre { background: var(--code-bg); color: var(--code-fg); border-radius: 8px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 12px 0 20px; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.codehead { display: flex; justify-content: space-between; background: #1b2b3c; color: #9fb3c8; font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 8px 8px 0 0; margin-top: 12px; }
.codehead + pre { border-radius: 0 0 8px 8px; margin-top: 0; }
.tk { color: #7ee0e6; } .ts { color: #a5d6a7; } .tc { color: #7d8fa3; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding: 8px 12px 8px 0; }
td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
td:first-child { white-space: nowrap; }
.req { font-size: 12px; color: var(--bad); margin-left: 6px; }
.opt { font-size: 12px; color: var(--muted); margin-left: 6px; }
.type { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.callout { border-left: 3px solid var(--accent); background: #effafb; padding: 12px 16px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.callout.warn { border-color: #d4a72c; background: #fff8e6; }
.callout b { display: block; margin-bottom: 2px; }
.callout p { margin: 0; }
.endpoint { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 15px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 14px 0; flex-wrap: wrap; }
.method { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 4px; color: #fff; }
.post { background: var(--ok); } .get { background: #0969da; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.cards a { border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--accent); }
.cards b { display: block; margin-bottom: 4px; }
.cards span { font-size: 14px; color: var(--muted); }
.status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 20px; font-family: var(--mono); font-size: 13px; }
.status span { border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.status i { font-style: normal; color: var(--muted); }
ol.steps { padding-left: 22px; } ol.steps li { margin-bottom: 8px; }
.entry { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 28px; }
.entry h2 { margin-top: 18px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.entry h2 small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.pill { font-size: 12px; font-weight: 500; border-radius: 4px; padding: 2px 8px; margin-right: 6px; }
.added { background: #dafbe1; color: var(--ok); } .changed { background: #ddf4ff; color: #0969da; } .deprecated { background: #fff8c5; color: var(--warn); } .fixed { background: #f3e8ff; color: #6f42c1; }
.entry ul { list-style: none; padding: 0; } .entry li { margin-bottom: 8px; }
.updated { font-size: 13px; color: var(--muted); margin-top: 48px; border-top: 1px solid var(--line); padding-top: 14px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pager a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; text-decoration: none; min-width: 160px; }
.pager a:hover { border-color: var(--accent); }
.pager .nx { text-align: right; margin-left: auto; }
.pager small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .dshell { grid-template-columns: minmax(0, 1fr); }
  .dside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 16px; }
  .dside .dg { display: none; }
  .dside a { font-size: 14px; border: 1px solid var(--line); }
  .dmain { padding: 24px 16px 48px; }
  td, th { min-width: 150px; }
  td:first-child, th:first-child { min-width: 110px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hire { display: none; }
  h1 { font-size: 30px; }
}

/* Doc Foundry's analytics consent banner, shared with the main site */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 760px; margin: 0 auto; background: #001414; color: #E5FFFF; padding: 16px 20px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent a { color: #08D2DF; }
.consent div { display: flex; gap: 8px; }
.consent button { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 18px; border: 1px solid rgba(229,255,255,.3); background: transparent; color: #E5FFFF; cursor: pointer; }
.consent button[data-consent="granted"] { background: #08D2DF; border-color: #08D2DF; color: #001414; }
