/* Irad Gidromet: gidromet.iradgov.org (frame shared with iradgov.org) */
:root {
  /* crimson, gold and blue of the State Emblem (2009) */
  --crimson: #a8101a;
  --crimson-deep: #6d0710;
  --crimson-wash: #f8e7e6;
  --ink: #1c222c;
  --ink-2: #3a4250;
  --muted: #646b78;
  --line: #ddd7cc;
  --paper: #fbfaf7;
  --stone: #f2eee6;
  --gold: #d4a72c;
  --gold-soft: #ecc75a;
  --gold-deep: #a87d14;
  --gold-ink: #6b4c06;
  --blue: #1d5296;
  --blue-deep: #123a70;
  --blue-wash: #e9eff7;
  --ivory: #fff6d5;
  --ok: #2f6b3f;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--crimson-deep); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.25; font-weight: 600; }
h1 { font-size: 2rem; margin: 0 0 .4em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* utility bar */
.util { background: var(--ink); color: #d9dde4; font-size: .82rem; }
.util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.util a { color: #fff; }
.util .left { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.util .clock { color: #aab1bd; white-space: nowrap; }
.langs { display: flex; gap: 2px; }
.langs button { background: transparent; border: 1px solid transparent; color: #d9dde4; font: inherit; padding: 3px 8px; cursor: pointer; border-radius: 2px; }
.langs button[aria-pressed="true"] { border-color: var(--gold); color: #fff; }
.langs button:hover { color: #fff; }

/* masthead */
.mast { background: #fff; border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; gap: 18px; padding-top: 16px; padding-bottom: 16px; }
.mast .emb { width: 76px; height: 76px; flex: none; }
.mast .ttl { flex: 1; min-width: 0; }
.mast .ttl .k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mast .ttl .n { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--crimson-deep); line-height: 1.2; }
.mast .ttl .s { font-size: .92rem; color: var(--ink-2); }
.mast .home-link { flex: 1; color: inherit; text-decoration: none; display: flex; align-items: center; gap: 18px; min-width: 0; }
.mast .eirad { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: .9rem; background: var(--paper); }
.mast .eirad b { color: #0f5f63; font-family: var(--sans); }
.mast .eirad:hover { border-color: #0f5f63; }

/* nav */
.nav { background: var(--crimson); border-bottom: 3px solid var(--gold); position: relative; }
.nav .wrap { display: flex; align-items: stretch; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav .menu { display: flex; flex-wrap: wrap; }
.nav a, .nav .dd-btn { display: block; color: var(--ivory); text-decoration: none; padding: 11px 9px; font-size: .9rem; }
.nav a:hover, .nav .dd-btn:hover { background: var(--crimson-deep); color: #fff; }
.nav a[aria-current="page"], .nav .dd.here > .dd-btn { background: var(--crimson-deep); box-shadow: inset 0 -3px 0 var(--gold-soft); }
/* drop-down groups */
.nav .dd { position: relative; }
.nav .dd-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; font-family: inherit; line-height: inherit; cursor: pointer; text-align: left; }
.nav .dd-btn .caret { flex: none; transition: transform .15s; }
.nav .dd.open > .dd-btn .caret { transform: rotate(180deg); }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 220px; background: var(--crimson-deep); border-top: 3px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.22); padding: 4px 0; }
.nav .dd.open > .sub { display: block; }
.nav .sub a { padding: 9px 16px; white-space: nowrap; }
.nav .sub a:hover { background: var(--crimson); }
.nav .sub a[aria-current="page"] { background: var(--crimson); box-shadow: inset 3px 0 0 var(--gold-soft); }
@media (hover: hover) and (min-width: 961px) { .nav .dd:hover > .sub { display: block; } }
.nav .burger { display: none; background: none; border: 0; color: var(--ivory); font: inherit; padding: 11px 0; cursor: pointer; align-items: center; gap: 8px; }
.nav .burger span.bars { display: inline-block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* ornament: koshkar muyuz band */
.orn { height: 14px; background: url("orn.svg") repeat-x center / auto 14px; opacity: .6; }

/* layout */
main { display: block; }
.page { padding: 28px 0 56px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 820px; }
.grid { display: grid; gap: 24px; }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); padding: 20px 22px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card.tone { background: var(--stone); }
.sect-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--blue); margin: 34px 0 14px; padding-bottom: 6px; }
.sect-h h2 { margin: 0; font-size: 1.25rem; }
.sect-h a { font-size: .9rem; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--crimson-deep); background: var(--crimson-wash); padding: 2px 7px; border-radius: 2px; }
.tag.gold { background: #f6edd6; color: var(--gold-ink); }
.tag.blue { background: var(--blue-wash); color: var(--blue-deep); }
.tag.grey { background: #ececec; color: #4a4f57; }

/* feature (LG activity) */
.feature { background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.feature .datebox { background: var(--crimson); color: var(--ivory); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.feature .datebox .d { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.feature .datebox .m { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.feature .datebox .emb { width: 54px; opacity: .9; }
.feature .body { padding: 20px 24px; }
.feature h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.feature h3 a { color: var(--ink); text-decoration: none; }
.feature h3 a:hover { color: var(--crimson); text-decoration: underline; }

/* lists */
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.plist li:first-child { padding-top: 4px; }
.plist .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 3px; }
.plist .t { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.plist .t a { color: var(--ink); text-decoration: none; }
.plist .t a:hover { color: var(--crimson); text-decoration: underline; }
.plist .s { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }

/* rate widget */
.rate .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--serif); }
.rate .big .v { font-size: 2.5rem; color: var(--crimson-deep); font-weight: 600; line-height: 1.1; }
.rate .big .u { font-size: 1rem; color: var(--ink-2); }
.rate table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.rate td { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.rate td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rate .src { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* quick links */
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; padding: 12px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.3; height: 100%; }
.quick a:hover { border-color: var(--crimson); color: var(--crimson); }
.quick .ic { width: 26px; height: 26px; flex: none; color: var(--crimson); }

/* notices */
.notice { border-left: 4px solid var(--blue); background: #fff; padding: 12px 16px; margin-bottom: 10px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice .meta { font-size: .8rem; color: var(--muted); }
.notice .t { font-weight: 600; margin: 2px 0; }
.notice p { margin: 0; font-size: .93rem; }

/* person */
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.portrait { background: var(--stone); border: 1px solid var(--line); aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: .85rem; }
.portrait img { width: 96px; margin-bottom: 12px; }
.facts { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 6px 0 18px; }
.facts th { text-align: left; font-weight: 600; color: var(--ink-2); width: 34%; vertical-align: top; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.facts td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.statement { background: var(--crimson-wash); border: 1px solid #e6cfca; padding: 16px 20px; margin: 18px 0; }
.statement .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--crimson-deep); font-weight: 600; }

/* addresses */
.addr { border: 1px solid var(--line); background: #fff; margin-bottom: 12px; }
.addr summary { cursor: pointer; padding: 14px 18px; list-style: none; display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; }
.addr summary::-webkit-details-marker { display: none; }
.addr summary .d { font-size: .85rem; color: var(--muted); }
.addr summary .t { font-family: var(--serif); font-weight: 600; }
.addr summary .x { color: var(--crimson); font-size: .85rem; white-space: nowrap; }
.addr[open] summary .x .o { display: none; }
.addr:not([open]) summary .x .c { display: none; }
.addr .tx { padding: 0 18px 16px 162px; color: var(--ink-2); }
.addr .tx .note { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; background: #fff; font-size: .94rem; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
table.data thead th { background: var(--blue); font-weight: 600; color: #fff; border-bottom: 2px solid var(--blue-deep); }
table.data td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tr.past td { color: var(--muted); }
table.data tr.next td { background: #fbf4e2; }

/* departments */
.dept { background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.dept h3 { margin: 0 0 4px; font-size: 1.02rem; }
.dept .head { font-size: .88rem; color: var(--ink-2); margin: 0 0 6px; }
.dept p { font-size: .92rem; margin: 0; color: var(--ink-2); }
.dept .adr { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* documents */
.doc { background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.doc header { padding: 14px 18px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--stone); }
.doc .no { font-size: .82rem; color: var(--crimson-deep); font-weight: 600; letter-spacing: .03em; }
.doc h3 { margin: 4px 0 2px; font-size: 1.08rem; }
.doc .body { padding: 14px 18px; }
.doc .body ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc .body li { margin-bottom: .4em; }
.doc .sig { font-size: .88rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px; }
.doc details > summary { cursor: pointer; color: var(--crimson); font-size: .92rem; padding: 0 18px 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.filters button { border: 1px solid var(--line); background: #fff; font: inherit; font-size: .88rem; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--crimson); color: var(--ivory); border-color: var(--crimson); }

/* release page */
.release { background: #fff; border: 1px solid var(--line); padding: 26px 30px; }
.release h1 { font-size: 1.7rem; }
.release .meta { color: var(--muted); font-size: .88rem; margin-bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.release .body p { max-width: 760px; }
.release .contact { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 22px; padding-top: 12px; }
.trnote { background: var(--blue-wash); border: 1px solid #c9d6ea; border-left: 4px solid var(--blue); padding: 8px 12px; font-size: .86rem; color: var(--blue-deep); margin-bottom: 14px; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; font-size: .9rem; }

/* symbols */
.flagbox { background: var(--stone); border: 1px solid var(--line); padding: 18px; text-align: center; }
.flagbox img { width: 100%; max-width: 420px; aspect-ratio: 1.41 / 1; object-fit: cover; border: 1px solid #00000022; }

/* contact */
.addrbox { font-style: normal; line-height: 1.7; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 12px; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* footer */
.foot { background: var(--blue-deep); color: #d3dae6; font-size: .9rem; margin-top: 0; border-top: 4px solid var(--gold); }
.foot .wrap { padding-top: 34px; padding-bottom: 24px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.foot a { color: #e9ecf1; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot .fine { border-top: 1px solid #ffffff2e; margin-top: 24px; padding-top: 14px; font-size: .8rem; color: #b9c3d3; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot .femb { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.foot .femb img { width: 42px; }
.foot .tulpar-ch { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; line-height: 1.25; }
.foot .tulpar-ch img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.foot .tulpar-ch small { display: block; color: #b9c3d3; font-size: .78rem; }

/* 404 */
.nf { text-align: center; padding: 60px 0; }
.nf img { width: 110px; opacity: .9; }

.loading { color: var(--muted); font-size: .9rem; }

@media (max-width: 960px) {
  .g-main, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .nav .burger { display: inline-flex; }
  .nav .menu { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav.open .menu { display: flex; }
  .nav .dd-btn { width: 100%; justify-content: space-between; }
  .nav .sub { position: static; min-width: 0; box-shadow: none; border-top: 0; border-left: 3px solid var(--gold); margin: 0 0 4px 10px; padding: 0; }
  .nav .sub a { white-space: normal; padding: 9px 12px; }
  .nav .wrap { flex-direction: column; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.6rem; }
  .wrap { padding: 0 16px; }
  .g-2 { grid-template-columns: minmax(0, 1fr); }
  .mast .wrap { gap: 12px; flex-wrap: wrap; }
  .mast .emb { width: 52px; height: 52px; }
  .mast .ttl .n { font-size: 1.2rem; }
  .mast .ttl .s { font-size: .82rem; }
  .mast .eirad { width: 100%; justify-content: center; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .datebox { flex-direction: row; align-items: center; gap: 14px; padding: 12px 18px; }
  .feature .datebox .d { font-size: 1.9rem; }
  .feature .datebox .emb { width: 34px; margin-left: auto; }
  .feature .body { padding: 16px 18px; }
  .quick { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: minmax(0, 1fr); }
  .portrait { aspect-ratio: auto; max-width: 260px; }
  .addr summary { grid-template-columns: minmax(0, 1fr) auto; }
  .addr summary .d { grid-column: 1 / -1; }
  .addr .tx { padding: 0 18px 16px; }
  .release { padding: 18px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { margin-top: 6px; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .util .clock { display: none; }
}
@media print {
  .util, .nav, .foot, .mast .eirad, .langs { display: none !important; }
  body { background: #fff; }
}

/* flag status */
.flag-now { display: flex; gap: 28px; align-items: stretch; margin: 8px 0 28px; border-top: 4px solid var(--crimson); }
.flag-pole { position: relative; width: 150px; min-height: 190px; flex: none; }
.flag-pole .staff { position: absolute; left: 8px; top: 0; bottom: 0; width: 5px; background: linear-gradient(90deg,#8d8d8d,#d9d9d9,#8d8d8d); border-radius: 2px; }
.flag-pole .staff::before { content: ""; position: absolute; top: -7px; left: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); }
.flag-pole .cloth { position: absolute; left: 13px; width: 130px; height: auto; top: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: top .8s ease; }
.flag-now.is-half .flag-pole .cloth { top: 72px; }
.flag-k { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flag-state { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--crimson-deep); margin: 2px 0 6px; }
.flag-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; }
.flag-dl dt { font-weight: 600; color: var(--ink-2); }
.flag-dl dd { margin: 0; }
.flag-until, .flag-next { margin: 8px 0 0; }
table.flag-tbl td.num { width: 13em; }
@media (max-width: 600px) { .flag-now { flex-direction: column; gap: 12px; } .flag-pole { width: 120px; min-height: 170px; } .flag-pole .cloth { width: 100px; } .flag-now.is-half .flag-pole .cloth { top: 80px; } table.flag-tbl td.num { white-space: normal; width: 34%; text-align: left; } }

/* flag status in the utility bar */
.util .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.util a.flagst { display: inline-flex; align-items: center; gap: 6px; color: #e3e9f3; text-decoration: none; white-space: nowrap; background: var(--blue); padding: 2px 9px 2px 7px; border-radius: 2px; }
.util a.flagst:hover .fs-v { text-decoration: underline; }
.flagst .fs-ic { width: 16px; height: 18px; flex: none; }
.flagst .fs-v { color: #fff; font-weight: 600; }
.flagst.is-half .fs-v { color: var(--gold-soft); }
.util a.flagst:hover { background: #24609f; }
@media (max-width: 680px) { .flagst .fs-k { display: none; } .util .right { gap: 8px; } }

/* Zharkyn, the Governor's horse */
.zh-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.zh-portrait { margin: 0; background: #fff; border: 1px solid var(--line); padding: 10px; }
.zh-portrait img { display: block; width: 100%; height: auto; }
.zh-portrait figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }
.zh-next { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 12px 16px; margin: 0 0 14px; }
.zh-next .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.zh-next .d { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--crimson-deep); }
.zh-apps { list-style: none; margin: 0 0 12px; padding: 0; }
.zh-apps li { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.zh-apps .when { font-size: .85rem; color: var(--muted); }
.zh-kids { background: #fffaf0; border-top: 4px solid var(--gold); }
.zh-addr { font-style: normal; background: #fff; border: 1px dashed var(--gold); padding: 10px 14px; margin: 0 0 12px; font-family: var(--serif); line-height: 1.45; }
.zh-dl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--crimson); padding: 8px 12px; text-decoration: none; background: #fff; }
.zh-dl:hover { background: var(--crimson-wash); }
.zh-dl .ic { width: 20px; height: 20px; flex: none; }
.zh-facts { padding-left: 1.2em; margin: 0; }
.zh-facts li { margin-bottom: .55em; }
.zh-home { display: flex; gap: 22px; align-items: center; margin-top: 28px; }
.zh-home img { width: 190px; height: auto; flex: none; border: 1px solid var(--line); }
.zh-home h2 { margin: 2px 0 6px; }
.zh-home .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 860px) { .zh-hero { grid-template-columns: minmax(0, 1fr); } .zh-portrait { max-width: 460px; } }
@media (max-width: 680px) { .zh-apps li { grid-template-columns: minmax(0, 1fr); } .zh-home { flex-direction: column; align-items: flex-start; } .zh-home img { width: 100%; max-width: 320px; } }

/* The First Lady */
.fl-portrait { margin: 0; background: #fff; border: 1px solid var(--line); padding: 8px; }
.portrait-photo { margin: 0; background: #fff; border: 1px solid var(--line); padding: 8px; align-self: start; }
.portrait-photo img { display: block; width: 100%; height: auto; }
.portrait-photo figcaption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 6px; line-height: 1.35; }
.fl-portrait img { display: block; width: 100%; height: auto; }
.fl-k { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fl-body { margin-top: 10px; }
.fl-prog { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fl-prog li { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--crimson); padding: 12px 16px; }
.fl-prog h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--crimson-deep); }
.fl-prog p { margin: 0; font-size: .93rem; }
.fl-list .t { font-weight: 600; font-family: var(--serif); }
.fl-line { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; margin: 2px 0 4px; }
.fl-ev.up { border-left: 3px solid var(--gold); padding-left: 12px; }
.fl-year { border-bottom: 1px solid var(--line); }
.fl-year summary { cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 10px 0; list-style: none; }
.fl-year summary::-webkit-details-marker { display: none; }
.fl-year summary::before { content: "+"; width: 1em; color: var(--crimson); font-weight: 700; }
.fl-year[open] summary::before { content: "−"; }
.fl-year summary .y { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
table.fl-tbl td:first-child { width: 11em; }
table.fl-tbl td.num { width: 9em; }
.fl-support { background: #fffaf0; border-top: 4px solid var(--gold); }
.fl-support h3 { font-size: 1rem; margin: 1em 0 .3em; }
.home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.home-pair .zh-home { margin-top: 0; }
.home-pair .zh-home img { width: 150px; }
.zh-home > a { flex: none; }
@media (max-width: 960px) { .home-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
  .fl-prog { grid-template-columns: minmax(0, 1fr); }
  .fl-portrait { max-width: 260px; }
  .portrait-photo { max-width: 260px; }
  table.fl-tbl thead { display: none; }
  table.fl-tbl, table.fl-tbl tbody, table.fl-tbl tr, table.fl-tbl td { display: block; width: auto !important; }
  table.fl-tbl tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.fl-tbl td { border: 0; padding: 2px 10px; }
  table.fl-tbl td:first-child { font-size: .85rem; color: var(--muted); }
  table.fl-tbl td.num { white-space: normal; text-align: left; font-size: .88rem; }
  table.fl-tbl td.num::before { content: "→ "; color: var(--gold); }
}

/* ---------- this site ---------- */
:root {
  --crimson: #3d4b8f;
  --crimson-deep: #273266;
  --crimson-wash: #eceef7;
}

.facts thead th { width: auto; }
.facts.reg td { padding-right: 12px; }
a { color: var(--crimson); }
.mast .ttl .n { color: var(--crimson-deep); }
.nav { background: var(--crimson); }
.util .gov-link { color: #fff; margin-right: 12px; font-size: .8rem; }
.util .right { display: flex; align-items: center; gap: 6px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.tile { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--crimson); padding: 14px 16px; }
.tile .k { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.2; margin: 4px 0; }
.tile .s { font-size: .84rem; color: var(--ink-2); }
.cd { font-size: 1.05rem; }
.cd-n { font-family: var(--serif); font-size: 2.4rem; color: var(--crimson-deep); }
.steps { counter-reset: st; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: st; position: relative; padding: 10px 12px 10px 48px; border-bottom: 1px solid var(--line); background: #fff; }
.steps li::before { content: counter(st); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--crimson); color: #fff; font-size: .82rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cal { width: 100%; }
.cal td:first-child { white-space: nowrap; font-weight: 600; }
.nw { white-space: nowrap; }
.reg td { vertical-align: top; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; align-items: center; }
.filter button { font: inherit; font-size: .88rem; background: #fff; border: 1px solid var(--line); padding: 5px 12px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.filter input { font: inherit; font-size: .9rem; padding: 5px 10px; border: 1px solid var(--line); min-width: 200px; flex: 1; max-width: 320px; }
.bar { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: .9rem; }
.bar .lbl { width: 200px; flex: none; }
.bar .track { flex: 1; background: var(--stone); height: 16px; }
.bar .fill { background: var(--crimson); height: 16px; }
.bar .val { width: 80px; flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.facts td.num, .facts th.num { text-align: right; font-variant-numeric: tabular-nums; }
.byline { font-size: .9rem; color: var(--muted); }
.photo { margin: 16px 0; background: #fff; border: 1px solid var(--line); padding: 8px; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 7px; line-height: 1.4; }
.photo .cr { color: var(--muted); }
.photo .cr::before { content: "· "; }
.photo.hero img { aspect-ratio: 16 / 6; object-fit: cover; }
.photo.right { float: right; width: 40%; margin: 4px 0 14px 24px; }
.photo.pt img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.photo.right.pt { width: 220px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.pgrid .photo { margin: 0; }
.pgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clear { clear: both; }
.person .photo { margin: 0; }
.cmd { display: flex; gap: 14px; align-items: flex-start; }
.cmd + p { margin-top: 14px; }
.cmd img { width: 96px; height: 120px; object-fit: cover; object-position: top; border: 1px solid var(--line); flex: none; }
.live { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #2e7d4f; padding: 2px 7px; vertical-align: middle; }
.st { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 8px; white-space: nowrap; }
.st.ok { background: #e3f1e7; color: #1e5a33; }
.st.no { background: #f6e1e1; color: #8a1c1c; }
.st.warn { background: #fbf0d9; color: #7a5208; }
.calc { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--crimson); padding: 16px 18px; margin: 16px 0; }
.calc label { display: block; font-size: .85rem; font-weight: 600; margin: 10px 0 4px; }
.calc select, .calc input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); width: 100%; max-width: 360px; background: #fff; }
.calc .row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.calc .row2 > * { flex: 1; min-width: 140px; }
.calc .out { margin-top: 14px; }
.calc .out table { border-collapse: collapse; }
.calc .out td { padding: 4px 12px 4px 0; }
.calc .out tr.tot td { font-weight: 700; border-top: 2px solid var(--ink); padding-top: 6px; }
.tl { list-style: none; padding: 0; margin: 0 0 1em; border-left: 3px solid var(--crimson); }
.tl li { position: relative; padding: 0 0 16px 22px; }
.tl li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--crimson); }
.tl .y { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--crimson-deep); display: block; }
@media (max-width: 600px) {
  .board thead, .mtn thead { display: none; }
  .board tr, .mtn tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .board td, .mtn td { display: block; border: 0; padding: 0 !important; }
  .board td:first-child, .mtn td:first-child, .mtn td[data-l] { flex-basis: 100%; }
  .mtn td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
}
@media (max-width: 760px) { .pgrid.two, .pgrid.three { grid-template-columns: minmax(0, 1fr); } .photo.right { float: none; width: auto; margin: 16px 0; } .photo.hero img { aspect-ratio: 16 / 8; } }
@media (max-width: 640px) { .bar .lbl { width: 120px; } .bar .val { width: 64px; } .cd-n { font-size: 2rem; } }
.wx { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 14px 0; }
.wxc { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--crimson); padding: 14px 16px; }
.wxc .k { font-weight: 600; }
.wxc .v { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 2px 0; }
.wxc .v .lo { font-size: 1.2rem; color: var(--muted); }
.wxc .s { font-size: .86rem; color: var(--ink-2); }
.wxc .inv { color: #a0521c; }
.facts td.num, .facts th.num { padding-right: 16px; }
.aqb { display: inline-block; min-width: 38px; padding: 1px 8px; color: #fff; font-weight: 700; text-align: center; border-radius: 3px; }
.aq-good { background: #2e8b3e; } .aq-moderate { background: #c99a00; } .aq-sensitive { background: #d96c00; } .aq-unhealthy { background: #c62828; } .aq-very-unhealthy { background: #7b1fa2; } .aq-hazardous { background: #6d1b1b; }
