.mtop0{margin-top: 0px;}
.mtop5{margin-top: 5px;}
.mtop10{margin-top: 10px;}
.mtop15{margin-top: 15px;}
.mtop20{margin-top: 20px;}
.mtop30{margin-top: 30px;}
.mtop40{margin-top: 40px;}
.mtop50{margin-top: 50px;}
.mtop60{margin-top: 60px;}
.mtop80{margin-top: 80px;}
.mtop90{margin-top: 90px;}
.mtop100{margin-top: 100px;}

.mbot0{margin-bottom: 0px;}
.mbot5{margin-bottom: 5px;}
.mbot10{margin-bottom: 10px;}
.mbot20{margin-bottom: 20px;}
.mbot30{margin-bottom: 30px;}
.mbot40{margin-bottom: 40px;}
.mbot50{margin-bottom: 50px;}
.mbot60{margin-bottom: 60px;}
.mbot70{margin-bottom: 70px;}
.mbot80{margin-bottom: 80px;}
.mbot90{margin-bottom: 90px;}
.mbot100{margin-bottom: 100px;}

.cdivide {
border: none;
height: 1px;
background: #666666;
margin-top:30px;
margin-bottom:10px;
}

/* ── Auditor page: staff cards ── */
  .aud-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .aud-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
  }
  .aud-staff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .15rem;
  }
  .aud-staff-card .aud-staff-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .6rem;
  }
  .aud-staff-card .aud-staff-note {
    font-size: .82rem;
    color: var(--gray-600);
    margin-bottom: .55rem;
    font-style: italic;
  }
  .aud-staff-contact {
    display: flex;
    flex-direction: column;
    gap: .3rem;
  }
  .aud-staff-contact a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: var(--blue-lt);
    text-decoration: none;
  }
  .aud-staff-contact a:hover { color: var(--navy); text-decoration: underline; }
  .aud-staff-contact i {
    width: 14px;
    text-align: center;
    font-size: .8rem;
    color: var(--blue);
    flex-shrink: 0;
  }

	/* ── Clerk of Courts: staff profile with photo ── */
  .coc-staff-profile {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.25rem;
  }
  .coc-staff-photo {
    flex-shrink: 0;
    width: 220px;
  }
  .coc-staff-photo img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow);
  }
  .coc-staff-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .1rem;
  }
  .coc-staff-info .coc-staff-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .75rem;
  }
  .coc-staff-contact {
    display: flex;
    flex-direction: column;
    gap: .35rem;
  }
  .coc-staff-contact a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--blue-lt);
    text-decoration: none;
  }
  .coc-staff-contact a:hover { color: var(--navy); text-decoration: underline; }
  .coc-staff-contact i {
    width: 14px;
    text-align: center;
    font-size: .8rem;
    color: var(--blue);
    flex-shrink: 0;
  }
  .coc-staff-contact .coc-label {
    font-size: .9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .coc-staff-contact .coc-label i {
    color: var(--blue);
  }
  @media (max-width: 560px) {
    .coc-staff-profile { flex-direction: column; }
    .coc-staff-photo { width: 120px; }
  }

	 /* ── Commissioners: current year commission table ── */
  .cc-courthouse-img {
    float: right;
    width: 38%;
    max-width: 380px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 0 0 1.25rem 1.75rem;
  }
  @media (max-width: 600px) {
    .cc-courthouse-img {
      float: none;
      width: 100%;
      max-width: 100%;
      margin: 0 0 1.25rem 0;
    }
  }
  .cc-leadership {
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.8;
  }
  .cc-leadership strong {
    display: block;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: .3rem;
  }
  .cc-districts {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    margin-bottom: 1.25rem;
  }
  .cc-districts thead th {
    background: var(--navy);
    color: var(--white);
    padding: .6rem .85rem;
    text-align: left;
    font-weight: 700;
  }
  .cc-districts tbody tr { border-bottom: 1px solid var(--gray-200); }
  .cc-districts tbody tr:last-child { border-bottom: none; }
  .cc-districts tbody tr:nth-child(even) { background: var(--gray-100); }
  .cc-districts tbody tr:hover { background: #e8edf4; }
  .cc-districts tbody td { padding: .6rem .85rem; color: var(--gray-600); vertical-align: top; }
  .cc-districts tbody td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

  /* history accordion note text */
  .cc-hist-entry { font-size: .93rem; color: var(--gray-600); line-height: 1.8; }
  .cc-hist-entry p { margin-bottom: .35rem; }
  .cc-hist-entry p:last-child { margin-bottom: 0; }

 /* ── Open Burning: infographic image ── */
   .ob-infographic-wrap {
    margin-top: 1.50rem;
		margin-bottom: 2rem;
    width: 100%;
    overflow: hidden;
  }
  .ob-infographic {
    width: 100%;
    max-width: 560px;
    height: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: block;
  }

  /* ── Emergency Management: staff card (reuses aud- pattern) ── */
  .em-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .em-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    overflow: hidden;
    float: right;
    width: 280px;
    margin: 0 0 1.25rem 1.75rem;
  }
  .em-staff-photo {
    width: 100%;
  }
  .em-staff-photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
  .em-staff-info {
    padding: 1rem 1.1rem;
  }
  .em-staff-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .1rem;
  }
  .em-staff-info .em-staff-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .6rem;
  }
  .em-staff-contact {
    display: flex;
    flex-direction: column;
    gap: .3rem;
  }
  .em-staff-contact a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: var(--blue-lt);
    text-decoration: none;
  }
  .em-staff-contact a:hover { color: var(--navy); text-decoration: underline; }
  .em-staff-contact i {
    width: 14px;
    text-align: center;
    font-size: .8rem;
    color: var(--blue);
    flex-shrink: 0;
  }
  /* ── Partner logo grid ── */
  .em-partner-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
		justify-content: center;
    margin: 1rem 0;
  }
  .em-partner-grid a {
    display: block;
    flex-shrink: 0;
  }
  .em-partner-grid img {
    height: 100px;
    width: auto;
    display: block;
    opacity: .85;
    transition: opacity .2s;
  }
  .em-partner-grid a:hover img,
  .em-partner-grid a:focus img { opacity: 1; }

  /* ── 911: sheriff badge float ── */
  .nne-badge-img {
    float: right;
    width: 250px;
    margin: 0 0 1.25rem 1.75rem;
    display: block;
  }
  @media (max-width: 560px) {
    .nne-badge-img { float: none; width: 120px; margin: 0 0 1rem 0; }
  }

  /* ── 911 tips list ── */
  .nne-tips-list { list-style: none; padding: 0; margin: 0; }
  .nne-tips-list li {
    padding: .75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
  }
  .nne-tips-list li:last-child { border-bottom: none; }
  .nne-tips-list li strong { color: var(--navy); 
  }

  /* ── Disaster info: FEMA logo float ── */
  .di-fema-logo {
    float: right;
    width: 140px;
    margin: 0 0 1rem 1.5rem;
    display: block;
  }
  @media (max-width: 560px) {
    .di-fema-logo { float: none; width: 120px; margin: 0 0 1rem 0; }
  }

  /* ── NDResponse logo ── */
  .di-ndresponse-logo {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: .75rem 0 1.25rem;
  }

 /* ── EM Monthly News page styles (emn-prefix) ── */
  .emn-section { margin-bottom: 2rem; }
  .emn-section:last-child { margin-bottom: 0; }

  .emn-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5rem 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
  }

  .emn-section h2:first-child { margin-top: 0; }

  .emn-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .emn-section p:last-child { margin-bottom: 0; }

  .emn-section ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1rem;
  }

  .emn-section ul li {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
  }

  .emn-section ul li:last-child { border-bottom: none; }

  .emn-section ul li::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: .55rem;
  }

  .emn-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .emn-section a:hover,
  .emn-section a:focus {
    color: var(--navy);
  }

  .emn-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.75rem 0;
  }
 .emn-section .btn-primary,
  .emn-section .btn-primary:hover,
  .emn-section .btn-primary:focus {
    color: var(--white) 
  }

  /* Inline image float — mirrors fr-fir fr-dii from old site */
  .emn-img-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 150px;
    height: auto;
    display: block;
  }

  .emn-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  /* ── ECS page styles (ecs-prefix) ── */
  .ecs-section { margin-bottom: 2rem; }
  .ecs-section:last-child { margin-bottom: 0; }

  .ecs-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .ecs-section p:last-child { margin-bottom: 0; }

  .ecs-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .ecs-section a:hover,
  .ecs-section a:focus {
    color: var(--navy);
  }

  .ecs-img-right {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    
  }

  .ecs-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  .ecs-section .btn-primary,
  .ecs-section .btn-primary:hover,
  .ecs-section .btn-primary:focus {
    color: var(--white) !important;
  }

  @media (max-width: 600px) {
    .ecs-img-right {
      float: none;
      margin: 0 0 1.25rem 0;
      max-width: 100%;
    }
  }

  /* ── FRT page styles (frt-prefix) ── */
  .frt-section { margin-bottom: 2rem; }
  .frt-section:last-child { margin-bottom: 0; }

  .frt-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .frt-section p:last-child { margin-bottom: 0; }

  .frt-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .frt-section a:hover,
  .frt-section a:focus {
    color: var(--navy);
  }

  .frt-section .btn-primary,
  .frt-section .btn-primary:hover,
  .frt-section .btn-primary:focus {
    color: var(--white) 
  }

  .frt-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.75rem 0;
  }

  .frt-img {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0 0;
  }

  @media (max-width: 600px) {
    .frt-img { max-width: 100%; }
  }

  /* ── FMP page styles (fmp-prefix) ── */
  .fmp-section { margin-bottom: 2rem; }
  .fmp-section:last-child { margin-bottom: 0; }

  .fmp-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .fmp-section p:last-child { margin-bottom: 0; }

  .fmp-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .fmp-section a:hover,
  .fmp-section a:focus {
    color: var(--navy);
  }

  .fmp-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.75rem 0 2.5rem;
  }

  .fmp-img-right {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 340px;
    width: 40%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .fmp-img-left {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 1rem 0 0;
  }

  .fmp-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  .fmp-section .btn-group {
    margin-top: .75rem;
  }

  .fmp-section .btn-primary,
  .fmp-section .btn-primary:hover,
  .fmp-section .btn-primary:focus {
    color: var(--white) !important;
  }

  @media (max-width: 600px) {
    .fmp-img-right {
      float: none;
      margin: 0 0 1.25rem 0;
      max-width: 100%;
      width: 100%;
    }
  }

  /* ── JR page styles (jr-prefix) ── */
  .jr-section { margin-bottom: 2rem; }
  .jr-section:last-child { margin-bottom: 0; }

  .jr-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .jr-section p:last-child { margin-bottom: 0; }

  .jr-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .jr-section a:hover,
  .jr-section a:focus {
    color: var(--navy);
  }

  .jr-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.75rem 0 2.5rem;
  }

  /* Flood stage img float */
  .jr-img-right {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .jr-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  /* Flood stage reference list */
  .jr-stage-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 1rem;
  }

  .jr-stage-list li {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    padding: .25rem 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .jr-stage-list li:last-child { border-bottom: none; }

  .jr-stage-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5rem 0 .35rem;
  }

  .jr-stage-heading:first-of-type { margin-top: .5rem; }

  @media (max-width: 600px) {
    .jr-img-right {
      float: none;
      margin: 0 0 1.25rem 0;
      max-width: 100%;
    }
  }

  /* ── HMP page styles (hmp-prefix) ── */
  .hmp-section { margin-bottom: 2rem; }
  .hmp-section:last-child { margin-bottom: 0; }

  .hmp-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .hmp-section p:last-child { margin-bottom: 0; }

  .hmp-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .hmp-section a:hover,
  .hmp-section a:focus {
    color: var(--navy);
  }

  .hmp-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.75rem 0 2.5rem;
  }

  .hmp-img-right {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 270px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .hmp-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  .hmp-section .btn-group {
    margin-top: .75rem;
  }

  .hmp-section .btn-primary,
  .hmp-section .btn-primary:hover,
  .hmp-section .btn-primary:focus {
    color: var(--white) !important;
  }

  @media (max-width: 600px) {
    .hmp-img-right {
      float: none;
      margin: 0 0 1.25rem 0;
      max-width: 100%;
    }
  }

  /* ── LEPC page styles (lepc-prefix) ── */
  .lepc-section { margin-bottom: 2rem; }
  .lepc-section:last-child { margin-bottom: 0; }

  .lepc-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .lepc-section p:last-child { margin-bottom: 0; }

  .lepc-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .lepc-section a:hover,
  .lepc-section a:focus {
    color: var(--navy);
  }

  .lepc-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 1.75rem 0 2.5rem;
  }

  .lepc-img-right {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
  }

  .lepc-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  /* Contact block */
  .lepc-contact {
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
  }

  .lepc-contact strong { color: var(--navy); }

  /* Address block */
  .lepc-address {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  /* Meeting minutes year heading */
  .lepc-year {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.25rem 0 .35rem;
    padding-bottom: .2rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .lepc-year:first-of-type { margin-top: 0; }

  /* Minutes list */
  .lepc-minutes-list {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
  }

  .lepc-minutes-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .3rem 0;
    font-size: .95rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
  }

  .lepc-minutes-list li:last-child { border-bottom: none; }

  .lepc-minutes-list li i {
    color: var(--blue);
    flex-shrink: 0;
    font-size: .9rem;
  }

  .lepc-minutes-list li span {
    color: var(--blue);
    font-style: italic;
    font-size: .9rem;
  }

  .lepc-section .btn-group { margin-top: .75rem; }

  .lepc-section .btn-primary,
  .lepc-section .btn-primary:hover,
  .lepc-section .btn-primary:focus {
    color: var(--white) !important;
  }

  @media (max-width: 600px) {
    .lepc-img-right {
      float: none;
      margin: 0 0 1.25rem 0;
      max-width: 180px;
    }
  }

  /* ── NDPA page styles (ndpa-prefix) ── */
  .ndpa-section { margin-bottom: 2rem; }
  .ndpa-section:last-child { margin-bottom: 0; }

  .ndpa-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .ndpa-section p:last-child { margin-bottom: 0; }

  .ndpa-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .ndpa-section a:hover,
  .ndpa-section a:focus {
    color: var(--navy);
  }

  /* Alert type cards */
  .ndpa-alert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.25rem 0;
  }

  .ndpa-alert-card {
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    border-left: 4px solid transparent;
  }

  .ndpa-alert-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
  }

  .ndpa-alert-card p {
    font-size: .95rem;
    margin-bottom: 0;
  }

  /* Amber — amber/yellow */
  .ndpa-card-amber {
    background: #fff8e1;
    border-left-color: #f0b429;
  }
  .ndpa-card-amber h3 { color: var(--navy); }

  /* Blue — blue */
  .ndpa-card-blue {
    background: #e8f0fb;
    border-left-color: var(--blue);
  }
  .ndpa-card-blue h3 { color: var(--navy); }

  /* Silver — gray */
  .ndpa-card-silver {
    background: var(--gray-100);
    border-left-color: var(--gray-400);
  }
  .ndpa-card-silver h3 { color: var(--navy); }

  .ndpa-img {
    display: block;
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0 0;
  }

  .ndpa-section .btn-group { margin-top: .75rem; }

  .ndpa-section .btn-primary,
  .ndpa-section .btn-primary:hover,
  .ndpa-section .btn-primary:focus {
    color: var(--white) !important;
  }

  @media (max-width: 700px) {
    .ndpa-alert-grid { grid-template-columns: 1fr; }
  }

  /* ── NDRAM page styles (ndram-prefix) ── */
  .ndram-section { margin-bottom: 2rem; }
  .ndram-section:last-child { margin-bottom: 0; }

  .ndram-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .ndram-section p:last-child { margin-bottom: 0; }

  .ndram-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .ndram-section a:hover,
  .ndram-section a:focus {
    color: var(--navy);
  }

  .ndram-section .btn-group { margin-top: .75rem; }

  .ndram-section .btn-primary,
  .ndram-section .btn-primary:hover,
  .ndram-section .btn-primary:focus {
    color: var(--white) !important;
  }

  /* Responsive video embed */
  .ndram-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 1rem 0;
  }

  .ndram-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* ── S324 page styles (s324-prefix) ── */
  .s324-section { margin-bottom: 2rem; }
  .s324-section:last-child { margin-bottom: 0; }

  .s324-section p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .85rem;
  }

  .s324-section p:last-child { margin-bottom: 0; }

  .s324-section a {
    color: var(--blue-lt);
    text-decoration: underline;
  }

  .s324-section a:hover,
  .s324-section a:focus {
    color: var(--navy);
  }

  .s324-approved {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
  }

  .s324-approved i { color: var(--blue); }

  .s324-section .btn-group { margin-top: .75rem; }

  .s324-section .btn-primary,
  .s324-section .btn-primary:hover,
  .s324-section .btn-primary:focus {
    color: var(--white) !important;
  }

 /* swi = summer weather info — prefix to avoid conflicts */
  .swi-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .swi-stat-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1rem;
  }
  .swi-stat-card .swi-stat-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--blue);
    margin-bottom: .2rem;
  }
  .swi-stat-card .swi-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
  }
  .swi-record-block {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
  }
  .swi-record-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .swi-record-block h3 i {
    color: var(--blue);
    font-size: .9rem;
  }
  .swi-record-block p {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin: 0;
  }
  .swi-tornado-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 280px;
    width: 38%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
  }
  .swi-tornado-img img {
    width: 100%;
    height: auto;
    display: block;
  }
  .swi-tornado-img figcaption {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: .4rem .65rem;
    font-size: .8rem;
    color: var(--gray-600);
    line-height: 1.4;
  }
  .swi-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }
  .swi-source-note {
    font-size: .85rem;
    color: var(--gray-600);
    font-style: italic;
    border-top: 1px solid var(--gray-200);
    padding-top: .75rem;
    margin-top: 1rem;
    line-height: 1.6;
  }
  @media (max-width: 780px) {
    .swi-tornado-img {
      float: none;
      width: 200px;
      max-width: 100%;
      margin: 0 0 1rem 0;
    }
  }
  @media (max-width: 640px) {
    .swi-stat-grid { grid-template-columns: 1fr; }
  }

  /* tor = tornado page — prefix to avoid conflicts */
  .tor-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .tor-fact-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    text-align: center;
  }
  .tor-fact-card .tor-fact-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--blue);
    margin-bottom: .3rem;
  }
  .tor-fact-card .tor-fact-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
  }
  .tor-ef-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    margin-bottom: 1rem;
  }
  .tor-ef-table th {
    background: var(--navy);
    color: var(--white);
    padding: .6rem 1rem;
    text-align: left;
    font-weight: 700;
  }
  .tor-ef-table td {
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
  }
  .tor-ef-table tr:last-child td { border-bottom: none; }
  .tor-ef-table tr:nth-child(even) td { background: var(--gray-100); }
  .tor-ef-table tr.tor-ef-highlight td {
    background: #fff3cd;
    font-weight: 700;
    color: var(--navy);
  }
  .tor-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .tor-radar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .tor-photo-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    width: 100%;
    position: relative;
  }
  .tor-photo-btn img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    transition: transform .2s, opacity .2s;
  }
  .tor-photo-btn:hover img,
  .tor-photo-btn:focus img { transform: scale(1.03); opacity: .9; }
  .tor-photo-btn:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
  .tor-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,34,64,.35);
    opacity: 0;
    transition: opacity .2s;
    border-radius: var(--radius);
  }
  .tor-photo-btn:hover .tor-photo-overlay,
  .tor-photo-btn:focus .tor-photo-overlay { opacity: 1; }
  .tor-photo-overlay i { color: var(--white); font-size: 1.4rem; }
  .tor-nws-credit {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-top: 1.5rem;
  }
  .tor-nws-credit strong { color: var(--navy); display: block; margin-bottom: .2rem; font-size: .95rem; }

  /* Lightbox */
  .tor-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5,15,30,.92);
    align-items: center;
    justify-content: center;
  }
  .tor-lightbox.active { display: flex; }
  .tor-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .tor-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
  }
  .tor-lightbox-caption {
    color: #c8d8eb;
    font-size: .9rem;
    margin-top: .75rem;
    text-align: center;
  }
  .tor-lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
    padding: .35rem .5rem;
    border-radius: var(--radius);
    z-index: 2001;
  }
  .tor-lightbox-close:hover,
  .tor-lightbox-close:focus { background: rgba(255,255,255,.12); }
  .tor-lightbox-close:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
  .tor-lightbox-nav { display: flex; gap: 1rem; margin-top: 1rem; }
  .tor-lightbox-nav button {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--white);
    padding: .5rem 1.1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .9rem;
    font-family: inherit;
  }
  .tor-lightbox-nav button:hover,
  .tor-lightbox-nav button:focus { background: rgba(255,255,255,.2); }
  .tor-lightbox-nav button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

  @media (max-width: 780px) {
    .tor-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .tor-photo-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 500px) {
    .tor-facts-grid { grid-template-columns: 1fr 1fr; }
    .tor-photo-grid, .tor-radar-grid { grid-template-columns: 1fr; }
  }

  /* ww = winter weather — prefix to avoid conflicts */
  .ww-infographic {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 320px;
    width: 38%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
  }
  .ww-infographic a { display: block; }
  .ww-infographic img { width: 100%; height: auto; display: block; }
  .ww-infographic figcaption {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: .4rem .65rem;
    font-size: .8rem;
    color: var(--gray-600);
    line-height: 1.4;
    text-align: center;
  }
  .ww-infographic figcaption a { font-size: .8rem; }
  .ww-clearfix::after { content: ''; display: table; clear: both; }
  @media (max-width: 780px) {
    .ww-infographic {
      float: none;
      width: 100%;
      max-width: 100%;
      margin: 0 0 1.25rem 0;
    }
  }

        /* Vendor-prefixed CSS for maximum compatibility */
        .county-departments {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            gap: 1.5rem;
            padding: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .dept-card {
            -webkit-box-flex: 1;
            -ms-flex: 1 1 calc(33.333% - 1.5rem);
            flex: 1 1 calc(33.333% - 1.5rem);
            min-width: 280px;
        }

        .dept-link {
            display: block;
            background-color: #ffffff;
            border: 2px solid var(--navy);
            -webkit-border-radius: 8px;
            -moz-border-radius: 8px;
            border-radius: 8px;
            padding: 2rem 1.5rem;
            text-decoration: none;
            color: #0a3445;
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
            -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            -moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .dept-link:hover,
        .dept-link:focus {
            background-color: var(--navy);
            color: #ffffff;
            -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            -moz-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            -webkit-transform: translateY(-2px);
            -moz-transform: translateY(-2px);
            -ms-transform: translateY(-2px);
            -o-transform: translateY(-2px);
            transform: translateY(-2px);
            outline: 3px solid var(--navy);
            outline-offset: 2px;
        }

        .dept-link:active {
            -webkit-transform: translateY(0);
            -moz-transform: translateY(0);
            -ms-transform: translateY(0);
            -o-transform: translateY(0);
            transform: translateY(0);
        }

        .dept-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin: 0;
            line-height: 1.3;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .dept-card {
                -ms-flex: 1 1 calc(50% - 1.5rem);
                flex: 1 1 calc(50% - 1.5rem);
            }
        }

        @media (max-width: 480px) {
            .dept-card {
                -ms-flex: 1 1 100%;
                flex: 1 1 100%;
            }
            
            .county-departments {
                padding: 1rem;
            }
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            .dept-link {
                border-width: 3px;
            }
        }

        /* Reduced motion support */
        @media (prefers-reduced-motion: reduce) {
            .dept-link {
                -webkit-transition: none;
                -moz-transition: none;
                -o-transition: none;
                transition: none;
            }
        }

  /* ndsu = NDSU Extension — prefix to avoid conflicts */
  .ndsu-staff-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
  }
  .ndsu-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
  }
  .ndsu-staff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .35rem;
  }
  .ndsu-staff-card p {
    font-size: .95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
  }
  .ndsu-staff-card a { color: var(--blue-lt); 
  }
 .ndsu-logo-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
  }
  .ndsu-logo-row img {
    height: auto;
    max-height: 150px;
    width: auto;
    max-width: 180px;
    display: block;
  }

  /* ph = public health — prefix to avoid conflicts */
  .ph-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 260px;
    width: 35%;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .ph-img img { width: 100%; height: auto; display: block; }
  .ph-clearfix::after { content: ''; display: table; clear: both; }
  @media (max-width: 640px) {
    .ph-img { float: none; width: 100%; max-width: 100%; margin: 0 0 1rem 0; }
  }

  /* aus = about us — prefix to avoid conflicts */
  .aus-staff-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1.5rem;
  }
  .aus-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
  }
  .aus-staff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
  }
  .aus-staff-card .aus-title {
    font-size: .9rem;
    color: var(--gray-600);
    margin-bottom: .35rem;
  }
  .aus-staff-card p {
    font-size: .9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
  }
  .aus-staff-card a { color: var(--blue-lt); }
  .aus-ph-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 280px;
    width: 35%;
    border-radius: var(--radius);
    overflow: hidden;
    
  }
  .aus-ph-img img { width: 100%; height: auto; display: block; }
  .aus-clearfix::after { content: ''; display: table; clear: both; }
  @media (max-width: 640px) {
    .aus-ph-img { float: none; width: 100%; max-width: 100%; margin: 0 0 1rem 0; }
  }

  /* cov = covid page — prefix to avoid conflicts */
  .cov-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 300px;
    width: 38%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
  .cov-img img { width: 100%; height: auto; display: block; }
  .cov-clearfix::after { content: ''; display: table; clear: both; }
  @media (max-width: 640px) {
    .cov-img { float: none; width: 100%; max-width: 100%; margin: 0 0 1rem 0; }
  }

