/* items.pandao.eu — site styles. No external dependency. */

:root {
  --navy: #202a55;
  --navy-deep: #151c3d;
  --ink: #1b2033;
  --text: #2b3247;
  --muted: #667089;
  --line: #e3e6ef;
  --soft: #f4f5f9;
  --white: #ffffff;
  --accent: #e7397a;
  --accent-deep: #c52a64;
  --violet: #5b3fa0;
  --green: #1f8a5a;
  --amber: #b26a00;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 50, .06), 0 8px 24px rgba(20, 24, 50, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--soft); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--ink); color: #eef0f6; padding: 12px 14px; border-radius: var(--radius-sm); overflow: auto; }
pre code { background: none; padding: 0; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.75rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.prose > *, .wrap.prose-wide > * { max-width: 80ch; }
.wrap.prose > * { max-width: 68ch; }
.section { padding: 40px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 0; }
.more { font-weight: 600; white-space: nowrap; }
.group-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 12px; font-weight: 650; }
.group-title:first-of-type { margin-top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand img { height: 36px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle-bar { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { flex-basis: 100%; display: none; padding-bottom: 12px; }
.site-nav.is-open, .no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; color: var(--ink); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--soft); color: var(--navy); }
.nav-cta a { color: var(--accent-deep); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; flex-basis: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 2px; }
  .site-nav a { padding: 8px 12px; }
  .nav-cta { margin-left: 8px; }
  .nav-cta a { border: 1px solid var(--accent); color: var(--accent-deep); }
  .nav-cta a:hover { background: var(--accent); color: #fff; }
}

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; line-height: 1.2; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.actions, .hero-actions, .card-actions, .hero-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--navy); color: #fff; }
.badge-soft { background: var(--soft); color: var(--navy); }
.badge-accent { background: var(--accent); }

/* Hero */
.hero { background: linear-gradient(180deg, #f7f8fc 0%, var(--white) 100%); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.hero-grid { display: grid; gap: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.lead-soft { font-size: 1.08rem; color: var(--text); }
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.15rem; color: var(--ink); }
.stats span { font-size: .85rem; color: var(--muted); }
.hero-card { background: var(--navy); color: #e9ecf7; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; }
.hero-card h2 { color: #fff; font-size: 1.5rem; margin-top: 4px; }
.hero-card p { color: #d7dcee; }
.hero-card-kicker { display: inline-block; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.hero-card-meta { font-size: .9rem; color: #b8c0dd !important; }
.hero-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-card .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.hero-card-actions { margin-bottom: 0; }
/* Preview banner of the product: bleeds to the edges of the card. */
.hero-card-media { display: block; margin: -24px -24px 20px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.hero-card-media img, .card-media img { width: 100%; aspect-ratio: 590 / 300; object-fit: cover; }

@media (min-width: 900px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; }
}

/* Page head */
.page-head { background: linear-gradient(180deg, #f7f8fc 0%, var(--white) 100%); border-bottom: 1px solid var(--line); padding: 28px 0 20px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs span { margin: 0 6px; color: var(--line); }
.note { font-size: .92rem; color: var(--muted); }
.product-intro { display: grid; gap: 20px; }
.product-intro-text > :last-child { margin-bottom: 0; }
.product-preview { margin: 0; }
.product-preview img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .product-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center; }
}
.meta-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 16px 0 4px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.meta-strip div { display: flex; flex-direction: column; }
.meta-strip dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.meta-strip dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-featured { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(32,42,85,.08), var(--shadow); }
.card-media { display: block; margin: -20px -20px 16px; border-bottom: 1px solid var(--line); border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; background: var(--soft); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-kind { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.card-version { font-size: .8rem; font-weight: 700; color: var(--navy); background: var(--soft); padding: 2px 8px; border-radius: 999px; }
.card-title { font-size: 1.2rem; margin-bottom: 6px; }
.card-title a { text-decoration: none; }
.card-text { color: var(--text); flex: 1; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 14px; font-size: .9rem; }
.card-meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.card-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.card-actions { margin-bottom: 0; }

/* Help and highlights */
.help-grid, .highlights { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.help-item, .highlight { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.help-item h3, .highlight h3 { margin-bottom: 6px; }
.help-item p, .highlight p { margin-bottom: .6em; color: var(--text); }
.help-item a { font-weight: 600; }
.highlight p { margin-bottom: 0; }

/* Gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* Feature columns */
.feature-cols { display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.feature-group ul { padding-left: 1.1em; }
.feature-group li { margin-bottom: 4px; }
.two-cols { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plain { padding-left: 1.1em; }
.plain li { margin-bottom: 6px; }

/* Callouts */
.callout { background: var(--soft); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.callout h2 { font-size: 1.3rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-support { background: var(--navy); color: #e9ecf7; border-left-color: var(--accent); }
.callout-support h2 { color: #fff; }
.callout-support a { color: #fff; }
.callout-support .btn-primary { color: #fff; }
.callout-support .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.callout-support .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--white); }
.faq summary { cursor: pointer; padding: 12px 40px 12px 16px; font-weight: 650; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.3rem; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq-body { padding: 0 16px 14px; }
.faq-body p:last-child, .faq-body pre:last-child { margin-bottom: 0; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-nav a { font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--white); }
.faq-product { margin-top: 28px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 60px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table tbody th { font-weight: 650; }

/* Changelog */
.release { margin-bottom: 20px; }
.release-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.release-card h2 { font-size: 1.25rem; }
.release h3 { font-size: 1.05rem; margin-bottom: 6px; }
.release-date { font-weight: 500; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.release-major { margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.release-items { padding-left: 1.1em; }
.release-items li { margin-bottom: 4px; }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; vertical-align: middle; background: var(--soft); color: var(--muted); }
.tag-new { background: #e4f4ec; color: var(--green); }
.tag-fix { background: #fdecf3; color: var(--accent-deep); }
.tag-note, .tag-update { background: #fff3e0; color: var(--amber); }
.tag-security { background: #ece7f7; color: var(--violet); }
.files summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.file-list { list-style: none; padding: 8px 0 0; margin: 0; columns: 2; column-gap: 24px; font-size: .85rem; }
.file-list li { break-inside: avoid; margin-bottom: 2px; }
.update-list { list-style: none; padding: 0; margin: 0; }
.update-row { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.update-date { color: var(--muted); font-size: .9rem; }
.update-name a { font-weight: 650; text-decoration: none; }
.update-count { color: var(--muted); font-size: .85rem; }
@media (min-width: 720px) { .update-row { grid-template-columns: 150px 220px 1fr; align-items: baseline; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c6cce3; margin-top: 24px; }
.footer-grid { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-logo { height: 33px; width: auto; margin-bottom: 12px; }
.footer-blurb { font-size: .92rem; }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.site-footer a { color: #e6e9f5; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 20px; font-size: .85rem; color: #9aa3c4; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .btn, .nav-toggle { display: none !important; } }
