/* ==========================================================================
   WebToolz — Shared stylesheet
   Design system, layout primitives, navigation, footer, homepage, content
   pages. Tool-specific styles live in css/tools.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts (no CDN — files live in /assets/fonts)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/sora-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/sora-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/sora-latin-800-normal.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Design tokens
   Brand: Emerald (primary) + Amber (accent) on warm stone neutrals.
   Every colour used in the UI resolves through a variable declared here on
   the bare :root, so a single override block can re-theme the whole site.
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramps */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  /* Warm neutral ramp (stone) */
  --stone-0: #ffffff;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #121011;

  /* --- Semantic tokens: light theme (the default) --- */
  --brand: var(--emerald-600);
  --brand-strong: var(--emerald-700);
  --brand-soft: var(--emerald-50);
  --brand-border: var(--emerald-200);
  --brand-contrast: #ffffff;

  --accent: var(--amber-500);
  --accent-strong: var(--amber-600);
  --accent-soft: #fffbeb;
  --accent-contrast: #422006;

  --bg: var(--stone-50);
  --bg-elevated: var(--stone-0);
  --bg-sunken: var(--stone-100);
  --bg-inset: var(--stone-100);
  --surface-hover: var(--stone-100);

  --text: var(--stone-900);
  --text-muted: var(--stone-600);
  --text-subtle: var(--stone-500);
  --text-inverse: var(--stone-0);

  --border: var(--stone-200);
  --border-strong: var(--stone-300);

  --success: #047857;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;

  --nav-bg: rgba(255, 255, 255, 0.82);
  --hero-glow-1: rgba(16, 185, 129, 0.38);
  --hero-glow-2: rgba(245, 158, 11, 0.30);
  --hero-glow-3: rgba(45, 212, 191, 0.28);
  --code-bg: var(--stone-100);

  /* Typography */
  --font-heading: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: clamp(2.4rem, 6vw, 3.75rem);

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 6rem;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.08), 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08), 0 2px 4px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 12px 28px rgba(28, 25, 23, 0.10), 0 4px 10px rgba(28, 25, 23, 0.05);
  --shadow-xl: 0 24px 56px rgba(28, 25, 23, 0.14);
  --shadow-focus: 0 0 0 3px rgba(16, 185, 129, 0.35);

  /* Layout */
  --container: 1160px;
  --container-narrow: 780px;
  --nav-height: 68px;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Semantic tokens: dark theme --- */
/* Applied when the user picked dark, or when they never picked and the OS
   prefers dark. Only the semantic layer is redefined; ramps stay put. */
