/* Hamlin County, South Dakota — site styles
   Palette: lake navy, county blue, wheat, limestone. Type: Source Serif 4 + Public Sans. */
:root {
  --navy: #0F2A44;
  --navy-2: #173A5C;
  --blue: #2B65B5;
  --blue-dark: #1E4F92;
  --wheat: #D8A84A;
  --wheat-soft: #F6EBD2;
  --limestone: #EEF1F4;
  --paper: #FFFFFF;
  --ink: #18212C;
  --muted: #55606D;
  --line: #D5DBE2;
  --open: #2F7D4C;
  --closed: #A13D3D;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--limestone); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--wheat); color: var(--navy); padding: 8px 14px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }
.plain { list-style: none; margin: 0; padding: 0; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- Notice, utility bar, header ---------- */
.closure-bar { background: #AA0000; color: #fff; font-weight: 700; font-size: 16px; padding: 10px 0; }
.closure-bar .wrap { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.closure-bar + .closure-bar { border-top: 1px solid rgba(255,255,255,.25); }
.closure-icon { flex: none; font-size: 18px; line-height: 1; }
.notice { background: var(--wheat); color: var(--navy); font-weight: 600; padding: 10px 0; font-size: 16px; }
.utility { background: #0A1F33; color: #C9D3DE; font-size: 14px; }
.utility .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; }
.utility-right { display: flex; gap: 22px; }
.site-header { background: var(--navy); color: #fff; border-bottom: 4px solid var(--wheat); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(5,16,28,.25); }
#main, [id] { scroll-margin-top: 100px; }   /* keep jumped-to sections clear of the locked header */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.wordmark { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 14px; line-height: 1.05; }
.wordmark-logo { width: 78px; height: auto; flex: none; margin: -6px 0; filter: drop-shadow(0 0 1px rgba(255,255,255,.55)) drop-shadow(0 0 7px rgba(170,200,240,.45)); }
.wordmark-text { display: grid; }
.wordmark:hover { color: #fff; }
.wordmark-county { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.wordmark-state { font-size: 14px; color: var(--wheat); font-weight: 600; letter-spacing: .08em; margin-top: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 4px; }
.site-nav a:hover { background: var(--navy-2); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--wheat); border-radius: 4px 4px 0 0; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 4px; font: 600 16px var(--sans); padding: 8px 14px; cursor: pointer; }

/* ---------- Page title band ---------- */
.page-title { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.page-title h1 { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 70ch; margin: 10px 0 0; }
.crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.crumbs li + li::before { content: '/'; color: var(--line); margin-right: 6px; }
.crumbs li[aria-current] { color: var(--muted); }
.page-body { padding-top: 32px; padding-bottom: 56px; }

/* ---------- Home: hero band with hills and lakes ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art path { fill: none; stroke: #6F93BC; stroke-width: 1.2; opacity: .28; }
.hero-art ellipse { fill: #2B65B5; opacity: .28; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; margin: 0 0 18px; font-weight: 700; }
.hero h1 span { display: block; font-size: .42em; color: var(--wheat); font-weight: 600; letter-spacing: .02em; margin-top: 10px; }
.hero-communities { font-size: 1.15rem; color: #D9E2EC; max-width: 52ch; margin: 0; }
.status { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 26px 28px 24px; border-top: 6px solid var(--closed); box-shadow: 0 18px 40px rgba(5,16,28,.35); }
.status.is-open { border-top-color: var(--open); }
.status-line { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; color: var(--navy); margin: 0 0 6px; display: flex; gap: 12px; align-items: baseline; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--closed); flex: none; transform: translateY(-2px); }
.status.is-open .status-dot { background: var(--open); }
.status-sub { font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.status dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.status dt { color: var(--muted); }
.status dd { margin: 0; font-weight: 600; }

/* ---------- Home sections ---------- */
.home-section { padding: 52px 0; }
.home-section + .home-section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head--line { border-bottom: 3px solid var(--blue); padding-bottom: 10px; }
.agenda-card { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--wheat); border-radius: 6px; padding: 24px 28px; box-shadow: 0 2px 10px rgba(12,30,52,.08); }
.agenda-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.agenda-kicker { margin: 0 0 4px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.agenda-head h2 { margin: 0 0 8px; }
.agenda-when { margin: 0; }
.agenda-pdf { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.agenda-pdf:hover { text-decoration: underline; }
.agenda-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.agenda-body p { margin: 0 0 .9em; }
.agenda-body p:last-child { margin-bottom: 0; }
.agenda-indent { display: inline-block; padding-left: calc(var(--i) * .75em); }
@media (max-width: 760px) { .agenda-card { padding: 20px 18px; } }
.about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 4px; }
.about-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 10px rgba(12,30,52,.18); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } .about-photos { margin-top: 0; } }
/* Home page: hero without the open/closed panel, and "How Do I?" tiles with icons */
.hero--simple .wrap { grid-template-columns: minmax(0, 1fr); }
/* Home page: the courthouse photo behind the title, darkened on the left so the words stay easy to read */
.hero--photo { background: var(--navy) url("img/courthouse-1920.jpg") center 38% / cover no-repeat; }
.hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,30,52,.92) 0%, rgba(12,30,52,.78) 42%, rgba(12,30,52,.35) 100%); }
.hero--photo .hero-art { display: none; }
.hero--photo .wrap { padding-top: 84px; padding-bottom: 92px; }
.hero--photo h1, .hero--photo .hero-communities { text-shadow: 0 1px 4px rgba(0,0,0,.55); }
@media (max-width: 760px) {
  .hero--photo { background-image: url("img/courthouse-960.jpg"); background-position: 62% 40%; }
  .hero--photo::before { background: rgba(12,30,52,.76); }
  .hero--photo .wrap { padding-top: 56px; padding-bottom: 64px; }
}
.tasks--icons { overflow: hidden; }
.tasks--icons li, .tasks--icons li:nth-child(n) { border-bottom: 1px solid var(--line) !important; border-right: 1px solid var(--line) !important; margin: 0 -1px -1px 0; }   /* outer edges tuck under the frame */
.tasks.tasks--icons a { display: flex; gap: 14px; align-items: center; }
.tasks--icons .task-icon { flex: none; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: #E6EEF9; color: var(--blue); }
.tasks--icons .task-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tasks--icons a:hover .task-icon { background: var(--blue); color: #fff; }
.tasks--icons .task-text { display: block; color: inherit; font-size: inherit; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.tasks li { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tasks li:nth-child(3n) { border-right: 0; }
.tasks li:nth-last-child(-n+3) { border-bottom: 0; }
.tasks a { display: block; padding: 18px 22px; text-decoration: none; height: 100%; }
.tasks a:hover { background: #F5F8FC; }
.tasks strong { display: block; font-size: 1.08rem; color: var(--blue-dark); }
.tasks a:hover strong { text-decoration: underline; }
.tasks span { color: var(--muted); font-size: 15px; }
.tax-strip { background: var(--wheat-soft); border-left: 6px solid var(--wheat); border-radius: 4px; padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.tax-strip h2 { margin: 0 0 4px; font-size: 1.4rem; }
.tax-strip p { margin: 0; }
.tax-next { text-align: right; }
.tax-next strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* ---------- Directory ---------- */
.directory { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.directory-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 8px 24px; padding: 16px 22px; border-top: 1px solid var(--line); align-items: baseline; }
.directory-row:first-child { border-top: 0; }
.directory-row h3 { margin: 0; font-size: 1.12rem; }
.directory-row h3 a { text-decoration: none; }
.directory-row h3 a:hover { text-decoration: underline; }
.directory-row p { margin: 0; color: var(--muted); font-size: 15.5px; }
.directory-row .dir-phone { font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--navy); }
.directory-row .dir-phone:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Office pages ---------- */
.office { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.prose { max-width: 70ch; }
.prose.prose-full { max-width: none; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; scroll-margin-top: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 4px; padding: 16px 20px; margin: 0 0 1.2em; }
.callout.warn { border-left-color: var(--wheat); background: #FFFBF2; }
.callout p:last-child { margin: 0; }
.download { display: flex; align-items: center; gap: 14px; max-width: 460px; padding: 14px 18px; margin: 0 0 .8em; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 4px; text-decoration: none; color: inherit; }
.download:hover { border-color: var(--blue); background: #F5F8FC; }
.download svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download strong { display: block; color: var(--blue-dark); font-size: 1.05rem; }
.download:hover strong { text-decoration: underline; }
.download small { display: block; color: var(--muted); font-size: 14px; }
.box-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.box-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 4px; text-decoration: none; color: var(--blue-dark); font-weight: 600; line-height: 1.3; }
.box-link:hover { border-color: var(--blue); background: #F5F8FC; }
.box-link:hover span { text-decoration: underline; }
.box-link svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fees { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); margin: 0 0 1.2em; font-size: 16px; }
.fees th, .fees td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fees td:last-child, .fees th:last-child { text-align: right; white-space: nowrap; }
.fees th { background: var(--limestone); font-weight: 600; }
.fees--wrap td:last-child, .fees--wrap th:last-child { white-space: normal; min-width: 9em; }
a[href^="tel:"] { white-space: nowrap; }
.link-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.link-list a { font-weight: 600; }
.services { columns: 2; column-gap: 32px; padding-left: 1.2em; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 4px; padding: 22px 24px; position: sticky; top: 16px; font-size: 16px; }
.contact-card h2 { font-size: 1.3rem; margin-bottom: 14px; }
.contact-card h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); margin: 18px 0 6px; }
.contact-card .person { margin: 0 0 10px; display: grid; }
.contact-card .person strong { font-size: 1.05rem; color: var(--navy); }
.contact-card .person span { color: var(--muted); font-size: 15px; }
.phones { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.phones dt { color: var(--muted); }
.phones dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.phones a { text-decoration: none; color: var(--navy); }
.phones a:hover { color: var(--blue); text-decoration: underline; }
.contact-card .email { margin: 12px 0 0; font-weight: 600; word-break: break-all; }
.contact-card p { margin: 0; }
.sheriff-banner { margin: 0 0 24px; border-radius: 6px; overflow: hidden; background: #000; }
.sheriff-banner img { display: block; width: 100%; max-height: 300px; object-fit: cover; object-position: center 40%; }

/* ---------- Documents ---------- */
.doc-group { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--muted); margin: 22px 0 8px; }
.doc-list { list-style: none; margin: 0 0 8px; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a { display: flex; gap: 14px; align-items: center; padding: 11px 16px; text-decoration: none; }
.doc-list a:hover span:last-child { text-decoration: underline; }
.doc-icon { font-size: 11px; font-weight: 700; color: #fff; background: var(--closed); border-radius: 3px; padding: 3px 6px; letter-spacing: .04em; flex: none; }
.commissioners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 28px; }
.commissioner { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 4px; }
.commissioner .district { font-weight: 700; color: var(--wheat); background: var(--navy); display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 14px; }
.commissioner strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); margin: 8px 0 2px; }
.commissioner span:not(.district) { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }
.towns { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 16px; }
.towns th, .towns td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.towns th { background: var(--limestone); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D3DE; font-size: 15.5px; border-top: 4px solid var(--wheat); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-name { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.footer-911 { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.footer-911 a { text-decoration: none; color: var(--wheat); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; padding-bottom: 22px; font-size: 14px; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .hero .wrap, .two-col, .office { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tasks li:nth-child(3n) { border-right: 1px solid var(--line); }
  .tasks li:nth-child(2n) { border-right: 0; }
  .tasks li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .tasks li:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-row { grid-template-columns: 1fr auto; }
  .directory-row p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; flex-basis: 100%; }
  .site-nav.is-open { display: block; }
  .header-row { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; padding-top: 8px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--wheat); border-radius: 0; }
  .wordmark-county { font-size: 25px; }
  .wordmark-logo { width: 56px; margin: -4px 0; }
  .wordmark { gap: 10px; }
  .tasks { grid-template-columns: 1fr; }
  .tasks li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .tasks li:last-child { border-bottom: 0 !important; }
  .tax-strip { grid-template-columns: 1fr; }
  .tax-next { text-align: left; }
  .services { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; gap: 28px; }
  .utility-right { gap: 14px; }
  body { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .utility, .site-nav, .menu-toggle, .site-footer, .hero-art { display: none !important; }
  .site-header, .hero { background: #fff !important; color: #000 !important; }
  .wordmark, .hero h1 { color: #000 !important; }
}
.table-wrap { overflow-x: auto; }
.not-found { padding: 40px 0 20px; }
.not-found .big { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--wheat); margin: 0 0 8px; font-weight: 700; }
.prose .link-list { padding-left: 0; }

/* ---------- Notices and minutes (search, lists, one post) ---------- */
.search-form { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin: 0 0 22px; }
.search-form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row input[type="search"] { flex: 1 1 260px; min-width: 0; }
.search-form input, .search-form select, .adm-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .adm-form textarea, .adm-form select {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #9AA6B2; border-radius: 4px; padding: 9px 11px; width: 100%; }
.search-row select { width: auto; }
.search-form button, .adm-form button, .adm-button { font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: 4px; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
.search-form button:hover, .adm-form button:hover, .adm-button:hover { background: var(--navy-2); color: #fff; }
.search-help { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.result-count { font-weight: 600; }
.post-list { list-style: none; margin: 0 0 8px; padding: 0 !important; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.post-list li { margin: 0 !important; padding: 12px 16px; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-list a { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; text-decoration: none; }
.post-list a:hover .post-title { text-decoration: underline; }
.post-date { font-size: 14px; font-weight: 700; color: var(--muted); min-width: 150px; }
.post-title { font-weight: 600; }
.post-tag { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; }
.snippet { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
mark { background: var(--wheat-soft); color: inherit; padding: 0 1px; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--wheat); }
.post-meta { color: var(--muted); font-weight: 600; }
.release-photo { margin: 0 0 18px; } .release-photo img { display: block; max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line, #d9dee5); }
.post-body { margin: 18px 0; overflow-wrap: anywhere; }
.back-link { margin-top: 24px; }

/* ---------- Website login (/admin/) ---------- */
.adm-flash { background: #E6F2EA; border-left: 4px solid var(--open); padding: 10px 14px; margin: 0 0 18px; border-radius: 3px; font-weight: 600; }
.adm-flash.bad { background: #F8E7E7; border-left-color: var(--closed); }
.adm-bar { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.adm-bar .adm-inline { display: inline; margin: 0; }
.adm-bar .adm-link { font-size: 15px; }
.adm-link { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adm-narrow { max-width: 460px; }
.adm-form { display: grid; gap: 16px; }
.adm-form > button { justify-self: start; }
.adm-form label { display: grid; gap: 5px; font-weight: 600; color: var(--navy); }
.adm-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-bottom: 24px; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-hint { font-size: 14px; font-weight: 400; color: var(--muted); }
.adm-note { font-size: 15px; color: var(--muted); margin-top: 18px; }
.adm-form textarea { line-height: 1.5; resize: vertical; }
.adm-form input, .adm-form textarea, .adm-form select { font-weight: 400; }
.adm-form fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px 16px; margin: 0; }
.adm-form legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.adm-form label.adm-check, label.adm-check { display: flex; gap: 8px; align-items: baseline; font-weight: 400; color: var(--ink); }
.adm-check input { width: auto; flex: none; }
.adm-perms { margin: 10px 0 0 26px; }
.adm-sub { font-weight: 600; margin: 10px 0 4px; }
.adm-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; }
.adm-actions { display: flex; gap: 16px; align-items: center; }
.adm-danger { font: inherit; font-size: 15px; color: var(--closed); background: #fff; border: 1px solid var(--closed); border-radius: 4px; padding: 6px 12px; cursor: pointer; }
.adm-danger:hover { background: var(--closed); color: #fff; }
.adm-delete { margin-top: -6px; }
.adm-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 16px; }
.adm-table th { text-align: left; font-size: 14px; color: var(--muted); background: var(--limestone); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.adm-table td:last-child { text-align: right; }
.adm-nowrap { white-space: nowrap; }
.adm-off td { color: var(--muted); }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 26px; }
.adm-tile { display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 4px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.adm-tile strong { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.adm-tile span { font-size: 15px; color: var(--muted); }
.adm-tile:hover { border-top-color: var(--wheat); color: var(--ink); }
.adm-pagelist { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
.adm-pagelist li { margin-bottom: 6px; }
@media (max-width: 760px) {
  .adm-two { grid-template-columns: 1fr; }
  .adm-table { font-size: 15px; }
  .adm-table th, .adm-table td { padding: 8px; }
  .post-date { min-width: 0; width: 100%; }
}
