/* City of Mandaluyong — shared design tokens (website.html, index.html, phone.html) */
:root {
  color-scheme: light;

  --navy: #0B2A5B;
  --navy-2: #143C7A;
  --navy-deep: #08193A;       /* footer, landing page */
  --blue: #1F5FBF;
  --blue-soft: #E8F0FB;
  --red: #C8242F;
  --red-soft: #FBEAEB;
  --sun: #F5B71F;             /* focus ring on dark surfaces */
  --sun-soft: #FEF5DD;
  --green: #2E8B57;           /* fills only (dots, step circles) */
  --green-soft: #E5F3EB;
  --amber: #B7791F;
  --amber-soft: #FDF1DC;

  /* text colours on tinted pills — all ≥4.5:1 on their -soft background */
  --blue-ink: #1A4FA0;
  --green-ink: #1B6A3F;
  --amber-ink: #8A5300;
  --red-ink: #A81E28;

  --ink: #0E1726;
  --ink-2: #3A4556;
  --ink-3: #566173;           /* 5.9:1 on white, 5.4:1 on --paper */
  --line: #E3E7EE;
  --line-2: #EEF1F5;
  --field: #C9D1DC;           /* form-field borders */
  --placeholder: #5D6879;
  --bg: #FFFFFF;
  --bg-2: #F6F8FB;
  --paper: #F4F6F9;
  --selection: #CBDAF1;
  --focus: #1F5FBF;

  /* text on navy */
  --on-dark: #FFFFFF;
  --on-dark-2: #DCE4F2;
  --on-dark-3: #C9D6EC;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(14,23,38,.04), 0 8px 24px rgba(14,23,38,.06);
  --shadow-lg: 0 24px 60px rgba(11,42,91,.18);

  --display: 'Schibsted Grotesk', 'Public Sans', system-ui, sans-serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; color: var(--ink); }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* skip link: hidden until focused */
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--navy); color: #fff; font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; outline: 2px solid var(--sun); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 2.75rem; padding: 0 1.125rem; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; font-size: 0.9375rem; line-height: 1.2; transition: background .15s, border-color .15s, transform .08s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--field); }
.btn-red { background: var(--red); color: #fff; }
.btn-lg { min-height: 3.125rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-sm { min-height: 2.25rem; padding: 0 0.75rem; font-size: 0.875rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 1.5rem; padding: 0 0.5rem; border-radius: 4px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.pill-blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill-green { background: var(--green-soft); color: var(--green-ink); }
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill-red { background: var(--red-soft); color: var(--red-ink); }
.pill-gray { background: var(--line-2); color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ico { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
