/* RecipePricing user guide — styles.
   Palette and type follow the public site (layout-front.css): orange accent, warm neutrals,
   Barlow Condensed for display, Source Sans Pro for reading text. */

:root {
    --accent: #EA8133;
    --accent-deep: #d35a01;
    --accent-soft: #FBE9DA;
    --ink: #1f1a15;
    --ink-2: #4a423a;
    --muted: #7a7067;
    --brown: #554A3D;
    --paper: #FFFFFF;
    --ground: #F6F3EF;
    --grey: #F0EEEC;
    --rule: #E3DCD4;
    --good: #3c8d5a;
    --warn: #b9432f;
    --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Source Sans Pro', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --nav-h: 60px;
}

html { width: auto; height: auto; }
body {
    width: auto; height: auto;
    margin: 0;
    padding-top: var(--nav-h);
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---------- top navigation (mirrors the site header in its scrolled state) ---------- */
.navbar-custom.docs-nav {
    min-height: var(--nav-h);
    background: #fff;
    border-bottom: 1px solid var(--rule);
    padding: 0;
    letter-spacing: 1px;
    font-family: var(--display);
    font-size: 17px;
}
.navbar-custom.docs-nav .navbar-brand { position: relative; margin: 0; padding: 6px 15px; height: var(--nav-h); }
.navbar-custom.docs-nav .navbar-brand .container { width: auto; height: 100%; padding: 0; position: static; }
.navbar-custom.docs-nav .navbar-brand .container .logo-wide { height: 100%; width: auto; display: inline; }
.navbar-custom.docs-nav .navbar-brand .container .logo-big,
.navbar-custom.docs-nav .navbar-brand .container div { display: none; }
.navbar-custom.docs-nav .nav > li > a { padding: 20px 14px; line-height: 20px; color: var(--ink); }
.navbar-custom.docs-nav .nav > li.active > a { color: var(--accent-deep); background: transparent; box-shadow: inset 0 -3px 0 var(--accent); }
.navbar-custom.docs-nav .nav a.btn-cta-secondary { background: var(--accent); border: 2px solid var(--accent); color: #fff; margin-top: 11px; padding: 6px 12px; border-radius: 6px; }
.navbar-custom.docs-nav .nav a.btn-cta-secondary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.navbar-custom.docs-nav .navbar-toggle { border: 1px solid var(--rule); color: var(--ink); margin: 13px 15px; }
@media (max-width: 767px) {
    .navbar-custom.docs-nav .navbar-collapse { background: #fff; border-top: 1px solid var(--rule); }
    .navbar-custom.docs-nav .nav > li > a { padding: 10px 15px; }
}

/* ---------- page header ---------- */
.guide-header {
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    padding: 44px 0 36px;
}
.guide-header .eyebrow {
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    color: var(--accent-deep);
    margin: 0 0 8px;
}
.guide-header h1 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: 0.5px;
    margin: 0 0 14px;
    color: var(--ink);
    text-wrap: balance;
}
.guide-header .lede {
    font-size: 21px;
    line-height: 1.45;
    max-width: 44em;
    margin: 0 0 22px;
    color: var(--ink-2);
}
.guide-header .meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.guide-header .meta i { color: var(--accent); margin-right: 6px; }

/* ---------- two-column body ---------- */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding: 40px 0 72px; }
@media (max-width: 991px) { .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.guide-toc { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; font-size: 15px; }
@media (max-width: 991px) { .guide-toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; background: var(--ground); } }
.guide-toc .toc-title { font-family: var(--display); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; }
.guide-toc ol ol { padding-left: 14px; margin: 2px 0 8px; }
.guide-toc li { margin: 0; }
.guide-toc a { display: block; padding: 4px 0 4px 10px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.guide-toc ol ol a { color: var(--muted); font-size: 14px; padding-top: 3px; padding-bottom: 3px; }
.guide-toc a:hover, .guide-toc a:focus { color: var(--accent-deep); border-left-color: var(--rule); text-decoration: none; }
.guide-toc a.current { color: var(--accent-deep); border-left-color: var(--accent); }

.guide-body { max-width: 780px; }
.guide-body > section { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
.guide-body > section:last-child { border-bottom: 0; }
.guide-body h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 38px;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 14px;
    scroll-margin-top: calc(var(--nav-h) + 16px);
    text-wrap: balance;
}
.guide-body h2 .num { color: var(--accent); margin-right: 10px; }
.guide-body h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.15;
    color: var(--brown);
    margin: 34px 0 10px;
    scroll-margin-top: calc(var(--nav-h) + 16px);
}
.guide-body h4 { font-family: var(--display); font-size: 20px; margin: 22px 0 6px; color: var(--ink); letter-spacing: 0.5px; }
.guide-body p { margin: 0 0 14px; font-size: 17px; line-height: 1.55; max-width: 66ch; }
.guide-body p.lead { font-size: 19px; color: var(--ink-2); }
.guide-body ul, .guide-body ol { margin: 0 0 16px; padding-left: 22px; max-width: 66ch; }
.guide-body li { margin-bottom: 6px; }
.guide-body a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: rgba(211, 90, 1, 0.35); text-underline-offset: 2px; }
.guide-body a:hover { color: var(--ink); text-decoration-color: currentColor; }
.guide-body kbd, .guide-body .ui {
    display: inline-block;
    font: inherit;
    font-size: 0.92em;
    font-weight: 600;
    color: var(--ink);
    background: var(--grey);
    border: 1px solid var(--rule);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0 6px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: none;
}
.guide-body .ui i { color: var(--accent-deep); margin-right: 4px; }

