/* New Parent Planner · brand pass (Spruce & Gold, after the Salary Calculator).
   CSS only (plus a <title> in the HTML shell). The app is SvelteKit: its CSS arrives later with hashed class names,
   so rules use `html body` + a doubled class to outrank them. Loaded with /tools/_shared/mfp-tools.css. Delete the <link> to revert. */
:root {
  --bg-main: var(--mfp-paper); --text-dark: var(--mfp-text); --brand-purple: var(--mfp-ink); --brand-purple-dark: var(--mfp-ink-2);
  --border-light: var(--mfp-line); --column-bg: var(--mfp-surface-2);
}
html body { font-family: var(--mfp-body); background: var(--mfp-paper); }
html body h1, html body h2, html body h3, html body h4 { font-family: var(--mfp-display); letter-spacing: -0.02em; }

/* header and switchers */
html body .app-header.app-header { background: var(--mfp-card); border-bottom: 1px solid var(--mfp-line); padding: 1.5rem clamp(1rem, 3vw, 2rem); position: relative; }
html body .app-header.app-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 44%; background: var(--mfp-signal); border-radius: 0 3px 0 0; }
html body .app-header.app-header h1 { font-family: var(--mfp-display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
html body .view-nav.view-nav { background: transparent; border-bottom: 1px solid var(--mfp-line); padding: 0.9rem; }
html body .scenario-toggle { background: var(--mfp-surface-2); border: 1px solid var(--mfp-line); border-radius: 9999px; padding: 4px; gap: 2px; }
html body .scenario-toggle button { min-height: 44px; padding: 0.55rem 1.2rem; border: 0; border-radius: 9999px; background: transparent; color: var(--mfp-muted); font-family: var(--mfp-body); font-size: 0.9rem; font-weight: 600; transition: background-color .25s var(--mfp-ease), color .25s; }
html body .scenario-toggle button:hover:not(.active) { background: transparent; color: var(--mfp-ink); }
html body .scenario-toggle button.active { background: var(--mfp-ink); color: var(--mfp-on-ink); box-shadow: 0 2px 8px -2px rgba(var(--mfp-ink-rgb), 0.45); }
html body .view-toggle { background: var(--mfp-surface-2); border: 1px solid var(--mfp-line); border-radius: 9999px; padding: 4px; }
html body .view-toggle button { min-height: 40px; padding: 0.4rem 1.1rem; border-radius: 9999px; font-family: var(--mfp-body); font-size: 0.9rem; font-weight: 600; color: var(--mfp-muted); }
html body .view-toggle button.active { background: var(--mfp-card); color: var(--mfp-ink); box-shadow: 0 1px 3px rgba(20, 32, 31, 0.15); }

/* board: spruce columns, white cards, gold edge for what is due */
html body .kanban-board { gap: 1.25rem; padding: 1rem 0.5rem 1.5rem; scroll-snap-type: x proximity; scrollbar-color: var(--mfp-sage-500) transparent; }
html body .kanban-column.kanban-column { background: var(--mfp-surface-2); border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-lg); padding: 0.75rem 1.1rem 1.1rem; scroll-snap-align: start; }
html body .column-title.column-title { background: var(--mfp-surface-2); color: var(--mfp-text); font-family: var(--mfp-display); font-size: 1.1rem; font-weight: 600; }
html body .task-card.task-card { background: var(--mfp-card); border: 1px solid var(--mfp-line); border-left: 5px solid var(--category-color); border-radius: var(--mfp-r-md); box-shadow: var(--mfp-shadow); padding: 0.9rem 1.1rem; }
html body .task-card.task-card:hover { box-shadow: var(--mfp-lift); transform: translateY(-2px); }
html body .task-card.completed { opacity: 0.72; background: var(--mfp-paper); border-left-color: var(--mfp-hint); }
html body .task-title { font-family: var(--mfp-display); font-size: 1.02rem; letter-spacing: -0.01em; }
html body .task-description { font-size: 0.9rem; color: var(--mfp-muted); }
html body .task-footer { font-size: 0.8rem; color: var(--mfp-muted); }
html body .footer-item.footer-item { background: var(--mfp-surface-2); border-radius: 9999px; color: var(--mfp-ink); padding: 0.2rem 0.7rem; }
html body .due-date.due-date.due-date { background: var(--mfp-warn-bg); color: var(--mfp-warn); font-weight: 600; }
html body .link-item.link-item:hover { background: var(--mfp-sage-300); }
html body .task-checkbox-area { padding: 12px; margin: -12px; }
html body .task-checkbox { transform: scale(1.35); accent-color: var(--mfp-ink); }
html body .add-task-button.add-task-button { background: transparent; color: var(--mfp-ink); border: 1.5px dashed var(--mfp-line-strong); border-radius: 9999px; min-height: 44px; font-family: var(--mfp-body); font-weight: 600; transition: background-color .25s, border-color .25s; }
html body .add-task-button.add-task-button:hover { background: var(--mfp-card); border-color: var(--mfp-ink); }
html body .column-name-badge { background: var(--mfp-ink); border-radius: 9999px; }

/* modals */
html body .modal-backdrop.modal-backdrop { background: rgba(var(--mfp-ink-rgb), 0.78); backdrop-filter: blur(4px); }
html body .modal-content.modal-content { background: var(--mfp-card); border-radius: var(--mfp-r-lg); box-shadow: var(--mfp-lift); padding: clamp(1.25rem, 3vw, 2rem); }
html body .modal-content h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
html body .modal-content label { font: 600 0.7rem var(--mfp-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--mfp-muted); }
html body .modal-content input, html body .modal-content textarea { min-height: 3rem; border: 1px solid var(--mfp-line); border-radius: var(--mfp-r-sm); padding: 0.7rem 0.95rem; font-family: var(--mfp-body); font-size: 1rem; background: #fff; }
html body .modal-content input:focus, html body .modal-content textarea:focus { outline: none; border-color: var(--mfp-signal); box-shadow: 0 0 0 4px rgba(var(--mfp-signal-rgb), 0.28); }
html body .modal-content button { min-height: 44px; border-radius: 9999px; font-family: var(--mfp-body); font-weight: 600; padding: 0.55rem 1.4rem; }
html body .btn-primary.btn-primary { background: var(--mfp-ink); color: var(--mfp-on-ink); }
html body .btn-primary.btn-primary:hover { background: var(--mfp-ink-2); }
html body .btn-secondary.btn-secondary { background: transparent; color: var(--mfp-ink); border: 1px solid var(--mfp-line-strong); }
html body .btn-secondary.btn-secondary:hover { background: var(--mfp-surface-2); }
html body .delete-button.delete-button { color: var(--mfp-danger); border-color: var(--mfp-danger); background: transparent; }
html body .delete-button.delete-button:hover { background: var(--mfp-danger); color: #fff; }
:focus-visible { outline: 2px solid var(--mfp-signal); outline-offset: 2px; }
@media (max-width: 640px) { html body .modal-content input, html body .modal-content textarea { font-size: 16px; } }

/* board: columns wrap onto rows instead of scrolling sideways; each column grows with its tasks.
   Svelte's own stylesheet loads after this one, so the selectors are tripled to out-rank it. */
html body .kanban-board.kanban-board.kanban-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; overflow: visible; min-height: 0; align-items: start; scroll-snap-type: none; }
html body .kanban-column.kanban-column.kanban-column { width: auto; min-width: 0; max-width: none; flex: none; max-height: none; }
html body .kanban-column.kanban-column .task-list.task-list { overflow: visible; max-height: none; }
html body .column-title.column-title { position: static; }