/* cns = Community Nursing Services prefix */
.cns-fee-note {
  font-size: .875rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1.25rem;
}

/* ctu = Contact Us prefix */
.ctu-resource-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-top: 1rem;
}
.ctu-resource-block img {
  width: 160px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
}
.ctu-resource-text {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.ctu-resource-text a {
  color: var(--blue-lt);
  word-break: break-all;
}
@media (max-width: 520px) {
  .ctu-resource-block {
    flex-direction: column;
  }
  .ctu-resource-block img {
    width: 170px;
    max-width: 220px;
  }
}

/* epr = Emergency Preparedness Response prefix */
.epr-staff-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .75rem;
}
.epr-staff-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.epr-staff-item i {
  color: var(--blue);
  margin-top: .2rem;
  flex-shrink: 0;
}
.epr-staff-item strong {
  display: block;
  color: var(--navy);
}

/* tpv = Tobacco Prevention prefix */
.tpv-staff-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: .75rem;
}
.tpv-staff-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.tpv-staff-item i {
  color: var(--blue);
  margin-top: .2rem;
  flex-shrink: 0;
}
.tpv-staff-item strong {
  display: block;
  color: var(--navy);
}

/* rec = Recorder prefix */
.rec-staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.rec-staff-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}
.rec-staff-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gray-200);
}
.rec-staff-info strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
}
.rec-staff-info span {
  display: block;
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: .15rem;
}
.rec-staff-info a {
  font-size: .875rem;
}
.rec-deed-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.8;
}
.rec-deed-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.rec-deed-box p { margin-bottom: .5rem; }
.rec-deed-box p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .rec-staff-grid { grid-template-columns: 1fr; }
}

