:root {
  --red-950: #2f2218;
  --red-900: #4a3423;
  --red-800: #6e4b2e;
  --red-700: #8f6a3a;
  --gold-700: #8b661e;
  --gold-500: #c99b3d;
  --gold-300: #ead49a;
  --cream-50: #fffdf7;
  --cream-100: #f7efe0;
  --cream-200: #eadcc2;
  --ink: #201915;
  --muted: #5d5145;
  --success: #227343;
  --danger: #b3261e;
  --line: rgba(73, 54, 34, .18);
  --shadow: 0 22px 60px rgba(63, 47, 30, .13);
  --radius: 8px;
  --max: 1180px;
  --font-calligraphy: "Iansui", "Noto Serif TC", "DFKai-SB", "BiauKai", "KaiTi", serif;
  --font-body: var(--font-calligraphy);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  color: var(--ink);
  background: var(--cream-50);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.inline-text-link {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.site-header .inline-text-link {
  border-bottom: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 4px solid var(--gold-500);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-160%);
  padding: 12px 18px;
  color: var(--cream-50);
  background: var(--red-900);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, #fffaf0, var(--cream-200));
  border: 1px solid rgba(139, 102, 30, .42);
  border-radius: 50%;
  font-family: var(--font-calligraphy);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.brand-title,
.brand small {
  display: block;
}

.brand-title {
  color: inherit;
  font-family: var(--font-calligraphy);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.22;
  text-decoration: none;
}

.brand small {
  color: var(--muted);
  font-size: .82rem;
  max-width: 360px;
  line-height: 1.45;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.menu-toggle {
  display: none;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--red-900);
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--red-900);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
}

.main-nav a:hover {
  background: rgba(143, 37, 34, .09);
}

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 12%, rgba(234, 212, 154, .42), transparent 30%),
    linear-gradient(135deg, #fffdf7, #f7efe0 58%, #fff8ea);
}

.hero::after {
  display: none;
}

.hero .container {
  width: min(calc(100% - 36px), 1320px);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  align-items: center;
  gap: 48px;
  padding: 74px 0 104px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-700);
  font-weight: 900;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--gold-700);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-calligraphy);
  line-height: 1.22;
}

h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6.4vw, 5.25rem);
  letter-spacing: 0;
}

#hero-title {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.hero-title-image {
  max-width: 760px;
  line-height: 0;
}

.hero-title-image img {
  display: block;
  width: 100%;
  height: auto;
}

h2 {
  color: var(--red-950);
  font-size: clamp(2rem, 4vw, 3.15rem);
}

h3 {
  color: var(--red-900);
  font-size: 1.55rem;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.3vw, 1.62rem);
  font-weight: 700;
}

.hero-subtitle p {
  margin: 0;
}

.hero-subtitle p + p {
  margin-top: .85em;
}

.organizer-line {
  display: inline-flex;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 0;
  color: var(--red-950);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: calc(clamp(1.18rem, 2.3vw, 1.62rem) + 8px);
  font-weight: 900;
  backdrop-filter: none;
}

.event-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 34px 0 0;
}

.event-info div {
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(139, 102, 30, .24);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(63, 47, 30, .1);
  backdrop-filter: blur(18px);
}

.event-info dt,
.event-info dd {
  margin: 0;
}

.event-info dt {
  color: var(--gold-700);
  font-size: .95rem;
  font-weight: 900;
}

.event-info dd {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.hero-actions,
.form-actions,
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #fff8e4, var(--gold-300));
  border-color: rgba(139, 102, 30, .36);
  box-shadow: 0 12px 28px rgba(63, 47, 30, .13);
}

.btn-secondary {
  color: var(--red-900);
  background: rgba(255, 255, 255, .86);
  border-color: rgba(73, 54, 34, .22);
}

.hero .btn-secondary {
  color: var(--red-900);
  background: rgba(255, 255, 255, .78);
  border-color: rgba(139, 102, 30, .32);
}

.hero-bg span {
  position: absolute;
  pointer-events: none;
}

.hero-bg {
  display: none;
}

.halo {
  width: 46vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 234, 166, .52), rgba(255, 203, 86, .08) 45%, transparent 66%);
  filter: blur(2px);
}

.halo-one {
  top: -12vw;
  right: -8vw;
}

.halo-two {
  bottom: 2vw;
  left: 40%;
  width: 28vw;
  opacity: .45;
}

.halo-three {
  top: 18%;
  left: 4%;
  width: 22vw;
  opacity: .32;
}

.incense {
  bottom: 0;
  width: 2px;
  height: 45vh;
  background: linear-gradient(to top, rgba(241, 217, 147, .35), transparent);
  border-radius: 999px;
  filter: blur(.4px);
  animation: smoke 7s ease-in-out infinite;
}

.smoke-one {
  left: 16%;
}

.smoke-two {
  left: 22%;
  animation-delay: -2.5s;
}

.lotus-pattern {
  width: 360px;
  height: 150px;
  opacity: .16;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 38%, rgba(255, 231, 159, .9) 39% 43%, transparent 44%),
    radial-gradient(ellipse at 18% 100%, transparent 34%, rgba(255, 231, 159, .65) 35% 40%, transparent 41%),
    radial-gradient(ellipse at 82% 100%, transparent 34%, rgba(255, 231, 159, .65) 35% 40%, transparent 41%);
}

.lotus-left {
  left: 4%;
  bottom: 8%;
}

.lotus-right {
  right: 5%;
  bottom: 11%;
}

.particle {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 232, 160, .8);
  box-shadow: 0 0 22px rgba(255, 232, 160, .9);
  animation: floatParticle 6s ease-in-out infinite;
}

.particle-one {
  top: 28%;
  left: 52%;
}

.particle-two {
  top: 54%;
  left: 8%;
  animation-delay: -2s;
}

.particle-three {
  right: 12%;
  top: 66%;
  animation-delay: -4s;
}

@keyframes smoke {
  0%,
  100% {
    transform: translateX(0) scaleY(1);
    opacity: .45;
  }
  50% {
    transform: translateX(22px) scaleY(1.08);
    opacity: .78;
  }
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translateY(0);
    opacity: .28;
  }
  50% {
    transform: translateY(-24px);
    opacity: .86;
  }
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-carousel {
  position: relative;
  width: min(100%, 590px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(139, 102, 30, .28);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(63, 47, 30, .16);
}

.hero-carousel-track,
.hero-carousel-track img {
  position: absolute;
  inset: 0;
}

.hero-carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 5s ease;
}

.hero-carousel-track img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 253, 247, .2), transparent 42%);
  pointer-events: none;
}

