/* ============================================
   KYGenWeb – Global Design Tokens
   ============================================ */

:root {

 /* Core blues */
  --kyg-navy: #020924;
  --kyg-navy-soft: #0b1220;
  --kyg-navy-tint: #041431;
  --kyg-med-blue: #506a99;
  --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: #fdfaf5;
  --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);

  --color-surface:   #ffffff;  

  /* ---------------------------------------------------------------------- */
  /* Fonts */
  --font-sans:  "Segoe UI", sans-serif, system-ui, -apple-system, BlinkMacSystemFont;
  --font-serif: "Libre Baskerville", "Georgia", "Times New Roman", serif;

  /* Backgrounds */
  --bg-page:     var(--kyg-paper);
  --bg-surface:  var(--color-surface);
  --bg-muted:    var(--kyg-cream);

  /* Text */
  --text-main:     var(--kyg-navy-tint);
  --text-muted:    var(--kyg-muted);
  --text-heading:  var(--kyg-navy-tint);
  --text-inverse:  var(--kyg-cream-light);

  /* Borders */
  --border-subtle: rgba(80, 106, 153, 0.10); /* med-blue at 25% */

  /* Tables */
  --table-header-bg: #eef2f6;
  --table-row-alt: #f7f9fb;  /* barely visible */


  /* Links */
  --link-default: var(--kyg-navy);
  --link-hover:   var(--kyg-accent-deep);

  /* Header / nav */
  --header-top-bar: var(--kyg-header-top);
  --header-top-text: var(--kyg-cream-light);

  --nav-bg: var(--kyg-slate);
  --nav-link-default: var(--kyg-navy-tint);
  --nav-link-hover-bg: var(--kyg-med-blue);
  --nav-dropdown-bg: #f4f6f9;
  --nav-dropdown-border: var(--border-subtle);

  /* Cards / hubs */
  --card-bg: var(--bg-surface);
  --card-border: var(--border-subtle);

  /* Footer */
  --footer-bg: var(--kyg-footer);
  --footer-text: var(--kyg-footer-text);
}


/* ============================================
   Reset / Base
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);      /* was --color-text-main */
  background: var(--bg-page);
}

/* Remove default margins on common block elements */
body,
h1, h2, h3, h4,
p,
ul, ol,
figure {
  margin: 0;
}

/* ============================================
   Layout Wrapper / Main
   ============================================ */

/* Layout shell */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--kyg-paper); 
}

main.page {
  /* flex: 1 0 auto; */
  padding-top: .75rem;
  /* background: var(--kyg-paper);  */
}

/* section spacing */
main.page > section {
  margin-top: 3.5rem;
}

/* Page header wrapper */
.page-header {
  background: var(--kyg-paper);
  padding: 2rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  border: 1px solid var(--kyg-cream-warm);
}
/* Main page title */
.page-title,
.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--kyg-navy-tint);
}

/* Optional subtitle line under H1 */
.page-subtitle {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--kyg-muted);
}

/* Intro paragraph */
.lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--kyg-ink);
}
.page-content {
  margin-top: 1.5rem;
}




/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: 700;
}

/* Base headings for legacy pages */
h1 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--kyg-navy-tint);
  margin: 1.75rem 0 0.75rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--kyg-navy-tint);
  margin: 1.5rem 0 0.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--kyg-navy-soft);
  margin: 1.25rem 0 0.35rem;
}

h4 {
  font-size: 1rem;
  margin: 0.8rem 0 0.3rem;
}

p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* Intro paragraph under page title */


/* Lists */
ul,
ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

li + li {
  margin-top: 0.15rem;
}

/* Links */
a {
  color: var(--link-default);
  text-decoration: none;
}

a:visited {
  color: var(--link-default); 
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

/* Utility muted text */
.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   Section Heading with Top Bar (4)
   ============================================ */

.section-heading {
 margin: 1.75rem 0 1rem;
  padding-top: 0.6rem;
  border-top: 3px solid var(--kyg-accent);
  font-size: 1.35rem;
}


/* ============================================
   Header (Site ID, NAV, Banner)
   ============================================ */

.ky-header {
  margin-bottom: 0.75rem;
}

/* Top dark bar */
.ky-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-top-bar);
  color: var(--header-top-text);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.ky-top-bar a {
  color: var(--header-top-text);
  text-decoration: none;
}

.ky-top-em a {
  font-weight: 600;
}

/* Banner (image) */
.ky-header .banner {
  padding: 0.25rem 0;
  text-align: center;
  background: var(--color-surface);
}

.ky-header .banner img {
  max-width: 100%;
  height: auto;
  max-height: 120px; /* adjust for “small” banner */
  display: block;
  margin: 0 auto;
}

/* ============================================
   NAV BAR
   ============================================ */
