/* Pinecone Homepage — the ClassLore sections
   Same grammar as home-v2.css: serif display, mono eyebrows, hairline
   borders, 2px radii. Nothing here introduces a new visual idea; these
   sections have to read as part of the school, not as an ad inside it. */

/* =============================================================
   AVAILABILITY — a readout, not a paragraph. It should look like
   something the school knows, not something a copywriter typed.
   ============================================================= */
.v2-availability {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  margin: clamp(26px, 3vw, 38px) auto;
  padding: 18px clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  background: rgba(255, 255, 255, 0.32);
  max-width: 46ch;
}
.v2-availability-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mustard-deep);
}
/* The one LIVE value on the page, visibly alive — same pulse grammar the
   design system already uses for its hint chips. */
.v2-availability-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--mustard-deep);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .v2-availability-dot { animation: none; } }
.v2-availability-line {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(19px, 1.9vw, 25px); line-height: 1.3;
  color: var(--ink); text-align: center; text-wrap: balance;
}

/* =============================================================
   HOW YOU'LL HEAR FROM US
   ============================================================= */
.v2-lore {
  background: var(--paper-deep);
  padding: clamp(80px, 9vw, 140px) var(--v2-gut);
  border-bottom: 1px solid var(--ink-faint);
}
.v2-lore-inner { max-width: var(--v2-max); margin: 0 auto; }
.v2-lore-head { max-width: 44rem; margin: 0 auto clamp(48px, 6vw, 80px); }
.v2-lore-head .v2-h-display { margin: 0; max-width: 18ch; }

.v2-lore-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 88px); align-items: start;
}
@media (max-width: 980px) {
  .v2-lore-feature { grid-template-columns: 1fr; }
}

/* ---- The evening note, as an artifact ---- */
.v2-note { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.v2-note-label {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--ink-mute);
}
.v2-note-card {
  background: var(--paper);
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  padding: clamp(24px, 2.6vw, 38px);
  box-shadow: 0 28px 70px -32px rgba(42, 26, 22, 0.45);
  position: relative;
}
/* A single mustard rule down the left edge — the school's hand on it. */
.v2-note-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--mustard);
}
.v2-note-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--ink-faint);
}
.v2-note-day {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 26px; line-height: 1; color: var(--ink);
  letter-spacing: -0.01em;
}
.v2-note-room {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mustard-deep);
}
.v2-note-body p {
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  color: var(--ink-2); margin: 0 0 16px;
}
.v2-note-body p:last-child { margin-bottom: 0; }
.v2-note-sign {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--ink-faint);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 19px; color: var(--mustard-deep);
}

.v2-note-langs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.v2-note-langs-label {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); margin-right: 2px;
}
.v2-lang-chip {
  font-family: var(--sans); font-size: 12.5px;
  color: var(--ink-2); background: var(--paper-warm);
  border: 1px solid var(--ink-faint); border-radius: 999px;
  padding: 4px 12px; white-space: nowrap;
}

.v2-lore-close {
  margin: clamp(52px, 6vw, 84px) auto 0; max-width: 24ch;
  text-align: center; font-size: clamp(30px, 3.4vw, 46px);
}

/* =============================================================
   WORKING AT PINECONE — dark band, deliberately a different room
   ============================================================= */
.v2-careers {
  background: var(--ink); color: var(--paper);
  padding: clamp(80px, 9vw, 140px) var(--v2-gut);
  position: relative; overflow: hidden;
}
.v2-careers::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(200,154,74,0.10) 0, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(168,121,152,0.08) 0, transparent 55%);
  pointer-events: none;
}
.v2-careers-inner { position: relative; z-index: 1; }
.v2-careers-inner { max-width: var(--v2-max); margin: 0 auto; }
.v2-careers-head { max-width: 40rem; margin: 0 0 clamp(48px, 5vw, 72px); }
.v2-careers-head .v2-h-display { color: var(--paper); margin: 0 0 22px; max-width: 16ch; }
.v2-careers-head .v2-h-display em { color: var(--mustard); }
.v2-careers-lede {
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: rgba(245, 234, 212, 0.78); margin: 0; max-width: 52ch;
}

.v2-careers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.v2-careers-cell {
  border-top: 1px solid rgba(245, 234, 212, 0.22);
  padding-top: 22px;
}
.v2-careers-num {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--mustard);
  display: block; margin-bottom: 14px;
}
.v2-careers-cell h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(22px, 2.1vw, 28px); line-height: 1.12;
  margin: 0 0 12px; color: var(--paper); letter-spacing: -0.006em;
}
.v2-careers-cell p {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.6;
  color: rgba(245, 234, 212, 0.75); margin: 0;
}
@media (max-width: 880px) {
  .v2-careers-grid { grid-template-columns: 1fr; gap: 30px; }
}