.hero-carousel-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  gap: 8px;
}

.hero-carousel-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(255, 250, 240, .62);
  border: 1px solid rgba(255, 250, 240, .72);
  border-radius: 999px;
}

.hero-carousel-dots button.is-active {
  width: 28px;
  background: var(--gold-300);
  border-color: #fff8dc;
}

.origin-carousel {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
}

.altar-card {
  position: relative;
  width: min(100%, 410px);
  min-height: 520px;
  padding: 44px 34px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 245, 214, .88), rgba(236, 204, 128, .98)),
    var(--cream-100);
  border: 8px double rgba(96, 25, 18, .78);
  border-radius: 6px 6px 44px 44px;
  box-shadow: 0 28px 80px rgba(13, 2, 2, .42);
}

.glass-card {
  outline: 1px solid rgba(139, 102, 30, .18);
  outline-offset: 10px;
}

.altar-card::before,
.altar-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(143, 37, 34, .24);
  border-radius: 2px 2px 32px 32px;
}

.altar-glow {
  position: absolute;
  inset: -120px auto auto 50%;
  width: 260px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .72), transparent 68%);
}

.altar-top,
.altar-title,
.altar-lines,
.altar-year {
  position: relative;
  z-index: 1;
}

.altar-top {
  color: var(--red-800);
  font-family: var(--font-calligraphy);
  font-size: 2rem;
  font-weight: 900;
}

.altar-title {
  margin-top: 42px;
  color: var(--red-950);
  writing-mode: vertical-rl;
  width: fit-content;
  margin-right: auto;
  margin-left: auto;
  font-family: var(--font-calligraphy);
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.altar-lines {
  width: 60%;
  margin: 36px auto 0;
}

.altar-lines span {
  display: block;
  height: 1px;
  margin: 13px 0;
  background: rgba(102, 23, 23, .45);
}

.altar-year {
  margin-top: 38px;
  color: var(--muted);
  font-weight: 900;
}

.section {
  padding: 92px 0;
}

.section-warm {
  background:
    radial-gradient(circle at 10% 8%, rgba(241, 217, 147, .3), transparent 32%),
    var(--cream-50);
}

.section-deep {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 12%, rgba(234, 212, 154, .28), transparent 30%),
    var(--cream-100);
}

.section-deep h2,
.section-deep .eyebrow {
  color: var(--red-950);
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow),
.friendly-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.origin-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 62px);
  background:
    radial-gradient(circle at 90% 12%, rgba(241, 217, 147, .36), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(255, 246, 224, .76));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.origin-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -52px;
  width: 340px;
  height: 160px;
  opacity: .13;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 36%, var(--gold-700) 37% 41%, transparent 42%),
    radial-gradient(ellipse at 18% 100%, transparent 32%, var(--gold-700) 33% 38%, transparent 39%),
    radial-gradient(ellipse at 82% 100%, transparent 32%, var(--gold-700) 33% 38%, transparent 39%);
}

.origin-card .section-heading {
  margin-bottom: 24px;
}

.origin-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 600;
}

.origin-copy p {
  margin: 0 0 16px;
}

.home-page .section {
  padding: 96px 0;
}

.home-page .section-warm {
  background:
    radial-gradient(circle at 12% 8%, rgba(241, 217, 147, .26), transparent 30%),
    linear-gradient(180deg, #fffaf0, #fff7e9);
}

.home-page .section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.home-page .origin-card {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 245, 214, .78)),
    var(--cream-50);
  border: 1px solid rgba(214, 169, 75, .36);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(82, 38, 25, .12);
}

.home-page .origin-card::before {
  content: "20";
  position: absolute;
  right: 32px;
  bottom: -34px;
  color: rgba(143, 37, 34, .08);
  font-family: var(--font-calligraphy);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 900;
  line-height: .8;
}

.home-page .origin-card::after {
  display: none;
}

.home-page .origin-card .section-heading {
  margin-bottom: 0;
}

.home-page .origin-card h2 {
  max-width: 430px;
  font-size: clamp(1.55rem, 2.45vw, 2rem);
}

.home-page .origin-copy {
  max-width: none;
  padding: 0 0 0 26px;
  border-left: 5px solid var(--gold-500);
}

.info-grid,
.feature-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.info-card,
.feature-card,
.service-card {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card,
.feature-card {
  padding: 28px;
}

.service-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
}

.service-card p,
.feature-card p,
.info-card p {
  color: var(--muted);
}

.service-card .btn {
  margin-top: auto;
}

.home-page .service-grid {
  gap: 24px;
}

.home-page .service-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 36px;
  background:
    radial-gradient(circle at 92% 8%, rgba(241, 217, 147, .32), transparent 34%),
    #fffdf8;
  border: 1px solid rgba(214, 169, 75, .34);
  box-shadow: 0 20px 54px rgba(82, 38, 25, .11);
}

.home-page .service-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 210px;
  aspect-ratio: 1;
  border: 28px solid rgba(143, 37, 34, .06);
  border-radius: 50%;
}

.home-page .service-card > * {
  position: relative;
  z-index: 1;
}

.home-page .feature-grid {
  gap: 0;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid rgba(214, 169, 75, .34);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(82, 38, 25, .1);
}

.home-page .feature-card {
  padding: 30px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.home-page .feature-card:last-child {
  border-right: 0;
}

.offering-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(234, 212, 154, .34), transparent 30%),
    linear-gradient(135deg, #fffdf7, #f7efe0 58%, #fff8ea);
}

.home-page .offering-section .container {
  width: min(calc(100% - 36px), 1320px);
}

.offering-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, .5fr) minmax(260px, .38fr);
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 82% 10%, rgba(234, 212, 154, .26), transparent 30%),
    rgba(255, 255, 255, .62);
  border: 1px solid rgba(139, 102, 30, .24);
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(63, 47, 30, .13);
}

.offering-shell::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(139, 102, 30, .14);
  border-radius: 4px;
  pointer-events: none;
}

.offering-bg span {
  position: absolute;
  pointer-events: none;
}

.offering-bg {
  display: none;
}

.offering-bg span:first-child {
  right: -84px;
  top: -80px;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 234, 166, .62), rgba(214, 169, 75, .08) 56%, transparent 70%);
}

.offering-bg span:last-child {
  right: 6%;
  bottom: -34px;
  width: 390px;
  height: 150px;
  opacity: .13;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 38%, var(--gold-700) 39% 43%, transparent 44%),
    radial-gradient(ellipse at 18% 100%, transparent 34%, var(--gold-700) 35% 40%, transparent 41%),
    radial-gradient(ellipse at 82% 100%, transparent 34%, var(--gold-700) 35% 40%, transparent 41%);
}

