@font-face {
  font-family: Geist;
  src: url("./geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Mibba: forest accents, paper surfaces, serif titles and restrained controls. */
:root {
  color-scheme: light;
  --ink: #1c2b23;
  --muted: #526258;
  --forest: #244c35;
  --forest-dark: #183626;
  --line: #d8e0d8;
  --wash: #f0f4ee;
  --paper: #fafbf8;
  --surface: #fff;
  --radius: 14px;
  --control-radius: 10px;
  font:
    16px/1.6 Geist,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: #9dac9e var(--wash);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.cookie-settings {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 28px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-size: 0.85rem;
}
.cookie-settings .actions {
  margin-top: 12px;
}
.cookie-settings > p {
  margin-bottom: 6px;
}
::selection {
  color: var(--forest-dark);
  background: #d7e6d2;
}
a {
  color: var(--forest);
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}
:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
ul {
  margin: 0;
}
h1,
h2 {
  font:
    400 1rem/1.12 Georgia,
    serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
}
h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
}
h3 {
  font-size: 1.06rem;
  line-height: 1.45;
  font-weight: 590;
  letter-spacing: -0.018em;
}
p {
  color: var(--muted);
}
section[id],
#contact,
#prix {
  scroll-margin-top: 2rem;
}
input,
select {
  accent-color: var(--forest);
  caret-color: var(--forest);
}
input::placeholder {
  color: #667368;
  opacity: 1;
}

