/* Seattle City Data: Live Seattle design. Everything is scoped under .smcd */
.smcd {
	--smcd-brand: #252a73; /* site header indigo */
	--smcd-navy: #0b2545;
	--smcd-navy-2: #13315c;
	--smcd-primary: #046bd2;
	--smcd-primary-dark: #035aaf;
	--smcd-accent: #ff4f52;
	--smcd-ink: #0f172a;
	--smcd-text: #334155;
	--smcd-muted: #475569;
	--smcd-line: #e2e8f0;
	--smcd-soft: #f0f5fa;
	--smcd-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--smcd-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--smcd-body);
	font-variant-numeric: lining-nums;
	color: var(--smcd-text);
	line-height: 1.6;
	font-size: 16px;
}
/* Full-width page layouts: break out of the theme's content column. */
.smcd-live, .smcd-page { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
body:has(.smcd-live), body:has(.smcd-page) { overflow-x: clip; }
.smcd *, .smcd *::before, .smcd *::after { box-sizing: border-box; }
.smcd [hidden] { display: none !important; }
.smcd a { text-decoration: none; }
.smcd p { margin: 0; }
.smcd .smcd-wrap { max-width: 1304px; margin: 0 auto; padding: 0 20px; }
.smcd .smcd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.smcd .smcd-ico { flex: none; width: 16px; height: 16px; }

/* Hero */
.smcd .smcd-hero {
	position: relative;
	color: #fff;
	padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px);
	background:
		radial-gradient(900px 380px at 85% 0%, rgba(4, 107, 210, 0.42), transparent 60%),
		radial-gradient(700px 320px at -5% 110%, rgba(16, 122, 110, 0.42), transparent 60%),
		linear-gradient(180deg, var(--smcd-brand) 0%, #1b2862 40%, #0e2a4a 100%);
}
.smcd .smcd-kicker {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
	color: #e8eef6; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.smcd .smcd-kicker a { color: #fff; }
.smcd .smcd-kicker a:hover { text-decoration: underline; }
.smcd .smcd-dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--smcd-accent);
	animation: smcd-pulse 2.2s infinite;
}
@keyframes smcd-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 79, 82, 0.6); }
	70% { box-shadow: 0 0 0 10px rgba(255, 79, 82, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 79, 82, 0); }
}
.smcd .smcd-hero h1 {
	font-family: var(--smcd-display); font-weight: 700; color: #fff;
	font-size: clamp(2.4rem, 5.4vw, 4.25rem); line-height: 1.05; letter-spacing: -0.01em;
	margin: 18px 0 16px;
}
.smcd .smcd-lede { max-width: 62ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #dbe4f0; }
.smcd .smcd-updated { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #c9d5e3; font-size: 0.9rem; }
.smcd .smcd-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 36px;
}
.smcd .smcd-stat {
	padding: 16px 18px; border-radius: 14px;
	background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
}
.smcd .smcd-stat strong { display: block; font-family: var(--smcd-display); font-size: 2.1rem; line-height: 1.1; color: #fff; }
.smcd .smcd-stat span { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #c9d5e3; }
.smcd .smcd-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.smcd .smcd-nav a {
	padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: #fff;
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
	transition: background 0.2s;
}
.smcd .smcd-nav a:hover, .smcd .smcd-nav a:focus-visible { background: rgba(255, 255, 255, 0.2); }

/* Sections */
.smcd .smcd-section { padding: clamp(48px, 7vw, 88px) 0; scroll-margin-top: 80px; }
.smcd .smcd-tone-white { background: #fff; }
.smcd .smcd-tone-soft { background: var(--smcd-soft); }
.smcd .smcd-head { max-width: 760px; margin-bottom: 28px; }
.smcd .smcd-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smcd-primary-dark); }
.smcd .smcd-head h2, .smcd .smcd-related h2 {
	font-family: var(--smcd-display); font-weight: 700; color: var(--smcd-ink);
	font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 8px 0 10px;
}
.smcd .smcd-intro { font-size: 1.05rem; color: var(--smcd-muted); }
.smcd .smcd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.smcd .smcd-source { font-size: 0.85rem; color: var(--smcd-muted); }

/* Cards */
.smcd .smcd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.smcd .smcd-card {
	display: flex; flex-direction: column; gap: 8px;
	padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--smcd-line);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.smcd .smcd-card:hover { transform: translateY(-2px); border-color: #c5d6ea; box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.28); }
.smcd .smcd-card-title { margin: 0; font-family: var(--smcd-body); font-size: 1.05rem; font-weight: 650; line-height: 1.35; color: var(--smcd-ink); }
.smcd .smcd-line { display: flex; align-items: flex-start; gap: 8px; font-size: 0.93rem; color: var(--smcd-muted); }
.smcd .smcd-line .smcd-ico { margin-top: 4px; color: #64748b; }
.smcd .smcd-pill {
	align-self: flex-start; padding: 4px 10px; border-radius: 999px;
	background: #e7f0fb; color: #034a8f; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.smcd .smcd-card-link {
	margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px;
	color: var(--smcd-primary-dark); font-weight: 600; font-size: 0.92rem;
}
.smcd .smcd-card-link .smcd-ico { transition: transform 0.2s; }
.smcd .smcd-card-link:hover { text-decoration: underline; }
.smcd .smcd-card-link:hover .smcd-ico { transform: translateX(3px); }
.smcd .smcd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.smcd .smcd-chips li { margin: 0; padding: 4px 10px; border-radius: 999px; background: #eef2f7; color: var(--smcd-text); font-size: 0.82rem; }

/* Search + buttons */
.smcd .smcd-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.smcd .smcd-field { position: relative; flex: 1 1 320px; max-width: 520px; margin: 0; }
.smcd .smcd-field .smcd-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #64748b; width: 18px; height: 18px; }
.smcd .smcd-search {
	width: 100%; height: 50px; margin: 0; padding: 0 16px 0 44px;
	font: inherit; font-size: 1rem; color: var(--smcd-ink); background: #fff;
	border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.smcd .smcd-search:focus { outline: none; border-color: var(--smcd-primary); box-shadow: 0 0 0 4px rgba(4, 107, 210, 0.18); }
.smcd .smcd-count { font-size: 0.9rem; font-weight: 500; color: var(--smcd-muted); }
.smcd .smcd-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
	font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1.2; cursor: pointer;
	border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.smcd .smcd-btn-primary { background: var(--smcd-primary); color: #fff; }
.smcd .smcd-btn-primary:hover, .smcd .smcd-btn-primary:focus-visible { background: var(--smcd-primary-dark); color: #fff; }
.smcd .smcd-btn-ghost { background: transparent; color: var(--smcd-primary-dark); border-color: #b9cfe7; }
.smcd .smcd-btn-ghost:hover, .smcd .smcd-btn-ghost:focus-visible { background: #e7f0fb; color: var(--smcd-primary-dark); }
.smcd .smcd-more-wrap { text-align: center; margin-top: 24px; }
.smcd .smcd-empty { margin-top: 16px; padding: 24px; text-align: center; color: var(--smcd-muted); border: 1px dashed #cbd5e1; border-radius: 14px; }

/* Weather */
.smcd .smcd-weather { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; align-items: stretch; }
.smcd .smcd-wx-now {
	display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; color: #fff;
	background: linear-gradient(160deg, var(--smcd-brand), var(--smcd-navy-2));
}
.smcd .smcd-wx-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c9d5e3; }
.smcd .smcd-wx-main { display: flex; align-items: center; gap: 16px; }
.smcd .smcd-wx-main img { border-radius: 14px; }
.smcd .smcd-wx-temp { font-family: var(--smcd-display); font-size: 3.4rem; line-height: 1; font-weight: 700; color: #fff; }
.smcd .smcd-wx-short { font-size: 1.1rem; font-weight: 600; color: #fff; }
.smcd .smcd-wx-detail { font-size: 0.92rem; color: #dbe4f0; }
.smcd .smcd-wx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.smcd .smcd-wx-day { padding: 14px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--smcd-line); text-align: center; }
.smcd .smcd-wx-day img { display: block; margin: 6px auto; border-radius: 10px; }
.smcd .smcd-wx-dname { font-size: 0.85rem; font-weight: 700; color: var(--smcd-ink); }
.smcd .smcd-wx-dtemp { font-family: var(--smcd-display); font-size: 1.45rem; font-weight: 700; color: var(--smcd-ink); }
.smcd .smcd-wx-dshort { font-size: 0.8rem; color: var(--smcd-muted); line-height: 1.35; min-height: 2.7em; }
.smcd .smcd-wx-rain { margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--smcd-primary-dark); }

/* Events */
.smcd .smcd-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.smcd .smcd-event { display: flex; gap: 16px; align-items: flex-start; margin: 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--smcd-line); }
.smcd .smcd-date { flex: none; width: 58px; padding: 8px 0; text-align: center; border-radius: 12px; background: var(--smcd-brand); color: #fff; }
.smcd .smcd-date span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.smcd .smcd-date strong { display: block; font-family: var(--smcd-display); font-size: 1.55rem; line-height: 1.1; }
.smcd .smcd-event h3 { margin: 0 0 6px; font-family: var(--smcd-body); font-size: 1rem; font-weight: 650; line-height: 1.35; }
.smcd .smcd-event h3 a { color: var(--smcd-ink); }
.smcd .smcd-event h3 a:hover { color: var(--smcd-primary-dark); text-decoration: underline; }
.smcd .smcd-event .smcd-line { font-size: 0.88rem; }

/* News */
.smcd .smcd-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 32px; }
.smcd .smcd-news li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--smcd-line); }
.smcd .smcd-news-meta { display: flex; gap: 10px; font-size: 0.8rem; color: var(--smcd-muted); }
.smcd .smcd-news-src { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--smcd-primary-dark); }
.smcd .smcd-news a { display: block; margin-top: 6px; font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--smcd-ink); }
.smcd .smcd-news a:hover { color: var(--smcd-primary-dark); text-decoration: underline; }

/* Ranked lists */
.smcd .smcd-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.smcd .smcd-ranks-single { grid-template-columns: minmax(0, 760px); }
.smcd .smcd-rankbox { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--smcd-line); }
.smcd .smcd-rankbox h3 { margin: 0 0 14px; font-family: var(--smcd-body); font-size: 1rem; font-weight: 700; color: var(--smcd-ink); }
.smcd .smcd-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.smcd .smcd-rank li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; margin: 0; }
.smcd .smcd-rank-n { font-weight: 700; color: #64748b; text-align: right; font-variant-numeric: tabular-nums; }
.smcd .smcd-rank-main { display: block; min-width: 0; }
.smcd .smcd-rank-label { display: block; font-weight: 600; color: var(--smcd-ink); }
.smcd .smcd-rank-sub { display: block; font-size: 0.85rem; color: var(--smcd-muted); }
.smcd .smcd-bar { display: block; height: 6px; margin-top: 6px; border-radius: 999px; background: #e7eef7; overflow: hidden; }
.smcd .smcd-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--smcd-primary), #3d93e8); }
.smcd .smcd-rank-v { font-size: 0.9rem; color: var(--smcd-muted); font-variant-numeric: tabular-nums; }

/* Related guides, credits, admin notes, generic table */
.smcd .smcd-chiplinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.smcd .smcd-chiplinks a {
	padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.93rem;
	color: var(--smcd-primary-dark); background: #fff; border: 1px solid #c5d6ea; transition: background 0.2s;
}
.smcd .smcd-chiplinks a:hover, .smcd .smcd-chiplinks a:focus-visible { background: #e7f0fb; }
.smcd .smcd-chiplinks .smcd-chiplink-hub { background: var(--smcd-primary); border-color: var(--smcd-primary); color: #fff; }
.smcd .smcd-chiplinks .smcd-chiplink-hub:hover { background: var(--smcd-primary-dark); }
.smcd .smcd-credits { padding: 36px 0; }
.smcd .smcd-credits p { max-width: 80ch; font-size: 0.9rem; color: var(--smcd-muted); }
.smcd .smcd-admin-note { margin: 16px 0; padding: 12px 16px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; font-size: 0.9rem; }
.smcd-tablewrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; margin: 1em 0; }
.smcd-tablewrap .smcd-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 0; }
.smcd-tablewrap .smcd-table th { background: #f0f5fa; text-align: left; padding: 10px 14px; color: #0f172a; font-weight: 600; border: 0; }
.smcd-tablewrap .smcd-table td { padding: 10px 14px; border: 0; border-top: 1px solid #e2e8f0; color: #334155; }

/* Place pages: photo hero, article, fact box, image cards */
.smcd .smp-hero-img {
	min-height: 400px; display: flex; align-items: flex-end;
	background-image: linear-gradient(180deg, rgba(17, 24, 58, 0.35) 0%, rgba(12, 20, 45, 0.88) 100%), var(--smp-hero);
	background-size: cover; background-position: center;
}
.smcd .smp-hero-img .smcd-wrap { width: 100%; }
.smcd .smp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.88rem; color: #dbe4f0; }
.smcd .smp-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.smcd .smp-hero h1 { margin-top: 14px; }
.smcd .smp-credit { padding-top: 8px; font-size: 0.78rem; color: var(--smcd-muted); }
.smcd .smp-credit a { color: var(--smcd-muted); text-decoration: underline; }
.smcd .smp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.smcd .smp-article { max-width: 72ch; font-size: 1.07rem; line-height: 1.8; color: #1f2937; }
.smcd .smp-article h2 { font-family: var(--smcd-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.2; color: var(--smcd-ink); margin: 1.8em 0 0.5em; }
.smcd .smp-article > h2:first-child { margin-top: 0; }
.smcd .smp-article h3 { font-family: var(--smcd-body); font-size: 1.12rem; font-weight: 700; color: var(--smcd-ink); margin: 1.4em 0 0.3em; }
.smcd .smp-article p { margin: 0 0 1em; }
.smcd .smp-article ul, .smcd .smp-article ol { margin: 0 0 1.1em 1.25em; padding: 0; }
.smcd .smp-article li { margin: 0.35em 0; }
.smcd .smp-article a { color: var(--smcd-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.smcd .smp-pending { padding: 18px 20px; border-radius: 12px; background: var(--smcd-soft); color: var(--smcd-muted); }
.smcd .smp-facts { position: sticky; top: 100px; }
.smcd .smp-factbox { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--smcd-line); box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35); }
.smcd .smp-factbox h2 { margin: 0 0 12px; font-family: var(--smcd-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--smcd-primary-dark); }
.smcd .smp-factbox dl { margin: 0 0 16px; }
.smcd .smp-factbox dl > div { padding: 10px 0; border-top: 1px solid var(--smcd-line); }
.smcd .smp-factbox dl > div:first-child { padding-top: 0; border-top: 0; }
.smcd .smp-factbox dt { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--smcd-muted); }
.smcd .smp-factbox dd { margin: 2px 0 0; font-weight: 500; color: var(--smcd-ink); }
.smcd .smp-factbox dd a { color: var(--smcd-primary-dark); text-decoration: underline; }
.smcd .smp-directions { width: 100%; justify-content: center; }
.smcd .smp-map { display: block; width: 100%; height: 220px; margin-top: 14px; border: 0; border-radius: 12px; }
.smcd .smp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.smcd .smp-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--smcd-line); color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.smcd .smp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(15, 23, 42, 0.3); }
.smcd .smp-card-img { display: block; aspect-ratio: 16 / 10; background-color: #e2e8f0; background-size: cover; background-position: center; }
.smcd .smp-card-noimg { background-image: linear-gradient(135deg, var(--smcd-brand), #0e2a4a); }
.smcd .smp-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.smcd .smp-card-title { font-size: 1.05rem; font-weight: 650; line-height: 1.35; color: var(--smcd-ink); }
.smcd .smp-card-meta { font-size: 0.85rem; color: var(--smcd-muted); }
.smcd .smp-card-ex { font-size: 0.9rem; color: var(--smcd-text); }
.smcd .smp-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.smcd .smp-pages a, .smcd .smp-pages span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--smcd-line); color: var(--smcd-ink); }
.smcd .smp-pages .current { background: var(--smcd-brand); border-color: var(--smcd-brand); color: #fff; }

@media (max-width: 1100px) {
	.smcd .smcd-weather { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
	.smcd .smp-layout { grid-template-columns: 1fr; gap: 32px; }
	.smcd .smp-facts { position: static; }
}
@media (max-width: 760px) {
	.smcd .smcd-wx-days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 124px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
	.smcd .smcd-wx-day { scroll-snap-align: start; }
	.smcd .smcd-events, .smcd .smcd-news { grid-template-columns: 1fr; }
	.smcd .smcd-wrap { padding: 0 16px; }
	.smcd .smcd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.smcd *, .smcd *::before, .smcd *::after { transition: none !important; animation: none !important; }
}