.offering-main,
.offering-side,
.offering-card-grid {
  position: relative;
  z-index: 1;
}

.offering-main {
  max-width: 760px;
  align-self: center;
}

.offering-main .eyebrow,
.offering-main h2,
.offering-subtitle {
  color: var(--red-950);
}

.offering-subtitle {
  margin: 16px 0 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.offering-copy {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 600;
}

.offering-copy p {
  margin: 0 0 14px;
}

.offering-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.offering-side {
  align-self: stretch;
  display: grid;
  gap: 0;
  grid-column: 2 / 4;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(234, 212, 154, .14)),
    rgba(255, 255, 255, .72);
  border: 1px solid rgba(139, 102, 30, .24);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(63, 47, 30, .12);
}

.offering-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, .92), transparent 42%),
    #fff7e9;
  border: 1px solid rgba(255, 228, 162, .28);
  border-radius: 6px 0 0 6px;
  box-shadow: none;
}

.offering-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(255, 253, 247, .24));
  pointer-events: none;
}

.offering-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 18px;
}

.offering-price {
  display: grid;
  align-content: center;
  min-width: 330px;
  min-height: 320px;
  padding: 34px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .9), transparent 44%),
    linear-gradient(180deg, #fffaf0, #f1d993);
  border: 0;
  border-left: 1px solid rgba(167, 117, 32, .34);
  border-radius: 0 6px 6px 0;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.offering-price p,
.offering-price span {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.offering-price strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--red-900);
  font-family: var(--font-calligraphy);
  font-size: clamp(4.6rem, 7vw, 7rem);
  line-height: 1;
  white-space: nowrap;
}

.offering-price small {
  display: block;
  max-width: 240px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.55;
}

.offering-card-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.home-page .offering-card-grid {
  margin-top: 16px;
}

.offering-info-card {
  padding: 26px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(139, 102, 30, .22);
  border-radius: var(--radius);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.offering-prayer-card,
.offering-merit-card,
.offering-register-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  border-color: rgba(255, 255, 255, .58);
}

.offering-prayer-card {
  background: url("img/bg01.jpg") center / cover;
}

.offering-merit-card {
  background: url("img/bg02.jpg") center / cover;
}

.offering-register-card {
  background: url("img/bg03-2.jpg") center / cover;
}

.offering-prayer-card::before,
.offering-prayer-card::after,
.offering-merit-card::before,
.offering-merit-card::after,
.offering-register-card::before,
.offering-register-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.offering-prayer-card::before,
.offering-prayer-card::after {
  background: url("img/bg01.jpg") center / cover;
}

.offering-merit-card::before,
.offering-merit-card::after {
  background: url("img/bg02.jpg") center / cover;
}

.offering-register-card::before,
.offering-register-card::after {
  background: url("img/bg03-2.jpg") center / cover;
}

.offering-prayer-card::before,
.offering-merit-card::before,
.offering-register-card::before {
  transform: scale(1.08);
  filter: blur(16px);
  -webkit-mask-image: linear-gradient(to top right, #000 0%, #000 28%, transparent 72%);
  mask-image: linear-gradient(to top right, #000 0%, #000 28%, transparent 72%);
}

.offering-prayer-card::after,
.offering-merit-card::after,
.offering-register-card::after {
  z-index: -1;
  background:
    linear-gradient(35deg, rgb(255 250 240) 0%, rgb(255 250 240) 16% 30%, rgb(255 255 255 / 0%) 100%),
    url("img/bg01.jpg") center / cover;
}

.offering-merit-card::after {
  background:
    linear-gradient(35deg, rgb(255 250 240) 0%, rgb(255 250 240) 16% 30%, rgb(255 255 255 / 0%) 100%),
    url("img/bg02.jpg") center / cover;
}

.offering-register-card::after {
  background:
    linear-gradient(35deg, rgb(255 250 240) 0%, rgb(255 250 240) 16% 30%, rgb(255 255 255 / 0%) 100%),
    url("img/bg03-2.jpg") center / cover;
}

.offering-prayer-card h3,
.offering-prayer-card p,
.offering-prayer-card .card-icon,
.offering-merit-card h3,
.offering-merit-card p,
.offering-merit-card .card-icon,
.offering-register-card h3,
.offering-register-card p,
.offering-register-card .card-icon {
  position: relative;
}

.offering-prayer-card .card-icon,
.offering-merit-card .card-icon,
.offering-register-card .card-icon {
  visibility: hidden;
}

.offering-info-card.offering-prayer-card h3,
.offering-info-card.offering-merit-card h3,
.offering-info-card.offering-register-card h3 {
  color: var(--red-950);
}

.offering-info-card.offering-prayer-card p,
.offering-info-card.offering-merit-card p,
.offering-info-card.offering-register-card p {
  color: #4f281f;
}

.offering-info-card h3 {
  color: var(--red-900);
}

.offering-info-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-icon,
.service-icon {
  display: grid;
  place-items: center;
  color: var(--red-950);
  background: linear-gradient(145deg, #fffaf0, var(--gold-300));
  border: 1px solid rgba(139, 102, 30, .34);
  border-radius: 50%;
  font-family: var(--font-calligraphy);
  font-weight: 900;
}

.card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
}

.service-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 22px;
  font-size: 1.8rem;
}

.service-icon-image {
  padding: 10px;
}

.service-icon-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-list li {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(139, 102, 30, .22);
  border-radius: var(--radius);
}

.flow-list span {
  color: var(--gold-700);
  font-weight: 900;
}

.friendly-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.friendly-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.friendly-list li {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(48, 17, 12, .08);
  font-weight: 900;
}

.registration-section {
  background:
    radial-gradient(circle at 86% 12%, rgba(214, 169, 75, .2), transparent 30%),
    #fff7e9;
}

.app-shell {
  display: block;
}

.form-panel,
.preview-panel {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-panel {
  min-height: 640px;
  padding: 28px;
}

.preview-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
}

.payment-page {
  min-height: 100vh;
}

.payment-status {
  margin: 0 auto 20px;
  max-width: 980px;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.vc-login-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.vc-login-shell {
  max-width: 560px;
  margin: 0 auto;
}

.vc-login-heading {
  margin-bottom: 22px;
}

.vc-login-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vc-login-card .btn {
  width: 100%;
  justify-content: center;
}

.vc-login-error {
  margin: -4px 0 0;
}

.vc-login-hint {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
  text-align: center;
}

.vc-operator-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 248, 228, .92), rgba(255, 255, 255, .82));
  border: 1px solid rgba(139, 102, 30, .24);
  border-radius: var(--radius);
}