:root[data-theme='dark'] {
  --brand: var(--emerald-400);
  --brand-strong: var(--emerald-300);
  --brand-soft: rgba(16, 185, 129, 0.12);
  --brand-border: rgba(52, 211, 153, 0.32);
  --brand-contrast: #04231a;

  --accent: var(--amber-400);
  --accent-strong: var(--amber-300);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --accent-contrast: #2b1a02;

  --bg: var(--stone-950);
  --bg-elevated: #1b1918;
  --bg-sunken: #171514;
  --bg-inset: #232020;
  --surface-hover: #262322;

  --text: #f5f5f4;
  --text-muted: #b9b3ae;
  --text-subtle: #918a85;
  --text-inverse: var(--stone-900);

  --border: #302c2b;
  --border-strong: #3f3a38;

  --success: var(--emerald-300);
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(52, 211, 153, 0.32);
  --danger: #fca5a5;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(248, 113, 113, 0.32);
  --warning: var(--amber-300);
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(251, 191, 36, 0.32);
  --info: #93c5fd;
  --info-bg: rgba(59, 130, 246, 0.12);
  --info-border: rgba(96, 165, 250, 0.32);

  --nav-bg: rgba(23, 21, 20, 0.82);
  --hero-glow-1: rgba(16, 185, 129, 0.30);
  --hero-glow-2: rgba(245, 158, 11, 0.22);
  --hero-glow-3: rgba(20, 184, 166, 0.24);
  --code-bg: #232020;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.6);
  --shadow-focus: 0 0 0 3px rgba(52, 211, 153, 0.4);
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { color: var(--text-muted); }

a {
  color: var(--brand-strong);
  text-decoration-color: color-mix(in srgb, var(--brand-strong) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { color: var(--brand); }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

/* The rule above beats the user-agent [hidden] rule, so restore it here.
   Several tools toggle visibility with the `hidden` attribute. */
[hidden] { display: none !important; }

/* Default size for the inline icon set. Components that want a larger icon
   override this with their own rule further down the sheet. */
[data-icon] svg,
[data-icon-before] > svg,
.btn > svg,
.eyebrow > svg,
.alert > svg { width: 1.1em; height: 1.1em; flex: none; }
.btn [data-icon] svg { width: 1.05em; height: 1.05em; }

ul, ol { color: var(--text-muted); padding-left: 1.35rem; }
li + li { margin-top: var(--space-2); }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }
code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  color: var(--text);
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

::selection { background: var(--emerald-200); color: var(--stone-900); }

/* Visible, consistent focus ring for keyboard users. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-3); color: var(--brand-contrast); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container-narrow { max-width: var(--container-narrow); }

main { flex: 1 0 auto; }

.section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-7); }

.section-head { margin-bottom: var(--space-6); }
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   5. Buttons & form controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-strong); color: var(--brand-contrast); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--accent-strong); color: var(--accent-contrast); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--surface-hover); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.btn-danger:hover { background: var(--danger-bg); filter: brightness(0.97); color: var(--danger); }

.btn-lg { font-size: var(--text-base); padding: 0.95rem 1.6rem; border-radius: var(--radius-md); }
.btn-sm { font-size: var(--text-xs); padding: 0.5rem 0.8rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

label,
.label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.label-hint {
  display: block;
  font-weight: 400;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: 2px;
}

input[type='text'],
input[type='email'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='url'],
input[type='date'],
input[type='time'],
input[type='datetime-local'],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}
input[aria-invalid='true'],
textarea[aria-invalid='true'],
select[aria-invalid='true'] { border-color: var(--danger); }

input::placeholder, textarea::placeholder { color: var(--text-subtle); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2.2rem;
}
:root[data-theme='dark'] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

input[type='range'] {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--bg-inset);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  padding: 0;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-elevated);
  cursor: pointer;
}

input[type='color'] {
  width: 100%;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: 0;
  cursor: pointer;
}
.checkbox input,
.radio input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand);
  cursor: pointer;
  flex: none;
}

.field { margin-bottom: var(--space-4); }
.field-error {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--danger);
  margin-top: var(--space-1);
  min-height: 1em;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
}

/* Segmented control — used by tools with modes (Pomodoro, percentage, …) */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}
.segmented button {
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected='true'] {
  background: var(--bg-elevated);
  color: var(--brand-strong);
  box-shadow: var(--shadow-xs);
}

/* --------------------------------------------------------------------------
   6. Cards, panels & feedback
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}
.panel + .panel { margin-top: var(--space-5); }
.panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-inset);
  color: var(--text-muted);
}
.alert strong { color: var(--text); }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.alert-error   { background: var(--danger-bg);  border-color: var(--danger-border);  color: var(--danger); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border-color: var(--info-border);    color: var(--info); }
.alert[hidden] { display: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-inset);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand-border); }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--warning-border); }

/* "Runs in your browser" reassurance chip, used on every tool page */
.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}
.privacy-chip svg { width: 14px; height: 14px; flex: none; }

/* Spinner + busy state */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.is-busy { position: relative; pointer-events: none; opacity: 0.7; }

.progress {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 200ms ease;
}

/* Drag & drop file zone shared by every file-based tool */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-7) var(--space-4);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-inset);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--brand); color: var(--text); }
.dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.dropzone svg { width: 32px; height: 32px; opacity: 0.7; }
.dropzone strong { color: var(--text); font-family: var(--font-heading); }
.dropzone input[type='file'] { display: none; }

.result-box {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
  max-height: 26rem;
  overflow: auto;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}
