/* ==========================================================================
   Components
   ========================================================================== */

/* --- Buttons -------------------------------------------------------------
   Pills, as in the app.
     .btn            secondary: black on light, white on dark
     .btn--outline   tertiary: outlined
     .btn--primary   Pōhutukawa Red. The main action only, one per view.   */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn:hover { background: var(--black-raised); }

.on-dark .btn {
  background: var(--white);
  color: var(--black);
}

.on-dark .btn:hover { background: var(--mist-deep); }

.btn--primary,
.on-dark .btn--primary {
  background: var(--pohutukawa);
  color: var(--white);
}

.btn--primary:hover,
.on-dark .btn--primary:hover { background: var(--pohutukawa-pressed); }

.btn--outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.on-dark .btn--outline {
  background: transparent;
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
}

.on-dark .btn--outline:hover {
  background: var(--text-on-dark);
  color: var(--black);
}

/* Text link with a deliberate rule, used for tertiary actions */
.link-rule {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--ngahere);
  color: var(--ngahere);
  font-weight: 700;
  text-decoration: none;
}

.link-rule:hover { border-bottom-color: var(--black); color: var(--black); }

.on-dark .link-rule {
  border-bottom-color: var(--moana);
  color: var(--text-on-dark);
}

/* --- Store badges --------------------------------------------------------
   Official Apple / Google artwork, used unmodified per both stores'
   brand guidelines. Height is normalised; artwork is not altered.         */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: opacity var(--dur) var(--ease);
}

.store-badge:hover { opacity: 0.82; }

/* Google's asset bakes in 16.4% clear space; Apple's does not. Rendering the
   Google badge taller makes the two artworks the same visual size without
   cropping or otherwise modifying either badge. */
.store-badge--apple img {
  height: 52px;
  width: auto;
}

/* 77px renders Google's artwork at the same 52px as Apple's. The asset carries
   16.4% transparent clear space on every side, which would otherwise indent it
   from the Apple badge when the two wrap onto separate lines — the negative
   inline margin pulls the box back so the artwork edges line up. The flex gap
   above still provides the clear space Google's guidelines ask for. */
.store-badge--google img {
  height: 77px;
  width: auto;
  margin-inline: -12px;
}

/* Keeps the pair side by side on a phone. Same 1:1.48 ratio as above. */
@media (max-width: 30rem) {
  .stores { gap: var(--sp-3); }

  .store-badge--apple img { height: 48px; }

  .store-badge--google img {
    height: 71px;
    margin-inline: -11px;
  }
}

.stores-note {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--muted);
}

.on-dark .stores-note { color: var(--moana); }

/* --- Record card ---------------------------------------------------------
   A photograph with its field record attached, lifted from the app's own
   post-detail screen. Soft card, photo first.                             */

.record {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-card);
}

.band-rule .record,
.section:not([class*='band-']) .record { border: var(--hairline) solid var(--rule); }

/* 3:2 matches how the photographs are encoded, so nothing is re-cropped. */
.record__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mist-deep);
}

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

/* Honest marker: nothing on this site should be mistaken for a real
   observation. Sample imagery carries this tag. */
.record__tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--text-on-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.record__meta { padding: var(--sp-3) var(--sp-5); }

.record__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: var(--hairline) solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.record__row:first-child { border-top: 0; }

.record__key { color: var(--muted); }

.record__val {
  color: var(--black);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* --- Header ---------------------------------------------------------------
   Black everywhere, running straight into the page title. On the homepage it
   lies over the hero photograph instead.                                    */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--black);
  color: var(--text-on-dark);
}

body:has(.hero) .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

body:has(.hero) .site-header:has([data-open='true']) { background: var(--black); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand-lockup {
  display: block;
  flex: 0 0 auto;
  padding-block: var(--sp-2);
}

/* The official logo. Moana on dark, Ngahere on light. */
.brand-logo {
  display: block;
  width: 168px;
  height: auto;
}

@media (min-width: 62rem) {
  .brand-logo { width: 196px; }
}

.brand__tag {
  display: block;
  margin-top: var(--sp-3);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ngahere);
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}

.nav__link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
}

.nav__link:hover,
.nav__link[aria-current='page'] { border-bottom-color: var(--white); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  padding: 0 1.125rem;
  background: var(--scrim-30);
  border: 1.5px solid var(--white);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

/* Must come after the base rules above — same specificity, so source order
   decides. */
@media (min-width: 62rem) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  background: var(--black);
  padding-block: var(--sp-4) var(--sp-6);
}

