/* Our Mission & Vision page. The hero banner comes from about.css (same as the other inner pages).
   Every class here starts with mv- so no other page is touched. */

/* the title is longer than the other pages' titles, so it is set smaller and on two lines */
.mv-hero .ab-hero__title { font-size: clamp(3rem, 1.2rem + 6.4vw, 6.5rem); }
.mv-hero .ab-line { display: block; }
.mv-hero .ab-line--em { margin-left: -0.08em; }
@media (max-width: 640px) { .mv-hero .ab-hero__title { font-size: clamp(2.8rem, 15vw, 4rem); } }

/* 0. The mission, shown only when its text has been entered in the dashboard */
.mv-mission { padding-block: var(--section); background: var(--base); }
.mv-mission__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(1.5rem, 1rem + 4vw, 5rem); align-items: start; }
.mv-mission__grid .label { margin: 0.6rem 0 0; }
.mv-mission__text { max-width: 54rem; margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.05rem + 1.8vw, 2.7rem); font-weight: 310; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }

/* 1. The vision, laid out like the motto: the opening phrase large at the left with a gold highlight, the rest of the sentence at the right */
.mv-vision { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); background: var(--base); }
.mv-vision::before { content: ""; position: absolute; z-index: -1; left: -10%; top: 50%; width: min(64vw, 780px); transform: translateY(-50%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(254, 182, 40, 0.34) 0%, rgba(254, 182, 40, 0.12) 38%, transparent 66%); }
.mv-vision__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.mv-vision__text { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 0.9rem + 5.2vw, 6.4rem); font-weight: 280; line-height: 1; letter-spacing: -0.04em; color: var(--maroon); }
.mv-vision__a, .mv-vision__b { display: block; }
.mv-vision__b { font-style: italic; font-weight: 260; color: var(--red); }
.mv-vision__mark { display: inline-block; padding-inline: 0.06em; background: linear-gradient(transparent 64%, rgba(254, 182, 40, 0.6) 64% 92%, transparent 92%) no-repeat left / 100% 100%; }
.mv-vision__rest { position: relative; margin: 0; padding-top: clamp(1.5rem, 1.25rem + 1vw, 2rem); font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-weight: 330; line-height: 1.6; letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.mv-vision__rest::before { content: ""; position: absolute; left: 0; top: 0; width: 4.5rem; height: 3px; background: linear-gradient(90deg, var(--flame), var(--red)); }
/* the highlight's resting state is fully drawn, so nothing jumps when main.js removes .is-in */
.motion .mv-vision__text.is-in .mv-vision__mark { animation: mv-sweep 1.4s var(--ease) 0.5s both; }
@keyframes mv-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* 2. Responsive */
@media (max-width: 1000px) {
  .mv-mission__grid, .mv-vision__grid { grid-template-columns: minmax(0, 1fr); }
  .mv-mission__grid .label { margin-top: 0; }
  .mv-vision__grid { gap: 2rem; align-items: start; }
}

/* Our Vision, third design: the crest at the left inside rings that turn slowly, the vision at the right with a gold line down its side; the highlighted words are set in a gold box. */
.mvv { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); background: radial-gradient(50% 70% at 0% 50%, rgba(254, 182, 40, 0.22), transparent 70%), linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.mvv__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.mvv__grid:not(:has(.mvv__emblem)) { grid-template-columns: minmax(0, 1fr); }
.mvv__emblem { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, 24rem); aspect-ratio: 1; margin: 0; }
.mvv__emblem::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(168, 98, 0, 0.45); background: radial-gradient(closest-side, rgba(254, 182, 40, 0.3), transparent); }
.mvv__emblem::after { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 2px dashed rgba(12, 74, 143, 0.3); }
.motion .mvv__emblem::after { animation: mvv-spin 45s linear infinite; }
.mvv__emblem img { position: relative; width: 50%; height: auto; filter: drop-shadow(0 1.25rem 1.5rem rgba(12, 74, 143, 0.4)); }
@keyframes mvv-spin { to { transform: rotate(360deg); } }
.mvv__body { padding-left: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-left: 3px solid var(--flame); }
.mvv__label { display: inline-block; margin: 0 0 clamp(1rem, 0.75rem + 1vw, 1.75rem); padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--maroon); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--flame); }
.mvv__text { margin: 0; font-family: var(--display); font-size: clamp(2rem, 0.9rem + 3.6vw, 4.4rem); font-weight: 290; line-height: 1.06; letter-spacing: -0.035em; color: var(--maroon); }
.mvv__a, .mvv__b { display: block; }
.mvv__b { margin-top: 0.12em; font-style: italic; font-weight: 270; }
.mvv__mark { display: inline-block; padding: 0 0.3em 0.05em; border: 2px solid var(--maroon); border-radius: 0.35em; background: var(--flame); color: var(--maroon); }
.mvv__rest { max-width: 46rem; margin: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem) 0 0; font-family: var(--display); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); font-weight: 330; line-height: 1.5; color: var(--ink); }
@media (max-width: 900px) {
  .mvv__grid { grid-template-columns: minmax(0, 1fr); }
  .mvv__emblem { width: min(60%, 14rem); justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .motion .mvv__emblem::after { animation: none; } }

/* Our Vision, one paragraph: the whole vision in large display type under the title pill, the highlighted words with a gold marker line. */
.mvv__rest { max-width: 46rem; margin: 0; font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.4rem); font-weight: 310; line-height: 1.32; letter-spacing: -0.015em; color: var(--maroon); }
.mvv__mark { display: inline; padding: 0 0.08em; border: 0; border-radius: 0; background: linear-gradient(transparent 62%, rgba(254, 182, 40, 0.75) 62% 92%, transparent 92%) no-repeat left / 100% 100%; color: inherit; font-style: italic; }

