/* duoroom.app — one stylesheet for every page.
   Colours follow app/lib/ui/theme/tokens.dart (palette v4.3). The site is light only on purpose: the illustrations
   are ink and watercolour on white paper, and the page is that paper.
   Type: the system font everywhere, on the app's type scale (DESIGN_SYSTEM.md section 3). fonts/ (Alegreya) is no
   longer linked. Nothing is loaded from anyone else. */

:root {
  --paper: #ffffff;
  --ink: #1d1c1a;
  --ink-2: #6e6a65;
  --ink-3: #a29d97;
  --line: #e5e2de;
  --surface-alt: #f5f4f2;
  --card: rgba(255, 255, 255, 0.82);
  --rose-fill: #fce8ec;
  --sand-fill: #fdf0d2;
  --sage-fill: #e6f2e9;
  --sky-fill: #e5eef8;
  --line-strong: #d3cfca;
  --raspberry: #c72c57;
  --raspberry-ink: #b0284f;
  --raspberry-soft: #fbe6eb;
  --saffron: #f5b83d;
  --saffron-soft: #fdf0d2;
  --sage: #3e7d57;
  --sage-ink: #33704b;
  --sage-soft: #e6f2e9;
  --danger: #c23a22;
  --danger-soft: #fbe9e5;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 28px rgba(29, 28, 26, 0.06), 0 1px 4px rgba(29, 28, 26, 0.03);
  --gutter: 20px;
  --page: 70rem;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--saffron-soft); color: var(--ink); }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 6px 10px; z-index: 2; }
p, ul, ol { margin: 12px 0 0; }
p, dd, li { text-wrap: pretty; }
strong { font-weight: 600; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- header (document pages) ----------------------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; border-radius: 7px; display: block; }

/* =====================================================================================================
   Landing. It borrows the app's look (design v4.3-4.7): one white page with a barely-there ambient wash of
   the three palette hues, a soft white glow under the header, white cards with a hairline and a very soft
   shadow, light tinted tiles, the app's type scale (system font, 700 titles with tight tracking), radii
   10 / 16 only. Static: no drift animation on the web.
   ===================================================================================================== */
.landing {
  overflow-x: clip;
  background:
    radial-gradient(38rem 30rem at -10% 0, rgba(199, 44, 87, 0.08), transparent 70%),
    radial-gradient(36rem 32rem at 110% 340px, rgba(245, 184, 61, 0.13), transparent 70%),
    radial-gradient(40rem 28rem at 30% 1000px, rgba(45, 94, 140, 0.05), transparent 70%),
    radial-gradient(44rem 30rem at 85% 100%, rgba(245, 184, 61, 0.10), transparent 70%),
    radial-gradient(40rem 30rem at 0 100%, rgba(199, 44, 87, 0.05), transparent 70%),
    var(--paper);
  background-repeat: no-repeat;
}
.landing main { position: relative; }
.landing main::before {          /* the app's white top glow (DuoPage _HeaderGlow) */
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: radial-gradient(farthest-side at 50% 0%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* ---- sticky bar with section links ----------------------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 0.5px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.bar-in { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.bar .brand { margin-right: auto; }
.bar .brand svg { width: 28px; height: 28px; }
.nav { display: none; gap: 22px; }
.nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }

.menu { position: relative; }
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after {            /* two lines, turning into a cross when open */
  content: "";
  width: 14px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}
.menu[open] summary { background: var(--surface-alt); }
.menu summary:active { background: var(--surface-alt); }
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(78vw, 280px);
  padding: 6px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
}
.menu nav a { display: block; padding: 12px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 17px; }
.menu nav a:active { background: var(--surface-alt); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu { display: none; }
}
[id] { scroll-margin-top: 72px; }

/* ---- shared landing type and blocks ---------------------------------------------------------------- */
.landing h1, .landing h2, .landing h3 { margin: 0; text-wrap: balance; }
.title {                          /* app title1 on phones, larger on wide screens */
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sub { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin-top: 8px; max-width: 34rem; }
.section { padding: 48px 0 0; }
.section-head { max-width: 40rem; }

.card {                           /* DuoCard: white, hairline, the soft two-layer shadow, 16 radius */
  background: var(--card);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.rows { list-style: none; margin: 20px 0 0; padding: 0 16px; }
.rows > li, .rows > div { padding: 14px 0; border-top: 0.5px solid var(--line); line-height: 1.45; }
.rows > :first-child { border-top: 0; }
.rows b, .rows strong, .rows dt { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.rows span, .rows p, .rows dd { color: var(--ink-2); font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--raspberry); color: #ffffff; }
.btn.quiet { color: var(--ink); border: 1px solid var(--line-strong); background: var(--card); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--raspberry-ink); } }

/* ---- hero ------------------------------------------------------------------------------------------- */
.hero { display: grid; gap: 4px; padding: 24px 0 0; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--raspberry); }
.hero .lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; max-width: 31rem; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .cta .btn { flex: 1 1 9rem; }
.hero .note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero figure { margin: 16px 0 0; }
.hero figure img { width: 100%; max-width: 280px; margin: 0 auto; }

/* ---- real app screens in a plain phone outline (screenshots from the Android build) ---------------- */
.phone {
  margin: 0;
  width: min(100%, 300px);
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  padding: 6px;
  background: var(--paper);
}
.phone img { width: 100%; border-radius: 21px; }

.demo { display: grid; gap: 20px; grid-template-areas: "intro" "phone" "result"; }
.demo .phone { grid-area: phone; justify-self: center; width: min(66%, 236px); }
.demo-intro { grid-area: intro; }
.demo-result { grid-area: result; }
.outcomes { margin-top: 0; max-width: 32rem; }
.outcomes .is-match b { color: var(--raspberry); }

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(60%, 220px);
  gap: 16px;
  margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens figure { margin: 0; scroll-snap-align: start; }
.screens .phone { width: 100%; }
.screens figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 17rem; }

