/* Community layer. Every colour and spacing value reads from the tokens in
   cll.css, so a section only has to declare .tone-light / .tone-dark. */

.community-hero {
  position: relative;
  isolation: isolate;
  min-height: min(62vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(64px, 10vw, 140px) clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.community-hero img {
  object-fit: cover;
  /* keeps the three neighbours right of the headline */
  object-position: 72% 30%;
  z-index: -2;
}
.community-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #093b69e6 0%, #093b6999 45%, var(--cll-navy) 100%),
    linear-gradient(90deg, #093b69cc 0%, #093b6933 70%);
}
.community-hero h1 {
  font-family: var(--cll-display);
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  max-width: 16ch;
}
.community-hero h1 span {
  color: var(--cll-accent);
}
.community-hero .lead {
  max-width: 46ch;
  margin-top: 28px;
}
.community-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ---------- section scaffolding ---------- */
.community-section {
  padding-block: clamp(56px, 7vw, 120px);
}
.community-section > h2,
.entry-header h1 {
  font-family: var(--cll-display);
  font-size: clamp(44px, 5.6vw, 96px);
  line-height: 1;
  letter-spacing: -0.018em;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.empty-note {
  font-size: 14px;
  color: var(--cll-soft);
  border-top: 1px solid var(--cll-hairline);
  padding-top: 24px;
}

/* ---------- post feed ---------- */
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--cll-hairline);
  padding-top: 20px;
}
.feed-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: color-mix(in srgb, var(--cll-hairline) 45%, transparent);
}
.feed-thumb img {
  object-fit: cover;
  transition: transform 0.6s var(--cll-ease);
}
.feed-card a:hover .feed-thumb img {
  transform: scale(1.04);
}
.feed-card h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}
.feed-card p {
  font-size: 15px;
  line-height: 1.7;
}
.feed-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cll-soft);
}

/* ---------- single entry ---------- */
.entry {
  padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 128px);
}
/* The cap lives on the h1 so `ch` is measured in the display font; on the
   wrapper it resolved against 16px body text and forced one word per line. */
.entry-header h1 {
  max-width: 20ch;
  text-wrap: balance;
}
.entry-header .entry-meta {
  margin-bottom: 24px;
}
.entry-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cll-soft);
}
.entry-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-block: clamp(40px, 5vw, 72px);
  overflow: hidden;
  background: color-mix(in srgb, var(--cll-hairline) 45%, transparent);
}
.entry-cover img {
  object-fit: cover;
}
.entry-body {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}
.entry-body > * + * {
  margin-top: 1.1em;
}
.entry-body h2,
.entry-body h3 {
  font-family: var(--cll-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  margin-top: 1.6em;
  color: var(--cll-text);
}
.entry-body h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}
.entry-body a {
  color: var(--cll-accent);
  border-bottom: 1px solid currentColor;
}
.entry-body strong {
  color: var(--cll-text);
}
.entry-body ul {
  padding-left: 1.2em;
}
.entry-body li + li {
  margin-top: 0.5em;
}
.entry-gallery {
  display: grid;
  /* auto-fit, not auto-fill: two photos split the row instead of sitting in
     the first two of five reserved columns. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  list-style: none;
  margin: clamp(48px, 5vw, 80px) 0 0;
  padding: 0;
}
.entry-gallery li {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.entry-gallery img {
  object-fit: cover;
}

/* ---------- footer ---------- */
.community-footer {
  padding-block: clamp(56px, 6vw, 96px) 40px;
}
.community-footer h2 {
  font-family: var(--cll-display);
  font-size: clamp(44px, 5.6vw, 96px);
  line-height: 1;
}

/* ---------- pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 2.5vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--cll-hairline);
  padding-top: 20px;
}
.pillar-card:hover .feed-thumb img {
  transform: scale(1.04);
}
.pillar-card h3 {
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.05;
}
.pillar-launch {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cll-accent);
}
.pillar-launch-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cll-accent);
}
.pillar-subhead {
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1;
  margin-top: clamp(56px, 7vw, 104px);
  margin-bottom: 32px;
}
.pillar-focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(24px, 3vw, 48px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillar-focus li {
  border-top: 1px solid var(--cll-hairline);
  padding-top: 20px;
}
.pillar-icon {
  font-size: 28px;
  line-height: 1;
}
.pillar-focus h3 {
  font-size: clamp(22px, 2vw, 30px);
  margin-block: 14px 10px;
}
.pillar-focus p {
  font-size: 15px;
  line-height: 1.7;
}
.pillar-status {
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(24px, 3vw, 40px);
  background: color-mix(in srgb, var(--cll-accent) 9%, transparent);
  border-left: 3px solid var(--cll-accent);
  max-width: 72ch;
}
.pillar-status p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cll-text);
}
.pillar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}

/* ---------- film ---------- */
.film-section {
  padding-block: clamp(56px, 7vw, 120px);
}
.film-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

/* ---------- contact form ---------- */
.contact-grid-cms {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.contact-grid-cms h2 {
  font-size: clamp(48px, 6vw, 104px);
  line-height: 0.98;
}
.contact-grid-cms .lead {
  margin-top: 24px;
  max-width: 34ch;
}
.contact-photo {
  position: relative;
  aspect-ratio: 3 / 2;
  margin-top: 40px;
  overflow: hidden;
}
.contact-photo img {
  object-fit: cover;
}
.contact-form {
  display: grid;
  gap: 20px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  display: grid;
  gap: 8px;
}
.contact-form label > span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cll-soft);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 16px;
  color: var(--cll-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cll-hairline);
  padding: 10px 0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-bottom-color: var(--cll-accent);
  box-shadow: 0 1px 0 var(--cll-accent);
}
.contact-foot {
  align-items: end;
}
.contact-form .cta-button {
  justify-content: space-between;
  border: 0;
  cursor: pointer;
}
.contact-form .cta-button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-error {
  color: #ffb4a8;
  font-size: 14px;
}
.tone-light .contact-error {
  color: #b3261e;
}
.contact-note {
  font-size: 12px;
}
.contact-done {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: var(--cll-text);
  border-top: 1px solid var(--cll-accent);
  padding-top: 24px;
}
@media (max-width: 900px) {
  .contact-grid-cms,
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- PHP port: replacements for next/image and inline styles ---------- */
/* next/image `fill` set these inline; the CSP forbids inline styles now. */
.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-meta--after-thumb {
  margin-top: 16px;
}
.entry-perex {
  max-width: 48ch;
  margin-top: 32px;
}

/* ---------- cookie consent (only rendered when GA is configured) ---------- */
.consent {
  position: fixed;
  z-index: 100;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  background: var(--cll-navy);
  color: var(--cll-white);
  box-shadow: 0 12px 40px rgb(9 59 105 / 0.28);
}
.consent[hidden] {
  display: none;
}
.consent p {
  color: #dbe8ef;
  font-size: 14px;
  line-height: 1.6;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consent button {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid var(--cll-white);
}
.consent-accept {
  background: var(--cll-white);
  color: var(--cll-navy);
}
.consent-deny {
  background: transparent;
  color: var(--cll-white);
}
.link-button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}
.footer-credit {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cll-soft);
}
@media (max-width: 767px) {
  .footer-meta {
    justify-items: start;
    text-align: left;
  }
}
.footer-credit a {
  color: var(--cll-text);
  border-bottom: 1px solid currentColor;
}
