:root {
  --ogc-ink: #4d514b;
  --ogc-ink-deep: #292c29;
  --ogc-orange: #e97f0e;
  --ogc-orange-dark: #934300;
  --ogc-paper: #f7f6f2;
  --ogc-grey: #dbdbd8;
}

.map-coverage-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-left: 0.25rem solid var(--ogc-orange);
  background: rgba(219, 219, 216, 0.78);
  color: var(--ogc-ink);
  font-size: 0.82rem;
}

.map-coverage-note strong {
  color: var(--ogc-ink-deep);
}

/*
 * Keep the upgraded header recognisably Off Grid Camp and make account
 * actions obvious.  Repeat the complete two-layer background declaration
 * here: replacing only background-image made the browser pair the photo with
 * the first layer's default size/repeat values from legacy-theme.css.  At
 * viewports wider than the 1,607px source image that produced a visible seam.
 */
body:not(.home-page) .site-header {
  background:
    linear-gradient(rgb(30 30 30 / 8%), rgb(30 30 30 / 8%)),
    url("/images/legacy-brand/page-banner.png") center 46% / cover no-repeat;
}

/* Centre the controls against the internal-page logo at every breakpoint. */
body:not(.home-page) .nav-toggle,
body:not(.home-page) .header-account-action {
  top: 50%;
  transform: translateY(-50%);
}

.header-account-action {
  width: 5.5rem;
  color: #fff;
}

.header-account-action {
  background: var(--ogc-orange);
  color: #171917;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.header-account-action.is-authenticated {
  background: rgba(41, 44, 41, 0.96);
  color: #fff;
}

