/* The Beta form — includes/community-form.php + assets/js/community-form.js (ledger row 43).
 * A field notebook, not a WP form: one quiet column of questions in reading order, the title and the two
 * things a poster should know held beside it on wide screens. Fields are the site kit (.omtb-field, .omtb-ctl--chip
 * from site-chrome.css; focus rims from site-system.css / site-rim.js); the submit is the MTB Flow button.
 * Values: docs/ops/DESIGN.md only — Ink #0A0A0A, Bone #EDE7D8, text #FFFFFF, Ember text #FF7D11, Alpine Teal #34978F,
 * Trail Gold #E0AA37, Signal Red Light #D66552; radius --r-ctl 8px / --r-panel 14px; photographs 0. */

.cf-page {
  --cf-fg: var(--sf-fg, #FFFFFF);
  --cf-fg2: var(--sf-fg2, rgba(255, 255, 255, .72));
  --cf-fg3: var(--sf-fg3, rgba(255, 255, 255, .5));
  --cf-hair: var(--sf-hair, rgba(237, 231, 216, .12));
  --cf-hair-hi: var(--sf-hair-hi, rgba(237, 231, 216, .26));
  --cf-ember: #FF7D11;
  --cf-gold: #E0AA37;
  --cf-red: #D66552;
  --cf-teal: #34978F;
  --cf-ease: var(--sf-ease, cubic-bezier(.16, 1, .3, 1));
  --cf-body: "Instrument Sans", system-ui, sans-serif;
  --cf-disp: "Hanken Grotesk", system-ui, sans-serif;
  --cf-h2: "Manrope", "Hanken Grotesk", system-ui, sans-serif;
  position: relative; isolation: isolate; box-sizing: border-box;
  max-width: 1480px; margin: 0 auto; padding: clamp(40px, 8vh, 120px) 16px clamp(72px, 12vh, 160px);
  color: var(--cf-fg); font-family: var(--cf-body);
}
@media (min-width: 700px) { .cf-page { padding-inline: clamp(24px, 4vw, 64px); } }
@media (min-width: 1600px) { .cf-page { padding-inline: 0; } }
/* a soft field behind the column: a warm bloom low-left, a cool one high-right, both heavily blurred (no hard glow) */
.cf-page__field {
  position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none; overflow: hidden;
  background:
    radial-gradient(42% 38% at 12% 78%, rgba(255, 91, 4, .07), rgba(255, 91, 4, 0) 70%),
    radial-gradient(40% 34% at 88% 12%, rgba(52, 151, 143, .06), rgba(52, 151, 143, 0) 70%);
}
.cf *, .cf *::before, .cf *::after { box-sizing: border-box; }

/* ── layout: one column; at ≥1100 the head holds still on the left ── */
.cf { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(36px, 5vh, 56px); }
@media (min-width: 1100px) {
  .cf:not(.cf--gate) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 140px); align-items: start; }
  .cf:not(.cf--gate) > .cf-head { position: sticky; top: calc(var(--omtb-header-h, 60px) + 48px); }
  .cf:not(.cf--gate) > .cf-form, .cf:not(.cf--gate) > .cf-done { grid-column: 2; grid-row: 1; max-width: 720px; }
}
.cf--gate { max-width: 760px; }
/* 11-21 row 45: the gate holds the newest beta beside it on wide screens (head + doors left, the report right) */
@media (min-width: 900px) {
  .cf--gate:has(.cf-latest) { max-width: none; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(48px, 6vw, 140px); row-gap: 40px; grid-template-rows: 1fr auto auto 1fr; align-items: start; }
  .cf--gate:has(.cf-latest) > .cf-head { grid-column: 1; grid-row: 2; }
  .cf--gate:has(.cf-latest) > .cf-gate { grid-column: 1; grid-row: 3; }
  .cf--gate > .cf-latest { grid-column: 2; grid-row: 1 / -1; max-width: none; }   /* row 45 loop: the head + doors centred on the report, the report filling its column */
}

