:root {
  --page-bg: #f6efe5;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(92, 58, 21, 0.12);
  --text-main: #2b1f14;
  --text-muted: #6e5847;
  --accent: #a84f2f;
  --accent-dark: #6d2d17;
  --shadow-soft: 0 24px 60px rgba(63, 33, 12, 0.12);
  --shell-width: 1120px;
  --osl-public-hero-min-height: 566px;
  --osl-public-hero-min-height-mobile: 460px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 214, 176, 0.75), transparent 32%),
    linear-gradient(180deg, #fbf5ee 0%, var(--page-bg) 100%);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

a {
  color: inherit;
}

.legal-consent-group {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.legal-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.legal-consent-check input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0.32em 0 0;
}

.legal-consent-check span {
  flex: 1 1 auto;
  min-width: 0;
}

.legal-consent-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.legal-consent-button:hover {
  opacity: 0.78;
}

.legal-consent-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

body.osl-light-header-page {
  padding-top: 92px;
}

body.osl-light-header-page .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.osl-light-header-page .site-header .logo {
  height: 48px;
  width: auto;
  max-width: none;
  margin: 0;
  display: block;
}

body.osl-light-header-page .site-header nav {
  margin-top: 0;
}

body.osl-light-header-page .site-header .site-header__nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

body.osl-light-header-page .site-header nav li {
  margin: 0;
  line-height: 1;
}

body.osl-light-header-page .site-header .site-header__nav > ul > li > a {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 20, 15, 0.65);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0;
  display: block;
}

body.osl-light-header-page .site-header nav a:hover,
body.osl-light-header-page .site-header nav a.active {
  color: #1a1210;
}

body.osl-light-header-page #main-content {
  padding: 0;
}

body.osl-temple-header-page {
  padding-top: 92px;
}

body.osl-temple-header-page .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--osl-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--osl-header-border);
}

body.osl-temple-header-page .site-header .logo {
  height: 48px;
  width: auto;
  max-width: none;
  margin: 0;
  display: block;
}

body.osl-temple-header-page .site-header .site-header__nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

body.osl-temple-header-page .site-header nav li {
  margin: 0;
  line-height: 1;
}

body.osl-temple-header-page .site-header .site-header__nav > ul > li > a {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--osl-header-link);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

body.osl-temple-header-page .site-header nav a:hover,
body.osl-temple-header-page .site-header nav a.active {
  color: var(--osl-header-link-active);
}

body.osl-white-header-page {
  --osl-header-bg: rgba(10, 10, 15, 0.88);
  --osl-header-border: rgba(255, 255, 255, 0.06);
  --osl-header-link: rgba(240, 236, 229, 0.7);
  --osl-header-link-active: #f0ece5;
}

body.osl-red-header-page {
  --osl-header-bg: rgba(15, 7, 7, 0.9);
  --osl-header-border: rgba(255, 255, 255, 0.06);
  --osl-header-link: rgba(240, 236, 229, 0.7);
  --osl-header-link-active: #f0ece5;
}

body.osl-dark-header-page {
  --osl-header-bg: rgba(6, 5, 14, 0.92);
  --osl-header-border: rgba(255, 255, 255, 0.05);
  --osl-header-link: rgba(240, 236, 229, 0.65);
  --osl-header-link-active: #f0ece5;
}

@media (min-width: 901px) {
  .site-header__item--has-children {
    position: relative;
  }

  .site-header__item--has-children > .site-header__submenu {
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1001;
    min-width: max-content;
    margin: 0;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 6px);
    background: var(--osl-header-bg, rgba(255, 255, 255, 0.98));
    border: 1px solid var(--osl-header-border, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(20, 14, 11, 0.18);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .site-header__item--has-children > .site-header__submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }

  .site-header__item--has-children > .site-header__submenu a {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--osl-header-link, rgba(30, 20, 15, 0.65));
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    white-space: nowrap;
    opacity: 0.62;
    display: block;
  }

  .site-header__item--has-children > .site-header__submenu a::before {
    content: '— ';
  }

  .site-header__item--has-children:hover > .site-header__submenu,
  .site-header__item--has-children:focus-within > .site-header__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }

  .site-header__item--has-children:hover > .site-header__submenu a.active,
  .site-header__item--has-children:focus-within > .site-header__submenu a.active {
    opacity: 1;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#main-content {
  padding: 4rem 0 5rem;
}

