/* Rackdog theme for the hybula looking glass -- matches rackdog.com (dark, thin borders, Rackdog blue).
   Loaded after Bootstrap via LG_CSS_OVERRIDES in config.php. Managed from ~/lg_fleet on ubuntu-slc. */
:root {
  --rd-bg: #08090b;
  --rd-surface: rgba(239, 244, 255, 0.025);
  --rd-surface-2: rgba(239, 244, 255, 0.05);
  --rd-border: rgba(245, 247, 248, 0.09);
  --rd-border-strong: rgba(245, 247, 248, 0.16);
  --rd-ink: #f5f7f8;
  --rd-muted: rgba(245, 247, 248, 0.55);
  --rd-faint: rgba(116, 123, 135, 0.84);
  --rd-blue: rgb(21, 98, 255);
  --rd-blue-hover: rgb(56, 124, 255);
  --rd-blue-soft: rgba(21, 98, 255, 0.14);
  --rd-good: #3ccf8e;
  --rd-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rd-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bs-body-bg: var(--rd-bg);
  --bs-body-color: var(--rd-ink);
  --bs-body-font-family: var(--rd-sans);
  --bs-border-color: var(--rd-border);
  --bs-link-color: var(--rd-ink);
  --bs-link-hover-color: var(--rd-blue-hover);
}

html, body { background: var(--rd-bg); color: var(--rd-ink); }
body { font-family: var(--rd-sans); font-size: 15px; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--rd-blue); color: #fff; }
a { color: var(--rd-ink); }
a:hover { color: var(--rd-blue-hover); }

