/* Shared styles for chorumah.htechlabs.my. System fonts only: no web fonts (CSP font-src 'none'). */
:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --accent: #1f6feb;
  --accent-text: #ffffff;
  --border: #d0d4d9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --card: #1c1d20;
    --text: #f2f2f2;
    --muted: #a5a9ae;
    --accent: #4c8dff;
    --accent-text: #0b0c0e;
    --border: #3a3d42;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font:
    17px / 1.5 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.brand {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  line-height: 1.25;
}

h2 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

a {
  color: var(--accent);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.stores .button {
  margin: 0 8px 8px 0;
}

.code {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font:
    0.95rem / 1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* After .button so that hidden badges stay hidden (same specificity, later rule wins). */
[hidden] {
  display: none;
}

footer {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: center;
}

footer a {
  margin: 0 8px;
}
