/* =========================================================
   David & Ángela — wedding website
   Mobile-first stylesheet. Design tokens live in :root:
   change a colour or font here and it updates everywhere.
   ========================================================= */

:root {
  /* Palette — concept E (ivory, linen, sage, clay, walnut) */
  --color-ivory: #FBF8F2;        /* page background */
  --color-linen: #F4F0E8;        /* alternate sections */
  --color-white: #FFFFFF;        /* gift card */
  --color-sage: #AEB8A2;         /* dashed rings, selected options */
  --color-sage-dark: #5F6A52;    /* small accent text (darkened for contrast) */
  --color-clay: #CDB29A;         /* timeline line */
  --color-walnut: #7A5E48;       /* buttons, links, times */
  --color-walnut-dark: #5E4736;  /* hover */
  --color-ink: #3E3A32;          /* main text */
  --color-ink-soft: #66604F;     /* secondary text */
  --color-line: #E6E1D8;         /* hairlines and borders */
  --color-input-line: #DDD6C8;   /* form field borders */

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --content-width: 680px;
  --content-narrow: 520px;
  --gutter: 24px;
  --slant: 48px;                 /* height of the diagonal section cuts */
  --radius-card: 16px;
  --radius-field: 10px;

  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;      /* keeps anchored titles clear of the header */
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
}

a {
  color: var(--color-walnut);
}

a:hover {
  color: var(--color-walnut-dark);
}

:focus-visible {
  outline: 2px solid var(--color-walnut);
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--color-walnut);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--color-walnut);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-walnut-dark);
  border-color: var(--color-walnut-dark);
  color: var(--color-white);
}

.btn--secondary {
  background: transparent;
  color: var(--color-walnut);
}

.btn--secondary:hover {
  background: var(--color-walnut);
  color: var(--color-white);
}

.btn--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* ---------- Header and menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 12px 0 var(--gutter);
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--color-ink);
  text-decoration: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--color-ivory);
  border-bottom: 1px solid var(--color-line);
}

.site-nav ul {
  margin: 0;
  padding: 8px 0 16px;
  list-style: none;
  text-align: center;
}

.site-nav a {
  display: block;
  padding: 12px var(--gutter);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--color-ink);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px var(--gutter) 64px;
  text-align: center;
}

.hero__art {
  width: calc(100% + 2 * var(--gutter));   /* bleeds to the screen edges on mobile */
  max-width: none;
  margin: 0 calc(-1 * var(--gutter)) 12px;
}

.hero__kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
}

.hero__names {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 14vw, 76px);
  line-height: 1.05;
}

.hero__date {
  margin-top: 12px;
  font-size: 16px;
}

.hero__place {
  margin-top: 4px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.countdown {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 66px;
  padding: 8px 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-field);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
}

.countdown__label {
  font-size: 11px;
  color: var(--color-ink-soft);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px var(--gutter);
}

/* Linen sections with diagonal cuts at top and bottom */
.section--alt {
  background: var(--color-linen);
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  padding-top: calc(var(--slant) + 48px);
  padding-bottom: calc(var(--slant) + 56px);
}

.section--compact {
  padding-top: 48px;
  padding-bottom: 8px;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  text-align: center;
}

.ornament {
  width: 130px;
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
}

.section-title--small {
  margin-bottom: 12px;
  font-size: 28px;
  text-align: center;
}

.section-lead {
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Dashed vertical line through the centre of the circles */
.timeline::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 47px;
  border-left: 1.5px dashed var(--color-clay);
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 18px;
}

.timeline__media {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px dashed var(--color-sage);
  border-radius: 50%;
  background: var(--color-ivory);
}

.timeline__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__body {
  padding-top: 14px;
}

.timeline__time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--color-walnut);
}

.timeline__title {
  margin: 2px 0 4px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.timeline__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

/* Desktop: zigzag layout with the line in the middle */
@media (min-width: 768px) {
  .timeline {
    gap: 40px;
  }

  .timeline::before {
    left: 50%;
    top: 70px;
    bottom: 70px;
  }

  .timeline__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    align-items: center;
  }

  .timeline__media {
    justify-self: end;
    width: 140px;
    height: 140px;
  }

  .timeline__body {
    padding-top: 0;
  }

  .timeline__item:nth-child(even) .timeline__media {
    order: 2;
    justify-self: start;
  }

  .timeline__item:nth-child(even) .timeline__body {
    text-align: right;
  }
}