.vc-operator-bar span,
.vc-operator-bar small {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.vc-operator-bar strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.vc-page {
  min-height: 100vh;
}

.vc-dashboard-heading {
  margin-bottom: 20px;
}

.vc-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(240px, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(48, 17, 12, .08);
}

.vc-toolbar > div {
  display: grid;
  align-content: center;
  gap: 4px;
}

.vc-toolbar span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.vc-toolbar strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.4;
}

.vc-receipt-summary {
  min-width: 240px;
  padding-inline: 14px;
  border-inline: 1px solid rgba(73, 54, 34, .14);
}

.vc-receipt-summary span,
.vc-receipt-summary strong {
  overflow-wrap: anywhere;
}

.vc-summary-actions {
  margin-top: 10px;
}

.vc-toolbar nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: center;
  padding: 6px;
  background: rgba(255, 253, 248, .82);
  border: 1px solid rgba(73, 54, 34, .16);
  border-radius: 14px;
}

.vc-toolbar .btn {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: none;
  font-size: .9rem;
  white-space: nowrap;
}

.vc-toolbar .btn-primary {
  box-shadow: 0 8px 18px rgba(63, 47, 30, .1);
}

.vc-form-toolbar {
  max-width: 1080px;
}

.vc-table-card,
.vc-form-card {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vc-table-card {
  overflow-x: auto;
}

.vc-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.vc-dashboard-layout .vc-table-card {
  max-width: none;
  margin: 0;
}

.vc-gift-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(54, 168, 130, .3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vc-gift-head {
  display: grid;
  gap: 6px;
}

.vc-gift-head > span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}

.vc-gift-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.vc-gift-head h2 strong {
  color: #259879;
}

.vc-gift-head p {
  margin: 0;
  color: #237b65;
  font-weight: 900;
  line-height: 1.45;
}

.vc-gift-tier-list {
  display: grid;
  gap: 10px;
}

.vc-gift-tier {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  padding: 12px;
  color: #2d8e75;
  background: #fffefb;
  border: 1px dashed rgba(54, 168, 130, .52);
  border-radius: 8px;
}

.vc-gift-tier.is-active {
  background: rgba(64, 188, 149, .12);
  border-style: solid;
  border-color: #35aa89;
  box-shadow: inset 0 0 0 1px rgba(53, 170, 137, .12);
}

.vc-gift-dot {
  width: 18px;
  height: 18px;
  border: 3px solid #d9dde4;
  border-radius: 50%;
}

.vc-gift-tier.is-active .vc-gift-dot {
  border-color: #35aa89;
  box-shadow: inset 0 0 0 4px #fff;
  background: #35aa89;
}

.vc-gift-tier strong,
.vc-gift-tier p {
  grid-column: 2;
}

.vc-gift-tier strong {
  font-size: 1.02rem;
}

.vc-gift-tier p {
  margin: -2px 0 0;
  font-weight: 900;
  line-height: 1.4;
}

.vc-order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.vc-order-table th,
.vc-order-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.vc-order-table th {
  color: var(--red-800);
  background: #fff2cf;
  font-weight: 900;
  white-space: nowrap;
}

.vc-order-table td {
  color: var(--ink);
  font-weight: 800;
}

.vc-order-table tbody tr:last-child td {
  border-bottom: 0;
}

.vc-table-action {
  min-height: 36px;
  padding: 8px 12px;
  font-size: .9rem;
  white-space: nowrap;
}

.vc-empty {
  color: var(--muted);
  text-align: center;
}

.vc-form-card {
  padding: 28px;
}

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

.vc-form-card input[readonly] {
  color: var(--muted);
  background: rgba(73, 54, 34, .06);
  cursor: not-allowed;
}

.vc-form-card input:disabled,
.vc-form-card button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

.vc-grid-wide {
  grid-column: 1 / -1;
}

.vc-field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.5;
}

.vc-supply-options {
  margin-top: 20px;
}

.vc-supply-options .radio-card {
  min-height: 0;
}

.vc-error-list {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--danger);
  background: rgba(166, 40, 34, .08);
  border: 1px solid rgba(166, 40, 34, .18);
  border-radius: var(--radius);
  font-weight: 900;
}

.vc-error-list p {
  margin: 0;
}

.vc-success-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #28543f;
  background: rgba(122, 181, 142, .18);
  border: 1px solid rgba(62, 128, 84, .22);
  border-radius: var(--radius);
  font-weight: 900;
}

.vc-form-actions {
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.vc-edit-log-card {
  margin-top: 22px;
}

.vc-edit-log-card h2 {
  margin: 0 0 16px;
  color: var(--red-900);
  font-family: var(--font-calligraphy);
}

.vc-edit-log-list {
  display: grid;
  gap: 16px;
}

.vc-edit-log-item {
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.vc-edit-log-item h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1rem;
}

.vc-edit-log-item dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 12px;
  margin: 0 0 12px;
}

.vc-edit-log-item dt {
  color: var(--muted);
  font-weight: 900;
}

.vc-edit-log-item dd {
  margin: 0;
  font-weight: 800;
}

.vc-edit-log-item details {
  margin-top: 10px;
}

.vc-edit-log-item summary {
  cursor: pointer;
  color: var(--red-800);
  font-weight: 900;
}

.vc-edit-log-item pre {
  overflow-x: auto;
  margin: 10px 0 0;
  padding: 12px;
  color: var(--ink);
  background: rgba(73, 54, 34, .06);
  border-radius: 8px;
  white-space: pre-wrap;
}

.payment-orders {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.payment-order {
  padding: 24px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.payment-order-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.payment-order-head span,
.payment-amount span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.payment-order-head strong {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1.2;
}

.payment-amount {
  text-align: right;
}

.payment-amount strong {
  font-size: 1.75rem;
}

.payment-order-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 16px;
  margin: 18px 0;
}

.payment-order-meta dt {
  color: var(--muted);
  font-weight: 900;
}

.payment-order-meta dd {
  margin: 0;
  font-weight: 800;
}

.payment-confirmed,
.payment-pending {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 900;
}

.payment-bank-info {
  margin: 18px 0 12px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 248, 228, .9);
  border: 1px solid rgba(139, 102, 30, .24);
  border-radius: var(--radius);
}

.payment-bank-info h4 {
  margin: 0 0 10px;
  color: var(--red-800);
  font-size: 1.05rem;
}

.payment-bank-info dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
}

.payment-bank-info dt {
  color: var(--muted);
  font-weight: 900;
}