/* Our Vision and Our Mission, redesigned. The vision is a dark maroon band: the crest at the left inside slowly turning rings, the vision in large cream type at the right with the highlighted words in gold. The mission follows on a light page: a gold rule with a diamond, a maroon title pill, and the statement centred in large type. */
.mvv { background: radial-gradient(55% 80% at 8% 50%, rgba(254, 182, 40, 0.22), transparent 70%), linear-gradient(160deg, var(--band) 0%, var(--footer) 100%); color: var(--on-dark, var(--base)); }
.mvv__emblem::before { border-color: rgba(254, 182, 40, 0.55); background: radial-gradient(closest-side, rgba(254, 182, 40, 0.28), transparent); }
.mvv__emblem::after { border-color: rgba(254, 182, 40, 0.4); }
.mvv__emblem img { filter: drop-shadow(0 1.25rem 1.5rem rgba(0, 0, 0, 0.5)); }
.mvv__body { border-left-color: var(--flame); }
.mvv__label { background: transparent; border: 1.5px solid var(--flame); color: var(--flame); }
.mvv__rest { color: var(--base); }
.mvv__mark { background: linear-gradient(transparent 66%, rgba(254, 182, 40, 0.35) 66% 94%, transparent 94%) no-repeat left / 100% 100%; color: var(--flame); }

.mv-mission { position: relative; overflow: clip; padding-block: clamp(4rem, 2.5rem + 6vw, 8rem); background: var(--base); }
.mv-mission::before { content: ""; position: absolute; inset: auto -10% -45% auto; width: min(60vw, 720px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(254, 182, 40, 0.22), transparent 66%); pointer-events: none; }
.mv-mission__box { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mv-mission__orn { position: relative; display: block; width: min(16rem, 60%); height: 1px; margin-bottom: 1.75rem; background: linear-gradient(90deg, transparent, var(--flame) 30%, var(--flame) 70%, transparent); }
.mv-mission__orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; background: var(--flame); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--base); }
.mv-mission__label { margin: 0 0 clamp(1.25rem, 1rem + 1vw, 2rem); padding: 0.4rem 1.1rem; border-radius: 999px; background: var(--maroon); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--flame); }
.mv-mission__text { max-width: 52rem; margin: 0 auto; font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.4rem); font-weight: 310; line-height: 1.34; color: var(--maroon); }
@media (max-width: 1000px) { .mv-mission__box { align-items: center; } }

