/* Layout and component styles. Every value here is a var(--token) from the
   active theme file (static/themes/<THEME>.css) -- no hex color, no pixel
   size and no font name appears anywhere in this file. Media-query
   breakpoints use em units below because custom properties cannot appear
   in a media query condition. */

/* Self-hosted EB Garamond, weight 400 regular and italic only (D-06,
   PD-1, PD-11). build_static() rewrites each url() to the hashed font
   filename at image-build time; fonts are requested from no origin but
   this one, so CSP font-src stays 'self'. The official EBGaramond12 repo
   build (pinned commit, see the plan's font_sources) keeps the smcp/c2sc
   OpenType features that true small caps (--label-caps) depends on. */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400.bef2aa73867d.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400-italic.b83f7e6b6b82.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

html {
  background: var(--color-bg);
}

/* Footer pinned to the bottom of the window on short pages: the page is a
   column at least one screen tall, and the footer takes up the slack above
   itself (margin-top: auto). Longer pages just scroll as normal. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

h1,
p,
li,
a {
  overflow-wrap: anywhere;
}

h1,
p {
  margin: 0 0 var(--space-md);
}

a {
  color: inherit;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: var(--rule-width-strong) solid var(--color-accent);
  outline-offset: var(--space-xs);
}

/* True small caps, all-black (OD-1): labels and both navs. */
.label {
  font-family: var(--font-label);
  font-size: var(--font-size-label);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-transform);
  font-variant-caps: var(--label-caps, normal);
  color: var(--color-muted);
}

/* Square, solid-ink button; hover inverts to outline (OD-1). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  /* Optical centring for the small-caps label: letter-spacing also follows
     the last letter, so the left padding matches it; small caps sit low in
     the line box, so a little bottom padding lifts them to the middle. */
  padding: 0 var(--space-xl) 0.24em calc(var(--space-xl) + var(--label-tracking));
  background: var(--color-ink);
  color: var(--color-on-accent);
  border: var(--rule-width) solid var(--color-ink);
  border-radius: var(--radius-control);
  font-family: var(--font-label);
  font-size: var(--font-size-label);
  letter-spacing: var(--label-tracking);
  font-variant-caps: all-small-caps;
  text-decoration: none;
}

.btn:hover {
  background: transparent;
  color: var(--color-ink);
}

/* Short centered rule between sections. */
.rule {
  width: var(--rule-short-width);
  height: var(--rule-width);
  background: var(--color-ink);
  border: 0;
  margin: var(--space-xl) auto;
}

/* Inner-page column (OD-5): up to --page-max-width, side padding aligned
   with the header content edges; each direct child caps at the prose
   measure (--content-max-width). width: 100% keeps the column at full
   width up to its max-width -- body is now a flex column, and a flex item
   with auto side margins would otherwise shrink to fit its content. */
main.page {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) 0;
}

