/* SNMEDD · Shared Reading Interface */
:root {
  --navy: #173449;
  --navy-deep: #102737;
  --blue: #244f68;
  --ink: #203744;
  --muted: #5d6e77;
  --paper: #f5f6f7;
  --line: #dfe5e8;
  --copper: #b43d48;
  --copper-light: #fbf0f1;
  --teal: #286b66;
  --shadow-soft: 0 3px 12px #10273705, 0 14px 38px #10273704;
  --shadow-raised: 0 6px 16px #10273708, 0 18px 36px #1027370b;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
html { scroll-behavior: smooth; scroll-padding-top: 26px; }
body { background: var(--paper); }
h1, h2, h3 { font-family: inherit; color: var(--navy); font-weight: 650; }
h1 { font-size: 2.3rem; letter-spacing: -.045em; }
h2 { font-size: 1.6rem; letter-spacing: -.035em; }
h3 { letter-spacing: -.02em; }
.eyebrow, .nav-label, th, .agenda-date > span:first-child { text-transform: none; letter-spacing: .025em; }
.eyebrow { font-size: .78rem; color: var(--copper); font-weight: 650; }
button, .button, input, select, textarea { border-radius: 10px; }
button, .button { min-height: 46px; font-weight: 600; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
button:hover, .button:hover { background: #f1f5f7; border-color: #aebfc8; box-shadow: 0 3px 8px #10273706; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
button.primary, .button.primary { color: #fff; background: var(--navy); border-color: var(--navy); box-shadow: 0 3px 8px #10273712; }
button.primary:hover, .button.primary:hover { background: #244b63; border-color: #244b63; }
input, select, textarea { border-color: #c8d4da; transition: border-color 160ms ease, box-shadow 160ms ease; }
input:hover, select:hover, textarea:hover { border-color: #8ea5b2; }
input:focus, select:focus, textarea:focus { border-color: #426b83; box-shadow: 0 0 0 4px #426b8310; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #397a9c; outline-offset: 3px; }
.sidebar { width: 254px; padding: 27px 16px 17px; background: linear-gradient(165deg, #173449, #102737 72%); box-shadow: none; border-right: 1px solid #ffffff10; }
.brand { align-items: flex-start; gap: 11px; padding: 0 7px 25px; border-bottom-color: #ffffff18; }
.brand img { width: 36px; height: 40px; margin-top: 3px; }
.brand span { min-width: 0; }
.brand strong { display: block; font-size: 1.82rem; line-height: 1.15; font-weight: 700; letter-spacing: .015em; }
.brand small { font-size: .69rem; line-height: 1.6; font-weight: 400; letter-spacing: 0; opacity: 1; color: #cad7df; margin-top: 9px; }
.sidebar nav { padding-top: 20px; }
.sidebar nav a { color: #d2dfe6; border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; margin: 4px 0; font-size: .92rem; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.sidebar nav a:hover { background: #ffffff0a; color: #fff; }
.sidebar nav a.active { background: #ffffff12; border: 1px solid #ffffff1e; color: #fff; box-shadow: inset 3px 0 #e88a8e; border-radius: 9px; }
.nav-label { color: #9fb4c2; padding: 25px 14px 8px; font-size: .73rem; font-weight: 500; }
.sidebar-foot { border-color: #ffffff18; padding: 14px 10px 0; }
.sidebar-foot a { color: #c6d5df; font-size: .78rem; }
.sidebar a:focus-visible { outline-color: #d1e9f5; }
.page { margin-left: 254px; }
.topbar { height: 76px; padding: 0 38px; background: #ffffffd9; border-bottom-color: #e2e7ea; }
.topbar-title { color: #526975; font-weight: 500; font-size: .87rem; }
.topbar-left { gap: 18px; }
.topbar .menu-toggle { border: 1px solid #dfe6e9; min-height: 40px; font-size: .82rem; padding: 7px 11px; border-radius: 8px; }
.topbar a { font-size: .85rem; }
.content { padding: 32px 38px 28px; max-width: 1600px; }
.landing { --cover-ink: var(--navy); --cover-muted: var(--muted); --cover-rule: var(--line); max-width: 1320px; }
.cover-hero.practical-cover { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.cover-hero:before { display: none; }
.practical-cover .cover-copy { padding: 33px 32px 28px; max-width: none; }
.practical-cover .cover-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; padding: 4px 9px; background: #fcf1f1; border: 1px solid #f3dfe1; border-radius: 6px; color: #92343f; font-size: .73rem; font-weight: 600; letter-spacing: .02em; }
.cycle-dot { width: 6px; height: 6px; border-radius: 50%; background: #bb4854; }
.practical-cover .cover-copy h1 { font-family: inherit; font-weight: 650; font-size: clamp(2rem, 2.9vw, 3rem); line-height: 1.13; letter-spacing: -.05em; color: var(--navy); margin: 0 0 18px; }
.cover-copy h1 em { font-family: inherit; font-style: normal; font-weight: 450; color: #4c687b; }
.practical-cover .cover-description { color: var(--muted); max-width: 470px; font-size: .94rem; line-height: 1.7; margin: 0 0 23px; }
.cover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.cover-actions .button { font-size: .81rem; padding: 11px 14px; gap: 12px; }
.cover-actions .button span { font-size: 1.1rem; transition: transform 160ms ease; }
.cover-actions .button:hover span { transform: translateX(3px); }
.cover-link { color: #3b5b6f; font-size: .81rem; gap: 9px; padding: 8px 0; border: 0; min-height: 44px; }
.cover-link:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.cover-access { color: #596e7a; font-size: .72rem; margin: 18px 0 0; }
.cover-landscape { position: relative; margin: 11px 11px 11px 0; min-width: 0; min-height: 285px; overflow: hidden; border-radius: 12px; background: #c4d2df; }
.cover-landscape:after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #102737b0); pointer-events: none; }
.cover-landscape .cover-image { z-index: 0; object-position: 58% center; }
.cover-landscape figcaption { position: absolute; bottom: 20px; left: 22px; right: 22px; z-index: 1; color: #fff; }
.cover-landscape figcaption > span { display: block; font-size: .94rem; font-weight: 500; letter-spacing: -.015em; }
.cover-landscape figcaption a { display: inline-block; color: #f4f7fa; font-size: .65rem; padding: 8px 0 0; }
.county-directory { padding: 35px 0 0; border: 0; scroll-margin-top: 25px; }
.county-directory .section-head { margin: 0 0 22px; align-items: flex-end; }
.county-directory .eyebrow { margin: 0 0 6px; color: #94525b; }
.county-directory h2 { font-size: 1.65rem; letter-spacing: -.04em; }
.county-directory .section-head p:not(.eyebrow) { font-size: .88rem; color: var(--muted); margin-top: 7px; }
.section-note { font-size: .75rem; color: #596e7a; white-space: nowrap; margin-bottom: 3px; }
.county-shortcuts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.county-shortcuts > a { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 19px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.county-shortcuts > a:hover { transform: translateY(-4px); background: #fff; border-color: #a5bbc7; box-shadow: var(--shadow-raised); }
.county-shortcuts > a:active { transform: translateY(-1px); }
.county-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.county-book { width: 27px; height: 31px; border: 1.5px solid #8ba1af; border-left: 5px solid #8ba1af; border-radius: 4px; background: #f4f7f9; position: relative; }
.county-book:after { content: ''; position: absolute; height: 1px; width: 11px; top: 9px; left: 5px; background: #8ba1af; box-shadow: 0 5px #8ba1af; }
.county-card-arrow { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #587484; background: #f3f6f8; transition: background-color 180ms ease, color 180ms ease; }
.county-shortcuts a:hover .county-card-arrow { color: #fff; background: var(--navy); }
.county-shortcuts strong { display: block; font-size: 1.25rem; font-weight: 650; letter-spacing: -.035em; color: var(--navy); line-height: 1.25; }
.county-shortcuts strong > span { display: block; font-size: .77rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.county-shortcuts .county-card-date { font-size: .81rem; color: #3e5a6c; margin-top: 18px; }
.county-shortcuts .county-card-status { font-size: .69rem; color: #687782; border-top: 1px solid #edf0f2; margin-top: 10px; padding-top: 10px; white-space: normal; }
.county-shortcuts .has-materials { color: #326a60; }
.directory-search { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 19px; padding: 18px 22px; background: #edf1f4; border: 1px solid #e2e8ec; border-radius: 12px; }
.directory-search label { font-size: .88rem; margin: 0; color: var(--navy); }
.directory-search p { color: var(--muted); font-size: .77rem; margin: 2px 0 0; }
.search-field { position: relative; width: min(100%, 440px); }
.search-field input { padding-left: 42px; font-size: .85rem; min-height: 46px; border-color: #d0dce3; background: #fff; }
.search-symbol { position: absolute; left: 17px; top: 15px; width: 13px; height: 13px; border: 1.6px solid #768e9c; border-radius: 50%; pointer-events: none; }
.search-symbol:after { content: ''; position: absolute; width: 6px; height: 1.6px; background: #768e9c; top: 10px; left: 9px; transform: rotate(45deg); }
#home-results:not([hidden]) { padding: 16px 0 0; }
#home-results > p { font-size: .88rem; color: var(--muted); }
.directory-results a { border-color: var(--line); border-radius: 10px; padding: 17px 20px; transition: border-color 160ms ease, background-color 160ms ease; font-size: .9rem; }
.directory-results a:hover { background: #f9fbfc; border-color: #b1c4cf; text-decoration: none; }
.hearing-section { margin-top: 35px; padding: 29px; gap: 35px; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.5fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-soft); }
.hearing-intro .eyebrow { font-size: .75rem; color: #94525b; letter-spacing: .025em; margin-bottom: 10px; }
.hearing-intro h2 { font-family: inherit; font-weight: 650; font-size: 1.65rem; line-height: 1.25; letter-spacing: -.04em; margin-bottom: 13px; }
.hearing-intro > p:not(.eyebrow) { font-size: .88rem; line-height: 1.7; max-width: 260px; }
.hearing-intro .hearing-timezone { margin: 23px 0 18px; font-size: .83rem; font-weight: 600; color: #415e70; }
.hearing-timezone span { display: block; font-size: .72rem; margin: 2px 0 0; }
.hearing-resources { gap: 4px; }
.hearing-resources a, .print-agenda { font-size: .79rem; color: #426378; text-decoration: none; border-bottom: 1px solid #dce4e9; border-radius: 0; padding: 8px 0; box-shadow: none; }
.hearing-resources a:hover, .print-agenda:hover { text-decoration: underline; color: var(--navy); }
.hearing-agenda ol { border-top: 0; }
.hearing-agenda li { border-color: #e8edf0; }
.hearing-agenda li:last-child { border: 0; }
.agenda-row { grid-template-columns: 57px minmax(0,1fr) auto; gap: 18px; padding: 18px 0; }
.hearing-agenda li:first-child .agenda-row { padding-top: 0; }
.hearing-agenda li:last-child .agenda-row { padding-bottom: 0; }
.agenda-date { background: #f2f5f7; border: 1px solid #e7ecef; border-radius: 10px; padding: 9px 5px; gap: 3px; }
.agenda-date > span:first-child { font-size: .68rem; font-weight: 500; }
.agenda-date strong { font-family: inherit; font-weight: 650; font-size: 1.5rem; letter-spacing: -.04em; }
.agenda-date > span:last-child { font-size: .64rem; }
.agenda-details h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.agenda-time { font-size: .76rem; font-weight: 500; color: #415f70; }
.agenda-location { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.agenda-county-link { font-size: .72rem; gap: 9px; }
.agenda-county-link > span:last-child { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: #f3f6f8; font-size: 1.1rem; }
.published-dates.panel { margin-top: 20px; padding: 0 25px; border-radius: 14px; box-shadow: none; }
.published-dates > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px 0; list-style: none; cursor: pointer; }
.published-dates > summary::-webkit-details-marker { display: none; }
.published-dates .eyebrow { display: block; font-size: .71rem; color: var(--muted); }
.dates-heading { display: block; font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-top: 3px; }
.details-toggle { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; font-size: 1.2rem; transition: transform 180ms ease; }
.published-dates[open] .details-toggle { transform: rotate(45deg); }
.published-dates > p, .published-dates li > p { font-size: .87rem; color: var(--muted); }
.published-dates li { border-color: var(--line); }
.published-dates li > strong { font-size: .95rem; }
.published-dates li > span { font-size: .85rem; }
.footer { margin-top: 30px; padding-top: 20px; font-size: .69rem; color: #596e7a; border-color: #e1e7ea; }
.breadcrumb { font-size: .79rem; gap: 10px; margin-bottom: 24px; }
.breadcrumb a { color: #4b6d82; }
.county-summary { padding: 12px 0 24px; border-color: var(--line); }
.county-summary h1 { font-family: inherit; font-size: 2.6rem; font-weight: 650; margin: 9px 0 13px; }
.county-summary > p:not(.eyebrow):not(.county-hearing) { font-size: .98rem; color: var(--muted); }
.county-hearing { background: #edf2f5; color: #486172; border: 1px solid #dfe8ed; border-left: 3px solid #8ca9ba; border-radius: 10px; font-size: .9rem; }
.county-folders h2, .entity-material-group > .section-head h2 { font-family: inherit; font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.folder-search input { border-radius: 10px; font-size: .88rem; }
.entity-folder { border: 1px solid var(--line); border-radius: 14px; padding: 27px; box-shadow: var(--shadow-soft); }
.entity-folder > h2 { font-family: inherit; font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
.entity-folder > .eyebrow { color: var(--muted); font-size: .76rem; }
.folder-mark, .folder-mark:before { border-color: #8ca4b4; background: #f1f5f8; }
.entity-folder .button { background: var(--navy); border-color: var(--navy); }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: 2.1rem; }
.page-heading p { font-size: .95rem; }
.panel, .empty, .admin-row, .program-block { border-color: var(--line); border-radius: 13px; box-shadow: var(--shadow-soft); }
.empty h2 { font-size: 1.45rem; }
.document-pane { border-radius: 13px; border-color: #d8e2e8; box-shadow: var(--shadow-soft); }
.document-toolbar { background: #fff; border-color: #e4eaee; }
.document-identity p { font-size: .9rem; color: var(--navy); line-height: 1.5; }
.document-date { font-size: .75rem; color: var(--muted); }
.reference-badge { border: 1px solid #eddcbb; background: #fff8eb; color: #7b5823; border-radius: 5px; font-size: .72rem; }
.entity-file .document-toolbar .button, .entity-file .document-toolbar button { font-size: .8rem; min-height: 42px; }
.entity-material-group > .section-head { min-height: 3.6rem; }
.entity-empty { color: var(--muted); font-size: .9rem; }
.admin-tabs { padding: 5px; gap: 4px; border: 1px solid var(--line); background: #eaf0f3; border-radius: 11px; }
.admin-tabs button { border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; font-size: .85rem; }
.admin-tabs button.active { border: 1px solid #dbe4e9; background: #fff; box-shadow: 0 2px 5px #10273708; }
.admin-row { padding: 22px; }
.admin-row h3 { font-size: 1.07rem; }
.admin-row p { font-size: .85rem; }
.admin-row .actions { gap: 8px; }
button.small, .button.small { font-size: .83rem; }
label { font-size: .9rem; }
.field-help { font-size: .83rem; }
.table-wrap { border-radius: 12px; border-color: var(--line); }
th { background: #edf2f5; font-size: .79rem; }
td { font-size: .87rem; }
dialog { border: 1px solid #dbe5eb; border-radius: 18px; box-shadow: 0 30px 90px #10273735; }
dialog::backdrop { background: #10273780; backdrop-filter: blur(3px); }
.dialog-head h2 { font-size: 1.5rem; }
.dialog-head button { border-radius: 50%; background: #f2f5f7; }
.help-panel { margin-bottom: 20px; }
#notice:not(:empty) { border-radius: 12px; left: calc(50% + 127px); box-shadow: var(--shadow-raised); }
.photo-credits-page { padding: 30px; }
.photo-credits-page h1 { margin-top: 25px; }
@media (min-width: 1500px) {
  .practical-cover .cover-copy { padding: 42px; }
  .cover-landscape { min-height: 330px; }
}
@media (max-width: 1250px) {
  .content { padding: 28px; }
  .topbar { padding: 0 28px; }
  .practical-cover .cover-copy { padding: 28px 25px; }
  .cover-hero.practical-cover { grid-template-columns: 1.3fr 1fr; }
  .cover-actions { gap: 8px 15px; }
  .county-shortcuts > a { padding: 17px 13px 14px; }
  .hearing-section { gap: 27px; padding: 25px; }
  .section-note { display: none; }
}
@media (max-width: 1050px) {
  .cover-hero.practical-cover { grid-template-columns: 1fr; }
  .cover-landscape { display: none; }
  .practical-cover .cover-copy { padding: 30px; }
  .practical-cover .cover-copy h1 { font-size: 2.5rem; }
  .cover-description { max-width: 600px; }
  .county-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .county-card-top { margin-bottom: 14px; }
  .hearing-section { grid-template-columns: 1fr; }
  .hearing-intro > p:not(.eyebrow) { max-width: 100%; }
  .hearing-resources { flex-direction: row; flex-wrap: wrap; gap: 20px; margin-bottom: 5px; }
  .agenda-county-link > span:first-child { display: inline; }
}
@media (max-width: 850px) {
  .sidebar { width: 254px; }
  .page { margin-left: 0; }
  .topbar { height: 66px; padding: 0 22px; }
  .topbar-title { display: block; font-size: .8rem; }
  .content { padding: 25px 22px; }
  .topbar-right { gap: 8px; }
  .account-link { max-width: 120px; }
  .nav-collapsed .sidebar.open { transform: none; }
  #notice:not(:empty) { left: 50%; }
}
@media (max-width: 600px) {
  .topbar-title { display: none; }
  .content { padding: 19px 16px 24px; }
  .cover-hero.practical-cover { border-radius: 15px; }
  .practical-cover .cover-copy { padding: 25px; }
  .practical-cover .cover-copy h1 { font-size: clamp(1.9rem,7.5vw,2.5rem); }
  .practical-cover .cover-description { font-size: .9rem; }
  .cover-actions { align-items: flex-start; flex-direction: column; gap: 3px; }
  .cover-access { font-size: .7rem; margin-top: 12px; }
  .county-directory { padding-top: 27px; }
  .county-directory h2 { font-size: 1.5rem; }
  .county-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .county-shortcuts > a { padding: 19px 17px 15px; }
  .directory-search { display: block; padding: 18px; }
  .search-field { width: 100%; margin-top: 13px; }
  .hearing-section { display: block; padding: 22px 19px; margin-top: 25px; }
  .hearing-intro h2 { font-size: 1.5rem; }
  .hearing-intro .hearing-timezone { margin: 18px 0 12px; }
  .hearing-resources { margin-bottom: 25px; gap: 10px 20px; }
  .agenda-row { grid-template-columns: 48px minmax(0,1fr) 32px; gap: 12px; }
  .agenda-date { padding: 8px 3px; }
  .agenda-county-link > span:first-child { display: none; }
  .agenda-county-link { min-width: 32px; }
  .agenda-location { overflow-wrap: anywhere; }
  .published-dates.panel { padding: 0 20px; }
  .county-summary h1 { font-size: 2.15rem; }
  .entity-folder > h2 { min-height: 0; }
  .page-heading h1 { font-size: 1.8rem; }
  .viewer-content { padding: 20px 16px; }
  .footer { font-size: .67rem; }
  .admin-row { padding: 18px; }
}
@media (max-width: 350px) {
  .county-shortcuts { grid-template-columns: 1fr; }
  .cover-actions .button { font-size: .76rem; padding: 11px; }
  .practical-cover .cover-copy { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
.form-error {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 2px solid #9f2424;
  border-radius: 8px;
  background: #fff1f1;
  color: #701b1b;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  scroll-margin-block: 20px;
}
.form-error[hidden] { display: none; }
.form-error strong { display: block; font-size: 1.125rem; }
.form-error p { margin: 8px 0 0; color: inherit; font-size: inherit; }
.form-error:focus { outline: 3px solid #701b1b; outline-offset: 3px; }
@media print {
  html { scroll-behavior: auto; }
  body { color: #000; background: #fff; }
  .page, .nav-collapsed .page { margin: 0 !important; }
  .content { padding: 0; }
  .cover-hero.practical-cover { display: block; border: 0; box-shadow: none; }
  .practical-cover .cover-copy { padding: 0; }
  .practical-cover .cover-copy h1 { font-size: 24pt; color: #000; }
  .cover-copy h1 em { color: #000; }
  .cover-actions, .cover-access, .cover-landscape, .county-directory, .published-dates { display: none; }
  .practical-cover .cover-kicker { color: #000; background: none; border: 0; padding: 0; }
  .hearing-section { display: block; padding: 20px 0; margin: 0; border: 0; box-shadow: none; }
  .agenda-row { grid-template-columns: 60px 1fr; break-inside: avoid; }
  .agenda-time, .agenda-location { font-size: 11pt; }
  .agenda-date { background: #fff; }
  .agenda-county-link { display: none; }
}
