/* ===========================================================
   V2 block styles (wpm-website-v2.html look, for core blocks).
   Registered in inc/custom/block-editor.php. Loaded on the front
   end AND as an editor style, so keep selectors unscoped by page -
   they key off the is-style-* classes WordPress adds to blocks.
   Plain CSS on purpose (no Sass build pipeline - see CLAUDE.md).
   =========================================================== */

:root {
  --v2-deep: #004446;
  --v2-teal: #42C1C7;
  --v2-line: #dbe6e6;
  --v2-muted: #5d757c;
  --v2-card: #fff;
  --v2-body-ink: #2f4a54;
  --v2-r: 12px;
  --v2-display: 'Poppins', 'Kantumruy Pro', 'Century Gothic', 'Futura', 'Trebuchet MS', sans-serif;
}

/* Group: "V2 card" */
.wp-block-group.is-style-v2-card {
  background: var(--v2-card);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r);
  padding: 1.5rem;
}
.wp-block-group.is-style-v2-card > :last-child { margin-bottom: 0; }

/* Group: "V2 value card (W/P/M)" - pair with a "V2 value letter" paragraph */
.wp-block-group.is-style-v2-value {
  position: relative;
  background: var(--v2-card);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r);
  padding: 1.6rem 1.5rem;
  overflow: hidden;
}
.wp-block-group.is-style-v2-value h3 {
  position: relative;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 23ch;
  margin: 0;
  color: var(--v2-deep);
}
.wp-block-group.is-style-v2-value p:not(.is-style-v2-value-letter) {
  position: relative;
  color: var(--v2-body-ink);
  font-size: .94rem;
  margin: .7rem 0 0;
}

/* Cards fill their column so a row lines up */
.wp-block-column > .wp-block-group.is-style-v2-card,
.wp-block-column > .wp-block-group.is-style-v2-value { height: 100%; }

/* Paragraph: "V2 value letter" - the big faint W / P / M */
p.is-style-v2-value-letter {
  position: absolute;
  top: .4rem;
  right: 1rem;
  margin: 0;
  font-family: var(--v2-display);
  font-weight: 700;
  font-size: 4.6rem;
  line-height: .8;
  color: var(--v2-teal);
  opacity: .2;
  pointer-events: none;
}

/* Paragraph: "V2 eyebrow label" */
p.is-style-v2-eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  font-family: var(--v2-display);
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--v2-teal);
}
p.is-style-v2-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  flex: none;
}

/* Paragraph: "V2 statement" (vision / mission text) */
p.is-style-v2-statement {
  margin: 0;
  font-family: var(--v2-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--v2-deep);
}

/* Paragraph: "V2 muted intro" */
p.is-style-v2-muted {
  color: var(--v2-muted);
  margin-bottom: 1.4rem;
}

/* List: "V2 ticks" - ringed dots instead of bullets. "V2 ticks (two columns)"
   is the same list flowing into two columns on wide screens, like v2's .ticks.two */
.is-style-v2-ticks,
.is-style-v2-ticks-two {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.is-style-v2-ticks li,
.is-style-v2-ticks-two li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .96rem;
  color: var(--v2-body-ink);
}
.is-style-v2-ticks li::before,
.is-style-v2-ticks-two li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--v2-teal);
}

.is-style-v2-ticks-two {
  grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr));
  gap: .75rem 2rem;
}

/* Group: "V2 stat card" - first paragraph is the big number, the rest the label */
.wp-block-group.is-style-v2-stat {
  background: var(--v2-card);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-r);
  padding: 1.5rem;
}
.wp-block-column > .wp-block-group.is-style-v2-stat { height: 100%; }
.wp-block-group.is-style-v2-stat > p {
  margin: .5rem 0 0;
  font-size: .86rem;
  color: var(--v2-muted);
}
.wp-block-group.is-style-v2-stat > p:first-child {
  margin: 0;
  font-family: var(--v2-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--v2-deep);
}

