/* =========================================================
   OOMBAM COMMUNITY BLOSSOMS — GUIDELINE PAGES
========================================================= */

:root {
  --pink: #ef789b;
  --pink-soft: #fde7ed;
  --blue: #559bd1;
  --blue-soft: #eaf5ff;
  --ivory: #fffdf9;
  --text: #29394d;
  --text-soft: #6f7278;
  --brown: #74534c;
  --border: rgba(217, 168, 166, 0.30);
  --shadow: 0 14px 38px rgba(78, 59, 65, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  line-height: 1.68;
  background:
    radial-gradient(circle at 10% 5%, rgba(234,245,255,.85), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(253,231,237,.90), transparent 30%),
    linear-gradient(180deg, #fffdfb, #fff9f8 52%, #f8fbff);
}

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

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

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

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,253,250,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(50,50,50,.06);
}

.header-inner {
  width: min(1500px, calc(100% - 70px));
  height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 42px;
}

.site-logo {
  width: 145px;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 60px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.7vw, 48px);
  flex: 1;
}

.desktop-nav a {
  position: relative;
  padding: 34px 0 29px;
  font-size: .83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--blue);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21px;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 23px;
  height: 2px;
  background: var(--text);
  transition: .25s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* PAGE HERO */

.guideline-hero {
  padding: clamp(64px, 8vw, 110px) 0 52px;
  text-align: center;
}

.guideline-kicker {
  margin-bottom: 12px;
  color: var(--pink);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
}

.guideline-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 600;
  line-height: .98;
  text-transform: uppercase;
}

.guideline-script {
  display: block;
  margin-top: 6px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  text-transform: none;
  color: var(--pink);
}

.guideline-intro {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--text-soft);
  font-size: .98rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--brown);
  font-size: .78rem;
}

/* CONTENT */

.guideline-main {
  padding: 0 0 80px;
}

.guideline-note {
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  color: var(--text-soft);
  box-shadow: var(--shadow);
}

.guideline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rule-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.rule-card::after {
  content: "🌸";
  position: absolute;
  right: 16px;
  bottom: 8px;
  opacity: .08;
  font-size: 4rem;
}

.rule-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: #b74c6b;
  font-size: .72rem;
  font-weight: 600;
}

.rule-card h2 {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.rule-card p,
.rule-card li {
  color: var(--text-soft);
  font-size: .85rem;
}

.rule-card ul {
  margin: 10px 0 0 18px;
}

.rule-card li + li {
  margin-top: 6px;
}

.full-width {
  grid-column: 1 / -1;
}

.promise-card {
  margin-top: 22px;
  padding: 34px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(234,245,255,.78), rgba(253,231,237,.72));
}

.promise-card h2 {
  font-family: "Great Vibes", cursive;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--brown);
}

.promise-card p {
  max-width: 780px;
  margin: 8px auto 0;
  color: var(--text-soft);
  font-size: .88rem;
}

/* FOOTER */

.site-footer {
  padding: 28px 0 15px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fffdfb;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  width: 120px;
}

.footer-inner p {
  color: var(--text-soft);
  font-size: .7rem;
}

.footer-message {
  font-family: "Great Vibes", cursive;
  font-size: 1.45rem !important;
  color: #557da4 !important;
}

