/* Kentucky regional reference · shared type, actions and reading layout */
:root {
  color-scheme: light;
  --paper: #f8f9f5;
  --surface: #fff;
  --ink: #172f2b;
  --forest: #18493e;
  --link: #175d50;
  --soft: #e3ece3;
  --amber: #ecbd73;
  --rule: #bdc9bf;
  --muted: #4b5f57;
  --serif: Spectral, Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.07rem/1.59 var(--serif); }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.85rem, 5.7vw, 5.8rem); }
h2 { font-size: clamp(1.9rem, 3.15vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.75rem); }
p + p { margin-top: .85rem; }
a { color: var(--link); text-underline-offset: .19em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, summary { font: inherit; }
button, select, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #aa5011; outline-offset: 3px; }
.skip { position: absolute; top: 0; left: 12px; z-index: 8; padding: 12px 20px; background: white; transform: translateY(-140%); }
.skip:focus { transform: none; }
.wrap { width: min(1320px, calc(100% - clamp(32px,8vw,120px))); margin-inline: auto; }
.mast { border-top: 4px solid var(--forest); background: var(--surface); }
.mast-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: inherit; text-decoration: none; font: 700 clamp(1.65rem,2.4vw,2.25rem)/1 var(--serif); letter-spacing: -.065em; }
.brand img { width: 29px; height: 29px; }
.brand em { font-weight: normal; }
.mast-note, .label, .rubric, .meta, .kicker, .folio { font: 700 .72rem/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.mast-note, .rubric, .label, .kicker, .meta { color: var(--muted); }
#global-nav { background: var(--forest); color: #fff; }
.nav-inner, .nav-extra, .foot-links, .actions, .links, .jump-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.nav-inner { gap: 0; }
.nav-inner a, .nav-inner summary, .foot-links a, .credit { display: inline-flex; align-items: center; min-height: 44px; font: 650 .9rem/1.3 var(--sans); }
.nav-inner > a, .nav-inner > details > summary { padding: 0 19px; }
.nav-inner > details:first-child > summary { padding-left: 0; }
.nav-inner a, .nav-inner summary { color: inherit; text-decoration: none; }
.nav-inner a:hover, .nav-inner summary:hover, .nav-inner [aria-current="page"] { text-decoration: underline; }
.nav-inner summary::after { content: "⌄"; margin-left: .55rem; color: var(--amber); }
.nav-inner details[open] > summary::after { content: "⌃"; }
.nav-inner summary::-webkit-details-marker { display: none; }
.nav-inner details { position: relative; }
.nav-inner .menu-list { position: absolute; z-index: 4; top: 100%; left: 0; width: min(300px,80vw); padding: 7px 16px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 6px 12px #172f2b18; color: var(--ink); }
.menu-list a { display: flex; border-bottom: 1px solid var(--rule); }
.menu-list a:last-child { border-bottom: 0; }
.nav-extra { margin-left: auto; gap: 20px; }
.nav-extra details { display: none; }
#global-nav :focus-visible, footer :focus-visible { outline-color: var(--amber); outline-offset: -3px; }
main { min-height: 48vh; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; padding-top: 15px; color: var(--muted); font: .81rem/1.4 var(--sans); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.intro, .page-heading { padding-block: clamp(24px,3.4vw,48px); }
.intro h1, .page-heading h1 { margin: 8px 0 14px; }
.lead, .deck { max-width: 66ch; font: 1.2rem/1.54 var(--serif); }
.arrow-link, .links a, .jump-links a { display: inline-flex; align-items: center; min-height: 44px; gap: .65rem; font: 650 .92rem/1.45 var(--sans); }
.button { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; padding: .68rem 1.05rem; border: 1px solid var(--forest); background: var(--forest); color: white; font: 650 .93rem/1.4 var(--sans); text-decoration: none; }
.button:hover { background: var(--ink); }
.actions, .links { margin-top: 12px; }
.section, .chapter, .prose section { border-top: 1px solid var(--rule); padding: 26px 0; }
.section-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin: 0 0 20px; }
.chapter h2, .desk h3, .prose h2 { margin: 8px 0 14px; }
.reading, .record-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(230px,.85fr); gap: clamp(32px,7vw,110px); }
.section p, .chapter p, .prose p, .desk p { max-width: 70ch; }
.prose { max-width: 790px; }
.rail { align-self: start; border-top: 3px solid var(--forest); }
.rail section { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.rail h2 { font-size: 1.6rem; margin: 9px 0; }
.index-row { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font: 650 1.02rem/1.4 var(--sans); text-decoration: none; }
.index-row:hover { text-decoration: underline; }
.desks, .directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 36px; }
.desk { padding: 16px 0; border-top: 1px solid var(--rule); }
.directory-grid h3 { padding-bottom: 6px; border-bottom: 2px solid var(--forest); }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; margin-bottom: 16px; }
.controls label { display: grid; gap: 5px; font: 650 .87rem/1.4 var(--sans); }
.controls input, .controls select, .controls button { min-height: 44px; max-width: 100%; padding: .55rem .7rem; border: 1px solid #71867c; background: white; color: var(--ink); border-radius: 0; font: 1rem/1.32 var(--sans); }
.controls button { background: var(--forest); color: white; }
.status, .small, .check { color: var(--muted); font: .85rem/1.5 var(--sans); }
.status { margin-bottom: 12px; }
.check { display: block; margin-top: .65rem; }
.event { display: grid; grid-template-columns: 66px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--rule); }
.date-block { color: var(--forest); font: 700 .74rem/1.2 var(--mono); }
.date-block b { display: block; font: 500 2.5rem/1.08 var(--serif); }
.event h3 { margin-block: 6px; }
#form-frame, .no-script-frame { width: 100%; height: 760px; margin-top: 22px; border: 1px solid var(--rule); background: white; }
footer { background: var(--ink); color: white; margin-top: 44px; padding: 28px 0; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
footer a { color: white; }
footer .brand { font-size: 1.6rem; }
.foot-links { gap: 0 16px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.credit { font-size: .83rem; }
@media (max-width: 860px) {
  .desks, .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nav-inner > a, .nav-inner > details > summary { padding-inline: 12px; }
  .nav-extra { gap: 14px; }
}
@media (max-width: 720px) {
  .nav-extra > a { display: none; }
  .nav-extra details { display: block; }
  .nav-extra .menu-list { left: auto; right: 0; }
  .nav-extra summary { padding: 0 2px; }
  .mast-inner { min-height: 59px; }
  .reading, .record-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .desks, .directory-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .intro, .page-heading { padding-block: 20px 26px; }
  .breadcrumb { padding-top: 4px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .controls label { flex: 1 1 150px; }
  .controls select, .controls input { width: 100%; }
}
@media (max-width: 420px) {
  .mast-note { max-width: 12ch; text-align: right; font-size: .62rem; }
  .nav-inner a, .nav-inner summary { font-size: .8rem; }
  .nav-inner > a { padding-inline: 8px; }
  .event { grid-template-columns: 48px 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
