/* Calendar Lab public site — shared styles for every page (PT and EN). */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e3e6ec;
  --accent: #0a6cff;
  --accent-soft: #e8f0ff;
  --warn-bg: #fff6e0;
  --warn-border: #f0c24b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #e8eaee;
    --muted: #9aa1ad;
    --border: #2a2f38;
    --accent: #5b9dff;
    --accent-soft: #1b2638;
    --warn-bg: #2d2615;
    --warn-border: #8a6d1f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

nav.site { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }
nav.site .lang { font-weight: 600; }

.wrap { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; padding-top: 8px; border-top: 1px solid var(--border); }
h3 { font-size: 17px; margin: 22px 0 6px; }

.lead { font-size: 18px; color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: 14px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 20px 0; }
.grid .card { margin: 0; }
.grid .card h3 { margin-top: 0; }
.grid .card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
}

.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
}

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding-top: 20px;
  padding-bottom: 32px;
}
footer.site a { color: var(--muted); }
