/* cabinbrowser.com. One style sheet, no fonts or pictures from elsewhere. */

:root {
  --navy: #08153f;
  --ink: #131c3a;
  --muted: #4b5675;
  --line: #dfe4f0;
  --line-strong: #c5cde0;
  --paper: #ffffff;
  --mist: #f4f6fb;
  --blue: #2f33e5;
  --blue-deep: #2327c4;
  --blue-soft: #eceefe;
  --green: #0b6b45;
  --green-soft: #e6f4ed;
  --amber: #7a4b00;
  --amber-soft: #fbf1dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 21, 63, 0.06), 0 12px 32px rgba(8, 21, 63, 0.10);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 720px) { .wrap { padding: 0 2rem; } }

.quiet { color: var(--muted); font-size: 0.94rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 40em; }
.eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 0.8rem;
}

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.7rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.test-banner {
  margin: 0; padding: 0.5rem 1rem; text-align: center; font-weight: 700;
  background: #8a1c1c; color: #fff;
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(160%) blur(10px); }
}
.header-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0.25rem 1rem; min-height: 4rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem;
  color: var(--navy); font-weight: 760; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none;
}
.brand:hover { color: var(--navy); }
.brand img { border-radius: 22%; }

.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem;
  color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 10px;
}
.site-nav a:hover { background: var(--mist); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a.nav-download {
  background: var(--blue); color: #fff; padding: 0 1.15rem; margin-left: 0.35rem;
}
.site-nav a.nav-download:hover { background: var(--blue-deep); color: #fff; }
.site-nav a.nav-download[aria-current="page"] { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0 0.85rem;
  background: var(--paper); color: var(--navy); border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Narrow windows: with scripting the links fold behind the Menu button; without it they
   stay in view on a row of their own. */
@media (max-width: 559.98px) {
  .site-nav { width: 100%; padding-bottom: 0.6rem; }
  .site-nav a.nav-download { margin-left: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 0.3rem; }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { min-height: 3rem; padding: 0 0.85rem; }
  .js .site-nav a.nav-download { justify-content: center; }
}

/* ------------------------------------------------------------ buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.55rem 1.4rem; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 680; text-decoration: none; cursor: pointer; text-align: center;
}
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(47, 51, 229, 0.24); }
.button-primary:hover { background: var(--blue-deep); color: #fff; }
.button-quiet { background: var(--paper); color: var(--navy); border-color: var(--line-strong); }
.button-quiet:hover { background: var(--mist); color: var(--navy); }
.button-large { min-height: 3.4rem; padding: 0.7rem 1.8rem; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.6rem 0 0; }

/* ------------------------------------------------------------ sections */

.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Product pages keep the browser UI legible against a softly tinted frame. */
.hero { padding: clamp(2.5rem, 6vw, 6rem) 0; background: #f3f5fe; border-bottom: 1px solid #e3e7f3; }
.hero-grid { display: grid; align-items: center; gap: 2.2rem; }
.hero-copy h1 { max-width: 11ch; font-size: clamp(2.85rem, 5.1vw, 4.75rem); letter-spacing: -.04em; line-height: 1.01; text-wrap: pretty; }
.hero-copy .lead { max-width: 36ch; margin: 0; line-height: 1.55; }
.hero .actions { margin-top: 1.6rem; }
.hero .button { border-radius: 10px; }
.hero-screen { min-width: 0; padding: clamp(.55rem, 1.4vw, 1.1rem); background: linear-gradient(135deg,#c9d8ff,#dce7ff 48%,#c5c6fa); border: 1px solid #becbf1; border-radius: 22px; }
.hero-screen a { display: block; cursor: zoom-in; }
.hero-screen img { width: 100%; border-radius: 10px; box-shadow: 0 7px 24px rgba(32,48,99,.14); }
.text-action { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 650; color: var(--blue-deep); text-decoration: none; }
.text-action:hover { text-decoration: underline; }
@media (min-width: 850px) {
  .hero-grid { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 2.6rem; }
  .home .wrap,.features .wrap { max-width: 1232px; }
}

.editor-showcase { padding: clamp(2.8rem, 5vw, 5rem) 0; }
.showcase-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .15rem 1rem; margin-bottom: 1.65rem; }
.showcase-heading h2,.browse-summary h2,.other-tools h2 { margin: 0; letter-spacing: -.028em; }
.editor-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.7rem,3vw,2.7rem) clamp(1rem,2.2vw,1.75rem); }
.editor-screen { display: flex; align-items: center; justify-content: center; cursor: zoom-in; background: var(--stage); border-radius: 15px; aspect-ratio: 1.78; padding: clamp(.6rem,1.5vw,1.35rem); overflow: hidden; }
.editor-screen img { width: auto; max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 4px 15px #172e4a30; object-fit: contain; }
.tone-spreadsheets { --stage: #d9eee6; }
.tone-documents { --stage: #e0e8fa; }
.tone-pdf { --stage: #f4e2dc; }
.tone-video { --stage: #e5e2f4; }
.editor-caption { padding: .9rem .1rem 0; }
.editor-caption h3 { font-size: 1.37rem; margin: 0 0 .25rem; letter-spacing: -.035em; }
.editor-caption h3 a { color: var(--navy); text-decoration: none; }
.editor-caption h3 a:hover { text-decoration: underline; }
.editor-caption p { margin: 0; color: var(--muted); max-width: 52ch; font-size: 1rem; }
.browse-summary { padding: clamp(2.8rem,5vw,4.5rem) 0; background: #f3f5fb; }
.browse-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.browse-points h3 { margin: 0 0 .5rem; }
.browse-points p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 620px) {
  .editor-gallery,.browse-points { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 15ch; }
}
.page-head { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); background: linear-gradient(180deg, #f1f3fd 0%, #ffffff 100%); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

figure { margin: 0; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.42em; width: 0.9rem; height: 0.5rem;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}

/* ------------------------------------------------------------ feature gallery */
.feature-intro,.download-heading { padding-top: clamp(2.5rem,5.5vw,4.8rem); }
.feature-intro h1,.download-heading h1 { letter-spacing: -.04em; line-height: 1.05; margin: 0 0 .65rem; font-size: clamp(2.6rem,5vw,4rem); }
.feature-intro .lead,.download-heading .lead { margin: 0; max-width: 57ch; }
.feature-workbench { padding-top: 1.8rem; }
.editor-switch { display: inline-flex; align-items: center; gap: .2rem; padding: .28rem; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); max-width: 100%; flex-wrap: wrap; }
.editor-switch a { min-height: 44px; padding: .55rem clamp(.7rem,2vw,1.35rem); color: var(--muted); font-size: 1rem; font-weight: 650; border-radius: 8px; text-decoration: none; }
.editor-switch a[aria-selected="true"] { background: white; box-shadow: 0 1px 4px #08153f2a; color: var(--blue-deep); }
.editor-panel { margin-top: 1rem; display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); align-items: center; gap: clamp(1.5rem,3vw,3rem); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.2rem,2.5vw,2.25rem); }
.panel-copy { min-width: 0; }
.panel-copy h2 { letter-spacing: -.028em; margin: 0 0 .6rem; }
.panel-copy > p { color: var(--muted); margin: 0; }
.panel-copy > .editor-kind { font-size: .9rem; color: var(--blue-deep); font-weight: 680; margin-bottom: .6rem; }
.panel-copy .ticks { margin-top: .9rem; font-size: .96rem; line-height: 1.48; }
.panel-copy .ticks li { margin-bottom: .4rem; }
.editor-panel .editor-screen { aspect-ratio: 1.54; }
.format-info summary,.tool-list summary,.download-help summary,.install-details summary { cursor: pointer; font-weight: 640; padding: .6rem .1rem; min-height: 44px; }
.format-info summary,.install-details summary { color: var(--blue-deep); font-size: .94rem; }
.format-info p,.tool-list p,.download-help p { color: var(--muted); font-size: .95rem; margin: .15rem 0 .65rem; }
.other-tools { padding-top: clamp(2.4rem,4vw,4rem); padding-bottom: clamp(2.6rem,4vw,4rem); }
.tool-list { margin: 1.2rem 0 1rem; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 0 2.4rem; }
.tool-list details { border-top: 1px solid var(--line); }
.tool-list summary { padding: .85rem 0; }
@media (max-width: 760px) {
  .editor-panel { grid-template-columns: 1fr; }
  .editor-panel .editor-screen { grid-row: 1; aspect-ratio: 1.75; }
}
@media (max-width: 560px) { .tool-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ download page */
.download-hub { max-width: 960px; padding-bottom: 3.5rem; }
.download-heading { text-align: center; }
.download-heading .lead { margin-inline: auto; font-size: 1.05rem; }
.platform-menu { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .55rem; margin: clamp(1.6rem,3.8vw,2.75rem) 0 1.35rem; }
.platform-option { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .6rem; padding: 1.1rem .3rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--navy); text-decoration: none; text-align: center; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.platform-option svg { width: 30px; height: 30px; }
.platform-option small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .12rem; }
.platform-option.is-selected,.platform-option:hover { color: var(--blue-deep); background: var(--blue-soft); --icon-paper:var(--blue-soft); border-color: var(--blue); }
.download-selection { padding: 1rem clamp(1rem,3vw,2rem); border: 1px solid var(--line); border-radius: 16px; }
#recommended { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .7rem; }
.recommend-why,.mac-help { color: var(--muted); font-size: .95rem; margin: .25rem 0; }
.reset-device { cursor: pointer; min-height: 44px; font: inherit; font-size: .92rem; color: var(--blue-deep); background: none; border: 0; padding: .3rem 0; text-decoration: underline; }
.target { padding: 1rem 0; }
.target + .target:not([hidden]) { border-top: 1px solid var(--line); }
.target[hidden] + .target { border: 0; }
.target-name { font-size: 1.35rem; margin: 0 0 .1rem; }
.status { display: block; font-size: .94rem; color: var(--muted); margin: .25rem 0; }
.target-detail { color: var(--muted); font-size: 1rem; margin: .25rem 0 0; }
.target-action { margin: .85rem 0 .35rem; }
.install-details { max-width: 40rem; }
.download-footnotes { max-width: 43rem; margin: 1.4rem auto 0; }
.download-help { border-bottom: 1px solid var(--line); }
.download-footnotes > p { font-size: .87rem; color: var(--muted); margin: 1.2rem 0 0; }
@media (max-width: 620px) { .platform-menu { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.facts { margin: 0; font-size: 0.93rem; }
.facts div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.6rem; padding: 0.45rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; min-width: 0; }
.digest { font-family: var(--mono); font-size: 0.82em; word-break: break-all; }
.snapshot-facts { margin: 1.6rem 0 1rem; font-size: 1rem; }
.snapshot-facts .digest { font-size: 0.9em; }

.notice {
  background: var(--amber-soft); color: #4d3200; border: 1px solid #ecd9ab; border-radius: 12px;
  padding: 0.95rem 1.1rem; margin: 0 0 1.5rem;
}
.notice-plain { background: var(--mist); color: var(--ink); border-color: var(--line); }

/* ------------------------------------------------------------ prose: source, privacy, terms */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: 0.5rem; }
.prose address { font-style: normal; margin-bottom: 1em; }
.updated { color: var(--muted); font-size: 0.97rem; }
.toc { background: var(--mist); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 2rem; }
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; letter-spacing: 0; }
.toc ol { margin: 0; columns: 2 16rem; column-gap: 2rem; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.toc li { margin: 0; }

pre {
  background: var(--navy); color: #eef1fb; padding: 1rem 1.1rem; border-radius: 12px; overflow-x: auto;
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.5; margin: 0 0 1em;
}
code { font-family: var(--mono); font-size: 0.92em; }
pre code { font-size: inherit; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.5rem; }
.table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.96rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-top: 1px solid var(--line); }
.table thead th { border-top: 0; background: var(--mist); color: var(--navy); font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; }
.table tbody th { font-weight: 650; color: var(--navy); }

.components { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.component { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 0; min-width: 0; }
.component h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.component p { margin: 0 0 0.6rem; font-size: 0.97rem; }
.component .licence-links { margin: 0; font-size: 0.92rem; }
.licence-tag {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 8px; background: var(--blue-soft); color: var(--blue-deep);
  font-size: 0.82rem; font-weight: 650;
}
.repo-link { font-family: var(--mono); font-size: 0.95rem; word-break: break-all; }

/* ------------------------------------------------------------ picture viewer */

.viewer {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 94vh; width: max-content;
}
.viewer::backdrop { background: rgba(8, 21, 63, 0.78); }
.viewer-frame { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; max-height: 94vh; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.6rem 0.5rem 1rem; border-bottom: 1px solid var(--line); }
.viewer-title { margin: 0; font-size: 1rem; font-weight: 650; color: var(--navy); }
.viewer-close, .viewer-size {
  min-height: 2.75rem; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
}
.viewer-close:hover, .viewer-size:hover { background: var(--mist); }
.viewer-title { margin-inline-end: auto; }
.viewer-bar { justify-content: flex-start; gap: .5rem; }
.viewer-bar button { flex: none; }
.viewer-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.viewer-body img { max-width: 100%; max-height: calc(94vh - 4rem); width: auto; margin: 0 auto; }
.viewer.is-actual { width: min(96vw, 1500px); }
.viewer.is-actual .viewer-body img { display: block; width: auto; height: auto; max-width: none; max-height: none; margin: 0; }
@media (max-width: 480px) {
  .viewer-bar { padding: .4rem; gap: .35rem; }
  .viewer-title { font-size: .875rem; line-height: 1.25; }
  .viewer-bar button { font-size: .875rem; padding-inline: .6rem; }
}

/* ------------------------------------------------------------ footer */

.site-footer { border-top: 1px solid var(--line); background: var(--mist); padding: 3rem 0 2rem; font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.footer-brand { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--muted); margin: 0.6rem 0 0; max-width: 22rem; }
.site-footer h2 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.site-footer li a:hover { color: var(--blue); text-decoration: underline; }
.footer-legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-legal p { color: var(--muted); font-size: 0.88rem; margin: 0; max-width: 60rem; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .site-nav a, .platform-option { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}

@media (forced-colors: active) {
  .button, .site-nav a.nav-download, .platform-option.is-selected, .editor-switch a[aria-selected="true"] { border: 1px solid CanvasText; }
  .ticks li::before { border-color: CanvasText; }
}

@media print {
  .site-header, .site-footer nav, .nav-toggle, .actions, .skip-link { display: none; }
  body { font-size: 11pt; }
}