.stat {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-strong);
  line-height: 1.15;
  word-break: break-word;
}
.stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-top: var(--space-1);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { padding: var(--space-3); text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 700; color: var(--text); background: var(--bg-inset); white-space: nowrap; }
td { color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-hover); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Toast, used for "copied to clipboard" style confirmations */
.toast-stack {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 2rem);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--stone-900);
  color: var(--stone-0);
  box-shadow: var(--shadow-lg);
  animation: toast-in 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
:root[data-theme='dark'] .toast { background: var(--stone-100); color: var(--stone-900); }
.toast.is-error { background: #b91c1c; color: #fff; }
.toast.is-leaving { animation: toast-out 200ms ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name .brand-accent { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links > li > a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-links > li > a:hover,
.nav-dropdown-toggle:hover { color: var(--text); background: var(--surface-hover); }
.nav-links > li > a[aria-current='page'] { color: var(--brand-strong); background: var(--brand-soft); }
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-dropdown-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(640px, calc(100vw - 2rem));
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-dropdown-menu[data-open='true'] { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-col h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: var(--space-2);
}
.nav-dropdown-col ul { list-style: none; margin: 0; padding: 0; }
.nav-dropdown-col li { margin: 0; }
.nav-dropdown-col a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
}
.nav-dropdown-col a:hover { color: var(--brand-strong); background: var(--brand-soft); }
.nav-dropdown-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Nav search */
.nav-search {
  position: relative;
  margin-left: auto;
  flex: 0 1 260px;
  min-width: 0;
}
.nav-search input[type='search'] {
  padding: 0.5rem 0.75rem 0.5rem 2.15rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  background: var(--bg-inset);
}
.nav-search .search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-subtle);
  pointer-events: none;
}
.nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: min(360px, 90vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  max-height: 22rem;
  overflow-y: auto;
  z-index: 120;
}
.nav-search-results[hidden] { display: none; }
.nav-search-results ul { list-style: none; margin: 0; padding: 0; }
.nav-search-results li { margin: 0; }
.nav-search-results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
}
.nav-search-results a small { font-weight: 400; color: var(--text-subtle); }
.nav-search-results a:hover,
.nav-search-results a:focus-visible { background: var(--brand-soft); color: var(--brand-strong); }
.nav-search-empty { padding: var(--space-3); font-size: var(--text-sm); color: var(--text-subtle); }

/* Theme toggle */
.theme-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.theme-toggle:hover { color: var(--brand-strong); background: var(--brand-soft); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex: none;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-menu { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; gap: var(--space-2); }
  .nav-search { flex: 1 1 auto; order: 3; margin-left: 0; }
  .nav-toggle { display: inline-flex; order: 2; }
  .theme-toggle { order: 2; margin-left: auto; }
  .nav-search-results { width: 100%; }

  .nav-menu {
    order: 4;
    flex-basis: 100%;
    display: none;
    padding-bottom: var(--space-4);
  }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .nav-links > li > a,
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: var(--space-3); }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 var(--space-3);
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown-menu[data-open='true'] { display: grid; transform: none; }
}

@media (max-width: 560px) {
  .nav-search { order: 4; flex-basis: 100%; }
  .nav-menu { order: 5; }
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  flex: none;
  margin-top: var(--space-9);
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-6);
}
.footer-about p { font-size: var(--text-sm); margin-top: var(--space-3); max-width: 34ch; }
.footer-col h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 var(--space-2); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-strong); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-subtle);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. Homepage hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-10) var(--space-9);
  isolation: isolate;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
}
/* Three slow-drifting colour blobs make the animated mesh background. */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
  will-change: transform;
}
.hero-blob-1 {
  width: 46vmax; height: 46vmax;
  left: 4%; top: 2%;
  background: radial-gradient(circle at 30% 30%, var(--hero-glow-1), transparent 68%);
  animation: drift-1 22s ease-in-out infinite alternate;
}
.hero-blob-2 {
  width: 38vmax; height: 38vmax;
  right: 2%; top: 12%;
  background: radial-gradient(circle at 60% 40%, var(--hero-glow-2), transparent 68%);
  animation: drift-2 26s ease-in-out infinite alternate;
}
.hero-blob-3 {
  width: 34vmax; height: 34vmax;
  left: 38%; bottom: 0%;
  background: radial-gradient(circle at 50% 50%, var(--hero-glow-3), transparent 70%);
  animation: drift-3 30s ease-in-out infinite alternate;
}
@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 6vh, 0) scale(1.14); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-8vw, 9vh, 0) scale(0.94); }
}
@keyframes drift-3 {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to   { transform: translate3d(6vw, -8vh, 0) scale(1.2); }
}
/* Faint grid overlay to keep the mesh from feeling shapeless */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 78%);
}

