/* =========================================================
  statewide base
   ========================================================= */

/* ------------------------------
   Root variables
   ------------------------------ */
:root {
  /* Fonts */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;

 /* Core blues */
  --kyg-navy: #020924;
  --kyg-navy-soft: #0b1220;
  --kyg-navy-tint: #041431;
  --kyg-med-blue: #eff4fd;
  --kyg-navy-warm: #2e384d;
  

  /* Golds */
  --kyg-accent: #c2923a;
  --kyg-accent-deep: #a87323;

  /* Neutrals */
  --kyg-cream: #f7f3eb;
  --kyg-cream-light: #fbf8f2;
  --kyg-cream-warm: #f0e4d2;
  --kyg-paper: #f7f6f6;
  --kyg-ink: #111111;
  --kyg-muted: #555555;
  --kyg-slate: #eef2f6;

  /* Header + footer colors */
  --kyg-header-top: var(--kyg-navy-warm);
  --kyg-footer: var(--kyg-navy-warm);
  --kyg-footer-text: var(--kyg-cream-light);
  --kyg-footer-hover: var(--kyg-accent);

  --color-surface:   #ffffff;  
  --card-bg: #b9b9b8;

    /* Borders */
  --border-subtle: rgba(80, 106, 153, 0.10); /* med-blue at 25% */

/* -------------------------------- */

  /* Backgrounds */
  --bg-page:     var(--kyg-cream);
  --bg-surface:  var(--color-surface);
  --bg-muted:    var(--kyg-muted);

  /* Text */
  --text-main:     var(--kyg-navy-tint);
  --text-muted:    var(--kyg-muted);
  --text-heading:  var(--kyg-navy-tint);
  --text-inverse:  var(--kyg-cream-light);

  /* Text colors */
  --text-default: var(--kyg-navy-tint);
  --text-muted: var(--kyg-muted);
  --text-heading: var(--kyg-navy-tint);

  /* Links */
  --link-color: var(--kyg-navy);
  --link-hover: var(--kyg-accent-deep);
  --link-visited: var(--kyg-navy);
  --link-top-bar: var(--color-surface);

  /* page background around the site */
  --wrapper-bg: var(--color-surface);
  --bkgd-lite: var(--bg-surface);
  --border-box: var(--border-subtle);

  /* site content background */
  --top-bar: var(--kyg-header-top);

  /* nav bar */
  --top-bar-border-bottom: #1a222f;
  --nav-bg: var(--kyg-med-blue);
  --nav-dropdown: var(--kyg-accent);
  /* Header / nav */
  --header-top-bar: var(--kyg-header-top);
  --header-top-text: var(--kyg-cream-light);


  --card-bg: var(--card-bg);
  --card-border: var(--border-subtle);
 
  /* Footer */
  --footer-bg: var(--kyg-footer);
  --footer-text: var(--kyg-footer-text);

  --accent: var(--kyg-accent);

  /* Borders / lines */
  --border-color: var(--border-subtle);

}

/* ------------------------------
   Basic reset / base styles
   ------------------------------ */

/* Global reset */
* {
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

/* Wrapper that holds the whole page */
.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--wrapper-bg); 
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
   Typography
   ------------------------------ */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: var(--text-heading);
  margin: 1.25rem 0 0.75rem;
}

h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.4rem;
  text-transform: none;
}

h3 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  text-transform: none;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 0.75rem 1.5rem;
  padding: 0;
}

li {
  margin-bottom: 0.25rem;
}

/* 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 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tables (for lists, etc.) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

th,
td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

thead th {
  background-color: #f0f0f0;
}

/* ------------------------------
   Layout: header, nav, banner
   ------------------------------ */


header {
  display: block;
}

.banner {
  text-align: center;
  background: #ffffff;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--link-color);
}

.banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  width: 100%;
}

/* Top header wrapper */
.ky-header {
  font-family: var(--font-sans, "Segoe UI", Tahoma, sans-serif);
}