/* Nav bar wrapper */
.ky-nav-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 0.75rem;
}

/* Nav layout */
.ky-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Main nav list */
.ky-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  vertical-align: bottom;
}

.ky-nav-links > li {
  margin: 0;
  padding: 0;
  position: relative; /* required for dropdown positioning */
}

/* Top-level nav links */
.ky-nav-links > li > a {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--nav-link-default);
  border-radius: 4px;
}

.ky-nav-links > li > a:hover,
.ky-nav-links > li > a:focus-visible {
  background: var(--nav-link-hover-bg);
}

/* Dropdown menu */
.ky-nav-links .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--nav-dropdown-bg);
  border: 1px solid var(--nav-dropdown-border);
  border-radius: 4px;
  padding: 0.35rem 0;
  margin-top: 0.1rem;
  z-index: 10;
}

.ky-nav-links .dropdown li {
  list-style: none;
}

.ky-nav-links .dropdown a {
  display: block;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: var(--nav-link-default);
  text-decoration: none;
}

.ky-nav-links .dropdown a:hover,
.ky-nav-links .dropdown a:focus-visible {
  background: var(--nav-link-hover-bg);
}

/* Show dropdown on hover or keyboard focus */
.ky-nav-links > li.has-dropdown:hover > .dropdown,
.ky-nav-links > li.has-dropdown:focus-within > .dropdown {
  display: block;
}

/* Dropdown Color */

.ky-nav-links > li.has-dropdown {
  position: relative;
}

.ky-nav-links > li.has-dropdown > ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-dropdown-bg);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
  min-width: 220px;
  z-index: 9999;
}

.ky-nav-links > li.has-dropdown:hover > ul.dropdown,
.ky-nav-links > li.has-dropdown:focus-within > ul.dropdown {
  display: block;
}

.ky-nav-links .dropdown {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ----- DROPDOWN ARROWS ----- */

/* Add arrow to items with dropdowns */
.ky-nav-links > li.has-dropdown > a {
  position: relative;
  padding-right: 1rem; /* room for arrow */
}

/* Arrow glyph */
.ky-nav-links > li.has-dropdown > a::after {
  content: "▾";               /* down arrow */
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.75em;
  vertical-align: middle;
  opacity: 0.8;
}

/* Rotate arrow when open */
.ky-nav-links > li.has-dropdown:hover > a::after,
.ky-nav-links > li.has-dropdown:focus-within > a::after {
  transform: rotate(180deg);
}

/* Search form */
.ky-nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ky-nav-search input[type="text"] {
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
}

.ky-nav-search button {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--kyg-med-blue);
  border: 1px solid var(--kyg-navy-warm);
  color: #fff;
}

button:hover {
  background: var(--kyg-navy-warm);
}
/* =================================================== */

/* ============================================
   Generic Page Containers (Hub & Page)
   ============================================ */
main.page,
article.page,
article.hub {
  background: var(--color-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem 1.4rem 1.8rem;
  margin-bottom: 1.5rem;
}

/* Page header block */
.page-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

/* Generic content section */
.page-content {
  margin-top: 1rem;
}

/* Optional narrower text column */
.page-content.narrow {
  max-width: 48rem;
}


/* ONE PANEL PATTERN */
/* used in section as a class */

.panel {
  margin-top: 1.75rem;  /* instead of 1.25rem */
  /* margin: 2rem 0; */
  padding: 1.5rem 1.75rem 1.3rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--kyg-paper); 
}

.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
  margin-bottom: 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ================================================== */
