/*
Theme Name: Burien
Theme URI: https://www.burienwa.gov/
Author: Estrada Consulting, Inc.
Description: Block theme for the City of Burien website, built on the WordPress native block editor as Section 3.05 of the RFP requires. Service first navigation, accessible components, one alert band.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: burien
*/

:root { --bu-line: #d7dde3; --bu-primary: #10465a; --bu-primary-light: #15607a; }

body { -webkit-font-smoothing: antialiased; }

/* Skip link: first thing a keyboard user meets. */
.bu-skip { position:absolute; left:-9999px; top:0; background:#fff; color:var(--bu-primary); padding:12px 18px; z-index:999; border:2px solid var(--bu-primary); }
.bu-skip:focus { left:8px; top:8px; }

/* Every focusable thing shows where it is. WCAG 2.2 adds rules about this, so it is not decoration. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #b8521a; outline-offset: 2px; border-radius: 2px;
}

/* Touch targets: WCAG 2.2 target-size is one of the rules the current site fails. */
.bu-nav a, .bu-tiles-public a, .bu-footer a { min-height: 24px; display: inline-flex; align-items: center; }

.bu-alert { border-bottom: 1px solid var(--bu-line); background: #eef4f7; }
.bu-alert--warning { background: #fdf4e7; }
.bu-alert--emergency { background: #fdeaea; }
.bu-alert__inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.bu-alert__headline { font-weight: 700; margin: 0 0 2px; }
.bu-alert__body { margin: 0; }
.bu-alert__link { display: inline-block; margin-top: 6px; }

.bu-embed { margin: 1.5rem 0; }
.bu-embed__frame { width: 100%; min-height: 520px; border: 1px solid var(--bu-line); border-radius: 6px; }
.bu-embed__frame--fixed { width: 760px; max-width: 100%; }
.bu-embed__fallback { margin: 8px 0 0; font-size: 0.9375rem; }
.bu-embed--blocked { border: 1px solid var(--bu-line); border-left: 4px solid #b8521a; padding: 14px 16px; border-radius: 6px; background: #fdf7f2; }
.bu-embed__note { margin: 0 0 6px; }

.bu-tiles-public { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.bu-tiles-public li { margin: 0; }
.bu-tiles-public a { display: block; border: 1px solid var(--bu-line); border-radius: 8px; padding: 16px 18px; text-decoration: none; background: #fff; height: 100%; }
.bu-tiles-public a:hover { border-color: var(--bu-primary); }
.bu-tiles-public strong { display: block; color: var(--bu-primary); font-size: 1.0625rem; }
.bu-tiles-public span { display: block; color: #4d5a63; font-size: 0.9375rem; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
