@font-face { font-family: "PBS Sans"; font-weight: 500; src: url("/brand/fonts/pbs-sans-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "PBS Sans"; font-weight: 700; src: url("/brand/fonts/pbs-sans-700.woff2") format("woff2"); font-display: swap; }

:root {
  --blue: #2638C4;
  --deep: #001087;
  --navy: #0A145A;
  --medium: #0F1E8C;
  --cherry: #DC108A;
  --ink: #000000;
  --muted: #3b3f5c;
  --line: #d9dcef;
  --tint: #f2f4fd;
  --paper: #ffffff;
  --font: "PBS Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body { margin: 0; font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 39px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header: pbssocal.org pattern, 80px PBS Blue bar, nav buttons open dark menu panels */
.site-header { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; height: 80px; gap: 8px; }
.brand { display: flex; align-items: center; flex: none; margin-right: 18px; }
.brand img { height: 30px; display: block; margin-left: calc(30px * -109 / 527.78); }
.brand .product { font-size: 21px; font-weight: 700; color: #fff; text-decoration: none; padding-left: 14px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.45); line-height: 28px; }
.nav { display: flex; align-items: stretch; height: 80px; }
.nav > button, .nav > a { font: 500 19px/1 var(--font); color: #fff; background: transparent; border: 0; padding: 0 12px; height: 80px; cursor: pointer; text-decoration: none; display: flex; align-items: center; }
.nav > button[aria-expanded="true"], .nav > button:hover, .nav > a:hover { background: var(--deep); color: #fff; }
.nav > a[aria-current="page"], .nav > button.current { box-shadow: inset 0 -4px 0 #fff; }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.bar .right .btn { padding: 13px 22px 15px; font-size: 17px; white-space: nowrap; }
.viewer { font-size: 14px; color: #fff; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.viewer svg { flex: none; }
.btn { display: inline-block; font: 500 18px/1 var(--font); letter-spacing: .054px; padding: 15px 32px 17px; border-radius: 3px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-cherry { background: var(--cherry); color: #fff; }
.btn-cherry:hover { background: #b90d74; color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue); }
.mobile-nav { display: none; background: var(--deep); padding: 8px 16px 20px; }
.mobile-nav h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #c9cfff; margin: 16px 0 6px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-size: 19px; padding: 7px 0; }
.mobile-nav .who { color: #dfe3ff; font-size: 15px; margin-top: 16px; }
.menu-toggle { display: none; background: transparent; border: 0; color: #fff; padding: 8px; cursor: pointer; }

.panel { display: none; position: absolute; left: 0; right: 0; top: 80px; background: var(--deep); color: #fff; padding: 36px 0 44px; box-shadow: 0 18px 30px rgba(0, 16, 135, .25); }
.panel.open { display: block; }
.panel .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.panel h3 { font-size: 21px; font-weight: 700; margin: 0 0 18px; color: #fff; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { margin: 0 0 9px; }
.panel a { color: #fff; text-decoration: none; font-size: 18px; }
.panel a:hover { text-decoration: underline; }
.panel p { margin: 0 0 12px; font-size: 16px; color: #dfe3ff; }
.panel .feature { border-left: 1px solid rgba(255,255,255,.25); padding-left: 32px; }
.panel .feature a.more { font-size: 16px; font-weight: 700; text-decoration: underline; }

/* Page furniture */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(221,16,138,.55), rgba(221,16,138,0) 68%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-block; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 20px; font-weight: 700; max-width: 16ch; }
.hero p.lede { font-size: 21px; line-height: 1.5; max-width: 60ch; margin: 0 0 32px; color: #e6e9ff; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-head { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 48px; padding-bottom: 40px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.1; margin: 0 0 12px; }
.page-head p { font-size: 20px; color: var(--muted); max-width: 64ch; margin: 0; }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 15px; }
.toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; color: var(--ink); text-decoration: none; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--blue); border-left-color: var(--blue); }

.prose { max-width: 760px; }
.prose h2 { font-size: 36px; line-height: 1.15; margin: 56px 0 16px; font-weight: 700; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; margin: 32px 0 10px; font-weight: 700; scroll-margin-top: 100px; }
.prose p, .prose li { color: #14162b; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--tint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; word-break: break-word; }
pre { background: var(--navy); color: #eef0ff; padding: 18px 20px; border-radius: 6px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.callout { border-left: 4px solid var(--blue); background: var(--tint); padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 24px 0; }
.callout.warn { border-left-color: var(--cherry); background: #fdf0f7; }
.callout strong:first-child { display: block; margin-bottom: 4px; }

.prompt { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cherry); border-radius: 6px; padding: 16px 20px; margin: 16px 0 24px; font-size: 17px; }
.prompt .label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cherry); font-weight: 700; margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--blue); color: #fff; font-weight: 700; }
tbody tr:nth-child(even) td { background: #fafbff; }
.table-scroll { overflow-x: auto; }
td.yes { color: #0b6b3a; font-weight: 700; }
td.no { color: #8a8fb0; }

.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.section h2.title { font-size: 36px; font-weight: 700; margin: 0 0 8px; }
.section p.sub { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 64ch; }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.title-row p.sub { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15, 30, 140, .12); color: var(--ink); }
.card .band { height: 8px; background: var(--blue); }
.card.cherry .band { background: var(--cherry); }
.card.navy .band { background: var(--navy); }
.card .body { padding: 20px 22px 24px; }
.card h3 { font-size: 21px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.flow { display: flex; align-items: stretch; gap: 0; margin: 28px 0; flex-wrap: wrap; }
.flow .stage { flex: 1 1 160px; background: #fff; border: 2px solid var(--blue); border-radius: 6px; padding: 16px 16px 18px; min-width: 150px; }
.flow .stage.prod { border-color: var(--cherry); }
.flow .stage h4 { margin: 0 0 4px; font-size: 19px; }
.flow .stage .addr { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }
.flow .stage p { margin: 8px 0 0; font-size: 14px; color: #14162b; }
.flow .arrow { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 26px; font-weight: 700; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding: 0 0 36px 72px; border-left: 2px solid var(--line); margin-left: 22px; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: -23px; top: -4px; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.steps > li h3 { margin-top: 2px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 24px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.stat b { display: block; font-size: 30px; color: var(--blue); line-height: 1.1; }
.stat span { font-size: 15px; color: var(--muted); }

.next { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; flex-wrap: wrap; }
.next a { text-decoration: none; font-weight: 700; font-size: 19px; }
.next small { display: block; font-weight: 500; color: var(--muted); font-size: 14px; }

/* Footer: pbssocal.org pattern, PBS Blue, four ruled columns, legal line */
.site-footer { background: var(--blue); color: #fff; padding: 56px 0 40px; margin-top: 0; }
.site-footer .top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.3); margin-bottom: 36px; }
.site-footer .top img { height: 38px; display: block; margin-left: calc(38px * -109 / 527.78); }
.site-footer .top p { margin: 0; font-size: 18px; max-width: 46ch; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.site-footer .col { padding: 0 24px; border-left: 1px solid rgba(255,255,255,.3); }
.site-footer .col:first-child { padding-left: 0; border-left: 0; }
.site-footer h4 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 48px; font-size: 13px; color: #e6e9ff; }
.site-footer .legal a { text-decoration: underline; font-size: 13px; }

/* Part of Plexara band */
.section.plexara { background: var(--blue); color: #fff; }
.section.plexara h2.title { color: #fff; }
.section.plexara p.sub { color: #e6e9ff; }
.section.plexara p { color: #fff; font-size: 18px; max-width: 60ch; }
.section.plexara a { color: #fff; }
.section.plexara code { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li { background: var(--deep); border-radius: 4px; padding: 16px 20px; border-left: 4px solid #fff; }
.pillars b { display: block; font-size: 20px; margin-bottom: 4px; }
.pillars span { font-size: 16px; color: #dfe3ff; }

@media (max-width: 1220px) {
  .viewer { display: none; }
}
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 0; border-left: 0; }
  .toc li a { border-left: 0; padding: 4px 14px 4px 0; }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .site-footer .col:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; margin-left: auto; }
  .bar .right { display: none; }
  .nav { display: none; }
  .panel, .panel.open { display: none; }
  .mobile-nav.open { display: block; }
  .brand .product { font-size: 18px; }
  .flow { flex-direction: column; }
  .flow .arrow { transform: rotate(90deg); height: 36px; flex-basis: 36px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .site-footer .col { padding: 0; border-left: 0; }
  .steps > li { padding-left: 48px; }
}