.header-account-action span {
  display: inline !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.header-user-menu {
  position: static;
}

.header-account-popover {
  position: absolute;
  right: 0;
  top: 2.375rem;
  z-index: 2200;
  width: 10.5rem;
  display: grid;
  visibility: hidden;
  opacity: 0;
  background: var(--ogc-ink-deep);
  box-shadow: 0 0.65rem 1.8rem rgba(23, 25, 23, 0.28);
  transform: translateY(-0.35rem);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
  pointer-events: none;
}

body:not(.home-page) .header-account-popover {
  top: calc(50% + 1.1875rem);
}

/* Long public directories stay quick to scan on phones without hiding facts. */
@media (max-width: 43.99rem) {
  .explore-page .results-list .site-grid {
    gap: 0.75rem;
  }

  .explore-page .results-list .site-card {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    min-height: 10.25rem;
  }

  .explore-page .results-list .site-card__media {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .explore-page .results-list .site-card__body {
    min-width: 0;
    padding: 0.72rem 0.72rem 0.78rem;
  }

  .explore-page .results-list .site-card h3 {
    margin-block: 0.25rem 0.3rem;
    font-size: 1.12rem;
    line-height: 1.15;
  }

  .explore-page .results-list .site-card__body > p {
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .explore-page .results-list .site-card__facts {
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.45rem;
    max-height: 2.7rem;
  }

  .explore-page .results-list .site-card__facts li {
    font-size: 0.64rem;
  }

  .explore-page .results-list .site-card__footer {
    align-items: center;
    gap: 0.35rem;
  }

  .explore-page .results-list .site-card__price small {
    display: none;
  }

  .explore-page .results-list .site-card__badges {
    top: 0.4rem;
    left: 0.4rem;
  }

  .explore-page .results-list .favourite-form--card {
    top: 0.35rem;
    right: 0.35rem;
  }

  .host-apply-page .check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-apply-page .choice-card {
    min-height: 3rem;
    gap: 0.45rem;
    padding: 0.55rem;
    font-size: 0.78rem;
  }

  .host-apply-page .choice-card small {
    font-size: 0.62rem;
  }

  .account-page .settings-nav,
  .profile-edit-page .settings-nav {
    box-shadow:
      inset -1.8rem 0 1.4rem -1.4rem rgba(45, 48, 46, 0.45),
      var(--shadow-sm);
  }
}

.header-user-menu:hover .header-account-popover,
.header-user-menu:focus-within .header-account-popover,
.header-user-menu.is-open .header-account-popover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-account-popover a,
.header-account-popover button {
  display: flex;
  width: 100%;
  min-height: 2.65rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.header-account-popover a.is-dashboard {
  background: var(--ogc-orange);
  color: #171917;
}

.header-account-popover a:hover,
.header-account-popover a:focus-visible,
.header-account-popover button:hover,
.header-account-popover button:focus-visible {
  background: #fff;
  color: var(--ogc-ink-deep);
  outline: none;
}

.header-account-popover form {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.header-account-popover svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

@media (min-width: 64rem) {
  .header-account-action {
    width: 7rem;
  }

  .header-account-popover {
    top: 4.325rem;
    width: 11.5rem;
  }

  body:not(.home-page) .header-account-popover {
    top: calc(50% + 1.6875rem);
  }
}

/* Keep the original aerial photograph visible behind high-contrast white/orange copy. */
.legacy-home-hero__shade {
  display: none;
}

.legacy-home-hero {
  background-position: top center;
}

.legacy-home-hero h1,
.legacy-home-hero__subline {
  color: var(--ogc-ink);
  text-shadow: none;
}

.legacy-home-hero h1 {
  max-width: 36.5625rem;
  margin: 0 auto;
  font-size: 1.75rem;
  line-height: 1.2;
}

.legacy-home-hero__subline {
  margin: 0 0 0.9375rem;
  padding-top: 0.9375rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.legacy-hero-search > label {
  color: var(--ogc-ink);
  text-shadow: none;
}

.legacy-home-hero h1 span {
  color: var(--ogc-orange);
}

@media (max-width: 63.9375rem) {
  .legacy-home-hero__content {
    width: calc(100% - 1.25rem);
    position: absolute;
    top: 10rem;
    right: 0;
    left: 0;
    margin-inline: auto;
    padding: 0;
  }
}

/* Merch uses the bold photographic strip from the original site. */
.legacy-merch-banner {
  min-height: 22rem;
  display: flex;
  align-items: center;
  padding: clamp(3.75rem, 7vw, 6rem) 0;
  background:
    linear-gradient(90deg, rgba(22, 24, 22, 0.96) 0%, rgba(22, 24, 22, 0.88) 36%, rgba(22, 24, 22, 0.12) 75%),
    url("https://www.offgridcamp.co.uk/wp-content/uploads/2025/08/1-scaled.png") 75% center / cover no-repeat;
  color: #fff;
}

.legacy-merch-banner__inner {
  display: block;
}

.legacy-merch-banner__copy,
.legacy-merch-banner__inner > div:first-child {
  max-width: 24.375rem;
}

.legacy-merch-banner .section-kicker {
  color: #ff9b2c;
}

.legacy-merch-banner h2,
.legacy-merch-banner p {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}

.legacy-merch-banner h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.92;
}

.legacy-merch-products {
  display: none;
}

@media (max-width: 42rem) {
  .legacy-merch-banner {
    min-height: 25rem;
    background:
      linear-gradient(90deg, rgba(22, 24, 22, 0.96), rgba(22, 24, 22, 0.62)),
      url("https://www.offgridcamp.co.uk/wp-content/uploads/2025/08/1-scaled.png") 66% center / cover no-repeat;
  }
}

/* Press logos, rather than typographic stand-ins. */
.legacy-press-strip,
.legacy-press {
  background: #e5e5e5;
}

.legacy-press h2 {
  color: #626660;
}

.legacy-press-strip__links,
.legacy-press__links {
  width: min(48rem, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}

.legacy-press-strip__links a,
.legacy-press__links a {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.legacy-press-strip__links img,
.legacy-press__links img {
  display: block;
  width: min(100%, 17rem);
  max-height: 5.5rem;
  object-fit: contain;
  filter: grayscale(1);
}

@media (max-width: 34rem) {
  .legacy-press-strip__links,
  .legacy-press__links {
    gap: 1.25rem;
  }

  .legacy-press-strip__links a,
  .legacy-press__links a {
    min-height: 3.75rem;
  }

  .legacy-press-strip__links img,
  .legacy-press__links img {
    max-height: 3.75rem;
  }
}

/* Original campsite identity: centred name ribbon and orange county marker. */
.site-detail-page .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.site-detail-page .detail-hero {
  min-height: calc(100svh - 4.25rem);
  overflow: visible;
}

.site-detail-page .detail-hero__shade {
  background: linear-gradient(180deg, transparent 70%, rgba(26, 28, 26, 0.08) 100%);
}

.site-detail-page .detail-hero__content {
  min-height: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  padding-block: 1.1rem 3.8rem;
}

.site-detail-page .detail-hero .breadcrumbs {
  align-self: start;
  width: fit-content;
  margin: 0;
  padding: 0.42rem 0.62rem;
  background: rgba(41, 42, 41, 0.72);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.detail-hero__identity {
  width: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.detail-hero__nameplate {
  width: fit-content;
  max-width: min(92%, 70rem);
  min-height: 3.25rem;
  display: grid;
  place-items: center;
  padding: 0.45rem 2.9rem;
  background: #292a29;
  clip-path: polygon(1.6rem 0, calc(100% - 1.6rem) 0, 100% 50%, calc(100% - 1.6rem) 100%, 1.6rem 100%, 0 50%);
  filter: drop-shadow(0 0.2rem 0.45rem rgba(0, 0, 0, 0.28));
}

.site-detail-page .detail-hero__nameplate h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 2.4vw, 2.15rem);
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  text-shadow: none;
}

.site-detail-page .detail-hero .detail-meta {
  justify-content: center;
  padding: 0.35rem 0.65rem;
  background: rgba(41, 42, 41, 0.78);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.detail-hero__place-marker {
  position: absolute;
  z-index: 600;
  left: 50%;
  bottom: 0;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, 50%);
}

.detail-hero__place-label {
  min-height: 3.25rem;
  max-width: min(90vw, 32rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 2.4rem;
  overflow: hidden;
  background: var(--ogc-orange);
  clip-path: polygon(1.35rem 0, calc(100% - 1.35rem) 0, 100% 50%, calc(100% - 1.35rem) 100%, 1.35rem 100%, 0 50%);
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero__place-label svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-hero__place-chevron {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  margin-top: 0.45rem;
  border-right: 0.22rem solid var(--ogc-orange);
  border-bottom: 0.22rem solid var(--ogc-orange);
  transform: rotate(45deg);
}

.detail-hero__place-marker:hover .detail-hero__place-label,
.detail-hero__place-marker:focus-visible .detail-hero__place-label {
  background: var(--ogc-orange-dark);
}

#camp-details {
  scroll-margin-top: 2rem;
}

/* Detailed camp facts: clearer grouping and no floating action bar mid-page. */
.detail-action-bar {
  top: 0;
}

.site-detail-page .detail-action-bar__inner {
  padding-top: 2.7rem;
}

.site-detail-page .detail-layout {
  padding-top: 0;
}

.site-detail-page .detail-main > .detail-section:first-child {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background: #dfdbd7;
  box-shadow: 0 0 0 100vmax #dfdbd7;
  clip-path: inset(0 -100vmax);
}

.fact-grid {
  overflow: visible;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.fact-grid > * {
  min-width: 0;
  min-height: 6.15rem;
  padding: 0.8rem 0.85rem;
  border: 0 !important;
  border-radius: 0.15rem;
  background: rgba(225, 225, 221, 0.68);
}

.fact-grid dt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
  color: #535750;
  font-size: 0.64rem;
  line-height: 1.2;
}

.fact-grid dd {
  margin: 0;
  color: var(--ogc-ink-deep);
  font-size: clamp(0.86rem, 1.3vw, 0.96rem);
  font-weight: 800;
  line-height: 1.35;
}

.fact-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ogc-orange-dark);
  box-shadow: 0 0.15rem 0.5rem rgba(41, 44, 41, 0.1);
}

.fact-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact-icon svg [data-fill] {
  fill: currentColor;
  stroke: none;
}

/* Detail facts use spacing and pictograms, not table cells. */
.site-detail-page .fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1rem;
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.site-detail-page .fact-grid > div {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "icon value";
  column-gap: 0.7rem;
  row-gap: 0.4rem;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
}

.site-detail-page .fact-grid > div:nth-child(1) { order: 1; }
.site-detail-page .fact-grid > div:nth-child(2) { order: 2; }
.site-detail-page .fact-grid > div:nth-child(3) { order: 5; }
.site-detail-page .fact-grid > div:nth-child(4) { order: 3; }
.site-detail-page .fact-grid > div:nth-child(5) { order: 4; }
.site-detail-page .fact-grid > div:nth-child(6) { order: 6; }
.site-detail-page .fact-grid > div:nth-child(7) { order: 7; }
.site-detail-page .fact-grid > div:nth-child(8) { order: 8; }
.site-detail-page .fact-grid > div:nth-child(9) { order: 9; }
.site-detail-page .fact-grid > div:nth-child(10) { order: 10; }
.site-detail-page .fact-grid > div:nth-child(11) { order: 11; }

.site-detail-page .fact-grid dt {
  display: contents;
}

.site-detail-page .fact-grid dt > span:last-child {
  grid-area: label;
  color: #454943;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.site-detail-page .fact-grid .fact-icon {
  grid-area: icon;
  width: 3rem;
  height: 3rem;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: var(--ogc-orange);
  color: #242724;
  box-shadow: 0 0.22rem 0.65rem rgba(41, 44, 41, 0.2);
}

.site-detail-page .fact-grid dd {
  grid-area: value;
  align-self: center;
  margin: 0;
  color: #343734;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.2;
}

.site-detail-page .fact-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2;
}

.site-detail-page .detail-actions .button {
  border-color: var(--ogc-orange);
  background: var(--ogc-orange);
  color: #171917;
}

.site-detail-page .detail-actions .button--saved,
.site-detail-page .detail-actions .button[aria-pressed="true"] {
  border-color: #a94f00;
  background: #b95a00;
  color: #fff;
}

.site-detail-page .detail-actions .button:hover,
.site-detail-page .detail-actions .button:focus-visible {
  border-color: var(--ogc-ink-deep);
  background: var(--ogc-ink-deep);
  color: #fff;
}

.site-access-summary {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-left: 0.3rem solid var(--ogc-orange);
  background: #ecece9;
  color: var(--ogc-ink-deep);
}

.site-access-summary h3,
.site-access-summary p {
  margin: 0;
}

.site-access-summary p + p {
  margin-top: 0.55rem;
}

.setup-tags,
.camp-setup-group p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.setup-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #c5c6c2;
  border-radius: 99rem;
  background: #fff;
  color: var(--ogc-ink-deep);
  font-weight: 700;
}

.setup-tag > span:first-child {
  color: var(--ogc-orange-dark);
}

.camp-setup-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.camp-setup-options li {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: #454943;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.camp-setup-options__image {
  width: 100%;
  height: 4.6rem;
  position: relative;
  display: grid;
  place-items: end center;
}

.camp-setup-options img {
  width: auto;
  max-width: 100%;
  height: 4rem;
  object-fit: contain;
}

.camp-setup-options .is-disabled img {
  opacity: 0.2;
  filter: grayscale(1);
}

.camp-setup-options__check {
  width: 1.25rem;
  height: 1.25rem;
  position: absolute;
  right: 0.1rem;
  bottom: -0.15rem;
  display: grid;
  place-items: center;
  color: var(--ogc-orange-dark);
  background: #fff;
  border: 1px solid var(--ogc-orange);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.facility-tags {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(69, 73, 67, 0.22);
}

.scout-verification {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ogc-orange);
  color: #fff;
}

.scout-verification > span {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border: 0.22rem solid #fff;
  border-radius: 50%;
  font-size: 2rem;
}

.scout-verification strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
}

.scout-verification small {
  display: block;
}

.scout-verification h3,
.scout-verification p {
  margin: 0;
  color: inherit;
}

.scout-verification p {
  margin-top: 0.4rem;
}

@media (min-width: 48rem) {
  .site-detail-page .fact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booking-card {
    top: 1rem;
  }

  .site-detail-page .fact-grid .fact-icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .site-detail-page .fact-grid > div {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .camp-setup-options {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .site-detail-page .fact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 47.99rem) {
  .site-detail-page .detail-hero {
    min-height: calc(100svh - 4.25rem);
  }

  .site-detail-page .detail-hero__content {
    padding-block: 0.8rem 3.3rem;
  }

  .detail-hero__nameplate {
    max-width: 100%;
    min-height: 3.25rem;
    padding: 0.5rem 2.35rem;
    clip-path: polygon(1.15rem 0, calc(100% - 1.15rem) 0, 100% 50%, calc(100% - 1.15rem) 100%, 1.15rem 100%, 0 50%);
  }

  .site-detail-page .detail-hero__nameplate h1 {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .site-detail-page .detail-hero .detail-meta {
    max-width: 92%;
    gap: 0.3rem 0.6rem;
  }

  .detail-hero__place-label {
    min-height: 3rem;
    padding-inline: 1.8rem;
  }

  .detail-action-bar {
    position: static;
  }

  .detail-action-bar__inner {
    min-height: 3.6rem;
  }
}

@media (max-width: 22rem) {
  .site-detail-page .fact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer matches the original torn-paper layout with readable charcoal links. */
.site-footer {
  padding-top: clamp(5rem, 7.5vw, 7.5rem);
  /*
   * Keep the transparent area above the original footer SVG visible.
   * A solid background colour here filled that area and flattened its
   * torn-paper edge into a straight horizontal line.
   */
  background-color: transparent;
  color: var(--ogc-ink);
}

.footer-inner {
  display: block;
}

.footer-original-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.footer-original-grid h2 {
  margin: 0 0 1rem;
  color: var(--ogc-ink-deep);
  font-size: 1.3rem;
}

.footer-links a {
  font-size: 0.84rem;
}

.footer-email,
.footer-account-actions {
  font-size: 0.9rem;
}

.footer-social-links,
.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-social-links a,
.footer-social a {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ogc-orange);
  color: #fff;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--ogc-ink-deep);
  color: #fff;
}

.footer-social-links svg,
.footer-social svg {
  width: 1.2rem;
  height: 1.2rem;
}

.footer-social svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social svg path {
  fill: currentColor;
  stroke: none;
}

.footer-social svg circle:last-child {
  fill: currentColor;
  stroke: none;
}

.footer-email {
  color: var(--ogc-ink-deep);
}

.footer-email a,
.footer-original-grid a,
.footer-base a,
.footer-cookie-settings,
.footer-base [data-cookie-settings] {
  color: var(--ogc-orange-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.footer-original-grid a:hover,
.footer-original-grid a:focus-visible,
.footer-base a:hover,
.footer-base a:focus-visible,
.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible,
.footer-base [data-cookie-settings]:hover,
.footer-base [data-cookie-settings]:focus-visible {
  color: var(--ogc-ink-deep);
}

.footer-original-links,
.footer-account-links,
.footer-links,
.footer-account-actions {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-account-links,
.footer-account-actions {
  margin-top: 1rem;
}

.footer-account-links form,
.footer-account-links button,
.footer-account-actions form,
.footer-account-actions button {
  margin: 0;
}

.footer-account-links button,
.footer-account-actions button,
.footer-cookie-settings,
.footer-base [data-cookie-settings] {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer-newsletter-form,
.footer-mailing form {
  display: flex;
  width: 100%;
  max-width: 31rem;
}

.footer-newsletter-form input[type="email"],
.footer-mailing input[type="email"] {
  min-width: 0;
  flex: 1;
  border: 1px solid #a6a7a3;
  background: #fff;
  color: var(--ogc-ink-deep);
}

.footer-newsletter-form button,
.footer-mailing form button {
  border-color: var(--ogc-orange);
  background: var(--ogc-orange);
  color: #171917;
}

.footer-newsletter-note,
.footer-mailing > p {
  margin-top: 0.65rem;
  color: #4b4f49;
  font-size: 0.84rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #aaa9a5;
  color: #3f433e;
  font-size: 0.8rem;
}

.footer-base p {
  margin: 0;
}

@media (min-width: 44rem) {
  .footer-original-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-original-newsletter {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .footer-original-grid {
    grid-template-columns: 0.9fr 1fr 1.35fr;
    gap: 3.5rem;
  }

  .footer-original-newsletter {
    grid-column: auto;
  }
}

/* Versioned, reversible cookie choices. */
.cookie-banner {
  position: fixed;
  right: 0.625rem;
  bottom: 0.625rem;
  z-index: 5000;
  width: min(44.5rem, calc(100vw - 1.25rem));
  padding: 0.55rem 0.65rem;
  border-top: 0.22rem solid var(--ogc-orange);
  background: #3d3d3d;
  color: #fff;
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.34);
}

.cookie-banner strong {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cookie-banner h2,
.cookie-banner p {
  margin: 0;
  color: #fff;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.cookie-banner a {
  color: #ffb25f;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.cookie-banner .cookie-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cookie-actions button {
  flex: 1 1 8rem;
  min-height: 2.75rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-banner .cookie-actions button {
  min-height: 2rem;
  padding: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.cookie-actions [data-cookie-accept],
.cookie-actions [type="submit"] {
  border-color: var(--ogc-orange);
  background: var(--ogc-orange);
  color: #171917;
}

.cookie-actions button:hover,
.cookie-actions button:focus-visible {
  outline: 0.18rem solid #fff;
  outline-offset: 0.12rem;
}

.cookie-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: #f7f6f2;
  color: var(--ogc-ink-deep);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.5);
}

.cookie-dialog::backdrop {
  background: rgba(23, 25, 23, 0.72);
}

.cookie-dialog__inner {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.cookie-dialog__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.cookie-dialog__header h2 {
  margin: 0;
}

.cookie-dialog__close {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 1px solid #aaa;
  background: #fff;
  color: var(--ogc-ink-deep);
  cursor: pointer;
  font-size: 1.4rem;
}

.cookie-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #cdceca;
}

.cookie-choice:first-of-type {
  margin-top: 1rem;
}

.cookie-choice strong,
.cookie-choice p {
  margin: 0;
}

.cookie-choice p {
  grid-column: 1 / -1;
  color: #555a53;
}

.cookie-essential-state {
  color: #486238;
  font-weight: 800;
}

.cookie-choice input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--ogc-orange-dark);
}

.inline-link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ogc-orange-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: 0.75rem;
  border: 1px solid #c8c9c5;
  color: var(--ogc-ink-deep);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 35rem) {
  .cookie-banner {
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 0.6rem;
  }

  .cookie-banner .cookie-actions {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .cookie-banner .cookie-actions button {
    min-height: 2.25rem;
  }
}
