/* Pollen Forecast & Allergy Tracker - Scoped CSS */
:root {
  --pfat-primary: #059669;
  --pfat-primary-hover: #047857;
  --pfat-surface: #ffffff;
  --pfat-bg: #f0fdf4;
  --pfat-text: #0f172a;
  --pfat-text-muted: #64748b;
  --pfat-border: #e2e8f0;
  --pfat-radius: 10px;
  --pfat-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --pfat-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --pfat-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.pfat-body {
  margin: 0;
  padding: 0;
  font-family: var(--pfat-font-sans);
  background-color: var(--pfat-bg);
  color: var(--pfat-text);
  line-height: 1.5;
}

.pfat-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.pfat-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pfat-brand {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.pfat-tagline {
  font-size: 0.85rem;
  color: #a7f3d0;
}

/* Intro */
.pfat-intro-section {
  background: #ffffff;
  border-bottom: 1px solid var(--pfat-border);
  padding: 32px 0 24px;
  text-align: center;
}

.pfat-main-title {
  margin: 0 0 10px;
  font-size: 2.1rem;
  font-weight: 800;
  color: #064e3b;
  letter-spacing: -0.02em;
}

.pfat-main-subtitle {
  margin: 0 auto;
  max-width: 700px;
  font-size: 1.05rem;
  color: var(--pfat-text-muted);
}

/* Main */
.pfat-main {
  padding: 28px 0 48px;
}

/* Ad slots */
.pfat-ad-container {
  min-height: 280px;
  background-color: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--pfat-radius);
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Tabs */
.pfat-tabs-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--pfat-border);
  padding-bottom: 4px;
}

.pfat-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pfat-text-muted);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.15s ease;
}

.pfat-tab-btn:hover {
  color: var(--pfat-primary);
  background: #e6fcf5;
}

.pfat-tab-btn-active {
  color: var(--pfat-primary);
  border-bottom: 3px solid var(--pfat-primary);
  background: #ffffff;
}

.pfat-tab-panel {
  display: block;
}

.pfat-tab-panel[hidden] {
  display: none;
}

/* Cards */
.pfat-card {
  background: var(--pfat-surface);
  border: 1px solid var(--pfat-border);
  border-radius: var(--pfat-radius);
  padding: 24px;
  box-shadow: var(--pfat-shadow);
  margin-bottom: 24px;
}

.pfat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.pfat-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #064e3b;
}

/* Badges */
.pfat-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pfat-badge-primary {
  background: #d1fae5;
  color: #065f46;
}

.pfat-badge-success {
  background: #dcfce7;
  color: #15803d;
}

/* Presets & Chips */
.pfat-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.pfat-presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pfat-text-muted);
}

.pfat-chip {
  background: #f1f5f9;
  border: 1px solid var(--pfat-border);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
}

.pfat-chip:hover {
  background: #e2e8f0;
}

.pfat-chip-active {
  background: var(--pfat-primary);
  color: #ffffff;
  border-color: var(--pfat-primary);
}

/* Search Row */
.pfat-search-row {
  margin-bottom: 8px;
}

.pfat-form-group {
  margin-bottom: 12px;
}

.pfat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.pfat-search-wrap {
  display: flex;
  gap: 10px;
}

.pfat-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--pfat-border);
  border-radius: 6px;
  outline: none;
}

.pfat-input:focus {
  border-color: var(--pfat-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.pfat-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--pfat-border);
  border-radius: 6px;
  outline: none;
  background-color: #fff;
}

.pfat-select:focus {
  border-color: var(--pfat-primary);
}

/* Buttons */
.pfat-btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pfat-btn-primary {
  background: var(--pfat-primary);
  color: #ffffff;
}

.pfat-btn-primary:hover {
  background: var(--pfat-primary-hover);
}

.pfat-btn-secondary {
  background: #e2e8f0;
  color: #1e293b;
}

.pfat-btn-secondary:hover {
  background: #cbd5e1;
}

.pfat-btn-xs {
  background: #f1f5f9;
  border: 1px solid var(--pfat-border);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  color: #334155;
}

.pfat-btn-xs:hover {
  background: #e2e8f0;
}