.hero-content { position: relative; max-width: 820px; margin-inline: auto; }
.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-4);
}
.hero-rotator { color: var(--brand); }
/* Blinking caret for the typing effect */
.hero-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: -0.1em;
  background: var(--accent);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto var(--space-6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.hero-meta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-meta svg { width: 16px; height: 16px; color: var(--brand); }

/* Floating tool icons around the hero (decorative) */
.hero-float {
  position: absolute;
  z-index: -1;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--brand);
  animation: float 7s ease-in-out infinite;
}
.hero-float svg { width: 24px; height: 24px; }
.hero-float:nth-of-type(1) { left: 6%;  top: 22%; animation-delay: 0s; }
.hero-float:nth-of-type(2) { right: 8%; top: 16%; animation-delay: -1.4s; }
.hero-float:nth-of-type(3) { left: 12%; bottom: 16%; animation-delay: -2.8s; }
.hero-float:nth-of-type(4) { right: 10%; bottom: 22%; animation-delay: -4.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-16px) rotate(4deg); }
}
@media (max-width: 900px) { .hero-float { display: none; } }

/* --------------------------------------------------------------------------
   10. Tools grid
   -------------------------------------------------------------------------- */
.tools-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-chip {
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { color: var(--text); border-color: var(--brand); }
.filter-chip[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}

.tool-search-wrap { position: relative; flex: 1 1 260px; max-width: 340px; }
.tool-search-wrap input { padding-left: 2.4rem; border-radius: var(--radius-full); }
.tool-search-wrap .search-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-subtle); pointer-events: none;
}

.tool-group { margin-bottom: var(--space-7); }
.tool-group[hidden] { display: none; }
.tool-group-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.tool-group-head h3 { font-size: var(--text-xl); }
.tool-group-head .count { font-size: var(--text-sm); color: var(--text-subtle); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-border);
  color: var(--text);
}
.tool-card:hover::before,
.tool-card:focus-visible::before { transform: scaleX(1); }
.tool-card[hidden] { display: none; }

.tool-card-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 1px solid var(--brand-border);
  margin-bottom: var(--space-1);
}
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card h4 { font-size: var(--text-base); font-weight: 700; }
.tool-card p { font-size: var(--text-sm); line-height: 1.55; margin: 0; }
.tool-card .badge { align-self: flex-start; margin-top: auto; padding-top: 0; }

.no-results {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.no-results[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. Features strip
   -------------------------------------------------------------------------- */
.features {
  background: var(--bg-sunken);
  border-block: 1px solid var(--border);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--warning-border);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: var(--text-base); }
.feature p { font-size: var(--text-sm); margin: 0; }

/* CTA band above the footer */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-5);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 54ch; margin: 0 auto var(--space-5); }
.cta-band .btn-secondary { background: #fff; color: var(--brand-strong); border-color: transparent; }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.9); color: var(--brand-strong); }

/* --------------------------------------------------------------------------
   12. Content pages (About, legal, 404)
   -------------------------------------------------------------------------- */
.page-header {
  padding-block: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
}
.page-header h1 { margin-bottom: var(--space-3); }
.page-header p { font-size: var(--text-lg); max-width: 68ch; }
.page-header .updated { font-size: var(--text-sm); color: var(--text-subtle); margin-top: var(--space-3); }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-7); margin-bottom: var(--space-3); }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-4); }
.prose > :first-child { margin-top: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-subtle);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: '/'; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-strong); }

.error-page { text-align: center; padding-block: var(--space-10); }
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   13. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-blob { animation: none; }
  .hero-float { animation: none; }
  .hero-caret { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   14. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-nav, .site-footer, .hero-bg, .hero-float, .toast-stack { display: none !important; }
  body { background: #fff; color: #000; }
}