.payment-bank-info dd {
  margin: 0;
  font-weight: 900;
}

.payment-bank-account {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-copy-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: .9rem;
}

.payment-confirmed {
  color: #28543f;
  background: rgba(122, 181, 142, .18);
  border: 1px solid rgba(62, 128, 84, .22);
}

.payment-confirmed dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.payment-confirmed dt {
  color: #46664d;
}

.payment-confirmed dd {
  margin: 0;
}

.payment-complete-title {
  margin: 0 0 10px;
  color: #28543f;
  font-size: 1.08rem;
  font-weight: 900;
}

.payment-receipt-preview {
  display: block;
  width: min(100%, 360px);
  max-height: 420px;
  object-fit: contain;
  background: #fffdf7;
  border: 1px solid rgba(62, 128, 84, .22);
  border-radius: var(--radius);
}

object.payment-receipt-preview {
  height: 420px;
}

.payment-receipt-download {
  margin-top: 14px;
}

.payment-pending {
  color: var(--red);
  background: rgba(166, 40, 34, .08);
  border: 1px solid rgba(166, 40, 34, .18);
}

.payment-confirm-form {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.payment-confirm-form input[type="file"] {
  padding: 12px;
  background: #fffdf7;
}

.payment-form-message {
  min-height: 1.6em;
  margin: 8px 0 14px;
  color: var(--red);
  font-weight: 900;
}

.success-reservation-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #5b3b18;
  background: #fff4da;
  border: 1px solid rgba(139, 102, 30, .22);
  border-radius: var(--radius);
  font-weight: 900;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.stepper li {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--muted);
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: .95rem;
  font-weight: 900;
}

.stepper li.active {
  color: var(--ink);
  background: var(--gold-300);
  border-color: rgba(139, 102, 30, .42);
}

.form-step {
  display: none;
  animation: fadeUp .24s ease both;
}

.form-step.active {
  display: block;
}

@keyframes fadeUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.field-group {
  margin-top: 22px;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--red-950);
  font-weight: 900;
}

.required-mark {
  margin-left: 4px;
  color: var(--danger);
}

.field-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.55;
}

input,
textarea,
select {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fffdf8;
  border: 2px solid rgba(82, 38, 25, .26);
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f5;
}

.error-text {
  min-height: 1.6em;
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 900;
}

.notice-box {
  padding: 16px 18px;
  margin: 20px 0;
  color: var(--red-950);
  background: #fff2cf;
  border: 1px solid rgba(167, 117, 32, .45);
  border-radius: var(--radius);
  font-weight: 700;
}

.type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  border: 0;
}

.type-options legend {
  grid-column: 1 / -1;
}

.radio-card {
  position: relative;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px 20px 20px 54px;
  background: #fffdf8;
  border: 2px solid rgba(82, 38, 25, .22);
  border-radius: var(--radius);
}

.radio-card input {
  position: absolute;
  left: 18px;
  top: 26px;
  width: 22px;
  min-height: 22px;
  accent-color: var(--red-800);
}

.radio-card:has(input:checked) {
  border-color: var(--red-800);
  box-shadow: 0 0 0 4px rgba(214, 169, 75, .28);
}

.radio-card span {
  color: var(--red-900);
  font-size: 1.35rem;
  font-weight: 900;
}

.radio-card small {
  color: var(--muted);
  font-size: 1rem;
}

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

.limit-grid p {
  padding: 14px 16px;
  margin: 0;
  background: var(--cream-100);
  border-radius: var(--radius);
}

.step-copy {
  color: var(--muted);
}

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

.quantity-control {
  max-width: 420px;
}

.stepper-control {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 10px;
}

.stepper-control input {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
}

.quantity-btn {
  width: 64px;
  height: 64px;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--red-900);
  background: #fff7dc;
  border-color: rgba(167, 117, 32, .5);
  font-size: 0;
  line-height: 1;
}

.quantity-btn .quantity-symbol {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.quantity-btn span {
  display: block;
  color: var(--red-900);
  font-size: 1rem;
  font-weight: 900;
}

.supply-options {
  margin-top: 30px;
}

.supply-options .radio-card {
  min-height: 150px;
}

.supply-options .radio-card span {
  font-size: 1.2rem;
}

.conditional-panel {
  margin-top: 24px;
  padding: 22px;
  background: #fff7dc;
  border: 1px solid rgba(167, 117, 32, .36);
  border-radius: var(--radius);
}

.pickup-office-info {
  margin-bottom: 0;
}

.pickup-office-info dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}

.pickup-office-info dt {
  color: var(--red-800);
}

.pickup-office-info dd {
  margin: 0;
}

.memorial-list {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.table-panel {
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(48, 17, 12, .08);
}

.table-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #fff2cf, #f8efd9);
  border-bottom: 1px solid rgba(167, 117, 32, .3);
}

.table-panel-head h4,
.memorial-group-head h5,
.preview-block h4,
.name-preview-table h4,
.summary-table h4 {
  margin: 0;
  color: var(--red-900);
  font-family: var(--font-calligraphy);
}

.table-panel-head h4 {
  font-size: 1.45rem;
}

.table-panel-head span {
  color: var(--muted);
  font-weight: 900;
}

.memorial-groups {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.memorial-group {
  overflow: hidden;
  background: rgba(255, 250, 240, .72);
  border: 1px solid rgba(82, 38, 25, .16);
  border-radius: var(--radius);
}

.memorial-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #fff2cf;
  border-bottom: 1px solid rgba(167, 117, 32, .28);
}

.passed-group .memorial-group-head {
  background: #f8efd9;
}

.memorial-group-head h5 {
  margin: 0;
  color: var(--red-900);
  font-family: var(--font-calligraphy);
  font-size: 1.2rem;
}

.memorial-group-head h5 span,
.memorial-group-head h5 small {
  display: block;
}

.memorial-group-head h5 small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 900;
}

.memorial-group-head > span {
  color: var(--muted);
  font-weight: 900;
}

.memorial-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(82, 38, 25, .12);
}

.passed-entry .memorial-row {
  grid-template-columns: 44px repeat(3, minmax(0, 1fr));
}

.memorial-row:last-child {
  border-bottom: 0;
}

.memorial-row .field-group {
  margin-top: 0;
}

.memorial-entry .memorial-row {
  border-bottom: 0;
}

.inline-tablet-preview {
  display: none;
}

.living-entry.is-active .inline-tablet-preview,
.passed-entry.is-active .inline-tablet-preview {
  display: grid;
  justify-items: center;
  padding: 0 18px 20px 76px;
}

