/* AV27 prototype viewer: sidebar + two phones (Figma "Presentation layout idea"). */
:root {
  --viewer-bg: #ffffff;
  --viewer-text: #131313;
  --viewer-muted: #636365;
  --viewer-link: #0067b5;
  --viewer-disabled: #8b8b8f;
  --viewer-bezel: #636365;
  --viewer-seg-track: rgba(118, 118, 128, 0.12);
  --viewer-seg-on: #f1e5db;
  --viewer-seg-on-line: #be5500;
  --viewer-focus: #0067b5;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --viewer-bg: #161618;
  --viewer-text: #f2f2f3;
  --viewer-muted: #b4b5b8;
  --viewer-link: #6cb4f0;
  --viewer-disabled: #8b8b8f;
  --viewer-bezel: #8b8b8f;
  --viewer-seg-track: rgba(118, 118, 128, 0.32);
  --viewer-seg-on: #4a2f1c;
  --viewer-seg-on-line: #f0a060;
  --viewer-focus: #6cb4f0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--viewer-bg);
  color: var(--viewer-text);
  font: 400 16px/1.2 "Asta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.viewer {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "left phones" "right phones";
  column-gap: 40px;
  max-width: 1530px;
  margin: 0 auto;
  padding: 48px 32px 0;
}
.viewer-sidebar--left { grid-area: left; }
.viewer-sidebar--right { grid-area: right; }

.viewer-sidebar { padding-top: 69px; display: flex; flex-direction: column; gap: 32px; }
.viewer-sidebar--right { padding-top: 32px; }
.viewer-sidebar h2 { margin: 0 0 24px; font-size: 20px; font-weight: 700; }
.viewer-sidebar h3 { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--viewer-muted); }
.viewer-sidebar ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.viewer-sidebar ul:last-child { margin-bottom: 0; }

.viewer-sidebar a,
.viewer-link {
  font: inherit;
  color: var(--viewer-link);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.viewer-sidebar a:hover,
.viewer-link:hover { text-decoration: underline; }
.viewer-sidebar [aria-current="page"],
.viewer-link[aria-pressed="true"] { font-weight: 700; }
.viewer-sidebar [aria-disabled="true"] { color: var(--viewer-disabled); cursor: not-allowed; text-decoration: none; }

.viewer-theme { display: inline-flex; align-items: center; gap: 8px; }
.viewer-chip { flex: none; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
[data-theme-option="lpl"] .viewer-chip { background: linear-gradient(135deg, #f7f1ed 0%, #f7f1ed 40%, #b35000 41%); }
[data-theme-option="lpl-financial"] .viewer-chip { background: linear-gradient(135deg, #f7f1ed 0%, #06163a 42%, #be5500 100%); }
[data-theme-option="decimal-blue"] .viewer-chip { background: #1d5fe2; }
[data-theme-option="navy-trust"] .viewer-chip { background: #10285a; }
[data-theme-option="forest"] .viewer-chip { background: #138450; }
[data-theme-option="burgundy"] .viewer-chip { background: #8b2942; }
[data-theme-option="slate"] .viewer-chip { background: #3d4f66; }
.viewer-segmented {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 100px;
  background: var(--viewer-seg-track);
}
.viewer-segmented button {
  min-width: 61px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: none;
  color: var(--viewer-text);
  font: 600 13px/18px inherit;
  font-family: inherit;
  cursor: pointer;
}
.viewer-segmented button[aria-pressed="true"] { background: var(--viewer-seg-on); border-color: var(--viewer-seg-on-line); }
.viewer-note { margin: 8px 0 24px; max-width: 220px; font-size: 12px; line-height: 1.4; color: var(--viewer-muted); }

:focus-visible { outline: 2px solid var(--viewer-focus); outline-offset: 2px; }

.viewer-phones { grid-area: phones; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 56px; }
.viewer-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.viewer-phones figcaption { font-size: 24px; font-weight: 700; line-height: 29px; }
.viewer-device { overflow: hidden; outline: 6px solid var(--viewer-bezel); background: #f7f1ed; }
.viewer-device--ios { width: 402px; height: 874px; border-radius: 62px; }
.viewer-device--android { width: 412px; height: 917px; border-radius: 28px; }
.viewer-device iframe { display: block; border: 0; }

.viewer-credit .viewer-note { margin: 0 0 4px; }
.viewer-heart { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; fill: currentColor; }

/* Two 200px side columns, two phones and their 6px bezels fit inside 1440. */
@media (min-width: 1440px) {
  .viewer {
    grid-template-columns: 200px auto 200px;
    grid-template-rows: auto;
    grid-template-areas: "left phones right";
    justify-content: center;
  }
  .viewer-sidebar--right { padding-top: 69px; }
}

@media (max-width: 760px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "left" "right" "phones"; padding: 24px 16px 0; }
  .viewer-sidebar { padding-top: 0; margin-bottom: 40px; }
}
