/* ================================
   KYGenWeb County Base Styles
   Trigg County version
   ================================ */

:root {
  /* Fonts */
  --font-sans: "Segoe UI", Tahoma, Verdana, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  /* Text colors */
  --text-default: #22252b;    /* body text: dark slate */
  --text-muted:  #5b6272;     /* captions, notes */
  --text-heading: #182033;    /* headings: deep navy */

  /* Links */
  --link-color:   #234f7f;    /* cool blue that fits the water/sky */
  --link-hover:   #c07c57;    /* clay accent (like the county highlight) */
  --link-visited: #4f3b63;    /* muted plum */
  --link-top-bar: #ffffff;    /* white text in the dark top bar */

  /* Backgrounds */
  --page-bg:   #3b455b;       /* overall page: dusk blue */
  --header-bg: #1f2635;       /* top bar / header band: very dark navy */
  --card-bg:   #f1f4f8;       /* content “card” background: cool off-white */
  --label-bg:  #dde2ec;       /* left column label: pale blue-gray */
  --top-bar:   #1f2635;       /* same as header */
  --top-bar-border-bottom: #111621;

  /* Borders / lines */
  --border-color:  #c1c6d4;   /* card border */
  --label-border:  #b2b8c7;   /* label column divider */
  --divider-color: #d3d7e1;   /* hr, section dividers */

  /* Radii & shadows */
  --radius-card: 8px;
  --radius-image: 8px;
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 4px 10px rgba(0, 0, 0, 0.25);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Layout width */
  --max-width: 1100px;
}

/* Basic reset & layout */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: var(--space-xl) 0 calc(var(--space-xl) * 1.5);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-default);
  background: var(--page-bg);
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

/* Images: keep them from blowing out the layout */
img {
  max-width: 100%;
  height: auto;
}

/* Overall width for main content tables */
body > table,
.menu {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   Top header table
   ================================ */


/* Motto line under header */
.motto {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  font-style: italic;
  text-align: center;
  vertical-align: middle;
  font-size: 3rem;
  color: var(--divider-color);
  font-style: var(--font-serif);
}

/* ================================
   Headings
   ================================ */

h1,
h2,
h3,
h4{
  font-family: var(--font-serif);
  color: var(--text-heading);
  margin: var(--space-sm) 0 var(--space-md);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.55rem;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
}

.normal-text {
  font-size: var(--text-default-size, 1rem);
  font-weight: normal;
  line-height: 1.4;
}

/* ================================
   Section tables ("cards")
   ================================ */

table.menu {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

table.menu td {
  vertical-align: top;
}

/* Left label column */
table.menu td:first-child {
  width: 190px;
  padding: 1rem 1.25rem 1rem 1rem;
  background: var(--label-bg);
  border-right: 1px solid var(--label-border);
  font-weight: 700;
  font-size: 1.9rem;
  font-family: var(--font-serif);
  text-align: right;
  text-transform: none;
}

/* Right content column(s) */
table.menu td:nth-child(2),
table.menu td:nth-child(3) {
  padding: 1.1rem 1.75rem 1.25rem;
}

/* Tighten default paragraph spacing inside sections */
table.menu p {
  margin: 0 0 0.4rem;
}


/* ================================
   Two-column layout inside section-body
   (for About the County / history blocks)
   ================================ */

.section-body .section-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap; /* stacks on narrow screens */
}

.section-body .section-text {
  min-width: 230px;
}

.section-body .section-text,
.section-body .section-media {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

/* ================================
   Figures & images
   ================================ */

.section-body figure img {
  box-shadow: var(--shadow-strong);
  border-radius: 4px;
}

/* Figure / caption styling */
.section-body figure {
  margin: 0;
  text-align: center;
}

.section-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-image);
}

.section-body figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ================================
   Horizontal rule & contact/footer block
   ================================ */

hr {
  border: none;
  border-top: 1px solid var(--divider-color);
  margin: 0.75rem 0 1rem;
}

/* Contact block near the bottom (if present) */
#contact {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--divider-color);
}

#contact h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

#contact ul {
  margin: 0 0 0.75rem;
  padding-left: 0;
  list-style: none;
}

#contact li {
  margin-bottom: 0.25rem;
}

/* Footer text (Last Modified, copyright) */
#contact + div p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   KYGenWeb Header (Top Bar + Banner)
   ============================================ */

.header-wrap {
  width: 100%;
  background: var(--page-bg);
  margin: 0 0 var(--space-lg);
}

/* Top dark band */
.header-top {
  background: var(--top-bar);         /* dark slate */
  color: var(--text-white);
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.35rem 1rem;
  border-bottom: 2px solid var(--top-bar-border-bottom);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-top a {
  color: var(--link-top-bar);
  text-decoration: none;
}

.header-top a:hover {
  text-decoration: underline;
}

/* Banner image */
.header-banner {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 2px solid var(--border-color);
}