/* Group: "V2 card grid (wrapping)" - cards in auto-fit columns, like v2's .grid.g3.
   Classic theme (no theme.json), so WordPress wraps a Group's children in
   .wp-block-group__inner-container - on the front end and in the editor. */
.wp-block-group.is-style-v2-card-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(276px, 100%), 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.wp-block-group.is-style-v2-card-grid > .wp-block-group__inner-container > * {
  min-width: 0;
  margin: 0;
}
/* Card body in a grid: push a "V2 card link" to the bottom so a row lines up */
.is-style-v2-card-grid .wp-block-group.is-style-v2-card > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wp-block-group.is-style-v2-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--v2-deep);
  margin: 0 0 .6rem;
}
.wp-block-group.is-style-v2-card p:not([class]) {
  color: var(--v2-body-ink);
  font-size: .96rem;
}

/* Paragraph: "V2 card link" - e.g. "Visit site". On the front end
   (page templates wrap content in .v2-page) its link stretches over the
   whole card, so the card itself is the click target. Not in the editor,
   or the overlay would block selecting the card's text. */
p.is-style-v2-card-link {
  margin: auto 0 0;
  padding-top: .9rem;
  font-family: var(--v2-display);
  font-weight: 700;
  font-size: .86rem;
}
p.is-style-v2-card-link a {
  color: var(--v2-deep);
  text-decoration: none;
}
p.is-style-v2-card-link a::after { content: " \2192"; }
p.is-style-v2-card-link a[target="_blank"]::after { content: " \2197"; }

.v2-page .wp-block-group.is-style-v2-card:has(p.is-style-v2-card-link a) {
  position: relative;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.v2-page .wp-block-group.is-style-v2-card:has(p.is-style-v2-card-link a):hover,
.v2-page .wp-block-group.is-style-v2-card:has(p.is-style-v2-card-link a):focus-within {
  border-color: var(--v2-teal);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -20px rgba(0, 68, 70, .45);
}
.v2-page p.is-style-v2-card-link a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--v2-r);
}
.v2-page p.is-style-v2-card-link a:focus-visible { outline: none; }
.v2-page p.is-style-v2-card-link a:focus-visible::before {
  outline: 2px solid var(--v2-teal);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .v2-page .wp-block-group.is-style-v2-card:has(p.is-style-v2-card-link a):hover { transform: none; }
}

/* Group: "V2 band (paper)" - full-width light grey section. The background
   bleeds to the viewport edges (box-shadow + clip-path) while the content
   stays in the page's container column. */
.wp-block-group.is-style-v2-band-paper {
  --v2-paper: #F4F7F7;
  background: var(--v2-paper);
  box-shadow: 0 0 0 100vmax var(--v2-paper);
  clip-path: inset(0 -100vmax);
  padding-block: clamp(2.9rem, 6vw, 4.8rem);
}
.wp-block-group.is-style-v2-band-paper h2 {
  font-size: var(--fs-header, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--v2-deep);
  max-width: 730px;
  margin: 0 0 2.1rem;
}

/* Button: "V2 chip" - outlined pill, like v2's .chip.chip-line */
.wp-block-buttons:has(> .is-style-v2-chip) { gap: .5rem; }
.wp-block-button.is-style-v2-chip { margin: 0; }
.wp-block-button.is-style-v2-chip .wp-block-button__link {
  display: inline-block;
  background: transparent;
  color: #162A3A;
  box-shadow: inset 0 0 0 1.3px var(--v2-line);
  border: 0;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-family: var(--v2-display);
  font-size: .77rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: box-shadow .18s, color .18s;
}
.wp-block-button.is-style-v2-chip .wp-block-button__link:hover {
  color: var(--v2-deep);
  box-shadow: inset 0 0 0 1.3px var(--v2-teal);
}
.wp-block-button.is-style-v2-chip a.wp-block-button__link[target="_blank"]::after { content: " \2197"; }
