/* Gov508 "VERIFIED" tag for directory listings (Eric 2026-11-04).
   Active:   light background, thin fluorescent-green box, black text (21:1).
   Inactive (payment lapsed): same tag greyed out, still readable (grey text 4.6:1).
   Real text, not an image: scales with the user's text size and screen readers read it.
   Colour alone must not carry the meaning (WCAG 1.4.1), so the inactive tag's aria-label says so. */
.g508-verified{
  display:inline-block; vertical-align:middle;
  padding:.14em .3em .06em; margin-left:.45em;   /* tight: just room around the capital letters */
  font:700 .72em/.78 Arial, Helvetica, sans-serif; letter-spacing:.06em;
  color:#000000;                 /* black text (21:1) */
  background:#FAFCF8;            /* light background */
  border:2.5px solid #2EE612;    /* fluorescent green box, bold enough to stand out */
  border-radius:2px; text-decoration:none; white-space:nowrap;
}
.g508-verified--inactive{
  color:#6E6E6E;                 /* lighter grey text, 4.6:1 on the light grey (lightest that still passes AA) */
  background:#F3F3F3;
  border-color:#A6A6A6;          /* grey box */
}
.g508-verified:hover,.g508-verified:focus-visible{ text-decoration:underline; }
.g508-verified:focus-visible{ outline:3px solid #000000; outline-offset:2px; }
.g508-verified--inactive:focus-visible{ outline-color:#6E6E6E; }

/* directory.css — Government Websites Directory on the home page (2026-11-04).
   Large readable text; table scrolls inside its own box on small screens so the page never scrolls sideways. */
.gov-directory{background:#fff;border-top:1px solid #d6e2e8}
.gov-directory h1,.gov-directory h2{font-size:clamp(1.9rem,3.2vw,2.6rem);margin:0 0 .5rem;color:#0b2033}
.directory-intro,.directory-count,.directory-message{font-size:1.15rem;line-height:1.6;color:#1d2f3d}
.directory-views ul{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin:1.25rem 0;padding:0}
.directory-views a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem 1.1rem;border:2px solid #196200;border-radius:.4rem;color:#196200;font-weight:700;font-size:1.1rem;text-decoration:none}
.directory-views a:hover{text-decoration:underline}
.directory-views a[aria-current=page]{background:#196200;color:#fff}
.directory-search{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end;margin:0 0 1.25rem}
.directory-search .field{display:flex;flex-direction:column;gap:.3rem;min-width:14rem;flex:1 1 14rem}
.directory-search label{font-weight:700;font-size:1.05rem;color:#0b2033}
.directory-search input,.directory-search select{min-height:44px;font-size:1.05rem;padding:.4rem .6rem;border:2px solid #5a6b78;border-radius:.35rem;background:#fff;color:#0b2033}
.directory-search .button{min-height:44px}
.directory-table-wrap{overflow-x:auto;border:1px solid #d6e2e8;border-radius:.5rem}
.directory-table-wrap:focus-visible{outline:3px solid #196200;outline-offset:2px}
.directory-table{width:100%;border-collapse:collapse;font-size:1.02rem}
.directory-table th,.directory-table td{text-align:left;padding:.65rem .8rem;border-bottom:1px solid #e3e9ee;vertical-align:top}
.directory-table thead th{background:#000;color:#fff;font-size:1rem}
.directory-table tbody th{font-weight:600}
.directory-table tbody tr:nth-child(even){background:#f4f9f2}
.directory-table a{color:#196200}
.badge-date{display:block;font-size:.9rem;color:#1d2f3d;margin-top:.25rem}
.directory-pages{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;margin-top:1rem;font-size:1.1rem}
.directory-pages a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:#196200}
@media(forced-colors:active){.directory-views a[aria-current=page]{border-width:4px}}
/* Keep words whole; on narrow screens the table scrolls inside its box. */
.directory-table{min-width:46rem}
.directory-table th,.directory-table td{overflow-wrap:normal;word-break:normal;hyphens:none}
/* Tighter rows; header on one line except on phones (Eric 2026-11-04 21:28). */
.directory-table th,.directory-table td{padding:.3rem .65rem;line-height:1.35}
.directory-table tbody th,.directory-table tbody td{font-size:1rem}
.badge-date{margin-top:.1rem}
@media(min-width:48rem){.directory-table thead th{white-space:nowrap}}
/* City and Type stay on one line on wider screens; the Organization column wraps instead. */
@media(min-width:48rem){.directory-table tbody tr>:nth-child(3),.directory-table tbody tr>:nth-child(4),.directory-table tbody tr>:nth-child(1){white-space:nowrap}}
/* All view buttons line up at the same height (Eric 2026-11-04 21:33): the site adds space above list items after the first. */
html body .directory-views ul>li{margin:0;padding:0;display:flex}
.directory-views a{display:flex}
/* Less space between the home page heading and the directory (Eric 2026-11-04 21:34). */
html body.home-page .mission-hero{padding-bottom:1rem}
html body.home-page .mission-hero h1{margin-bottom:0}
html body.home-page .gov-directory{padding-top:1.5rem}
/* No hero on the home page (Eric 2026-11-04 21:35): the directory starts right under the header. */
html body.home-page .gov-directory{border-top:0;padding-top:2rem}
/* Search row: labels and boxes line up; boxes the same height (2026-11-04). */
html body .directory-search{align-items:flex-end}
html body .directory-search .field{justify-content:flex-end}
html body .directory-search .field label{margin:0;line-height:1.3}
html body .directory-search input,html body .directory-search select,html body .directory-search .button{box-sizing:border-box;height:48px;min-height:48px;margin:0}
/* Directory tabs, letter jump, sign-in box (2026-11-05). */
.directory-tabs ul{list-style:none;display:flex;flex-wrap:wrap;gap:0;margin:0 0 1.25rem;padding:0;border-bottom:3px solid #196200}
html body .directory-tabs ul>li{margin:0;padding:0;display:flex}
.directory-tabs a{display:flex;align-items:center;min-height:48px;padding:.6rem 1.25rem;font-size:clamp(1.15rem,2vw,1.5rem);font-weight:800;color:#196200;text-decoration:none;border:3px solid transparent;border-bottom:0;border-radius:.5rem .5rem 0 0}
.directory-tabs a:hover{text-decoration:underline}
.directory-tabs a[aria-current=page]{background:#196200;color:#fff}
.directory-letters ul{list-style:none;display:flex;flex-wrap:wrap;gap:.3rem;margin:0 0 1.25rem;padding:0}
html body .directory-letters ul>li{margin:0;padding:0;display:flex}
.directory-letters a{display:flex;align-items:center;justify-content:center;min-width:2.5rem;min-height:2.5rem;padding:0 .4rem;border:1px solid #b9d3ae;border-radius:.3rem;color:#196200;font-weight:700;text-decoration:none}
.directory-letters a:hover{text-decoration:underline}
.directory-letters a[aria-current=page]{background:#196200;color:#fff;border-color:#196200}
.directory-flash{font-size:1.1rem;padding:.75rem 1rem;border-radius:.4rem;margin:0 0 1rem}
.directory-flash--ok{background:#edf6ea;border-left:6px solid #196200;color:#0b2033}
.directory-flash--error{background:#fdf0ef;border-left:6px solid #b52635;color:#5a0d14}
.signin-box{max-width:34rem;border:1px solid #b9d3ae;border-radius:.6rem;padding:1.5rem;background:#f8fbf6}
.signin-box h2{font-size:1.5rem;margin:0 0 .75rem;color:#0b2033}
.signin-box p{font-size:1.1rem;line-height:1.55}
.signin-box form{display:flex;flex-direction:column;gap:1rem;margin:1rem 0}
.signin-box .field{display:flex;flex-direction:column;gap:.3rem}
.signin-box label{font-weight:700}
.signin-box input[type=email],.signin-box input[type=password],.signin-box input[type=text],.signin-box input[type=search]{min-height:48px;font-size:1.1rem;padding:.4rem .6rem;border:2px solid #5a6b78;border-radius:.35rem}
.signin-box .button{align-self:flex-start;min-height:48px}
.signin-box .check{display:flex;gap:.6rem;align-items:flex-start;font-size:1.05rem}
.signin-box .check input{width:24px;height:24px;margin-top:.15rem}
.signin-links{display:flex;flex-wrap:wrap;gap:1.25rem}
.signin-links a{display:inline-flex;align-items:center;min-height:44px;color:#196200;font-weight:700}
.signin-qr{display:block;background:#fff;padding:.5rem;border:1px solid #d6e2e8}
.signin-secret{font-size:1.15rem;letter-spacing:.08em;word-break:break-all}
.signin-codes{columns:2;font-size:1.15rem}
.text-button{background:none;border:0;color:#196200;font-weight:700;text-decoration:underline;min-height:44px;cursor:pointer;font-size:1rem}
.directory-member{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:0 0 .5rem}
.directory-member p{margin:0;font-size:1.1rem}
.scanned{font-size:.95rem;color:#1d2f3d}
/* Both tabs fit on one line on tablets and computers. */
.directory-tabs a{font-size:clamp(1.05rem,1.7vw,1.35rem);padding:.55rem 1rem}

/* Phones: each website becomes its own block, so nothing hides off the edge of the box (Eric 2026-11-08; phones only). */
@media (max-width:47.99rem){
  .directory-table{min-width:0}
  .directory-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .directory-table,.directory-table tbody,.directory-table tr,.directory-table th,.directory-table td{display:block}
  .directory-table tbody tr{padding:.6rem .8rem;border-bottom:1px solid #e3e9ee}
  .directory-table tbody th,.directory-table tbody td{padding:.1rem 0;border:0;overflow-wrap:anywhere}
  .directory-table tbody th{font-size:1.1rem}
  .directory-table tbody td::before{font-weight:700;color:#0b2033}
  .directory-table tbody td:nth-of-type(1)::before{content:"Organization: "}
  .directory-table tbody td:nth-of-type(2)::before{content:"City and state: "}
  .directory-table tbody td:nth-of-type(3)::before{content:"Type: "}
  .directory-table tbody td:nth-of-type(4):empty{display:none}
  .directory-table tbody td:nth-of-type(4)::before{content:"Gov508 Verify: "}
}
