:root {
  --navy-950: #081d31;
  --navy-900: #102f4f;
  --navy-800: #173e62;
  --navy-700: #235579;
  --red: #d8483b;
  --red-dark: #be372d;
  --gold: #f2c44e;
  --cream: #f7f1e6;
  --sand: #ede2d0;
  --white: #fffdfa;
  --ink: #132b40;
  --muted: #667584;
  --line: rgba(16, 47, 79, 0.14);
  --shadow: 0 24px 60px rgba(8, 29, 49, 0.13);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.container.narrow {
  max-width: 820px;
}

.section {
  padding: 112px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: white;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.admin-page .site-header,
.admin-auth-page .site-header {
  background: rgba(8, 29, 49, 0.96);
  box-shadow: 0 8px 28px rgba(3, 18, 31, 0.15);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  line-height: 1;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50% 50% 50% 18%;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
}

.brand-mark::after {
  position: absolute;
  right: -9px;
  bottom: -8px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 21px;
  transform: rotate(12deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  letter-spacing: -0.03em;
}

.brand-copy strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand-copy em {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-style: italic;
}

.main-nav,
.admin-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:not(.nav-login) {
  position: relative;
  opacity: 0.82;
}

.main-nav a:not(.nav-login)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.nav-login {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
}

.nav-login:hover {
  background: white;
  color: var(--navy-900);
}

.admin-nav a,
.admin-nav button {
  color: white;
  opacity: 0.82;
}

.admin-nav form {
  margin: 0;
}

.admin-nav button {
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.admin-nav a:hover,
.admin-nav button:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: white;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 50%, rgba(47, 111, 143, 0.25), transparent 31%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, #164467);
  color: white;
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -36%;
  width: 72vw;
  height: 72vw;
  max-width: 1000px;
  max-height: 1000px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, black 65%, transparent);
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 780px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding-top: 100px;
  padding-bottom: 70px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--gold);
}

.eyebrow-dark {
  color: var(--navy-700);
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.68);
}

.hero h1,
.page-hero h1,
.article-hero h1,
.error-page h1,
.admin-auth-intro h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em,
.page-hero h1 em,
.section-intro h2 em,
.cooperation-copy h2 em,
.library-heading h2 em,
.closing-inner h2 em {
  color: var(--gold);
  font-weight: 400;
}

.hero-lead {
  max-width: 670px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 26px rgba(216, 72, 59, 0.22);
}

.button-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 16px 30px rgba(216, 72, 59, 0.28);
}

.button-quiet {
  color: white;
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  background: white;
  color: var(--navy-950);
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--navy-900);
}

.province-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.province-list span {
  position: relative;
}

.province-list span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.hero-visual {
  position: relative;
  min-height: 530px;
}

.compass-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.ring-one {
  inset: 0;
}

.ring-two {
  inset: 70px;
}

.maritime-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(430px, 92%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px 36px 80px 36px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%) rotate(2deg);
}

.map-kicker {
  margin: 0;
  padding: 22px 25px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.map-field {
  position: relative;
  height: 330px;
  background:
    radial-gradient(circle at 53% 55%, rgba(242, 196, 78, 0.07), transparent 30%),
    linear-gradient(150deg, transparent 20%, rgba(255, 255, 255, 0.035));
}

.map-field::before,
.map-field::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.map-field::before {
  inset: 42px 70px 54px 72px;
}

.map-field::after {
  inset: 86px 112px 96px 114px;
}

.map-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 196, 78, 0.55), transparent);
  transform-origin: left center;
}

.line-one {
  top: 120px;
  left: 108px;
  width: 190px;
  transform: rotate(22deg);
}

.line-two {
  top: 197px;
  left: 132px;
  width: 194px;
  transform: rotate(-35deg);
}

.line-three {
  top: 92px;
  left: 202px;
  width: 135px;
  transform: rotate(71deg);
}

.map-dot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
}

.map-dot i {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(242, 196, 78, 0.13);
}

.map-dot b {
  font-weight: 600;
}

.dot-moncton {
  top: 152px;
  left: 184px;
}

.dot-halifax {
  top: 240px;
  left: 277px;
}

.dot-charlottetown {
  top: 104px;
  left: 266px;
}

.dot-edmundston {
  top: 58px;
  left: 96px;
}