.v2-careers-actions {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(245, 234, 212, 0.16);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}
.v2-btn-on-dark {
  background: var(--mustard); color: var(--ink); border-color: var(--mustard);
}
.v2-btn-on-dark:hover { background: var(--paper); border-color: var(--paper); }
.v2-careers-note {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  line-height: 1.4; color: rgba(245, 234, 212, 0.72); max-width: 40ch;
}

/* =============================================================
   COLOPHON — one quiet line, and the door a director walks through
   ============================================================= */
.v2-colophon {
  background: var(--paper-warm);
  padding: clamp(44px, 5vw, 72px) var(--v2-gut);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}
.v2-colophon-inner {
  max-width: 60rem; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.v2-colophon-copy {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45;
  color: var(--ink-2); margin: 0; max-width: 54ch;
  text-wrap: pretty;
}
.v2-colophon-copy em { font-style: italic; color: var(--mustard-deep); }
.v2-colophon-copy b { font-weight: 600; color: var(--ink); }
.v2-colophon-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute); padding-bottom: 5px;
  border-bottom: 1px solid var(--ink-faint);
  transition: color 220ms ease, gap 220ms ease, border-color 220ms ease;
}
.v2-colophon-link span { transition: transform 220ms ease; }
.v2-colophon-link:hover {
  color: var(--mustard-deep); gap: 15px; border-color: var(--mustard-deep);
}
.v2-colophon-link:hover span { transform: translateX(4px); }

@media (max-width: 700px) {
  .v2-lore, .v2-careers {
    padding-top: clamp(56px, 13vw, 80px); padding-bottom: clamp(56px, 13vw, 80px);
  }
  .v2-lore-close { font-size: 28px; max-width: 18ch; }
  .v2-careers-actions { flex-direction: column; align-items: stretch; }
  .v2-careers-actions .v2-btn-on-dark { justify-content: center; min-height: 52px; }
  .v2-careers-note { text-align: center; }
}

/* =============================================================
   THE CLASSLORE WORDMARK
   Matched to the app's canonical lockup. Size is inherited on
   purpose — the mark earns its place by being correct, not big.
   ============================================================= */
.cl-wordmark {
  /* Copied value-for-value from the app's `.wm` rule so the mark cannot
     drift between the product and a school's site. */
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  letter-spacing: -0.005em;
  font-style: normal;
  color: inherit;
  white-space: nowrap;
}
.cl-wordmark em {
  font-style: italic;
  font-weight: 500;
  color: #B85C38; /* --cedar */
  letter-spacing: -0.015em;
}

/* =============================================================
   WHAT HAPPENS IN THIS ROOM — the bloom, second pass.
   In-column, prose-only. The grid never reflows sideways; the toggle
   stays under the finger; the writing is the event, not the layout.
   ============================================================= */
.rm-toggle {
  background: none; border: none; border-bottom: 1px solid var(--ink);
  padding: 0 0 6px; cursor: pointer; align-self: flex-start;
}

.rm-bloom {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rm-bloom > .rm-bloom-inner { overflow: hidden; min-height: 0; }
.rm-bloom.open { grid-template-rows: 1fr; }

.rm-passage {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 360ms ease 120ms, transform 360ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-faint);
}
.rm-bloom.open .rm-passage { opacity: 1; transform: none; }

.rm-passage p {
  font-family: var(--sans);
  font-size: 15.5px; line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.rm-passage p:last-child { margin-bottom: 0; }
/* The passage ends on its turn — let the closing paragraph carry the
   school's voice colour, quietly. */
.rm-passage p:last-child {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 17.5px; line-height: 1.55; color: var(--mustard-deep);
}
@media (min-width: 1440px) {
  .rm-passage p { font-size: 16.5px; }
  .rm-passage p:last-child { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-bloom, .rm-passage { transition: none; }
}

/* The way out of the bloom — offered only once it is open, so a parent
   who wanted a glance is never handed a second decision. */
.rm-more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mustard-deep); padding-bottom: 5px;
  border-bottom: 1px solid var(--mustard-deep);
  transition: gap 220ms ease;
}
.rm-more:hover { gap: 15px; }

/* On the Programs page every room is open by default, so the card must
   NOT steal the full grid width the way a homepage bloom does. */
.v2-programs-grid .v2-program-card.is-open:only-of-type { grid-column: 1 / -1; }

/* In-column, the measure is naturally ~60ch; cap for safety on the
   programs page where cards can run wider. */
.rm-bloom-inner { max-width: 62ch; }