/* rdd = Road Department prefix */
.rdd-staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.rdd-staff-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.rdd-staff-card i {
  color: var(--blue);
  margin-top: .25rem;
  flex-shrink: 0;
}
.rdd-staff-card strong {
  display: block;
  color: var(--navy);
}
.rdd-blade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-top: .75rem;
}
.rdd-blade-item {
  padding: .6rem .85rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.rdd-blade-item strong {
  display: block;
  color: var(--navy);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .1rem;
}
@media (max-width: 640px) {
  .rdd-staff-grid { grid-template-columns: 1fr; }
  .rdd-blade-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .rdd-blade-grid { grid-template-columns: 1fr; }
}

/* chm = County Highway Map prefix */
.chm-map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  margin: 1rem 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chm-map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

  .twc-qr-wrap {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
  }
  .twc-qr-img {
    width: 160px;
    height: auto;
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    flex-shrink: 0;
  }
  .twc-qr-text {
    flex: 1;
    min-width: 200px;
  }
  .twc-qr-text p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: .75rem;
  }

  /* sdb = school district board prefix */
  .sdb-school-links {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1rem;
  }
  .sdb-school-links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1rem;
    color: var(--blue-lt);
    text-decoration: underline;
  }
  .sdb-school-links a:hover,
  .sdb-school-links a:focus {
    color: var(--navy);
  }
  .sdb-school-links a i {
    font-size: .75rem;
    color: var(--blue);
    flex-shrink: 0;
  }

  /* so = sheriff's office prefix */
  .so-emergency-banner {
    background: #c0392b;
    color: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
  }
  .so-emergency-banner i {
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  .so-emergency-banner p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
  }
  .so-emergency-banner span {
    font-size: 1.35rem;
  }


  /* Sheriff badge float */
  .so-badge-float {
    float: right;
    margin: 0 0 1rem 1.5rem;
    width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
  }
  .so-staff-clearfix::after {
    content: '';
    display: table;
    clear: both;
  }

  @media (max-width: 600px) {
    .so-badge-float { width: 80px; margin: 0 0 .75rem 1rem; }
  }

