/* Austin Allergy Report — dashboard styles. Everything is scoped under .aar / .aar-dashboard. */

.aar-dashboard {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.aar {
	--aar-ink: #13201C;
	--aar-ink-2: #2E3D38;
	--aar-muted: #4B5D57;
	--aar-ground: #F3F5F4;
	--aar-line: #E3E8E6;
	--aar-green: #1F4A3E;
	--aar-mint: #9FD3B8;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--aar-ink);
	box-sizing: border-box;
}
.aar *, .aar *::before, .aar *::after { box-sizing: inherit; }
.aar p { margin: 0; }

.aar-h1, .aar-h2, .aar-num, .aar-gauge-num {
	font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.aar .aar-h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
.aar .aar-h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.aar .aar-h3 { margin: 0; font-size: 17px; font-weight: 600; font-family: inherit; }

.aar-eyebrow {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--aar-muted);
}
.aar-eyebrow-light { font-size: 12px; color: var(--aar-mint); }
.aar-muted { font-size: 14px; color: var(--aar-muted); }

.aar-titlebar { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }

.aar-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(19, 32, 28, 0.06), 0 0 0 1px rgba(19, 32, 28, 0.04);
}

.aar-row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.aar-wrap { flex-wrap: wrap; }

/* Hero */
.aar-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 20px;
}
@media (max-width: 900px) {
	.aar-hero { grid-template-columns: minmax(0, 1fr); }
}
.aar-summary { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.aar-summary-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.aar-summary-text > p { font-size: 16px; line-height: 1.55; color: var(--aar-ink-2); }

.aar-gauge { flex: 0 0 240px; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 auto; }
.aar-gauge svg { display: block; max-width: 100%; height: auto; }
.aar-gauge-num { font-size: 40px; line-height: 1; }
.aar-gauge-num span { font-size: 20px; color: var(--aar-muted); }
.aar-gauge-label { font-size: 18px; font-weight: 600; }

.aar-tip { display: flex; gap: 12px; align-items: flex-start; background: var(--aar-ground); border-radius: 10px; padding: 14px 16px; }
.aar-tip svg { flex: 0 0 22px; margin-top: 1px; }
.aar-tip p { font-size: 15px; line-height: 1.5; color: var(--aar-ink-2); }

/* Cedar Watch */
.aar-cedar { background: var(--aar-green); color: #fff; display: flex; flex-direction: column; gap: 14px; box-shadow: none; }
.aar-cedar .aar-h2 { color: #fff; font-size: 22px; }
.aar-cedar-big { display: flex; align-items: baseline; gap: 10px; }
.aar-cedar-big .aar-num { font-size: 48px; line-height: 1; }
.aar-cedar-cat { font-size: 18px; font-weight: 600; }
.aar-bars { display: flex; gap: 6px; align-items: stretch; height: 96px; }
.aar-bar-col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-width: 0; }
.aar-bar { border-radius: 4px; min-height: 4px; max-height: calc(100% - 22px); }
.aar-bar-col span { font-size: 12px; color: #C9D6D1; text-align: center; }
.aar-cedar-note { font-size: 14px; line-height: 1.5; color: #DCE7E3; }

/* Type tiles */
.aar-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.aar-tile { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.aar-tile-val { font-size: 15px; font-weight: 600; text-align: right; }
.aar-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.aar-seg span { height: 10px; border-radius: 3px; display: block; }
.aar-aqi-track { height: 10px; border-radius: 3px; background: var(--aar-line); overflow: hidden; }
.aar-aqi-track div { height: 10px; }

/* Outlook */
.aar-outlook { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.aar-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--aar-ink-2); }
.aar-legend span { display: flex; align-items: center; gap: 6px; }
.aar-legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.aar-chart-wrap { overflow-x: auto; }
.aar-chart { width: 100%; min-width: 560px; height: auto; display: block; }
.aar-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.aar-day { border: 1px solid var(--aar-line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.aar-day.is-today { background: var(--aar-ground); border-color: var(--aar-ground); }
.aar-day-name { font-size: 13px; font-weight: 600; color: var(--aar-muted); }
.aar-day-cat { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.aar-day-cat i { width: 12px; height: 12px; border-radius: 6px; display: inline-block; }

/* Footer + empty state */
.aar-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--aar-muted); }
.aar-empty { background: #F3F5F4; border-radius: 12px; padding: 20px; color: #2E3D38; }

/* Message boxes (1.0.3) */
.aar-banner { border-radius: 12px; padding: 14px 18px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.aar-banner p { margin: 0; }
.aar-banner p + p { margin-top: 6px; }
.aar-banner a { color: inherit; text-decoration: underline; }
.aar-banner-info { background: #E3F2E9; color: #1F4A3E; border: 1px solid #BFE3CC; }
.aar-banner-warning { background: #FFF4D6; color: #6B4600; border: 1px solid #E9D59A; }
.aar-banner-urgent { background: #FBE4E2; color: #8A231E; border: 1px solid #F0B9B4; }

.aar-note { border-left: 0; background: #fff; border-radius: 12px; padding: 16px 20px; margin: -4px 0 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 1px rgba(19, 32, 28, 0.06); }
.aar-note .aar-eyebrow { font-size: 12px; color: #2F6B5A; }
.aar-note-body { font-size: 16px; line-height: 1.55; color: #2E3D38; }
.aar-note-body p { margin: 0; }
.aar-note-body p + p { margin-top: 8px; }

.aar-sponsor { padding: 0; }
.aar-sponsor-link { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 18px 24px; color: inherit; text-decoration: none; border-radius: 16px; }
a.aar-sponsor-link:hover .aar-sponsor-name { text-decoration: underline; }
.aar-sponsor-logo { max-height: 56px; max-width: 180px; width: auto; height: auto; display: block; }
.aar-sponsor-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 240px; min-width: 0; }
.aar-sponsor .aar-eyebrow { font-size: 12px; }
.aar-sponsor-name { font-size: 18px; font-weight: 600; color: #13201C; }
.aar-sponsor-blurb { font-size: 15px; line-height: 1.5; color: #2E3D38; }
.aar-sponsor-blurb p { margin: 0; }

.aar-footer-text p { margin: 0; }
.aar-footer-text a { color: inherit; }

/* Sponsor backgrounds (1.0.5) */
.aar-sponsor-white { background: #fff; }
.aar-sponsor-mint { background: #E3F2E9; box-shadow: none; }
.aar-sponsor-sand { background: #F7EEDC; box-shadow: none; }
.aar-sponsor-gray { background: #E9EDEB; box-shadow: none; }
.aar-sponsor-green { background: #1F4A3E; box-shadow: none; }
.aar-sponsor-green .aar-eyebrow { color: #9FD3B8; }
.aar-sponsor-green .aar-sponsor-name { color: #fff; }
.aar-sponsor-green .aar-sponsor-blurb { color: #DCE7E3; }

/* Allergen close-up (1.0.6) */
.aar-plants { display: flex; flex-direction: column; gap: 16px; }
.aar-plants-head { display: flex; flex-direction: column; gap: 4px; }
.aar-plants-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.aar-plant { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.aar-plant-head { display: flex; align-items: center; gap: 14px; }
.aar-plant-photo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 56px; background: #E3E8E6; }
.aar-plant-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aar-plant-name .aar-h3 { font-size: 19px; }
.aar-plant-today { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.aar-plant-num { font-size: 34px; line-height: 1; }
.aar-plant-cat { font-size: 14px; font-weight: 600; color: #4B5D57; }
.aar-season { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.aar-season.is-in { background: #E3F2E9; color: #1F4A3E; }
.aar-season.is-out { background: #EEF1F0; color: #4B5D57; }
.aar-plant.is-off .aar-plant-num { color: #6B7A75; }
.aar-mini { display: flex; gap: 6px; }
.aar-mini-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.aar-mini-track { height: 56px; display: flex; align-items: flex-end; background: #F3F5F4; border-radius: 4px; }
.aar-mini-bar { width: 100%; border-radius: 4px; }
.aar-mini-col span { font-size: 12px; color: #4B5D57; text-align: center; }
.aar-plant-more { border-top: 1px solid #E3E8E6; padding-top: 10px; }
.aar-plant-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #2F6B5A; padding: 6px 0; min-height: 32px; }
.aar-plant-more dl { margin: 8px 0 0; display: grid; gap: 8px; }
.aar-plant-more dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #4B5D57; }
.aar-plant-more dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #2E3D38; }