/* ---------- How to get there ---------- */

.map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 240px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: #F1ECE3;
  font-size: 13px;
  color: var(--color-ink-soft);
  overflow: hidden;
}

.address {
  margin: 20px 0;
  font-size: 15px;
  text-align: center;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.button-row .btn {
  flex: 1;
  min-height: 46px;
  font-size: 14px;
}

.info-card {
  padding: 18px 20px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

.info-card + .info-card {
  margin-top: 16px;
}

.info-card__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
}

.info-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

/* ---------- RSVP form ---------- */

.rsvp {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.choice legend {
  font-size: 13px;
}

.field input,
.field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-input-line);
  border-radius: var(--radius-field);
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;               /* 16px prevents iOS from zooming in on focus */
}

.field input::placeholder {
  color: #767061;                /* readable placeholder (WCAG contrast 4.6:1) */
}

.choice {
  margin: 0;
  padding: 0;
  border: none;
}

.choice legend {
  margin-bottom: 8px;
  padding: 0;
}

.choice__options {
  display: flex;
  gap: 10px;
}

.choice__option {
  flex: 1;
  position: relative;
}

/* The real radio button stays accessible but invisible; the span is the pill */
.choice__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 1px solid var(--color-input-line);
  border-radius: 999px;
  background: var(--color-ivory);
  font-size: 14px;
  transition: background-color 0.2s, border-color 0.2s;
}

.choice__option input:checked + span {
  background: var(--color-sage);
  border-color: #8E9A82;
  color: #2F3A28;
}

.choice__option input:focus-visible + span {
  outline: 2px solid var(--color-walnut);
  outline-offset: 3px;
}

.btn-add {
  min-height: 48px;
  border: 1px dashed #8E9A82;
  border-radius: 12px;
  background: transparent;
  color: #4F5A45;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
}

.rsvp .btn--primary {
  margin-top: 6px;
}

.form-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-ink-soft);
  text-align: center;
}

/* ---------- Gifts ---------- */

.gifts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.gifts__text {
  font-size: 15px;
  line-height: 1.6;
}

.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 64px;              /* room for the medallion */
  padding: 0 20px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-white);
}

/* Opaque circle sitting on the top edge of the card */
.gift-card__medallion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  margin: -58px 0 2px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-white);
}

.gift-card__medallion img {
  width: 96px;
  height: 96px;
}

.gift-card__holders {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
}

.gift-card__iban {
  font-size: 17px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.gift-card .btn {
  margin-top: 6px;
}

/* ---------- Contact ---------- */

.contact-art {
  width: 150px;
  margin: -12px auto 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--color-ivory);
}

.contact-card + .contact-card {
  margin-top: 14px;
}

.contact-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
}

.contact-card__phone {
  font-size: 13px;
  color: var(--color-ink-soft);
}

/* ---------- FAQ (accordion) ---------- */

.faq {
  border-top: 1px solid var(--color-line);
}

.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 0;
  font-size: 15px;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* The "+" turns into an "×" when the answer is open */
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--color-walnut);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px var(--gutter) 48px;
  text-align: center;
}

.site-footer__monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
}

.site-footer__date {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--color-ink-soft);
}

.site-footer__note {
  font-size: 14px;
  color: var(--color-ink-soft);
}

.privacy {
  max-width: var(--content-narrow);
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-ink-soft);
}

.privacy summary {
  cursor: pointer;
  text-decoration: underline;
}

.privacy p {
  margin-top: 8px;
  line-height: 1.5;
}

/* =========================================================
   Step 3 — interactive pieces
   ========================================================= */

/* ---------- Add to calendar ---------- */

.calendar {
  margin-top: 18px;
}

.calendar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  font-size: 14px;
  color: var(--color-walnut);
  text-decoration: underline;
  text-underline-offset: 4px;
  list-style: none;
  cursor: pointer;
}

.calendar__toggle::-webkit-details-marker {
  display: none;
}

.calendar__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.calendar__option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.calendar__option:hover {
  border-color: var(--color-walnut);
  color: var(--color-walnut);
}

/* ---------- Companions ---------- */

.companions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.companions:empty {
  display: none;
}

.companion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 20px 18px;
  border: 1px solid var(--color-input-line);
  border-radius: 14px;
  background: var(--color-ivory);
}

