/* How-it-was-made page: the map's world, set for reading. */

/* the page itself scrolls, so the header and contents can stick */
body.doc { overflow: visible; height: auto; min-height: 100%; font-size: 16px; line-height: 1.65; }
html:has(body.doc) { overflow: auto; height: auto; }
html[lang="tr"] [lang="en"], html[lang="en"] [lang="tr"] { display: none !important; }
html[lang="tr"] .segmented [lang], html[lang="en"] .segmented [lang] { display: inline; }

.doc-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(12, 12, 14, 0.78);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.09);
}
/* the wordmark lives here; the map itself carries no brand */
:root { --word: "Lora Variable", Georgia, serif; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.flag { width: 30px; height: 20px; border-radius: 3px; box-shadow: var(--edge-soft); }
.logo-word { font: 400 17px/1 var(--word); letter-spacing: 0.005em; color: var(--ink); }
.doc-actions { display: flex; align-items: center; gap: 10px; }
.open-map {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #111;
  font: 500 13px/1 var(--ui);
  text-decoration: none;
  transition: background-color 160ms var(--ease-out);
}
.open-map:hover { box-shadow: 0 0 0 3px var(--fill-press); }

.doc-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 68ch);
  gap: clamp(24px, 5vw, 72px);
  justify-content: center;
  padding: 40px clamp(16px, 4vw, 40px) 80px;
}
.toc { position: sticky; top: 84px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.toc a:hover { color: var(--ink); background: var(--fill-hover); }
.toc a[aria-current="true"] { color: var(--ink); background: rgba(236, 235, 232, 0.07); }

.prose { min-width: 0; }
.prose section { scroll-margin-top: 90px; margin-bottom: 56px; }
.prose h1 { margin: 0 0 18px; font: 400 clamp(32px, 4.4vw, 46px)/1.12 var(--word); letter-spacing: -0.01em; text-wrap: balance; }
.prose h2 { margin: 0 0 14px; font: 400 28px/1.2 var(--word); text-wrap: balance; }
.prose * + h2 { margin-top: 44px; }
.prose h3 { margin: 30px 0 8px; font: 600 16px/1.35 var(--ui); color: var(--ink); }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose a { color: var(--ink); text-decoration-color: rgba(236, 235, 232, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .note { font-size: 14px; color: var(--ink-3); }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.prose li { margin: 0 0 6px; padding-left: 4px; }
.prose li::marker { color: var(--ink-3); }

.hero { margin: 0 0 40px; border-radius: 16px; overflow: hidden; box-shadow: var(--edge), var(--lift); }
.hero img { display: block; width: 100%; height: auto; }

.table-wrap { overflow-x: auto; margin: 4px 0 16px; border-radius: 12px; box-shadow: var(--edge-soft); background: var(--fill); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; }
th { font-weight: 500; color: var(--ink-3); border-bottom: 1px solid rgba(236, 235, 232, 0.08); }
td { color: var(--ink-2); }
tr + tr td { border-top: 1px solid rgba(236, 235, 232, 0.06); }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px; }
.trio img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--edge-soft); background: #1a1a1d; }

td.num { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatches td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw { display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; border-radius: 999px; background: var(--c); box-shadow: var(--edge-soft); }
.prose .open-map { color: #111; }

.doc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(236, 235, 232, 0.08); }
.doc-foot p { margin: 0; font-size: 13px; color: var(--ink-3); }

@media (max-width: 820px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .toc { display: none; }
  .doc-actions .segmented button { padding: 0 10px; }
}
@media (max-width: 480px) {
  .doc-top .logo-word { display: none; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio img:last-child { display: none; }
}