/* ---------- top nav: mirrors rackdog.com (values measured from the live site 2026-11-06) ---------- */
.rd-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 clamp(16px, 6vw, 90px); background: rgb(7, 8, 10); }
.rd-brand { display: flex; align-items: center; gap: 9px; color: var(--rd-ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; flex-shrink: 0; }
.rd-brand svg { width: 42px; height: 22px; }
.rd-brand:hover { color: var(--rd-ink); }
.rd-menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rd-links { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 4px; }
.rd-dd-btn, .rd-top { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: rgb(245, 246, 247);
  font: 500 13px/1 var(--rd-sans); letter-spacing: 0.1px; padding: 10px 8px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .2s; }
.rd-top:hover, .rd-dd-btn:hover { color: rgb(245, 246, 247); }
.rd-has-open .rd-dd-btn[aria-expanded="false"], .rd-has-open .rd-top { color: rgba(116, 123, 135, 0.84); }
.rd-has-open .rd-dd-btn[aria-expanded="false"]:hover, .rd-has-open .rd-top:hover { color: rgb(245, 246, 247); }
.rd-chev { width: 12px; height: 12px; transition: transform .3s cubic-bezier(.44, 0, .56, 1); }
.rd-dd-btn[aria-expanded="true"] .rd-chev { transform: rotate(180deg); }
.rd-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.rd-actions a { font-size: 12px; font-weight: 500; text-decoration: none; letter-spacing: 0.1px; white-space: nowrap; }
.rd-mobile-panel { display: none; }

/* mega panel: one shared full-width surface; JS animates its height (15% -> 100% on open, pane-to-pane on switch) */
.rd-mega { position: absolute; top: 64px; left: 0; right: 0; height: 0; overflow: hidden; background: rgb(7, 8, 10);
  transition: height .3s cubic-bezier(.44, 0, .56, 1); }
.rd-has-open .rd-mega { box-shadow: inset 0 -1px 0 rgba(245, 247, 248, 0.08); }
.rd-pane { position: absolute; top: 0; left: 0; right: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .12s ease, visibility 0s linear .12s; }
.rd-pane.rd-on { opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .42s cubic-bezier(.2, .8, .2, 1) .095s, visibility 0s; }
.rd-pane-inner { max-width: 1040px; margin: 0 auto; padding: 40px 0 32px; display: grid; align-items: start; }
.rd-pane-split .rd-pane-inner { grid-template-columns: 336px 328px 384px; padding-top: 32px; }
.rd-pane-split .rd-group { padding-top: 8px; }
.rd-pane-locations .rd-pane-inner { grid-template-columns: 272px 272px 256px 1fr; }
.rd-pane-resources .rd-pane-inner { grid-template-columns: 357px 350px 341px; }
.rd-group { display: flex; flex-direction: column; }
.rd-col { display: flex; flex-direction: column; gap: 2px; }
.rd-label { font-family: "JetBrains Mono", var(--rd-mono); font-size: 10px; font-weight: 500; text-transform: uppercase;
  color: rgba(116, 123, 135, 0.84); line-height: 12px; margin-bottom: 19px; }
.rd-group a { display: block; text-decoration: none; padding: 12px 0; color: rgb(245, 246, 247); width: max-content; max-width: 100%; }
.rd-group a strong { display: block; font-size: 18px; font-weight: 500; line-height: 30px; letter-spacing: 0; transition: color .2s; }
.rd-group a small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.1px; color: rgba(116, 123, 135, 0.84); line-height: 19px; margin-top: 0; }
.rd-group a:hover strong { color: #fff; }
.rd-pane-split .rd-group a { padding: 0 0 25px; }
.rd-pane-split .rd-group a small { margin-top: -1px; }
.rd-pane-locations .rd-group a, .rd-pane-resources .rd-group a, .rd-pane-split .rd-group a:not(:has(small)) { padding: 0 0 24px; }
.rd-lead { padding-top: 12px; }
.rd-lead a { padding-top: 0 !important; }
.rd-card { position: relative; height: 302px; border: 1px solid rgba(245, 247, 248, 0.08); padding: 32px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.rd-card-art { position: absolute; right: -8px; bottom: -12px; width: 240px; height: 196px; pointer-events: none; }
.rd-card-title { position: relative; font-size: 24px; font-weight: 600; line-height: 30px; color: rgb(245, 246, 247); max-width: 270px; }
.rd-card-btn, .rd-post-cap svg { display: inline-flex; align-items: center; gap: 8px; }
.rd-card-btn { position: relative; background: rgb(245, 246, 247); color: rgb(7, 8, 10) !important; font-size: 12px; font-weight: 500;
  letter-spacing: 0.1px; padding: 9px 8px; text-decoration: none; }
.rd-card-btn svg, .rd-post-cap svg { width: 10px; height: 10px; }
.rd-card-btn:hover { background: #fff; }
.rd-post { display: block; text-decoration: none; color: rgb(245, 246, 247); }
.rd-post-img { position: relative; display: flex; align-items: center; gap: 24px; height: 268px; padding: 0 32px; overflow: hidden;
  background: linear-gradient(180deg, #050608 0%, #0b1530 55%, #0d1d45 100%); }
.rd-post-img .rd-card-art { position: static; width: 96px; height: 80px; flex: none; }
.rd-post-img > span { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rd-post-cap { display: grid; grid-template-columns: 6px auto 1fr auto; align-items: center; gap: 8px; padding-top: 12px; font-size: 12px; }
.rd-post-cap i { width: 6px; height: 6px; background: rgba(116, 123, 135, 0.84); }
.rd-post-cap .rd-label { margin: 0; font-size: 12px; }
.rd-post-title { color: rgba(245, 246, 247, 0.8); font-weight: 500; letter-spacing: 0.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-post:hover .rd-post-title { color: #fff; }
@media (prefers-reduced-motion: reduce) { .rd-mega, .rd-pane, .rd-pane.rd-on, .rd-chev { transition: none !important; } }
.rd-burger { display: none; margin-left: auto; width: 40px; height: 40px; background: var(--rd-surface-2); border: 1px solid var(--rd-border); border-radius: 2px; cursor: pointer; padding: 0; position: relative; }
.rd-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--rd-ink); transition: transform .2s, top .2s; }
.rd-burger span:first-child { top: 15px; } .rd-burger span:last-child { top: 23px; }
.rd-open .rd-burger span:first-child { top: 19px; transform: rotate(45deg); }
.rd-open .rd-burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- buttons (rackdog.com: small, near-square) ---------- */
.rd-btn, .btn { border-radius: 2px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; padding: 8px 12px; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.rd-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; color: var(--rd-ink); }
.rd-btn-dark { background: var(--rd-surface-2); border-color: var(--rd-border); }
.rd-btn-dark:hover { background: rgba(239, 244, 255, 0.09); color: var(--rd-ink); }
.rd-btn-light { background: var(--rd-ink); color: #000 !important; }
.rd-btn-light:hover { background: #fff; }
.rd-btn-blue, .btn-primary { background: var(--rd-blue) !important; border-color: var(--rd-blue) !important; color: #fff !important; }
.rd-btn-blue:hover, .btn-primary:hover, .btn-primary:focus { background: var(--rd-blue-hover) !important; border-color: var(--rd-blue-hover) !important; }
.btn-outline-secondary { color: var(--rd-ink); background: var(--rd-surface-2); border-color: var(--rd-border); }
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary.show { color: var(--rd-ink); background: rgba(239, 244, 255, 0.1); border-color: var(--rd-border-strong); }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus { box-shadow: 0 0 0 3px var(--rd-blue-soft); border-color: var(--rd-blue); outline: none; }

/* ---------- page ---------- */
.rd-page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 96px; flex: 1; }
.rd-hero { padding: clamp(48px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.rd-eyebrow { font-family: var(--rd-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rd-muted); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.rd-live { width: 7px; height: 7px; border-radius: 50%; background: var(--rd-good); box-shadow: 0 0 0 4px rgba(60, 207, 142, 0.15); animation: rd-pulse 2.4s ease-in-out infinite; }
@keyframes rd-pulse { 50% { box-shadow: 0 0 0 7px rgba(60, 207, 142, 0.04); } }
@media (prefers-reduced-motion: reduce) { .rd-live { animation: none; } }
.rd-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin: 0; }
.rd-hero h1 span { display: block; color: var(--rd-faint); }
.rd-hero p { color: var(--rd-muted); font-size: 16px; line-height: 1.55; max-width: 560px; margin: 20px 0 0; }
.rd-switch { min-width: 220px; }
.rd-switch label { display: block; font-family: var(--rd-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rd-muted); margin-bottom: 8px; }

/* ---------- panels (rackdog.com cards: outlined, not shaded) ---------- */
main > .row { margin: 0 0 20px; }
.card { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 4px; box-shadow: none !important; color: var(--rd-ink); padding: 0; }
.card-body { padding: clamp(20px, 3vw, 32px) !important; }
.card-title, main h1.fs-4 { font-size: 13px !important; font-family: var(--rd-mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rd-muted); margin-bottom: 22px !important; display: flex; align-items: center; gap: 10px; }
.card-title::before, main h1.fs-4::before { content: ""; width: 6px; height: 6px; background: var(--rd-blue); }
.text-muted, label.text-muted { color: var(--rd-muted) !important; font-size: 12px; font-family: var(--rd-mono); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- inputs ---------- */
.form-control, .form-select, .input-group-text { background-color: rgba(0, 0, 0, 0.35); border: 1px solid var(--rd-border); color: var(--rd-ink); border-radius: 2px; font-size: 14px; padding: 9px 12px; }
.form-control[readonly] { font-family: var(--rd-mono); font-size: 13.5px; }
.form-control::placeholder { color: rgba(245, 247, 248, 0.35); }
.form-control:focus, .form-select:focus { background-color: rgba(0, 0, 0, 0.5); color: var(--rd-ink); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f5f7f8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: #111317; color: var(--rd-ink); }
.input-group-text { background: var(--rd-surface-2); color: var(--rd-muted); font-family: var(--rd-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.input-group > :not(:first-child), .input-group > :not(:last-child) { border-radius: 2px; }
.input-group > .btn { display: inline-flex; align-items: center; }
.form-check-input { background-color: rgba(0, 0, 0, 0.35); border-color: var(--rd-border-strong); border-radius: 2px !important; }
.form-check-input:checked { background-color: var(--rd-blue); border-color: var(--rd-blue); }
.form-check-label { color: var(--rd-muted); font-size: 14px; }
.form-check-label a { color: var(--rd-ink); text-decoration-color: var(--rd-border-strong); }
.dropdown-menu { background: #111317; border: 1px solid var(--rd-border-strong); border-radius: 3px; padding: 4px; }
.dropdown-item { color: var(--rd-ink); font-size: 14px; border-radius: 2px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--rd-blue-soft); color: var(--rd-ink); }
.alert-danger { background: rgba(255, 77, 77, 0.08); border: 1px solid rgba(255, 77, 77, 0.35); color: #ffb3b3; border-radius: 2px; }
#executeButton { padding: 10px 18px; font-size: 14px; }

/* ---------- results terminal ---------- */
#outputCard { background: #050607 !important; border: 1px solid var(--rd-border) !important; border-radius: 3px; padding: 0 !important; margin-top: 24px !important; overflow: hidden; }
#outputCard::before { content: "OUTPUT"; display: block; padding: 10px 16px; border-bottom: 1px solid var(--rd-border); font-family: var(--rd-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--rd-muted); background: var(--rd-surface); }
#outputContent { font-family: var(--rd-mono); font-size: 13px; line-height: 1.65; color: #d9e2ff; padding: 16px !important; margin: 0; overflow-x: auto; white-space: pre; }

/* ---------- footer ---------- */
/* Measured from rackdog.com, see theme/README.md. Breakpoints 1200 / 810 are Framer's. */
.rd-footer { border-top: 1px solid var(--rd-border); background: rgb(7, 8, 10); padding: 112px 90px 42px; margin-top: auto; }
.rd-footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; }
.rd-footer-logo { display: block; width: 235px; height: 47px; }
.rd-footer-logo svg { display: block; width: 235px; height: 47px; }
.rd-footer-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 36px;
  grid-template-areas: "nav about" "dc sol" "legal ."; align-items: start; }
.rd-footer-nav { grid-area: nav; } .rd-footer-about { grid-area: about; } .rd-footer-dc { grid-area: dc; }
.rd-footer-sol { grid-area: sol; } .rd-footer-legal { grid-area: legal; }
.rd-footer h2 { font: 500 10px/14px "JetBrains Mono", var(--rd-mono); text-transform: uppercase; color: rgba(116, 123, 135, 0.84); margin: 0 0 15px; padding-left: 2px; letter-spacing: normal; }
.rd-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.rd-footer li a { display: block; width: fit-content; padding: 2px; font: 500 12px/15px var(--rd-sans); letter-spacing: 0.1px; color: rgb(245, 246, 247); text-decoration: none; opacity: 1; }
.rd-footer li a:hover { color: rgba(245, 247, 248, 0.8); }
.rd-footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 43px; padding: 0 20px; }
.rd-footer-bottom small { font: 500 12px/15px var(--rd-sans); color: rgba(116, 123, 135, 0.84); margin: 0; }
.rd-footer-bottom a { font: 500 12px/15px var(--rd-sans); letter-spacing: 0.1px; color: rgba(116, 123, 135, 0.84); text-decoration: none; }
.rd-footer-bottom a:hover { color: rgba(245, 247, 248, 0.8); }
@media (max-width: 1199px) {
  .rd-footer { padding-left: 40px; padding-right: 40px; }
  .rd-footer-inner { display: block; }
  .rd-footer-grid { margin-top: 40px; grid-template-columns: 1fr 1fr 1fr; row-gap: 2px; grid-template-areas: "nav about dc" "sol legal ."; }
  .rd-footer-bottom { margin-top: 82px; }
}
@media (max-width: 809px) {
  .rd-footer { padding-left: 20px; padding-right: 20px; }
  .rd-footer-grid { margin-top: 60px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; row-gap: 42px; grid-template-areas: "nav about" "dc legal" "sol ."; }
  .rd-footer-sol li a { width: max-content; max-width: max(200px, 100%); }
  .rd-footer-bottom { margin-top: 101px; padding: 0; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .rd-mega { display: none; }
  .rd-burger { display: block; }
  .rd-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px clamp(16px, 6vw, 90px) 20px; background: rgb(7, 8, 10); border-bottom: 1px solid var(--rd-border);
    max-height: calc(100vh - 64px); overflow-y: auto; }
  .rd-open .rd-menu { display: flex; }
  .rd-links { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .rd-links > li { border-bottom: 1px solid var(--rd-border); }
  .rd-dd-btn, .rd-top { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 15px; }
  .rd-dd-btn[aria-expanded="true"] + .rd-mobile-panel { display: block; padding: 0 0 12px; }
  .rd-mobile-panel .rd-group { margin-bottom: 18px; }
  .rd-mobile-panel .rd-label { margin-bottom: 4px; }
  .rd-mobile-panel .rd-group a { padding: 6px 0; }
  .rd-mobile-panel .rd-group a strong { font-size: 16px; line-height: 24px; }
  .rd-actions a { flex: 1; justify-content: center; padding: 11px 12px; }
}
@media (max-width: 760px) {
  .rd-hero { grid-template-columns: 1fr; }
  .rd-switch { min-width: 0; }
}
@media (max-width: 520px) {
  .d-flex.align-items-center:has(#executeButton) { flex-wrap: wrap; gap: 14px; }
  #executeButton { width: 100%; margin-left: 0 !important; }
}