/* County Page Research Highlights Cards  */

    .quick-sections {
       margin-top:  3.5rem; 
       margin-bottom: 2.5rem; 
      
    }

    main.page > section.quick-sections{
      margin-top: 1.5rem !important;
      margin-bottom: 3.5rem !important;
    }

    .quick-sections__grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1rem;
    }

    /* Stronger presence */
    .quick-card {
      border: 1px solid rgba(0, 0, 0, .12);
      border-radius: 16px;
      padding: 1.15rem 1.15rem 1rem;
      background: linear-gradient(180deg,
          color-mix(in srgb, var(--quick-accent) 10%, #ffffff) 0%,
          #ffffff 60%);
      box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    }

    /* Make the accent bar feel intentional */
    .quick-card::before {
      height: 10px;
      /* was 6 */
      border-radius: 16px 16px 0 0;
      /* match corners */
    }

    .quick-card {
      position: relative;
    }

    .quick-card__badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      margin: .2rem 0 .6rem;
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      background: color-mix(in srgb, var(--quick-accent) 88%, #ffffff);
      box-shadow: 0 10px 20px rgba(0, 0, 0, .10);
    }

    .quick-card {
      transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    }

    .quick-card:hover {
      transform: translateY(-3px);
      border-color: rgba(0, 0, 0, .16);
      box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
    }

    .quick-card__link {
      transition: transform .16s ease;
    }

    .quick-card:hover .quick-card__link {
      transform: translateX(2px);
    }

    /* Typography */
    .quick-card__title {
      margin: .2rem 0 .45rem;
      font-size: 1.15rem;
      line-height: 1.2;
    }

    .quick-card__text {
      margin: 0 0 .7rem;
      font-size: .98rem;
      line-height: 1.45;
      color: rgba(0, 0, 0, .78);
    }

    .quick-card__link {
      display: inline-block;
      font-weight: 700;
      text-decoration: none;
      border-bottom: 1px solid transparent;
      padding-bottom: 2px;
    }

    .quick-card__link:hover,
    .quick-card__link:focus-visible {
      border-bottom-color: currentColor;
      text-decoration: none;
      outline: none;
    }

    /* Accent colors (muted) */
    .quick-card--county {
      --quick-accent: var(--kyg-med-blue);
    }

    .quick-card--records {
      --quick-accent: var(--kyg-gold, #b08a2e);
    }

    .quick-card--people {
      --quick-accent: var(--kyg-peach, #bfa895);
    }

    .quick-card--resources {
      --quick-accent: var(--kyg-sage, #5f7a62);
    }

    /* Responsive */
    @media (max-width: 1000px) {
      .quick-sections__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 560px) {
      .quick-sections__grid {
        grid-template-columns: 1fr;
      }
    }


/* Split card layout for intro + state map */
.kyg-card-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.kyg-card-main {
  min-width: 0;
}

.kyg-card-figure {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--kyg-text-muted);
}

.kyg-card-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .kyg-card-split {
    grid-template-columns: 1fr;
  }

  .kyg-card-figure {
    margin-top: 1rem;
  }
}


/* ============================================
   Hub Layout (Collections, Research, etc.)
   ============================================ */

.hub-intro {
  margin-bottom: 1rem;
}

/* Grid of hub “cards” */
.card-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Individual hub card */
.card,
.hub-card {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.9rem 0.9rem 1rem;
  background: var(--card-bg);
}

.hub-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.hub-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Card title links */
.hub-card h2 a {
  text-decoration: none;
}

.hub-card h2 a:hover,
.hub-card h2 a:focus-visible {
  text-decoration: underline;
}

/* ============================================
   Tables
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

thead {
  background: var(--table-header-bg);
}

th,
td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border-subtle); /* horizontal only */
}

thead th {
  border-bottom: 2px solid var(--border-subtle);
  background: var(--bg-muted);
  font-weight: 600;
}

th {
  font-weight: 600;
}
/* Base header setup */
table.sortable th {
  position: relative;
  padding-right: 1.2rem; /* room for arrow */
  user-select: none;
  cursor: pointer;
}

/* Neutral arrow on all sortable headers */
table.sortable th::after {
  content: "⇅";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  opacity: 0.35; /* subtle but visible */
  pointer-events: none;
}

/* Active ascending */
table.sortable th[data-sort-dir="asc"]::after {
  content: "▲";
  opacity: 0.85;
  font-size: 0.75rem;
}

/* Active descending */
table.sortable th[data-sort-dir="desc"]::after {
  content: "▼";
  opacity: 0.85;
  font-size: 0.75rem;
}




/* ============================================
   GLOBAL FOOTER (BASE)
   ============================================ */

.kyg-footer {
  margin-top: 1rem;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1rem 1rem 0;
  font-family: var(--font-sans);
}

/* Inner container (matches wrapper width) */
.kyg-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
}

.kyg-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--footer-text);
}

/* Footer links */
.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-surface);
  text-decoration: underline;
}


/* ============================================
   LOGO ROW
   ============================================ */

.footer-logos {
  margin: 0.8rem 0 1rem;
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
}

.footer-logos img {
  display: block;
  max-height: 65px;
  height: auto;
}

/* ============================================
   DISCLAIMER / NOTES
   ============================================ */

.footer-note,
.endorsement {
  font-size: 0.75rem;
  margin-top: 0.6rem;
  color: var(--footer-text);
  opacity: 0.85;
}

/* ============================================
   DELUXE FOOTER 
   ============================================ */

.kyg-footer.deluxe .kyg-footer-inner {
  text-align: left;
}

/* Grid layout inside deluxe footer */
.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;
  color: var(--footer-text);
}

.footer-col ul {
  padding-left: 1rem;
  margin: 0.6rem 0;
  color: var(--footer-text);
}

.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
}

/* ============================================
   FOOTER BOTTOM BAR (SHARED)
   ============================================ */

