/*
Theme Name: RTE Custom
Theme URI: https://example.com/rte-custom
Author: Vivian Ferguson
Description: Custom block theme for Reclaim the Enlightenment.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rte-custom
Tags: full-site-editing, block-patterns
*/

body {
  background: #140907;
  color: #f4e3c3;
}

.wp-site-blocks {
  min-height: 100vh;
}

/* Homepage hero: calm gradient only — stock photo hidden so the logo is the focus */
.rte-home-hero {
  min-height: 100vh;
  color: #f4e3c3;
  overflow: visible;
  padding: 0 !important;
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    168deg,
    #24160f 0%,
    #140907 34%,
    #1a0d09 58%,
    #120806 100%
  );
}

/* Very subtle warm highlight behind the logo stack only */
.rte-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 38% at 50% 28%,
    rgba(183, 132, 88, 0.09) 0%,
    transparent 65%
  );
}

/* Homepage hero: fill the viewport below the header without extra dead space above the logo */
body.home .rte-home-hero {
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
}

.rte-home-hero .wp-block-cover__inner-container {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  position: relative;
  z-index: 3;
}

.rte-home-hero .wp-block-cover__image-background {
  opacity: 0 !important;
  pointer-events: none;
}

.rte-home-hero .wp-block-cover__background {
  opacity: 0 !important;
  background: transparent !important;
  z-index: 0;
}

.rte-home-shell {
  min-height: 100vh;
  padding: 20px 40px 42px;
  position: relative;
}

body.home .rte-home-shell {
  min-height: 0;
  padding: 6px clamp(16px, 3vw, 40px) 32px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Pull footer closer on homepage without shifting hero design */
body.home .wp-site-blocks > .wp-block-template-part:last-child {
  margin-top: -140px !important;
  position: relative;
  z-index: 1;
}

.rte-site-footer {
  text-align: center;
}

.rte-footer-copyright {
  margin: 0 !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  color: #c7a977 !important;
  opacity: 0.9;
}

/* Archive event list cards */
.rte-archive-events .rte-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 16px 0 36px;
}

.rte-archive-events .rte-event-card {
  display: flex;
  gap: 18px;
  align-items: stretch;
  background: rgba(18, 8, 6, 0.35);
  border: 1px solid rgba(199, 169, 119, 0.18);
  border-radius: 16px;
  overflow: hidden;
}

.rte-archive-events .rte-event-card img {
  width: 190px;
  height: 130px;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 0 0 auto;
  background: rgba(18, 8, 6, 0.6);
}

.wp-block-latest-posts__featured-image .rte-placeholder-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: rgba(18, 8, 6, 0.6);
  border-radius: 8px;
}

.rte-archive-events .rte-event-card__body {
  padding: 14px 16px;
}

.rte-archive-events .rte-event-card__body h4 {
  margin: 0 0 6px 0;
  font-size: 20px;
  line-height: 1.2;
}

.rte-archive-events .rte-event-card__body p {
  margin: 0;
  opacity: 0.92;
}

@media (max-width: 700px) {
  .rte-archive-events .rte-event-card {
    flex-direction: column;
  }

  .rte-archive-events .rte-event-card img {
    width: 100%;
    height: 200px;
  }
}

.rte-top-row {
  width: 100%;
  border-bottom: 1px solid rgba(199, 169, 119, 0.25);
  padding: 6px clamp(16px, 3vw, 40px);
  background: rgba(18, 8, 6, 0.28);
  position: relative;
  z-index: 0;
  display: flex !important;
  justify-content: center !important;
  overflow-x: clip;
}

/* Header: social left (replaces tree), title centre, donate right */
.rte-brand-wrap {
  gap: 16px;
}

.rte-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.rte-top-row .rte-social__link {
  width: 48px !important;
  height: 48px !important;
}

.rte-social__link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(199, 169, 119, 0.28);
  background: rgba(20, 9, 7, 0.25);
  color: #f4e3c3;
  text-decoration: none;
}

.rte-top-row .rte-social__link svg {
  width: 24px !important;
  height: 24px !important;
}

.rte-social__link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.92;
}

.rte-social__link:hover {
  border-color: rgba(199, 169, 119, 0.4);
  background: rgba(20, 9, 7, 0.4);
}

.rte-social__link:focus-visible {
  outline: 2px solid rgba(244, 227, 195, 0.75);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .rte-social {
    min-width: 72px;
    gap: 8px;
  }

  .rte-social__link {
    width: 40px;
    height: 40px;
  }

  .rte-social__link svg {
    width: 20px;
    height: 20px;
  }
}