/* Our Vision and Our Mission, third design: one band with two equal columns. The vision card at the left is deep maroon with the crest and a gold marker on the highlighted words; the mission card at the right is white with a gold top line. Both stack on small screens. */
.vm { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); background: radial-gradient(60% 70% at 100% 0%, rgba(254, 182, 40, 0.2), transparent 70%), linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.vm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 2vw, 2rem); align-items: stretch; }
.vm__grid--one { grid-template-columns: minmax(0, 1fr); }
.vm__card { position: relative; display: flex; flex-direction: column; padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); border-radius: 1.5rem; overflow: hidden; }
.vm__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.vm__label { margin: 0; padding: 0.4rem 1.1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.vm__text { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.85rem); font-weight: 310; line-height: 1.4; letter-spacing: -0.01em; text-wrap: pretty; }

.vm__card--vision { background: radial-gradient(70% 60% at 100% 0%, rgba(254, 182, 40, 0.2), transparent 70%), linear-gradient(160deg, var(--band) 0%, var(--footer) 100%); box-shadow: 0 2rem 4rem -2rem rgba(8, 47, 99, 0.6); color: var(--base); }
.vm__card--vision .vm__label { border: 1.5px solid var(--flame); color: var(--flame); }
.vm__crest { width: clamp(3.5rem, 3rem + 2vw, 5rem); height: auto; filter: drop-shadow(0 0.6rem 0.9rem rgba(0, 0, 0, 0.5)); }
.vm__mark { padding: 0 0.08em; background: linear-gradient(transparent 66%, rgba(254, 182, 40, 0.35) 66% 94%, transparent 94%) no-repeat left / 100% 100%; font-style: italic; color: var(--flame); }

.vm__card--mission { border: 1px solid var(--line); border-top: 4px solid var(--flame); background: #fff; box-shadow: 0 2rem 4rem -2.5rem rgba(12, 74, 143, 0.35); color: var(--maroon); }
.vm__card--mission .vm__label { background: var(--maroon); color: var(--flame); }
.vm__orn { width: clamp(3.5rem, 3rem + 2vw, 5rem); height: 1px; background: linear-gradient(90deg, transparent, var(--flame)); position: relative; }
.vm__orn::after { content: ""; position: absolute; right: 0; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; background: var(--flame); transform: rotate(45deg); }

@media (max-width: 900px) { .vm__grid { grid-template-columns: minmax(0, 1fr); } }

/* Specific Rules: a numbered list, the number large in gold at the left of each rule */
.sr { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); background: var(--base); }
.sr-heading { margin: 0 0 clamp(1.75rem, 1.25rem + 2vw, 3rem); font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 350; line-height: 1.1; letter-spacing: -0.02em; color: var(--maroon); }
.sr-list { max-width: 62rem; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sr-item { display: grid; grid-template-columns: clamp(3.5rem, 3rem + 3vw, 6rem) minmax(0, 1fr); gap: clamp(1rem, 0.5rem + 2vw, 2rem); align-items: start; padding-block: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--line); }
.sr-item__no { font-family: var(--display); font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); font-weight: 300; line-height: 0.9; color: var(--flame); -webkit-text-stroke: 1px var(--amber); }
.sr-item__text { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.65; color: var(--ink); text-wrap: pretty; }

/* Specific Rules, redesigned: three boxes side by side (one below the other on small screens), each with a large gold number in a maroon circle */
.sr { background: radial-gradient(60% 70% at 0% 100%, rgba(254, 182, 40, 0.18), transparent 70%), linear-gradient(180deg, var(--base) 0%, var(--flame-tint) 100%); }
.sr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 2vw, 2rem); max-width: none; border-top: 0; }
.sr-item { position: relative; display: flex; flex-direction: column; gap: clamp(1rem, 0.8rem + 1vw, 1.5rem); padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-top: 4px solid var(--flame); border-radius: 1.25rem; background: #fff; box-shadow: 0 1.75rem 3.5rem -2.5rem rgba(12, 74, 143, 0.4); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.sr-item:hover { transform: translateY(-0.25rem); box-shadow: 0 2.25rem 4rem -2.25rem rgba(12, 74, 143, 0.5); }
.sr-item__no { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--maroon); font-family: var(--display); font-size: 1.5rem; font-weight: 400; line-height: 1; -webkit-text-stroke: 0; color: var(--flame); }
.sr-item__text { font-size: 1.0625rem; line-height: 1.65; }
@media (max-width: 1000px) { .sr-list { grid-template-columns: minmax(0, 1fr); } }