.hero {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.hero {
  width: min(calc(100% - 2rem), var(--shell-width));
  margin: 0 auto 2rem;
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
  border-radius: 28px;
}

.hero h1 {
  max-width: 12ch;
  margin: 0.25rem 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.94;
}

.hero p {
  max-width: 64ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.article-hero,
.guides-hero,
.about-hero-banner,
.key-banner,
.page-hero,
.banner.about3-banner,
.community-banner,
.coaching-banner--hero,
.banner-6 {
  height: var(--osl-public-hero-min-height);
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .article-hero,
  .guides-hero,
  .about-hero-banner,
  .key-banner,
  .page-hero,
  .banner.about3-banner,
  .community-banner,
  .coaching-banner--hero,
  .banner-6 {
    height: var(--osl-public-hero-min-height-mobile);
  }
}

.site-footer {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 60px 20px 30px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a {
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ff5757;
}

.copyright {
  font-size: 14px;
  color: #000000;
  margin-top: 20px;
}

.terms-link {
  padding: 0;
  border: 0;
  background: none;
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  font: inherit;
}

.terms-link:hover {
  color: #ff5757;
}

/* Modal text link trigger */
.text-modal-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #ff5757;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.text-modal-trigger:hover {
  color: #d44949;
}

.agreement-signature-panel {
  display: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: block;
}

.modal-content {
  display: flex;
  flex-direction: column;
  width: min(90%, 800px);
  max-height: 85vh;
  margin: 5% auto;
  padding: 0;
  border-radius: 10px;
  background-color: #ffffff;
  color: #1a1210;
  animation: slideDown 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-radius: 10px 10px 0 0;
  background-color: #faf4ed;
}

.modal-header h2 {
  margin: 0;
  font-size: 26px;
}

/* Prevent page-level h2 overrides from bleeding into modal headers */
.modal .modal-header h2 {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 26px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.close-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
  color: #2b1f14;
}

.modal-body h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 18px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p,
.modal-body li {
  font-size: 15px;
  font-weight: 300;
  color: #2b1f14;
  line-height: 1.6;
}

.modal-body a {
  color: #a84f2f;
}

.modal-body a:hover {
  color: #6d2d17;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.modal-body li {
  margin-bottom: 8px;
}

.faq-section {
  margin-bottom: 30px;
}

.faq-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #faf4ed;
  color: #ff5757;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #faf4ed;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  width: 100%;
  border: 0;
  background-color: #faf4ed;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #1a1210;
  text-align: left;
}

.faq-question:focus-visible {
  outline: 2px solid var(--highlight-solid);
  outline-offset: -2px;
}

.faq-question > * {
  pointer-events: none;
}

.faq-toggle {
  display: inline-block;
  flex-shrink: 0;
  margin-left: 15px;
  color: var(--accent-solid, #a0503c);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p,
.faq-answer li {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(30, 20, 15, 0.62);
  line-height: 1.8;
}

.faq-answer a {
  color: #a0503c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  opacity: 0.75;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 15px 20px;
}

/* Native <details> accordion override */
details.faq-item {
  cursor: pointer;
}

details.faq-item > summary.faq-question {
  list-style: none;
}

details.faq-item > summary.faq-question::-webkit-details-marker {
  display: none;
}

details.faq-item .faq-answer {
  max-height: none;
  padding: 15px 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Mobile Hamburger Nav ─── */
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px -10px -10px 0;
  z-index: 1002;
  color: inherit;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -7px;
  left: 0;
}

.hamburger-inner::after {
  content: "";
  bottom: -7px;
  left: 0;
}

body.osl-light-header-page .hamburger-inner,
body.osl-light-header-page .hamburger-inner::before,
body.osl-light-header-page .hamburger-inner::after {
  background-color: rgba(30, 20, 15, 0.8);
}

body.osl-temple-header-page .hamburger-inner,
body.osl-temple-header-page .hamburger-inner::before,
body.osl-temple-header-page .hamburger-inner::after,
body.osl-red-header-page .hamburger-inner,
body.osl-red-header-page .hamburger-inner::before,
body.osl-red-header-page .hamburger-inner::after {
  background-color: rgba(240, 236, 229, 0.8);
}

.site-header.is-open .hamburger-inner {
  transform: translateY(-50%) rotate(45deg);
}

.site-header.is-open .hamburger-inner::before {
  opacity: 0;
}

.site-header.is-open .hamburger-inner::after {
  transform: rotate(-90deg);
  bottom: 0;
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: block;
    flex-shrink: 0;
    margin-right: 15px; /* Send it more towards the center */
  }

  .site-header__top {
    width: 100%;
    align-items: center;
  }

  .site-header__top > a {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-header__top .logo {
    max-height: 36px;
    width: auto;
    max-width: 100%;
  }

  .site-header__nav {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 10px;
  }

  .site-header.is-open .site-header__nav {
    display: block;
  }

  body.osl-light-header-page {
    padding-top: 76px;
  }

  body.osl-temple-header-page {
    padding-top: 76px;
  }

  body.osl-light-header-page .site-header {
    padding: 14px 20px;
    display: block;
  }

  body.osl-temple-header-page .site-header {
    padding: 14px 20px;
    display: block;
  }

  body.osl-light-header-page .site-header .site-header__nav > ul,
  body.osl-temple-header-page .site-header .site-header__nav > ul {
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
  }

  /* Temple Nights submenu indentation on mobile */
  .site-header__item--has-children {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .site-header__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 4px 0 0 0;
    padding: 20px 0 0 0;
    min-width: 0;
  }

  .site-header__submenu a {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--osl-header-link, rgba(30, 20, 15, 0.65));
    opacity: 0.62;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    display: block;
  }

  .site-header__submenu a:hover,
  .site-header__submenu a.active {
    color: var(--osl-header-link-active, #1a1210);
    opacity: 1;
  }

  .site-header__submenu a::before {
    content: '— ';
  }

  .footer-links {
    gap: 16px 22px;
  }
}

/* GDPR Modal Styles */
.info-box--action h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.request-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.request-form__input {
  flex: 1 1 200px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(30, 20, 15, 0.2);
  border-radius: 2px;
  font-size: 14px;
}

.request-form__button {
  min-height: 48px;
  padding: 10px 20px;
  background: rgba(180, 60, 60, 0.88);
  color: #ffffff;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.request-form__button:hover {
  background: rgba(200, 70, 70, 1);
  box-shadow: 0 0 18px rgba(200, 70, 70, 0.35);
}

.request-form__button--secondary {
  background: rgba(168, 79, 47, 0.9);
}

.request-form__button--secondary:hover {
  background: rgba(188, 92, 58, 1);
}

.request-message {
  margin-top: 8px;
  font-size: 12px;
  min-height: 18px;
  width: 100%;
}

.request-message.is-pending { color: #6e5847; }
.request-message.is-success { color: #2e7d32; }
.request-message.is-error { color: #c62828; }

.gdpr-tools {
  margin-top: 20px;
}