.inline-tablet-preview .living-tablet-preview,
.inline-tablet-preview .passed-tablet-preview {
  width: min(240px, 100%);
}

.row-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-top: 34px;
  color: var(--ink);
  background: var(--gold-300);
  border-radius: 50%;
  font-weight: 900;
}

.registration-preview {
  display: grid;
  gap: 18px;
}

.registration-inline-summary {
  margin-top: 22px;
}

.registration-preview[hidden] {
  display: none;
}

.total-card {
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff8e4, var(--cream-100));
  border: 1px solid rgba(139, 102, 30, .28);
  border-radius: var(--radius);
}

.total-card span,
.total-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.total-card strong {
  display: block;
  margin: 8px 0 2px;
  color: var(--red-900);
  font-family: var(--font-calligraphy);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
}

.preview-block {
  padding: 20px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-block dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 12px;
  margin: 14px 0 0;
}

.preview-block dt,
.summary-box dt {
  color: var(--muted);
  font-weight: 900;
}

.preview-block dd {
  margin: 0;
  font-weight: 700;
}

.name-preview-table {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.name-preview-table p {
  margin: 12px 0 6px;
  color: var(--red-900);
  font-weight: 900;
}

.name-preview-table ul,
.summary-table ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.name-preview-table li,
.summary-table li {
  padding: 10px 12px;
  background: var(--cream-100);
  border-radius: var(--radius);
}

.name-preview-table strong,
.name-preview-table span,
.name-preview-table small {
  display: block;
}

.name-preview-table strong {
  color: var(--gold-700);
  font-size: .9rem;
}

.name-preview-table .memorial-preview-label {
  margin-top: 14px;
  color: var(--red-900);
  font-size: 1rem;
}

.name-preview-table small {
  color: var(--muted);
}

.living-tablet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.living-tablet-preview {
  position: relative;
  overflow: hidden;
  color: #201412;
  background: #bb1d2a;
  border-radius: 2px;
  box-shadow: 0 12px 24px rgba(48, 17, 12, .16);
  aspect-ratio: 240 / 560;
}

.passed-tablet-preview {
  position: relative;
  overflow: hidden;
  color: #201412;
  background: #ffe000;
  border-radius: 2px;
  box-shadow: 0 12px 24px rgba(48, 17, 12, .16);
  aspect-ratio: 240 / 560;
}

.tablet-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-calligraphy);
}

.tablet-svg-text,
.tablet-svg-muted,
.tablet-svg-side {
  fill: #000;
}

.tablet-svg-muted,
.tablet-svg-side {
  fill: #000;
}

.tablet-svg-lotus {
  fill: none;
  stroke: rgba(37, 23, 20, .78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.empty-preview {
  color: var(--muted);
  font-weight: 700;
}

.summary-names {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.summary-table {
  padding: 18px;
  background: #fff7dc;
  border: 1px solid rgba(167, 117, 32, .3);
  border-radius: var(--radius);
}

.tablet-preview {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #7c211e, #3e0d0d);
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(48, 17, 12, .2);
}

.tablet-inner {
  min-height: 450px;
  padding: 34px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .76), transparent 34%),
    linear-gradient(180deg, #fff7dc, #f1d993);
  border: 4px double rgba(90, 30, 18, .68);
  border-radius: 2px;
}

.tablet-heading {
  margin: 0 0 30px;
  color: var(--red-900);
  font-family: var(--font-calligraphy);
  font-size: 2rem;
  font-weight: 900;
}

.tablet-inner p {
  margin: 18px 0;
  color: var(--red-950);
  font-size: 1.12rem;
  font-weight: 700;
}

.tablet-inner strong {
  color: var(--red-800);
  font-size: 1.2em;
}

.mobile-preview-slot {
  display: none;
}

.summary-box {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.summary-box dt {
  color: var(--muted);
  font-weight: 900;
}

.summary-box dd {
  margin: 0;
  font-weight: 700;
}

#submitRegistration {
  display: none;
}

.success-panel {
  padding: 48px 20px;
  text-align: center;
}

.success-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--cream-50);
  background: var(--success);
  border-radius: 50%;
  font-size: 2.1rem;
  font-weight: 900;
}

.success-actions {
  justify-content: center;
}

.site-footer {
  padding: 35px 0;
  color: var(--ink);
  background: var(--cream-100);
  border-top: 1px solid var(--line);
}

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

.site-footer h2 {
  color: var(--red-950);
  font-size: 1.8rem;
}

.footer-title-image {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-dedication {
  display: block;
  width: 100%;
  max-width: none;
  margin: 20px auto 0 !important;
  padding: 0 24px;
  text-align: center;
  font-weight: 800;
  line-height: 1.8;
}

address {
  font-style: normal;
}

address strong,
address span,
.site-footer strong {
  display: block;
}

address strong,
.site-footer strong {
  color: var(--red-900);
  margin-top: 10px;
}

.site-footer .copyright {
  display: block;
  width: 100%;
  margin: 0 !important;
  text-align: center;
  font-size: .95rem;
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  gap: 12px;
}

.floating-contact {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(32, 25, 21, .22);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.floating-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(32, 25, 21, .28);
}

.floating-phone {
  background: var(--gold-700);
}

.floating-line {
  background: #06c755;
}

.floating-contact .bi {
  color: #fff;
  font-size: 2.35rem;
  line-height: 1;
}

.record-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .34);
}

.village-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .34);
}

.notice-dialog {
  width: min(500px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .34);
}

.record-dialog::backdrop {
  background: rgba(47, 34, 24, .42);
}

.village-dialog::backdrop {
  background: rgba(47, 34, 24, .42);
}

.notice-dialog::backdrop {
  background: rgba(47, 34, 24, .42);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  color: var(--ink);
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  color: var(--red-950);
  font-size: 1.55rem;
}

.icon-btn {
  width: 48px;
  height: 48px;
  color: var(--red-900);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(73, 54, 34, .22);
  border-radius: var(--radius);
  font-size: 2rem;
  line-height: 1;
}

.query-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.query-form .field-group {
  margin-top: 0;
}

.query-form .btn {
  width: 100%;
}

.query-result {
  padding: 0 24px 24px;
}

.query-result-card {
  padding: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold-500);
  border-radius: var(--radius);
}

.query-result-card h3 {
  margin-bottom: 16px;
}

.query-result-card dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.query-result-card dt {
  color: var(--muted);
  font-weight: 900;
}

.query-result-card dd {
  margin: 0;
  font-weight: 700;
}

.village-dialog-body {
  max-height: calc(min(760px, 100vh - 32px) - 93px);
  overflow: auto;
  padding: 24px;
}

