/* Palowise release notes — colours and type taken from palowise.ai */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --purple: #6f40e2;
  --purple-dark: #5a2fcc;
  --purple-soft: #f1ecfd;
  --blue: #64d0ff;
  --blue-soft: #e8f8ff;
  --green: #66ff71;
  --green-ink: #0f7a1a;
  --green-soft: #e6fee2;
  --orange: #ff4200;
  --orange-soft: #fff0ea;
  --amber: #fbbc34;
  --amber-soft: #fff7e5;

  --ink: #231f20;
  --muted: #6b6670;
  --line: #e7e4ee;
  --bg: #ffffff;
  --bg-alt: #f8f7fb;
  --card: #ffffff;

  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(35, 31, 32, .04), 0 8px 24px rgba(35, 31, 32, .06);
  --font: "Manrope", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 136px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-alt);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); }
img { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner, .hero-inner, .layout, .footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.topbar-inner { height: 68px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.brand-label { font-weight: 600; font-size: 15px; color: var(--muted); }

/* Application tabs */
.tabs { border-top: 1px solid var(--line); }
.tabs-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px 0 10px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 12px 14px; font-size: 15px; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--purple); }
.tab.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--purple);
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--purple-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none;
}
.hero::before { width: 320px; height: 320px; right: -100px; top: -180px; background: var(--blue); }
.hero::after { width: 240px; height: 240px; right: 200px; bottom: -200px; background: var(--green); opacity: .3; }
.hero-inner { position: relative; padding-top: 28px; padding-bottom: 26px; }
.eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple);
}
.hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.pill-primary { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Layout */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 80px; }
.sidebar-inner { position: sticky; top: 140px; }

.search {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(111, 64, 226, .12); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; width: 100%; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.filter {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: all .15s;
}
.filter:hover { border-color: var(--purple); color: var(--purple); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.nav-title { margin: 28px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.nav a {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent; text-decoration: none; color: var(--ink); font-size: 14px;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--purple); }
.nav a.is-current { border-left-color: var(--purple); color: var(--purple); font-weight: 700; }
.nav-version { font-weight: 600; }
.nav-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.nav li.is-hidden { display: none; }

/* Release cards */
.releases { display: flex; flex-direction: column; gap: 24px; }
.release {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 36px;
}
.release.is-hidden { display: none; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.version {
  font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.version:hover { color: var(--purple); }
.release-title { font-size: 18px; font-weight: 600; color: var(--muted); }
.release-head time {
  margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted);
}
.release:first-of-type .version::after {
  content: "Latest"; margin-left: 12px; vertical-align: middle; position: relative; top: -3px;
  padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--green); color: #09330b;
}
.release.unreleased .version::after { content: none; }
.summary { margin-top: 18px; font-size: 17px; }
.summary p { margin: 0; }

.category { margin-top: 24px; }
.category h3 { margin: 0 0 8px; }
.category ul { margin: 0; padding-left: 20px; }
.category li { margin: 6px 0; padding-left: 4px; }
.category li::marker { color: var(--purple); }
.category p { margin: 8px 0; }
.category code, .summary code {
  font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line);
}
.category pre { background: #1d1a26; color: #f1ecfd; padding: 16px; border-radius: 12px; overflow-x: auto; }
.category pre code { background: none; border: 0; padding: 0; color: inherit; }
.category table { border-collapse: collapse; width: 100%; font-size: 15px; }
.category th, .category td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
mark { background: rgba(102, 255, 113, .45); color: inherit; border-radius: 3px; padding: 0 1px; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge-added { background: var(--green-soft); color: var(--green-ink); }
.badge-changed { background: var(--purple-soft); color: var(--purple-dark); }
.badge-fixed { background: var(--blue-soft); color: #0a6b96; }
.badge-security { background: var(--orange-soft); color: #c23400; }
.badge-deprecated { background: var(--amber-soft); color: #8a5a00; }
.badge-removed { background: #fdecec; color: #b42318; }
.badge-other { background: var(--bg-alt); color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Feature items ('#### Title' in the Markdown): normal bullets with a "Read more" link */
.feature-link { color: inherit; text-decoration: none; cursor: pointer; }
.feature-title { transition: color .15s; }
.feature-more {
  margin-left: 8px; font-size: 14px; font-weight: 700; color: var(--purple); white-space: nowrap;
}
.feature-more span { display: inline-block; transition: transform .15s; }
.feature-link:hover .feature-title, .feature-link:focus-visible .feature-title { color: var(--purple); }
.feature-link:hover .feature-more span, .feature-link:focus-visible .feature-more span { transform: translateX(3px); }
.feature-link:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* Modal */
body.modal-open { overflow: hidden; }
.modal {
  width: min(780px, calc(100vw - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 80px rgba(35, 31, 32, .28);
}
.modal::backdrop { background: rgba(35, 20, 70, .45); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-inner { max-height: inherit; overflow-y: auto; }
.modal-head {
  position: sticky; top: 0; z-index: 1; padding: 28px 64px 20px 36px;
  background: linear-gradient(180deg, #fff 0%, #fff 85%, rgba(255, 255, 255, .9) 100%);
  border-bottom: 1px solid var(--line);
}
.modal-meta { display: flex; align-items: center; gap: 10px; }
.modal-version { font-size: 14px; font-weight: 600; color: var(--muted); }
.modal-head h2 { margin: 10px 0 0; font-size: 26px; line-height: 1.25; letter-spacing: -.01em; }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--bg-alt); cursor: pointer; transition: background .15s;
}
.modal-close:hover { background: var(--purple-soft); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.modal-body { padding: 8px 36px 36px; font-size: 16.5px; }
.modal-body h2, .modal-body h3, .modal-body h4, .modal-body h5, .modal-body h6 { margin: 28px 0 8px; line-height: 1.3; font-weight: 700; }
.modal-body h2, .modal-body h3 { font-size: 20px; }
.modal-body h4, .modal-body h5 { font-size: 18px; }
.modal-body h6 { font-size: 16px; }
.modal-body img { display: block; margin: 18px 0; border-radius: 12px; border: 1px solid var(--line); }
.modal-body ul, .modal-body ol { padding-left: 22px; }
.modal-body li { margin: 6px 0; }
.modal-body li::marker { color: var(--purple); }
.modal-body code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); }
.modal-body pre { background: #1d1a26; color: #f1ecfd; padding: 16px; border-radius: 12px; overflow-x: auto; }
.modal-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.modal-body table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
.modal-body th, .modal-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.modal-body th { font-weight: 700; background: var(--bg-alt); }
.modal-body blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--purple); background: var(--purple-soft); border-radius: 0 10px 10px 0; }
.modal-body blockquote p { margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-sep { margin: 0 6px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .sidebar-inner { position: static; }
  .nav-title, .sidebar nav { display: none; }
  .release { padding: 24px 20px; }
  .release-head time { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .topbar-inner, .tabs-inner, .hero-inner, .layout, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .tabs-inner { padding-left: 2px; }
  .hero-inner { padding-top: 22px; padding-bottom: 20px; }
  .brand-label { display: none; }
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal-head { padding: 22px 60px 16px 20px; }
  .modal-head h2 { font-size: 22px; }
  .modal-close { top: 14px; right: 14px; }
  .modal-body { padding: 4px 20px 28px; }
  .brand-divider { display: none; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .topbar, .sidebar, .hero::before, .hero::after { display: none; }
  .layout { display: block; }
  .release { box-shadow: none; break-inside: avoid; }
}
