/* Deical – UK property & money calculators */
:root {
  --bg: #f4f5f7;
  --surface: #fff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --border: #e2e8f0;
  --error: #b91c1c;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --max-width: 720px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow);
}
.site-header h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-header h1 a {
  color: var(--text);
  text-decoration: none;
}
.site-header h1 a:hover { color: var(--accent); }
.site-header .tagline {
  margin: var(--space-xs) 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Main */
main {
  padding: var(--space-xl) 0 var(--space-2xl);
  flex: 1;
}

.intro h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.intro p { color: var(--text-muted); }

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.muted { color: var(--text-muted); }
.label-block { display: block; margin-bottom: var(--space-xs); font-weight: 600; }
.location-note { font-size: 0.875rem; color: var(--text-muted); margin-top: var(--space-sm); }
.related-calculators {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.related-calculators h2 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-sm); color: var(--text); }
.related-calculators ul { margin: 0; padding-left: 1.25rem; }
.related-calculators a { color: var(--accent); text-decoration: none; }
.related-calculators a:hover { text-decoration: underline; }

/* Calculator grid */
.calculator-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
@media (min-width: 600px) {
  .calculator-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .calculator-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.card h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 600;
}
.card h3 a {
  color: var(--accent);
  text-decoration: none;
}
.card h3 a:hover { text-decoration: underline; }
.card p {
  margin: 0 0 var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.card-links {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}
.card-links a {
  color: var(--accent);
  text-decoration: none;
}
.card-links a:hover { text-decoration: underline; }
.card .btn { margin-top: var(--space-xs); }
.card.placeholder h3 { color: var(--text-muted); }
.card.placeholder p { margin-bottom: 0; }

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn:active { transform: scale(0.98); }

.guides-preview {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.guides-preview h2 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-sm); color: var(--text); }
.guides-preview ul { margin: 0; padding-left: 1.25rem; }
.guides-preview a { color: var(--accent); text-decoration: none; }
.guides-preview a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Page headings (calculator pages) */
main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  color: var(--text);
}