.notice-dialog-body {
  display: grid;
  gap: 20px;
  padding: 28px 24px 24px;
}

.notice-dialog-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
}

.village-dialog-body > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 900;
}

.village-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.village-group {
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.village-group h3 {
  font-size: 1.18rem;
}

.village-group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.village-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  color: var(--red-900);
  background: var(--cream-100);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 900;
}

.village-group li strong {
  color: var(--ink);
  white-space: nowrap;
}

.history-hero {
  padding: 86px 0 72px;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 12%, rgba(234, 212, 154, .38), transparent 30%),
    linear-gradient(135deg, #fffdf7, #f7efe0 58%, #fff8ea);
}

.history-hero-inner {
  max-width: none;
}

.history-hero .eyebrow {
  color: var(--gold-700);
}

.history-hero h1 {
  color: var(--red-950);
}

.history-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 700;
}

.history-hero span {
  color: var(--gold-700);
  white-space: nowrap;
}

.history-gallery-section {
  background: linear-gradient(180deg, #fffaf0, #fff7e9);
}

.history-year + .history-year {
  margin-top: 76px;
}

.history-year-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.history-year-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.history-year-head h2 span {
  color: var(--gold-700);
  font-family: var(--font-calligraphy);
  font-size: 1.05rem;
  font-weight: 900;
}

.history-year-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

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

.history-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.history-category-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  text-align: left;
  background: #3f251c;
  border: 1px solid rgba(214, 169, 75, .36);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(82, 38, 25, .13);
}

.history-category-card:disabled {
  cursor: default;
  opacity: .72;
}

.history-category-card img,
.history-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.history-category-card img {
  object-fit: cover;
  transition: transform .3s ease;
}

.history-category-card:not(:disabled):hover img {
  transform: scale(1.05);
}

.history-card-placeholder {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 229, 163, .3), transparent 32%),
    linear-gradient(135deg, #704434, #2e1510);
}

.history-category-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 64px 22px 22px;
  background: linear-gradient(180deg, transparent, rgba(30, 8, 5, .86));
}

.history-category-overlay strong {
  color: #fff7df;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.history-category-overlay small {
  color: #f4d98d;
  font-weight: 900;
}

.history-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #fffdf8;
  border: 1px solid rgba(214, 169, 75, .34);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(82, 38, 25, .1);
}

.history-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease;
}

.history-photo:hover img {
  transform: scale(1.04);
}

.history-empty {
  padding: 34px;
  color: var(--muted);
  background: #fffdf8;
  border: 1px dashed rgba(167, 117, 32, .52);
  border-radius: var(--radius);
  font-weight: 900;
}

.history-empty p {
  margin: 0;
}

.news-section {
  background: linear-gradient(180deg, #fffaf0, #fff7e9);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-card {
  padding: clamp(24px, 4vw, 36px);
  background: #fffdf8;
  border: 1px solid rgba(214, 169, 75, .34);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(82, 38, 25, .1);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gold-700);
  font-weight: 900;
}

.news-meta span {
  padding: 4px 10px;
  color: var(--red-900);
  background: var(--cream-100);
  border-radius: 999px;
  font-size: .95rem;
}

.news-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.news-content {
  position: relative;
  max-width: 900px;
  margin-top: 14px;
}

.news-content:not(.is-expanded) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-content p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
}

.news-content p + p,
.news-content p + .news-inline-image,
.news-inline-image + p {
  margin-top: 16px;
}

.news-inline-image {
  max-width: 900px;
  margin: 18px 0 0;
}

.news-inline-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(214, 169, 75, .28);
  box-shadow: 0 14px 30px rgba(82, 38, 25, .1);
}

.news-toggle {
  margin-top: 14px;
  padding: 0;
  color: var(--red-900);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-weight: 900;
}

.gallery-dialog {
  width: min(1120px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.gallery-dialog::backdrop {
  background: rgba(22, 5, 4, .82);
  backdrop-filter: blur(6px);
}

.gallery-viewer {
  overflow: hidden;
  color: #fff7df;
  background:
    linear-gradient(180deg, rgba(91, 38, 24, .96), rgba(32, 8, 6, .98)),
    #2e0f0a;
  border: 1px solid rgba(255, 228, 162, .3);
  border-radius: 18px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .48);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 228, 162, .18);
}

.gallery-toolbar h2,
.gallery-kicker,
.gallery-caption {
  margin: 0;
}

.gallery-toolbar h2 {
  color: #fff7df;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.gallery-kicker {
  margin-bottom: 3px;
  color: #f2cf7d;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: 0;
}

.gallery-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 86px;
  min-height: 42px;
  padding: 8px 12px;
  color: #fff7df;
  background: rgba(255, 247, 223, .12);
  border: 1px solid rgba(255, 228, 162, .28);
  border-radius: 999px;
  font-weight: 900;
}

.gallery-close:hover,
.gallery-close:focus-visible,
.gallery-nav:hover,
.gallery-nav:focus-visible {
  background: rgba(255, 228, 162, .22);
  border-color: rgba(255, 228, 162, .56);
}

.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 680px);
  padding: clamp(14px, 2vw, 22px);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 228, 162, .11), transparent 38%),
    #140303;
}

.gallery-dialog img {
  width: 100%;
  max-height: 68vh;
  display: block;
  object-fit: contain;
  background: rgba(20, 3, 3, .54);
  border-radius: 12px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff7df;
  background: rgba(46, 15, 10, .7);
  border: 1px solid rgba(255, 228, 162, .32);
  border-radius: 999px;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 22px;
}

.gallery-next {
  right: 22px;
}

.gallery-caption {
  padding: 12px 20px 16px;
  color: #fff7df;
  text-align: center;
  font-weight: 900;
}