main.page > * {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* No trailing space after the last line; the footer brings its own. */
main.page > :last-child,
main.page > :last-child > :last-child {
  margin-bottom: 0;
}

@media (min-width: 56.25em) {
  main.page {
    padding: var(--space-xl) var(--space-2xl) 0;
  }
}

/* Inner-page split layout (Schedule, Travel, FAQ): graduated, not a
   two-column grid (Nick's 2026-11-12 revision). Each heading sits on its
   own full-width line, left-aligned; its text sits below it, indented
   from the left so it reads as the heading's own sub-block. `page
   page-split` on <main> (base.html's main_class block) opts a page in.
   At every width, main.page.page-split > * beats main.page > *'s
   content-width cap (specificity (0,2,1) vs (0,1,1)), so the title, its
   rule and every row span the full page column and line up with the
   header wordmark. .split-head and .split-body are plain stacked blocks
   -- the same indent at every width (a touch narrower on phones), so no
   layout rule needs to change at the breakpoint, only the indent amount.
   Switching the indented text to right-justified later is a one-property
   change: text-align on .split-body. */
main.page.page-split > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.split-body {
  margin-left: 10%;
  text-align: left;
}

.split-body > :last-child {
  margin-bottom: 0;
}

/* Markdown bullet lists (e.g. the airports) hang their bullets just
   outside the indented text edge. */
.split-body > ul:not(.schedule, .hotels) {
  margin-top: 0;
  padding-left: 1.1em;
}

@media (min-width: 56.25em) {
  .split-body {
    margin-left: 15%;
  }
}

main.home {
  margin: 0;
  padding: 0;
}

/* The home page is a centred column, no frame; it is a size container so
   the skyline and names below can be sized from its text-column width. */
.card {
  container-type: inline-size;
  margin: var(--frame-margin);
  padding: var(--space-xl) var(--space-lg) 0;
  text-align: center;
}

@media (min-width: 56.25em) {
  .card {
    max-width: var(--card-max-width);
    margin: var(--frame-margin-wide) auto 0;
    padding: var(--space-2xl) clamp(var(--space-2xl), 6vw, var(--space-3xl)) 0;
  }
}

/* Home nav: centered, wrapping small caps, middot separators (PD-5). */
.home-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.home-nav a {
  text-decoration: none;
  padding: var(--space-sm) var(--space-sm);
}

.home-nav a + a::before {
  content: "·";
  /* inline-block keeps the current-page underline off the separator */
  display: inline-block;
  margin: 0 var(--space-sm) 0 calc(-1 * var(--space-sm));
}

.home-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: var(--space-xs);
  text-decoration-thickness: var(--rule-width);
}

/* Pen-and-ink skyline crest (OD-3). The full width of the card's text
   column at every size. */
.sky {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--space-lg) 0 0;
}

@media (min-width: 56.25em) {
  .sky {
    margin-top: var(--space-xl);
  }
}

/* The couple's names: spaced capitals on one row, 90% of the skyline's
   width at every size. The skyline fills the card's text column (100cqi);
   "NICK & JENNY" renders about 8.36em wide with the gap after the "&". The
   8.36 divisor is specific to EB Garamond 400/italic at the current
   tracking and ampersand size/gap -- re-measure it if any of those change. */
.names {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-display);
  font-size: var(--font-size-heading);
  font-size: calc(90cqi / 8.36);
  white-space: nowrap;
  letter-spacing: var(--names-tracking);
  text-transform: uppercase;
  margin: var(--space-sm) calc(-1 * var(--names-tracking)) 0 0;
}

.names .and,
.wordmark .and {
  letter-spacing: 0;
  text-transform: none;
  font-size: .8em;
  font-style: italic;
  margin-right: .3em;
}

/* Upright, half the names' size, with a floor so it stays legible on
   phones even as the names shrink. */
.married {
  font-size: var(--font-size-married-min);
  font-size: max(var(--font-size-married-min), calc(90cqi / 8.36 / 2));
  margin: .1em 0 0;
}

.copy {
  max-width: var(--page-max-width);
  margin: var(--space-xl) auto 0;
}

/* Even out short centred paragraphs so no word is left alone on a line. */
.copy p {
  text-wrap: balance;
}

.copy > :last-child {
  margin-bottom: 0;
}

@media (min-width: 56.25em) {
  .copy {
    font-size: calc(var(--font-size-body) * 1.1111);
  }
}

.cta {
  max-width: var(--page-max-width);
  margin: var(--space-xl) auto 0;
}

/* Full-width inner-page header (OD-5): name centered over a wrapping
   small-caps nav on phones; name left, nav right with the current page
   underlined, on desktop (PD-4). */
.site-header {
  padding: var(--space-md) var(--space-lg);
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* Inner-page wordmark: the home page's names, small -- spaced capitals
   with the same italic ampersand and gap. */
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--font-size-heading);
  letter-spacing: var(--names-tracking);
  text-transform: uppercase;
  margin-right: calc(-1 * var(--names-tracking));
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* a touch smaller on phones so Home through RSVP fit on one line */
  font-size: calc(var(--font-size-label) * 0.85);
}

.site-nav a {
  text-decoration: none;
  /* tight on phones so all five links fit on one line */
  padding: var(--space-xs);
}

