/* HO-100: shared styles for the plain-HTML SEO pages (public/<slug>/index.html). */

/* mirrors THEMES.light in src/styles/themes.js */
:root {
  --bg: #FAF8F5;
  --text: #1A1A1A;
  --muted: #595959;
  --card: #FFFFFF;
  --card-alt: #F5F2EE;
  --border: #E8E4DF;
  --accent: #C0392B;
  --crimson: #9B2335;
  --washi-top: #F7F0E4;
  --washi-bottom: #F1E6D4;
  --chip-bg: #FBF3E8;
  --font: system-ui, -apple-system, sans-serif;
  --font-mark: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: linear-gradient(to bottom, var(--washi-top), var(--washi-bottom));
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  color: var(--crimson);
  font-family: var(--font-mark);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

/* ── Main text ──────────────────────────────────────── */
h1 {
  margin: 24px 0 8px;
  font-size: 30px;
  line-height: 1.25;
}

h2 {
  margin: 36px 0 8px;
  font-size: 23px;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

p, ul, ol { margin: 0 0 14px; }

ul, ol { padding-left: 22px; }

li { margin-bottom: 6px; }

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

.checked {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.lead { font-size: 18px; }

.warning {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
}

.warning p:last-child { margin-bottom: 0; }

.warning h2 { margin-top: 0; }

/* ── Breadcrumb ─────────────────────────────────────── */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
}

.crumbs li { margin: 0; }

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ── Tables ─────────────────────────────────────────── */
table {
  width: 100%;
  margin: 12px 0 20px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
}

caption {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  text-align: left;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--card-alt);
  font-weight: 600;
}

.tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

/* Tables with long cells become one card per row on phones */
@media (max-width: 640px) {
  .stack, .stack caption, .stack tbody, .stack tr, .stack td { display: block; }

  .stack { background: none; border: 0; }

  .stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .stack tr {
    margin-bottom: 12px;
    padding: 6px 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .stack td {
    padding: 4px 12px;
    border-bottom: 0;
  }

  .stack td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
  }
}

/* ── Open Wa button ─────────────────────────────────── */
.cta { margin: 32px 0 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--crimson);
  border-radius: 12px;
  color: var(--card);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

/* ── Link lists + footer ────────────────────────────── */
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li { margin: 0; }

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer {
  margin-top: 40px;
  padding: 20px 0 32px;
  background: var(--card-alt);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
}

.site-footer p { margin: 8px 0 0; }