@media (max-width: 1020px) {
  .hero-grid,
  .app-shell,
  .offering-shell,
  .friendly-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 64px;
  }

  .hero-visual {
    justify-items: start;
  }

  .event-info,
  .info-grid,
  .feature-grid,
  .history-category-grid,
  .history-gallery,
  .offering-card-grid,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .origin-card {
    grid-template-columns: 1fr;
  }

  .vc-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .vc-gift-card {
    position: static;
    order: -1;
  }

  .offering-side {
    grid-column: 1;
  }

  .home-page .feature-card:nth-child(2) {
    border-right: 0;
  }

  .home-page .feature-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 18px;
    overflow-x: hidden;
  }

  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .home-page .offering-section .container {
    width: min(calc(100% - 24px), 1320px);
  }

  .header-inner {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    align-items: flex-start;
    min-width: 0;
  }

  .brand-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .24s ease, opacity .2s ease, visibility .2s ease;
  }

  .main-nav.is-open {
    max-height: 360px;
    opacity: 1;
    visibility: visible;
  }

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

  .main-nav a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-height: 46px;
    padding: 8px 10px;
    background: rgba(143, 37, 34, .07);
    font-size: .98rem;
    line-height: 1.35;
    text-align: center;
  }

  .brand small {
    max-width: 260px;
    font-size: .78rem;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  #hero-title {
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .hero-grid {
    gap: 34px;
    padding: 44px 0 86px;
  }

  .hero-visual {
    display: grid;
    justify-items: stretch;
  }

  .hero-carousel {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .home-page .section {
    padding: 68px 0;
  }

  .home-page .origin-card,
  .home-page .service-card,
  .offering-shell {
    padding: 24px;
  }

  .home-page .origin-card::before {
    right: 18px;
    bottom: -18px;
    font-size: 7rem;
  }

  .home-page .origin-copy {
    padding-left: 18px;
  }

  .offering-side {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .offering-price {
    min-width: 0;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(167, 117, 32, .34);
    border-radius: 0 0 6px 6px;
  }

  .hero-subtitle br {
    display: none;
  }

  .organizer-line {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .event-info div {
    min-height: auto;
  }

  .hero-actions,
  .form-actions,
  .success-actions {
    flex-direction: column;
  }

  .vc-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vc-receipt-summary {
    min-width: 0;
    padding: 12px 0;
    border-block: 1px solid rgba(73, 54, 34, .14);
    border-inline: 0;
  }

  .vc-toolbar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .vc-toolbar .btn {
    justify-content: center;
    min-width: 0;
    white-space: normal;
  }

  .vc-toolbar .vc-qr-button {
    grid-column: 1 / -1;
  }

  .vc-form-grid {
    grid-template-columns: 1fr;
  }

  .vc-edit-log-item dl {
    grid-template-columns: 1fr;
  }

  .payment-order {
    padding: 18px;
  }

  .payment-order-head,
  .payment-confirm-form .field-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payment-amount {
    text-align: left;
  }

  .payment-order-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .payment-confirmed dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .btn {
    width: 100%;
  }

  .offering-actions {
    flex-direction: column;
  }

  .offering-shell {
    padding: 24px;
  }

  .offering-shell::before {
    inset: 10px;
  }

  .offering-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 6px 6px 0 0;
  }

  .offering-price {
    padding: 22px;
  }

  .altar-card {
    width: min(100%, 340px);
    min-height: 430px;
    padding: 34px 24px;
  }

  .altar-title {
    font-size: 1.9rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading,
  .section-heading.align-left {
    text-align: left;
  }

  .home-page .origin-card h2 {
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .event-info,
  .info-grid,
  .feature-grid,
  .history-gallery,
  .offering-card-grid,
  .service-grid,
  .flow-list,
  .friendly-list,
  .type-options,
  .limit-grid,
  .stepper {
    grid-template-columns: 1fr;
  }

  .history-hero {
    padding: 62px 0 52px;
  }

  .history-year-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-dialog {
    width: min(calc(100% - 20px), 1120px);
  }

  .gallery-toolbar {
    padding: 14px;
  }

  .gallery-toolbar h2 {
    font-size: 1.3rem;
  }

  .gallery-close {
    min-width: 76px;
    min-height: 40px;
    padding: 7px 10px;
    font-size: .95rem;
  }

  .gallery-stage {
    min-height: 56vh;
    padding: 10px;
  }

  .gallery-dialog img {
    max-height: 56vh;
  }

  .gallery-nav {
    width: 42px;
    height: 42px;
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }

  .home-page .feature-card,
  .home-page .feature-card:nth-child(2),
  .home-page .feature-card:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-page .feature-card:last-child {
    border-bottom: 0;
  }

  .flow-list li {
    min-height: 126px;
  }

  .form-panel,
  .preview-panel {
    padding: 18px;
  }

  .stepper {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 18px;
  }

  .stepper li {
    min-height: 36px;
    padding: 6px 2px;
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .preview-panel {
    display: none;
  }

  .registration-preview {
    display: grid;
    position: static;
    padding: 18px;
  }

  .mobile-preview-slot {
    display: block;
    margin-top: 20px;
  }

  .mobile-preview-slot .tablet-preview {
    box-shadow: none;
  }

  .summary-box dl {
    grid-template-columns: 1fr;
  }

  .query-result-card dl {
    grid-template-columns: 1fr;
  }

  .record-dialog {
    width: min(calc(100% - 24px), 620px);
  }

  .village-dialog {
    width: min(calc(100% - 24px), 920px);
  }

  .village-dialog-body {
    padding: 18px;
  }

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

  .village-group ul {
    grid-template-columns: 1fr;
  }

  .supply-options .radio-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    min-height: auto;
    padding: 18px;
    column-gap: 12px;
  }

  .supply-options .radio-card input {
    position: static;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }

  .supply-options .radio-card span,
  .supply-options .radio-card small {
    grid-column: 2;
  }

  .field-row,
  .memorial-row {
    grid-template-columns: 1fr;
  }

  .passed-entry .memorial-row {
    grid-template-columns: 1fr;
  }

  .memorial-groups {
    padding: 18px;
  }

  .memorial-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .row-number {
    margin-top: 0;
  }

  .living-entry.is-active .inline-tablet-preview,
  .passed-entry.is-active .inline-tablet-preview {
    padding: 0 18px 20px;
  }

  .memorial-row {
    gap: 10px;
  }

  .table-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-block dl {
    grid-template-columns: 1fr;
  }

  .conditional-panel,
  .table-panel-head,
  .memorial-row,
  .preview-block,
  .total-card {
    padding: 18px;
  }

  .dialog-head {
    padding: 18px;
  }

  .query-form,
  .query-result {
    padding-inline: 18px;
  }

  .floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .floating-contact {
    width: 56px;
    height: 56px;
  }

  .floating-contact .bi {
    font-size: 2.05rem;
  }

}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .main-nav a {
    flex-basis: 100%;
  }

  .hero-grid {
    padding-top: 36px;
  }

  .event-info,
  .form-panel,
  .preview-panel,
  .offering-shell,
  .info-card,
  .feature-card,
  .service-card,
  .offering-info-card {
    min-width: 0;
  }

  .service-card,
  .info-card,
  .feature-card,
  .offering-info-card {
    padding: 22px;
  }

  .radio-card {
    padding-left: 48px;
  }

  .tablet-inner {
    min-height: 360px;
    padding: 28px 16px;
  }

  .stepper li {
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