/* Dark strip: title + USGenWeb badge */
.ky-top-bar {
  background: var(--header-top-bar);
  color: var(--header-top-text);
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.ky-top-bar a {
  color: white;
  text-decoration: none;
}

.ky-top-bar a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.ky-top-em {
  font-style: italic;
  font-weight: 600;
}

.ky-top-left {
  white-space: nowrap;
}

.ky-top-right {
  text-align: right;
}

.usgenweb-badge {
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
}

.usgenweb-name {
  font-weight: 600;
}

/* AFTER BANNER IMAGE  */
/* Light nav + search band */
.ky-nav-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

/* Nav links */

/* Dropdown menu panel */

/* Base dropdown */

/* 20DEC25 - Set background color */
/* required so the absolute dropdown positions correctly */
.ky-nav-links > li {
  position: relative;
}

/* the dropdown panel */
.ky-nav-links > li > ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-bg) !important;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
  min-width: 220px;
  z-index: 9999;
}

/* show it */
.ky-nav-links > li.has-dropdown:hover > ul.dropdown,
.ky-nav-links > li.has-dropdown:focus-within > ul.dropdown {
  display: block;
}

/* make sure links are not forcing white */
.ky-nav-links > li > ul.dropdown a {
  display: block;
  padding: 0.35rem 0.75rem;
  background: transparent !important;
  color: var(--link-color);
  text-decoration: none;
}

.ky-nav-links > li > ul.dropdown a:hover {
  background: var(--accent);
  color: var(--link-top-bar);
}


/* ---------------------------- */
.ky-nav-links a {
  margin-right: 0.75rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--link-color);
  /* your link blue */
}

.ky-nav-links a:hover {
  text-decoration: underline;
}

/* Search form (Footsteps-style) */
.ky-nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ky-nav-search input[type="text"] {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid var(--link-color);
  border-radius: 4px;
  width: 180px;
}

.ky-nav-search button {
  padding: 0.32rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--top-bar-border-bottom);
  background: var(--accent);
  color: var(--link-top-bar);
  cursor: pointer;
}

.ky-nav-search button:hover {
  opacity: 0.9;
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .ky-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .ky-nav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ky-nav-search input[type="text"] {
    width: 160px;
  }
}


/* ------------------------------
   Main content area
   ------------------------------ */

main {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
  background-color: var(--card-bg);
}

/* Standard article content */
article {
  max-width: 900px;
  margin: 0 auto;
}

/* If you still use article.right on some pages, style it as a side card */
article.right {
  max-width: 320px;
  margin: 0 0 1.5rem auto;
  padding: 1rem 1.25rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}




/* ------------------------------
   FOOTER — GLOBAL BASE STYLES
   ------------------------------ */

.kyg-footer {
  margin-top: 5px;
  background: var(--footer-bg);
  padding: 1.5rem 1rem;
  border-top: 3px solid var(--top-bar-border-bottom);
  font-family: var(--font-sans);
  color: var(--footer-text);
  text-align: center;
}

/* keep text alignment/spacing on the inner, not the full-width band */
.kyg-footer-inner {
  max-width: 1100px;          /* match your main wrapper width */
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.kyg-footer.deluxe .kyg-footer-inner {
  text-align: left;
}

.kyg-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ------------------------------
   LINKS
   ------------------------------ */

.kyg-footer a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
}

.kyg-footer a:hover {
  color: var(--footer-bg);
  background: var(--kyg-footer-hover);
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--footer-bg);
  background: var(--kyg-footer-hover);
  text-decoration: underline;
}


/* ------------------------------
   LOGO ROW (Simple + Deluxe)
   ------------------------------ */