.site-nav a + a::before {
  content: "·";
  /* inline-block keeps the current-page underline off the separator */
  display: inline-block;
  margin: 0 var(--space-xs) 0 calc(-1 * var(--space-xs));
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: var(--space-xs);
  text-decoration-thickness: var(--rule-width);
}

@media (min-width: 56.25em) {
  .site-header {
    padding: 0 max(var(--space-2xl), calc((100% - var(--page-max-width)) / 2 + var(--space-2xl)));
    border-bottom: var(--rule-width) solid var(--color-rule);
  }

  .site-header-inner {
    flex-direction: row;
    justify-content: space-between;
    min-height: calc(var(--tap-target) + var(--space-xl));
  }

  .site-nav {
    gap: var(--space-xl);
    font-size: var(--font-size-label);
  }

  .site-nav a {
    padding: var(--space-md) 0;
    border-bottom: var(--rule-width-strong) solid transparent;
  }

  .site-nav a + a::before {
    content: none;
    margin: 0;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-accent);
    text-decoration: none;
  }
}

.site-footer {
  margin-top: auto;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  text-align: center;
}

/* The same short centred rule the home page uses, opening the footer. */
.site-footer::before {
  content: "";
  display: block;
  width: var(--rule-short-width);
  height: var(--rule-width);
  background: var(--color-ink);
  margin: 0 auto var(--space-xl);
}

.maps-link {
  color: var(--color-accent);
}

.section {
  margin-top: 0;
}

/* Hotel list (Travel page, Hotels section, quick-261112-hhi). */
.hotels,
.hotel {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Cards fill the indented column: one per row on phones, two or three
   across on desktop. */
.hotels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
  gap: var(--space-xl) var(--space-lg);
  margin-top: var(--space-lg);
}

.hotel {
  border: var(--rule-width) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.hotel-name a {
  color: var(--color-ink);
}

.hotel .hotel-book {
  margin: var(--space-md) 0;
}

.hotel .hotel-note {
  margin-bottom: 0;
}

/* Thin rule under each Travel section name. */
.section-rule {
  border: none;
  border-top: var(--rule-width) solid var(--color-rule);
  margin: 0 0 var(--space-md);
}

.hotel-name {
  font-family: var(--font-display);
  font-size: calc(var(--font-size-body) * 1.2);
  margin: 0 0 var(--space-xs);
}

.hotel p {
  margin: 0;
}

.hotel-kind {
  font-style: italic;
}

/* Inner-page subheadings (Travel sections, FAQ questions): a modest gap
   above, close to the text they introduce -- no browser-default margins. */
main.page h2.heading {
  margin: var(--space-lg) 0 var(--space-sm);
}

.heading {
  font-family: var(--font-display);
  font-size: var(--font-size-heading);
  font-weight: var(--font-weight-display);
  line-height: var(--line-height-heading);
}

@media (min-width: 56.25em) {
  h1.heading {
    font-size: clamp(var(--font-size-heading), 3.6vw, var(--font-size-display));
  }
}

.body {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.divider {
  border: none;
  border-top: var(--rule-width) solid var(--color-accent);
  margin: var(--space-sm) 0 var(--space-lg);
}

.contact-link {
  color: var(--color-accent);
  white-space: nowrap;
}

/* FAQ: one list item per question, split into a heading-left/text-right
   row (`.split`); questions a step below the section-heading size. */
.faq {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

/* Schedule: times on the left, events on the right, joined by a soft
   dotted leader so each row spans the column. Both body text. */
.schedule {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
}

.schedule li {
  display: flex;
  align-items: baseline;
  padding: var(--space-xs) 0;
}

.schedule .schedule-time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.schedule .schedule-event {
  text-align: right;
}

/* The leader takes the slack between time and event: a row of small,
   evenly spaced dots just above the baseline. Each dot is centred in its
   tile and `round` stretches the tiles to fill the row exactly, so the
   dots run from the end of the time to the start of the event with the
   same small gap at both ends. */
.schedule .schedule-leader {
  flex: 1 1 auto;
  align-self: stretch;
  margin: 0 var(--space-xs);
  background-image: radial-gradient(circle, var(--color-muted) 0.07em, transparent 0.09em);
  background-size: 0.45em 0.5em;
  background-repeat: round no-repeat;
  background-position: 0 72%;
}

/* A narrower column on desktop so the leaders stay short enough to read
   across: centred in the page column on desktop, but never further left
   than the usual indent. */
.schedule-body {
  max-width: 34em;
}

@media (min-width: 56.25em) {
  .schedule-body {
    margin-left: max(15%, calc((100% - 34em) / 2));
  }
}

/* Headings step inward: the date at the page edge, the location halfway
   to the schedule column, the rooms at the column's edge. */
.schedule-location {
  margin-left: 5%;
}

@media (min-width: 56.25em) {
  .schedule-location {
    margin-left: calc(max(15%, calc((100% - 34em) / 2)) / 2);
  }
}

/* "Location: ..." subheadings, and the parts of the day under each,
   one step smaller; no rules. */
.schedule-location {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: calc(var(--font-size-body) * 1.3);
  margin-top: 0;
  margin-bottom: 0;
}

.schedule-body + .schedule-location {
  margin-top: var(--space-xl);
}

.schedule-part {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: calc(var(--font-size-body) * 1.1);
  font-style: italic;
  margin: var(--space-md) 0 0;
}


.faq > li > :last-child {
  margin-bottom: 0;
}

main.page .faq h2.heading {
  font-size: calc(var(--font-size-body) * 1.2);
  margin: var(--space-lg) 0 var(--space-xs);
}

.faq > li:first-child h2.heading {
  margin-top: 0;
}

.hero,
.carousel {
  margin: 0 0 var(--space-xl);
}

.hero img,
.carousel img {
  display: block;
  max-width: 100%;
  height: auto;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: var(--carousel-aspect);
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .carousel-track {
    scroll-behavior: smooth;
  }
}

.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-target);
  min-height: var(--tap-target);
  gap: var(--space-xs);
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
}

.carousel-button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}

