/* Village of Byesville — visually faithful to live byesvilleoh.gov
   WordPress Twenty Fifteen + Kubio look — sidebar layout, burnt orange brand.
   Fonts: Noto Serif (headings, matching Twenty Fifteen) + Roboto (body).
   Brand: #DD9933 (Twenty Fifteen orange). Accent: #F17E18 (Kubio orange). */

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #DD9933;  /* burnt orange showing around content */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }

a { color: #DD9933; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #b87523; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Serif", "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5em;
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em 1.5em; padding: 0; }

:root {
  --orange:        #DD9933;   /* TwentyFifteen brand orange */
  --orange-deep:   #b87523;
  --orange-bright: #F17E18;   /* Kubio accent (more saturated) */
  --ink:           #1a1a1a;
  --slate:         #555555;
  --slate-light:   #777777;
  --border:        #d8d8d8;
  --border-soft:   #ececec;
  --paper:         #ffffff;
  --cream:         #fafafa;
  --shadow:        0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 24px rgba(0,0,0,0.15);
}

/* ── POC banner (sits above orange body) ───────────────────────── */
.poc-banner {
  background: #f4ca16;
  color: #5a4400;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}
.poc-banner a { color: #5a4400; text-decoration: underline; font-weight: 600; }

/* ── Site frame: Twenty Fifteen layout ──────────────────────────
   Sidebar (≈30% wide on left) on white. Content on white inset card.
   The orange #DD9933 body shows around the white area, but the white
   card extends sidebar+content-flush so it reads as one frame. */

.site {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1340px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}
@media (min-width: 960px) {
  .site { grid-template-columns: 320px 1fr; }
}

/* ── Site header (sidebar) ──────────────────────────────────── */
#secondary {
  background: var(--paper);
  padding: 2rem 1.75rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 960px) {
  #secondary {
    border-bottom: none;
    border-right: 1px solid var(--border);
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 3rem 1.75rem 3rem 2rem;
  }
}

.site-branding { margin-bottom: 2rem; }
.site-title {
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-style: italic;  /* Twenty Fifteen wordmark — italic serif */
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 0.3rem;
  line-height: 1;
}
.site-title a {
  color: var(--orange);
  text-decoration: none;
}
.site-title a:hover { color: var(--orange-deep); }
.site-description {
  margin: 0;
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Sidebar primary menu — vertical, Twenty Fifteen style */
.primary-menu {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.primary-menu li { margin: 0; padding: 0; }
.primary-menu > li > a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--orange);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.12s, padding 0.12s;
}
.primary-menu > li > a:hover { color: var(--orange-deep); padding-left: 0.4rem; }
.primary-menu > li > a.active {
  color: var(--ink);
  background: var(--orange);
  color: var(--paper);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  border-bottom-color: transparent;
}
.primary-menu > li > a.external::after {
  content: " ↗"; opacity: 0.7;
}

/* Sub-menu (nested under parent) */
.primary-menu .sub-menu {
  list-style: none; padding: 0; margin: 0 0 0.5rem;
  display: none;
}
.primary-menu li.has-children.expanded > .sub-menu,
.primary-menu li.current-menu-item .sub-menu,
.primary-menu li.current-menu-parent .sub-menu {
  display: block;
}
.primary-menu .sub-menu li a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.9rem;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border-soft);
}
.primary-menu .sub-menu li a:hover { color: var(--orange); }
.primary-menu .sub-menu li a.active { color: var(--orange); font-weight: 600; }

.menu-toggle {
  display: none;
  background: var(--orange);
  color: var(--paper);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}
@media (max-width: 959px) {
  .menu-toggle { display: inline-block; }
  .primary-menu { display: none; }
  .primary-menu.open { display: block; }
}

.sidebar-contact {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--slate);
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  line-height: 1.6;
}
.sidebar-contact strong { color: var(--ink); display: block; margin-bottom: 0.25rem; }
.sidebar-contact a { color: var(--orange); text-decoration: none; }

/* ── Main content area ──────────────────────────────────────── */
#primary {
  padding: 2rem 1.5rem;
}
@media (min-width: 960px) {
  #primary { padding: 3rem 4rem; }
}

