/* Ghost Labs Updates (PW-19): releases.ghost-labs.com, styled to match ghost-labs.com (its brand palette and system
   font, its dark nav, hero and footer). No external fonts or images. */
:root {
  --orange: #E97B2A; --orange-dark: #C9651A; --orange-text: #A85312;
  --blue: #3B7FB0; --blue-dark: #2A5F89;
  --ink: #0E1116; --ink-2: #1A1F27; --paper: #FFFFFF; --soft: #F6F7F9; --line: #E5E7EB; --text: #1F2937; --muted: #6B7280;
  --green: #15803D; --violet: #6D28D9;
  --radius: 14px; --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04); --shadow-md: 0 8px 24px rgba(15,17,22,.08);
  --container: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--soft); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--orange-text); }
:where(a):focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.nav :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(14,17,22,.92); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 80px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: inline-flex; padding: 9px 16px; background: var(--orange); color: #fff !important; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--orange-dark); }

.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(233,123,42,.22), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(59,127,176,.25), transparent 55%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; padding: 64px 0 72px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--orange), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: rgba(255,255,255,.8); max-width: 640px; margin: 0; }
.crumbs { font-size: 14px; margin-bottom: 18px; color: rgba(255,255,255,.55); }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }

.page { padding-top: 8px; padding-bottom: 64px; }
h2 { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; margin: 44px 0 16px; }
.muted { color: var(--muted); font-weight: 400; font-size: 17px; }
.empty { color: var(--muted); font-size: 17px; margin: 40px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.product { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: inherit; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.product:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(233,123,42,.45); }
.product h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); font-weight: 800; }
.product p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--ink); font-weight: 700; }

.current { display: flex; flex-wrap: wrap; gap: 14px; margin-top: -40px; }
.cur { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; color: inherit; min-width: 170px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.cur:hover { color: inherit; border-color: rgba(233,123,42,.45); }
.cur span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; }
.cur b { font-size: 26px; color: var(--ink); font-weight: 800; }
.cur time { font-size: 13px; color: var(--muted); }

.release { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 16px; box-shadow: var(--shadow-sm); }
.page > .release:first-child { margin-top: -40px; box-shadow: var(--shadow-md); }
.rhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pname { font-weight: 800; color: var(--ink); }
.ver { font-size: 21px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ver:hover, .pname:hover { color: var(--orange-text); }
.plat { color: var(--muted); }
.badge { background: rgba(233,123,42,.12); color: var(--orange-text); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; }
.rhead time { margin-left: auto; color: var(--muted); font-size: 14px; }
.rtitle { margin: 6px 0 0; font-size: 17px; color: var(--ink); }
.kind h4 { margin: 16px 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.kind ul { margin: 0; padding-left: 20px; }
.kind li { margin: 4px 0; }
.kind-new h4, .kind-improved h4 { color: var(--blue-dark); }
.kind-fixed h4 { color: var(--green); }
.kind-security h4 { color: var(--violet); }
.kind-breaking h4, .kind-known-issue h4 { color: var(--orange-text); }
.feeds { color: var(--muted); font-size: 14px; }

.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0 28px; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 24px; }
.footer-brand { font-weight: 800; letter-spacing: .5px; font-size: 16px; }
.footer-brand .o { color: var(--orange); } .footer-brand .b { color: var(--blue); }
.tagline { font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.55); }

@media (max-width: 700px) {
  .nav-inner { height: 72px; }
  .brand img { height: 56px; }
  .nav-links { gap: 14px; }
  .nav-links li:nth-child(2) { display: none; }
  .hero { padding: 44px 0 64px; }
  .rhead time { margin-left: 0; width: 100%; }
  .release { padding: 18px; }
  .cur { min-width: 0; flex: 1 1 140px; }
}

/* Navigation (PW-19): the Products menu, platform tabs, version history, previous and next. */
.menu details { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.menu summary:hover, .menu details[open] summary { color: #fff; }
.menu summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.menu-list { position: absolute; right: 0; top: calc(100% + 14px); min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(15,17,22,.18); list-style: none; margin: 0; padding: 8px; z-index: 60; }
.menu-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text) !important; font-weight: 500; }
.menu-list a:hover { background: var(--soft); color: var(--ink) !important; }
.menu-list a[aria-current] { color: var(--orange-text) !important; font-weight: 700; }
.menu-list li:first-child a { color: var(--muted) !important; font-size: 14px; }
.menu-list li:first-child { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.jump { font-size: 15px; font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 18px; }
.tabs a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text); font-weight: 600; font-size: 14px; }
.tabs a:hover { border-color: var(--ink); color: var(--ink); }
.tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cur.on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,123,42,.18), var(--shadow-md); }
.tablewrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.history { width: 100%; border-collapse: collapse; font-size: 15px; }
table.history th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
table.history td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.history tr:last-child td { border-bottom: 0; }
.ver-sm { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.muted-sm { color: var(--muted); font-size: 14px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
.pager a { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; min-width: 150px; box-shadow: var(--shadow-sm); }
.pager a:hover { border-color: rgba(233,123,42,.45); }
.pager a span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pager a b { font-size: 20px; color: var(--ink); }
.pager .prev span::before { content: "\2190  "; }
.pager .next { text-align: right; }
.pager .next span::after { content: "  \2192"; }
.latest-note { align-self: center; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .nav-links li:nth-child(2) { display: list-item; }
  .menu-list { right: -60px; }
  table.history { font-size: 14px; }
  table.history th, table.history td { padding: 9px 10px; }
}