.footer-bottom {
  /* subtle contrast using existing variables */
  border-top: 1px solid var(--bg-muted);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.9;
}

.footer-bottom .footnote {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.75;
}


/* ============================================
   Basic Responsiveness
   ============================================ */

@media (max-width: 700px) {
  .wrapper {
    padding: 1rem 0.75rem 2rem;
  }

  article.page,
  article.hub {
    padding: 1rem 0.9rem 1.4rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .ky-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .ky-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .ky-nav-search {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  /* If dropdowns feel fussy on small screens you can later add
     a JS-driven toggle; this CSS keeps them usable for now. */
}


/* ------------------------------
   FLEXIBLE TWO-COLUMN WITH IMAGE
   ------------------------------ */

.kyg-two-col {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1.5rem 0;
}

/* columns — can contain ANYTHING */
.kyg-two-col .col {
  flex: 1;
  min-width: 0; /* prevents overflow */
}

/* optional: let left or right column size itself based on content */
.kyg-two-col.auto-left .col:first-child {
  flex: 0 0 auto;
}
.kyg-two-col.auto-right .col:last-child {
  flex: 0 0 auto;
}

/* figure styling */
figure {
  margin: 0 0 0.5rem 0;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.kyg-two-col .map {
      max-width: 450px;
      height: auto;
    }

figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-align: center;
}

/* Left-align figcaption when used in a two-column layout */
.kyg-two-col figure figcaption {
  text-align: left;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ratio modifiers */
.kyg-two-col.ratio-30-70 .col:first-child { flex: 0 0 30%; }
.kyg-two-col.ratio-30-70 .col:last-child  { flex: 0 0 70%; }
.kyg-two-col.ratio-50-50 .col { flex: 0 0 50%; }

/* 
example for div:  class="kyg-two-col ratio-50-50" 
*/

/* mobile stacking */
@media (max-width: 700px) {
  .kyg-two-col {
    flex-direction: column;
  }
  .kyg-two-col .col {
    flex: none !important;
  }
}

/* ------------------------------
   CONTENT TYPOGRAPHY – SINGLE SOURCE OF TRUTH
   ------------------------------ */

/* Page header spacing */
.page-header {
  margin-bottom: 1.25rem;
}

.page-header p {
  max-width: 110ch;
   line-height: 1.7;
   padding-bottom: 1rem;
}

/* Base paragraphs in main content */
/* Body paragraphs */
main p {
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

/* Indented lists in content */
main ul,
main ol {
  padding-left: 1.9rem;
  margin: 0.8rem 0 1rem;
}

main li {
  margin-bottom: 0.35rem;
}

/* Space before h3 section headings */
main h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.55rem;
}



.kyg-form {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.kyg-fieldset {
  margin: 1rem 0;
  padding: 0.5rem 0 0.75rem;
  border: none;
  border-top: 1px solid var(--border-subtle);
}

.kyg-fieldset legend {
  font-weight: 600;
  padding: 0 0.25rem;
}

.kyg-field {
  margin: 0.5rem 0;
}

.kyg-field input[type="text"],
.kyg-field input[type="email"],
.kyg-field select,
.kyg-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.4rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font: inherit;
}

.kyg-actions {
  margin-top: 1rem;
  text-align: left;
}

.kyg-actions button {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 4px;
  font: inherit;
  cursor: pointer;
}

/* Hide honeypot field from humans */
.kyg-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}



/* force normal flow inside this one block */
.flow { display: block; }

/* float utility */
.figure-float { max-width: 320px; margin: 0 0 1rem 1.25rem; }
.float-right { float: right; }
.float-left  { float: left; margin: 0 1.25rem 1rem 0; }

.figure-float img { width: 100%; height: auto; border-radius: 0.75rem; }
.figure-float figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; text-align: center; }

@media (max-width: 800px){
  .float-right, .float-left { float: none; margin: 0 0 1rem 0; max-width: 100%; }
}


.people-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.person-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  background: #fff;
}

.person-photo {
  flex: 0 0 120px;
  max-width: 120px;
  text-decoration: none;
}

.person-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  background: var(--color-surface);
   max-height: 160px;  /* optional safety cap */
  object-fit: contain;
}

.person-body {
  flex: 1;
  min-width: 0;
}

.person-name {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.person-note {
  margin: 0.35rem 0;
}

.muted {
  color: var(--text-muted);
  font-style: italic;
}

.person-links {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.person-links li {
  margin: 0.25rem 0;
}

.person-card.photo-only {
  background: #fafafa;
}

/* Mobile: stack photo above text */
@media (max-width: 700px) {
  .person-card {
    flex-direction: column;
  }
  .person-photo {
    max-width: 240px;
  }
}


/* ============================================
   END OF FILE
   ============================================ */