/* Force identical title style across Home and inner pages */
.rte-top-row .rte-brand-title,
.rte-top-row .wp-block-site-title,
.rte-top-row .wp-block-site-title a {
  margin: 0 !important;
  font-size: 60px !important;
  line-height: 1.06 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #f4e3c3 !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

.rte-brand-wrap {
  gap: 16px;
  align-items: center !important;
}

.rte-header-tree,
.rte-top-row .wp-block-site-logo {
  display: none !important;
}

/* Keep header free of old navigation/toggle artifacts */
.rte-top-row .wp-block-navigation,
.rte-top-row .wp-block-navigation__submenu-icon {
  display: none !important;
}

.rte-donate .wp-block-button__link {
  border: 1px solid #c7a977;
  border-radius: 10px;
  background: rgba(176, 113, 56, 0.58) !important;
  color: #f4e3c3 !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 24px;
  box-shadow: inset 0 0 0 1px rgba(245, 225, 187, 0.35);
}

/* Override WP inline layout — compact centred cluster: social · title · donate */
.rte-top-row .rte-header-inner.is-layout-flex,
.rte-top-row .alignwide.is-layout-flex,
.rte-top-row .rte-header-inner.is-content-justification-space-between {
  display: flex !important;
  justify-content: center !important;
}

.rte-top-row > .rte-header-inner,
.rte-top-row .rte-header-inner,
header.wp-block-template-part .rte-top-row .rte-header-inner {
  box-sizing: border-box;
  width: min(1200px, 94vw) !important;
  max-width: min(1200px, 94vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  min-height: 52px;
}

/* Tight row: [social] [title] [donate] centred as one unit */
.rte-header-cluster {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  width: auto !important;
}

/* Fallback if cluster wrapper is missing (saved header markup) */
.rte-top-row .rte-header-inner:not(:has(> .rte-header-cluster)) {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 20px !important;
  width: auto !important;
  max-width: 100%;
}

.rte-top-row .rte-header-inner > * {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.rte-header-cluster > .rte-social {
  flex: 0 0 auto;
  margin: 0;
}

.rte-header-cluster > .rte-brand-wrap,
.rte-header-cluster > .wp-block-site-title {
  flex: 0 1 auto;
  margin: 0;
  text-align: center !important;
}

.rte-header-cluster > .rte-donate {
  flex: 0 0 auto;
  margin: 0 !important;
}

.rte-top-row .rte-brand-wrap:has(> .rte-social) {
  display: contents !important;
}

.rte-top-row .rte-brand-wrap .wp-block-site-title,
.rte-top-row .rte-brand-wrap .rte-brand-title,
.rte-top-row .rte-brand-wrap .wp-block-site-title a {
  text-align: center !important;
}

.rte-top-row .rte-donate .wp-block-button__link {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .rte-top-row .rte-brand-title,
  .rte-top-row .wp-block-site-title,
  .rte-top-row .wp-block-site-title a {
    white-space: normal;
    font-size: clamp(26px, 5.5vw, 58px) !important;
    line-height: 1.08 !important;
  }

  .rte-header-cluster {
    gap: 14px;
  }
}

@media (max-width: 782px) {
  .rte-header-cluster {
    flex-wrap: wrap !important;
    justify-content: center !important;
    row-gap: 10px;
    gap: 10px;
  }
}

.rte-top-row .rte-brand-wrap > .rte-header-tree,
.rte-top-row .rte-brand-wrap > .wp-block-site-logo {
  display: none !important;
}

.rte-top-row .wp-block-site-logo {
  margin: 0 !important;
  line-height: 0;
}

.rte-top-row .wp-block-site-logo .custom-logo {
  width: 88px !important;
  height: auto !important;
  max-width: none !important;
}

/* Force live DB-rendered header to match client mockup */
body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row,
body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row,
body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row {
  min-height: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row .wp-block-site-logo .custom-logo,
body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row .wp-block-site-logo .custom-logo,
body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row .wp-block-site-logo .custom-logo {
  width: 92px !important;
  height: auto !important;
}

body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title,
body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title a,
body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title,
body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title a,
body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title,
body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title a {
  font-size: 58px !important;
  line-height: 1.02 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

@media (max-width: 782px) {
  body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title,
  body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title a,
  body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title,
  body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title a,
  body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title,
  body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row p.rte-brand-title.wp-block-site-title a {
    font-size: clamp(26px, 5.5vw, 58px) !important;
    line-height: 1.08 !important;
  }
}

body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row .rte-donate .wp-block-button__link,
body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row .rte-donate .wp-block-button__link,
body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row .rte-donate .wp-block-button__link {
  font-size: 16px !important;
  padding: 11px 24px !important;
  border-radius: 9px !important;
}

body.home .wp-site-blocks > header.wp-block-template-part .rte-top-row .rte-donate .wp-block-button__link:hover,
body.page .wp-site-blocks > header.wp-block-template-part .rte-top-row .rte-donate .wp-block-button__link:hover,
body.single .wp-site-blocks > header.wp-block-template-part .rte-top-row .rte-donate .wp-block-button__link:hover {
  background: rgba(196, 133, 73, 0.72) !important;
}

.rte-top-row .wp-block-site-title {
  margin: 0 auto !important;
  justify-self: center;
  text-align: center !important;
  position: relative;
  z-index: 2;
}

/* Move homepage cover image down so header remains clear; nudge so the old tree is less central */
.home .rte-home-hero .wp-block-cover__image-background {
  opacity: 0 !important;
}

/* Remove visible gap between header and homepage cover */
body.home .wp-site-blocks > header.wp-block-template-part {
  position: relative;
  z-index: 1;
  margin-bottom: 0 !important;
}

body.home .wp-site-blocks > .wp-block-cover.rte-home-hero {
  position: relative;
  z-index: 20;
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
}

/* Override WordPress sibling block-gap between header and first cover */
body.home .wp-site-blocks {
  --wp--style--block-gap: 0px !important;
}

body.home .wp-site-blocks > header.wp-block-template-part + .wp-block-cover.rte-home-hero {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.rte-top-row .wp-block-group,
.rte-top-row .wp-block-buttons {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.rte-center-copy {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  z-index: 200;
  width: min(1200px, 94vw);
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Homepage: flow hero content from the top (no vertical centre) so the tree sits under the header */
body.home .rte-center-copy {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
  width: min(1200px, 94vw);
  max-width: 94vw;
}

.rte-home-logo {
  margin: 0 auto 18px !important;
  width: 100%;
  max-width: min(340px, 82vw);
}

body.home .rte-home-logo {
  margin-bottom: 14px !important;
}

.rte-home-logo img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center top;
  filter: brightness(0) invert(1)
    drop-shadow(0 6px 28px rgba(0, 0, 0, 0.5));
  opacity: 1;
}

.rte-center-copy p {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4.2vw, 2.65rem);
  line-height: 1.38;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(244, 227, 195, 0.95);
  max-width: 34ch;
}

.rte-bottom-nav {
  margin-top: 28px;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

/* Clearer separation between tagline and nav row on the homepage */
body.home .rte-center-copy > .rte-bottom-nav {
  margin-top: 48px !important;
}

@media (max-width: 700px) {
  body.home .rte-center-copy > .rte-bottom-nav {
    margin-top: 40px !important;
  }

  .rte-bottom-nav {
    flex-wrap: wrap;
    row-gap: 12px;
  }
}

.rte-inner-nav-shell {
  margin-bottom: 18px;
}

.page:not(.home) .rte-inner-nav-shell .rte-bottom-nav,
.single .rte-inner-nav-shell .rte-bottom-nav {
  margin-top: 0;
}

.rte-bottom-nav .wp-block-button__link {
  border: 1px solid #c7a977 !important;
  border-radius: 10px;
  background: rgba(40, 17, 12, 0.62) !important;
  color: #f4e3c3 !important;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 26px;
  box-shadow: inset 0 0 0 1px rgba(245, 225, 187, 0.28);
}

.rte-bottom-nav .wp-block-button__link:hover,
.rte-bottom-nav .wp-block-button__link:focus-visible {
  background: rgba(74, 31, 19, 0.78) !important;
  color: #f7e7c7 !important;
  border-color: rgba(223, 190, 138, 0.92) !important;
}

/* Homepage button-row submenus (absolute, so row position stays unchanged) */
.rte-bottom-nav .wp-block-button.has-submenu {
  position: relative;
  z-index: 80;
}

.rte-bottom-nav .wp-block-button .rte-nav-submenu {
  position: absolute;
  top: 100%;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  min-width: 260px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(199, 169, 119, 0.5);
  background: rgba(20, 9, 7, 0.96);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.rte-bottom-nav .wp-block-button.has-submenu:hover .rte-nav-submenu,
.rte-bottom-nav .wp-block-button.has-submenu:focus-within .rte-nav-submenu {
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* "Hover bridge" so moving to submenu doesn't close it */
.rte-bottom-nav .wp-block-button .rte-nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.rte-bottom-nav .wp-block-button .rte-nav-submenu a {
  display: block;
  color: #f4e3c3;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 10px;
  border: 1px solid rgba(199, 169, 119, 0.35);
  border-radius: 8px;
  background: rgba(40, 17, 12, 0.62);
}

.rte-bottom-nav .wp-block-button .rte-nav-submenu a + a {
  margin-top: 6px;
}

/* Shared inner-page system */
.page:not(.home) main.rte-inner-main {
  padding: 34px 24px 48px;
}

.page:not(.home) .rte-page-hero {
  margin-bottom: 26px;
}

.page:not(.home) .rte-page-hero .wp-block-post-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  color: #f4e3c3;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.page:not(.home) .rte-page-content {
  max-width: 980px;
  background: rgba(22, 9, 7, 0.58);
  border: 1px solid rgba(199, 169, 119, 0.35);
  border-radius: 14px;
  padding: 28px clamp(20px, 3vw, 38px);
  box-shadow: inset 0 0 0 1px rgba(245, 225, 187, 0.1);
}

.page:not(.home) .rte-page-content p,
.page:not(.home) .rte-page-content li {
  color: #f4e3c3;
  font-size: 1.1rem;
  line-height: 1.65;
}

.page:not(.home) .rte-page-content h2,
.page:not(.home) .rte-page-content h3 {
  color: #f4e3c3;
  line-height: 1.2;
}

.page:not(.home) .rte-doc-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.35rem;
  margin-bottom: 0;
  width: 100%;
}

.page:not(.home) .rte-doc-item.is-layout-flex {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

.page:not(.home) .rte-doc-item > .wp-block-heading {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 100%;
  text-align: left !important;
}

.page:not(.home) .rte-doc-item + .rte-doc-item {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(199, 169, 119, 0.22);
  margin-bottom: 1.35rem;
}

.page:not(.home) .rte-page-content .rte-doc-item h2.wp-block-heading a {
  color: #f4e3c3;
  text-decoration: underline;
  text-decoration-color: rgba(199, 169, 119, 0.65);
  text-underline-offset: 0.18em;
}

.page:not(.home) .rte-page-content .rte-doc-item h2.wp-block-heading a:hover {
  color: #f7e7c7;
  text-decoration-color: rgba(244, 227, 195, 0.85);
}

.page:not(.home) .rte-doc-lede {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(244, 227, 195, 0.88);
  max-width: 42rem;
  width: 100%;
  text-align: left !important;
}

.page:not(.home) .rte-page-cta {
  display: none !important;
}

.rte-page-content .wp-block-latest-posts {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.rte-page-content p.rte-events-intro {
  font-size: 1.62rem !important;
  line-height: 1.4 !important;
  margin-bottom: 18px !important;
}

.rte-page-content .wp-block-latest-posts li {
  display: flow-root;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(199, 169, 119, 0.2);
}

.rte-page-content .wp-block-latest-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.rte-page-content .wp-block-latest-posts li a {
  display: block;
  color: #f4e3c3 !important;
  text-decoration: none !important;
  font-size: 1.55rem;
  line-height: 1.16;
  margin-bottom: 0;
}

.rte-page-content .wp-block-latest-posts li a:hover {
  color: #e6c896 !important;
}

.rte-page-content .wp-block-latest-posts__post-date {
  display: block;
  margin-top: 0;
  color: #c7a977;
  font-size: 0.95rem;
  line-height: 1.2;
}

.rte-page-content .wp-block-latest-posts__post-excerpt {
  margin-top: 5px;
  margin-bottom: 0;
  color: #e7d6ba;
  font-size: 1.02rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Standardize featured image size on single post/event pages */
.single .rte-page-content .wp-block-post-featured-image {
  max-width: 760px;
  margin: 0 auto 22px;
}

.single .rte-page-content .wp-block-post-featured-image img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 10px;
}

/* Professional single event/post reading layout */
.single main.rte-inner-main {
  padding: 34px 24px 48px;
}

.single .rte-page-content {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(22, 9, 7, 0.58);
  border: 1px solid rgba(199, 169, 119, 0.35);
  border-radius: 14px;
  padding: 28px clamp(20px, 3vw, 38px);
  box-shadow: inset 0 0 0 1px rgba(245, 225, 187, 0.1);
}

.single .rte-page-content .wp-block-post-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  color: #f4e3c3;
}

.single .rte-page-content .wp-block-post-date {
  display: block;
  text-align: center;
  margin: -4px 0 18px;
  color: #c7a977;
  font-size: 1rem;
}

.single .rte-page-content p {
  margin: 0 0 16px;
  color: #f4e3c3;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Shop page cards */
.rte-shop-page .rte-shop-note {
  color: #d7bd90;
  font-size: 1rem !important;
  margin-top: -4px;
  margin-bottom: 18px;
}

.rte-shop-page .rte-shop-postage {
  font-size: 0.95em;
  opacity: 0.9;
  font-weight: 500;
}

.rte-shop-page .rte-shop-grid {
  gap: 18px;
  margin-bottom: 8px;
}

.rte-shop-page .rte-shop-card {
  height: 100%;
  background: rgba(16, 7, 5, 0.72);
  border: 1px solid rgba(199, 169, 119, 0.32);
  border-radius: 12px;
  padding: 18px;
}

.rte-shop-page .rte-shop-card--publication figure {
  margin: 0 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  max-height: 340px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(199, 169, 119, 0.22);
  overflow: hidden;
}

.rte-shop-page .rte-shop-card--publication img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  margin: 0 auto;
}

.rte-shop-page .rte-shop-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.rte-shop-page .rte-shop-desc {
  margin: 0 0 12px;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  color: rgba(244, 227, 195, 0.92) !important;
}

.rte-shop-page .rte-shop-soldout {
  display: none;
  margin: 8px 0 0;
  font-size: 1rem !important;
  font-weight: 600;
  color: #d7bd90 !important;
}

.rte-shop-page .rte-shop-card--out-of-stock .rte-shop-soldout {
  display: block;
}

.rte-shop-page .rte-shop-card--out-of-stock .rte-shop-buy-buttons {
  display: none;
}

.rte-shop-page .rte-shop-price {
  margin: 6px 0 14px;
  color: #e6c896;
  font-size: 1.15rem !important;
  font-weight: 700;
}

.rte-shop-page .rte-shop-card .wp-block-buttons {
  margin-top: 0;
}

/* Contact page layout */
.rte-contact-page .rte-contact-layout {
  gap: 20px;
  margin-top: 10px;
  align-items: flex-start;
}

.rte-contact-page .rte-contact-card {
  background: rgba(16, 7, 5, 0.72);
  border: 1px solid rgba(199, 169, 119, 0.32);
  border-radius: 12px;
  padding: 20px;
}

.rte-contact-page .rte-contact-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.rte-contact-page .rte-contact-details p {
  margin: 0 0 16px;
  line-height: 1.55;
}

.rte-contact-page .rte-contact-details a {
  color: #f4e3c3;
  text-decoration: underline;
  text-decoration-color: rgba(199, 169, 119, 0.8);
}

.rte-contact-page .rte-contact-details a:hover {
  color: #e6c896;
}

.rte-contact-form p {
  margin: 0 0 12px;
}

.rte-contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #d8bf93;
  font-size: 0.95rem;
}

.rte-contact-form input,
.rte-contact-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(199, 169, 119, 0.45);
  border-radius: 8px;
  background: rgba(28, 12, 9, 0.85);
  color: #f4e3c3;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
}

.rte-contact-form textarea {
  resize: vertical;
}

.rte-contact-form button {
  border: 1px solid #c7a977;
  border-radius: 10px;
  background: rgba(40, 17, 12, 0.62);
  color: #f4e3c3;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
}

.rte-contact-form button:hover {
  background: rgba(66, 27, 17, 0.74);
}

.rte-contact-page .rte-contact-details .wp-block-buttons {
  gap: 10px;
  margin-top: 4px;
}

.rte-contact-page .rte-contact-details .wp-block-button__link {
  border: 1px solid #c7a977 !important;
  border-radius: 10px;
  background: rgba(40, 17, 12, 0.62) !important;
  color: #f4e3c3 !important;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 10px 20px;
}

.rte-contact-page .rte-contact-details .wp-block-button__link:hover {
  background: rgba(66, 27, 17, 0.74) !important;
}

.rte-gift-aid {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.rte-donate-page .rte-donate-pay {
  margin: 1.25rem 0 1.75rem;
}
