/* Shared partial owns joined outer rails; no legacy .footer selectors. */
.f27-footer-2027 {
  --f27-footer-foreground: #F8F8F2; /* Readable body/link text on the fixed brand surface; artwork has its own fills. */
  --footer-line: color-mix(in srgb, var(--f27-footer-foreground, #F8F8F2) 24%, transparent);
  --footer-muted: #c6d5cc;
  padding: 0 24px 24px;
  color: var(--f27-footer-foreground, #F8F8F2);
  font-family: "DM Sans", sans-serif;
}
.f27-footer-2027 *, .f27-footer-2027 *::before, .f27-footer-2027 *::after { box-sizing: border-box; }
.f27-footer-2027 .f27-footer-box { max-width: var(--f27-content-max, 1600px); margin-inline: auto; background: #084834; /* Keep the CTA connection square; leave page paper below the rounded box. */ border-inline: 1px solid var(--f27-line, #DEDED7); border-bottom: 1px solid var(--f27-line, #DEDED7); border-radius: 0 0 8px 8px; }
.f27-footer-2027 .f27-footer-brand {
  position: relative;
  isolation: isolate;
  display: grid;
  /* Nav ratio 1.2:4.75, compensating for the symbol SVG's 10-unit nudge padding. */
  grid-template-columns: minmax(0, 1.4513fr) minmax(0, 4.75fr);
  align-items: center;
  gap: 7.8%;
  padding: clamp(32px, 4.5vw, 72px) 5%;
  overflow: hidden;
  border-bottom: 1px solid var(--footer-line);
}
.f27-footer-2027 .f27-footer-wake { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

.f27-footer-2027 .f27-footer-symbol, .f27-footer-2027 .f27-footer-wordmark { position: relative; z-index: 2; display: block; width: 100%; height: auto; fill: currentColor; }
.f27-footer-2027 .f27-footer-wordmark { pointer-events: none; }
.f27-footer-2027 [data-f27-footer-piece] { pointer-events: none; transform-box: fill-box; transform-origin: center; }
/* User-selected off-white for the large footer brand in both themes. */
.f27-footer-2027 .f27-footer-wordmark,
.f27-footer-2027 [data-f27-footer-piece] { fill: #F1F1EC; }
.f27-footer-2027 .f27-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.25fr; }
.f27-footer-2027 .f27-footer-intro, .f27-footer-2027 .f27-footer-column {
  min-width: 0;
  padding: 24px var(--f27-inner, 16.8px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
}
.f27-footer-2027 .f27-footer-column { border-left: 1px solid var(--footer-line); }
.f27-footer-2027 .f27-footer-label { margin: 0; font: 500 12px/1.4 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--footer-muted); }
.f27-footer-2027 .f27-footer-tagline { margin: 0; max-width: 20ch; font-size: clamp(22px, 2.15vw, 32px); line-height: 1.25; letter-spacing: -.025em; text-wrap: pretty; }
.f27-footer-2027 ul { list-style: none; margin: 0; padding: 0; }
.f27-footer-2027 a { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; color: var(--f27-footer-foreground, #F8F8F2); font-size: 14px; line-height: 1.5; text-decoration: none; transition: color .4s ease; }
/* Same text-only geometry, easing and direction as the opened navigation. */
.f27-footer-2027 [data-f27-underline] { display: inline-block; position: relative; text-decoration: none; }
.f27-footer-2027 [data-f27-underline]::before { content: ""; position: absolute; bottom: -.0625em; left: 0; width: 100%; height: .1em; background: currentColor; transition: transform .735s cubic-bezier(.625,.05,0,1); transform-origin: right; transform: scaleX(0) rotate(.001deg); }
.f27-footer-2027 a:focus-visible [data-f27-underline]::before { transform-origin: left; transform: scaleX(1) rotate(.001deg); }
@media (hover: hover) and (pointer: fine) {
  .f27-footer-2027 a:hover [data-f27-underline]::before { transform-origin: left; transform: scaleX(1) rotate(.001deg); }
}
.f27-footer-2027 a:focus-visible { outline: 2px solid #cee07d; outline-offset: 4px; border-radius: 1px; }
.f27-footer-2027 .f27-footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 16px var(--f27-inner, 16.8px); border-top: 1px solid var(--footer-line); }
.f27-footer-2027 .f27-footer-bottom p { flex: 0 0 auto; margin: 0; color: var(--footer-muted); font-size: 12px; }
.f27-footer-2027 .f27-footer-bottom a { font-size: 12px; }
.f27-footer-2027 .f27-footer-legal { display: flex; flex: 1 0 auto; flex-wrap: nowrap; justify-content: center; gap: 8px 24px; }
.f27-footer-2027 .f27-footer-utilities { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.f27-footer-2027 .f27-footer-theme:empty { display: none; }
@media (max-width: 991px) {
  .f27-footer-2027 .f27-footer-grid { grid-template-columns: 1fr 1fr 1.25fr; }
  .f27-footer-2027 .f27-footer-intro { grid-column: 1 / -1; gap: 28px; border-bottom: 1px solid var(--footer-line); }
  .f27-footer-2027 .f27-footer-tagline { max-width: 35ch; }
  .f27-footer-2027 .f27-footer-column:first-of-type { border-left: 0; }
}
@media (max-width: 767px) {
  .f27-footer-2027 { padding: 0 20px 20px; }
  .f27-footer-2027 .f27-footer-grid { grid-template-columns: 1fr 1fr; }
  .f27-footer-2027 .f27-footer-intro, .f27-footer-2027 .f27-footer-column { padding: 20px var(--f27-inner, 14.4px); gap: 28px; }
  .f27-footer-2027 .f27-footer-contact { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--footer-line); gap: 20px; }
  .f27-footer-2027 a { min-height: 44px; }
  .f27-footer-2027 .f27-footer-brand { padding: 24px 4%; }
  .f27-footer-2027 .f27-footer-legal { gap: 0 16px; }
}
@media (max-width: 600px) {
  .f27-footer-2027 .f27-footer-legal { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; }
  .f27-footer-2027 .f27-footer-utilities { margin-left: 0; justify-content: flex-start; }
}
/* Portrait phones: carry the green through both gutters and the bottom padding. */
@media (max-width: 767px) and (orientation: portrait) {
  .f27-footer-2027 { background: var(--f27-brand, #084834); }
}
@media (prefers-reduced-motion: reduce) {
  .f27-footer-2027 a, .f27-footer-2027 [data-f27-underline]::before { transition: none; }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) { .f27-footer-2027 .f27-footer-wake { display: none; } }