/* ── head ── */
.cf-head { min-width: 0; }
.cf-eb { margin: 0 0 18px; font: 600 11.5px/1.2 var(--cf-disp); letter-spacing: .18em; text-transform: uppercase; color: var(--cf-ember); }
.cf-eb span { color: var(--cf-fg3); }
.cf-h { margin: 0; font: 800 clamp(44px, 5.4vw, 104px)/.94 var(--cf-disp); letter-spacing: -.03em; color: var(--cf-fg); text-wrap: balance; }
.cf-lede { margin: 24px 0 0; max-width: 32rem; font: 400 clamp(16px, 1.1vw, 19px)/1.55 var(--cf-body); color: var(--cf-fg2); text-wrap: pretty; }
.cf-notes { list-style: none; margin: 32px 0 0; padding: 0; max-width: 30rem; border-top: 1px solid var(--cf-hair); }
.cf-notes li { padding: 14px 0; border-bottom: 1px solid var(--cf-hair); font: 400 14px/1.5 var(--cf-body); color: var(--cf-fg2); text-wrap: pretty; }
.cf-admin { margin: 24px 0 0; max-width: 30rem; padding: 12px 16px; border-radius: var(--r-ctl, 8px); background: rgba(224, 170, 55, .08); box-shadow: inset 0 0 0 1px rgba(224, 170, 55, .32); font: 500 13px/1.45 var(--cf-body); color: var(--cf-gold); }
@media (max-width: 1099px) { .cf-notes { display: none; } }

/* ── the gate (signed out / opening soon) ── */
.cf-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }
.cf-quiet { display: inline-flex; align-items: center; min-height: 44px; font: 600 12px/1 var(--cf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--cf-fg2); text-decoration: underline; text-decoration-color: rgba(237, 231, 216, .3); text-underline-offset: .4em; transition: color .3s var(--cf-ease), text-decoration-color .3s var(--cf-ease); }
@media (hover: hover) { .cf-quiet:hover { color: var(--cf-fg); text-decoration-color: currentColor; } }

/* ── sections ── */
.cf-form { min-width: 0; margin: 0; }
.cf-sec { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--cf-hair); }
.cf-l { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font: 600 11.5px/1.2 var(--cf-disp); letter-spacing: .18em; text-transform: uppercase; color: var(--cf-fg); }
.cf-l--s { margin-bottom: 10px; font-size: 10.5px; color: var(--cf-fg2); }
.cf-opt { font-weight: 500; letter-spacing: .12em; color: var(--cf-fg3); }
.cf-hint { margin: 10px 0 0; font: 400 14px/1.5 var(--cf-body); color: var(--cf-fg2); }
.cf-err { margin: 0; min-height: 0; font: 500 13.5px/1.45 var(--cf-body); color: var(--cf-red); }
.cf-err:not(:empty) { margin-top: 10px; }

/* ── fields (material = .omtb-field from site-chrome.css; this sets type, size and the dark date picker) ── */
.cf-in { display: block; width: 100%; height: 52px; padding: 0 18px; font: 500 16px/1 var(--cf-body) !important; color: var(--cf-fg) !important; -webkit-appearance: none; appearance: none; outline: none; }
.cf-in::placeholder { color: rgba(237, 231, 216, .42); }
.cf-in--date { max-width: 240px; color-scheme: dark; }
.cf-in--date::-webkit-calendar-picker-indicator { filter: invert(.9); opacity: .7; cursor: pointer; }

/* place: the picked place shows its kind on the right of the field */
.cf-place { position: relative; }
.cf-place .cf-in { padding-right: 168px; }
.cf-place__sub { position: absolute; right: 18px; top: 0; height: 52px; display: flex; align-items: center; pointer-events: none; font: 600 10.5px/1 var(--cf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--cf-teal); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.cf-pl {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  border-radius: var(--r-panel, 14px); background: var(--sf-glass-dense, rgba(12, 12, 12, .92));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--cf-hair-hi), inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 48px -12px rgba(0, 0, 0, .6);
}
.cf-pl[hidden] { display: none; }
.cf-pl li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 44px; padding: 12px 14px; border-radius: var(--r-ctl, 8px); cursor: pointer; }
.cf-pl li[aria-selected="true"], .cf-pl li:hover { background: var(--sf-sel-fill, rgba(237, 231, 216, .10)); }
.cf-pl__n { font: 500 15px/1.3 var(--cf-body); color: var(--cf-fg); }
.cf-pl__s { flex: 0 0 auto; font: 600 10px/1 var(--cf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--cf-fg3); }
.cf-pl__none { cursor: default !important; font: 400 14px/1.45 var(--cf-body); color: var(--cf-fg2); background: none !important; }

