/* GlobeRecord preview site — no design system on file; original typography-first theme */
:root {
  --ink: #122026;
  --ink-soft: #3b4a51;
  --paper: #f6f1e8;
  --paper-2: #efe7d8;
  --card: #fffcf7;
  --line: #d8cfc0;
  --copper: #b44b1e;
  --copper-2: #8f3916;
  --teal: #1a5f5f;
  --teal-2: #0f3f3f;
  --warn: #8a5a12;
  --warn-bg: #f3e4c4;
  --danger: #8b2e2e;
  --ok: #1e5a3a;
  --focus: #1a5f5f;
  --shadow: 0 1px 0 rgba(18,32,38,.06);
  --radius: 14px;
  --max: 1120px;
  --sans: "IBM Plex Sans", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Noto Sans Thai", "Source Han Sans TC", "Source Han Sans SC", sans-serif;
  --serif: "Fraunces", "Noto Sans Arabic", "Noto Sans Thai", "Noto Serif TC", "Noto Serif JP", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
.skip,
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: absolute;
  inset-inline-start: 12px; top: 12px; z-index: 80;
  width: auto; height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: #fff; padding: .5rem 1rem;
}
.preview-badge {
  display: inline-flex; align-items: center;
  font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .08rem .45rem;
  font-weight: 600;
  line-height: 1.3;
}
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; flex-wrap: wrap; }
.brand .mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.brand .tag { font-size: .78rem; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
nav.main { display: flex; gap: .2rem 1rem; flex-wrap: wrap; align-items: center; }
nav.main a {
  color: var(--ink); text-decoration: none; font-size: .95rem;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--copper); }
.lang {
  display: flex; align-items: center; margin-inline-start: auto;
}
.lang-switch { display: inline-flex; align-items: center; margin: 0; }
.lang-switch select {
  font: inherit; font-size: .85rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem 2rem .3rem .8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%233d3832' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 10px 7px;
  min-width: 10rem;
  max-width: 15rem;
}
[dir="rtl"] .lang-switch select {
  padding: .3rem .8rem .3rem 2rem;
  background-position: left .75rem center;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 4rem; }
.hero { padding: 2.4rem 0 2rem; max-width: 46rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 .8rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: .65rem 1.15rem; border: 1px solid transparent;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled], .btn.is-disabled {
  background: #e8e2d6; color: #7a7266; border-color: #d8cfc0;
  cursor: not-allowed; pointer-events: none;
}
.section { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.section h2 {
  font-family: var(--serif); font-weight: 550; font-size: 1.7rem;
  letter-spacing: -0.02em; margin: 0 0 1rem;
}
.grid-3, .grid-2, .grid-4 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.15rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.flow {
  display: grid; gap: .7rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .flow { grid-template-columns: repeat(6, 1fr); align-items: stretch; }
  .flow .arrow { display: none; }
}
.flow-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem .85rem; min-height: 100%;
}
.flow-step .n {
  font-family: var(--serif); color: var(--copper); font-size: 1.2rem; display: block;
}
.flow-step h3 { margin: .15rem 0 .35rem; font-size: .98rem; }
.flow-step p { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.example {
  background: #172226; color: #e8efe8; border-radius: var(--radius);
  padding: 1rem 1.1rem; overflow-x: auto;
  font-family: var(--mono); font-size: .82rem; line-height: 1.5;
}
.example .lbl { color: #e0c48a; font-family: var(--sans); font-size: .78rem; margin: 0 0 .6rem; }
.example pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.soon {
  display: inline-block; font-size: .75rem; letter-spacing: .04em;
  border: 1px solid currentColor; border-radius: 999px; padding: 0 .45rem;
  vertical-align: middle; opacity: .85;
}
.note { font-size: .9rem; color: var(--ink-soft); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: .8rem; margin: 1.2rem 0; }
.metric { background: var(--paper-2); border-radius: var(--radius); padding: .9rem 1rem; }
.metric .v { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.03em; }
.metric .l { font-size: .82rem; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; align-items: end; }
.filters label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--ink-soft); }
.filters input, .filters select {
  font: inherit; font-size: .95rem; padding: .45rem .65rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 11rem; color: var(--ink);
}
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { text-align: start; padding: .5rem .45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-weight: 600; font-size: .78rem; letter-spacing: .02em; color: var(--ink-soft); }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover, table.data tbody tr[aria-selected="true"] { background: var(--paper-2); }
table.data .num { text-align: end; font-variant-numeric: tabular-nums; }
.detail { margin-top: 1.5rem; }
.detail h2 { margin-top: 0; }
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: .6rem 1rem; margin: 1rem 0; }
.props dt { font-size: .75rem; color: var(--ink-soft); }
.props dd { margin: 0; }
.chart { width: 100%; height: 180px; }
.chart-empty { color: var(--ink-soft); font-size: .9rem; }
.samples-wrap { overflow-x: auto; }
footer.site {
  border-top: 1px solid var(--line); padding: 1.5rem 1.25rem 2.5rem;
  max-width: var(--max); margin: 0 auto; color: var(--ink-soft); font-size: .88rem;
}
footer.site a { color: var(--teal-2); }
.cta-msg { margin-top: .7rem; min-height: 1.3em; color: var(--warn); }
details.excluded { margin-top: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
details.excluded summary { cursor: pointer; font-weight: 600; }
.muted { color: var(--ink-soft); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  table.data { font-size: .82rem; }
  .filters input, .filters select { min-width: 100%; }
}

.table-wrap { overflow-x: auto; }
.sample-note { font-size: .88rem; color: var(--warn); margin: .4rem 0 .8rem; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.buy-note { font-size: .88rem; color: var(--warn); margin: .5rem 0 0; }
header.site { row-gap: .6rem; }
.theme-note { margin-top: 1rem; }

.api-line { margin-top: 1.2rem; }
.preview-badge { flex-shrink: 0; }

html[dir="rtl"] { text-align: start; }
html[lang="ar"], html[lang="ar"] .hero h1, html[lang="ar"] .section h2, html[lang="ar"] .metric .v, html[lang="ar"] .brand .mark {
  font-family: "Noto Sans Arabic", var(--sans);
  letter-spacing: 0;
}
html[lang="th"], html[lang="th"] .hero h1, html[lang="th"] .section h2, html[lang="th"] .metric .v {
  font-family: "Noto Sans Thai", var(--sans);
  letter-spacing: 0;
  line-height: 1.45;
}
html[dir="rtl"] .brand .tag { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .hero { margin-inline: 0 auto; }
@media (max-width: 640px) {
  header.site { flex-wrap: wrap; }
  .lang { margin-inline-start: 0; width: 100%; justify-content: flex-end; }
  .lang-switch, .lang-switch select { width: 100%; max-width: none; }
}
details.parts { margin: .8rem 0; }
details.parts summary { cursor: pointer; font-weight: 600; }
.odbl { color: var(--accent, #b45309); white-space: nowrap; }
