/* Shared static site styles. Native desktop / wxWidgets practical utility aesthetic. No external fonts, scripts, or tracking. */
:root {
  --ink: #1c1e21;
  --text: #24292f;
  --muted: #57606a;
  --accent: #0969da;
  --accent-hover: #054da7;
  --line: #d0d7de;
  --paper: #f6f8fa;
  --surface: #ffffff;
  --panel: #eceef1;
  --radius: 3px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; letter-spacing: -0.01em; font-weight: 600; }
h2 { font-size: clamp(22px, 2.5vw, 28px); }
h3 { font-size: 17px; }
p + p { margin-top: 0.9em; }
.shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; background: var(--ink); color: #fff; padding: 6px 16px; z-index: 20; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }

/* Header: wxMenuBar / wxToolbar style */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}
.brand img { border-radius: 2px; }
.brand strong { font-weight: 650; }
.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
}
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav [aria-current] { color: var(--ink); }
.nav-download {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 5px 12px;
  border-radius: var(--radius);
  color: var(--ink) !important;
}
.nav-download:hover {
  background: var(--paper);
  border-color: #b0b7be;
}
.nav-download span { margin-left: 6px; }

/* Utility & Typography */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  line-height: 1.5;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-copy { max-width: 900px; }
.hero .eyebrow { display: flex; gap: 8px; align-items: center; }
.hero h1 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.4;
  margin: 14px 0 12px;
}
.hero-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.primary {
  background: #005a9e;
  border-color: #004578;
  color: #ffffff;
}
.primary:hover { background: #004578; color: #ffffff; }
.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.secondary:hover {
  background: var(--paper);
  border-color: #b0b7be;
  color: var(--ink);
}
.text-link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.text-link span { margin-left: 4px; }
.hero-meta {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
}
.hero-meta span { display: inline-block; margin-left: 14px; }
.reader-figure { min-width: 0; margin-top: 28px; }
.screenshot-link { display: block; border-radius: 2px; }
.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
}
.reader-figure figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}
.reader-figure figcaption a { display: inline-block; margin-left: 8px; }

/* Sections */
.section { padding-block: 54px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin-top: 6px; }
.section-heading > p:last-child:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* Feature Grid: Functional panel / groupbox layout */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-number {
  font-size: 11px;
  font-family: Consolas, monospace;
  color: var(--muted);
  font-weight: 600;
}
.feature h3 { margin: 10px 0 8px; font-size: 16px; }
.feature p { font-size: 13.5px; line-height: 1.7; color: var(--text); }

/* Download Section: Native installer panel aesthetic */
.download-section {
  padding-block: 50px;
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--surface);
}
.download-panel-main { flex: 1 1 300px; min-width: 0; }
.download-panel h3 { font-size: 18px; }
.download-panel-main p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.download-panel .button { flex: 0 0 auto; }
.download-panel .small { flex-basis: 100%; font-size: 12px; line-height: 1.7; color: var(--muted); }
.download-footnote { font-size: 12px; color: var(--muted); margin-top: 20px; line-height: 1.7; }

/* Help / Manual Strip */
.help-strip {
  padding-block: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.help-strip h2 { font-size: 20px; margin: 4px 0 6px; }
.help-strip p:last-child { color: var(--muted); font-size: 13px; }

/* Footer: wxStatusBar style footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 20px;
  font-size: 12px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-name {
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.site-footer p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }

/* Manual Page Specifics */
.manual-heading { background: var(--surface); border-bottom: 1px solid var(--line); }
.manual-heading-inner { padding-block: 28px 30px; }
.breadcrumb { font-size: 12px; text-decoration: none; color: var(--muted); display: inline-block; margin-bottom: 14px; }
.breadcrumb span { margin-left: 8px; color: var(--line); }
.manual-heading h1 { font-size: clamp(24px, 3vw, 30px); margin-top: 6px; }
.manual-heading p:not(.eyebrow) { color: var(--muted); margin-top: 6px; font-size: 14px; }
.version-label {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: var(--radius);
  margin-top: 12px;
}
.manual-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}
.manual-sidebar {
  position: sticky;
  top: 80px;
  padding-top: 28px;
  font-size: 12px;
}
.manual-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.toc-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.manual-sidebar nav a { padding: 4px 0; text-decoration: none; color: var(--text); }
.manual-sidebar nav a:hover { color: var(--accent); }
.sidebar-back {
  display: inline-block;
  font-size: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.manual-content { min-width: 0; max-width: 760px; padding-bottom: 50px; }
.manual-section { padding-block: 36px; border-bottom: 1px solid var(--line); font-size: 14px; }
.manual-section h2 { font-size: 22px; margin: 4px 0 16px; }
.manual-section h3 { font-size: 16px; margin: 24px 0 8px; }
.manual-section p { margin-top: 10px; }
.manual-section p + p { margin-top: 14px; }
.manual-section li { margin-block: 6px; }
.manual-section ul, .manual-section ol { padding-left: 20px; margin-block: 12px; }
.note {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: #f0f4f9;
  margin-block: 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
}
.note > strong { color: var(--ink); }
.note p { margin-top: 6px; }
.small { font-size: 12px; color: var(--muted); }
code { font-size: 0.9em; font-family: Consolas, monospace; overflow-wrap: anywhere; }
p code, li code, td code { padding: 1px 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
kbd {
  font-family: inherit;
  font-size: 0.8em;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 2px;
  padding: 1px 5px;
  background: var(--surface);
  color: var(--ink);
}
.file-tree {
  font-size: 12px;
  padding: 18px;
  line-height: 1.9;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.table-wrap { overflow-x: auto; margin-block: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; text-align: left; }
caption { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
th, td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
thead { background: var(--panel); color: var(--ink); font-weight: 600; }
tbody th { font-weight: 500; min-width: 130px; background: #fafbfc; }
td { min-width: 120px; }
details { padding-block: 14px; border-top: 1px solid var(--line); }
details:first-of-type { margin-top: 16px; }
summary { cursor: pointer; color: var(--ink); font-weight: 600; line-height: 1.6; }
details p { color: var(--muted); font-size: 13.5px; padding-left: 16px; }
.manual-end { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; }

/* Responsive adjustments */
@media(max-width: 1050px) {
  .shell { width: calc(100% - 40px); }
  .feature-grid { gap: 16px; }
  .manual-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
}
@media(max-width: 800px) {
  .section { padding-block: 40px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .manual-layout { grid-template-columns: 1fr; gap: 0; }
  .manual-sidebar { position: static; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .manual-sidebar nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; }
  .sidebar-back { display: none; }
  .manual-content { max-width: none; }
}
@media(max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .site-header nav { gap: 12px; font-size: 12px; }
  .site-header nav > a:first-child { display: none; }
  .hero h1 { font-size: 24px; }
  .actions { gap: 12px; }
  .manual-sidebar nav { grid-template-columns: 1fr 1fr; }
  .help-strip { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { background: white; font-size: 10pt; }
  .site-header, .manual-sidebar, .site-footer, .manual-end, .skip-link { display: none; }
  .shell { width: 100%; }
  .manual-layout { display: block; }
  .manual-content { max-width: none; }
  .manual-heading-inner { padding-top: 0; }
  a { color: inherit; }
  table { font-size: 9pt; }
  tr, .note { break-inside: avoid; }
}
