/* Surrealian - a pixel match of the old Divi site without Divi.
   Every size, colour and breakpoint below was measured from the live site's
   computed styles (2026-10-25), not guessed. Breakpoints follow the old theme:
   1600 / 1200 / 1024 / 991 / 980 / 768 / 767 / 600 / 480 / 375 / 320.
   Phone values were re-measured on emulated iPhones (WebKit) and Android (Chromium). */
:root {
  --bg: #12171d;
  --banner: #13171c;
  --card: #2f363f;
  --muted: #939497;
  --menu-hover: #59616d;
  --tone-1: #fd8e32; --tone-2: #01d29f; --tone-3: #4657ce; --tone-4: #8637f5;
  --tone-5: #fc4422; --tone-6: #f7ca13; --tone-7: #ef6564; --tone-8: #e14591;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font: 400 22px/1.4 Montserrat, Helvetica, Arial, Lucida, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { display: block; fill: currentColor; }

/* ---- Header: centred logo above the banner; fixed bar with a burger below 981px */
.site-head { position: relative; height: 184px; padding-top: 35px; text-align: center; }
.logo { display: inline-block; vertical-align: top; margin-left: 6px; }
.logo img { width: 380px; height: auto; }
.burger, .mobile-menu { display: none; }

/* Fixed "⋮" page menu, top right */
/* While the section menu is stuck to the top, it drops below it (site.js sets --menu-h). */
.dots-menu.page-tools { position: fixed; top: 50px; right: 26px; z-index: 10000; }
.menu-stuck .dots-menu.page-tools { top: calc(var(--menu-h, 148px) + 25px); }

/* ---- "⋮" menus: icons stacked under the dots, shown on hover (or tap).
   Glyph sits 5px into a 24px box; the first icon starts 32px down, then 23px apart
   (the page menu: 35.5px, then 26px). */
.dots-menu { position: relative; }
.dots-menu__toggle { display: block; width: 7px; height: 24px; color: var(--muted); padding-top: 5px; }
.dots-menu__toggle .icon { width: 7px; height: 19px; }
.dots-menu__list {
  position: absolute; top: 22px; left: 50%; z-index: 9999;
  display: none; flex-direction: column; align-items: center; gap: 7px;
  width: 30px; margin-left: -15px; padding-top: 10px;
}
.page-tools .dots-menu__list { padding-top: 13.5px; gap: 10px; }
.dots-menu.is-open > .dots-menu__list { display: flex; }
@media (hover: hover) and (min-width: 981px) {
  .dots-menu:hover > .dots-menu__list { display: flex; }
}
.dots-menu__list > li { display: flex; justify-content: center; }
.play { display: block; color: var(--muted); }
.play .icon { width: 14px; height: 16px; }
.play .icon--pause, .play[aria-pressed="true"] .icon--play { display: none; }
.play[aria-pressed="true"] .icon--pause { display: block; }
.play:hover { color: #fff; }

/* Share: a small grey icon that opens a list of share links */
.share { position: relative; }
.share summary { list-style: none; cursor: pointer; display: block; }
.share summary::-webkit-details-marker { display: none; }
.share summary img { width: 16px; height: 16px; }
.share ul {
  position: absolute; top: -6px; right: calc(100% + 10px); z-index: 10001; min-width: 150px; padding: 6px 0;
  background: #1b2128; border: 1px solid #3a424c; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  font-size: 14px; line-height: 1.4;
}
.share a, .share button { display: block; width: 100%; padding: 6px 14px; text-align: left; white-space: nowrap; color: #fff; }
.share a:hover, .share button:hover { background: var(--card); }

/* ---- Banner (home, Manner Guidelines and statement pages) */
.banner {
  height: 96vh; padding-top: 0; text-align: center;
  background: var(--banner) url(/assets/img/hero.jpg) 50% 50% / cover no-repeat;
}
.banner h1 {
  width: 80%; margin: 0 auto 20px; padding-bottom: 10px;
  font-size: 78px; line-height: 1.2; font-weight: 500;
}
.visit-counter {
  position: relative; top: 70px; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 240px; margin: 0 auto; padding: 10px;
  background: #0e1012; font-size: 16px; line-height: 30.8px;
}
.visit-counter span { margin-left: .3em; min-width: 2.5ch; text-align: left; }

/* ---- Section menu bar; sticks to the top once scrolled past */
.main-menu { position: sticky; top: 0; z-index: 9990; background: var(--card); }
.main-menu ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.main-menu li { padding: 21px 0; line-height: 30.8px; }
.main-menu a { display: inline; padding: 26px 15px; font-size: 19px; color: #fff; }
.main-menu a:hover { background: var(--menu-hover); color: #fff; }
.main-menu a.active { background: #fff; color: #13171c; }

/* ---- Sections */
.section__box { position: relative; width: 80%; margin: 0 auto; padding: 100px 0; border-bottom: 1px solid var(--card); }
/* Inline flow, as on the old site: the ⋮ follows the heading, 16px after it (a space plus
   10px), and drops to its own line when a long heading fills the row. */
.page-head { position: relative; }
.page-head--center { text-align: center; }
.page-head--center .page-head__title { width: 100%; }
.page-head__title { display: inline-block; vertical-align: bottom; }
.page-head h1, .page-head h2 {
  margin: 0; font-family: Montserrat, sans-serif; font-size: 76px; line-height: 1; font-weight: 900;
  color: #fff; opacity: .11;
}
.page-head__small {
  margin: -33px 0 0; padding-bottom: 10px;
  font-family: Oswald, sans-serif; font-size: 34px; line-height: 1; letter-spacing: 5px; font-weight: 400;
}
.dots-menu--section { display: inline-block; vertical-align: bottom; margin: 9px 0 0 10px; top: -17px; }

/* 70px + the old grid's 12px row margins: first card 82px under the heading, 12px after the last. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 82px; margin-bottom: 12px; }
.card {
  position: relative; min-height: 200px; padding: 29px;
  background: var(--card); border-top: 3px solid var(--tone-1);
  font-size: 24px; line-height: 36px;
}
.tone-1 { border-top-color: var(--tone-1); } .tone-2 { border-top-color: var(--tone-2); }
.tone-3 { border-top-color: var(--tone-3); } .tone-4 { border-top-color: var(--tone-4); }
.tone-5 { border-top-color: var(--tone-5); } .tone-6 { border-top-color: var(--tone-6); }
.tone-7 { border-top-color: var(--tone-7); } .tone-8 { border-top-color: var(--tone-8); }
.card__text { margin: 0; font-size: inherit; line-height: inherit; }
.card__num {
  position: absolute; right: 8px; bottom: 0; z-index: 2;
  font-size: 12px; line-height: 30.8px; font-weight: 600; font-style: italic; color: var(--muted);
}
.card__num:hover { color: #fff; }
.card .dots-menu--card { position: absolute; top: 2px; right: 8px; z-index: 3; }
/* A statement page's like heart, top left on the card (where the old LikeBtn heart sat). */
.card__like { position: absolute; top: 8px; left: 6px; z-index: 4; display: inline-flex; }
.card__like .like { flex-direction: row; gap: 6px; font-size: 14px; }
.card__like .like .icon { width: 18px; height: 18px; }
.card:target { outline: 2px solid #2ea3f2; }

/* Statement page: the card alone in the first column, a white play button above it */
.stmt { position: relative; padding-top: 20px; }
.stmt__play { position: absolute; top: 2px; left: 20px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: #fff; }
.stmt__play .icon { width: 11px; height: 13px; }
.stmt__play .icon--pause, .stmt__play[aria-pressed="true"] .icon--play { display: none; }
.stmt__play[aria-pressed="true"] .icon--pause { display: block; }
.back a:hover { color: #fff; }
.back { width: 80%; margin: 24px auto 48px; font-size: 15px; }
.back a { color: var(--muted); }

/* ---- Like hearts and comment links in the "⋮" menus (2026-10-27): icon, count under it.
   Liked = LikeBtn's old red. */
.like, .comment-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 11px; line-height: 1; font-weight: 600;
}
.like .icon { width: 15px; height: 15px; }
.comment-link .icon { width: 17px; height: 13px; }   /* the old icon's 84 x 64 */
.like:hover, .comment-link:hover { color: #fff; }
.like[aria-pressed="true"], .like[aria-pressed="true"]:hover { color: #dd3333; }
.like__n:empty { display: none; }
.like.is-beating .icon { animation: like-beat .5s ease-out; }
@keyframes like-beat { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .like.is-beating .icon { animation: none; } }

/* ---- Comments under a statement (the approved ones), and the popup's form, which reuses the
   contact form's fields and messages. */
.comments { max-width: 1000px; margin: 70px 0 20px; scroll-margin-top: calc(var(--menu-h, 148px) + 20px); }
.comments__title, .comments__lead { font-family: Oswald, sans-serif; font-weight: 400; letter-spacing: 3px; }
.comments__title { margin: 0 0 24px; font-size: 34px; line-height: 1.1; }
.comments__lead { margin: 10px 0 4px; font-size: 22px; line-height: 1.2; }
.comments__list { display: grid; gap: 16px; margin: 0 0 40px; }
.comment { padding: 20px 24px; background: var(--card); border-left: 3px solid var(--muted); }
.comment__meta { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.comment__meta time { margin-left: 8px; color: var(--muted); }
.comment__text { margin: 0; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.contact__form.comments__form { margin: 0; }
.contact__form.comments__form button[type=submit] { justify-self: start; margin-top: 8px; }

/* ---- The comment popup (a card's comment icon opens it): the card colour, dark fields as in
   the contact section. */
.comment-dialog {
  position: fixed; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  margin: auto; padding: 26px 26px 22px; border: 0; border-top: 3px solid var(--muted);
  background: var(--card); color: #fff; box-shadow: 0 10px 50px rgba(0, 0, 0, .6);
}
.comment-dialog::backdrop { background: rgba(8, 10, 14, .72); }
.comment-dialog__close { position: absolute; top: 6px; right: 12px; font-size: 30px; line-height: 1; color: var(--muted); }
.comment-dialog__close:hover { color: #fff; }
.comment-dialog .comments__lead { margin: 0; }
.comment-dialog__on { margin: 2px 0 6px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.comment-dialog__on a { color: #fff; text-decoration: underline; }
.comment-dialog__on a::before { content: "·"; display: inline-block; margin: 0 7px; color: var(--muted); text-decoration: none; }
.comment-dialog .contact__form.comments__form textarea { height: 140px; }
@media (max-width: 600px) {
  .comment-dialog { padding: 22px 16px 18px; }
  .comment-dialog .contact__row { grid-template-columns: 1fr; gap: 11px; }
}

/* ---- Contact ("Pursuers of Good") */
.contact { background: var(--card); padding: 70px 0; }
.contact__box { width: 80%; margin: 0 auto; padding: 0 12px; }
/* Bottom margin: measured from the old form (its 60px margin plus CF7's empty result area). */
.contact__form { margin: 60px 8px 92px; display: grid; gap: 11px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.contact__form input, .contact__form textarea {
  display: block; width: 100%; padding: 16px 20px; border: 0; border-radius: 0;
  background: var(--banner); color: #fff; font: 400 15px/30px Montserrat, Helvetica, Arial, sans-serif;
}
.contact__form textarea { height: 332px; resize: vertical; }
.contact__form ::placeholder { color: #757575; opacity: 1; }
.contact__form input:focus, .contact__form textarea:focus { outline: 0; }
.contact__form button[type=submit] {
  justify-self: center; margin-top: 19px; padding: 14px 44px;
  background: #fff; color: #13171c; font-size: 18px; font-weight: 500; line-height: 30.8px;
}
.contact__form button[disabled] { opacity: .6; cursor: wait; }
/* Result box and field tips: Contact Form 7's look and colours */
.contact__status { margin: 1em 0.5em 0; padding: 0.2em 1em; border: 2px solid #00a0d2; font-size: 16px; line-height: 1.6; }
.contact__status[hidden] { display: none; }
.contact__status--sent { border-color: #46b450; }
.contact__status--failed { border-color: #dc3232; }
.contact__status--invalid { border-color: #ffb900; }
.contact__tip { display: block; margin-top: 4px; color: #dc3232; font-size: 15px; line-height: 1.4; }
.contact__form [aria-invalid="true"] { box-shadow: inset 0 0 0 1px #dc3232; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Back to top */
.to-top {
  position: fixed; right: 10px; bottom: 10px; z-index: 9999; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 5px; background: var(--card); color: #fff;
  box-shadow: 2px 2px 50px #080606; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top .icon { width: 20px; height: 20px; }

/* ---- Breakpoints (from the old theme) */
@media (min-width: 1601px) {
  .banner h1 { font-size: 86px; margin-bottom: 0; }
  .visit-counter { top: 70px; }
}
@media (min-width: 1801px) {
  .main-menu a { padding: 21px; }
}
@media (max-width: 1696px) and (min-width: 1441px) {
  .banner { height: 95vh; }
}
@media (max-width: 1200px) {
  .banner { height: 84vh; }
  .banner h1 { font-size: 71px; }
  .main-menu a { font-size: 15px; padding: 17px 10px; }
  .page-head h1, .page-head h2 { font-size: 66px; }
  .card { padding: 20px; font-size: 18px; line-height: 36px; }
}
@media (max-width: 1024px) {
  .banner { height: 72vh; }
  .banner h1 { font-size: 48px; margin-bottom: 10px; }
}
@media (max-width: 991px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .site-head {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 106px;
    padding: 24px 0 22px; background: var(--banner); text-align: left;
  }
  .logo { margin-left: calc(2.5% + 8px); position: relative; z-index: 2; }   /* stays on top of the open menu */
  .logo img { width: 195px; }
  .burger { display: flex; flex-direction: column; justify-content: space-between; position: absolute; top: 32px; right: 27px; width: 20px; height: 14px; }
  .burger span { display: block; width: 100%; height: 2px; background: var(--muted); }
  .mobile-menu:not([hidden]) {
    display: block; position: absolute; top: 56px; left: 0; right: 0; z-index: 1;
    padding: 5%; background: var(--bg); border-top: 3px solid #1f262e; box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .mobile-menu a { display: block; padding: 10px 0; font-size: 14px; line-height: 23px; font-weight: 600; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  .dots-menu.page-tools { right: 12px; }
  .scrolled .dots-menu.page-tools { display: none; }   /* the old site hid it once you scrolled */
  .dots-menu--section .dots-menu__list { gap: 6px; }
  .dots-menu--card .dots-menu__list { padding-top: 8px; gap: 5px; }
  .share summary img { width: 14px; height: 14px; }
  .main-menu { display: none; }
  .has-banner .banner { margin-top: 175px; height: 57vh; }
  .banner h1 { position: relative; top: -50px; font-size: 55px; margin-bottom: 10px; }
  .visit-counter { top: 20px; }
  .no-banner main { padding-top: 106px; }
  .section__box { padding-top: 125px; }
  .contact__box { width: 95%; }
  .contact .page-head h2 { margin-top: 25px; }
  .page-head h1, .page-head h2 { font-size: 50px; }
  .card { min-height: 130px; }
}
@media (max-width: 800px) {
  .banner h1 { font-size: 50px; }
}
@media (max-width: 768px) {
  .banner h1 { top: -30px; font-size: 45px; margin: 0 auto 20px; }
  .visit-counter { top: 40px; }
  .page-head__small { font-size: 24px; margin-top: -24px; }
  .card { padding: 24px; }
}
@media (max-width: 767px) {
  .page-head h1, .page-head h2 { font-size: 59px; }
  .page-head { padding-bottom: 12px; }   /* with .cards' 70px: same 82px gap, and the ⋮ sits 12px higher */
  .cards { margin-top: 70px; }
  .contact .page-head { padding-bottom: 0; }
  .card { line-height: 1.47; }
  .card .dots-menu--card { top: -3px; }
  .stmt__play { top: -3px; left: 34px; }
}
@media (max-width: 600px) {
  .has-banner .banner { height: 70vh; }
  .banner h1 { top: -30px; width: 90%; padding-bottom: 0; font-size: 32px; line-height: 1.3; }
  .visit-counter { top: 40px; }
  .dots-menu.page-tools { right: 26px; }
  .section__box, .back { width: 90%; }
  .page-head h1, .page-head h2 { font-size: 42px; }
  .page-head__title { width: 292px; }   /* fixed on the old site: long headings wrap */
  .dots-menu--section { position: absolute; top: 11px; right: 10px; margin: 0; }
  .contact__form { gap: 15px; }
  .contact__form button[type=submit] { margin-top: 15px; }
  .contact__row { grid-template-columns: 1fr; gap: 15px; }
  .card__num { right: 6px; bottom: -4px; }
}
@media (max-width: 480px) {
  .banner h1 { top: -10px; font-size: 30px; margin-top: 0; }
  .visit-counter { top: 60px; }
  .dots-menu.page-tools { right: 22px; }
}
@media (max-width: 375px) {
  .site-head { height: 83px; }
  .logo img { width: 120px; }
  .no-banner main { padding-top: 83px; }
  .dots-menu.page-tools { right: 16px; }
  .dots-menu--section { right: 8px; }
}
@media (max-width: 320px) {
  .page-head h1, .page-head h2 { font-size: 38px; }
  .dots-menu--section { top: 9px; }
}
/* ---- Manner Guidelines page: one column of wide cards, labelled "Manner 1", "Manner 2"... */
.section--manner .section__box { padding: 200px 16px 100px; }
.section--manner .cards { grid-template-columns: minmax(0, 1fr); margin: 82px 4px 12px; }
.section--manner .card { min-height: 0; padding: 29px 52px; font-size: 22px; line-height: 30px; }
.section--manner .card__num { right: 7px; }
.section--manner .card .dots-menu--card { top: 7px; right: 12px; }
@media (max-width: 980px) {
  .section--manner .section__box { padding: 225px 0 100px; }
}
@media (max-width: 768px) {
  .section--manner .card { padding: 24px 48px 24px 44px; }
}
@media (max-width: 767px) {
  .section--manner .card { line-height: 30px; }
  .section--manner .cards { margin-top: 70px; }
}
@media (max-width: 600px) {
  .section--manner .cards { margin-left: 0; margin-right: 0; }
  .section--manner .card .dots-menu--card { top: 6px; right: 11px; }
  .section--manner .card__num { bottom: 0; }
  .section--manner .dots-menu--section { top: 32px; }
}
@media (max-width: 320px) {
  .section--manner .dots-menu--section { top: 28px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .to-top { transition: none; } }
