/* City of Edgerton, Kansas — design concept B ("Global routes, local roots") by Clearview.
   A new palette, deliberately not the City's current brown/lime: navy, route teal, signal orange, wheat.
   The logo is kept as the City's own and sits on the navy band, where its lime and orange read clearly. */
:root {
  --navy: #10223f;       /* header, footer, headings (15.9:1 on white) */
  --navy-2: #1d3560;
  --teal: #00707a;       /* links and route lines (5.8:1 on white) */
  --teal-dk: #005058;
  --signal: #c2410c;     /* alerts and the "you are here" route stop (5.2:1 on white) */
  --wheat: #f2e3b3;      /* tints */
  --sky: #dbe8f2;
  --paper: #fbf8f1;
  --ink: #141a24;
  --muted: #4b5563;
  --line: #d9dee6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 76rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: anywhere; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* concept ribbon */
.concept-bar { background: #000; color: #fff; font-size: .88rem; }
.concept-bar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: space-between; padding-top: .4rem; padding-bottom: .4rem; }
.concept-bar a { color: #fff; }
.concept-bar button { font: inherit; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 999px; padding: .1rem .7rem; cursor: pointer; }

/* header: navy band, logo, menu as a row of route stops */
.site-head { background: var(--navy); color: #fff; }
.site-head .top { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.brand img { width: 220px; }
.site-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.site-head nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .3rem 0; display: inline-block; border-bottom: 3px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current="page"], .site-head nav a.in-section { border-bottom-color: var(--wheat); }
.routes { height: 9px; background: linear-gradient(to bottom, var(--teal) 0 3px, var(--wheat) 3px 6px, var(--signal) 6px 9px); }

/* alert strip */
.alert-strip { background: #fff4ec; border-bottom: 1px solid #f0c7ad; }
.alert-strip .wrap { display: flex; gap: .7rem; align-items: baseline; padding-top: .55rem; padding-bottom: .55rem; }
.alert-strip .dot { flex: none; width: .8rem; height: .8rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px #fcd9c4; transform: translateY(.1rem); }
.alert-strip b { color: var(--signal); }

/* hero: search first */
.hero { background: var(--navy); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-top: 2.6rem; padding-bottom: 2.6rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #e6ebf3; font-size: 1.15rem; }
.bigsearch { display: flex; gap: 0; margin: 1.2rem 0 1rem; max-width: 36rem; }
.bigsearch label { display: block; }
.bigsearch input { flex: 1; min-width: 0; font: inherit; font-size: 1.15rem; padding: .8rem 1rem; border: 0; border-radius: 6px 0 0 6px; }
.bigsearch button { font: inherit; font-weight: 700; background: var(--wheat); color: var(--navy); border: 0; border-radius: 0 6px 6px 0; padding: 0 1.3rem; cursor: pointer; }
.suggest { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.suggest a { display: inline-block; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: .25rem .85rem; text-decoration: none; font-size: .95rem; }
.suggest a:hover { background: #fff; color: var(--navy); }
.map figure { margin: 0; }
.map svg { width: 100%; height: auto; display: block; }
.map figcaption { font-size: .85rem; color: #cfd8e6; margin-top: .4rem; }

/* today strip */
.today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: -1.6rem; position: relative; }
.today > div { padding: 1rem 1.2rem; border-left: 1px solid var(--line); }
.today > div:first-child { border-left: 0; }
.today .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 .25rem; }
.today .v { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin: 0; }

/* sections */
.band { padding: 2.6rem 0; }
.band.white { background: #fff; }
.band.wheat { background: var(--wheat); }
.kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dk); font-weight: 700; margin: 0 0 .3rem; }
.page-title { padding: 2.2rem 0 1.4rem; }
.page-title .lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.crumbs { font-size: .9rem; margin: 0 0 .5rem; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; }

/* audience tabs on home */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.tabs [role="tab"] { font: inherit; font-weight: 700; background: #fff; color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: .4rem 1.1rem; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.svc a { display: block; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 6px; padding: .8rem 1rem; text-decoration: none; color: var(--navy); font-weight: 600; height: 100%; }
.svc a:hover { border-left-color: var(--signal); }
.svc span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; margin-top: .2rem; }

/* A–Z directory */
.az-tools { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
.field { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 14rem; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
input[type="search"], input[type="email"], input[type="text"], select, textarea { font: inherit; padding: .5rem .65rem; border: 1px solid #6b7280; border-radius: 6px; width: 100%; max-width: 100%; background: #fff; }
.az h2 { font-size: 1.5rem; border-bottom: 2px solid var(--navy); padding-bottom: .2rem; margin-top: 1.4rem; }
.az ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.az li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px dotted var(--line); }
.aud { font-size: .78rem; color: var(--muted); margin-left: .3rem; }

/* route line: meetings timeline */
.route { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; }
.route::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 6px; background: var(--teal); border-radius: 3px; }
.route > li { position: relative; padding: 0 0 1.4rem 1rem; }
.route > li::before { content: ""; position: absolute; left: -1.95rem; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.route > li.next::before { border-color: var(--signal); background: var(--signal); }
.route time { font-weight: 700; color: var(--navy); }
.route h3 { margin: .1rem 0 .3rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a, .chips span { display: inline-block; font-size: .9rem; border: 1px solid var(--teal); border-radius: 999px; padding: .1rem .7rem; text-decoration: none; background: #fff; }
.chips span { border-color: var(--line); color: var(--muted); }
.fmt { font-size: .75rem; color: var(--muted); }

/* agenda: two columns with an item index */
.agenda-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2.4rem; align-items: start; }
.agenda-wrap aside { position: sticky; top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; font-size: .92rem; }
.agenda-wrap aside ol { padding-left: 1.4rem; margin: 0; }
.items { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.items li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .7rem 1rem .7rem 3.4rem; margin: 0 0 .5rem; position: relative; }
.items .n { position: absolute; left: .8rem; top: .55rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.items .act { display: block; font-size: .88rem; color: var(--signal); font-weight: 700; margin-top: .2rem; }
.items li:target { outline: 3px solid var(--signal); }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }

/* code reader: three panes */
.reader { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 15rem; gap: 1.6rem; align-items: start; }
.reader .tree, .reader .info { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; font-size: .9rem; }
.reader .tree ol { list-style: none; padding: 0; margin: 0; }
.reader .tree li { margin: .15rem 0; }
.reader .tree .art { font-weight: 700; color: var(--navy); margin-top: .6rem; }
.reader .text { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.8rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; }
.reader .text h2 { font-size: 1.4rem; margin-top: 1.6rem; }
.reader .text h2:first-child { margin-top: 0; }
.sec { padding: .8rem 0 .4rem; border-top: 1px solid var(--line); }
.sec h3 { font-size: 1.12rem; }
.sec h3 .num { color: var(--teal-dk); }
.sec .hist { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.sec:target { background: #fff4ec; box-shadow: 0 0 0 .6rem #fff4ec; }
.status-line { display: inline-flex; gap: .5rem; align-items: center; background: var(--sky); border-radius: 999px; padding: .25rem .9rem; font-size: .92rem; margin: 0 0 1rem; }

/* calendar: grouped agenda */
.weeks h2 { font-size: 1.3rem; margin-top: 1.6rem; }
.day { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.day .d { font-family: var(--serif); color: var(--navy); line-height: 1.1; }
.day .d b { display: block; font-size: 1.6rem; }
.day ul { list-style: none; margin: 0; padding: 0; }
.day li { margin: 0 0 .35rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 3px; padding: 0 .4rem; margin-right: .3rem; }
.tag.meet { background: var(--navy); color: #fff; }
.tag.rec { background: #d3ecea; color: #00494f; }
.tag.com { background: var(--wheat); color: #4a3b06; }
.filterbar { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.filterbar button { font: inherit; font-size: .92rem; background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: 999px; padding: .25rem .9rem; cursor: pointer; }
.filterbar button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* documents, news, cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; }
.meta { font-size: .88rem; color: var(--muted); }
.badge { font-size: .75rem; border-radius: 3px; padding: 0 .4rem; background: var(--sky); color: var(--navy); white-space: nowrap; }
.badge.arch { background: #eceef1; color: #3c4350; }

/* buttons, forms, notes */
.btn { display: inline-block; background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 6px; padding: .55rem 1.1rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--teal); }
.formnote:empty { display: none; }
.formnote { background: #fff4ec; border-left: 4px solid var(--signal); padding: .5rem .8rem; margin-top: .6rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.4rem; margin: 0 0 1.2rem; }
.panel.alert { border-left: 8px solid var(--signal); }
.staff { border: 2px dashed var(--navy-2); border-radius: 8px; background: #fff; padding: 1rem 1.2rem; }
.staff .bar { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--navy-2); margin: 0 0 .4rem; }
.note { background: #fffbe8; border: 1px dashed #9a7b00; border-radius: 6px; padding: .7rem .9rem; margin: 1.2rem 0; font-size: .93rem; color: #3b3000; }
body.notes-off .note { display: none; }
.need { background: #eceef1; border: 1px dashed #6b7280; padding: 0 .3rem; font-size: .9rem; }
.prose { max-width: 46rem; }
.results li { margin: .35rem 0; }

/* footer */
.site-foot { background: var(--navy); color: #fff; padding: 2.2rem 0 6.5rem; /* keeps the Nanopage badge corner clear */ }
.site-foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.6rem; }
.site-foot h2 { color: #fff; font-size: 1.1rem; }
.site-foot a { color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .25rem 0; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; font-size: .88rem; color: #dfe5ee; }
.site-foot .fine a { color: #fff; }

@media (max-width: 64rem) {
  .reader { grid-template-columns: 13rem minmax(0, 1fr); }
  .reader .info { display: none; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  h1 { font-size: 2rem; }
  .hero .wrap, .cols, .agenda-wrap, .reader { grid-template-columns: minmax(0, 1fr); }
  .reader .tree, .agenda-wrap aside { position: static; max-height: none; }
  .today { grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
  .today > div { border-left: 0; border-top: 1px solid var(--line); }
  .today > div:first-child { border-top: 0; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .az ul { columns: 1; }
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .reader .text { padding: 1rem; }
  .brand img { width: 180px; }
  .day { grid-template-columns: 4rem minmax(0, 1fr); }
  dl.facts { grid-template-columns: minmax(0, 1fr); }
}
@media print { .concept-bar, .note, .site-head nav { display: none; } }