.sheriff-img {
    margin: 0 0 1rem 1.5rem;
    width: 150px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: center;
  }

  /* so staff grid */
  .so-staff-grid {
    display: flex;
    
    gap: .75rem;
    margin-bottom: 1.5rem;
  }
  .so-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
  }
  .so-staff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
  }
  .so-staff-card .so-title {
    font-size: .9rem;
    color: var(--gray-600);
    margin-bottom: .35rem;
  }
  .so-staff-card p {
    font-size: .9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
  }
  .so-staff-card a { color: var(--blue-lt); }
  .so-bdg-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 280px;
    width: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    
  }

.so-staff-card-2 {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: .85rem 1.15rem;
    max-width: 245px; 
    margin-bottom: 1rem;}

  .so-staff-card-2 h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
  }
  .so-staff-card-2 .so-title {
    font-size: .9rem;
    color: var(--gray-600);
    margin-bottom: .35rem;
  }
  .so-staff-card-2 p {
    font-size: .9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
  }
  .so-staff-card-2 a { color: var(--blue-lt); }
  .so-bdg-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 280px;
    width: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    
  }

  /* tr-pg = treasurer page prefix */

  /* Payment method cards */
  .tr-pg-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
  }
  .tr-pg-method {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
  }
  .tr-pg-method:last-child { border-bottom: none; }
  .tr-pg-method:nth-child(even) { background: var(--gray-100); }
  .tr-pg-method-icon {
    width: 40px;
    height: 40px;
    background: var(--navy);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
  }
  .tr-pg-method-icon i { color: var(--white); font-size: 1rem; }
  .tr-pg-method-body { flex: 1; min-width: 0; }
  .tr-pg-method-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .3rem;
  }
  .tr-pg-method-body p,
  .tr-pg-method-body ul {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: .3rem;
  }
  .tr-pg-method-body ul { padding-left: 1.25rem; }
  .tr-pg-method-body ul li { margin-bottom: .2rem; }
  .tr-pg-method-body .tr-pg-note {
    font-size: .85rem;
    color: var(--gray-600);
    font-style: italic;
    margin-top: .35rem;
  }

  .tr-pg-pay-logos {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: .5rem 0;
  }
  .tr-pg-pay-logos a {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .35rem .65rem;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: box-shadow .15s;
  }
  .tr-pg-pay-logos a:hover,
  .tr-pg-pay-logos a:focus { box-shadow: var(--shadow-md); }
  .tr-pg-pay-logos img { height: 34px; width: auto; display: block; }

  /* Payment section image float */
  .tr-pg-payment-img {
    float: right;
    margin: 0 0 1rem 1.5rem;
    width: 200px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
  }

  /* Tax chart float */
  .tr-pg-tax-chart {
    float: right;
    margin: 0 0 1rem 1.5rem;
    width: 210px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
  }
  .tr-pg-clearfix::after { content: ''; display: table; clear: both; }

  .tr-pg-disclaimer {
    font-size: .8rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.6;
    border-top: 1px solid var(--gray-200);
    padding-top: .75rem;
    margin-top: .75rem;
  }

  @media (max-width: 600px) {
    .tr-pg-method { flex-direction: column; gap: .5rem; }
    .tr-pg-method-icon { width: 34px; height: 34px; }
    .tr-pg-tax-chart { float: none; width: 100%; margin: 0 0 1rem 0; }
  }

 /* ── Water Board: minutes list ── */
  .wb-minutes-list { list-style: none; padding: 0; margin: 0; }
  .wb-minutes-list li { border-bottom: 1px solid var(--gray-100); }
  .wb-minutes-list li:last-child { border-bottom: none; }
  .wb-minutes-list a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .5rem;
    font-size: .95rem;
    color: var(--blue-lt);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background .15s;
  }
  .wb-minutes-list a:hover,
  .wb-minutes-list a:focus { background: var(--gray-100); color: var(--navy); text-decoration: underline; }
  .wb-minutes-list a i { color: var(--blue); flex-shrink: 0; font-size: .9rem; }
  .wb-minutes-list .wb-draft {
    font-size: .75rem;
    font-weight: 700;
    color: #7a5500;
    background: #fff8e1;
    border: 1px solid #f0b429;
    border-radius: 3px;
    padding: .1rem .35rem;
    white-space: nowrap;
    margin-left: auto;
  }

  /* ── Weed Board: staff card ── */
  .wb2-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
  }
  .wb2-staff-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
  }
  .wb2-staff-card p {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
  }
  .wb2-staff-card a { color: var(--blue-lt); }

 /* ── How Do I: card grid layout ── */
  .hdi-intro {
    font-size: 1rem;
    color: #2e3a4a;
    line-height: 1.8;
    margin-bottom: 1.75rem;
  }

  /* Photo float */
  .hdi-photo-float {
    float: right;
    margin: 0 0 1.25rem 1.5rem;
    max-width: 340px;
    width: 45%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(10,34,64,.14);
  }
  .hdi-photo-float img {
    width: 100%;
    height: auto;
    display: block;
  }
  .hdi-intro-wrap::after {
    content: '';
    display: table;
    clear: both;
  }

  /* Card grid */
  .hdi-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
  .hdi-card {
    border: 1px solid #dde3ed;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10,34,64,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .hdi-card-header {
    background: #0a2240;
    padding: .7rem 1rem .7rem .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
  }
  .hdi-card-header-icon {
    width: 34px;
    height: 34px;
    background: rgba(200,168,75,.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hdi-card-header-icon i {
    color: #c8a84b;
    font-size: .95rem;
  }
  .hdi-card-title {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
  }
  .hdi-card-body {
    padding: .6rem .85rem .75rem;
    flex: 1;
  }
  .hdi-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .hdi-card-list li {
    border-bottom: 1px solid #eef1f6;
    padding: .35rem 0;
  }
  .hdi-card-list li:last-child {
    border-bottom: none;
  }
  .hdi-card-list a {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    color: #1a4d8f;
    font-size: .9rem;
    line-height: 1.5;
    text-decoration: underline;
  }
  .hdi-card-list a:hover,
  .hdi-card-list a:focus {
    color: #0a2240;
  }
  .hdi-card-list a i.hdi-bullet {
    font-size: .6rem;
    color: #1a4d8f;
    flex-shrink: 0;
    margin-top: .3rem;
  }
  .hdi-card-list a[target="_blank"]::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .6rem;
    margin-left: .25rem;
    opacity: .55;
    display: inline-block;
    text-decoration: none;
  }
  .hdi-card-note {
    font-size: .8rem;
    color: #2e3a4a;
    display: block;
    padding-left: 1rem;
    margin-top: .1rem;
    line-height: 1.45;
  }
  .hdi-card-note a {
    font-size: .8rem;
  }

  @media (max-width: 680px) {
    .hdi-card-grid { grid-template-columns: 1fr; }
    .hdi-photo-float { float: none; width: 100%; max-width: 100%; margin: 0 0 1.25rem 0; }
  }

  /* ── Employment: job posting card ── */
  .emp-job-card {
    border: 1px solid #dde3ed;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10,34,64,.07);
    margin-bottom: 1.5rem;
  }
  .emp-job-card-header {
    background: #0a2240;
    padding: .85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: .75rem;
  }
  .emp-job-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(200,168,75,.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .emp-job-card-icon i {
    color: #c8a84b;
    font-size: .95rem;
  }
  .emp-job-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
  }
  .emp-job-card-body {
    padding: 1rem 1.15rem;
    background: #fff;
  }
  .emp-job-card-body p {
    font-size: .975rem;
    color: #2e3a4a;
    line-height: 1.8;
    margin-bottom: 1rem;
  }

  /* ── Detail sections inside accordion ── */
  .emp-detail-section {
    margin-bottom: 1.1rem;
  }
  .emp-detail-section:last-child {
    margin-bottom: 0;
  }
  .emp-detail-heading {
    font-size: .9rem;
    font-weight: 700;
    color: #0a2240;
    margin-bottom: .35rem;
  }
  .emp-detail-section p,
  .emp-detail-section ul {
    font-size: .925rem;
    color: #2e3a4a;
    line-height: 1.75;
    margin: 0;
  }
  .emp-detail-section ul {
    padding-left: 1.35rem;
  }
  .emp-detail-section ul li {
    margin-bottom: .25rem;
  }
  .emp-detail-divider {
    border: none;
    border-top: 1px solid #eef1f6;
    margin: 1rem 0;
  }

  /* ── Resources section ── */
  .emp-resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: .75rem;
  }
  .emp-resource-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid #dde3ed;
    border-radius: 4px;
    background: #f4f6f9;
    text-decoration: none;
    color: #0a2240;
    transition: background .15s, border-color .15s;
  }
  .emp-resource-card:hover,
  .emp-resource-card:focus {
    background: #e8edf4;
    border-color: #1a4d8f;
    color: #0a2240;
    text-decoration: none;
  }
  .emp-resource-card:focus {
    outline: 3px solid #c8a84b;
    outline-offset: 2px;
  }
  .emp-resource-icon {
    width: 38px;
    height: 38px;
    background: #0a2240;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .emp-resource-icon i {
    color: #c8a84b;
    font-size: .95rem;
  }
  .emp-resource-text strong {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .15rem;
  }
  .emp-resource-text span {
    font-size: .825rem;
    color: #2e3a4a;
    display: flex;
    align-items: center;
    gap: .3rem;
  }
  .emp-resource-text span i {
    font-size: .65rem;
    color: #1a4d8f;
  }

  @media (max-width: 600px) {
    .emp-resources-grid { grid-template-columns: 1fr; }
  }