.companion__title {
  padding: 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
}

.companion .field input,
.companion .field select {
  background: var(--color-white);
}

.companion__remove {
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-walnut);
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Companions make no sense if the guest is not coming */
.rsvp.is-not-attending .companions,
.rsvp.is-not-attending .btn-add {
  display: none;
}

/* ---------- Copy IBAN feedback ---------- */

#copy-iban.is-copied {
  background: var(--color-sage);
  border-color: #8E9A82;
  color: #2F3A28;
}

/* =========================================================
   Step 4 — form sending, errors and thank-you message
   ========================================================= */

/* Anti-spam field, moved off screen */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__error {
  font-size: 13px;
  color: #9A3B2E;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #9A3B2E;
}

.form-error {
  padding: 12px 14px;
  border: 1px solid #E3C3BB;
  border-radius: var(--radius-field);
  background: #FBF1EE;
  font-size: 14px;
  line-height: 1.5;
  color: #7A2F24;
}

.rsvp button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: wait;
}

.rsvp-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-ivory);
  text-align: center;
}

.rsvp-thanks[hidden] {
  display: none;
}

.rsvp-thanks:focus {
  outline: none;
}

.rsvp-thanks__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
}

.rsvp-thanks__message {
  font-size: 15px;
  line-height: 1.6;
}

.rsvp-thanks__calendar {
  width: 100%;
}

.rsvp-thanks__label {
  font-size: 13px;
  color: var(--color-ink-soft);
}

.rsvp-thanks__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

.rsvp[hidden] {
  display: none;
}


/* =========================================================
   Compact companion card
   ========================================================= */

.companion {
  position: relative;
  gap: 12px;
  padding-top: 14px;
}

/* Header: the title leads; "Quitar acompañante" is small and quiet on the right */
.companion__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.companion__title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  line-height: 1.2;
}

.companion__remove {
  display: inline-flex;
  flex-shrink: 0;
  align-self: center;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--color-ink-soft);
  font-size: 12px;
  text-decoration: none;
}

.companion__remove:hover {
  color: var(--color-walnut);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Allergies and menu, folded away: most companions need neither.
   A button (not <details>) so it sits in the same place on every phone */
.companion__more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-walnut);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.companion__more-toggle[aria-expanded="true"] {
  color: var(--color-ink-soft);
}

.companion__more-sign {
  display: inline-block;
  width: 1em;
  font-size: 15px;
  text-align: center;
}

.companion__more-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   Step 5 — layout by date (before, during and after the wedding)
   ========================================================= */

/* Anything hidden by JavaScript stays hidden, whatever its display rule */
[hidden] {
  display: none !important;
}

.hero__message {
  max-width: 420px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
}

/* Contact cards need contrast when their section is ivory instead of linen */
.section:not(.section--alt) .contact-card {
  background: var(--color-linen);
}

/* Wedding day: the moment happening now */
.timeline__item.is-now .timeline__media {
  border: 2px solid var(--color-walnut);
}

.timeline__now {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-walnut);
  color: var(--color-white);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}

.rsvp-closed {
  padding: 24px 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-ivory);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}


/* =========================================================
   Step 6 — map
   ========================================================= */

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map__note {
  font-size: 12px;
  color: var(--color-ink-soft);
}

.map.is-loaded {
  gap: 0;
}


/* =========================================================
   Children among companions
   ========================================================= */

/* Plain checkbox with text on the card background */
.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}

.check input {
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1px solid #8E9A82;
  border-radius: 6px;
  background: var(--color-white);
  transition: background-color 0.15s, border-color 0.15s;
}

.check input:checked + .check__box {
  border-color: var(--color-sage-dark);
  background: var(--color-sage-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--color-walnut);
  outline-offset: 2px;
}

.companion__child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-ink-soft);
}


/* =========================================================
   Mobile fixes: nothing may be wider than the screen
   ========================================================= */

/* Fieldsets are as wide as their content by default; let them shrink */
fieldset {
  min-width: 0;
}

/* Inputs have a built-in minimum width; let them fit two per row on small phones */
.field input,
.field select {
  width: 100%;
  min-width: 0;
}

.field-row > .field,
.choice__option {
  min-width: 0;
}

/* Safety net: never allow sideways scrolling */
html,
body {
  overflow-x: clip;
}

.companion__more-fields {
  margin-top: 4px;
}