.mobile-nav[data-open='true'] { display: block; }

@media (min-width: 62rem) {
  .mobile-nav { display: none !important; }
}

.mobile-nav__list { list-style: none; }

.mobile-nav__list a {
  display: block;
  padding: var(--sp-4) 0;
  border-bottom: var(--hairline) solid var(--rule-dark);
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: var(--track-sub);
  text-decoration: none;
}

/* --- Hero -----------------------------------------------------------------
   The app's sign-in screen at full width: the record's photograph bleeds
   edge to edge, the title sits low and huge on it, and the record's details
   are pinned over the corner. On a phone the photo fades into black and the
   rest of the record follows beneath it.                                    */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding-bottom: var(--sp-7);
}

.hero .record__media {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 122vw;
  aspect-ratio: auto;
  background: var(--black);
}

.hero .record__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--scrim-70) 0,
    var(--scrim-55) 16%,
    var(--scrim-30) 30%,
    var(--scrim-85) 62%,
    var(--black) 100%
  );
}

.hero__inner {
  display: grid;
  gap: var(--sp-7);
  padding-top: 44vw;
}

.hero .eyebrow,
.hero .stores-note { color: var(--white); }

.hero__title {
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.042em;
}

/* Each sentence gets its own line. The staccato is the point — three short
   commands, not a paragraph that happens to wrap. */
.hero__line {
  display: block;
  font-style: normal;
}

.hero__title em {
  font-style: normal;
  color: var(--moana);
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

@media (min-width: 62rem) {
  .hero__lead { font-size: var(--step-1); }
}

/* The record's details, pinned over the photograph. */
.hero__record {
  position: static;
  overflow: visible;
  background: none;
  border-radius: 0;
}

.hero__record .record__meta {
  position: relative;
  padding: var(--sp-5);
  border-radius: var(--radius-card);
  background: var(--black-raised);
}

.hero__record .record__tag {
  position: static;
  display: inline-block;
  margin-bottom: var(--sp-3);
  background: var(--moana);
  color: var(--black);
}

.hero__record .record__row {
  border-top-color: var(--rule-dark);
}

.hero__record .record__key { color: var(--moana); }

.hero__record .record__val { color: var(--white); }

@media (min-width: 62rem) {
  .hero {
    min-height: min(100vh, 58rem);
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--sp-8);
  }

  .hero .record__media {
    inset: 0;
    height: auto;
  }

  .hero .record__media::after {
    background:
      linear-gradient(to right, var(--scrim-70) 0, var(--scrim-55) 42%, var(--scrim-0) 76%),
      linear-gradient(to bottom, var(--scrim-70) 0, var(--scrim-55) 10%, var(--scrim-0) 26%, var(--scrim-0) 56%, var(--scrim-85) 100%);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: var(--sp-7);
    align-items: end;
    padding-top: calc(var(--header-h) + var(--sp-7));
  }

  .hero__record .record__meta {
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* --- Step numbering ------------------------------------------------------- */

.step__num {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: var(--track-sub);
  color: var(--ngahere);
  margin-bottom: var(--sp-4);
}

.on-dark .step__num { color: var(--moana); }

.step h3 { margin-bottom: var(--sp-3); }

/* --- Endorsements --------------------------------------------------------
   Real, named, attributed. No star graphics, no avatars, no invented
   quotes — the names carry the weight on their own.                       */

.endorsements {
  display: grid;
  gap: var(--sp-6);
  list-style: none;
}

@media (min-width: 56rem) {
  .endorsements { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.endorsement {
  padding-top: var(--sp-5);
  border-top: 2px solid var(--black);
}

.endorsement blockquote {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.endorsement figcaption { margin-top: var(--sp-5); }

.endorsement figcaption b {
  display: block;
  font-weight: 800;
  color: var(--ngahere);
}

.endorsement figcaption span { color: var(--muted); }

/* --- Map band ------------------------------------------------------------- */

.mapband {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--night-sea);
  color: var(--text-on-dark);
  overflow: hidden;
}

/* Aotearoa is a tall country — the band is portrait so the map fills it
   rather than sitting letterboxed in a widescreen box. */
.mapband__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: var(--sp-5);
}

.mapband__figure svg {
  width: 100%;
  height: 100%;
}

/* --- The map --------------------------------------------------------------
   Same colours as the app's map: Ngahere land, Whenua outline, night sea.  */

.map__land path {
  fill: var(--ngahere);
  stroke: var(--whenua);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.map__pin circle { fill: var(--white); }

.map__pin--petition circle { fill: var(--awa); }

.map__pin--petition circle:not(.map__halo) {
  stroke: var(--white);
  stroke-width: 3;
}

.map__halo {
  opacity: 0.18;
  animation: pin-pulse 3.6s var(--ease) infinite;
}

.map__pin--observation .map__halo { animation-delay: 1.2s; }

.map__pin:nth-child(even) .map__halo { animation-delay: 2.1s; }

@keyframes pin-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.1; }
  50% { transform: scale(1); opacity: 0.26; }
}

@media (prefers-reduced-motion: reduce) {
  .map__halo { animation: none; opacity: 0.18; }
}

.mapband__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--moana);
}

