/* ============================================================
   Panderose software pages and the shared top bar (v5 prototype, 24 Oct 2026).
   - The top bar on every page follows the Panderose Cloud console: 52 px, a 2 px accent line, the mark, "Panderose",
     and the section name after a thin divider.
   - Software pages (body.sw) use the panderose.cloud landing: IBM Plex Sans, the console's tokens, the brand band
     with a product window, and the command bar. Below the header they combine both designs: the site's
     problem and solution rows and bracketed claims, with the cloud page's essentials panel and tiles.
   Reference: panderose/docs gated/staff/design/brief.md
   ============================================================ */
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/IBMPlexSans-Variable.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

/* ── The shared top bar (all pages) ─────────────────────────── */
.nav.nav--pbar {
  background: rgba(19, 21, 24, 0.94);
  border-bottom: 1px solid #2a2d33;
  box-shadow: inset 0 2px 0 #0066b3;
}
.nav--pbar .nav__inner { height: 56px; }
.nav--pbar .brand__section { font-weight: var(--weight-regular, 400); font-size: 15px; color: var(--text-body); padding-left: 11px; border-left: 1px solid #2a2d33; }
.nav--pbar .nav__links a[aria-current="page"] { color: var(--text-strong); box-shadow: inset 0 -2px 0 #0066b3; padding-bottom: 4px; }
.nav--pbar .nav__links .nav__signin { margin-left: 4px; background: #0066b3; color: #fff; padding: 6px 14px; border-radius: 4px; }
.nav--pbar .nav__links .nav__signin:hover { background: #0077cc; color: #fff; }
@media (max-width: 860px) {
  .nav--pbar .nav__links .nav__signin { margin: 8px 0 0; text-align: center; }
  .nav--pbar .nav__links a[aria-current="page"] { box-shadow: inset 3px 0 0 #0066b3; }
}

/* ── Software pages: tokens ─────────────────────────────────── */
body.sw {
  --bg: #0e0f11; --panel: #17191c; --line: #2a2d33; --text: #e8e8e6; --muted: #a9aeb6;
  --accent: #0066b3; --link: #8cc0f0; --hover: #22252b;
  --ok: #6fcf97; --dev: #c3b2ff; --coming: #f2b45a;
  --brand-ink: #f3f6fb; --brand-1: #08121f; --brand-2: #0b2c52;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "IBM Plex Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  color-scheme: dark;
}
html[data-sw-theme="light"] body.sw {
  --bg: #f5f6f8; --panel: #fff; --line: #e1e5eb; --text: #14171b; --muted: #4f5761;
  --link: #005ea6; --hover: #eef2f7; --ok: #1e7a46; --dev: #5b3fb0; --coming: #8a4f00;
  color-scheme: light;
}
body.sw .page { background: var(--bg); }
.sw main a { color: var(--link); }
.sw main a:hover { text-decoration: underline; }
.sw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* ── Header: brand band with a product window ──────────────── */
.sw-band { position: relative; color: var(--brand-ink); background: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%); overflow: hidden; }
.sw-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(245, 243, 238, 0.045) 1px, transparent 1px), linear-gradient(0deg, rgba(245, 243, 238, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
}
.sw-band__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; pointer-events: none; }
.sw-band--art::before { display: none; }
.sw-band .sw-wrap { position: relative; padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(44px, 7vw, 84px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.sw-eyebrow { margin: 0 0 14px; font-size: 15px; color: #8cc0f0; }
.sw-band h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; font-weight: 400; letter-spacing: -0.025em; margin: 0; color: var(--brand-ink); }
.sw-band p.sw-lede { font-size: clamp(16px, 1.5vw, 19px); color: rgba(243, 246, 251, 0.88); margin: 18px 0 0; max-width: 54ch; }
.sw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.sw-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px; font-size: 15px; border: 1px solid rgba(243, 246, 251, 0.45); color: var(--brand-ink) !important; background: transparent; text-decoration: none !important; }
.sw-btn:hover { background: rgba(243, 246, 251, 0.10); }
.sw-btn--primary { background: #fff; color: #0b2c52 !important; border-color: #fff; }
.sw-btn--primary:hover { background: #e8eef6; }
.sw-window { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid rgba(243, 246, 251, 0.22); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); background: #0f0f12; }
.sw-window__bar { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; font-size: 12.5px; color: #a9aeb6; background: rgba(20, 20, 23, 0.96); border-bottom: 1px solid rgba(245, 243, 238, 0.12); }
.sw-window__bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0066b3; }
.sw-window img { display: block; width: 100%; height: auto; }
.sw-window__label { flex: 1; transition: opacity 0.3s; }
.sw-slides { position: relative; aspect-ratio: 1440 / 900; }
.sw-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transition: opacity 0.8s ease; }
.sw-slides img.is-on { opacity: 1; }
.sw-dots { display: flex; gap: 6px; }
.sw-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(243, 246, 251, 0.3); cursor: pointer; }
.sw-dots button[aria-current="true"] { background: #f3f6fb; }
.sw-dots button:focus-visible { outline: 2px solid #8cc0f0; outline-offset: 2px; }
@media (max-width: 900px) { .sw-band .sw-wrap { grid-template-columns: 1fr; } }

/* ── Command bar ───────────────────────────────────────────── */
.sw-cmd { background: var(--panel); border-bottom: 1px solid var(--line); }
.sw-cmd .sw-wrap { display: flex; gap: 4px; align-items: center; height: 44px; overflow-x: auto; }
.sw-cmd a, .sw-cmd button { display: inline-flex; gap: 7px; align-items: center; color: var(--text); padding: 6px 10px; border-radius: 4px; font: inherit; font-size: 14px; white-space: nowrap; background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.sw-cmd a:hover, .sw-cmd button:hover { background: var(--hover); }
.sw-cmd svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
html[data-sw-theme="dark"] .sw-cmd svg, body.sw .sw-cmd svg { color: #5b9fe0; }
html[data-sw-theme="light"] .sw-cmd svg { color: #0066b3; }
.sw-cmd .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; flex: none; }
.sw-cmd .crumbs { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; padding-left: 12px; }

/* ── Sections ──────────────────────────────────────────────── */
.sw-section { padding: clamp(48px, 7vw, 88px) 0 0; }
.sw-section:last-of-type { padding-bottom: clamp(48px, 7vw, 88px); }
.sw-h2 { margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.sw-sub { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }
.sw-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }

/* Essentials (cloud) */
.sw-ess { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
.sw-ess div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sw-ess dt { color: var(--muted); }
.sw-ess dd { margin: 0; }
@media (max-width: 760px) { .sw-ess { grid-template-columns: 1fr; } .sw-ess div { grid-template-columns: 130px 1fr; } }

/* Tiles (cloud) */
.sw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sw-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text) !important; text-decoration: none !important; }
a.sw-tile:hover { border-color: var(--accent); }
.sw-tile .top { display: flex; gap: 12px; align-items: center; }
.sw-tile .ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--hover); color: #5b9fe0; flex: none; }
.sw-tile .ic svg { width: 22px; height: 22px; }
.sw-tile b { font-weight: 500; font-size: 16px; display: block; }
.sw-tile small { color: var(--muted); font-size: 13px; }
.sw-tile p { margin: 0; color: var(--muted); font-size: 14px; }
.sw-tile .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.sw-tile .foot .note { color: var(--muted); }
.sw-st { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; }
.sw-st svg { width: 14px; height: 14px; }
.sw-st.ok { color: var(--ok); } .sw-st.dev { color: var(--dev); } .sw-st.coming { color: var(--coming); }

/* Priorities strip (site content, cloud panels) */
.sw-prio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sw-prio .sw-panel h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.sw-prio .sw-panel p { margin: 0; color: var(--muted); font-size: 14px; }
.sw-prio .sw-panel { display: flex; flex-direction: column; }
.sw-prio .sw-panel p { margin-bottom: 16px; }
.sw-art { margin: auto 0 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }  /* pinned to the panel's bottom, so all three line up */
.sw-art img { display: block; width: 100%; height: auto; }
/* Home's priorities have no pictures (owner, 24 Oct 2026). The three columns share their rows (title, text, status),
   so the status dividers line up whatever the length of each text. */
@media (min-width: 861px) {
  .priorities__list { grid-template-rows: auto auto auto; }
  .priority { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  .priority .priority__status { margin-top: 0; align-self: start; }
}
@media (max-width: 860px) { .sw-prio { grid-template-columns: 1fr; } }

/* Problem and solution rows (site pattern, cloud tokens) */
.sw-ps { border-top: 1px solid var(--line); }
.sw-ps__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.sw-ps__label { color: var(--muted); font-size: 14px; padding-top: 6px; }
.sw-ps__row--accent .sw-ps__label { color: #5b9fe0; box-shadow: inset 0 2px 0 var(--accent); padding-top: 10px; }
html[data-sw-theme="light"] .sw-ps__row--accent .sw-ps__label { color: #0066b3; }
.sw-ps__title { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -0.01em; }
.sw-ps__text { margin: 0 0 10px; color: var(--muted); max-width: 66ch; font-size: 16px; }
@media (max-width: 760px) { .sw-ps__row { grid-template-columns: 1fr; gap: 10px; } }

/* Claims with bracketed screenshots (site pattern) */
.sw-claim { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line); }
.sw-claim:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.sw-claim:nth-child(even) .sw-claim__media { order: -1; }
.sw-claim h3 { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -0.01em; }
.sw-claim p { margin: 0; color: var(--muted); font-size: 16px; }
.sw-claim__media { position: relative; padding: 12px; }
.sw-claim__media::before, .sw-claim__media::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: #5b9fe0; border-style: solid; }
.sw-claim__media::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.sw-claim__media::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.sw-claim__media img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 860px) { .sw-claim, .sw-claim:nth-child(even) { grid-template-columns: 1fr; } .sw-claim:nth-child(even) .sw-claim__media { order: 0; } }

/* Link cards (site "two ways" pattern, cloud panels) */
.sw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sw-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; color: var(--text) !important; text-decoration: none !important; }
.sw-card:hover { border-color: var(--accent); }
.sw-card b { font-weight: 500; font-size: 18px; }
.sw-card span { color: var(--muted); font-size: 14px; }
.sw-card em { font-style: normal; color: var(--link); font-size: 14px; margin-top: 6px; }
@media (max-width: 700px) { .sw-cards { grid-template-columns: 1fr; } }

/* Closing band */
.sw-cta { margin-top: clamp(48px, 7vw, 88px); background: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%); color: var(--brand-ink); }
.sw-cta .sw-wrap { padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sw-cta h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; color: var(--brand-ink); }
.sw-cta p { margin: 8px 0 0; color: rgba(243, 246, 251, 0.85); }

/* ── Type rule for every page (owner, 24 Oct 2026): one weight, no capitals-only text, no monospace ──
   Every element inherits its page's own family (Helvetica Neue on company pages, IBM Plex Sans on software pages)
   at weight 400. The "Panderose" wordmark keeps the site's original weight. */
body *:not(svg):not(svg *) {
  font-weight: 400 !important;
  text-transform: none !important;
  font-family: inherit !important;
  font-synthesis: none;
}
.news-item__date, .field__label, .hero__credit, .dateline, .pan-label { letter-spacing: normal !important; }
.brand > span:not(.brand__section), .hero__brand > span { font-weight: var(--weight-medium, 500) !important; }
/* The former monospace labels read at 13 px in the page's own family. */
.news-item__date, .field__label { font-size: 13px !important; }

/* The light or dark switch (owner, 24 Oct 2026): icon only, faint until pointed at, out of the way in the footer. */
.sw-legal { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-theme { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 6px;
  border: 0; border-radius: 6px; background: transparent; color: inherit; opacity: .55; cursor: pointer; }
.sw-theme svg { width: 14px; height: 14px; }
.sw-theme:hover, .sw-theme:focus-visible { opacity: 1; }
.sw-theme:focus-visible { outline: 2px solid #5b9fe0; outline-offset: 2px; }
