/* Poppins, self-hosted. Zendesk's theme loads it from Google Fonts; a government help
   site should not make a third-party request to render text, so the files are vendored
   (SIL Open Font License permits this). Falls back to the system stack. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/_assets/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/_assets/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/_assets/fonts/poppins-600.woff2") format("woff2"); }

/* Shared stylesheet for every generated Help Center.
   Per-Client differences arrive as CSS custom properties set in base.html from
   site.yaml — this file never varies. System font stack, so no webfont is fetched
   from a third party (design spec rule 9/10). */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}
.container { width: min(72rem, 100% - 2rem); margin-inline: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip-link:focus { left: 0; }

/* header */
.site-header { background: var(--header-bg); color: var(--header-text); padding: 1rem 0;
               border-bottom: 1px solid #e3e5e9; }
.header-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.brand-logo { max-height: 76px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
/* Search lives in the hero, centred, as the primary call to action — residents come
   to search, so demoting it to a header corner buries the main task. */
.search-form { display: flex; width: min(38rem, 100%); background: #fff; border-radius: 4px;
               overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.search-form input {
  flex: 1; padding: .85rem 1rem; border: 0; font-size: 1.05rem; color: #232323; min-width: 0;
}
.search-form input:focus-visible { outline-offset: -3px; }
.search-form button {
  padding: 0 1.1rem; border: 0; cursor: pointer; background: #fff; color: #5c626b;
  display: grid; place-items: center;
}
.search-form button:hover { color: var(--accent); }

/* hero */
.hero { background: var(--accent); color: #fff; padding: 3rem 0 3.4rem;
        width: min(92rem, 100% - 6rem); margin: 0 auto; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.hero-title { margin: 0; font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 500;
              letter-spacing: -.01em; text-align: center; }
.welcome { background: #b8b8b8; color: #fff; padding: 1.1rem 0; text-align: center;
           width: min(92rem, 100% - 6rem); margin: 0 auto; }
.welcome p { margin: 0 0 .7rem; }
.welcome .btn { background: var(--accent); color: #fff; padding: .5rem 1.1rem; }
.btn {
  display: inline-block; background: #fff; color: var(--accent); font-weight: 600;
  padding: .6rem 1.1rem; border-radius: 4px; text-decoration: none;
}
.hero .btn:hover, .promo .btn:hover { text-decoration: underline; }
.promo .btn { background: var(--accent); color: #fff; }

main { padding: 2.4rem 0 3.5rem; }
@media (max-width: 48rem) {
  /* Gutters would eat the content on a phone. */
  .hero, .welcome { width: 100%; }
}
h1 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); line-height: 1.25; }
.section-heading { margin-top: 0; }

/* category tiles */
/* Columns are capped at 4 by raising the track MINIMUM to a quarter of the row rather
   than by fixing the count. A hard `repeat(4, 1fr)` packed a 3-category site into the
   left three quarters of the page and left a gap; with auto-fit the empty tracks
   collapse and the tiles spread evenly however many there are. */
.tiles { list-style: none; margin: 3rem 0 3.5rem; padding: 0; display: grid;
         gap: 2.5rem 1.5rem;
         grid-template-columns:
           repeat(auto-fit, minmax(max(13rem, calc((100% - 4.5rem) / 4)), 1fr)); }
.tile a {
  display: flex; flex-direction: column; align-items: center; gap: .85rem; height: 100%;
  text-decoration: none; color: inherit; text-align: center;
}
.tile-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 12px; background: var(--accent);
}
.tile-icon { width: 52px; height: 52px; object-fit: contain; }
.tile-title { font-weight: 400; color: var(--text); font-size: 1.15rem; }
.tile a:hover .tile-title { text-decoration: underline; }
.tile-desc { font-size: .95rem; color: #4a4f57; max-width: 22rem; line-height: 1.5; }

/* lists */
/* Accordion sections. Type is deliberately smaller than a page heading: these are
   navigation, not content, and at h2 size they competed with the page title. */
.section-group { border: 1px solid #e3e5e9; border-bottom: 0; }
.section-group:last-of-type { border-bottom: 1px solid #e3e5e9; }
.section-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem; background: #f7f8f9; cursor: pointer; list-style: none;
  font-size: .95rem; font-weight: 400; color: var(--text);
}
.section-summary::-webkit-details-marker { display: none; }
.section-summary:hover { background: #f1f2f4; }
.section-group[open] .section-summary { background: #f7f8f9; }
.section-toggle { position: relative; width: 16px; height: 16px; flex: none; }
.section-toggle::before, .section-toggle::after {
  content: ""; position: absolute; background: #5c626b; inset: 7px 0 auto 0; height: 2px;
}
.section-toggle::after { transform: rotate(90deg); transition: transform .15s ease; }
.section-group[open] .section-toggle::after { transform: rotate(0); }
.article-list { list-style: disc; padding: .9rem 1.1rem .9rem 2.4rem; margin: 0; }
.article-list li { padding: .28rem 0; border: 0; font-size: .95rem; }
.article-list li.empty { list-style: none; color: #6b7079; }

/* breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.breadcrumb li + li::before { content: "\203A"; margin-right: .4rem; color: #8b909a; }

/* article */
.article-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .article-layout { grid-template-columns: minmax(0, 1fr) 17rem; } }
.prose { max-width: 46rem; }
.prose img { border: 1px solid #e6e8ec; border-radius: 4px; margin: .6rem 0; }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.08rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid #d7dbe2; padding: .5rem .7rem; text-align: left; }
.prose th { background: #f4f5f8; }
.prose pre { background: #f5f6f8; padding: .8rem; border-radius: 4px; overflow-x: auto; }
.prose code { background: #f0f1f4; padding: .1rem .3rem; border-radius: 3px; }
.prose iframe { max-width: 100%; }
.updated { color: #5c626b; font-size: .88rem; margin-top: 2rem; }
.sidebar h2 { font-size: 1rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .35rem 0; font-size: .93rem; }
.sidebar [aria-current] { font-weight: 650; }

/* promos + footer */
/* Utility row: cross-locale prompt left, app promo right, divided by a vertical rule.
   The rule is a left border on the right-hand column, so it vanishes with the column
   and again when the row stacks — a standalone divider element would have stayed
   behind as a stray line on single-column sites and on phones. */
.utility-row { display: grid; gap: 2rem; border-top: 1px solid #e6e8ec;
               padding-top: 2.5rem; margin-top: 1rem; }
@media (min-width: 48rem) {
  .utility-row { grid-template-columns: 1fr 1fr; gap: 0; }
  .utility-end { border-left: 1px solid #e6e8ec; padding-left: 3rem; }
  .utility-start { padding-right: 3rem; }
}
.lang-cta p { margin: 0 0 1rem; }
.lang-cta .btn { background: var(--accent); color: #fff; }
.app-promo .app-links { margin: .9rem 0 1rem; }
.app-promo p:last-child { color: #3f444c; line-height: 1.55; margin-bottom: 0; }
.promo h2 { margin-top: 0; font-size: 1.25rem; }
.app-links { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 2rem 0 2.4rem;
               margin-top: 0; }
.site-footer a { color: inherit; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem;
                text-align: center; font-size: .92rem; }
.copyright { margin: 0; opacity: .92; }
/* Separators between the legal links, matching the original's pipe-delimited row. */
.copyright a { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.45); }
.copyright a:first-of-type { border-left: 0; }
.social { display: flex; gap: .6rem; }
/* Specificity matters here: `.site-footer a { color: inherit }` (0,1,1) outranks a bare
   `.social-link` (0,1,0), so the glyphs inherited the footer's white text and vanished
   against the white circle. Scope the rule to win. */
.site-footer .social-link {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--footer-bg); text-decoration: none;
}
.social-link:hover { opacity: .85; }
.locale-switch a, .locale-switch span { margin: 0 .5rem; }

/* App-store badges: the original uses the official artwork, so text links read as a
   downgrade. Height-capped so the two badges align regardless of source dimensions. */
.app-badge { height: 44px; width: auto; }

/* search */
.search-list { list-style: none; padding: 0; }
.search-list li { margin-bottom: 1.6rem; }
.search-list a { font-size: 1.1rem; font-weight: 600; }
.search-list p { margin: .3rem 0 0; }
.search-section { display: block; font-size: .82rem; opacity: .75; }
mark { background: #ffe9a8; }

/* Article byline — mirrors the live Help Center: avatar, author alias, updated date. */
.byline { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.5rem; }
.byline-avatar { border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.byline-text { display: flex; flex-direction: column; line-height: 1.35; }
.byline-name { font-weight: 600; }
.byline-date { font-size: .85rem; opacity: .7; }
