:root { --border: #e5e7eb; --muted: #6b7280; --text: #111827; --sub: #4b5563; --bg: #ffffff; --chip: #f3f4f6; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--text); margin: 0; background: #fafafa }
.container { max-width: 1100px; margin: 32px auto; padding: 0 16px }
.tbas-context { border-bottom: 1px solid var(--border); padding: 16px 0; margin-bottom: 14px; background: var(--bg) }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px }
.sub { margin: 0; color: var(--sub); font-size: 14px }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start }
.col-title { flex: 1 1 300px; min-width: 260px }
.meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.badge { display: inline-block; padding: 2px 8px; font-size: 12px; background: var(--chip); border: 1px solid var(--border); border-radius: 999px; color: #374151 }
.actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap }
.btn { display: inline-block; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); background: #fff }
.btn:hover { background: #f9fafb }
.about { margin-top: 10px }
.about summary { cursor: pointer; color: #374151; font-weight: 600 }
.about__body { margin-top: 6px; color: #374151; font-size: 14px }
.copy { padding: 2px 8px; font-size: 12px; border: 1px solid var(--border); background: #fff; border-radius: 999px; cursor: pointer }
.copy.copied { background: #e8f5e9; border-color: #bbf7d0 }
.tree-demo { border: 1px dashed var(--border); background: #fff; padding: 24px; border-radius: 8px }
.tree-placeholder { height: 320px; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px); border: 1px solid var(--border); border-radius: 6px }
.footer-note { font-size: 12px; color: var(--muted); margin-top: 6px }
.selector { display: flex; gap: 12px; align-items: flex-end; padding: 10px 0 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px }
.selector__left { display: flex; gap: 8px; align-items: center; flex: 1 1 auto }
.selector__right { display: flex; gap: 8px; align-items: center; flex-direction: row; }
.selector__label { font-size: 12px; color: var(--muted); display: block }
#treeSearch { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; min-width: 320px; background: #fff }
#recentTrees { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff }

/* Option A: hide the old action row when context header is present */
.has-context-header #hero-actions, .has-context-header .tree-actions-row { display: none !important; }

/* Demo-only styling for the old action row (so you can see it's hidden) */
#hero-actions { margin: 18px 0; display: flex; gap: 12px; justify-content: center }
#hero-actions .cta { background: #1499a8; color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none }
.selector__right .selector__label { margin: 0; align-self: center; }
:root { --ink: #0b1220; --muted: #667085; --bg: #f6f8fc; --brand: #0a6cff; --brand-dark: #084dbd; --surface: #ffffff; --line: #e5e7eb; --footer: #0f172a; }
body { background: var(--bg); color: var(--ink); }
.navbar { box-shadow: 0 1px 0 var(--line); }
.navbar-brand { font-weight: 700; }
.nav-link { color: #334155 !important; }
.nav-link:hover { color: var(--brand) !important; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-soft { background: #eef2ff; color: #1e293b; border-color: #eef2ff; }
.btn-soft:hover { background: #e0e7ff; }
.hero { padding: 14px 0 48px; }
.version-pill { display: inline-block; background: #eef2ff; color: #1e3a8a; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; }
.lead { color: #475569; }
.feature-card { background: #fff; border-radius: 1rem; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(2, 6, 23, .06); height: 100%; transition: transform .08s ease, box-shadow .12s ease; text-decoration: none; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2, 6, 23, .10); }
.card-body { padding: 1.2rem; }
.card-kicker { font-size: .75rem; color: #667085; text-transform: uppercase; letter-spacing: .08em; }
footer { background: var(--footer); color: #e2e8f0; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-cite { color: #e2e8f0; }
.footer-cite a { color: #93c5fd; }
.footer-rule { border-top: 1px solid rgba(148, 163, 184, .25); }
.footer-bottom { padding-bottom: 1rem; }
.maintenance-alert { border-radius: 0; margin-bottom: 0; display: none; }

/* Maintenance banner polish */
#maintenanceBanner, #maintenanceBanner * { outline: none !important; }
#maintenanceBanner> div { box-shadow: none !important; }

/* Match DeCIFR hero top spacing */
#tbas-hero-wrapper { padding-top: 48px; }

/* Match DeCIFR hero typography */
.hero h1 { font-size: 29px;           /* ~text-3xl */ line-height: 1.12; font-weight: 500; letter-spacing: -0.012em; color: #0b1220; }
@media (min-width:640px) {
  .hero h1 { font-size: 36px; }

/* ~sm:text-4xl */ }
.hero p.lead { font-size: 16px;           /* ~text-base */ line-height: 1.6; color: #334155;            /* slate-700 */ font-weight: 400; }
@media (min-width:640px) {
  .hero p.lead { font-size: 18px; }

/* ~sm:text-lg */ }
.hero .version-pill { font-size: 13px; color: #475569; background: #eef2ff; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 6px 10px; display: inline-block; }

/* Navbar tweaks */
.navbar-nav .nav-link { margin-right: 1.25rem; }

/* spacing between items */
.nav-sep { display: inline-block; width: 1px; height: 20px; background: #cbd5e1; margin: 0 .75rem; vertical-align: middle; }

/* hide default caret */

/* Thin chevron for dropdowns to match DeCIFR */

/* Thinner chevron + hover-to-open + flip on open */

/* Open submenu when hovering the toggle (incl. chevron area) or the dropdown */
.navbar .dropdown:hover .dropdown-menu, .navbar .dropdown-toggle:hover + .dropdown-menu { display: block; margin-top: 0; }

/* Flip chevron when menu is open (Bootstrap adds .show) or on hover */
.navbar .dropdown.show .dropdown-toggle::after, .navbar .dropdown:hover .dropdown-toggle::after { transform: rotate(-135deg); /* up */ }

/* Wrap hero title on small screens; keep single-line on larger viewports */
.hero h1 { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
@media (min-width:1024px) {
  .hero h1 { white-space: nowrap; }
}

/* Centered, thinner chevron that aligns with nav text */

/* Smaller, vertically-centered chevron */

/* Remove default bootstrap caret and draw a thin, centered chevron */
.navbar .dropdown-toggle::before { display: none !important; }
.navbar .dropdown-toggle::after { content: ""; display: inline-block; width: .42em;                 /* slightly smaller */ height: .42em; border: 0;                    /* nuke default triangle */ border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-left: .35em; vertical-align: middle; position: relative; top: -0.12em;                 /* nudge higher */ background: transparent; }

/* Ensure brand has at least the same gap as between other nav items */
.navbar .navbar-brand, .navbar a.brand { margin-right: 2rem; }
.navbar .navbar-brand, .navbar a.brand { margin-right: 2rem !important; }
.navbar .navbar-brand, .navbar a.brand { margin-right: 2rem !important; }
:root { --ink: #0b1220; --muted: #667085; --bg: #f6f8fc; --brand: #0a6cff; --brand-dark: #084dbd; --surface: #ffffff; --line: #e5e7eb; --footer: #0f172a; }
body { background: var(--bg); color: var(--ink); }
.navbar { box-shadow: 0 1px 0 var(--line); }
.navbar-brand { font-weight: 700; }
.nav-link { color: #334155 !important; }
.nav-link:hover { color: var(--brand) !important; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-soft { background: #eef2ff; color: #1e293b; border-color: #eef2ff; }
.btn-soft:hover { background: #e0e7ff; }
.hero { padding: 14px 0 48px; }
.version-pill { display: inline-block; background: #eef2ff; color: #1e3a8a; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; }
.lead { color: #475569; }
.feature-card { background: #fff; border-radius: 1rem; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(2, 6, 23, .06); height: 100%; transition: transform .08s ease, box-shadow .12s ease; text-decoration: none; }
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2, 6, 23, .10); }
.card-body { padding: 1.2rem; }
.card-kicker { font-size: .75rem; color: #667085; text-transform: uppercase; letter-spacing: .08em; }
footer { background: var(--footer); color: #e2e8f0; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-cite { color: #e2e8f0; }
.footer-cite a { color: #93c5fd; }
.footer-rule { border-top: 1px solid rgba(148, 163, 184, .25); }
.footer-bottom { padding-bottom: 1rem; }
.maintenance-alert { border-radius: 0; margin-bottom: 0; display: none; }

/* Maintenance banner polish */
#maintenanceBanner, #maintenanceBanner * { outline: none !important; }
#maintenanceBanner> div { box-shadow: none !important; }

/* Match DeCIFR hero top spacing */
#tbas-hero-wrapper { padding-top: 48px; }

/* Match DeCIFR hero typography */
.hero h1 { font-size: 29px;           /* ~text-3xl */ line-height: 1.12; font-weight: 500; letter-spacing: -0.012em; color: #0b1220; }
@media (min-width:640px) {
  .hero h1 { font-size: 36px; }

/* ~sm:text-4xl */ }
.hero p.lead { font-size: 16px;           /* ~text-base */ line-height: 1.6; color: #334155;            /* slate-700 */ font-weight: 400; }
@media (min-width:640px) {
  .hero p.lead { font-size: 18px; }

/* ~sm:text-lg */ }
.hero .version-pill { font-size: 13px; color: #475569; background: #eef2ff; border: 1px solid #e5e7eb; border-radius: 9999px; padding: 6px 10px; display: inline-block; }

/* Navbar tweaks */
.navbar-nav .nav-link { margin-right: 1.25rem; }

/* spacing between items */
.nav-sep { display: inline-block; width: 1px; height: 20px; background: #cbd5e1; margin: 0 .75rem; vertical-align: middle; }

/* hide default caret */

/* Thin chevron for dropdowns to match DeCIFR */

/* Thinner chevron + hover-to-open + flip on open */

/* Open submenu when hovering the toggle (incl. chevron area) or the dropdown */
.navbar .dropdown:hover .dropdown-menu, .navbar .dropdown-toggle:hover + .dropdown-menu { display: block; margin-top: 0; }

/* Flip chevron when menu is open (Bootstrap adds .show) or on hover */
.navbar .dropdown.show .dropdown-toggle::after, .navbar .dropdown:hover .dropdown-toggle::after { transform: rotate(-135deg); /* up */ }

/* Wrap hero title on small screens; keep single-line on larger viewports */
.hero h1 { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
@media (min-width:1024px) {
  .hero h1 { white-space: nowrap; }
}

/* Centered, thinner chevron that aligns with nav text */

/* Smaller, vertically-centered chevron */

/* Remove default bootstrap caret and draw a thin, centered chevron */
.navbar .dropdown-toggle::before { display: none !important; }
.navbar .dropdown-toggle::after { content: ""; display: inline-block; width: .42em;                 /* slightly smaller */ height: .42em; border: 0;                    /* nuke default triangle */ border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-left: .35em; vertical-align: middle; position: relative; top: -0.12em;                 /* nudge higher */ background: transparent; }

/* Ensure brand has at least the same gap as between other nav items */
.navbar .navbar-brand, .navbar a.brand { margin-right: 2rem; }
.navbar .navbar-brand, .navbar a.brand { margin-right: 2rem !important; }
.navbar .navbar-brand, .navbar a.brand { margin-right: 2rem !important; }
.tbas-search-hit { box-shadow: 0 0 0 2px rgba(10, 108, 255, .25) !important; }
.tbas-search-hit-current { box-shadow: 0 0 0 3px rgba(10, 108, 255, .6) !important; }

/* Hide native WebKit search clear icon so it doesn't overlap controls */
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-results-button, input[type="search"]::-webkit-search-results-decoration { display: none; }

/* Vertical separators between footer links (like |), without using characters */
.footer-links a { padding: 0 .9rem; display: inline-block; }
.footer-links a + a { border-left: 1px solid rgba(255, 255, 255, .8); }
.footer-rule .small a { padding: 0 .6rem; display: inline-block; }
.footer-rule .small a + a { border-left: 1px solid rgba(255, 255, 255, .8); }
>
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
footer { margin-top: auto; }
html, body { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
#guide-content { flex: 1 1 auto; }
footer { margin-top: auto; }
.tooltip-version .tooltip-inner { background: var(--brand, #0a6cff); color: #fff; font-size: 0.95rem; font-weight: 600; padding: .5rem .7rem; box-shadow: 0 6px 18px rgba(2, 6, 23, .16); border-radius: .5rem; }
.tooltip-version.bs-tooltip-bottom .arrow::before { border-bottom-color: var(--brand, #0a6cff); }
.tooltip-version.bs-tooltip-top .arrow::before { border-top-color: var(--brand, #0a6cff); }
.tooltip-version.bs-tooltip-left .arrow::before { border-left-color: var(--brand, #0a6cff); }
.tooltip-version.bs-tooltip-right .arrow::before { border-right-color: var(--brand, #0a6cff); }
html.jobmon-hide [data-job-monitor] { display: none !important; }
#maintenanceBanner { pointer-events: auto; }
#maintenanceClose { pointer-events: auto; }

/* === Minimal overrides for consistency === */
.navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.navbar .navbar-brand { padding-top: 0.3125rem; padding-bottom: 0.3125rem; }

/* Smaller title in context header */
.tbas-context h1 { font-size: 18px !important; line-height: 1.3; margin: 0 0 4px; }

/* Ensure visible button outlines for TBAS header actions and selector buttons */
.tbas-context .actions .btn, .selector .btn { border: 1px solid var(--border) !important; background: #fff !important; box-shadow: none !important; }
.tbas-context .actions .btn:hover, .selector .btn:hover { border-color: #cbd5e1 !important; }

/* Force a shorter navbar height (close to Guide header) */
.navbar { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 52px !important;        /* target ~52–56px */ }

/* compress vertical padding on brand, links, and buttons */
.navbar .navbar-brand, .navbar .nav-link, .navbar .btn, .navbar .btn.btn-sm { padding-top: .20rem !important; padding-bottom: .20rem !important; line-height: 1.25 !important; }

/* make sure dropdown toggles don't add extra height */
.navbar .dropdown-toggle { padding-top: .20rem !important; padding-bottom: .20rem !important; }

/* Align separators and badges within the tighter header */
.navbar .nav-sep { height: 18px; }
.navbar .badge { font-size: .65rem; padding: .15rem .35rem; transform: translateY(-1px); }