/* ---- how it works ----------------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; }
.steps > li::before { content: counter(step); font-size: 20px; font-weight: 700; line-height: 1.1; color: var(--ink-3); font-feature-settings: "tnum"; }
.steps > li:last-child::before { color: var(--raspberry); }
.steps h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.steps p { margin-top: 2px; }

/* ---- what's inside: light tinted tiles, like the app's hub ----------------------------------------- */
.tiles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.tile {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 4px 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--rose-fill);
}
.tile.sand { background: var(--sand-fill); }
.tile.sage { background: var(--sage-fill); }
.tile.sky { background: var(--sky-fill); }
.tile img { width: 64px; grid-column: 2; grid-row: 1 / span 2; }
.tile h3 { grid-column: 1; grid-row: 1; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.tile div { grid-column: 1; grid-row: 2; }
.tile p { margin-top: 2px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.tile .aside { margin-top: 6px; font-size: 14px; color: var(--ink-2); opacity: 0.85; }

/* ---- privacy ---------------------------------------------------------------------------------------- */
.private { display: grid; gap: 12px; align-items: start; }
.private figure { margin: 0; }
.private figure img { width: 96px; }
.private .more { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* ---- pricing and download --------------------------------------------------------------------------- */
.price { margin-top: 20px; padding: 0; }
.price .rows { margin: 0; }
.price .rows b { color: var(--ink); }
.price .rows .now b { color: var(--sage-ink); }
.price .foot-note { padding: 0 16px 14px; margin: 0; font-size: 14px; color: var(--ink-2); }

.download { display: grid; gap: 12px; align-items: start; }
.download figure { margin: 0; }
.download figure img { width: 96px; }
.stores { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 32rem; }
.stores li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-weight: 600;
}
.stores li span { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.follow { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 32rem; }
.follow a { color: var(--raspberry-ink); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .follow a:hover { text-decoration: underline; } }
.download .age { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---- FAQ: every answer visible, no accordion -------------------------------------------------------- */
.faq dd { margin: 4px 0 0; }
.faq dd p { margin: 0; }
.faq dd p + p { margin-top: 8px; }

/* ---- wide screens ----------------------------------------------------------------------------------- */
@media (min-width: 860px) {
  .section { padding-top: 88px; }
  .title { font-size: 40px; line-height: 1.12; letter-spacing: -0.025em; }
  .sub { font-size: 18px; margin-top: 12px; }
  .rows { padding: 0 24px; }
  .rows > li, .rows > div { padding: 18px 0; }
  .rows b, .rows strong, .rows dt { font-size: 17px; }
  .rows span, .rows p, .rows dd { font-size: 16px; }

  .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 64px; }
  .hero h1 { font-size: clamp(52px, 5.6vw, 72px); line-height: 1.02; }
  .hero .lead { font-size: 19px; margin-top: 22px; }
  .hero .cta { margin-top: 28px; }
  .hero .cta .btn { flex: 0 0 auto; }
  .hero .note { margin-top: 14px; font-size: 15px; }
  .hero figure { margin: 0; }
  .hero figure img { max-width: 560px; }

  .phone { border-radius: 32px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .demo { grid-template-columns: auto 1fr; grid-template-areas: "phone intro" "phone result"; column-gap: 88px; row-gap: 0; align-content: center; }
  .demo .phone { width: 320px; }
  .demo-intro { align-self: end; }
  .demo-result { margin-top: 28px; }

  .screens { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 40px 0 0; padding: 0; overflow: visible; }
  .screens .phone { max-width: 300px; }
  .screens figcaption { margin-top: 14px; font-size: 15px; }

  .steps { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 24px; column-gap: 32px; }
  .steps > li { grid-template-columns: 1fr; border-top: 0; padding: 18px 0; }
  .steps > li::before { font-size: 28px; margin-bottom: 10px; }
  .steps h3 { font-size: 17px; }

  .tiles { grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; }
  .tile { grid-column: span 2; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding: 24px; gap: 0; }
  .tile:nth-child(-n+2) { grid-column: span 3; }
  .tile img { grid-column: 1; grid-row: 1; width: 120px; margin-bottom: 16px; }
  .tile h3 { grid-row: 2; font-size: 22px; }
  .tile div { grid-row: 3; }
  .tile p { font-size: 16px; margin-top: 6px; }

  .private, .download { grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: center; }
  .private figure img, .download figure img { width: 100%; max-width: 340px; }
  .stores { grid-template-columns: 1fr 1fr; }
  .price .rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .price .rows > li { border-top: 0; }
  .faq > div { display: grid; grid-template-columns: 20rem 1fr; gap: 40px; }
  .faq dd { margin: 0; }
}

/* The illustrations are on white paper; multiply makes the paper and the page one sheet. */
.hero figure img, .tile img, .private figure img, .download figure img { mix-blend-mode: multiply; }

/* ---- landing footer --------------------------------------------------------------------------------- */
.site-foot { display: grid; gap: 20px; }
.site-foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.site-foot h2 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li a { display: inline-block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-foot li a:hover { color: var(--ink); text-decoration: underline; } }
.site-foot .brand { font-size: 16px; }
.site-foot .brand svg { width: 24px; height: 24px; border-radius: 6px; }
.site-foot .maker { margin: 0; }
@media (min-width: 860px) {
  .site-foot { grid-template-columns: 1fr auto; align-items: start; }
  .site-foot .cols { grid-template-columns: repeat(3, auto); gap: 64px; }
}

/* ---- documents (privacy, terms, deletion): a plain page of text -------------------------------------- */
.doc { max-width: 46rem; padding: 20px 0 8px; }
.doc h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
.doc .meta { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.doc .lead { font-size: 17px; }
.doc h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 40px 0 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-3);
}
.doc h2 + p, .doc h2 + ul, .doc h2 + .table-scroll { margin-top: 16px; }
.doc h3 { font-size: 17px; font-weight: 700; margin: 28px 0 0; }
.doc p, .doc li { line-height: 1.65; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--raspberry-ink); text-decoration-color: currentColor; }
.doc .toc { font-size: 16px; margin-top: 20px; }
.doc .toc li + li { margin-top: 2px; }

.table-scroll { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 700; border-bottom-color: var(--ink-3); }
td:first-child { min-width: 9rem; font-weight: 600; }

/* ---- deletion form ---------------------------------------------------------------------------------- */
.panel { margin-top: 40px; }
label { display: block; font-weight: 600; margin-top: 16px; }
.hint { display: block; font-weight: 400; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font: 600 18px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  text-transform: uppercase;
}
input[type="text"]::placeholder { color: var(--ink-3); letter-spacing: 0.06em; }
input[type="text"]:focus { outline: 2px solid var(--raspberry); outline-offset: 1px; border-color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
button {
  font: inherit;
  font-weight: 600;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
button.primary { background: var(--raspberry); color: #ffffff; }
button.danger { background: var(--danger); color: #ffffff; }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button:disabled { opacity: 0.5; cursor: progress; }
@media (max-width: 480px) { .actions button { flex: 1 1 100%; } }
.status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--danger-soft); font-size: 15px; }
.status[data-tone="info"] { background: transparent; padding: 0; color: var(--ink-2); }
.doc #confirm h3 { margin-top: 28px; }
.done { margin-top: 28px; padding: 18px 16px; border-radius: var(--radius); background: var(--sage-soft); }
.doc .done h2 { margin: 0; padding: 0; border: 0; font-size: 20px; color: var(--sage-ink); }
.done p { margin-top: 8px; }
[hidden] { display: none !important; }

/* ---- footer ----------------------------------------------------------------------------------------- */
.foot {
  margin-top: 64px;
  padding: 24px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { text-decoration: underline; } }
.foot p { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }


/* Document pages: one centred column, header and footer included. */
.wrap:has(.doc) { max-width: calc(46rem + 2 * var(--gutter)); }

/* ---- language selector (pure HTML: <details> + links, no script needed; add a language = add one <li>) --- */
.hero .solo { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 31rem; }
.langsel { position: relative; }
.langsel summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.langsel summary::-webkit-details-marker { display: none; }
.langsel summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; flex: none; }
.langsel summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.langsel[open] summary { background: var(--surface-alt); }
.langsel summary:active { background: var(--surface-alt); }
.langsel summary:focus-visible, .langsel a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.langsel ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.langsel li a { display: block; padding: 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 16px; }
.langsel li a[aria-current] { font-weight: 600; background: var(--surface-alt); }
.langsel li a:active { background: var(--surface-alt); }
@media (hover: hover) and (pointer: fine) { .langsel li a:hover { background: var(--surface-alt); } }
.langsel.up ul { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.foot .langsel { margin-top: 14px; }
.site-foot .langsel { margin-top: 0; }
@media (min-width: 900px) { .site-foot .langsel.up ul { left: auto; right: 0; } }
.bar .langsel summary { height: 36px; }