.dot-clare {
  top: 272px;
  left: 106px;
}

.map-message {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 29, 49, 0.42);
}

.map-star {
  color: var(--gold);
  font-size: 26px;
}

.map-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.4;
}

.map-message strong {
  color: white;
  font-size: 14px;
}

.hero-scroll {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 24px;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.hero-scroll span {
  position: absolute;
  top: -40%;
  right: 0;
  left: 0;
  height: 40%;
  background: var(--gold);
  animation: scroll-indicator 2.5s ease-in-out infinite;
}

@keyframes scroll-indicator {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(350%); }
}

.challenge {
  background: var(--cream);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  align-items: end;
  gap: 80px;
}

.section-intro h2,
.cooperation-copy h2,
.library-heading h2,
.closing-inner h2,
.results-heading h2,
.admin-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-intro h2 em,
.library-heading h2 em {
  color: var(--red);
}

.split-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 66px;
}

.challenge-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  border: 1px solid rgba(16, 47, 79, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.challenge-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.challenge-main {
  background: var(--red);
  color: white;
}

.card-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--navy-700);
  font-family: Georgia, serif;
  font-size: 13px;
}

.challenge-main .card-number {
  color: rgba(255, 255, 255, 0.55);
}

.challenge-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 54px;
  place-items: center;
  border: 1px solid rgba(16, 47, 79, 0.16);
  border-radius: 50%;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 24px;
}

.challenge-main .challenge-icon {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--gold);
}

.challenge-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.challenge-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.challenge-main p {
  color: rgba(255, 255, 255, 0.76);
}

.cooperation {
  overflow: hidden;
  background: var(--navy-950);
  color: white;
}

.cooperation-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 95px;
}

.cooperation-art {
  position: relative;
  min-height: 460px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.orbit-a {
  inset: 20px 0 40px 0;
}

.orbit-b {
  inset: 94px 72px 114px;
}

.center-church {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50% 50% 50% 22%;
  background: var(--red);
  box-shadow: 0 0 0 22px rgba(216, 72, 59, 0.08), 0 24px 60px rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font-size: 37px;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.people-mark {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--navy-900);
}

.people-mark span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.people-mark i {
  width: 22px;
  height: 11px;
  margin-top: -8px;
  border-radius: 12px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.68);
}

.mark-a { top: 35px; left: 47%; }
.mark-b { top: 40%; right: 2%; }
.mark-c { bottom: 44px; left: 36%; }
.mark-d { top: 43%; left: 2%; }

.cooperation-copy h2 {
  color: white;
}

.cooperation-copy h2 em {
  display: block;
  color: var(--gold);
}

.cooperation-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.68);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.check-list span {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 196, 78, 0.14);
  color: var(--gold);
  font-size: 12px;
}

.approach {
  background: var(--white);
}

.centered-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.centered-heading .eyebrow {
  justify-content: center;
}

.centered-heading > p:last-child {
  max-width: 610px;
  margin: 22px auto 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 76px;
}

.process article {
  min-width: 0;
}

.process-number {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 13px;
}

.process-line {
  position: relative;
  height: 1px;
  margin: 19px 0 34px;
  background: var(--line);
}

.process-line i {
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.process h3 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.process p {
  max-width: 230px;
  margin: 0;
  padding-right: 24px;
  color: var(--muted);
  font-size: 14px;
}

.faith-library {
  background: var(--cream);
}

.library-heading,
.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.library-heading h2 {
  font-size: clamp(38px, 4.4vw, 58px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--red);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  color: var(--red);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 58px;
}

.post-card {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  transition: box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.post-card:hover {
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.category-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-pill::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--red));
  content: "";
}

.post-card h3 {
  margin: 40px 0 14px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.post-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.post-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.post-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  margin-top: auto;
  place-items: center;
  align-self: flex-end;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  font-size: 18px;
}

.closing-cta {
  position: relative;
  overflow: hidden;
  padding: 116px 0;
  background: var(--red);
  color: white;
}

.closing-cta::before,
.closing-cta::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.closing-cta::before {
  top: -270px;
  left: -120px;
  width: 620px;
  height: 620px;
}

.closing-cta::after {
  right: -200px;
  bottom: -400px;
  width: 740px;
  height: 740px;
}