/* ── Tourism Page Specific ── */
.tourism-intro-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
  float: right;
  margin: 0 0 1.25rem 1.75rem;
}

@media (max-width: 600px) {
  .tourism-intro-img {
    float: none;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
  }
}

/* clearfix so section doesn't collapse around float */
.tourism-intro-wrap::after {
  content: '';
  display: table;
  clear: both;
}

/* Community links — two-column grid */
.tourism-community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.tourism-community-grid li {
  padding: .5rem .85rem;
  border-bottom: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  font-size: .97rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tourism-community-grid li:nth-child(even) {
  border-right: none;
}

.tourism-community-grid li:nth-last-child(-n+2) {
  border-bottom: none;
}

.tourism-community-grid li i {
  color: var(--blue);
  font-size: .7rem;
  flex-shrink: 0;
}

.tourism-community-grid a {
  color: var(--blue-lt);
  text-decoration: underline;
  font-weight: 600;
}

.tourism-community-grid a:hover,
.tourism-community-grid a:focus {
  color: var(--navy);
}

/* Photo gallery grid */
.tourism-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.tourism-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  position: relative;
}

.tourism-photo-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .2s, opacity .2s;
}

.tourism-photo-btn:hover img,
.tourism-photo-btn:focus img {
  transform: scale(1.03);
  opacity: .92;
}