/* RSVP guest-card form (sketch 002 A, foliage-ink). Accepts/Declines as a
   segmented control, meal radio cards, the dinner/dietary/plus-one-name
   reveal behind an @supports(:has()) guard, inline + summary errors, and
   the saved screen's tick + summary list. Square corners, red only for
   errors (D-18/sketch findings). */

.rsvp-head {
  text-align: left;
}

@media (min-width: 56.25em) {
  .rsvp-head h1.heading {
    font-size: clamp(var(--font-size-greeting), 3.6vw, var(--font-size-greeting-wide-max));
  }
}

.notice {
  margin: 0 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-left: var(--notice-bar-width) solid var(--color-accent);
  background: var(--color-panel);
}

.notice-alert {
  border-left-color: var(--color-destructive);
}

.err-summary {
  margin: 0 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-width) solid var(--color-destructive);
  color: var(--color-destructive);
}

.err-summary a {
  color: inherit;
}

.a-card {
  margin: 0 0 var(--space-md);
  padding: var(--space-md);
  border: var(--rule-width) solid var(--color-rule);
}

.a-card > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--font-size-heading);
}

.a-card > legend + * {
  clear: both;
}

.a-ev + .a-ev {
  margin-top: var(--space-md);
}

.a-ev-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* Accepts / Declines: two real radio inputs styled as a segmented
   control. Works with no JavaScript (SITE-02). */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--rule-width) solid var(--color-rule);
  overflow: hidden;
  background: var(--color-bg);
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg label {
  min-height: var(--tap-target);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-size: var(--font-size-small);
}

.seg label + input + label {
  border-left: var(--rule-width) solid var(--color-rule);
}

.seg input:focus-visible + label {
  outline: var(--rule-width-strong) solid var(--color-accent);
  outline-offset: calc(-1 * var(--space-xs));
}