.pfat-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Hero Status Card */
.pfat-hero-card {
  background: #064e3b;
  color: #ffffff;
  border-radius: var(--pfat-radius);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.pfat-hero-main {
  flex: 1;
  min-width: 280px;
}

.pfat-hero-city {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.pfat-hero-score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.pfat-hero-score {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.pfat-hero-label-wrap {
  display: flex;
  flex-direction: column;
}

.pfat-hero-status {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.pfat-hero-scale {
  font-size: 0.75rem;
  color: #a7f3d0;
  margin-top: 4px;
}

.pfat-hero-summary {
  margin: 0;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.pfat-hero-weather {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 8px;
}

.pfat-weather-metric {
  display: flex;
  flex-direction: column;
}

.pfat-metric-name {
  font-size: 0.75rem;
  color: #a7f3d0;
  text-transform: uppercase;
}

.pfat-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Category Levels */
.pfat-level-low {
  background: #dcfce7;
  color: #166534;
}

.pfat-level-moderate {
  background: #fef9c3;
  color: #854d0e;
}

.pfat-level-high {
  background: #fed7aa;
  color: #9a3412;
}

.pfat-level-very-high {
  background: #fee2e2;
  color: #991b1b;
}

/* Section Headings */
.pfat-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #064e3b;
  margin: 28px 0 16px;
}

/* Breakdown Grid */
.pfat-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pfat-category-card {
  background: #ffffff;
  border: 1px solid var(--pfat-border);
  border-radius: var(--pfat-radius);
  padding: 18px;
  box-shadow: var(--pfat-shadow);
}

.pfat-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pfat-cat-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.pfat-cat-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.pfat-meter {
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pfat-meter-bar {
  height: 100%;
  border-radius: 9999px;
}

.pfat-bar-low { background: #22c55e; }
.pfat-bar-moderate { background: #eab308; }
.pfat-bar-high { background: #f97316; }
.pfat-bar-very-high { background: #ef4444; }

.pfat-cat-desc {
  font-size: 0.85rem;
  color: #475569;
  margin: 0 0 12px;
  line-height: 1.4;
}

.pfat-species-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pfat-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  color: #334155;
}

/* Forecast Table */
.pfat-forecast-table-wrap, .pfat-history-table-wrap {
  background: #ffffff;
  border: 1px solid var(--pfat-border);
  border-radius: var(--pfat-radius);
  overflow-x: auto;
  box-shadow: var(--pfat-shadow);
  margin-bottom: 24px;
}

.pfat-forecast-table, .pfat-history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.pfat-forecast-table th, .pfat-forecast-table td,
.pfat-history-table th, .pfat-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.pfat-forecast-table th, .pfat-history-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Pills in table */
.pfat-pill {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
}

.pfat-pill-danger { background: #fee2e2; color: #991b1b; }
.pfat-pill-warning { background: #fef9c3; color: #854d0e; }
.pfat-pill-success { background: #dcfce7; color: #166534; }

/* Tracker Tab Specifics */
.pfat-tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.pfat-text-muted {
  font-size: 0.9rem;
  color: var(--pfat-text-muted);
  line-height: 1.5;
}

/* Advisory Cards */
.pfat-advisory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.pfat-advisory-card {
  background: #f8fafc;
  border: 1px solid var(--pfat-border);
  border-radius: var(--pfat-radius);
  padding: 18px;
}

.pfat-advisory-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pfat-primary);
}

.pfat-advisory-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.5;
}

.pfat-advisory-list li {
  margin-bottom: 8px;
}

/* Disclaimer */
.pfat-disclaimer {
  background: #f8fafc;
  border-top: 1px solid var(--pfat-border);
  padding: 16px 0;
  font-size: 0.8rem;
  color: #64748b;
}

.pfat-disclaimer-text {
  margin: 0;
}

/* Guide Section */
.pfat-guide-section {
  background: #ffffff;
  padding: 40px 0;
  border-top: 1px solid var(--pfat-border);
}

.pfat-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0 0 12px;
}

.pfat-guide-intro {
  font-size: 0.95rem;
  color: #475569;
  max-width: 800px;
  margin: 0 0 24px;
}

.pfat-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pfat-guide-card {
  border: 1px solid var(--pfat-border);
  border-radius: var(--pfat-radius);
  padding: 18px;
  background: #f0fdf4;
}

.pfat-guide-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #065f46;
}

.pfat-guide-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #334155;
}

/* FAQ */
.pfat-faq-section {
  padding: 32px 0;
  background: #ffffff;
  border-top: 1px solid var(--pfat-border);
}

.pfat-faq-item {
  margin-bottom: 18px;
}

.pfat-faq-q {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.pfat-faq-a {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
}

.pfat-footer p {
  margin: 0;
}

.pfat-consent-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --pfat-primary: #62d2af;
  --pfat-primary-hover: #59cfad;
  --pfat-surface: var(--tf-surface);
  --pfat-bg: var(--tf-surface);
  --pfat-text: var(--tf-ink);
  --pfat-text-muted: var(--tf-ink-faint);
  --pfat-border: var(--tf-surface);
}