.tourism-photo-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.tourism-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,34,64,.35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
}

.tourism-photo-btn:hover .tourism-photo-overlay,
.tourism-photo-btn:focus .tourism-photo-overlay {
  opacity: 1;
}

.tourism-photo-overlay i {
  color: var(--white);
  font-size: 1.5rem;
}

@media (max-width: 600px) {
  .tourism-photo-grid {
    grid-template-columns: 1fr;
  }
  .tourism-community-grid {
    grid-template-columns: 1fr;
  }
  .tourism-community-grid li {
    border-right: none;
  }
  .tourism-community-grid li:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--gray-200);
  }
  .tourism-community-grid li:last-child {
    border-bottom: none;
  }
}

/* Tourism lightbox (prefixed to avoid conflicts) */
#tourism-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,15,30,.92);
  align-items: center;
  justify-content: center;
}
#tourism-lightbox.tlb-active { display: flex; }
.tlb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tlb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.tlb-caption {
  color: #c8d8eb;
  font-size: .9rem;
  margin-top: .75rem;
  text-align: center;
}
.tlb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  z-index: 3001;
}
.tlb-close:hover, .tlb-close:focus { background: rgba(255,255,255,.12); }
.tlb-close:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Chan SanSan page specific ── */
.css-intro-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
  float: right;
  margin: 0 0 1.25rem 1.75rem;
}