/* body: the textarea is transparent over a mirror that draws the marks; both share every metric */
.cf-ta {
  position: relative; border-radius: var(--r-panel, 14px);
  background: var(--sf-ctl-fill, rgba(237, 231, 216, .04)); box-shadow: inset 0 0 0 1px var(--cf-hair);
  transition: box-shadow .3s var(--cf-ease), background-color .3s var(--cf-ease);
}
.cf-ta:hover { background-color: var(--sf-ctl-fill-hi, rgba(237, 231, 216, .09)); }
.cf-ta:focus-within { box-shadow: inset 0 0 0 1px rgba(237, 231, 216, .32); }
.cf-ta__mirror, .cf-ta__in {
  display: block; width: 100%; height: 188px; margin: 0; padding: 16px 18px; border: 0;
  font: 400 17px/1.6 var(--cf-body); letter-spacing: 0; tab-size: 4;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
  overflow-y: auto; scrollbar-gutter: stable;
}
.cf-ta__mirror { position: absolute; inset: 0; overflow: hidden; color: transparent; pointer-events: none; user-select: none; }
.cf-ta__in { position: relative; z-index: 1; resize: none; background: transparent !important; color: var(--cf-fg); caret-color: var(--cf-ember); outline: none; box-shadow: none !important; border-radius: inherit; }
.cf-ta__in::placeholder { color: rgba(237, 231, 216, .38); }
.cf-mk { color: transparent; border-radius: 0; padding: 0; }
.cf-mk--strip { background: rgba(224, 170, 55, .2); box-shadow: inset 0 -2px 0 #E0AA37; }
.cf-mk--hold { background: rgba(214, 101, 82, .24); box-shadow: inset 0 -2px 0 #D66552; }
/* the reason line owns two lines whether or not it speaks: a reason appearing never moves anything */
.cf-ta__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 10px; }
.cf-say { flex: 1 1 auto; min-width: 0; height: 3em; margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 500 13.5px/1.5 var(--cf-body); color: var(--cf-gold); }
.cf-say.is-hold { color: var(--cf-red); }
.cf-count { flex: 0 0 auto; padding-top: 1px; font: 600 11px/1.5 var(--cf-disp); letter-spacing: .1em; color: var(--cf-fg3); font-variant-numeric: tabular-nums; }
.cf-count.is-near { color: var(--cf-gold); }

/* add details */
.cf-more { margin: 0 0 30px; padding: 0 0 30px; border-bottom: 1px solid var(--cf-hair); }
.cf-more__s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-height: 44px; padding: 10px 0; cursor: pointer; list-style: none; font: 600 11.5px/1.2 var(--cf-disp); letter-spacing: .18em; text-transform: uppercase; color: var(--cf-fg); }
.cf-more__s::-webkit-details-marker { display: none; }
.cf-more__s > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
.cf-more__s > span:first-child::before { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .4s var(--cf-ease); }
.cf-more[open] > .cf-more__s > span:first-child::before { transform: translateY(1px) rotate(225deg); }
.cf-more__h { font-weight: 500; letter-spacing: .12em; color: var(--cf-fg3); }
.cf-more__in { padding-top: 18px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { padding: 0 14px; }
.cf-facts:not(:empty) { margin-top: 26px; display: grid; gap: 22px; }
.cf-num { display: inline-flex; align-items: center; gap: 10px; }
.cf-in--n { width: 120px; height: 44px; }
.cf-unit { font: 600 11px/1 var(--cf-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--cf-fg3); }

/* photos */
.cf-drop { position: relative; border-radius: var(--r-panel, 14px); background: var(--sf-ctl-fill, rgba(237, 231, 216, .04)); box-shadow: inset 0 0 0 1px var(--cf-hair); transition: background-color .3s var(--cf-ease), box-shadow .3s var(--cf-ease); }
.cf-drop::before { content: ""; position: absolute; inset: 8px; border-radius: var(--r-ctl, 8px); border: 1px dashed rgba(237, 231, 216, .18); pointer-events: none; transition: border-color .3s var(--cf-ease); }
.cf-drop__in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cf-drop__l { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 132px; padding: 24px; text-align: center; cursor: pointer; }
.cf-drop__t { font: 500 16px/1.35 var(--cf-body); color: var(--cf-fg); }
.cf-drop__t u { text-decoration-color: rgba(255, 125, 17, .6); text-underline-offset: .2em; color: var(--cf-ember); }
.cf-drop__s { font: 400 13px/1.4 var(--cf-body); color: var(--cf-fg3); }
.cf-drop.is-over { background-color: rgba(52, 151, 143, .08); box-shadow: inset 0 0 0 1px rgba(52, 151, 143, .5); }
.cf-drop.is-over::before { border-color: rgba(52, 151, 143, .6); }
.cf-drop.is-full { opacity: .45; }
.cf-drop.is-full .cf-drop__l { cursor: default; }
.cf-drop__in:focus-visible + .cf-drop__l { outline: 2px solid var(--sf-focus, #FF7E33); outline-offset: 2px; border-radius: var(--r-panel, 14px); }
.cf-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cf-thumbs:not(:empty) { margin-top: 14px; }
.cf-thumb { position: relative; }
.cf-thumb__img { display: block; width: 100%; aspect-ratio: 1 / 1; background: #140D0A; overflow: hidden; border-radius: 0; }
.cf-thumb__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: opacity .4s var(--cf-ease); }
.cf-thumb.is-up .cf-thumb__img img { opacity: .55; }
.cf-thumb.is-bad .cf-thumb__img img { opacity: .25; }
.cf-thumb__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(10, 10, 10, .5); overflow: hidden; }
.cf-thumb__bar i { display: block; height: 100%; background: var(--cf-teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; }
.cf-thumb.is-done .cf-thumb__bar { opacity: 0; transition: opacity .6s var(--cf-ease) .4s; }
.cf-thumb__x {
  position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-ctl, 8px); color: var(--cf-fg); background: rgba(12, 12, 12, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--cf-hair-hi);
}
.cf-thumb__x::after { content: ""; position: absolute; inset: -6px; }   /* a 44 px target around the 32 px glass */
@media (hover: hover) { .cf-thumb__x:hover { background: rgba(30, 30, 30, .86); } }

/* social preview: the facade card from community-media.php at a reading size */
.cf-preview { max-width: 420px; }
.cf-preview.is-on { margin-top: 16px; }
.cf-preview.is-wait { min-height: 0; }
.cf-preview .omtb-cm-embed { margin: 0; }

/* honeypot: present for bots, absent for people and screen readers */
.cf-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-ts { margin: 0 0 24px; }

/* foot */
.cf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 4px; }
.cf-status { flex: 1 1 240px; margin: 0; font: 500 14px/1.45 var(--cf-body); color: var(--cf-fg2); }
.cf-status.is-bad { color: var(--cf-red); }
.cf-send[disabled] { opacity: .6; cursor: progress; }

/* done */
.cf-done { min-width: 0; outline: none; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-panel, 14px); background: linear-gradient(180deg, rgba(30, 30, 30, .62), rgba(8, 8, 8, .76)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--cf-hair), inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 48px -12px rgba(0, 0, 0, .6); }
.cf-done[hidden] { display: none; }
.cf-done .cf-eb { color: var(--cf-teal); }
.cf-done__h { margin: 0; font: 700 clamp(28px, 2.6vw, 44px)/1.08 var(--cf-h2); letter-spacing: -.02em; color: var(--cf-fg); text-wrap: balance; }
.cf-done__p { margin: 16px 0 0; max-width: 34rem; font: 400 16px/1.55 var(--cf-body); color: var(--cf-fg2); }
.cf-done__notes { margin: 18px 0 0; padding: 0 0 0 18px; font: 400 14px/1.5 var(--cf-body); color: var(--cf-gold); }
.cf-done__notes[hidden] { display: none; }
.cf-done .cf-gate { margin-top: 28px; }