.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.closing-inner .eyebrow {
  justify-content: center;
}

.closing-inner h2 {
  color: white;
}

.closing-inner h2 em {
  display: inline;
  color: var(--gold);
}

.closing-inner > p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px auto 34px;
  color: rgba(255, 255, 255, 0.78);
}

.closing-star {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 34px;
}

.site-footer {
  padding: 78px 0 28px;
  background: var(--navy-950);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 70px;
}

.brand-footer {
  margin-bottom: 20px;
}

.footer-grid > div:first-child > p {
  max-width: 400px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.footer-grid h2 {
  margin: 4px 0 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.footer-grid > div:not(:first-child) a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid > div:not(:first-child) a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 62px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero {
  padding: 170px 0 104px;
  background:
    radial-gradient(circle at 80% 20%, rgba(47, 111, 143, 0.3), transparent 27%),
    var(--navy-950);
  color: white;
  text-align: center;
}

.page-hero .eyebrow {
  justify-content: center;
}

.page-hero h1 {
  max-width: 810px;
  margin-inline: auto;
  font-size: clamp(50px, 6vw, 78px);
}

.page-hero > .container > p:not(.eyebrow) {
  max-width: 680px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.69);
}

.search-form {
  display: grid;
  max-width: 690px;
  min-height: 66px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 42px auto 0;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.search-form > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.search-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search-form button {
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.questions-content {
  background: var(--white);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: -138px auto 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 16px 42px rgba(8, 29, 49, 0.09);
}

.category-filters a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.category-filters a:hover,
.category-filters a.active {
  background: var(--cream);
  color: var(--navy-900);
}

.results-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.results-heading h2 {
  font-size: clamp(36px, 4vw, 50px);
}

.results-heading > span {
  color: var(--muted);
  font-size: 13px;
}

.question-list {
  border-bottom: 1px solid var(--line);
}

.question-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 26px;
  padding: 34px 8px;
  border-top: 1px solid var(--line);
}

.question-row:first-child {
  border-top: 0;
}

.question-index {
  color: rgba(16, 47, 79, 0.3);
  font-family: Georgia, serif;
  font-size: 15px;
}

.question-row h3 {
  margin: 10px 0 8px;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.question-row h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.question-row p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.question-meta a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
  font-size: 18px;
}

.empty-state {
  padding: 80px 24px;
  text-align: center;
}

.empty-state > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 38px;
}

.empty-state h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.empty-state p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.article-hero {
  padding: 170px 0 92px;
  background:
    radial-gradient(circle at 82% 35%, rgba(47, 111, 143, 0.3), transparent 25%),
    var(--navy-950);
  color: white;
}

.article-header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: end;
  gap: 88px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.article-hero .back-link {
  color: rgba(255, 255, 255, 0.55);
}

.category-pill-light {
  display: flex;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(48px, 6vw, 76px);
}

.article-hero h1 + p {
  max-width: 740px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

.article-meta-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.article-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-family: Georgia, serif;
  font-size: 31px;
}

.article-meta-card dl {
  display: grid;
  gap: 15px;
  margin: 0;
}

.article-meta-card dl div {
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta-card dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-meta-card dd {
  margin: 2px 0 0;
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 720px);
  justify-content: center;
  gap: 70px;
  padding-top: 90px;
  padding-bottom: 112px;
}

.article-side {
  padding-top: 10px;
  color: var(--muted);
}

.article-side > span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-side > strong {
  display: block;
  margin: 3px 0 24px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 55px;
  font-weight: 400;
  line-height: 1;
}

.article-side > i {
  display: block;
  width: 36px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--gold);
}

.article-side > p {
  margin: 0;
  font-size: 12px;
}

.prose {
  color: #263d50;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.9;
}

.prose > p:first-child::first-letter {
  float: left;
  margin: 5px 10px 0 0;
  color: var(--red);
  font-size: 70px;
  line-height: 0.78;
}

.prose h2,
.prose h3 {
  color: var(--navy-900);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose h2 {
  margin: 58px 0 18px;
  font-size: 39px;
}

.prose h3 {
  margin: 44px 0 14px;
  font-size: 29px;
}

.prose p {
  margin: 0 0 25px;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 34px;
  padding-left: 25px;
}

.prose li::marker {
  color: var(--red);
}

.article-note {
  display: flex;
  gap: 20px;
  margin-top: 56px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--cream);
}

