/* Rails bridge: keep generated Figma CSS in re_home.css; add server-form and link tweaks here. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

.site-header .brand {
  text-decoration: none;
  color: #1c2421;
}

.site-header .brand:visited {
  color: #1c2421;
}

.header-actions {
  flex-shrink: 0;
}

.header-actions .talk-button {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.header-actions .talk-button:hover {
  color: #fff;
}

.header-actions .talk-button--ai-chat {
  gap: 0;
  height: auto;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 6px 18px rgba(45, 91, 76, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-actions .talk-button--ai-chat:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(45, 91, 76, 0.28);
}

.header-actions .talk-button__ai-icon {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  filter: none !important;
}

.header-actions .menu-button {
  flex-shrink: 0;
}

.font-controls form {
  display: contents;
  margin: 0;
}

.font-controls input[type="hidden"] {
  /* Never participate in the flex row if a browser exposes the node */
  display: none !important;
}

/* Isolate control from html zoom / .site so px/rem sizes for the A/A/A pills stay predictable. */
.site-header .font-controls {
  align-items: stretch;
  font-size: 16px;
}

/*
 * Figma: three A’s at 16px / 20px / 24px with vertical rules.
 * - Re-home wraps each control in a form (display:contents), so re_home.css :nth-child(2|3)
 *   does NOT target the buttons; set sizes on .re-home-font-* only.
 * - `button { font: inherit }` (@layer base) would inherit .site’s em size and flatten the steps;
 *   beat it with an explicit font stack + sizes under .site-header.
 */
.site-header .font-controls button {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  flex: 0 0 46px;
  height: auto;
  min-height: 0;
  align-self: stretch;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: white;
  color: #1c2421;
  font-family: "Inter:Bold", "Inter", system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

/* Inset dividers (reliable vs border shorthand fights from re_home.css). */
.site-header .font-controls button.re-home-font-0,
.site-header .font-controls button.re-home-font-1 {
  box-shadow: inset -1px 0 0 #b9b4a8;
}

.site-header .font-controls button.re-home-font-0 {
  font-size: 16px;
}

.site-header .font-controls button.re-home-font-1 {
  font-size: 20px;
}

.site-header .font-controls button.re-home-font-2 {
  font-size: 24px;
}

.site-header .font-controls button.active {
  background: #2d5b4c;
  color: #fff;
}

.nav a {
  border: 0;
  background: transparent;
  color: #1c2421;
  font-family: "Inter", "Inter:Regular", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 26.4px;
  white-space: nowrap;
  text-decoration: none;
}

.nav a:hover {
  color: var(--gold);
}

.step-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 0.8px solid var(--green);
  background: transparent;
  color: var(--green);
  font: 600 14px/20px "Inter:Semi Bold", system-ui, sans-serif;
  text-decoration: none;
}

.care-list article > a:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--green);
  font: 600 14px/20px "Inter:Semi Bold", system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
}

.groups-heading .text-link.groups-heading-link {
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font: 600 14px/20px "Inter:Semi Bold", system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
}

.group-grid .group-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  flex: none;
}

.group-grid .group-arrow .arrow {
  width: 16px;
  height: 16px;
}

.search-panel {
  position: relative;
  z-index: 3;
}

.address-suggest-field {
  position: relative;
}

.address-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #fff;
  border: 0.8px solid rgba(44, 96, 79, 0.12);
  box-shadow: 0 16px 32px rgba(62, 76, 55, 0.16);
  max-height: 460px;
  overflow: auto;
}

.address-suggest[hidden] {
  display: none;
}

.address-suggest li {
  margin: 0;
  padding: 0;
}

.address-suggest button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1f2926;
  text-align: left;
  font: 500 15px/1.3 "Inter", "Inter:Medium", system-ui, sans-serif;
  cursor: pointer;
}

.address-suggest button[aria-selected="true"],
.address-suggest button:hover {
  background: #e1ebe6;
}

.address-suggest small {
  color: rgba(31, 41, 38, 0.55);
  font: 400 12px/16px "Inter:Regular", system-ui, sans-serif;
}

.city-card,
.city-card:link,
.city-card:visited,
.city-card:hover,
.city-card:focus {
  color: #1f2926;
  text-decoration: none;
}

.city-card strong {
  color: #1f2926;
}

.quick-city-link {
  color: #1c2421;
  border: 0;
  border-bottom: 0.8px solid #1c2421;
  background: transparent;
  padding: 1px 0;
  font-family: "Manrope:SemiBold", system-ui, sans-serif;
  font-weight: 600;
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
}

.search-panel input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

.footer-links a {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  font: 400 14px/20px "Inter:Regular", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

.footer-bottom a {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

.section-heading {
  align-items: flex-end;
}

.section-heading .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0;
  text-decoration: none;
  color: var(--green);
}

.section-heading > div:first-child {
  flex: 1;
  min-width: 0;
}

.group-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.re-home-group-stretch {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.group-grid article {
  position: relative;
}

.re-home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Featured card is a vertical stack; small cards use the Figma 44% / 56% grid (do not set display:block on .guide-card). */
.featured-guide {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
}

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
}

.guide-fab {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
}

/* Featured guide uses <span.guide-fab> in Rails; Figma used <button>, which picks up mint fill from .featured-guide button rules in re_home.css. */
.featured-guide .guide-fab {
  background: var(--mint);
}

.guide-card .guide-fab {
  right: 24px;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border: 0.8px solid rgba(44, 96, 79, 0.2);
  border-radius: 50%;
  background: transparent;
}

.guide-card > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.city-card i .arrow {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .search-panel {
    grid-template-columns: 1fr !important;
  }

  .search-divider {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav.open a {
    padding: 12px;
    text-align: left;
  }

  .care-list article > a:last-child {
    grid-column: 2;
    justify-self: start;
  }
}

/* Typography tokens: re_home_typography.css */