.mapband__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.pin-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
}

.pin-swatch--petition {
  background: var(--awa);
  box-shadow: 0 0 0 1.5px var(--white);
}

/* The download block when it stands alone in a section, with no second column. */
.get-solo { max-width: 42rem; }

/* --- Forms ---------------------------------------------------------------- */

.field { display: grid; gap: var(--sp-2); }

.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.on-dark .field label { color: var(--text-on-dark); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: var(--sp-3) var(--sp-4);
  border: var(--hairline) solid var(--mist-deep);
  border-radius: var(--radius-field);
  background: var(--mist);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--step-0);
}

.field textarea {
  min-height: 8rem;
  padding-top: var(--sp-3);
  resize: vertical;
}

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

.on-dark .field input,
.on-dark .field textarea {
  background: var(--field-on-dark);
  border-color: var(--field-line-on-dark);
  color: var(--white);
}

.on-dark .field input:focus,
.on-dark .field textarea:focus { border-color: var(--white); }

.on-dark .field input::placeholder { color: var(--moana); }

.form-row {
  display: grid;
  gap: var(--sp-4);
  align-items: end;
}

@media (min-width: 44rem) {
  .form-row--inline { grid-template-columns: 1fr 1fr auto; }
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: var(--measure);
}

.on-dark .form-note { color: var(--moana); }

/* --- Data list (support / contact details) -------------------------------- */

.datalist {
  list-style: none;
  border-top: var(--hairline) solid var(--rule);
}

.band-mist .datalist,
.band-mist .datalist > li { border-color: var(--mist-deep); }

.datalist > li {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: var(--hairline) solid var(--rule);
}

@media (min-width: 40rem) {
  .datalist > li {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--sp-5);
    align-items: baseline;
  }
}

.datalist dt,
.datalist .dt {
  font-weight: 800;
  letter-spacing: var(--track-sub);
  line-height: 1.35;
}

.datalist dd,
.datalist .dd { margin: 0; max-width: 46rem; }

.datalist .dd--data {
  font-size: var(--step-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.datalist a { color: var(--ngahere); }

/* --- Placeholder callout -------------------------------------------------
   Visible flag for content the client still needs to supply. Removed
   before launch; deliberately loud so it can't ship by accident.          */

.needs-content {
  display: block;
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--pohutukawa);
  border-radius: var(--radius-image);
  background: var(--white);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--black);
}

/* --- Callout -------------------------------------------------------------
   A plain highlighted box for the one thing on a page people must not miss. */

.callout {
  padding: var(--sp-5);
  border-radius: var(--radius-card);
  background: var(--mist);
}

@media (min-width: 40rem) {
  .callout { padding: var(--sp-6); }
}

.callout > * + * { margin-top: var(--sp-3); }

.callout--warn { box-shadow: inset 4px 0 0 var(--pohutukawa); }

/* Small print under a page title: last updated, who it applies to. */
.page-meta {
  margin-top: var(--sp-5);
  font-size: var(--step--1);
  color: var(--moana);
}

/* --- Numbered steps ------------------------------------------------------- */

.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}

.steps-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  min-height: 2.25rem;
}

.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ngahere);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

/* Menu path, e.g. Me → Account and privacy → Delete my account */
.path {
  display: inline;
  font-weight: 700;
  white-space: normal;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  max-width: 46rem;
  border-top: var(--hairline) solid var(--rule);
}

.faq details { border-bottom: var(--hairline) solid var(--rule); }