.seg .yes:checked + label {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.seg .no:checked + label {
  background: color-mix(in srgb, var(--color-muted) 16%, var(--color-bg));
}

.seg label .ic {
  width: 1em;
  display: inline-block;
  opacity: 0;
}

.seg input:checked + label .ic {
  opacity: 1;
}

/* Meal choice: radio cards. The ring is drawn by ::before; the checked
   ring is thicker (D-02, D-06). */
.meals {
  display: grid;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  border: 0;
}

.meals legend {
  padding: 0;
  margin-bottom: var(--space-xs);
}

.meal {
  position: relative;
}

.meal input {
  position: absolute;
  opacity: 0;
}

.meal label {
  display: grid;
  grid-template-columns: var(--radio-size) 1fr;
  gap: var(--space-sm);
  align-items: start;
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  min-height: var(--tap-target);
  border: var(--rule-width) solid var(--color-rule);
}

.meal label::before {
  content: "";
  width: var(--radio-size);
  height: var(--radio-size);
  margin-top: var(--space-xs);
  border-radius: 50%;
  border: var(--radio-ring-width) solid var(--color-muted);
  box-sizing: border-box;
}

.meal input:checked + label {
  border-color: var(--color-accent);
}

.meal input:checked + label::before {
  border: var(--radio-ring-checked-width) solid var(--color-accent);
}

.meal input:focus-visible + label {
  outline: var(--rule-width-strong) solid var(--color-accent);
  outline-offset: var(--space-xs);
}

.meal small {
  display: block;
  color: var(--color-muted);
  font-size: var(--font-size-small);
}

.tag {
  font-family: var(--font-body);
  font-size: var(--font-size-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: var(--rule-width) solid currentColor;
  padding: var(--rule-width) var(--space-xs);
  margin-left: var(--space-xs);
}

.field {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.field input,
.field textarea {
  font: inherit;
  font-size: var(--font-size-body);
  color: var(--color-ink);
  width: 100%;
  min-height: var(--tap-target);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: var(--rule-width) solid var(--color-rule);
}

.field textarea {
  min-height: calc(var(--tap-target) * 2);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.err {
  color: var(--color-destructive);
  font-size: var(--font-size-small);
  margin: var(--space-xs) 0 0;
}

.err:empty {
  display: none;
}

.has-err .seg,
.has-err .meal label,
.has-err input,
.has-err textarea {
  border-color: var(--color-destructive);
}

.closing {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
}

.submit-row {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
}

.fine {
  font-size: var(--font-size-small);
  font-style: italic;
  color: var(--color-muted);
  text-align: center;
  margin: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: 0 var(--space-xl);
  background: transparent;
  color: var(--color-ink);
  border: var(--rule-width) solid var(--color-ink);
  border-radius: var(--radius-control);
  font-family: var(--font-label);
  font-size: var(--font-size-label);
  letter-spacing: var(--label-tracking);
  font-variant-caps: all-small-caps;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-on-accent);
}

/* Reveal: dinner, dietary and plus-one-name fields appear only after
   "Accepts" for the matching event -- CSS only, no JS. Guarded with
   @supports so a browser without :has() shows every field instead of
   hiding them forever (D-02 CSS Patterns). */
@supports selector(:has(*)) {
  .meal-reveal,
  .card-reveal {
    display: none;
  }

  .a-ev:has(.yes:checked) .meal-reveal {
    display: block;
  }

  .a-card:has(.yes:checked) .card-reveal {
    display: block;
  }
}

.done {
  text-align: center;
  padding: var(--space-md) 0 var(--space-lg);
}

.tick {
  width: calc(var(--tap-target) + var(--space-md));
  height: calc(var(--tap-target) + var(--space-md));
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--font-size-heading);
}

.summary {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-width) solid var(--color-rule);
}

.summary > li {
  padding: var(--space-md) 0;
  border-bottom: var(--rule-width) solid var(--color-rule);
}

.summary ul {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  font-size: var(--font-size-small);
}

@media (min-width: 56.25em) {
  .a-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: var(--space-lg);
    align-items: start;
  }

  .a-card {
    margin: 0;
  }

  .closing-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
  }

  .submit-row {
    max-width: var(--submit-max-width);
    margin-left: auto;
  }
}