/* numbered steps */
.steps { list-style: none; counter-reset: step; padding-left: 0; max-width: 66ch; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 12px; }
.steps > li::before {
    content: counter(step);
    position: absolute; left: 0; top: 1px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 30px; text-align: center;
}
.steps > li > p:last-child { margin-bottom: 0; }

/* screenshots */
figure.shot { margin: 22px 0 26px; }
figure.shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: 0 8px 24px -14px rgba(31, 26, 21, 0.35);
    background: var(--grey);
}
figure.shot.narrow img { max-width: 520px; }
figure.shot figcaption { margin-top: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.45; padding-left: 12px; border-left: 3px solid var(--accent); }
figure.shot figcaption b { color: var(--ink-2); font-weight: 600; }

/* callouts */
.note {
    background: var(--ground);
    border-left: 4px solid var(--accent);
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    margin: 0 0 18px;
    max-width: 66ch;
    font-size: 16px;
}
.note p { margin: 0; font-size: 16px; }
.note p + p { margin-top: 6px; }
.note .label { font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; color: var(--accent-deep); display: block; margin-bottom: 2px; }
.note.plan { border-left-color: var(--brown); }
.note.plan .label { color: var(--brown); }
.note.plan .label i { margin-right: 5px; }
.note.warn { border-left-color: var(--warn); }
.note.warn .label { color: var(--warn); }

/* field reference tables & formula tables */
.guide-body .tbl-wrap { overflow-x: auto; margin: 0 0 20px; }
.guide-body table.ref { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
.guide-body table.ref th, .guide-body table.ref td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.guide-body table.ref th { font-family: var(--display); font-weight: 600; letter-spacing: 0.8px; font-size: 15px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--rule); }
.guide-body table.ref td.k { white-space: nowrap; font-weight: 600; color: var(--ink); }
.guide-body table.ref td.num, .guide-body table.ref th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-body table.ref tr.total td { border-top: 2px solid var(--accent); border-bottom: 0; font-weight: 700; background: var(--ground); }
.guide-body table.calc { max-width: 66ch; }
.guide-body table.calc td.k { width: 30%; }
.formula { font-family: var(--body); font-size: 15px; color: var(--ink-2); background: var(--grey); border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.formula .op { color: var(--accent-deep); font-weight: 700; padding: 0 3px; }

/* flow diagram */
.flow { margin: 10px 0 26px; }
.flow svg { width: 100%; height: auto; display: block; }

/* mini cards for the four building blocks */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
@media (max-width: 560px) { .blocks { grid-template-columns: minmax(0, 1fr); } }
.blocks .block { border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px 12px; background: #fff; }
.blocks .block h4 { margin: 0 0 4px; font-size: 21px; }
.blocks .block h4 i { color: var(--accent); width: 22px; }
.blocks .block p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

/* plan matrix */
table.ref .ok { color: var(--good); font-weight: 700; }
table.ref .no { color: var(--rule); }

/* FAQ */
.faq dt { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--brown); margin: 18px 0 4px; }
.faq dd { margin: 0 0 6px; max-width: 66ch; }

/* footer copy of the site footer */
footer.docs-footer { padding: 25px 0; background: var(--brown); }
footer.docs-footer p { margin: 0; font-size: 16px; color: #B4A397; }
footer.docs-footer a { color: #B4A397; }

/* back-to-top */
.to-top { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--muted); text-decoration: none; }

/* print */
@media print {
    body { padding-top: 0; font-size: 12pt; }
    .navbar, .guide-toc, footer.docs-footer, .to-top { display: none !important; }
    .guide { display: block; }
    figure.shot img { box-shadow: none; }
    .guide-body > section { page-break-inside: avoid; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