.footer-logos {
  margin: 0.8rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

.footer-logos img {
  display: block;
  max-height: 55px;
  height: auto;
}

/* copyright strip gets its own subtle background */

.footer-bottom {
  background:  var(--footer-bg);
  border-top: 1px solid var(--footer-bg);
  padding: 0.75rem 0;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ------------------------------
   FOOTER NOTES / DISCLAIMER
   ------------------------------ */

.footer-note,
.endorsement {
  font-size: 0.75rem;
  margin-top: 0.6rem;
    color: var(--footer-text);
  opacity: 0.85;
}

/* ------------------------------
   DELUXE FOOTER LAYOUT
   ------------------------------ */

.kyg-footer.deluxe {
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
    color: var(--footer-text);
  letter-spacing: 0.04em;
}

.footer-col p,
.footer-col ul {
  font-size: 0.85rem;
}

.footer-col ul {
  padding-left: 1rem;
  margin: 0.6rem 0;
}

/* ------------------------------
   DELUXE FOOTER — BOTTOM BAR
   ------------------------------ */

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.75;
}




/* ------------------------------
   Top navigation dropdowns
   ------------------------------ */

.ky-nav-links {
  display: flex;
  align-items: center;
}

/* Top-level menu */
.top-menu {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.top-menu>li {
  position: relative;
}

/* Top-level links */
.top-menu>li>a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--link-color);
  padding: 0.25rem 0.1rem;
  display: inline-block;
}

.top-menu>li>a:hover {
  text-decoration: underline;
}

/* Submenu (dropdown) */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 50;
}

.submenu li a {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--link-color);
}

.submenu li a:hover {
  background: #e5f0ff;
}

/* Show submenu on hover */
.top-menu>li:hover>.submenu {
  display: block;
}


/* ------------------------------
   Responsive adjustments
   ------------------------------ */

@media (max-width: 768px) {
  .top-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-list {
    margin-top: 0.35rem;
  }

  /* Dropdowns align better on small screens */
  .dropdown .dropdown-content {
    left: 0;
    right: auto;
  }

  main {
    padding: 0.75rem 1rem 1.5rem;
  }

  article {
    max-width: 100%;
  }

  article.right {
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}

/* Front page two cols with img */
.two-col-with-img {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* 50 / 50 */
  gap: 20px;
  align-items: flex-start;
  margin: 1rem 0;
}

/* Left column text */
.two-col-with-img .text-col {
  margin: 0;
  padding-left: 0;
}

/* Right column image + list */
.two-col-with-img .img-col img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.5rem;
}

.soft-rule {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 1.2rem 0 0;
}

/* Optional: tighten list under the image */
.two-col-with-img .img-col ul {
  margin-top: 0.25rem;
}



/* Inline menu search (Footsteps style) */

.menu-search {
  display: flex;
  align-items: center;
}

.menu-search-form {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.menu-search-input {
  padding: 4px 6px;
  font-size: 0.85rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  width: 150px;
}

.menu-search-button {
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.menu-search-button:hover {
  background: #f0f0f0;
}

pre {
  background: #fbfbfb;
  border: 1px solid var(--border-box);
  padding: 1rem;
  border-radius: 6px;
  font-family: "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.35;
  max-height: 600px;
  /* optional: scroll if long */
  overflow-y: auto;
  white-space: pre-wrap;
  /* allows wrapping */
}

/* Figures  */
/* General photo-page tweaks */
.photo-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Feature image */
.photo-feature {
  margin: 1rem 0 1.5rem;
  text-align: center;
}

.photo-feature img {
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.photo-feature figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-default);
  font-style: italic;
}

/* Grid gallery for many images */
.photo-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Optional tighter grid for “lots of small images” ★ */
.photo-gallery.tight {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

/* Any direct child in the gallery is a grid item */
.photo-gallery>figure,
.photo-gallery>img,
.photo-gallery>a {
  margin: 0;
}

/* Images inside the gallery */
.photo-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-box);
  padding: 6px;
  background: var(--card-bg);
}

.photo-gallery figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-default);
  font-style: italic;
}

/* ============================================= */

/* slightly tighter text just for Footsteps index */
.kyf-index {
  font-size: 0.95rem;
  line-height: 1.5;
}


.kyf-index p {
  margin-bottom: 0.6rem;
}