.faq summary {
  position: relative;
  display: block;
  min-height: 44px;
  padding: var(--sp-5) var(--sp-7) var(--sp-5) 0;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: var(--track-sub);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: var(--sp-2);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ngahere);
}

.faq details[open] summary::after { content: '−'; }

.faq .faq__answer {
  padding-bottom: var(--sp-5);
  max-width: var(--measure);
}

.faq .faq__answer > * + * { margin-top: var(--sp-3); }

.faq .faq__answer ul,
.faq .faq__answer ol { padding-left: var(--sp-5); }

.faq .faq__answer a { color: var(--ngahere); }

/* --- Sticky mobile download bar ------------------------------------------
   The primary action, permanently thumb-reachable. Hidden ≥62rem where the
   header CTA is always visible.                                           */

.sticky-get {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--black);
  color: var(--text-on-dark);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease);
}

.sticky-get[data-visible='true'] { transform: none; }

.sticky-get__text {
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.3;
}

.sticky-get__text .muted { font-weight: 500; }

.sticky-get .btn { flex: 0 0 auto; }

@media (min-width: 62rem) {
  .sticky-get { display: none; }
}

/* Keeps the sticky bar from covering the end of the page on mobile */
@media (max-width: 61.99rem) {
  body { padding-bottom: 76px; }
}

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

.site-footer {
  background: var(--mist);
  color: var(--black);
  padding-block: var(--sp-8) var(--sp-6);
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 52rem) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer__logo { width: 216px; }

.footer__head {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ngahere);
  margin-bottom: var(--sp-3);
}

.footer__list { list-style: none; }

.footer__list li + li { margin-top: var(--sp-1); }

/* Standalone links, not links in running text — they need a real target. */
.footer__bottom a,
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: var(--hairline) solid var(--mist-deep);
  font-size: var(--step--1);
  color: var(--muted);
}

.social {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px;
  color: var(--black);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social a:hover { color: var(--ngahere); }

/* --- Page header (interior pages) ----------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  color: var(--text-on-dark);
  padding-block: var(--sp-7) var(--sp-8);
}

.page-head::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: var(--sp-4);
  right: -2rem;
  width: clamp(11rem, 21vw, 19rem);
  aspect-ratio: 375 / 649;
  background: url('../img/mark-white.svg') center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.page-head h1 {
  max-width: 17ch;
  color: var(--white);
}

.page-head .lead {
  margin-top: var(--sp-5);
  color: var(--text-on-dark);
}

/* --- Share page: /p/<id> -------------------------------------------------
   The full photo beside the record, as in the app's desktop layout.
   Never cropped: the image is contained inside a black stage.              */

.share {
  display: grid;
  background: var(--white);
}

@media (min-width: 62rem) {
  .share {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-h));
  }
}

.share__stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  background: var(--black);
  color: var(--text-on-dark);
}

.share__stage img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
}

@media (min-width: 62rem) {
  .share__stage {
    position: sticky;
    top: 0;
    height: calc(100vh - var(--header-h));
    padding: var(--sp-6);
  }

  .share__stage img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: var(--radius-image);
  }
}

.share__more {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--black-raised);
  color: var(--text-on-dark);
  font-size: var(--step--1);
  font-weight: 600;
}

.share__nophoto {
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--moana);
}

.share__body {
  padding: var(--sp-7) var(--sp-5) var(--sp-8);
  display: grid;
  align-content: start;
  gap: var(--sp-5);
  max-width: 40rem;
}

@media (min-width: 62rem) {
  .share__body { padding: var(--sp-8) var(--sp-7); }
}

.share__issue {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}

.share__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--issue, var(--ngahere));
}

.share__title {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
  line-height: 1.02;
}

.share__place {
  font-size: var(--step-1);
  font-weight: 600;
}

.share__desc {
  max-width: var(--measure);
  overflow-wrap: anywhere;
}

.share__meta { margin-top: var(--sp-2); }

.share__meta > li { padding-block: var(--sp-3); }

@media (min-width: 40rem) {
  .share__meta > li { grid-template-columns: 8rem minmax(0, 1fr); }
}

.share__meta .dd--data { font-size: var(--step-0); }

.share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.share__get {
  display: grid;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: var(--hairline) solid var(--rule);
}

.share__get p { color: var(--muted); }

.share__note {
  font-size: var(--step--1);
  color: var(--muted);
}

.share__note a { color: var(--ngahere); }

/* Not found / unavailable */
.share-missing .page-head .lead { max-width: 38rem; }