.shell {
  width: min(100% - 4rem, 1160px);
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.65rem 1rem;
  background: white;
  z-index: 5;
}
.skip:not(:focus) {
  clip-path: inset(50%);
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.navbar {
  min-height: 76px;
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.brand {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font:
    600 1.6rem/1 Georgia,
    serif;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar nav {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.6vw, 2rem);
  align-self: stretch;
}
.navbar nav a {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.navbar nav a:hover {
  color: var(--forest-dark);
}
.navbar nav .active {
  border-bottom-color: var(--forest);
  color: var(--forest-dark);
  font-weight: 590;
}
.stage {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.hero .shell {
  padding-block: 62px 34px;
  background:
    linear-gradient(90deg, var(--wash) 40%, transparent 83%),
    url("./assistant-forest.webp") center right / cover no-repeat;
}
.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
}
.lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  max-width: 65ch;
  margin-top: 18px;
}
.hero-copy .lead {
  max-width: 510px;
}
.search-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 210px auto;
  align-items: end;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 960px;
}
.search-form label,
.search-kind legend,
.calc-form label {
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 570;
}
.search-field > label {
  display: block;
  margin-bottom: 9px;
}
.search-kind {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.search-kind legend {
  margin-bottom: 9px;
  padding: 0;
}
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: var(--control-radius);
}
.segmented-control label {
  position: relative;
  cursor: pointer;
}
.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.segmented-control span {
  display: flex;
  min-height: 38px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}
.segmented-control input:checked + span {
  background: var(--surface);
  color: var(--forest-dark);
  font-weight: 650;
  box-shadow: 0 1px 3px #233c2420;
}
.segmented-control input:focus-visible + span {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.segmented-control label:hover span {
  color: var(--forest-dark);
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  appearance: auto;
  min-height: 48px;
  width: 100%;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid #b4c2b6;
  border-radius: var(--control-radius);
  color: var(--ink);
  font: inherit;
}
.search-form input[type="search"] {
  background: var(--paper);
}
.button {
  font:
    570 0.89rem/1.3 Geist,
    sans-serif;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: 11px 17px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.primary {
  background: var(--forest);
  color: white;
}
.primary:hover {
  background: var(--forest-dark);
  color: white;
}
.quiet {
  background: transparent;
  border-color: #b4c2b6;
  color: var(--forest);
}
.quiet:hover {
  background: var(--wash);
}
.button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.search-submit {
  min-height: 48px;
  padding-inline: 25px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.intro {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 45px;
}
.intro h1 {
  max-width: 950px;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}
.back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.directory-form {
  margin-top: 28px;
}
.directory-form .search-form {
  max-width: none;
}
.content {
  padding-block: 44px 72px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  align-items: start;
}
.content h2 {
  margin-bottom: 16px;
}
.results-heading {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}
.results-heading h2 {
  font-size: 2rem;
  margin-bottom: 0;
}
.results-heading p {
  font-size: 0.9rem;
  margin-top: 8px;
}
.results {
  list-style: none;
  padding: 0;
}
.results li {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.result-copy {
  min-width: 0;
}
.results h3 a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.results h3 a:hover {
  color: var(--forest);
  text-decoration: underline;
}
.results p {
  font-size: 0.89rem;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin-top: 5px;
}
.metadata,
.results p.metadata {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 450;
}
.results p.metadata {
  margin-top: 8px;
}
.result-action {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 570;
  padding-block: 12px;
  text-decoration-color: #b4c2b6;
}
.result-action:hover {
  text-decoration-color: var(--forest);
}
.results .button {
  flex-shrink: 0;
}
.empty-results {
  padding: 32px 0;
}
.side {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.side h2 {
  font:
    570 1.15rem/1.4 Geist,
    sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.territory-group {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.territory-group summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}
.territory-group summary::marker {
  color: var(--muted);
  font-size: 0.7em;
}
.territory-group .link-grid {
  margin-top: 12px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  list-style: none;
  padding: 0;
}
.link-grid a {
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
.side .link-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}
.side .link-grid a {
  display: inline-block;
  padding-block: 3px;
  text-decoration: none;
  color: var(--muted);
}
.side .link-grid a:hover {
  color: var(--forest);
  text-decoration: underline;
}
.side > p {
  margin-top: 20px;
  font-size: 0.9rem;
}
.pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.84rem;
}
.pages span {
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}
.topic,
.profile,
.source,
.editorial section,
.plan section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.topic {
  margin-top: 32px;
}
.topic p {
  margin-bottom: 16px;
}
.source p {
  margin-bottom: 8px;
}
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--wash);
  overflow-wrap: anywhere;
}
.contact h2 {
  margin-bottom: 16px;
  font-size: 1.85rem;
}
.contact p + .actions,
.contact .actions {
  margin-top: 20px;
}
.people {
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.people li + li {
  margin-top: 6px;
}
.editorial p,
.profile p,
.topic p {
  max-width: 70ch;
  line-height: 1.8;
}
.profile p + p {
  margin-top: 16px;
}

.directory-help {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 18px;
  padding-block: 21px;
  border-bottom: 1px solid var(--line);
}
.directory-help a {
  font-size: 0.88rem;
  font-weight: 600;
}
.directory-help span {
  color: var(--muted);
  font-size: 0.84rem;
}
.office-hero {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}
.office-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: 40px;
}
.office-heading h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.75rem);
  overflow-wrap: anywhere;
}
.office-heading .metadata {
  margin-bottom: 12px;
}
.office-hero figure {
  margin: 0;
}
.office-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.office-hero figcaption {
  text-align: right;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}
.office-people ul {
  padding-left: 0;
  list-style: none;
}
.office-people li {
  padding: 6px 0;
}
.contact-details dl {
  margin: 0;
}
.contact-details dl > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  font-size: 0.78rem;
  color: var(--muted);
}
.contact-details dd {
  margin: 5px 0 0;
  font-size: 0.94rem;
}

.calc-form {
  display: grid;
  gap: 9px;
}
.calc-form input:not([type="checkbox"]),
.calc-form select {
  margin-bottom: 13px;
}
.calc-form .check {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.calc-form .check input {
  margin-top: 4px;
}
.calc-form button {
  justify-self: start;
  margin-top: 6px;
}
.calculator {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.calculator .topic {
  margin-top: 0;
}
.total {
  font-variant-numeric: tabular-nums;
}
.breakdown {
  margin-block: 18px;
  font-size: 0.88rem;
}
.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.breakdown dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
[role="alert"] {
  color: #8b3029;
}
.plan .link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  font-size: 0.82rem;
}
.footer-inner span {
  color: var(--forest-dark);
  font:
    600 1.35rem Georgia,
    serif;
  margin-right: auto;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.chat-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.chat-toolbar {
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.chat-toolbar .button {
  justify-self: start;
}
.chat-reset {
  border: 0;
  background: transparent;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}
.chat-transcript {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  min-height: 240px;
  max-height: min(54svh, 580px);
  overflow: auto;
  list-style: none;
}
.chat-message {
  width: fit-content;
  max-width: min(100%, 520px);
  padding: 14px 17px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.chat-message p {
  white-space: pre-wrap;
  color: var(--ink);
  font-size: 0.94rem;
}
.chat-message .metadata {
  display: block;
  margin-bottom: 5px;
}
.chat-assistant {
  align-self: flex-start;
  background: var(--wash);
}
.chat-user {
  align-self: flex-end;
  background: #e1ebdf;
}
.chat-choices {
  margin-top: 14px;
  gap: 8px;
}
.chat-choices .button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8rem;
}
.chat-links {
  margin-top: 12px;
  padding-left: 17px;
  font-size: 0.86rem;
}
.chat-form {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.chat-form label {
  display: block;
  font-size: 0.83rem;
  font-weight: 570;
  margin-bottom: 9px;
}
.chat-compose {
  display: flex;
  gap: 10px;
}
.chat-privacy,
#chat-status {
  font-size: 0.76rem;
  margin-top: 10px;
}
#chat-status:empty {
  display: none;
}
.chat-resources {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.chat-resources ul {
  padding-left: 18px;
  font-size: 0.9rem;
  margin-top: 18px;
}
.chat-resources li {
  margin-bottom: 10px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button,
  .segmented-control span {
    transition:
      background-color 140ms ease-out,
      color 140ms ease-out;
  }
}
@media (max-width: 1024px) {
  .hero h1 {
    max-width: 580px;
  }
  .search-form {
    gap: 14px;
    grid-template-columns: minmax(160px, 1fr) 190px auto;
  }
  .search-submit {
    padding-inline: 18px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.8fr) minmax(230px, 1fr);
    gap: 32px;
  }
  .side {
    padding-left: 20px;
  }
}
@media (max-width: 730px) {
  .shell {
    width: calc(100% - 2.5rem);
  }
  .navbar {
    min-height: 70px;
    gap: 24px;
  }
  .navbar nav {
    margin-left: auto;
    gap: 16px;
  }
  .navbar nav a {
    font-size: 0.81rem;
  }
  .stage {
    display: none;
  }
  .hero .shell {
    padding-block: 40px 28px;
    background-size: auto, cover;
  }
  .hero-copy {
    margin-bottom: 27px;
  }
  .hero-copy .lead {
    max-width: 28rem;
  }
  .search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 14px;
    padding: 18px;
  }
  .search-field {
    grid-column: 1 / -1;
  }
  .search-kind {
    max-width: 250px;
  }
  .search-form input[type="search"] {
    font-size: 16px;
  }
  .columns,
  .calculator,
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .content {
    padding-block: 32px 48px;
  }
  .intro {
    padding-block: 34px;
  }
  .side {
    padding: 26px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .side .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .office-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding-block: 28px;
  }
  .office-hero img {
    aspect-ratio: 2.2;
  }
  .office-profile .contact-details {
    grid-row: 1;
  }
  .directory-help {
    gap: 4px;
    flex-direction: column;
    padding-block: 18px;
  }
  .contact {
    padding: 22px;
  }
}
@media (max-width: 480px) {
  .navbar {
    min-height: 100px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 15px;
  }
  .navbar .brand {
    font-size: 1.4rem;
  }
  .navbar .brand img {
    width: 26px;
    height: 26px;
  }
  .navbar nav {
    flex-basis: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
  }
  .navbar nav a {
    font-size: 0.82rem;
  }
  .hero .shell {
    background: none;
    padding-top: 32px;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 9.8vw, 3rem);
  }
  .hero-copy .lead {
    font-size: 0.97rem;
    margin-top: 15px;
  }
  .search-form {
    padding: 16px;
    gap: 17px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .search-kind legend {
    font-size: 0.77rem;
  }
  .segmented-control {
    padding: 3px;
  }
  .segmented-control span {
    min-height: 40px;
    font-size: 0.8rem;
    padding-inline: 7px;
  }
  .search-submit {
    padding-inline: 16px;
    font-size: 0.82rem;
  }
  .results li {
    gap: 12px;
    align-items: flex-start;
    padding-block: 22px;
  }
  .results h3 {
    font-size: 1rem;
  }
  .results p {
    font-size: 0.84rem;
  }
  .result-action {
    font-size: 0.77rem;
    padding-top: 2px;
    white-space: nowrap;
  }
  .results li:has(.button) {
    flex-wrap: wrap;
  }
  .results .button {
    min-height: 40px;
    font-size: 0.82rem;
  }
  .results-heading h2 {
    font-size: 1.85rem;
  }
  .plan .link-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-toolbar,
  .chat-form,
  .chat-transcript {
    padding: 16px;
  }
  .chat-compose {
    gap: 8px;
  }
  .chat-compose .button {
    padding-inline: 12px;
  }
  .chat-compose input {
    min-width: 0;
  }
  .footer-inner {
    padding-block: 24px;
  }
}
@media (max-width: 360px) {
  .search-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-kind {
    max-width: none;
  }
  .search-submit {
    width: 100%;
  }
  .results li {
    flex-wrap: wrap;
  }
}