@media (max-width: 600px) {
  .css-intro-img {
    float: none;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
  }
}

.css-intro-wrap::after {
  content: '';
  display: table;
  clear: both;
}

/* Photo gallery grid — 3 columns on wide, 2 on medium, 1 on small */
.css-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 780px) {
  .css-photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .css-photo-grid { grid-template-columns: 1fr; }
}

.css-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  position: relative;
}

.css-photo-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .2s, opacity .2s;
}

.css-photo-btn:hover img,
.css-photo-btn:focus img {
  transform: scale(1.03);
  opacity: .92;
}

.css-photo-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.css-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,34,64,.35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
}

.css-photo-btn:hover .css-photo-overlay,
.css-photo-btn:focus .css-photo-overlay {
  opacity: 1;
}

.css-photo-overlay i {
  color: var(--white);
  font-size: 1.5rem;
}

/* Lightbox — prefixed css- */
#css-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,15,30,.92);
  align-items: center;
  justify-content: center;
}
#css-lightbox.css-lb-active { display: flex; }
.css-lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.css-lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.css-lb-caption {
  color: #c8d8eb;
  font-size: .9rem;
  margin-top: .75rem;
  text-align: center;
}
.css-lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  z-index: 3001;
}
.css-lb-close:hover, .css-lb-close:focus { background: rgba(255,255,255,.12); }
.css-lb-close:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.css-lb-nav { display: flex; gap: 1rem; margin-top: 1rem; }
.css-lb-nav button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
}
.css-lb-nav button:hover, .css-lb-nav button:focus { background: rgba(255,255,255,.2); }
.css-lb-nav button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Historic Photos gallery grid ── */
.hp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 780px) {
  .hp-photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hp-photo-grid { grid-template-columns: 1fr; }
}

.hp-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  position: relative;
}

.hp-photo-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .2s, opacity .2s;
}

.hp-photo-btn:hover img,
.hp-photo-btn:focus img {
  transform: scale(1.03);
  opacity: .92;
}

.hp-photo-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.hp-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,34,64,.35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
}

.hp-photo-btn:hover .hp-photo-overlay,
.hp-photo-btn:focus .hp-photo-overlay {
  opacity: 1;
}

.hp-photo-overlay i {
  color: var(--white);
  font-size: 1.5rem;
}

/* Caption beneath each thumb */
.hp-caption-text {
  font-size: .8rem;
  color: var(--gray-600);
  text-align: center;
  padding: .35rem .25rem 0;
  line-height: 1.4;
}

/* Lightbox — prefixed hp- */
#hp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,15,30,.92);
  align-items: center;
  justify-content: center;
}
#hp-lightbox.hp-lb-active { display: flex; }