.article-note > span {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 25px;
}

.article-note h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.article-note p {
  margin: 0;
  color: var(--muted);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.related {
  background: var(--cream);
}

.error-page {
  display: flex;
  min-height: 760px;
  align-items: center;
  padding: 140px 0 90px;
  background: var(--cream);
  text-align: center;
}

.error-code {
  display: block;
  margin-bottom: 18px;
  color: rgba(216, 72, 59, 0.13);
  font-family: Georgia, serif;
  font-size: clamp(100px, 18vw, 190px);
  line-height: 0.7;
}

.error-page .eyebrow {
  justify-content: center;
}

.error-page h1 {
  color: var(--navy-900);
  font-size: clamp(43px, 6vw, 66px);
}

.error-page h1 + p {
  max-width: 550px;
  margin: 22px auto 0;
  color: var(--muted);
}

.error-page .hero-actions {
  justify-content: center;
}

.flash {
  position: relative;
  z-index: 80;
  margin-top: 104px;
  margin-bottom: -76px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.flash-success {
  background: #d9f1e7;
  color: #185b47;
}

.flash-error {
  background: #f8dedb;
  color: #832b24;
}

.admin-page,
.admin-auth-page {
  background: #f4f0e9;
}

.admin-auth {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 130px 24px 70px;
  background:
    radial-gradient(circle at 18% 25%, rgba(47, 111, 143, 0.22), transparent 28%),
    var(--navy-950);
}

.admin-auth-card {
  display: grid;
  width: min(100%, 990px);
  min-height: 570px;
  grid-template-columns: 1.05fr 0.95fr;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}

.admin-auth-intro {
  position: relative;
  padding: 70px 58px;
  overflow: hidden;
  background: var(--navy-900);
  color: white;
}

.admin-auth-intro::after {
  position: absolute;
  right: -190px;
  bottom: -250px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.admin-auth-intro h1 {
  font-size: 52px;
}

.admin-auth-intro h1 + p {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
}

.admin-auth-star {
  display: block;
  margin-bottom: 36px;
  color: var(--gold);
  font-size: 31px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  padding: 70px 58px;
}

.admin-form h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
}

.admin-form > p {
  margin: 5px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.admin-form label,
.field-group label,
.editor-panel > label {
  margin: 15px 0 7px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
}

.admin-form input,
.field-group input,
.field-group textarea,
.editor-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.admin-form input,
.field-group input,
.editor-panel select {
  min-height: 50px;
  padding: 0 14px;
}

.admin-form input:focus,
.field-group input:focus,
.field-group textarea:focus,
.editor-panel select:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(35, 85, 121, 0.1);
}

.login-form .button {
  margin-top: 24px;
}

.login-form .back-link {
  margin: 28px auto 0;
  color: var(--muted);
}

.admin-shell {
  min-height: 100vh;
  padding-top: 154px;
  background: #f4f0e9;
}

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 45px;
}

.admin-heading .eyebrow {
  margin-bottom: 14px;
}

.admin-heading h1 {
  font-size: 52px;
}

.admin-heading h1 + p {
  margin: 10px 0 0;
  color: var(--muted);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.admin-summary > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.admin-summary span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-summary strong {
  color: var(--navy-900);
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.admin-summary small {
  color: var(--muted);
  font-size: 11px;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.admin-table {
  width: 100%;
  min-width: 870px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 13px;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table td:first-child strong,
.admin-table td:first-child small {
  display: block;
}

.admin-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-published {
  background: #d9f1e7;
  color: #185b47;
}

.status-draft {
  background: #eee9df;
  color: #70685c;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.table-actions a,
.table-actions button {
  border: 0;
  background: none;
  color: var(--navy-700);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.table-actions button {
  color: var(--red);
}

.table-actions form {
  margin: 0;
}

.editor-container {
  max-width: 1120px;
}

.editor-container .admin-heading {
  align-items: flex-start;
}

.editor-container .back-link {
  margin-bottom: 15px;
  color: var(--muted);
}

.editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
}

.editor-main,
.editor-panel,
.editor-tip {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.editor-main {
  padding: 32px;
}

.field-group + .field-group {
  margin-top: 22px;
}

.field-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-group label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.field-group textarea {
  display: block;
  min-height: 120px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

.field-group textarea[name="body"] {
  min-height: 530px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.format-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.format-help code {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--navy-700);
  font-size: 10px;
}

.editor-sidebar {
  display: grid;
  gap: 15px;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.editor-panel h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 22px 0 !important;
  cursor: pointer;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--red);
}

.checkbox-row span {
  font-size: 12px;
  font-weight: 600;
}

.editor-panel .button {
  width: 100%;
}

.editor-tip {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: var(--navy-900);
  color: white;
}

.editor-tip > span {
  flex: 0 0 auto;
  color: var(--gold);
}

.editor-tip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.55;
}

.editor-tip strong {
  display: block;
  margin-bottom: 3px;
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .section {
    padding: 86px 0;
  }

  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy {
    max-width: 750px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .split-heading,
  .cooperation-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .split-heading > p {
    max-width: 700px;
  }

  .challenge-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenge-main {
    grid-column: 1 / -1;
  }

  .cooperation-art {
    width: min(100%, 540px);
    margin: 0 auto;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 46px 0;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 35px;
  }

  .article-header-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .article-meta-card {
    display: flex;
    max-width: 450px;
    align-items: center;
    gap: 28px;
  }

  .article-symbol {
    flex: 0 0 54px;
    margin: 0;
  }

  .article-meta-card dl {
    grid-template-columns: repeat(2, 1fr);
    flex: 1;
  }

  .article-layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 40px;
  }

  .admin-auth-card {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .admin-auth-intro,
  .admin-form {
    padding: 55px 40px;
  }

  .editor-form {
    grid-template-columns: 1fr;
  }

  .editor-sidebar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .header-inner {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: flex;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: var(--navy-950);
    opacity: 0;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease;
  }

  .main-nav.is-open {
    max-height: calc(100vh - 74px);
    padding: 18px 20px 30px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 17px;
  }

  .main-nav .nav-login {
    justify-content: center;
    margin-top: 16px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .admin-nav {
    gap: 12px;
    font-size: 11px;
  }

  .admin-nav a:first-child {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    gap: 44px;
    padding-top: 142px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: clamp(50px, 14vw, 68px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .province-list span:not(:last-child)::after {
    display: none;
  }

  .hero-visual {
    min-height: 420px;
  }

  .maritime-card {
    width: 100%;
  }

  .challenge-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .challenge-main {
    grid-column: auto;
  }

  .cooperation-art {
    min-height: 380px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .process p {
    max-width: 520px;
  }

  .library-heading,
  .results-heading,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-heading .text-link {
    margin-top: 10px;
  }

  .post-card {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 140px 0 92px;
  }

  .page-hero h1 {
    font-size: 49px;
  }

  .search-form {
    grid-template-columns: auto 1fr;
    border-radius: 20px;
  }

  .search-form button {
    grid-column: 1 / -1;
  }

  .category-filters {
    justify-content: flex-start;
    margin-top: -108px;
    margin-bottom: 60px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .category-filters a {
    flex: 0 0 auto;
  }

  .question-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
  }

  .question-meta {
    grid-column: 2;
    justify-content: flex-start;
  }

  .article-hero {
    padding: 138px 0 72px;
  }

  .article-hero h1 {
    font-size: 49px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 65px;
  }

  .article-side {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 12px;
  }

  .article-side > span,
  .article-side > strong,
  .article-side > i {
    margin: 0;
  }

  .article-side > strong {
    font-size: 38px;
  }

  .article-side > p {
    grid-column: 1 / -1;
  }

  .prose {
    font-size: 18px;
    line-height: 1.8;
  }

  .prose h2 {
    font-size: 33px;
  }

  .admin-auth {
    padding: 105px 14px 35px;
  }

  .admin-auth-card {
    grid-template-columns: 1fr;
  }

  .admin-auth-intro {
    padding: 42px 28px;
  }

  .admin-auth-intro h1 {
    font-size: 42px;
  }

  .admin-form {
    padding: 42px 28px;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .editor-main {
    padding: 20px;
  }

  .editor-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    font-size: 10px;
  }

  .brand-copy em {
    font-size: 20px;
  }

  .hero h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: 45px;
  }

  .map-dot b {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }
}