/* Instructions card at top of date pages */
.kyf-index .footsteps-instructions {
  background: var(--card-bg);
  border-left: 4px solid var(--link-color);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 1.5rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Heading alignment inside Footsteps pages */
.kyf-index h2 {
  margin-left: 1.5rem;
  /* matches .kyf-panel and .kyf-index pre */
  margin-bottom: 0.75rem;

}

/* The big December 2003 block (and other dates) */
.kyf-index pre {
  margin: 1.5rem 1.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem 1.3rem;
  font-family: "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Big preformatted date index on Footsteps date pages */
.kyf-date-index {
  display: block;
  margin: 1.5rem 1.5rem 2rem;
  /* line up with .kyf-panel side margins */
  padding: 1rem 1.3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-box);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-x: auto;
}

/* Remove the default extra indent from blockquote inside pre */
.kyf-date-index blockquote {
  margin: 0;
  padding: 0;
}

/* KY Footsteps: gray content blocks */
.kyf-panel {
  background: var(--bkgd-lite);
  border: 1px solid var(--border-box);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

/* keep headings tight at the top of a panel */
.kyf-panel h2 {
  margin-top: 0;
  margin-left: 0;
}

/* Collapsible instructions box (Footsteps) */
.kyf-instructions {
  margin: 1.5rem 1.5rem 1.75rem;
  padding: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

/* The clickable header */
.kyf-instructions summary {
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--link-color);
  list-style: none;
  /* removes the default triangle */
  position: relative;
}

/* Add a nicer disclosure arrow */
.kyf-instructions summary::after {
  content: "▸";
  position: absolute;
  right: 1rem;
  transition: transform 0.2s ease;
}

/* Rotate arrow when open */
.kyf-instructions[open] summary::after {
  transform: rotate(90deg);
}

/* Inner content */
.instructions-content {
  padding: 0.9rem 1.3rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.instructions-content p {
  margin-bottom: 0.6rem;
}


/* KY Footsteps date  – compact version */
.kyf-menu {
  margin-top: 8px;
  font-size: 0.85rem;
}

/* main table layout */
.kyf-menu table {
  width: 100%;
  border-collapse: collapse;
}

/* top row: intro blurbs */
.kyf-menu tr:first-child td {
  padding: 4px 4px 4px;
  vertical-align: top;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-default);
}

.kyf-menu tr:first-child td:first-child {
  text-align: left;
}

.kyf-menu tr:first-child td:nth-child(2) {
  text-align: center;
}


/* year column */
.kyf-menu th {
  text-align: right;
  padding: 6px 6px 6px 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-default);
  font-weight: 600;
}

/* month cells – base */
.kyf-menu td {
  padding: 2px 10px;
  text-align: center;
  white-space: nowrap;
  color: var(--text-muted)
    /* non-link months look muted */
}

/* linked months: small “pills” */
.kyf-menu td a {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--link-color);
  font-weight: 500;
}

.kyf-menu td a:hover {
  background: #e5f0ff;
  border-color: #b7c6df;
}

/* remove the old striping */
.kyf-menu tr:nth-child(odd) td,
.kyf-menu tr:nth-child(odd) th {
  background-color: transparent;
}

/* horizontal lines only */
.kyf-menu tr {
  border-bottom: 1px solid var(--border-color);
}

.kyf-menu tr:last-child {
  border-bottom: none;
}

/* ========================================================= */
/* ========================================================= */
/* ========================================================= */

/* ==============================
   KY Footsteps specific styles
   ============================== */

/* Gray content panels for Topic / County / Date blocks */
.kyf-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 1rem 1.3rem;
  margin: 1.25rem 1.5rem;
  /* left/right margin restored */
  border-radius: 4px;
}

/* Tighter lists inside panels */
.kyf-panel ul,
.kyf-panel ol {
  margin: 0.2rem 0 0.5rem 1.4rem;
  /* bring bullets in a bit */
  padding: 0;
}

.kyf-panel li {
  margin-bottom: 0.1rem;
  line-height: 1.35;
  font-size: 0.92rem;
}

/* Instruction box at top of date pages / index */
.footsteps-instructions {
  background: var(--card-bg);
  border-left: 4px solid var(--link-color);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 1.5rem;
  /* fixed: no stray space */
  font-size: 0.95rem;
  line-height: 1.5;
}

.footsteps-instructions p {
  margin-bottom: 0.6rem;
}

/* "Topic Archive" button */
.files-btn {
  display: inline-block;
  background: var(--border-color);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  margin-left: 0.3rem;
}

.files-btn:hover {
  background: var(--link-hover);
  color: #fff;
}