.hp-lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hp-lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.hp-lb-caption {
  color: #c8d8eb;
  font-size: .9rem;
  margin-top: .75rem;
  text-align: center;
}

.hp-lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  z-index: 3001;
}
.hp-lb-close:hover, .hp-lb-close:focus { background: rgba(255,255,255,.12); }
.hp-lb-close:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

.hp-lb-nav { display: flex; gap: 1rem; margin-top: 1rem; }
.hp-lb-nav button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
}
.hp-lb-nav button:hover, .hp-lb-nav button:focus { background: rgba(255,255,255,.2); }
.hp-lb-nav button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Memorial Park photo gallery ── */
.mp-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 780px) {
  .mp-photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .mp-photo-grid { grid-template-columns: 1fr; }
}

.mp-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  position: relative;
}

.mp-photo-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .2s, opacity .2s;
}

.mp-photo-btn:hover img,
.mp-photo-btn:focus img {
  transform: scale(1.03);
  opacity: .92;
}

.mp-photo-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.mp-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,34,64,.35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
}

.mp-photo-btn:hover .mp-photo-overlay,
.mp-photo-btn:focus .mp-photo-overlay {
  opacity: 1;
}

.mp-photo-overlay i {
  color: var(--white);
  font-size: 1.5rem;
}

.mp-caption-text {
  font-size: .8rem;
  color: var(--gray-600);
  text-align: center;
  padding: .35rem .25rem 0;
  line-height: 1.4;
}

/* Board minutes doc list */
.mp-minutes-year {
  font-weight: 700;
  color: var(--navy);
  margin: 1rem 0 .25rem;
  font-size: 1rem;
}

/* Lightbox — prefixed mp- */
#mp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,15,30,.92);
  align-items: center;
  justify-content: center;
}
#mp-lightbox.mp-lb-active { display: flex; }

.mp-lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mp-lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.mp-lb-caption {
  color: #c8d8eb;
  font-size: .9rem;
  margin-top: .75rem;
  text-align: center;
}

.mp-lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  z-index: 3001;
}
.mp-lb-close:hover, .mp-lb-close:focus { background: rgba(255,255,255,.12); }
.mp-lb-close:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

.mp-lb-nav { display: flex; gap: 1rem; margin-top: 1rem; }
.mp-lb-nav button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
}
.mp-lb-nav button:hover, .mp-lb-nav button:focus { background: rgba(255,255,255,.2); }
.mp-lb-nav button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Photos page gallery ── */
.ph-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 780px) {
  .ph-photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .ph-photo-grid { grid-template-columns: 1fr; }
}

.ph-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
  position: relative;
}

.ph-photo-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .2s, opacity .2s;
}

.ph-photo-btn:hover img,
.ph-photo-btn:focus img {
  transform: scale(1.03);
  opacity: .92;
}

.ph-photo-btn:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ph-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,34,64,.35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius);
}

.ph-photo-btn:hover .ph-photo-overlay,
.ph-photo-btn:focus .ph-photo-overlay {
  opacity: 1;
}

.ph-photo-overlay i {
  color: var(--white);
  font-size: 1.5rem;
}

.ph-caption-text {
  font-size: .8rem;
  color: var(--gray-600);
  text-align: center;
  padding: .35rem .25rem 0;
  line-height: 1.4;
}

/* Lightbox — prefixed ph- */
#ph-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,15,30,.92);
  align-items: center;
  justify-content: center;
}
#ph-lightbox.ph-lb-active { display: flex; }

.ph-lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ph-lb-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.ph-lb-caption {
  color: #c8d8eb;
  font-size: .9rem;
  margin-top: .75rem;
  text-align: center;
}

.ph-lb-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  z-index: 3001;
}
.ph-lb-close:hover, .ph-lb-close:focus { background: rgba(255,255,255,.12); }
.ph-lb-close:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

.ph-lb-nav { display: flex; gap: 1rem; margin-top: 1rem; }
.ph-lb-nav button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
}
.ph-lb-nav button:hover, .ph-lb-nav button:focus { background: rgba(255,255,255,.2); }
.ph-lb-nav button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── Contact page specific ── */
.ct-courthouse-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
  float: right;
  margin: 0 0 1.25rem 1.75rem;
}

@media (max-width: 600px) {
  .ct-courthouse-img {
    float: none;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
  }
}

.ct-intro-wrap::after {
  content: '';
  display: table;
  clear: both;
}

/* Department phone list */
.ct-dept-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.ct-dept-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.ct-dept-list li:last-child {
  border-bottom: none;
}

.ct-dept-list li strong {
  color: var(--navy);
  min-width: 0;
}

.ct-dept-list li a {
  color: var(--blue-lt);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.ct-dept-list li a:hover,
.ct-dept-list li a:focus {
  color: var(--navy);
  text-decoration: underline;
}

.ct-dept-note {
  font-size: .875rem;
  color: var(--gray-600);
  font-style: italic;
}

/* Holiday table */
.ct-holiday-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.ct-holiday-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: .65rem 1rem;
  text-align: left;
  font-weight: 700;
}

.ct-holiday-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
}

.ct-holiday-table tbody tr:last-child {
  border-bottom: none;
}

.ct-holiday-table tbody tr:nth-child(even) {
  background: var(--gray-100);
}

.ct-holiday-table tbody td {
  padding: .6rem 1rem;
  color: var(--gray-600);
  vertical-align: top;
}

.ct-holiday-table tbody td:first-child {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.ct-holiday-table tbody tr:hover {
  background: #e8edf4;
}

/* ── Commissioner page: staff cards ── */
  .cc-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .cc-staff-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--blue);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
  }
  .cc-staff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .15rem;
  }
  .cc-staff-card .cc-staff-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .6rem;
  }
  .cc-staff-card .cc-staff-note {
    font-size: .82rem;
    color: var(--gray-600);
    margin-bottom: .55rem;
    font-style: italic;
  }
  .cc-staff-contact {
    display: flex;
    flex-direction: column;
    gap: .3rem;
  }
  .cc-staff-contact a {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: var(--blue-lt);
    text-decoration: none;
  }
  .cc-staff-contact a:hover { color: var(--navy); text-decoration: underline; }
  .cc-staff-contact i {
    width: 14px;
    text-align: center;
    font-size: .8rem;
    color: var(--blue);
    flex-shrink: 0;
  }