.footer-bottom {
  margin-top: 18px;
  text-align: center;
  color: #aaa;
  font-size: .62rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .guideline-container {
    width: min(100% - 34px, 720px);
  }

  .header-inner {
    width: calc(100% - 34px);
    height: 74px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(255,253,250,.98);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: max-height .35s, opacity .25s;
  }

  .mobile-menu.open {
    max-height: 600px;
    opacity: 1;
  }

  .mobile-menu a {
    padding: 15px 25px;
    border-top: 1px solid rgba(0,0,0,.04);
    font-size: .78rem;
    text-transform: uppercase;
  }

  .mobile-menu a.active {
    color: var(--blue);
    background: #f4f9fd;
  }

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

  .full-width {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .guideline-container {
    width: calc(100% - 24px);
  }

  .site-logo {
    width: 115px;
  }

  .guideline-hero {
    padding-top: 48px;
  }

  .guideline-hero h1 {
    font-size: 2.55rem;
  }

  .guideline-script {
    font-size: 3rem;
  }

  .rule-card {
    padding: 22px 20px;
  }

  .promise-card {
    padding: 28px 20px;
  }
}

/* =========================================================
   COMMUNITY GUIDELINES v3
   STANDARDIZED OOMBAM SITE SHELL
   Baseline: original Guidelines CSS supplied by user
========================================================= */

/* ---------------------------------------------------------
   OUTER SITE SHELL
--------------------------------------------------------- */

body {
  min-height: 100vh;

  padding: clamp(18px, 2.4vw, 36px);

  background:
    linear-gradient(
      135deg,
      #dcecf6 0%,
      #f5f7f8 48%,
      #f7e6eb 100%
    );
}

.site-shell {
  width: min(1540px, 100%);
  margin: 0 auto;

  overflow: hidden;

  background: var(--ivory);

  border: 1px solid rgba(72, 66, 69, .08);
  border-radius: 24px;

  box-shadow:
    0 22px 60px rgba(60, 70, 78, .10);
}

/* ---------------------------------------------------------
   STANDARDIZED HEADER
--------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;

  z-index: 1000;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;

  min-height: 86px;

  padding: 0 32px;

  background: rgba(255, 253, 250, .95);

  border-bottom: 1px solid rgba(50, 50, 50, .06);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  grid-column: 1;

  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 108px;
  max-height: 64px;

  object-fit: contain;
}

.desktop-nav {
  grid-column: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(15px, 1.45vw, 26px);

  flex: initial;
}

.nav-link,
.desktop-nav a {
  position: relative;

  padding: 33px 0 28px;

  color: #514d50;

  font-size: .72rem;
  font-weight: 600;

  text-transform: none;
  letter-spacing: .025em;

  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--blue);
}

.nav-link.active::after,
.desktop-nav a.active::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;

  height: 2px;

  background: var(--blue);

  border-radius: 999px;
}

.header-actions {
  grid-column: 3;

  display: flex;
  align-items: center;

  gap: 8px;
}

.header-icon,
.menu-toggle {
  width: 38px;
  height: 38px;

  display: inline-grid;
  place-items: center;

  flex: 0 0 auto;

  border: 0;
  border-radius: 50%;

  color: #514d50;
  background: transparent;
}

.header-icon:hover,
.menu-toggle:hover {
  background: rgba(85, 155, 209, .08);
}

.header-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  margin-left: 0;
}

.menu-toggle span {
  width: 19px;
  height: 1.5px;

  display: block;

  background: currentColor;

  transition:
    transform .25s ease,
    opacity .25s ease;
}

.menu-toggle span + span {
  margin-top: 4px;
}

/* ---------------------------------------------------------
   SEARCH PANEL
--------------------------------------------------------- */

.guideline-search {
  position: sticky;
  top: 86px;

  z-index: 920;

  padding: 16px 32px;

  background: rgba(255, 253, 250, .97);

  border-bottom: 1px solid rgba(50, 50, 50, .06);

  backdrop-filter: blur(16px);
}

.guideline-search[hidden] {
  display: none;
}

.guideline-search-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.guideline-search label {
  display: block;

  margin-bottom: 8px;

  color: var(--text-soft);

  font-size: .68rem;
  font-weight: 600;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.guideline-search-row {
  display: grid;
  grid-template-columns: 1fr auto;

  gap: 9px;
}

.guideline-search input {
  width: 100%;

  padding: 11px 14px;

  color: var(--text);
  background: #fff;

  border: 1px solid rgba(68, 68, 72, .12);
  border-radius: 10px;

  outline: none;
}

.guideline-search input:focus {
  border-color: rgba(85, 155, 209, .55);

  box-shadow:
    0 0 0 3px rgba(85, 155, 209, .10);
}

.guideline-search button {
  padding: 0 18px;

  color: white;
  background: var(--blue);

  border: 0;
  border-radius: 10px;
}

#guidelineSearchStatus {
  min-height: 18px;

  margin-top: 7px;

  color: var(--text-soft);

  font-size: .69rem;
}

.guideline-search-hit {
  outline: 2px solid rgba(239, 120, 155, .48);
  outline-offset: 4px;

  box-shadow:
    0 0 0 7px rgba(239, 120, 155, .08),
    0 16px 34px rgba(75, 68, 70, .08);
}

/* ---------------------------------------------------------
   MOBILE NAVIGATION
--------------------------------------------------------- */

.mobile-menu {
  display: none;
}

.mobile-menu-panel {
  display: flex;
  flex-direction: column;
}

.mobile-menu-panel a {
  color: #514d50;
}

/* ---------------------------------------------------------
   SMALL REFINEMENTS TO ORIGINAL GUIDELINES CONTENT
   Keep the original page design, just fit it to the shell.
--------------------------------------------------------- */

.guideline-hero {
  border-bottom:
    1px solid rgba(50, 50, 50, .055);
}

.guideline-main {
  padding-top: 42px;
}

.guideline-note {
  margin-bottom: 28px;
}

.rule-card {
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.rule-card:hover {
  transform: translateY(-3px);

  border-color:
    rgba(239, 120, 155, .38);

  box-shadow:
    0 18px 42px rgba(78, 59, 65, .10);
}

/* ---------------------------------------------------------
   STANDARDIZED FOOTER
--------------------------------------------------------- */

.site-footer {
  padding:
    0
    clamp(22px, 3vw, 38px)
    10px;

  background: var(--ivory);

  border-top:
    1px solid rgba(74, 65, 68, .08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 72px 26px;

  align-items: center;

  width: 100%;
  min-height: 108px;

  padding: 6px 0 0;

  column-gap: 28px;
}

.footer-left {
  grid-column: 1;
  grid-row: 1;

  justify-self: start;

  display: flex;
  align-items: center;

  gap: 20px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;

  flex: 0 0 auto;
}

.footer-brand img {
  width: 82px;
  max-height: 64px;

  object-fit: contain;
}

.footer-main {
  margin: 0;

  color: #656064;

  font-size: .72rem;
  font-weight: 600;

  line-height: 1.35;

  text-align: left;
  white-space: nowrap;
}

.footer-message {
  grid-column: 2;
  grid-row: 1;

  justify-self: end;
  align-self: center;

  margin: 0;

  color: #557da4 !important;

  font-family: "Great Vibes", cursive !important;
  font-size: 1.38rem !important;

  line-height: 1;

  text-align: right;
  white-space: nowrap;
}

.footer-copyline {
  grid-column: 1 / 3;
  grid-row: 2;

  width: 100%;

  margin: 0;
  padding-top: 7px;

  color: #8a8285;

  border-top:
    1px solid rgba(74, 65, 68, .06);

  font-size: .61rem;

  line-height: 1.3;

  text-align: center;
}

/* ---------------------------------------------------------
   DARK MODE
--------------------------------------------------------- */

body.dark-theme {
  background: #090a0c;
}

.dark-theme .site-shell,
.dark-theme .site-header,
.dark-theme .guideline-search,
.dark-theme .site-footer {
  background: #1b1b1f;
}

.dark-theme .site-shell {
  border-color: #1b1b1f;

  box-shadow: none;
}

.dark-theme .site-header,
.dark-theme .guideline-search,
.dark-theme .site-footer {
  border-color: rgba(255, 255, 255, .06);
}

.dark-theme .nav-link,
.dark-theme .desktop-nav a,
.dark-theme .header-icon,
.dark-theme .menu-toggle {
  color: rgba(255, 255, 255, .78);
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active,
.dark-theme .desktop-nav a:hover,
.dark-theme .desktop-nav a.active {
  color: #aed0e7;
}

.dark-theme .guideline-search label,
.dark-theme #guidelineSearchStatus {
  color: rgba(255, 255, 255, .56);
}

.dark-theme .guideline-search input {
  color: #f5f3f4;
  background: #242429;

  border-color: rgba(255, 255, 255, .08);
}

.dark-theme .guideline-hero {
  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(85, 155, 209, .09),
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(239, 120, 155, .08),
      transparent 30%
    ),
    #202126;
}

.dark-theme .guideline-hero h1,
.dark-theme .rule-card h2 {
  color: #f2eef0;
}

.dark-theme .guideline-intro,
.dark-theme .guideline-note,
.dark-theme .rule-card p,
.dark-theme .promise-card p {
  color: rgba(255, 255, 255, .64);
}

.dark-theme .guideline-main {
  background: #1d1e22;
}

.dark-theme .guideline-note,
.dark-theme .rule-card {
  background: #24252a;

  border-color: rgba(255, 255, 255, .07);
}

.dark-theme .promise-card {
  background:
    linear-gradient(
      120deg,
      rgba(85, 155, 209, .08),
      rgba(239, 120, 155, .07)
    ),
    #24252a;

  border-color: rgba(255, 255, 255, .07);
}

.dark-theme .promise-card h2 {
  color: #e8c8d1;
}

.dark-theme .back-link {
  color: #b7d4e8;
  background: rgba(255, 255, 255, .04);

  border-color: rgba(255, 255, 255, .08);
}

.dark-theme .footer-main {
  color: rgba(255, 255, 255, .70);
}

.dark-theme .footer-message {
  color: #a9cee5 !important;
}

.dark-theme .footer-copyline {
  color: rgba(255, 255, 255, .48);

  border-top-color: rgba(255, 255, 255, .06);
}

/* =========================================================
   TABLET / MOBILE NAV
========================================================= */

@media (max-width: 1100px) {

  body {
    padding: 14px;
  }

  .site-shell {
    border-radius: 20px;
  }

  .site-header {
    min-height: 80px;

    padding: 0 22px;
  }

  .brand-logo {
    width: 92px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .guideline-search {
    top: 80px;

    padding-inline: 22px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;

    z-index: 950;

    display: none;

    justify-content: flex-end;

    padding: 12px;

    background: rgba(25, 24, 27, .18);

    backdrop-filter: blur(4px);
  }

  .mobile-menu.is-open,
  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu-panel {
    width: min(330px, 72vw);
    max-height: calc(100dvh - 24px);

    margin-left: auto;
    padding: 24px 22px;

    overflow-y: auto;

    background:
      linear-gradient(
        155deg,
        #fffdfb,
        #fbf0f3 58%,
        #edf6fb
      );

    border:
      1px solid rgba(70, 60, 64, .10);
    border-radius: 18px;

    box-shadow:
      0 22px 54px rgba(35, 30, 33, .20);
  }

  .mobile-menu-panel a {
    padding: 13px 2px;

    border-bottom:
      1px solid rgba(70, 65, 68, .07);

    font-size: .88rem;
    font-weight: 600;
  }

  .mobile-menu-panel a.active {
    color: var(--blue);
  }

  .dark-theme .mobile-menu-panel {
    background:
      linear-gradient(
        155deg,
        #242428,
        #30282c 58%,
        #252e33
      );

    border-color: rgba(255, 255, 255, .08);
  }

  .dark-theme .mobile-menu-panel a {
    color: rgba(255, 255, 255, .82);

    border-bottom-color: rgba(255, 255, 255, .06);
  }

  .footer-brand img {
    width: 72px;
  }

  .footer-main {
    font-size: .66rem;
  }

  .footer-message {
    font-size: 1.18rem !important;
  }
}

/* =========================================================
   MOBILE PORTRAIT
========================================================= */

@media
  (max-width: 700px)
  and (orientation: portrait) {

  body {
    padding: 0;
  }

  .site-shell {
    width: 100%;
    min-height: 100vh;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .site-header {
    min-height: 72px;

    padding: 0 17px;
  }

  .brand-logo {
    width: 82px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-icon,
  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .guideline-search {
    top: 72px;

    padding: 13px 17px;
  }

  .guideline-search-row {
    grid-template-columns: 1fr;
  }

  .guideline-search button {
    min-height: 41px;
  }

  .guideline-container {
    width: calc(100% - 36px);
  }

  .guideline-hero {
    padding:
      58px
      0
      44px;
  }

  .guideline-hero h1 {
    font-size: 2.75rem;
  }

  .guideline-script {
    font-size: 3.15rem;
  }

  .guideline-main {
    padding:
      34px
      0
      48px;
  }

  .rule-card {
    padding: 22px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;

    justify-items: center;

    gap: 8px;

    min-height: 0;

    padding:
      16px
      0
      8px;
  }

  .footer-left {
    grid-column: 1;
    grid-row: auto;

    justify-self: center;

    flex-direction: column;

    gap: 7px;
  }

  .footer-main,
  .footer-message,
  .footer-copyline {
    grid-column: 1;
    grid-row: auto;

    justify-self: center;

    text-align: center;
  }

  .footer-brand img {
    width: 78px;
  }

  .footer-main,
  .footer-message {
    white-space: normal;
  }
}

/* =========================================================
   MOBILE / TABLET LANDSCAPE
========================================================= */

@media
  (max-width: 1100px)
  and (max-height: 600px)
  and (orientation: landscape) {

  body {
    padding: 7px;
  }

  .site-shell {
    border-radius: 15px;
  }

  .site-header {
    min-height: 58px;

    padding: 0 18px;
  }

  .brand-logo {
    width: 74px;
  }

  .header-icon,
  .menu-toggle {
    width: 32px;
    height: 32px;
  }

  .guideline-search {
    top: 58px;

    padding: 10px 18px;
  }

  .mobile-menu.is-open,
  .mobile-menu.open {
    position: fixed;

    top: 64px;
    right: 14px;
    bottom: auto;
    left: auto;

    display: block;

    width: auto;
    height: auto;

    padding: 0;

    background: transparent;

    overflow: visible;

    pointer-events: none;
  }

  .mobile-menu-panel {
    width: min(245px, 38vw);
    max-height: calc(100dvh - 76px);

    margin: 0;
    padding: 9px 16px;

    overflow-y: auto;

    border-radius: 14px;

    pointer-events: auto;

    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-panel a {
    padding: 7px 2px;

    font-size: .84rem;
    line-height: 1.12;
  }

  .guideline-hero {
    padding:
      42px
      0
      32px;
  }

  .guideline-hero h1 {
    font-size:
      clamp(
        2.3rem,
        5.4vw,
        3.4rem
      );
  }

  .guideline-script {
    font-size:
      clamp(
        2.3rem,
        5vw,
        3.2rem
      );
  }

  .guideline-intro {
    max-width: 650px;

    margin-top: 17px;

    font-size: .78rem;
  }

  .back-link {
    margin-top: 16px;
  }

  .guideline-main {
    padding:
      24px
      0
      36px;
  }

  .guideline-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .rule-card {
    padding: 19px 18px;
  }

  .rule-number {
    width: 29px;
    height: 29px;

    margin-bottom: 10px;

    font-size: .64rem;
  }

  .rule-card h2 {
    font-size: 1.15rem;
  }

  .rule-card p,
  .rule-card li {
    font-size: .68rem;
  }

  .promise-card {
    padding: 23px 26px;
  }

  .promise-card h2 {
    font-size: 2rem;
  }

  .promise-card p {
    font-size: .72rem;
  }

  .footer-grid {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
    grid-template-rows:
      58px
      22px;

    min-height: 86px;
  }

  .footer-left {
    gap: 12px;
  }

  .footer-brand img {
    width: 62px;
  }

  .footer-main {
    font-size: .56rem;
  }

  .footer-message {
    font-size: .96rem !important;
  }

  .footer-copyline {
    font-size: .50rem;
  }
}


/* =========================================================
   COMMUNITY GUIDELINES v4 — MOBILE HAMBURGER FUNCTION FIX
========================================================= */

@media (max-width: 1100px) {

  .mobile-menu {
    visibility: hidden;
    opacity: 0;

    pointer-events: none;
  }

  .mobile-menu.open,
  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
  }

  .mobile-menu-panel {
    position: relative;

    z-index: 2;
  }

  .menu-toggle {
    position: relative;

    z-index: 1300;
  }
}

@media
  (max-width: 1100px)
  and (max-height: 600px)
  and (orientation: landscape) {

  .mobile-menu.open,
  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: none;
  }

  .mobile-menu.open .mobile-menu-panel,
  .mobile-menu.is-open .mobile-menu-panel {
    pointer-events: auto;
  }
}


/* =========================================================
   BLOSSOMS GUIDELINE PAGES v5.0
   GLOBAL SITE STANDARD + SAGE GARDEN FAMILY
   ---------------------------------------------------------
   Canonical completed-page standard:
   - Global.css owns header / nav / submenus / search / theme / hamburger
   - DOM order is HEADER -> SEARCH -> CONTENT SHELL
   - 1480px / 96vw desktop master shell
   - 24px desktop radius
   - 22px tablet radius
   - edge-to-edge mobile
   - sticky navigation
   - #090a0c / #111214 / #141518 dark system
   - sage / mint / warm ivory light-mode Blossoms identity
========================================================= */

/* The old standalone header/search/mobile rules above are retained only
   for historical compatibility. These global classes are authoritative. */

body.page-guidelines {
  --community-sage-50:  #f6faf6;
  --community-sage-100: #edf5ef;
  --community-sage-200: #dcecdf;
  --community-sage-300: #c7dfcc;
  --community-sage-500: #7ea48a;
  --community-sage-600: #63866e;
  --community-sage-700: #496654;
  --community-ink:      #24372c;
  --community-muted:    #66776d;
  --community-ivory:    #fffdf8;
  --community-blush:    #e983a2;

  min-height: 100vh;
  padding: clamp(24px, 4vw, 62px) 20px;

  color: var(--community-ink);

  background:
    radial-gradient(circle at 8% 10%, rgba(185,218,194,.72), transparent 31%),
    radial-gradient(circle at 92% 12%, rgba(221,238,226,.78), transparent 32%),
    linear-gradient(135deg, #dcecdf 0%, #edf5ef 46%, #f7f5ea 100%) !important;
}

/* =========================
   GLOBAL HEADER
========================= */
body.page-guidelines > .ob-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 5000 !important;

  width: min(1480px, 96vw);
  margin-inline: auto;

  background: rgba(255,253,248,.97) !important;
  border-radius: 24px 24px 0 0;
}

/* =========================
   GLOBAL SEARCH
   IMPORTANT: always BELOW menu bar in DOM + visual flow
========================= */
body.page-guidelines > .ob-site-search {
  position: relative !important;
  z-index: 30 !important;

  width: min(1480px, 96vw);
  margin: 0 auto !important;

  background: #f8fbf8 !important;
  border-color: rgba(99,134,110,.16) !important;
  border-radius: 0 !important;
}

body.page-guidelines > .ob-site-search input {
  background: #fffefa !important;
  border-color: rgba(99,134,110,.22) !important;
}

body.page-guidelines > .ob-site-search input:focus {
  border-color: #7ea48a !important;
  box-shadow: 0 0 0 3px rgba(126,164,138,.14) !important;
}

/* =========================
   MASTER PAGE SHELL
========================= */
body.page-guidelines > .guideline-shell {
  width: min(1480px, 96vw) !important;
  margin: 0 auto !important;

  overflow: hidden;

  background: var(--community-ivory) !important;
  border: 1px solid rgba(99,134,110,.12) !important;
  border-top: 0 !important;
  border-radius: 0 0 24px 24px !important;

  box-shadow: 0 22px 60px rgba(60,70,68,.09) !important;
}

/* =========================
   INNER CONTENT
========================= */
body.page-guidelines .guideline-container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

body.page-guidelines .guideline-hero {
  padding: clamp(66px, 7vw, 104px) 0 54px;

  background:
    radial-gradient(circle at 14% 12%, rgba(199,223,204,.28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(233,131,162,.10), transparent 25%),
    linear-gradient(180deg, #fffdf8, #f8fbf7);

  border-bottom: 1px solid rgba(99,134,110,.10);
}

body.page-guidelines .guideline-kicker {
  color: var(--community-sage-600) !important;
}

body.page-guidelines .guideline-hero h1,
body.page-guidelines .rule-card h2 {
  color: var(--community-ink) !important;
}

body.page-guidelines .guideline-script,
body.page-guidelines .rule-number {
  color: var(--community-blush) !important;
}

body.page-guidelines .guideline-intro,
body.page-guidelines .guideline-note,
body.page-guidelines .rule-card p,
body.page-guidelines .rule-card li,
body.page-guidelines .promise-card p {
  color: var(--community-muted) !important;
}

body.page-guidelines .back-link {
  color: var(--community-sage-700) !important;
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(99,134,110,.20) !important;
}

body.page-guidelines .back-link:hover {
  background: var(--community-sage-100) !important;
  border-color: rgba(99,134,110,.34) !important;
}

/* Cards: botanical editorial surface */
body.page-guidelines .guideline-note,
body.page-guidelines .rule-card {
  background:
    linear-gradient(135deg, rgba(255,254,250,.98), rgba(237,245,239,.66)) !important;

  border-color: rgba(99,134,110,.16) !important;
  box-shadow: 0 14px 38px rgba(68,88,72,.065) !important;
}

body.page-guidelines .rule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126,164,138,.40) !important;
  box-shadow: 0 18px 42px rgba(68,88,72,.10) !important;
}

body.page-guidelines .rule-number {
  background: #edf5ef !important;
}

body.page-guidelines .promise-card {
  border-color: rgba(99,134,110,.18) !important;

  background:
    linear-gradient(
      120deg,
      rgba(220,236,223,.88),
      rgba(255,253,248,.94) 50%,
      rgba(253,231,237,.55)
    ) !important;
}

body.page-guidelines .promise-card h2 {
  color: var(--community-sage-700) !important;
}

/* Footer follows Community family */
body.page-guidelines .site-footer {
  background: var(--community-ivory) !important;
  border-top-color: rgba(99,134,110,.11) !important;
}

body.page-guidelines .footer-message {
  color: var(--community-sage-600) !important;
}

body.page-guidelines .footer-copyline {
  color: #78877e !important;
  border-top-color: rgba(99,134,110,.11) !important;
}

/* =========================
   DARK MODE — shared site standard
========================= */
html[data-theme="dark"] body.page-guidelines,
body.page-guidelines.dark-theme {
  color: #f2eef0;
  background: #090a0c !important;
  background-image: none !important;
}

html[data-theme="dark"] body.page-guidelines > .ob-header,
body.page-guidelines.dark-theme > .ob-header {
  background: #090a0c !important;
  border-bottom-color: rgba(255,255,255,.07) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.page-guidelines > .ob-site-search,
body.page-guidelines.dark-theme > .ob-site-search {
  background: #111214 !important;
  border-color: rgba(255,255,255,.07) !important;
}

html[data-theme="dark"] body.page-guidelines > .guideline-shell,
body.page-guidelines.dark-theme > .guideline-shell {
  background: #090a0c !important;
  border-color: rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.page-guidelines .guideline-hero,
body.page-guidelines.dark-theme .guideline-hero {
  background:
    radial-gradient(circle at 14% 10%, rgba(126,164,138,.08), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(233,131,162,.06), transparent 25%),
    #090a0c !important;

  border-bottom-color: rgba(255,255,255,.06) !important;
}

html[data-theme="dark"] body.page-guidelines .guideline-note,
html[data-theme="dark"] body.page-guidelines .rule-card,
html[data-theme="dark"] body.page-guidelines .promise-card,
body.page-guidelines.dark-theme .guideline-note,
body.page-guidelines.dark-theme .rule-card,
body.page-guidelines.dark-theme .promise-card {
  background: #141518 !important;
  border-color: rgba(255,255,255,.07) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.page-guidelines .guideline-hero h1,
html[data-theme="dark"] body.page-guidelines .rule-card h2,
body.page-guidelines.dark-theme .guideline-hero h1,
body.page-guidelines.dark-theme .rule-card h2 {
  color: #f2eef0 !important;
}

html[data-theme="dark"] body.page-guidelines .guideline-intro,
html[data-theme="dark"] body.page-guidelines .guideline-note,
html[data-theme="dark"] body.page-guidelines .rule-card p,
html[data-theme="dark"] body.page-guidelines .rule-card li,
html[data-theme="dark"] body.page-guidelines .promise-card p,
body.page-guidelines.dark-theme .guideline-intro,
body.page-guidelines.dark-theme .guideline-note,
body.page-guidelines.dark-theme .rule-card p,
body.page-guidelines.dark-theme .rule-card li,
body.page-guidelines.dark-theme .promise-card p {
  color: rgba(255,255,255,.62) !important;
}

html[data-theme="dark"] body.page-guidelines .back-link,
body.page-guidelines.dark-theme .back-link {
  color: #b8d2bf !important;
  background: #111214 !important;
  border-color: rgba(255,255,255,.08) !important;
}

html[data-theme="dark"] body.page-guidelines .site-footer,
body.page-guidelines.dark-theme .site-footer {
  background: #090a0c !important;
  border-top-color: rgba(255,255,255,.06) !important;
}

html[data-theme="dark"] body.page-guidelines .footer-main,
body.page-guidelines.dark-theme .footer-main {
  color: rgba(255,255,255,.70) !important;
}

html[data-theme="dark"] body.page-guidelines .footer-message,
body.page-guidelines.dark-theme .footer-message {
  color: #a9cee5 !important;
}

html[data-theme="dark"] body.page-guidelines .footer-copyline,
body.page-guidelines.dark-theme .footer-copyline {
  color: rgba(255,255,255,.46) !important;
  border-top-color: rgba(255,255,255,.06) !important;
}

/* =========================
   TABLET
========================= */
@media (min-width: 761px) and (max-width: 1100px) {
  body.page-guidelines {
    padding: 22px 14px;
  }

  body.page-guidelines > .ob-header {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
  }

  body.page-guidelines > .ob-site-search,
  body.page-guidelines > .guideline-shell {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-guidelines > .ob-site-search:not([hidden]) {
    margin-inline: auto !important;
    border-radius: 0 !important;
  }

  body.page-guidelines > .guideline-shell {
    border-radius: 0 0 22px 22px !important;
  }

  body.page-guidelines .guideline-container {
    width: min(100% - 44px, 900px);
  }

  body.page-guidelines .guideline-grid {
    grid-template-columns: 1fr;
  }

  body.page-guidelines .full-width {
    grid-column: auto;
  }
}

/* =========================
   MOBILE PORTRAIT
========================= */
@media (max-width: 760px) and (orientation: portrait) {
  body.page-guidelines {
    padding: 0 !important;
  }

  body.page-guidelines > .ob-header,
  body.page-guidelines > .ob-site-search,
  body.page-guidelines > .guideline-shell {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }

  body.page-guidelines > .guideline-shell {
    border: 0 !important;
    box-shadow: none !important;
  }

  body.page-guidelines .guideline-container {
    width: calc(100% - 34px);
  }

  body.page-guidelines .guideline-hero {
    padding: 50px 0 38px;
  }

  body.page-guidelines .guideline-main {
    padding-top: 30px;
  }
}

/* =========================
   MOBILE / TABLET LANDSCAPE
   Shared Global.css/script.js owns fixed menu + scroll lock.
========================= */
@media (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  html,
  body.page-guidelines {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.page-guidelines {
    padding: 8px 8px 14px !important;
  }

  body.page-guidelines > .ob-header,
  body.page-guidelines > .ob-site-search,
  body.page-guidelines > .guideline-shell {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }

  body.page-guidelines > .guideline-shell {
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }

  body.page-guidelines .guideline-hero {
    padding: 42px 0 30px;
  }

  body.page-guidelines .guideline-main {
    padding-top: 26px;
  }
}

