@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600;700&display=swap');
:root {
  --wine: #752e35;
  --wine-dark: #482127;
  --gold: #c69d58;
  --ink: #302e2a;
  --muted: #716e67;
  --cream: #fbf9f4;
  --line: #e8e2d7;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.8;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button {
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
a:hover {
  color: var(--wine);
}
h1,
h2,
h3,
blockquote {
  font-family: 'Noto Serif', Georgia, serif;
  line-height: 1.35;
}
h2 {
  font-size: 36px;
  font-weight: 500;
  margin: 13px 0 22px;
  letter-spacing: -1px;
}
h3 {
  font-size: 23px;
  font-weight: 500;
}
p {
  color: var(--muted);
}
.container {
  max-width: 1240px;
  padding-inline: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.6px;
  color: var(--wine);
  font-weight: 600;
  display: inline-block;
}
.eyebrow.light {
  color: #e2c69b;
}
.topbar {
  background: var(--wine-dark);
  color: #e7d8c4;
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
}
.site-nav {
  background: rgba(251, 249, 244, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand strong {
  display: block;
  font-family: 'Noto Serif', serif;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.navbar-nav {
  gap: 16px;
  align-items: center;
}
.navbar .nav-link {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0 !important;
}
.navbar .nav-link.active {
  color: var(--wine);
}
.login-button {
  border: 1px solid var(--wine);
  color: var(--wine);
  padding: 8px 17px;
  border-radius: 4px;
  font-size: 12px;
}
.login-button:hover {
  background: var(--wine);
  color: white;
}
.navbar-toggler {
  border: 0;
  padding: 8px;
}
.hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  color: white;
  background: #233b30;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 35, 28, 0.87),
    rgba(20, 35, 28, 0.55) 45%,
    rgba(20, 35, 28, 0.05)
  );
}
.hero-content {
  position: relative;
  padding-top: 65px;
  padding-bottom: 28px;
}
.hero h1 {
  font-size: 57px;
  max-width: 730px;
  margin: 22px 0;
  font-weight: 500;
  letter-spacing: -1.8px;
}
.hero h1 em {
  font-style: normal;
  color: #eed09c;
}
.hero p {
  color: #e0e4dd;
  max-width: 520px;
  font-size: 15px;
  margin-bottom: 31px;
}
.btn {
  font-size: 12px;
  padding: 13px 23px;
  border-radius: 4px;
  font-weight: 500;
}
.btn span {
  margin-left: 24px;
}
.btn-gold {
  background: #d5b377;
  color: #302b21;
  border: 1px solid #d5b377;
}
.btn-gold:hover {
  background: #e8c78f;
  color: #302b21;
  transform: translateY(-2px);
}
.btn-wine {
  background: var(--wine);
  color: #fff;
}
.btn-wine:hover {
  background: var(--wine-dark);
  color: white;
}
.hero-foot {
  margin-top: 85px;
  border-top: 1px solid #ffffff30;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
  color: #d8ded7;
}
.hero-foot a {
  letter-spacing: 0.3px;
  color: #fff;
}
.hero-foot a span {
  margin-left: 16px;
}
.path-strip {
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
}
.path-strip a {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 25px 20px;
  border-right: 1px solid var(--line);
}
.path-strip a:first-child {
  padding-left: 0;
}
.path-strip a:last-child {
  border: 0;
}
.path-strip a > span:last-child {
  margin-left: auto;
  color: var(--wine);
}
.path-symbol {
  font-size: 31px;
  color: var(--gold);
  font-family: serif;
}
.path-strip small {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--muted);
  display: block;
}
.path-strip strong {
  font-size: 14px;
  font-weight: 500;
}
.section {
  padding: 90px 0;
}
.about-visual {
  position: relative;
  padding-right: 55px;
}
.about-visual > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 3px;
}
.image-caption {
  position: absolute;
  bottom: -22px;
  right: 20px;
  background: var(--wine);
  color: #fff;
  padding: 22px 27px;
  display: flex;
  align-items: center;
  gap: 17px;
  box-shadow: 0 12px 30px #48212722;
}
.image-caption img {
  width: 47px;
}
.image-caption span {
  font-family: 'Noto Serif', serif;
  font-size: 17px;
}
.about-copy p {
  font-size: 13px;
}
.principles {
  display: grid;
  gap: 10px;
  padding: 15px 0 24px;
  font-size: 12px;
}
.principles b {
  font-weight: 400;
  color: var(--gold);
  margin-right: 16px;
}
.text-link {
  color: var(--wine);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid #b894704d;
  padding-bottom: 6px;
  display: inline-block;
}
.text-link span {
  margin-left: 22px;
}
.practice {
  background: #f1ede3;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
  gap: 20px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > .text-link {
  white-space: nowrap;
  margin-bottom: 5px;
}
.practice-card {
  padding: 34px;
  background: var(--cream);
  height: 100%;
  border: 1px solid #e5dfd3;
  position: relative;
}
.card-number {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--wine);
}
.practice-card h3 {
  margin: 33px 0 15px;
}
.practice-card p {
  font-size: 12px;
  line-height: 1.9;
  min-height: 70px;
}
.practice-card a {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--wine);
  margin-top: 27px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.practice-card.accent {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
}
.practice-card.accent p {
  color: #e7d4d2;
}
.practice-card.accent .card-number,
.practice-card.accent a {
  color: #ead1a4;
}
.practice-card.accent a {
  border-color: #ffffff30;
}
.section-note {
  font-size: 10px;
  margin: 22px 0 0;
}
.quote-band {
  text-align: center;
  padding: 45px 0;
  background: #e8e0d0;
}
.quote-band img {
  width: 36px;
  margin-bottom: 15px;
}
.quote-band blockquote {
  font-size: 26px;
  margin: 0 0 15px;
  color: var(--wine-dark);
}
.quote-band span {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: #756a59;
}
.filter-tabs {
  display: flex;
  gap: 24px;
  margin: 25px 0 30px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.filter-tabs button {
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0 13px;
  border-bottom: 2px solid transparent;
}
.filter-tabs button.active {
  color: var(--wine);
  border-color: var(--wine);
}
.article-card {
  height: 100%;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.article-card .img-wrap {
  overflow: hidden;
  display: block;
  border-radius: 3px;
}
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}
.article-card:hover img {
  transform: scale(1.04);
}
.article-meta {
  font-size: 9px;
  color: var(--wine);
  letter-spacing: 1px;
  margin: 21px 0 12px;
  display: flex;
  justify-content: space-between;
}
.article-meta span:last-child {
  color: var(--muted);
  letter-spacing: 0;
}
.article-card h3 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-card p {
  font-size: 12px;
}
.article-card .text-link {
  border: 0;
}
.community {
  padding-top: 0;
  padding-bottom: 0;
}
.community-inner {
  background: var(--wine);
  padding: 50px 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
}
.community-inner h2 {
  font-size: 34px;
}
.community-inner p {
  color: #e3cbc8;
  font-size: 12px;
}
.community-inner > img {
  width: 220px;
  opacity: 0.5;
  margin-right: 40px;
}
.accordion-item {
  background: transparent;
  border-color: var(--line);
}
.accordion-button {
  background: transparent !important;
  padding: 23px 0;
  font-size: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--ink);
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  color: var(--wine);
}
.accordion-body {
  padding: 0 25px 23px 0;
  color: var(--muted);
  font-size: 13px;
}
.faq-section p {
  font-size: 12px;
}
.sources-section {
  border-top: 1px solid var(--line);
  padding: 38px 0 45px;
}
.sources-section h2 {
  font-size: 24px;
  margin: 10px 0;
}
.sources-section p {
  font-size: 12px;
}
.source-link {
  font-size: 12px;
  color: var(--wine);
  border: 1px solid var(--line);
  padding: 9px 16px;
}
.site-footer {
  background: #292b25;
  color: #e5e0d6;
  padding: 48px 0 0;
}
.site-footer .brand {
  color: #e5d5b8;
}
.site-footer .brand small {
  color: #aaa99a;
}
.site-footer p {
  font-size: 11px;
  color: #aaa99a;
  max-width: 300px;
  margin-top: 20px;
}
.footer-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: #ceb58a;
  margin: 5px 0 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  color: #c9c8bd;
}
.footer-links a:hover {
  color: #e8c78f;
}
.footer-bottom {
  border-top: 1px solid #ffffff16;
  margin-top: 40px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #aaa99a;
  gap: 15px;
}
.back-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--wine);
  border: 1px solid #fff5;
  color: white;
  width: 39px;
  height: 39px;
  border-radius: 4px;
  display: none;
  z-index: 100;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 2000;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.page-banner {
  background: #eee8dc;
  padding: 50px 0;
}
.breadcrumb-custom {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}
.page-banner h1 {
  font-size: 42px;
  margin: 0 0 15px;
  color: var(--wine-dark);
}
.page-banner p {
  max-width: 640px;
  font-size: 13px;
  margin: 0;
}
.search-input {
  max-width: 430px;
  margin-bottom: 25px;
}
.form-control,
.form-select {
  border-radius: 3px;
  border-color: #ddd5c5;
  background: #fffdf8;
  padding: 12px;
  font-size: 13px;
}
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px #c69d5825;
  border-color: var(--gold);
}
.form-label {
  font-size: 12px;
}
.form-panel {
  max-width: 670px;
  margin: auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 40px;
}
.form-panel h2 {
  font-size: 28px;
}
.demo-note {
  font-size: 11px;
  background: #f1ede3;
  border-left: 3px solid var(--gold);
  padding: 13px 16px;
  line-height: 1.7;
}
.form-text {
  font-size: 10px;
}
.form-check-label {
  font-size: 11px;
}
.form-check-input:checked {
  background: var(--wine);
  border-color: var(--wine);
}
.form-result {
  font-size: 13px;
  margin-top: 20px;
}
.article-body {
  max-width: 800px;
  margin: auto;
}
.article-body > img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  margin-bottom: 35px;
}
.article-body h2 {
  font-size: 26px;
  margin: 32px 0 16px;
}
.article-body p,
.article-body li {
  font-size: 14px;
  line-height: 2;
  color: #625e54;
}
.article-body .lead {
  font-family: 'Noto Serif', serif;
  font-size: 20px;
  color: var(--wine-dark);
}
.article-nav {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 25px;
}
.empty-state {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}
.swiper {
  margin-top: 25px;
}
.swiper-slide {
  height: auto;
}
.swiper-pagination {
  position: static;
  margin-top: 20px;
}
.swiper-pagination-bullet-active {
  background: var(--wine);
}
@media (min-width: 1400px) {
  .hero {
    min-height: 655px;
  }
  .hero h1 {
    font-size: 62px;
  }
}
@media (max-width: 1199px) {
  .navbar-nav {
    gap: 11px;
  }
  .navbar .nav-link {
    font-size: 11px;
  }
  .brand strong {
    font-size: 18px;
  }
  .brand img {
    width: 42px;
  }
}
@media (max-width: 991px) {
  .navbar-nav {
    align-items: stretch;
    gap: 0;
    padding-top: 20px;
  }
  .navbar .nav-link {
    padding: 11px 0 !important;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
  }
  .login-button {
    margin-top: 14px;
    display: inline-block;
    width: max-content;
  }
  .hero h1 {
    font-size: 48px;
  }
  .about-visual {
    padding-right: 35px;
  }
  .about-copy {
    padding-top: 30px;
  }
  .section {
    padding: 65px 0;
  }
  .community {
    padding: 0;
  }
  .community-inner {
    padding: 40px;
  }
  .community-inner > img {
    width: 150px;
    margin: 0;
  }
  .practice-card {
    padding: 25px;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .community-inner h2 {
    font-size: 30px;
  }
}
@media (max-width: 767px) {
  .container {
    padding-inline: 22px;
  }
  .topbar .container span:last-child {
    display: none;
  }
  .site-nav {
    padding: 10px 0;
  }
  .hero {
    min-height: 570px;
  }
  .hero-photo {
    object-position: 63% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #172a23df, #172a2359);
  }
  .hero-content {
    padding-top: 45px;
  }
  .hero h1 {
    font-size: 39px;
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 13px;
    max-width: 340px;
  }
  .hero-foot {
    margin-top: 55px;
    font-size: 8px;
    letter-spacing: 1px;
  }
  .path-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 17px 0;
  }
  .path-strip a:last-child {
    padding-bottom: 20px;
  }
  .path-symbol {
    font-size: 25px;
    width: 28px;
  }
  .section {
    padding: 50px 0;
  }
  h2 {
    font-size: 29px;
  }
  .about-visual {
    padding-right: 35px;
  }
  .about-visual > img {
    height: 330px;
  }
  .image-caption {
    right: 12px;
    padding: 17px 22px;
  }
  .image-caption span {
    font-size: 15px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 29px;
  }
  .practice-card p {
    min-height: 0;
  }
  .practice-card h3 {
    margin-top: 25px;
  }
  .quote-band blockquote {
    font-size: 21px;
  }
  .filter-tabs {
    gap: 22px;
  }
  .article-card img {
    height: 230px;
  }
  .community {
    padding: 0;
  }
  .community-inner {
    padding: 35px 25px;
  }
  .community-inner h2 {
    font-size: 27px;
  }
  .community-inner > img {
    display: none;
  }
  .faq-section h2 br {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .page-banner {
    padding: 35px 0;
  }
  .page-banner h1 {
    font-size: 32px;
  }
  .form-panel {
    padding: 25px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 8px;
  }
  .article-body .lead {
    font-size: 18px;
  }
  .sources-section h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .row.g-5 {
    --bs-gutter-x: 2rem;
  }
  .hero h1 {
    font-size: 35px;
  }
}

/* Nhận diện chính thức theo logo do đạo tràng cung cấp. */
:root {
  --wine: #5a352f;
  --wine-dark: #3c2522;
  --gold: #c3a348;
  --cream: #fcfaf4;
  --line: #e6ddcb;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand strong {
  font-size: 19px;
  white-space: nowrap;
}
.brand small {
  letter-spacing: 3px;
}
.site-nav .container {
  max-width: 1460px;
}
.navbar-nav {
  gap: 13px;
}
.navbar .nav-link {
  font-size: 11px;
}
.login-button {
  font-size: 11px;
  padding: 8px 13px;
}
.dropdown-menu {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px #3c252212;
}
.dropdown-item {
  padding: 9px 12px;
  color: var(--ink);
  border-radius: 2px;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: #e9dfc9;
  color: var(--wine);
}
.hero-photo {
  object-position: center 55%;
}
.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(37, 25, 20, 0.89),
    rgba(37, 25, 20, 0.66) 43%,
    rgba(37, 25, 20, 0.17)
  );
}
.hero h1 {
  font-size: 56px;
  max-width: 780px;
}
.hero h1 em {
  color: #f0d078;
}
.hero p {
  color: #f0e7d6;
}
.btn-gold {
  background: #ddbe62;
  border-color: #ddbe62;
}
.path-symbol {
  font-size: 26px;
}
.path-strip strong {
  font-size: 14px;
}
.image-caption img {
  border-radius: 50%;
}
.community-inner > img {
  border-radius: 50%;
  width: 190px;
  opacity: 0.92;
}
.photo-section {
  background: #f2ecde;
}
.section.photo-section {
  padding-top: 70px;
}
.scripture-card {
  height: 100%;
  padding: 27px;
  background: #fffdf8;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.scripture-icon {
  font-family: 'Noto Serif', serif;
  font-size: 25px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 20px;
}
.scripture-card h3 {
  font-size: 21px;
  min-height: 57px;
}
.scripture-card p {
  font-size: 12px;
}
.scripture-card small {
  font-size: 10px;
  color: var(--muted);
  margin-top: auto;
}
.scripture-card .text-link {
  font-size: 11px;
}
.scripture-card .text-link span {
  margin-left: 8px;
}
.gallery-photo {
  border: 0;
  background: #fffdf8;
  padding: 0;
  width: 100%;
  text-align: left;
}
.gallery-photo img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
}
.gallery-photo > span {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: 'Noto Serif', serif;
  font-size: 17px;
  color: var(--wine);
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 25px;
}
.gallery-controls > button {
  background: none;
  border: 1px solid #c9bda5;
  width: 38px;
  height: 38px;
  color: var(--wine);
}
.gallery-controls .swiper-pagination {
  width: auto;
  margin: 0;
}
.source-panel,
.rules-panel {
  padding: 24px;
  background: #f1ecdf;
  border-left: 3px solid var(--gold);
  font-size: 12px;
}
.source-panel p,
.rules-panel p {
  font-size: 12px;
  margin-top: 10px;
}
.rules-panel small {
  font-size: 10px;
  color: var(--muted);
}
.data-notice {
  background: #f0e7cf;
  border: 1px solid #e0d2ac;
  color: #655334;
  padding: 17px 20px;
  font-size: 12px;
  line-height: 1.8;
}
.directory-panel {
  border: 1px solid var(--line);
  background: #fffdf8;
  padding: 22px;
}
.directory-count {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 13px;
}
.temple-list {
  height: 460px;
  overflow-y: auto;
  scrollbar-color: var(--gold) #f1ecdf;
}
.temple-option {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 20px;
  grid-template-rows: auto auto;
  width: 100%;
  padding: 16px;
  text-align: left;
  color: var(--ink);
}
.temple-option span {
  font-size: 13px;
}
.temple-option small {
  font-size: 9px;
  color: var(--muted);
  grid-row: 2;
}
.temple-option b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-weight: 400;
}
.temple-option:hover,
.temple-option.active {
  background: #eae0c5;
}
.temple-detail {
  padding: 36px;
  border: 1px solid var(--line);
  background: #fffdf8;
  height: 100%;
}
.temple-detail h3 {
  font-size: 22px;
}
.temple-detail p {
  font-size: 13px;
}
.contact-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 25px 0;
}
.contact-detail small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--wine);
}
.contact-detail p {
  margin: 10px 0 0;
}
.status-pill {
  display: inline-block;
  font-size: 10px;
  color: #766648;
  background: #eee5cf;
  padding: 4px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
.status-pill.eligible {
  color: #366147;
  background: #e2eee4;
}
.registration-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: start;
}
.registration-layout .form-panel {
  width: 100%;
  margin: 0;
}
.process-list {
  list-style: none;
  counter-reset: process;
  padding: 0;
  margin-top: 35px;
}
.process-list li {
  counter-increment: process;
  position: relative;
  padding: 0 0 35px 52px;
}
.process-list li:before {
  content: '0' counter(process);
  position: absolute;
  left: 0;
  top: 0;
  width: 33px;
  height: 33px;
  border: 1px solid var(--gold);
  color: var(--wine);
  font-size: 10px;
  display: grid;
  place-items: center;
}
.process-list strong {
  display: block;
  font-size: 13px;
}
.process-list span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.editorial-empty {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 20px;
}
.editorial-empty img {
  display: block;
  width: 85px;
  border-radius: 50%;
  margin: 0 auto 25px;
}
.editorial-empty h2 {
  font-size: 32px;
}
.editorial-empty p {
  font-size: 13px;
}
.admin-section {
  padding-top: 40px;
}
.admin-toolbar {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
}
.admin-toolbar > div {
  max-width: 480px;
  width: 100%;
}
.metric {
  padding: 19px 24px;
  background: #fffdf8;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  font-size: 28px;
  font-weight: 500;
  color: var(--wine);
}
.admin-tabs .nav-link {
  font-size: 12px;
  color: var(--wine);
  border-radius: 3px 3px 0 0;
}
.admin-tabs .nav-link.active {
  background: #fffdf8;
  border-color: var(--line);
  border-bottom-color: #fffdf8;
}
.admin-content {
  background: #fffdf8;
  padding: 27px;
  border: 1px solid var(--line);
  border-top: 0;
}
.member-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.member-toolbar > div:first-child {
  flex: 1;
  min-width: 210px;
}
.member-toolbar > div:nth-child(2) {
  width: 240px;
}
.table-hint {
  font-size: 10px;
  margin: 15px 0 10px;
}
.table {
  font-size: 11px;
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  vertical-align: middle;
}
.member-table {
  white-space: nowrap;
}
.member-table th,
.eligibility-table th {
  background: #f1ecdf;
  font-weight: 500;
  font-size: 10px;
  padding: 12px;
}
.member-table td {
  padding: 14px 12px;
}
.small-action {
  background: none;
  border: 1px solid var(--line);
  padding: 4px 10px;
  color: var(--wine);
  font-size: 11px;
}
.request-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.request-card strong {
  font-size: 14px;
}
.request-card p {
  font-size: 11px;
  margin: 5px 0 0;
}
.request-card .btn {
  padding: 8px 13px;
  font-size: 11px;
}
.eligibility-table {
  min-width: 550px;
}
.eligibility-table td {
  padding: 13px 12px;
}
.admin-content h3 {
  font-size: 24px;
}
.modal-content {
  background: #fffdf8;
  border-radius: 4px;
}
.modal-header {
  border-color: var(--line);
}
.modal-title {
  margin: 0;
}
@media (max-width: 1399px) and (min-width: 1200px) {
  .navbar-nav {
    gap: 9px;
  }
  .navbar .nav-link {
    font-size: 10px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand img {
    width: 48px;
    height: 48px;
  }
  .site-nav .container {
    padding-inline: 20px;
  }
}
@media (max-width: 1199px) {
  .navbar-nav {
    align-items: stretch;
    gap: 0;
    padding-top: 18px;
  }
  .navbar .nav-link {
    font-size: 13px;
    padding: 10px 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .login-button {
    display: inline-block;
    margin-top: 12px;
  }
  .registration-layout {
    gap: 35px;
  }
  .hero h1 {
    font-size: 49px;
  }
}
@media (max-width: 767px) {
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1.1px;
  }
  .hero {
    min-height: 555px;
  }
  .hero-photo {
    object-position: 60% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #251914df, #25191480);
  }
  .brand img {
    width: 47px;
    height: 47px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 8px;
  }
  .registration-layout {
    display: block;
  }
  .registration-layout aside {
    margin-bottom: 28px;
  }
  .registration-layout aside h2 br {
    display: none;
  }
  .process-list {
    display: none;
  }
  .community-inner > img {
    display: none;
  }
  .temple-detail {
    padding: 25px;
  }
  .temple-list {
    height: 300px;
  }
  .contact-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scripture-card h3 {
    min-height: 0;
  }
  .section.photo-section {
    padding-top: 45px;
  }
  .gallery-photo img {
    height: 210px;
  }
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-toolbar button {
    align-self: start;
  }
  .admin-content {
    padding: 18px;
  }
  .member-toolbar > div {
    width: 100% !important;
  }
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .admin-tabs .nav-link {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 11px;
  }
  .request-card {
    flex-direction: column;
    align-items: start;
  }
  .metric {
    padding: 14px 19px;
  }
  .editorial-empty h2 {
    font-size: 27px;
  }
  .page-banner h1 {
    font-size: 31px;
  }
  .topbar {
    font-size: 9px;
  }
}

/* Chữ dễ đọc và header hai hàng đồng bộ. */
body {
  font-size: 17px;
  line-height: 1.85;
}
html {
  scroll-padding-top: 185px;
}
.topbar {
  font-size: 12px;
  letter-spacing: 0.5px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
}
.site-nav {
  padding: 0;
}
.header-container {
  display: block !important;
  max-width: 1320px !important;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.header-main .brand {
  gap: 16px;
  flex-shrink: 0;
}
.header-main .brand img {
  width: 70px;
  height: 70px;
}
.header-main .brand strong {
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
}
.brand-region {
  display: block;
  font-family: 'Noto Serif', serif;
  color: var(--wine);
  font-size: 20px;
  line-height: 1.4;
  margin-top: 5px;
}
.header-actions {
  align-items: center;
  gap: 14px;
}
.register-button {
  font-size: 15px;
  color: var(--wine);
  padding: 10px 18px;
}
.login-button {
  display: inline-block;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 4px;
  margin-top: 0;
}
.header-menu {
  border-top: 1px solid var(--line);
}
.header-menu .navbar-nav {
  width: 100%;
  gap: 34px;
  align-items: center;
  padding: 0;
}
.header-menu .nav-link {
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0 !important;
  line-height: 1.5;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.header-menu .nav-link.active {
  border-bottom-color: var(--gold);
  color: var(--wine);
}
.header-menu .nav-link:hover {
  color: var(--wine);
}
.home-menu {
  display: flex;
  align-items: center;
  position: relative;
}
.home-sections-toggle {
  border: 0;
  background: none;
  color: var(--wine);
  width: 32px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
}
.home-sections-toggle:after {
  margin: 0;
}
.home-menu .dropdown-menu {
  top: 100%;
  margin-top: 0;
  min-width: 245px;
  font-size: 15px;
  padding: 8px;
}
.dropdown-item {
  font-size: 15px;
  padding: 11px 14px;
}
.home-menu .dropdown-menu.show {
  display: block;
}
.mobile-account {
  gap: 12px;
  padding: 16px 0;
}
.mobile-account .register-button {
  background: #eee5cf;
  border-radius: 4px;
}
.site-footer .brand strong {
  font-size: 23px;
}
.site-footer .brand small {
  font-size: 12px;
}
.site-footer .brand img {
  width: 60px;
  height: 60px;
}
.hero p {
  font-size: 18px;
  max-width: 620px;
}
.btn {
  font-size: 15px;
  padding: 14px 23px;
}
.text-link {
  font-size: 15px;
}
.hero-foot {
  font-size: 12px;
}
.path-strip small {
  font-size: 11px;
}
.path-strip strong {
  font-size: 17px;
}
.about-copy p,
.practice-card p,
.article-card p,
.faq-section p,
.accordion-body,
.page-banner p,
.temple-detail p,
.source-panel p,
.rules-panel p,
.editorial-empty p {
  font-size: 16px;
}
.principles {
  font-size: 15px;
  gap: 13px;
}
.card-number {
  font-size: 12px;
}
.practice-card a {
  font-size: 14px;
}
.scripture-card p {
  font-size: 16px;
}
.scripture-card small {
  font-size: 13px;
}
.scripture-card .text-link {
  font-size: 14px;
}
.accordion-button {
  font-size: 17px;
}
.footer-title {
  font-size: 13px;
}
.footer-links,
.site-footer p {
  font-size: 14px;
}
.footer-bottom {
  font-size: 12px;
}
.form-control,
.form-select,
.form-label {
  font-size: 16px;
}
.form-check-label,
.demo-note,
.data-notice {
  font-size: 14px;
}
.form-text,
.section-note {
  font-size: 13px;
}
.filter-tabs button {
  font-size: 14px;
}
.article-meta {
  font-size: 12px;
}
.temple-option span {
  font-size: 16px;
}
.temple-option small,
.directory-count,
.contact-detail small {
  font-size: 12px;
}
.status-pill {
  font-size: 12px;
}
.process-list strong {
  font-size: 16px;
}
.process-list span {
  font-size: 14px;
}
.metric span,
.admin-tabs .nav-link {
  font-size: 15px;
}
.table {
  font-size: 14px;
}
.member-table th,
.eligibility-table th {
  font-size: 13px;
}
.table-hint,
.small-action {
  font-size: 13px;
}
.request-card p {
  font-size: 14px;
}
.request-card strong {
  font-size: 17px;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-menu .navbar-nav {
    gap: 24px;
  }
  .header-menu .nav-link {
    font-size: 14px;
  }
  .header-main .brand strong {
    font-size: 26px;
  }
  .header-main .brand img {
    width: 66px;
    height: 66px;
  }
}
@media (max-width: 1199px) {
  html {
    scroll-padding-top: 125px;
  }
  .header-main {
    padding: 14px 0;
    gap: 14px;
  }
  .header-main .brand strong {
    font-size: 25px;
  }
  .header-main .brand img {
    width: 62px;
    height: 62px;
  }
  .header-menu .navbar-nav {
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .header-menu .nav-link {
    font-size: 16px;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--line);
  }
  .home-menu {
    flex-wrap: wrap;
  }
  .home-menu > .nav-link {
    flex: 1;
  }
  .home-menu .dropdown-menu {
    width: 100%;
    position: static;
    margin: 0 0 8px;
    box-shadow: none;
  }
  .home-sections-toggle {
    height: 49px;
    margin: 0;
  }
  .mobile-account {
    display: flex;
  }
  .header-menu {
    max-height: calc(100dvh - 145px);
    overflow-y: auto;
  }
  .header-menu .nav-link.active {
    border-bottom-color: var(--line);
    font-weight: 700;
  }
  .header-menu .dropdown-item {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  .topbar {
    font-size: 10px;
  }
  .header-main .brand img {
    width: 54px;
    height: 54px;
  }
  .header-main .brand {
    gap: 10px;
  }
  .header-main .brand strong {
    font-size: 20px;
  }
  .brand-region {
    font-size: 16px;
    margin-top: 3px;
  }
  .header-main {
    padding: 12px 0;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 16px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .hero-foot {
    font-size: 10px;
  }
  .path-strip strong {
    font-size: 16px;
  }
  .path-strip small {
    font-size: 10px;
  }
  .btn {
    font-size: 14px;
  }
  .site-footer .brand strong {
    font-size: 21px;
  }
  .article-body p,
  .article-body li {
    font-size: 16px;
  }
}
@media (max-width: 359px) {
  .header-main .brand strong {
    font-size: 18px;
  }
  .header-main .brand img {
    width: 46px;
    height: 46px;
  }
  .header-main {
    gap: 8px;
  }
  .header-container {
    padding-inline: 16px !important;
  }
}

@media (max-width: 767px) {
  .header-main .brand {
    min-width: 0;
    flex-shrink: 1;
  }
  .header-main .brand > span {
    min-width: 0;
  }
  .header-main .navbar-toggler {
    flex-shrink: 0;
  }
  .site-footer .brand {
    min-width: 0;
  }
  .site-footer .brand > span {
    min-width: 0;
  }
  .site-footer .brand strong {
    white-space: normal;
  }
  .site-footer .brand img {
    flex-shrink: 0;
  }
}

/* Điều hướng trực tiếp; mục mở rộng ở top menu. */
.topbar .container {
  align-items: center;
  gap: 20px;
}
.top-menu {
  display: flex;
  gap: 26px;
  align-items: center;
}
.top-menu a {
  font-size: 13px;
  color: #efe1c1;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 3px 0;
}
.top-menu a:hover,
.top-menu a:focus-visible {
  color: #fff;
}
.hero-centered .hero-content {
  text-align: center;
}
.hero-centered h1 {
  max-width: none;
  font-size: 54px;
}
.hero-centered .hero-content > p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}
.hero-centered .hero-content > .d-flex {
  justify-content: center;
}
.hero-centered .hero-shade {
  background: linear-gradient(180deg, #281d195e, #281d19a8 55%, #281d198c);
}
.hero-centered .hero-invocation {
  font-family: 'Noto Serif', serif;
  font-size: 25px;
  line-height: 1.6;
  color: #ffe295;
  margin-top: 16px;
  margin-bottom: 22px;
}
.hero-centered .hero-foot {
  margin-top: 55px;
}
.contact-detail {
  gap: 25px 30px;
}
.contact-detail a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.location-label {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 1199px) {
  .topbar .container {
    justify-content: center;
  }
  .topbar .container > span {
    display: none;
  }
  .top-menu {
    gap: 26px;
  }
  .header-menu .navbar-nav {
    align-items: stretch;
  }
  .hero-centered h1 {
    font-size: 48px;
  }
}
@media (max-width: 767px) {
  .topbar .container {
    padding-inline: 14px;
  }
  .top-menu {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .top-menu a {
    font-size: 11px;
    padding: 5px 0;
  }
  .hero-centered h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
  }
  .hero-centered .hero-invocation {
    font-size: 19px;
    margin-top: 15px;
    margin-bottom: 20px;
  }
  .hero-centered .hero-foot {
    margin-top: 40px;
    letter-spacing: 0.6px;
  }
  .hero-centered .hero-content {
    padding-top: 35px;
  }
  .hero-centered .hero-content > .eyebrow {
    font-size: 10px;
  }
  .hero-centered .hero-photo {
    object-position: center;
  }
  .topbar {
    padding: 3px 0;
  }
  .contact-detail {
    gap: 20px;
  }
  .location-label {
    font-size: 13px;
  }
}
@media (max-width: 359px) {
  .top-menu a {
    font-size: 10px;
  }
  .top-menu {
    gap: 6px;
  }
  .hero-centered h1 {
    font-size: 30px;
  }
  .hero-centered .hero-invocation {
    font-size: 18px;
  }
}

/* Keep footer social links clear of the fixed back-to-top button. */
.footer-bottom {
  align-items: center;
  padding-right: 64px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  color: #e5d5b8;
  font-size: 13px;
  line-height: 1.4;
}
.footer-social a:hover {
  background: #ffffff12;
  color: #ffe295;
  border-color: #c69d58;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.footer-social .social-cutout {
  fill: #292b25;
}
.back-top {
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
}
.footer-bottom > span {
  min-width: 0;
}
@media (max-width: 767px) {
  .footer-bottom {
    align-items: flex-start;
    gap: 14px;
    padding-right: 56px;
    padding-bottom: 24px;
  }
  .footer-social {
    gap: 10px;
  }
  .back-top {
    right: 16px;
    bottom: 16px;
  }
}
@media (max-width: 575px) {
  .footer-social .social-label {
    display: none;
  }
  .footer-social a {
    width: 44px;
    padding: 10px;
  }
  .footer-social svg {
    width: 21px;
    height: 21px;
  }
}

.about-community-photo {
  width: 100%;
  height: 370px;
  object-fit: cover;
  border-radius: 4px;
}
body[data-page='about'] .community {
  padding-bottom: 70px;
}
@media (max-width: 767px) {
  .about-community-photo {
    height: 240px;
  }
  body[data-page='about'] .community {
    padding-bottom: 0;
  }
}

/* Shared image/video libraries. */
.media-section {
  background: #f5f1e8;
}
.media-card {
  height: 100%;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.media-open {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #eee5d4;
  text-align: left;
}
.media-photo,
.media-video-cover {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.media-video-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #482127, #79543a);
  color: #ead29e;
  font-size: 11px;
  letter-spacing: 1.3px;
}
.media-video-cover img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.media-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3c478;
  color: #482127;
  font-size: 17px;
  padding-left: 3px;
}
.media-type {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  letter-spacing: 1px;
  background: #fffdf8ef;
  color: var(--wine-dark);
  padding: 3px 10px;
  border-radius: 3px;
}
.media-open:hover .media-play {
  background: #ffe295;
  transform: scale(1.08);
}
.media-card-body {
  padding: 23px;
}
.media-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.media-card p,
.media-caption {
  font-size: 14px;
  line-height: 1.8;
}
.media-text-button {
  border: 0;
  background: none;
  padding: 0;
}
.media-large {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 75vh;
  margin: auto;
  object-fit: contain;
}
.media-native-video {
  display: block;
  width: 100%;
  max-height: 75vh;
  background: #000;
}
#media-player iframe {
  border: 0;
}
.top-menu a[aria-current='page'] {
  color: #ffe295;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.accordion-body a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-entry[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .media-photo,
  .media-video-cover {
    height: 210px;
  }
  .media-card-body {
    padding: 20px;
  }
  .media-card h3 {
    font-size: 21px;
  }
  .media-tabs {
    gap: 24px;
  }
}

/* Home hero background slideshow and accessible controls. */
.hero-slideshow.swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-slideshow .swiper-slide {
  height: 100%;
  overflow: hidden;
}
.hero-slideshow .hero-photo {
  display: block;
}
.hero-centered .hero-shade {
  z-index: 1;
  pointer-events: none;
}
.hero-centered .hero-content {
  z-index: 2;
}
.hero-slide-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 24px;
}
.hero-slide-controls > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #281d1960;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}
.hero-slide-controls > button:hover {
  background: #d5b377;
  color: #302b21;
}
.hero-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  width: auto !important;
}
.hero-pagination .swiper-pagination-bullet {
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  background: transparent;
  opacity: 0.8;
  margin: 0 !important;
  padding: 0;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: #ffe295;
  border-color: #ffe295;
  opacity: 1;
}
.hero-centered .hero-foot {
  margin-top: 24px;
}
.hero-pause {
  margin-left: 4px;
}
@media (max-width: 767px) {
  .hero-slide-controls {
    gap: 10px;
    margin-top: 22px;
  }
  .hero-centered .hero-foot {
    margin-top: 22px;
  }
}

.scripture-reading-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.scripture-reading-heading h2 {
  margin: 0;
}
.scripture-reader {
  display: block;
  width: 100%;
  height: 960px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.scripture-reader-help {
  font-size: 14px;
  margin: 18px 0 0;
}
.scripture-reader-help a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scripture-card h3 a:hover {
  color: var(--wine);
}
@media (max-width: 767px) {
  .scripture-reading-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .scripture-reader {
    height: 75vh;
    min-height: 480px;
  }
  .scripture-reader-help {
    font-size: 13px;
  }
}

.scripture-reader-help {
  margin: 0 0 18px;
}

.scripture-reading-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.scripture-font-control {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--wine);
  font-size: 15px;
  padding: 8px 14px;
}
.scripture-font-control:hover {
  background: #eee5d4;
  color: var(--wine-dark);
}
.scripture-content {
  --reading-size: 20px;
  padding: 40px 48px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fffdf8;
  max-width: 900px;
  margin: auto;
}
.scripture-content p {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: var(--reading-size);
  line-height: 2;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.scripture-content h3 {
  color: var(--wine-dark);
  font-size: 25px;
  margin: 0 0 18px;
}
.scripture-text-section + .scripture-text-section {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 32px;
}
.scripture-verse {
  white-space: pre-line;
}
.scripture-attribution {
  font-size: 13px;
  text-align: center;
  margin-top: 20px;
}
.scripture-attribution a {
  color: var(--wine);
  text-decoration: underline;
}
@media (max-width: 767px) {
  .scripture-content {
    padding: 25px 22px;
  }
  .scripture-content h3 {
    font-size: 22px;
  }
}

.scripture-toc {
  border: 1px solid var(--line);
  background: #f4eee1;
  border-radius: 5px;
  padding: 15px 22px;
  margin-bottom: 24px;
}
.scripture-toc summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--wine-dark);
}
.scripture-toc ol {
  margin: 15px 0 0;
  padding-left: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
}
.scripture-toc a {
  color: var(--wine);
  font-size: 15px;
}
.scripture-text-section {
  scroll-margin-top: 185px;
}
@media (max-width: 767px) {
  .scripture-toc ol {
    grid-template-columns: 1fr;
  }
  .scripture-text-section {
    scroll-margin-top: 110px;
  }
}

.topbar .container {
  justify-content: center;
}
.top-invocation {
  margin: 0;
  color: #efe1c1;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: center;
}
@media (min-width: 1200px) {
  .header-menu .navbar-nav {
    justify-content: space-between;
    gap: 12px;
  }
  .header-menu .nav-link {
    font-size: 15px;
  }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-menu .navbar-nav {
    gap: 10px;
  }
  .header-menu .nav-link {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .top-invocation {
    font-size: 12px;
    padding: 4px 0;
  }
}

.topbar .container {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1320px;
}
.top-invocation {
  text-align: left;
}
.top-support {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.top-support a {
  color: #efe1c1;
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
  padding: 3px 0;
}
.top-support a:hover {
  color: #ffe295;
}
.top-support a span {
  color: #d7c5a6;
}
@media (max-width: 1199px) {
  .top-invocation {
    font-size: 14px;
  }
  .top-support {
    gap: 14px;
  }
  .top-support a {
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .topbar .container {
    gap: 2px;
    padding-inline: 22px;
  }
  .top-invocation {
    width: 100%;
    font-size: 12px;
    padding: 3px 0;
  }
  .top-support {
    width: 100%;
    gap: 4px 14px;
  }
  .top-support a {
    font-size: 11px;
    padding: 2px 0;
  }
  .top-support a span {
    display: none;
  }
}

.directory-sidebar {
  align-self: stretch;
}
.members-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.members-intro h3 {
  margin: 0 0 10px;
}
.member-card-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.member-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.member-card-actions .btn {
  padding: 10px 14px;
  font-size: 13px;
}
.temple-detail .member-preview-note {
  font-size: 12px;
  margin: 16px 0 24px;
}
.member-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.member-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
}
.member-card-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.member-card-heading > div {
  min-width: 0;
}
.member-initials {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eae0c5;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 18px;
}
.member-card-heading small {
  font-size: 11px;
  color: var(--muted);
}
.member-card h4 {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 19px;
  line-height: 1.5;
  margin: 2px 0;
  overflow-wrap: anywhere;
}
.temple-detail .member-card-status {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  background: #eee5d4;
  color: var(--wine-dark);
  padding: 6px 10px;
  border-radius: 4px;
  margin: 15px 0;
}
.member-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 15px;
  margin: 0 0 18px;
}
.member-card-details dt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.member-card-details dd {
  font-size: 13px;
  line-height: 1.6;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.member-card-details > div:nth-child(4) {
  grid-column: 1/-1;
}
.member-load-footer {
  text-align: center;
  margin-top: 24px;
}
.member-load-footer p {
  font-size: 13px;
}
#member-load-sentinel {
  height: 1px;
}
.member-card-grid > .empty-state {
  grid-column: 1/-1;
}
@media (min-width: 992px) {
  .directory-sidebar .directory-panel {
    position: sticky;
    top: var(--directory-sticky-top, 180px);
    max-height: calc(100dvh - var(--directory-sticky-top, 180px) - 18px);
    display: flex;
    flex-direction: column;
  }
  .directory-sidebar .temple-list {
    height: auto;
    min-height: 90px;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 1199px) and (min-width: 992px) {
  .member-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .members-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .member-card-filters,
  .member-card-grid {
    grid-template-columns: 1fr;
  }
  .member-card {
    padding: 20px;
  }
  .directory-sidebar .temple-list {
    height: 240px;
  }
  .directory-sidebar .directory-panel {
    position: static;
  }
}

/* Only the main menu sticks; branding scrolls with the page. */
.site-branding {
  background: var(--cream);
}
.site-nav {
  top: 0;
}
.site-branding .header-main {
  border-bottom: 0;
}
.mobile-main-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  min-height: 52px;
  font-size: 15px;
  color: var(--wine);
  font-weight: 500;
}
.mobile-main-menu .navbar-toggler {
  margin: 0;
}
.site-nav .header-menu {
  max-height: calc(100dvh - 55px);
}
/* One read-only horizontal card per row. */
.member-card-grid {
  grid-template-columns: minmax(0, 1fr);
}
.member-horizontal {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}
.member-portrait img {
  display: block;
  width: 112px;
  height: 140px;
  object-fit: cover;
  border-radius: 5px;
  background: #eee5d4;
}
.member-portrait > span {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.member-information {
  min-width: 0;
}
.member-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.member-horizontal h4 {
  font-size: 21px;
  margin: 0 0 5px;
}
.temple-detail .member-dharma {
  font-size: 14px;
  margin: 0;
  color: var(--wine);
}
.member-dharma strong {
  font-weight: 500;
}
.member-horizontal .member-card-status {
  display: inline-block;
  font-size: 10px;
  line-height: 1.5;
  padding: 5px 8px;
  margin: 0;
  max-width: 125px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #eee5d4;
  color: var(--wine-dark);
}
.member-horizontal .member-card-details {
  margin: 18px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}
.member-horizontal .member-card-details > div:nth-child(4) {
  grid-column: auto;
}
.member-horizontal .member-field-address {
  grid-column: span 2;
}
.member-horizontal .member-card-details dt {
  font-size: 11px;
}
.member-horizontal .member-card-details dd {
  font-size: 13px;
}
@media (max-width: 1199px) {
  .site-branding .header-main {
    padding: 14px 0;
  }
  .site-nav .header-menu {
    border-top: 1px solid var(--line);
  }
  .member-name-row {
    flex-direction: column;
  }
  .member-horizontal .member-card-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .member-horizontal {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .member-portrait img {
    width: 68px;
    height: 88px;
  }
  .member-horizontal h4 {
    font-size: 18px;
  }
  .temple-detail .member-dharma {
    font-size: 12px;
  }
  .member-horizontal .member-card-details {
    gap: 12px 10px;
  }
  .member-horizontal .member-card-details dt {
    font-size: 10px;
  }
  .member-horizontal .member-card-details dd {
    font-size: 12px;
  }
  .member-horizontal .member-card-status {
    max-width: none;
  }
  .member-portrait > span {
    font-size: 10px;
  }
  .site-nav .header-container {
    padding-inline: 22px !important;
  }
}
@media (max-width: 359px) {
  .member-horizontal {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .member-portrait img {
    width: 54px;
    height: 72px;
  }
  .member-horizontal .member-card-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .member-horizontal .member-field-address {
    grid-column: auto;
  }
}

.member-detail-link {
  font-size: 13px;
  margin-top: 18px;
}
.person-photo-panel {
  padding: 24px;
  background: #fffdf8;
  border: 1px solid var(--line);
  text-align: center;
  border-radius: 6px;
}
.person-photo-panel img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 5/6;
  object-fit: cover;
  margin: auto;
  border-radius: 5px;
}
.person-photo-panel > span {
  display: block;
  color: var(--wine);
  font-size: 13px;
  margin-top: 15px;
}
.person-photo-panel p {
  font-size: 11px;
  margin: 8px 0 0;
}
.person-profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.person-profile-heading h2 {
  font-size: 34px;
  margin: 10px 0;
}
.person-dharma {
  font-size: 19px;
  color: var(--wine);
  margin-bottom: 15px;
}
.person-dharma strong {
  font-weight: 500;
}
.profile-status {
  font-size: 12px;
  line-height: 1.7;
  background: #eee5d4;
  color: var(--wine-dark);
  border-radius: 5px;
  padding: 8px 12px;
  max-width: 195px;
}
.person-info-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  margin-bottom: 22px;
}
.person-info-panel h3 {
  font-size: 23px;
  margin: 0 0 24px;
}
.person-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 30px;
  margin: 0;
}
.person-field-grid dt {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.person-field-grid dd {
  font-size: 16px;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.person-field-grid .profile-field-address {
  grid-column: 1/-1;
}
.practice-year-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.practice-year-grid dd {
  color: var(--wine);
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 24px;
}
.person-back-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
@media (min-width: 992px) {
  .person-photo-panel {
    position: sticky;
    top: 80px;
  }
}
@media (max-width: 767px) {
  .person-profile-heading {
    flex-direction: column;
    gap: 16px;
  }
  .person-profile-heading h2 {
    font-size: 28px;
  }
  .person-photo-panel {
    max-width: 290px;
    margin: 0 auto 10px;
  }
  .person-info-panel {
    padding: 22px;
  }
  .person-field-grid {
    gap: 20px;
  }
  .practice-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-status {
    max-width: none;
  }
  .person-back-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

.main-menu-sentinel {
  height: 1px;
  background: var(--cream);
  pointer-events: none;
}
.site-nav > .header-container {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 18px;
}
.sticky-menu-logo {
  display: none;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
}
.sticky-menu-logo img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.is-stuck .sticky-menu-logo {
  display: flex;
}
.site-nav .header-menu {
  flex: 1;
  min-width: 0;
}
.site-nav .mobile-main-menu {
  flex: 1;
  width: auto;
}
.site-nav.is-stuck {
  box-shadow: 0 3px 14px #48212712;
}
@media (max-width: 1199px) {
  .site-nav .header-menu {
    flex-basis: 100%;
    width: 100%;
  }
  .site-nav > .header-container {
    column-gap: 12px;
  }
  .sticky-menu-logo {
    flex-basis: 36px;
  }
  .sticky-menu-logo img {
    width: 36px;
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-menu-logo {
    transition: none;
  }
}

/* A single submenu level, operated by Bootstrap Dropdown. */
.main-dropdown {
  display: flex;
  align-items: center;
}
.main-menu-arrow {
  border: 0;
  background: transparent;
  color: var(--wine);
  width: 26px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}
.main-menu-arrow:after {
  margin: 0;
}
.main-menu-arrow:hover,
.main-menu-arrow[aria-expanded='true'] {
  color: var(--wine-dark);
  background: #eee5d4;
  border-radius: 3px;
}
.site-nav .main-dropdown .dropdown-menu {
  min-width: 245px;
  max-width: min(380px, calc(100vw - 44px));
  max-height: min(480px, calc(100dvh - 90px));
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 5px 5px;
  background: #fffdf8;
  padding: 8px;
  box-shadow: 0 12px 25px #48212718;
  top: 100%;
  left: 0;
  margin: 0;
  z-index: 1010;
}
.site-nav .main-dropdown .dropdown-item {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 12px;
  white-space: normal;
}
.site-nav .main-dropdown .dropdown-item:hover,
.site-nav .main-dropdown .dropdown-item:focus {
  color: var(--wine);
  background: #eee5d4;
}
.site-nav .main-dropdown .dropdown-item:active {
  background: var(--wine);
  color: white;
}
@media (min-width: 1200px) {
  .site-nav .header-menu {
    overflow: visible;
  }
  .site-nav .main-dropdown .dropdown-menu {
    position: absolute;
  }
  .site-nav .header-menu .navbar-nav {
    gap: 8px;
  }
}
@media (max-width: 1199px) {
  .main-dropdown > .nav-link {
    flex: 1;
  }
  .main-menu-arrow {
    width: 44px;
    border-bottom: 1px solid var(--line);
    min-height: 49px;
  }
  .site-nav .main-dropdown .dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: none;
    box-shadow: none;
    border-top: 1px solid var(--line);
    margin: 0 0 8px;
    padding: 6px 12px;
  }
  .main-dropdown {
    width: 100%;
  }
}

@media (max-width: 1199px) {
  .main-dropdown {
    flex-wrap: wrap;
  }
  .site-nav .main-dropdown > .dropdown-menu {
    flex-basis: 100%;
  }
}

/* Mobile: logo and menu toggle share one sticky row. */
@media (max-width: 1199px) {
  .site-branding {
    display: none;
  }
  .site-nav .sticky-menu-logo,
  .site-nav.is-stuck .sticky-menu-logo {
    display: none;
  }
  .site-nav .mobile-main-menu {
    width: 100%;
    flex-basis: 100%;
    gap: 14px;
    min-height: 76px;
    padding: 10px 0;
  }
  .mobile-main-menu .mobile-brand {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-main-menu .mobile-brand > span {
    min-width: 0;
  }
  .mobile-main-menu .mobile-brand img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  .mobile-main-menu .mobile-brand strong {
    font-size: 21px;
    line-height: 1.35;
    white-space: normal;
    letter-spacing: 0;
  }
  .mobile-main-menu .mobile-brand .brand-region {
    font-size: 15px;
    line-height: 1.4;
    margin-top: 2px;
  }
  .mobile-main-menu .navbar-toggler {
    flex-shrink: 0;
    padding: 8px;
  }
  .site-nav .header-menu {
    max-height: calc(100dvh - var(--mobile-main-height, 86px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 767px) {
  .mobile-main-menu .mobile-brand img {
    width: 46px;
    height: 46px;
  }
  .mobile-main-menu .mobile-brand strong {
    font-size: 18px;
  }
  .site-nav .mobile-main-menu {
    gap: 10px;
  }
  .mobile-main-menu .mobile-brand .brand-region {
    font-size: 14px;
  }
}
@media (max-width: 359px) {
  .site-nav .header-container {
    padding-inline: 16px !important;
  }
  .mobile-main-menu .mobile-brand img {
    width: 42px;
    height: 42px;
  }
  .mobile-main-menu .mobile-brand strong {
    font-size: 17px;
  }
  .mobile-main-menu .mobile-brand {
    gap: 8px;
  }
  .site-nav .mobile-main-menu {
    gap: 6px;
  }
}

.top-support a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.support-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.top-support .support-text {
  color: inherit;
}
.top-support .support-label {
  color: #d7c5a6;
}
@media (max-width: 767px) {
  .topbar .container {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .top-invocation {
    width: auto;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.6;
  }
  .top-support {
    width: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
    margin-left: auto;
  }
  .top-support a {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
  }
  .top-support a:hover,
  .top-support a:focus-visible {
    background: #ffffff12;
  }
  .top-support .support-text {
    display: none;
  }
  .support-icon {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 359px) {
  .top-invocation {
    font-size: 11px;
  }
  .topbar .container {
    padding-inline: 16px;
    gap: 6px;
  }
}

/* Select2 controls share the site's typography, colors and visible chevron. */
.select2-container {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}
.select2-container--default .select2-selection--single {
  min-height: 50px;
  height: auto;
  border: 1px solid #dfd3c0;
  border-radius: 4px;
  background: #fffdf9;
  display: flex;
  align-items: center;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #49352c;
  padding: 11px 48px 11px 14px;
  line-height: 1.6;
  width: 100%;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  width: 42px;
  height: 100%;
  top: 0;
  right: 0;
  border-left: 1px solid #e8ddcc;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: solid #79532f;
  border-width: 0 2px 2px 0;
  width: 9px;
  height: 9px;
  margin: -7px 0 0 -5px;
  transform: rotate(45deg);
}
.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border: solid #79532f;
  border-width: 0 2px 2px 0;
  margin-top: -2px;
  transform: rotate(225deg);
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #9a713f;
  box-shadow: 0 0 0 3px #9a713f20;
}
.select2-dropdown {
  border-color: #b89a73;
  box-shadow: 0 8px 24px #39231920;
  z-index: 1060;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #dfd3c0;
  border-radius: 3px;
  padding: 9px;
  font: inherit;
}
.select2-results__option {
  padding: 10px 14px;
  overflow-wrap: anywhere;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #6c3d2d;
  color: #fff;
}
.form-select.mb-3 + .select2-container {
  margin-bottom: 1rem;
}
.select2-container--default.select2-container--disabled .select2-selection--single {
  background: #f0ede6;
  opacity: 0.7;
}
/* Compact temple selection on mobile; desktop keeps the scrolling directory. */
.temple-mobile-picker {
  display: none;
}
@media (max-width: 991px) {
  .directory-sidebar .temple-list {
    display: none;
  }
  .temple-mobile-picker {
    display: block;
  }
  .temple-mobile-picker .form-select {
    width: 100%;
    min-width: 0;
  }
}