@media (max-width: 599px) {
  .cf-place .cf-in { padding-right: 18px; }
  .cf-place__sub { position: static; height: auto; max-width: none; margin-top: 8px; }
  .cf-place__sub:empty { display: none; }
  .cf-ta__mirror, .cf-ta__in { height: 168px; font-size: 16px; }
  .cf-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-foot .cf-send { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cf *, .cf *::before, .cf *::after { transition: none !important; } }

/* ── the latest beta beside the gate (row 45): one photograph, square, unrounded (LOCKED R8), the report under it ── */
.cf-latest { display: block; max-width: 560px; color: inherit; text-decoration: none; }
.cf-latest__ph { display: block; overflow: hidden; border-radius: 0; background: #140D0A; }
.cf-latest__ph img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; transition: transform .9s var(--cf-ease); }
.cf-latest__m { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.cf-latest__eb { font: 600 11px/1.3 var(--cf-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--cf-ember); }
.cf-latest__eb time, .cf-latest__eb span { color: var(--cf-fg2); }
.cf-latest__t { font: 700 clamp(22px, 1.8vw, 32px)/1.12 var(--cf-h2); letter-spacing: -.02em; color: var(--cf-fg); text-wrap: balance; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .14em; transition: text-decoration-color .3s var(--cf-ease); }
.cf-latest__l { padding: 12px 0; border-block: 1px solid var(--cf-hair); font: 400 15px/1.5 var(--cf-body); color: var(--cf-fg2); text-wrap: pretty; }
.cf-latest__by { font: 600 11px/1.3 var(--cf-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--cf-fg3); }
@media (hover: hover) and (pointer: fine) { .cf-latest:hover .cf-latest__t { text-decoration-color: var(--cf-ember); } .cf-latest:hover .cf-latest__ph img { transform: scale(1.03); } }
.cf-latest:focus-visible { outline: 2px solid var(--cf-ember); outline-offset: 6px; }
@media (max-width: 899px) { .cf-latest { max-width: 560px; } }