.content-area {
  max-width: 820px;
}

/* Page hero / featured */
.entry-header {
  margin-bottom: 2rem;
}
.entry-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.entry-title {
  font-family: "Noto Serif", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.entry-lead {
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 2rem;
}
.breadcrumb {
  font-size: 0.85rem; color: var(--slate-light);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-deep); }
.breadcrumb .sep { margin: 0 0.4rem; color: var(--slate-light); }

.hero-image {
  margin: 0 -1.5rem 2rem;
  background: var(--ink);
}
@media (min-width: 960px) {
  .hero-image { margin-left: -4rem; margin-right: -4rem; }
}
.hero-image img { width: 100%; display: block; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  font-family: inherit; cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary {
  background: var(--orange); color: var(--paper);
  border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--paper); }

.btn-bright {
  background: var(--orange-bright); color: var(--paper);
  border-color: var(--orange-bright);
}
.btn-bright:hover { background: #c9650a; border-color: #c9650a; color: var(--paper); }

/* ── Sections ───────────────────────────────────────────────── */
section { margin-bottom: 3rem; }

/* ── Three-pillar (home page) ──────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pillar {
  text-align: center;
  padding: 1rem 0.5rem;
  border-top: 4px solid var(--orange);
}
.pillar-icon {
  display: inline-grid; place-items: center;
  width: 60px; height: 60px;
  background: var(--orange); color: var(--paper);
  border-radius: 50%; margin: -34px auto 1rem;
  font-size: 1.5rem;
  border: 4px solid var(--paper);
}
.pillar h3 {
  font-size: 1.3rem; margin-bottom: 0.5rem;
  color: var(--orange); font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pillar p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ── Quick links ────────────────────────────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
.ql-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  text-decoration: none; color: inherit;
  transition: all 0.15s; display: block;
}
.ql-card:hover {
  border-color: var(--orange); border-left: 4px solid var(--orange);
  padding-left: calc(1.2rem - 3px);
  color: inherit;
}
.ql-card .ql-icon {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.ql-card h4 {
  color: var(--ink); margin-bottom: 0.25rem;
  font-family: "Noto Serif", sans-serif; font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ql-card p { color: var(--slate); font-size: 0.85rem; margin: 0; line-height: 1.4; }

/* ── Two-column layouts ─────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: start;
}
@media (min-width: 720px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split.image-left { grid-template-columns: 1fr 1.05fr; }
}
.split-image img {
  width: 100%; border: 1px solid var(--border);
}
.split-image .caption {
  font-size: 0.85rem; color: var(--slate-light);
  margin-top: 0.5rem; text-align: center; font-style: italic;
}

/* ── Cards ───────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.15s;
}
.card:hover { border-color: var(--orange); }
.card-image { background: #f5f5f5; aspect-ratio: 16 / 10; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.3rem 1.3rem; flex: 1; }
.card .label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: 0.4rem;
}
.card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.card .muted { color: var(--slate); font-size: 0.92rem; }
.card a.tel { display: inline-block; margin-top: 0.5rem; font-weight: 600; }

/* ── Person grid ─────────────────────────────────────────────── */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.person {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.person img {
  width: 110px; height: 110px;
  object-fit: cover; border-radius: 50%;
  margin: 0 auto 0.85rem;
  border: 3px solid var(--orange);
}
.person h4 {
  font-family: "Noto Serif", sans-serif; font-size: 1rem;
  margin-bottom: 0.15rem; color: var(--ink); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.person .role { font-size: 0.85rem; color: var(--orange); margin: 0 0 0.4rem; font-weight: 600; }
.person .contact { font-size: 0.85rem; line-height: 1.5; }
.person .contact a { display: block; margin-top: 0.2rem; }
.person .committees {
  font-size: 0.78rem; color: var(--slate-light);
  border-top: 1px solid var(--border-soft);
  margin-top: 0.6rem; padding-top: 0.6rem;
}

/* ── Tables ──────────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse; margin-top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
}
.data-table th, .data-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
}
.data-table th {
  background: var(--orange); color: var(--paper);
  font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fdf6ec; }
.data-table a { font-weight: 600; }

/* ── Phone list ──────────────────────────────────────────────── */
.phone-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem; margin-top: 1.5rem;
  list-style: none; padding: 0;
}
.phone-list li {
  background: var(--paper);
  border-left: 4px solid var(--orange);
  padding: 0.85rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.75rem;
}
.phone-list .label { color: var(--slate); font-size: 0.88rem; font-weight: 500; }
.phone-list a { font-weight: 600; font-size: 1rem; white-space: nowrap; color: var(--orange); }

/* ── Announcements ───────────────────────────────────────────── */
.announcement {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}
.announcement.alert  { border-left-color: #cf2e2e; }
.announcement.update { border-left-color: #f4ca16; }
.announcement .meta {
  font-size: 0.75rem; color: var(--slate-light);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; margin-bottom: 0.3rem;
}
.announcement h3 {
  margin-bottom: 0.4rem; font-size: 1.1rem;
  font-family: "Noto Serif", sans-serif; font-weight: 700;
  text-transform: none;
}
.announcement p { margin: 0 0 0.5em; color: var(--slate); font-size: 0.92rem; }
.announcement p:last-child { margin-bottom: 0; }
.announcement a { font-weight: 500; }

/* ── Year report grid ────────────────────────────────────────── */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem; margin-top: 1.5rem;
}
.report-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1rem 0.5rem; text-align: center;
  text-decoration: none; color: var(--ink);
  transition: all 0.15s; display: block;
}
.report-card:hover { background: var(--orange); color: var(--paper); border-color: var(--orange); }
.report-card .year {
  font-family: "Noto Serif", sans-serif;
  font-size: 1.5rem; font-weight: 700;
  display: block; line-height: 1; color: var(--orange);
}
.report-card:hover .year { color: var(--paper); }
.report-card .label {
  font-size: 0.7rem; letter-spacing: 0.06em;
  color: var(--slate); margin-top: 0.4rem; display: block;
  text-transform: uppercase;
}
.report-card:hover .label { color: var(--paper); }

/* ── Callout box ─────────────────────────────────────────────── */
.callout {
  background: #fdf6ec;
  border-left: 4px solid var(--orange);
  padding: 1.1rem 1.4rem; margin: 1.5rem 0;
}
.callout.yellow { background: #fdf8e0; border-left-color: #f4ca16; }
.callout.red    { background: #fdf2f2; border-left-color: #cf2e2e; }
.callout.green  { background: #ecfdf5; border-left-color: #00d084; }
.callout h4 { margin-bottom: 0.3rem; font-size: 1rem; font-family: "Noto Serif", sans-serif; text-transform: none; }
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: 0.92rem; color: var(--slate); }

/* ── CTA banner ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--orange); color: var(--paper);
  padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; margin: 2rem 0;
}
.cta-banner h3 { margin: 0; color: var(--paper); font-family: "Noto Serif", sans-serif; }
.cta-banner p { margin: 0; color: rgba(255,255,255,0.9); }
.cta-banner .btn { background: var(--paper); color: var(--orange); border-color: var(--paper); }
.cta-banner .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── Markdown content ────────────────────────────────────────── */
.markdown { line-height: 1.7; }
.markdown h2 { margin-top: 2rem; }
.markdown h3 { margin-top: 1.5rem; }
.markdown ul, .markdown ol { margin-bottom: 1.25em; }
.markdown li { margin-bottom: 0.4em; }
.markdown blockquote {
  border-left: 4px solid var(--orange);
  margin: 1.5em 0; padding: 0.5em 1.5em;
  color: var(--slate); background: #fdf6ec;
  font-style: italic;
}

.prose { max-width: 720px; }
.prose p { font-size: 1rem; line-height: 1.65; }

/* ── Site footer (bottom of content area) ───────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--slate);
}
.site-footer .colophon { color: var(--slate-light); font-size: 0.8rem; }

/* ── Utility ─────────────────────────────────────────────────── */
.muted { color: var(--slate); }
.text-center { text-align: center; }
.tag {
  display: inline-block; background: #fdf6ec; color: var(--orange);
  padding: 0.15rem 0.55rem; border-radius: 3px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-left: 0.5rem;
}
