:root {
  --saffron: #ffcc16;
  --deep-saffron: #ff5a12;
  --maroon: #b11219;
  --gold: #ffd21c;
  --leaf: #486c3f;
  --ink: #281812;
  --muted: #75655c;
  --paper: #fff8d7;
  --cream: #fff2be;
  --line: #f2c14c;
  --shadow: 0 18px 50px rgba(126, 22, 18, .18);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fffaf0;
  font-family: Inter, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; display: block; }

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 7px clamp(16px, 4vw, 54px);
  background: var(--maroon);
  color: #fff7c6;
  font-size: 12px;
  font-weight: 700;
}
.top-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.top-actions a {
  min-width: 86px;
  padding: 4px 10px;
  border-left: 1px solid rgba(255, 245, 220, .24);
  color: #fff5dc;
  line-height: 1.12;
}
.top-actions span {
  display: block;
  font-size: 10px;
  opacity: .86;
}
.top-actions strong {
  display: block;
  font-size: 13px;
  color: #fff;
}
.top-actions .cart-link {
  border: 1px solid rgba(255, 210, 28, .7);
  border-radius: 6px;
  background: rgba(255, 204, 22, .18) !important;
}

.identity-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 54px);
  background: linear-gradient(90deg, #fff7cf, #fffdf1 45%, #ffe492);
  border-bottom: 1px solid var(--line);
}
.logo-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo { width: 76px; height: 76px; object-fit: contain; }
.identity-text { text-align: left; min-width: 0; }
.devanagari-title {
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  color: var(--maroon);
}
.eyebrow, .trust-line {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--deep-saffron);
}
.identity-text h1 {
  margin: 2px 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(21px, 2.5vw, 34px);
  line-height: 1.12;
  white-space: nowrap;
  overflow-wrap: normal;
}
.trust-line { color: var(--leaf); }

.navigation-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  background: transparent;
  box-shadow: 0 10px 26px rgba(64, 30, 11, .13);
}
.nav-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 12px auto;
  border: 1px solid rgba(123, 30, 24, .2);
  border-radius: 8px;
  background: #fffdf8;
  overflow: visible;
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  flex-wrap: wrap;
  padding: 6px;
}
.main-nav > a,
.nav-dropdown > button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4b2a1a;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.main-nav > a:hover,
.nav-dropdown:hover > button,
.nav-dropdown:focus-within > button {
  background: var(--maroon);
  color: #fff8e7;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.dropdown-menu-custom {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 285px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  z-index: 50;
}
.dropdown-menu-custom:before {
  content: "";
  position: absolute;
  left: 22px;
  top: -7px;
  width: 12px;
  height: 12px;
  background: #fffdf8;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-dropdown:hover .dropdown-menu-custom,
.nav-dropdown:focus-within .dropdown-menu-custom,
.nav-dropdown.open .dropdown-menu-custom {
  display: grid;
  gap: 3px;
}
.dropdown-menu-custom a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #4b2a1a;
  font-size: 13px;
  font-weight: 750;
}
.dropdown-menu-custom a:hover {
  background: #fff1d6;
  color: var(--maroon);
}
.mobile-menu-button {
  display: none;
  width: 100%;
  border: 0;
  background: var(--maroon);
  color: #fff8e7;
  padding: 11px 14px;
  font-weight: 850;
  text-align: left;
}

.hero-banner {
  position: relative;
  width: min(1420px, calc(100% - 48px));
  min-height: 470px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 210, 28, .22), transparent 32%),
    linear-gradient(110deg, #5f090c 0%, #a61816 46%, #7c0810 100%);
  box-shadow: 0 24px 54px rgba(126, 22, 18, .22);
}
.hero-slide {
  display: none;
  min-height: 470px;
  grid-template-columns: minmax(360px, .86fr) minmax(320px, 1.14fr);
  align-items: center;
}
.hero-slide.active { display: grid; }
.hero-media {
  height: 470px;
  background:
    radial-gradient(circle at 42% 48%, rgba(255, 210, 28, .18), transparent 34%),
    linear-gradient(105deg, #57080a, #b56e09 70%, rgba(255, 210, 28, .64));
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(1.08);
}
.portrait-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 28px 0;
  overflow: hidden;
}
.portrait-media img {
  width: auto;
  max-width: 94%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(26px 18px 24px rgba(44, 6, 6, .35)) contrast(1.04) saturate(1.06);
}
.maharaja-portrait img {
  height: 106%;
  max-width: 100%;
  transform: translateY(16px);
}
.karan-portrait img {
  height: 88%;
  transform: translateY(10px);
}
.hero-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.4vw, 58px);
  color: #fff8e7;
  background:
    radial-gradient(circle at 2% 18%, rgba(255, 210, 28, .24), transparent 34%),
    linear-gradient(135deg, rgba(177, 18, 25, .68), rgba(89, 8, 12, .72));
}
.section-kicker {
  margin: 0 0 8px;
  color: var(--deep-saffron);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-copy .section-kicker { color: #ffd37f; }
.hero-copy h2 {
  margin: 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
}
.hero-copy h2 span { display: block; font-size: .45em; color: #ffd37f; margin-top: 12px; }
.hero-copy p {
  max-width: 570px;
  font-size: 15px;
  line-height: 1.62;
}
.primary-btn,
.library-search button,
.book-card button {
  border: 0;
  border-radius: 6px;
  background: var(--saffron);
  color: #5d100e;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}
.primary-btn { width: fit-content; }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 11px;
  height: 11px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.dot.active { background: #fff; }

main > section:not(.hero-banner) {
  padding: 48px clamp(18px, 4vw, 54px);
}
.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap: 20px;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.compact-search {
  width: min(1120px, calc(100% - 36px));
  margin: -24px auto 0;
  position: relative;
  z-index: 2;
  padding: 22px clamp(18px, 3vw, 30px) !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(82, 44, 18, .16);
}
.search-panel h2,
.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(22px, 2.4vw, 34px);
}
.library-search {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.library-search input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 12px;
  font-size: 15px;
}

.workflow-section {
  background:
    linear-gradient(180deg, #fffaf0, #fff4d5),
    repeating-linear-gradient(90deg, rgba(177,18,25,.035) 0 1px, transparent 1px 20px);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.workflow-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border: 1px solid rgba(177, 18, 25, .22);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 18px 42px rgba(126, 22, 18, .12);
}
.workflow-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-bottom: 4px solid var(--gold);
}
.workflow-card span {
  display: inline-flex;
  margin: 18px 20px 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(177, 18, 25, .09);
  color: var(--maroon);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.workflow-card h3 {
  margin: 0 20px 8px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 22px;
}
.workflow-card p {
  margin: 0 20px 22px;
  color: #6a3c24;
  line-height: 1.65;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0 !important;
  background: var(--line);
}
.stats-row div {
  background: #fff8ea;
  padding: 24px;
}
.stats-row strong {
  display: block;
  font-family: "Noto Serif", serif;
  font-size: 34px;
  color: var(--maroon);
}
.stats-row span { color: var(--muted); font-weight: 650; }

.category-section { background: var(--cream); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-heading a {
  color: var(--maroon);
  font-weight: 850;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.category-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  border: 1px solid rgba(177, 18, 25, .2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,242,190,.86)),
    repeating-linear-gradient(90deg, rgba(177,18,25,.03) 0 1px, transparent 1px 18px);
  box-shadow: 0 18px 42px rgba(177, 18, 25, .14);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(0deg, rgba(255, 204, 22, .36), transparent);
  pointer-events: none;
}
.category-card:before {
  content: var(--category-index);
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(177, 18, 25, .16);
  font-family: "Noto Serif", serif;
  font-size: 44px;
  font-weight: 800;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(88, 46, 18, .15);
  border-color: rgba(123, 30, 24, .3);
}
.category-symbol {
  display: grid;
  place-items: center;
  width: fit-content;
  min-height: 46px;
  max-width: calc(100% - 98px);
  margin: 20px 0 0 20px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid rgba(177, 18, 25, .18);
  color: var(--maroon);
  font-family: "Noto Serif Devanagari", "Noto Serif", serif;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd21c, #fff4a8);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.45);
}
.category-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}
.category-card h3 {
  margin: 0 0 12px;
  font-family: "Noto Serif", serif;
  font-size: 24px;
  line-height: 1.2;
  color: var(--maroon);
}
.subject-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(177, 18, 25, .09);
  color: var(--maroon) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.category-chips span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid #f2c14c;
  border-radius: 999px;
  background: #fff0a7;
  color: #7b1713;
  font-size: 13px;
  font-weight: 700;
}
.category-card p {
  margin: 0 0 22px;
  color: #6a3c24;
  font-size: 15px;
  line-height: 1.65;
}
.category-card strong {
  margin-top: auto;
  color: var(--maroon);
  font-size: 16px;
  font-weight: 900;
}

.featured-section, .faq-section { background: #fffaf0; }
.book-grid, .video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.book-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.book-card img {
  width: 92px;
  height: 124px;
  object-fit: cover;
  border-radius: 5px;
}
.book-card p { margin: 0 0 6px; color: var(--deep-saffron); font-weight: 850; }
.book-card h3 { margin: 0 0 6px; font-family: "Noto Serif", serif; }
.book-card span { color: var(--muted); font-size: 13px; }
.book-card button { grid-column: 1 / -1; width: 100%; }

.video-section {
  background: linear-gradient(135deg, #3a1d14, #7b1e18);
  color: #fff8e7;
}
.video-section .section-kicker,
.video-section .section-heading a { color: #ffd37f; }
.video-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,210,28,.08)),
    rgba(255, 255, 255, .08);
}
.video-card-live {
  padding: 16px !important;
}
.video-card-live video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #1f120d;
  margin-bottom: 18px;
}
.video-grid span {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 44px;
  border-radius: 999px;
  background: var(--saffron);
  color: #5d100e;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 16px 18px;
}
summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--maroon);
}
details p { color: var(--muted); line-height: 1.6; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 38px clamp(18px, 4vw, 54px);
  background: #24110d;
  color: #fff5dc;
}

.page-main {
  background: #fffaf0;
}
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  padding: 54px clamp(18px, 4vw, 54px);
  background:
    linear-gradient(115deg, rgba(255, 248, 234, .98), rgba(255, 241, 217, .84)),
    url("/assets/gallery/DharmarthTrustBanner.png") center/cover;
  border-bottom: 1px solid var(--line);
}
.maharaja-page-hero {
  background:
    linear-gradient(115deg, rgba(255, 248, 234, .98), rgba(255, 233, 146, .86)),
    url("/assets/site/maharaja-ranbir-singh-cutout.png") left center/cover;
}
.founder-panel img {
  background: linear-gradient(135deg, #781012, #ffd21c);
  object-fit: cover;
  max-height: 360px;
}
.page-hero h1 {
  margin: 0 0 14px;
  font-family: "Noto Serif", serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  color: var(--maroon);
}
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: #6c4c37;
  font-size: 18px;
  line-height: 1.75;
}
.page-hero-card {
  padding: 22px;
  border: 1px solid rgba(123, 30, 24, .18);
  border-radius: 8px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow);
}
.page-hero-card strong {
  display: block;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 30px;
}
.content-band {
  padding: 48px clamp(18px, 4vw, 54px);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}
.prose-panel,
.side-panel,
.message-card,
.publication-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(88, 46, 18, .08);
}
.prose-panel {
  padding: clamp(22px, 3vw, 36px);
}
.prose-panel h2,
.side-panel h2,
.message-card h2,
.publication-card h3,
.contact-card h3 {
  margin-top: 0;
  font-family: "Noto Serif", serif;
  color: var(--maroon);
}
.prose-panel p,
.side-panel p,
.message-card p,
.publication-card p,
.contact-card p {
  color: #6f5947;
  line-height: 1.75;
}
.side-panel {
  padding: 18px;
}
.side-panel img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}
.timeline-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.timeline-list div {
  padding: 16px;
  border-left: 4px solid var(--saffron);
  background: #fff5e5;
  border-radius: 0 8px 8px 0;
}
.message-grid,
.publication-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.message-card,
.publication-card,
.contact-card {
  padding: 24px;
}
.message-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
}
.message-year,
.publication-meta {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #efe0ce;
  color: #8a3b22;
  font-size: 12px;
  font-weight: 900;
}
.message-detail-list {
  display: grid;
  gap: 24px;
}
.message-detail-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(177, 18, 25, .18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,244,213,.85)),
    repeating-linear-gradient(90deg, rgba(177,18,25,.025) 0 1px, transparent 1px 18px);
  box-shadow: 0 16px 40px rgba(126, 22, 18, .1);
}
.message-person img,
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(177, 18, 25, .22);
  margin-bottom: 16px;
  background: #f6dfae;
}
.portrait-placeholder {
  display: grid;
  place-items: center;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 56px;
  font-weight: 800;
}
.message-person h2,
.publication-feature h2 {
  margin: 8px 0 8px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
}
.message-person p {
  color: #765642;
  line-height: 1.5;
}
.message-copy p {
  margin: 0 0 16px;
  color: #5f4534;
  font-size: 16px;
  line-height: 1.75;
}
.message-copy blockquote {
  margin: 20px 0 0;
  padding: 18px 22px;
  border-left: 5px solid var(--saffron);
  background: #fff1be;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 22px;
}
.publication-list {
  display: grid;
  gap: 22px;
}
.publication-feature {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(177, 18, 25, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(177,18,25,.94), rgba(118,16,16,.94)),
    url("/assets/site/workflow-original.png") center/cover;
  color: #fff8e7;
  box-shadow: var(--shadow);
}
.publication-feature .publication-meta {
  background: rgba(255, 210, 28, .18);
  color: #ffd37f;
}
.publication-feature h2 {
  color: #fff8e7;
  font-size: clamp(28px, 4vw, 46px);
}
.publication-feature p {
  max-width: 900px;
  color: #fff1cf;
  line-height: 1.7;
}
.publication-card strong {
  display: block;
  margin-top: 14px;
  color: var(--maroon);
  font-size: 13px;
}
.publication-reference {
  display: grid;
  gap: 30px;
}
.publication-intro {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(177, 18, 25, .18);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 40px rgba(126, 22, 18, .08);
}
.publication-intro h2 {
  margin-top: 0;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
}
.publication-intro li {
  margin-bottom: 12px;
  color: #5f4534;
  line-height: 1.75;
}
.tantra-list {
  columns: 3;
  margin: 0 0 18px 22px;
  color: #5f4534;
}
.publication-shop-list {
  display: grid;
  gap: 22px;
}
.publication-shop-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(177, 18, 25, .2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,244,213,.88)),
    repeating-linear-gradient(90deg, rgba(177,18,25,.025) 0 1px, transparent 1px 18px);
  box-shadow: 0 16px 40px rgba(126, 22, 18, .1);
}
.publication-shop-card img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff8e5;
  border: 1px solid rgba(177, 18, 25, .18);
  padding: 8px;
}
.publication-shop-card h2 {
  margin: 0 0 14px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}
.publication-shop-card p {
  color: #5f4534;
  line-height: 1.7;
}
.buy-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--saffron), #ff8a12);
  color: #5d100e;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(126, 22, 18, .16);
}
.buy-now-btn:hover {
  color: #5d100e;
  transform: translateY(-1px);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  min-height: 230px;
  border-radius: 8px;
  overflow: hidden;
  background: #ead6bd;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(36, 17, 13, .76);
  color: white;
  font-weight: 750;
}
.gallery-topic-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(177, 18, 25, .16);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 34px rgba(70, 32, 17, .12);
}
.gallery-topic-card:hover img { transform: scale(1.035); }
.gallery-topic-card img { transition: transform .28s ease; }
.gallery-topic-card small {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 243, 191, .92);
  color: var(--maroon);
  font-weight: 900;
}
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-modal.open { display: flex; }
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 9, 7, .78);
}
.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid rgba(242, 193, 76, .5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--maroon);
  color: #fff1cf;
  font-size: 28px;
  line-height: 1;
}
.gallery-modal-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 64px 14px 22px;
  border-bottom: 1px solid rgba(242, 193, 76, .55);
}
.gallery-modal-head h2 {
  margin: 0;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
}
.gallery-modal-head span {
  color: var(--brown);
  font-weight: 900;
}
.gallery-modal-stage {
  position: relative;
  min-height: 360px;
  background: #2d100b;
  display: grid;
  place-items: center;
}
.gallery-modal-stage img {
  max-width: 100%;
  max-height: 58vh;
  object-fit: contain;
}
.gallery-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 58px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 243, 191, .9);
  color: var(--maroon);
  font-size: 38px;
  font-weight: 900;
}
.gallery-nav-button[data-gallery-prev] { left: 14px; }
.gallery-nav-button[data-gallery-next] { right: 14px; }
.gallery-modal-caption {
  margin: 0;
  min-height: 38px;
  padding: 12px 22px;
  color: var(--brown);
  font-weight: 750;
}
.gallery-filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(242, 193, 76, .45);
}
.gallery-filmstrip button {
  flex: 0 0 82px;
  height: 62px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #ead6bd;
}
.gallery-filmstrip button.active { border-color: var(--maroon); }
.gallery-filmstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-modal-open { overflow: hidden; }
.admin-thumb {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.admin-gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.admin-gallery-preview-grid div {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff8ea;
}
.admin-gallery-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.admin-gallery-preview-grid span {
  display: block;
  padding: 8px 10px;
  color: var(--maroon);
  font-weight: 900;
}
@media (max-width: 760px) {
  .gallery-modal { padding: 10px; }
  .gallery-modal-stage { min-height: 280px; }
  .gallery-nav-button { width: 38px; height: 48px; }
  .gallery-modal-head { padding-right: 58px; }
}
.captcha-row {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid rgba(242, 193, 76, .7);
  border-radius: 8px;
  background: #fff8dc;
}
.error-notice {
  border-color: rgba(177, 18, 25, .35);
  background: #fff1e8;
  color: var(--maroon);
}
.error-notice ul {
  margin: 8px 0 0 18px;
}
.contact-card a {
  color: var(--maroon);
  font-weight: 800;
}
.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-brand img { width: 76px; height: 76px; object-fit: contain; }
.footer-brand h2 { margin: 0 0 6px; font-family: "Noto Serif", serif; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.footer-links h3 { color: #ffd37f; margin-top: 0; }
.footer-links a { display: block; margin: 8px 0; color: #f4dbc2; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--saffron);
  color: white;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .identity-text h1 { white-space: normal; }
  .logo { width: 68px; height: 68px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top-strip { flex-direction: column; gap: 6px; text-align: center; }
  .top-actions { margin-left: 0; width: 100%; justify-content: center; }
  .top-actions a { min-width: 78px; padding: 5px 8px; }
  .identity-bar { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; text-align: center; }
  .logo-cluster { justify-content: center; }
  .identity-text { text-align: center; }
  .logo { width: 58px; height: 58px; }
  .navigation-shell { position: static; }
  .nav-inner { width: 100%; margin: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .mobile-menu-button { display: block; }
  .main-nav {
    display: none;
    padding: 8px;
    align-items: stretch;
  }
  .main-nav.open { display: grid; }
  .main-nav > a,
  .nav-dropdown > button {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown { width: 100%; }
  .dropdown-menu-custom {
    position: static;
    display: none;
    margin: 2px 0 8px 12px;
    min-width: 0;
    box-shadow: none;
    border-color: #f1dfc4;
  }
  .main-nav .nav-dropdown.open .dropdown-menu-custom {
    display: grid;
  }
  .dropdown-menu-custom:before { display: none; }
  .hero-banner { width: 100%; margin-top: 0; border-radius: 0; }
  .hero-slide, .search-panel, .site-footer { grid-template-columns: 1fr; }
  .hero-media, .hero-slide { min-height: auto; height: auto; }
  .hero-media { height: 300px; }
  .portrait-media { padding: 16px 18px 0; }
  .maharaja-portrait img { height: 110%; transform: translateY(20px); }
  .karan-portrait img { height: 96%; transform: translateY(14px); }
  .compact-search { margin-top: 0; width: 100%; border-left: 0; border-right: 0; border-radius: 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .book-grid, .video-grid, .workflow-grid, .footer-links { grid-template-columns: 1fr; }
  .workflow-card { min-height: auto; }
  .library-search { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .page-hero, .content-grid, .message-grid, .publication-grid, .contact-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .publication-shop-card { grid-template-columns: 1fr; }
  .publication-shop-card img {
    max-width: 260px;
    margin: 0 auto;
  }
  .tantra-list { columns: 1; }
  .message-detail-card { grid-template-columns: 1fr; }
  .message-person img,
  .portrait-placeholder {
    max-width: 230px;
  }
  .page-hero-card { order: -1; }
}

/* CMS shopping, account and admin layer */
button, input, select, textarea { font: inherit; }
input, select, textarea { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.button, button[type=submit] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--saffron); color: #5d100e; font-weight: 900; cursor: pointer; }
.button.secondary { border: 1px solid rgba(177,18,25,.28); background: #fff8ea; color: var(--maroon); }
.section { width: min(1320px, calc(100% - 44px)); margin: 0 auto; padding: 38px 0; }
.section-title { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.section-title h1, .section-title h2 { margin: 0; font-family: "Noto Serif", serif; color: var(--maroon); font-size: clamp(30px,3vw,44px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px,1fr)); gap: 18px; }
.panel, .product-card { background: #fffdf8; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(88, 46, 18, .08); }
.panel { padding: 24px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.search-card { width: min(980px, 100%); margin: 0 0 24px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 44px rgba(99,44,12,.16); }
.search-card form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.product-card { display: grid; grid-template-rows: 220px 1fr; overflow: hidden; }
.product-card img { width: 100%; height: 220px; object-fit: cover; background: #f6e7d2; }
.product-card .body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.product-card h3 { margin: 0; font-family: "Noto Serif", serif; font-size: 22px; color: var(--maroon); }

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.product-card-actions .button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.continue-shopping-btn {
  width: 100%;
  margin-top: 16px;
}
@media (max-width: 520px) {
  .product-card-actions { gap: 7px; }
  .product-card-actions .button { flex: 1 1 120px; }
}

.meta { color: var(--muted); font-size: 13px; font-weight: 800; }
.price { margin-top: auto; color: var(--maroon); font-size: 20px; font-weight: 900; }
.category-card { --category-index: ""; min-width: 0; }
.category-card .category-index { display: none; }
.category-card h3 { overflow-wrap: anywhere; hyphens: auto; }
.category-card p { overflow-wrap: anywhere; }
.category-symbol { max-width: calc(100% - 98px); text-align: center; }
.category-section.content-band { padding-top: 48px; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto auto; gap: 14px; align-items: center; background: #fffdf8; padding: 14px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.cart-row img { width: 88px; height: 112px; object-fit: cover; border-radius: 6px; }
.cart-remove-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(177, 18, 25, .35);
  border-radius: 50%;
  background: #fff8dc;
  color: var(--maroon);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(80, 35, 18, .08);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.cart-remove-btn:hover,
.cart-remove-btn:focus-visible {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff8dc;
  transform: translateY(-1px);
  outline: none;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.notice { padding: 13px 15px; border: 1px solid #e4b05a; border-radius: 7px; background: #fff1c4; color: #5b2a03; }
.notice.error { background: #ffe2df; border-color: #d75b4f; color: #7c0810; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.auth-body { min-height: 100vh; background: #f6f6f6; font-family: Inter, system-ui, sans-serif; }
.auth-modal-page { min-height: 100vh; display: grid; place-items: start center; padding: 34px 18px; background: #fff; }
.auth-modal-card { position: relative; width: min(430px, 100%); padding: 34px 28px 42px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.auth-modal-card h1 { margin: 0 34px 18px 0; color: #333; font-family: Inter, system-ui, sans-serif; font-size: 26px; font-weight: 500; }
.auth-close { position: absolute; right: 22px; top: 18px; color: #bbb; font-size: 42px; line-height: 1; }
.auth-form { display: grid; gap: 14px; }
.otp-start-form p { color: #555; line-height: 1.55; margin-top: 0; }
.otp-continue { width: 100%; min-height: 58px; margin-top: 16px; border-radius: 3px; background: var(--maroon); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.auth-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.new-reader-fields, .password-login { border: 0; padding: 0; background: transparent; }
.new-reader-fields summary, .password-login summary { cursor: pointer; color: var(--maroon); font-weight: 850; }
.or-line { display: grid; place-items: center; margin: 34px 0; color: #b8b8b8; }
.auth-note a, .auth-row a { color: var(--maroon); font-weight: 850; }
.checkout-body { margin: 0; background: #f3f3f3; color: #111; font-family: Inter, system-ui, sans-serif; }
.checkout-top { height: 40px; display: flex; align-items: center; justify-content: space-between; max-width: 840px; margin: 0 auto; padding: 0 20px; background: #fff; }
.checkout-top a { color: #111; font-weight: 700; }
.checkout-cart-icon { color: #075bd8 !important; font-size: 13px; }
.checkout-shell { display: grid; grid-template-columns: minmax(0, 540px) minmax(320px, 1fr); min-height: calc(100vh - 40px); border-top: 1px solid #ddd; }
.checkout-form-panel { justify-self: end; width: min(100%, 540px); padding: 34px 30px 40px; background: #fff; }
.checkout-summary { background: #f2f2f2; border-left: 1px solid #ddd; padding: 34px 30px; }
.checkout-summary-inner { max-width: 430px; }
.checkout-section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.checkout-section-title h2, .checkout-form-panel h3 { margin: 0 0 10px; font-size: 16px; color: #111; font-family: Inter, system-ui, sans-serif; }
.checkout-section-title a, .checkout-policy-links a { color: #075bd8; text-decoration: underline; font-size: 12px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-field.full { grid-column: 1 / -1; }
.payment-box { margin: 24px 0 16px; border: 1px solid #0b5cff; border-radius: 6px; overflow: hidden; background: #f6f6f6; }
.payment-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px; background: #f4f7ff; border-bottom: 1px solid #ddd; font-size: 13px; }
.payment-box p { margin: 12px; color: #333; font-size: 12px; line-height: 1.5; }
.checkout-pay { width: 100%; min-height: 52px; margin-top: 14px; background: #0b5ed7; color: #fff; border-radius: 8px; }
.checkout-policy-links { display: flex; gap: 14px; margin-top: 80px; padding-top: 16px; border-top: 1px solid #ddd; }
.checkout-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-bottom: 26px; }
.checkout-thumb { position: relative; width: 48px; height: 48px; }
.checkout-thumb img { width: 48px; height: 48px; border: 1px solid #ccc; border-radius: 6px; object-fit: cover; }
.checkout-thumb span { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #111; color: #fff; font-size: 11px; }
.checkout-line strong { font-size: 12px; }
.checkout-line p { margin: 2px 0 0; color: #555; font-size: 11px; }
.checkout-line b { font-size: 12px; }
.checkout-total { display: flex; justify-content: space-between; padding-top: 8px; font-size: 16px; }
.checkout-total strong { font-size: 16px; }
.account-page { padding: 46px clamp(18px, 4vw, 54px); background: #fffaf0; }
.customer-shell { width: min(1320px, 100%); margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.customer-sidebar, .customer-panel { border: 1px solid var(--line); border-radius: 8px; background: #fffdf8; box-shadow: 0 14px 34px rgba(88, 46, 18, .08); }
.customer-sidebar { padding: 18px; position: sticky; top: 82px; }
.customer-sidebar h2 { margin: 0 0 14px; color: var(--maroon); font-family: "Noto Serif", serif; }
.customer-sidebar a { display: block; padding: 12px 14px; border-radius: 6px; color: #4b2a1a; font-weight: 850; }
.customer-sidebar a.active, .customer-sidebar a:hover { background: var(--maroon); color: #fff8e7; }
.customer-panel { padding: clamp(22px, 3vw, 34px); }
.customer-panel h1 { margin-top: 0; color: var(--maroon); font-family: "Noto Serif", serif; font-size: clamp(30px, 4vw, 48px); }
.account-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.status-pill { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #fff1be; color: var(--maroon); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.order-items { display: grid; gap: 16px; margin-top: 22px; }
.order-ebook { display: grid; grid-template-columns: 112px 1fr; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.order-ebook img { width: 112px; height: 148px; object-fit: cover; border-radius: 6px; background: #f6e7d2; }
.order-ebook h3 { margin: 0 0 8px; color: var(--maroon); font-family: "Noto Serif", serif; }
.ebook-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.tool-panel { width: min(900px, 100%); margin: 0 auto; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { padding: 24px; background: #2d100b; color: #fff1cf; }
.admin-nav a { display: block; padding: 10px 0; color: #fff1cf; font-weight: 800; }
.admin-main { padding: 28px; overflow-x: auto; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-main h1, .admin-main h2 { color: var(--maroon); font-family: "Noto Serif", serif; }
.admin-main table { min-width: 960px; }
.admin-main th { color: var(--maroon); background: #fff1c0; font-size: 13px; }
.stat { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.stat strong { display: block; color: var(--maroon); font-size: 28px; }
.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-link:hover {
  transform: translateY(-2px);
  border-color: rgba(177,18,25,.35);
  box-shadow: 0 14px 30px rgba(88, 46, 18, .12);
}
.admin-file-summary {
  align-self: stretch;
  padding: 14px;
  border: 1px dashed rgba(177,18,25,.24);
  border-radius: 8px;
  background: #fff8ea;
}
.admin-file-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--maroon);
}
.admin-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(242, 193, 76, .72);
  border-radius: 999px;
  background: #fffaf0;
  white-space: nowrap;
}
.admin-file-chip a {
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.admin-file-chip small {
  max-width: 150px;
  overflow: hidden;
  color: #7a5036;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
}
.admin-file-chip.missing {
  border-color: rgba(126, 22, 18, .18);
  background: #fff4ed;
}
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.admin-category-card-form {
  display: block;
  margin: 0;
}
.admin-category-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(242, 193, 76, .8);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf8, #fff1be);
  color: #2d100b;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  appearance: none;
  align-items: stretch;
  justify-content: stretch;
  justify-items: start;
}
.admin-category-card:hover,
.admin-category-card.active {
  border-color: rgba(177,18,25,.45);
  box-shadow: 0 14px 28px rgba(88, 46, 18, .12);
  transform: translateY(-1px);
}
.admin-category-card strong {
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 20px;
}
.admin-category-card span {
  color: #7a5036;
  font-weight: 800;
}
.admin-category-card b {
  align-self: end;
  color: var(--maroon);
}
.customer-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.customer-profile-grid div {
  padding: 14px;
  border: 1px solid rgba(242, 193, 76, .7);
  border-radius: 8px;
  background: #fffaf0;
}
.customer-profile-grid span {
  display: block;
  color: #7a5036;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.customer-profile-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--maroon);
}
.customer-total-pill {
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid rgba(242, 193, 76, .75);
  border-radius: 8px;
  background: #fff8ea;
  text-align: right;
}
.customer-total-pill span {
  display: block;
  color: #7a5036;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.customer-total-pill strong {
  display: block;
  margin-top: 4px;
  color: var(--maroon);
  font-size: 20px;
}
.admin-main .customer-profile-table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.customer-profile-table th {
  width: 170px;
  background: #fff1be;
  color: var(--maroon);
  text-align: left;
  white-space: nowrap;
}
.customer-profile-table td {
  color: #2d100b;
  font-weight: 750;
  line-height: 1.55;
  word-break: break-word;
}
.customer-order-items {
  margin: 0;
  padding-left: 18px;
}
@media (max-width: 900px) { .two-col, .checkout-shell, .customer-shell, .order-ebook { grid-template-columns: 1fr; } .checkout-form-panel { justify-self: stretch; width: 100%; } .checkout-summary { border-left: 0; } .cart-row { grid-template-columns: 72px 1fr; } .auth-mini-grid, .checkout-grid { grid-template-columns: 1fr; } .admin-shell { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .search-card form { grid-template-columns: 1fr; } .checkout-policy-links { margin-top: 34px; flex-wrap: wrap; } }

/* Themed checkout and professional admin update */
.checkout-theme-page .page-hero.checkout-hero {
  background:
    linear-gradient(115deg, rgba(255, 248, 234, .98), rgba(255, 241, 217, .9)),
    url("/assets/gallery/DharmarthTrustBanner.png") center/cover;
}
.checkout-themed-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 26px;
  align-items: start;
}
.checkout-themed-form,
.checkout-themed-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(126, 22, 18, .12);
}
.checkout-themed-form { padding: clamp(20px, 3vw, 34px); }
.checkout-themed-summary { position: sticky; top: 92px; padding: 24px; }
.checkout-themed-summary h2,
.checkout-themed-form h3 {
  margin-top: 0;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
}
.checkout-field span { color: #6a3c24; font-weight: 850; }
.themed-payment {
  border-color: rgba(177,18,25,.28);
  background: #fff8ea;
}
.themed-payment .payment-head {
  background: linear-gradient(135deg, #fff1be, #fff8dc);
  border-color: var(--line);
  color: var(--maroon);
}
.themed-pay {
  background: linear-gradient(135deg, var(--maroon), #e35116) !important;
  color: #fff8e7 !important;
  box-shadow: 0 14px 28px rgba(126, 22, 18, .18);
}
.checkout-tax-row,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(242, 193, 76, .65);
}
.checkout-total strong { color: var(--maroon); font-size: 22px; }
.gst-note { margin: 16px 0 0; color: #6a3c24; font-size: 13px; font-weight: 800; }
.auth-body {
  background:
    linear-gradient(135deg, rgba(255, 248, 234, .96), rgba(255, 226, 136, .78)),
    url("/assets/gallery/DharmarthTrustBanner.png") center/cover;
}
.auth-modal-card {
  border: 1px solid rgba(177,18,25,.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(126, 22, 18, .18);
}
.auth-modal-card:before {
  content: "\\002405\\002405  \\002352\\002328\\002369\\002325\\002369\\002354\\002360\\002306\\002346\\002342\\002366  \\002405\\002405";
  display: block;
  margin-bottom: 10px;
  color: var(--maroon);
  font-family: "Noto Serif Devanagari", serif;
  font-size: 20px;
  font-weight: 800;
}
.auth-modal-card h1 {
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-weight: 700;
}
.password-login { margin-top: 22px; }
.or-line { display: none !important; }
.admin-body {
  margin: 0;
  background: #fff8ea;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
.admin-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: linear-gradient(180deg, #4a130f, #240d09);
  color: #fff1cf;
  overflow-y: auto;
}
.admin-brand {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.admin-brand strong {
  color: #ffd37f;
  font-family: "Noto Serif", serif;
  font-size: 30px;
}
.admin-brand span { color: #f7d6b4; font-weight: 800; }
.admin-nav a {
  display: block;
  margin: 4px 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff1cf;
  font-weight: 800;
}
.admin-nav a.active,
.admin-nav a:hover {
  background: #ffcc16;
  color: #4a130f;
}
.admin-nav-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.admin-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 42px);
  overflow-x: auto;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf8, #fff1be);
  box-shadow: 0 14px 34px rgba(88, 46, 18, .08);
}
.admin-topbar h1 {
  margin: 0;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: clamp(30px, 4vw, 48px);
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.admin-panel {
  margin-bottom: 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(88, 46, 18, .08);
}
.admin-panel h2 {
  margin: 0 0 16px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
}
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}
.table-panel { overflow-x: auto; }
.admin-table-link {
  color: var(--maroon);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(183, 14, 25, .35);
  text-underline-offset: 3px;
}
.admin-table-link:hover {
  color: #7b100d;
  text-decoration-color: currentColor;
}
.admin-main table {
  min-width: 980px;
  border: 1px solid rgba(242, 193, 76, .75);
  border-radius: 8px;
  overflow: hidden;
}
.admin-main th {
  background: #fff1be;
  color: var(--maroon);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-main td { vertical-align: top; }
.admin-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1be;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
}
.admin-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.admin-workflow a {
  padding: 16px;
  border: 1px solid rgba(177,18,25,.18);
  border-radius: 8px;
  background: #fff8ea;
  color: #5f4534;
  font-weight: 850;
}
@media (max-width: 900px) {
  .checkout-themed-shell, .admin-shell { grid-template-columns: 1fr; }
  .checkout-themed-summary, .admin-nav { position: static; height: auto; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
}
/* International reader login, checkout, and AI order tools */
.auth-modal-card.international-auth-card {
  width: min(980px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  background: #fffdf8;
}
.auth-modal-card.international-auth-card:before { display: none; }
.auth-brand-panel {
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(145deg, #4a130f 0%, #8e0912 58%, #d14416 100%);
  color: #fff8e7;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-sanskrit {
  color: #ffcf26;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 20px;
}
.auth-brand-panel h2 {
  margin: 0 0 14px;
  font-family: "Noto Serif", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.auth-brand-panel p { color: #ffecc2; font-weight: 650; line-height: 1.7; }
.auth-brand-panel ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.auth-brand-panel li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 207, 38, .36);
  border-radius: 8px;
  background: rgba(255, 248, 231, .08);
  color: #fff4d2;
  font-weight: 850;
}
.auth-form-panel { position: relative; padding: clamp(24px, 4vw, 42px); }
.auth-form-panel h1 {
  margin: 0 34px 14px 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--maroon);
}
.auth-lead { color: #6a3c24; line-height: 1.65; font-weight: 650; }
.international-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.international-auth-grid .full { grid-column: 1 / -1; }
.auth-form label,
.checkout-field {
  display: grid;
  gap: 7px;
  color: #5c321f;
  font-size: 13px;
  font-weight: 900;
}
.auth-form input,
.auth-form select,
.checkout-field input,
.checkout-field select,
.inline-tool-form select,
.language-picker select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(177, 18, 25, .22);
  border-radius: 8px;
  background: #fffaf0;
  color: #30120c;
  padding: 11px 13px;
  font: inherit;
  font-weight: 650;
  outline: none;
}
.auth-form input:focus,
.auth-form select:focus,
.checkout-field input:focus,
.checkout-field select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(255, 204, 22, .28);
}
.phone-row {
  display: grid;
  grid-template-columns: minmax(138px, .42fr) minmax(0, 1fr);
  gap: 10px;
}
.otp-continue,
.auth-form button,
.checkout-pay {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--maroon), #e35116);
  color: #fff8e7;
  font-weight: 950;
  min-height: 48px;
  padding: 0 22px;
  cursor: pointer;
}
.international-reader-form .otp-continue { width: 100%; margin-top: 18px; }
.password-login {
  border-top: 1px solid rgba(242, 193, 76, .65);
  padding-top: 18px;
}
.password-login summary { cursor: pointer; color: var(--maroon); font-weight: 950; }
.compact-password-form { margin-top: 14px; display: grid; gap: 12px; }
.checkout-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.checkout-grid .full { grid-column: 1 / -1; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}
.account-stats article,
.empty-state,
.order-help-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf8, #fff1be);
  padding: 18px;
}
.account-stats strong {
  display: block;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 26px;
}
.account-stats span { color: #6a3c24; font-weight: 850; }
.orders-list { display: grid; gap: 10px; }
.orders-list-head,
.order-summary-card {
  display: grid;
  grid-template-columns: 1.4fr .8fr .7fr .8fr .7fr auto;
  gap: 12px;
  align-items: center;
}
.orders-list-head {
  padding: 0 16px;
  color: var(--maroon);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 950;
}
.order-summary-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 26px rgba(88, 46, 18, .07);
}
.order-ebook.professional-order-ebook {
  grid-template-columns: 104px minmax(0, 1fr);
  background: linear-gradient(135deg, #fffdf8, #fff8ea);
}
.order-ebook-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.order-ebook-head span { color: var(--maroon); font-weight: 950; }
.inline-tool-form,
.language-picker {
  display: inline-grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.inline-tool-form button,
.language-picker button { min-height: 42px; white-space: nowrap; }
.ai-workspace .account-title { align-items: flex-start; }
.ai-tool-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.ai-source-card,
.ai-output-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 18px;
}
.ai-source-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #f5e2c8;
}
.ai-source-card h3,
.ai-output-card h2 {
  color: var(--maroon);
  font-family: "Noto Serif", serif;
}
.sample-output {
  min-height: 210px;
  padding: 18px;
  border-radius: 8px;
  border: 1px dashed rgba(177, 18, 25, .35);
  background: linear-gradient(135deg, #fffaf0, #fff1be);
  color: #5c321f;
  line-height: 1.7;
}
.ai-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.ai-action-form button:disabled {
  cursor: not-allowed;
  opacity: .58;
}
@media (max-width: 980px) {
  .auth-modal-card.international-auth-card,
  .customer-shell,
  .checkout-themed-shell,
  .ai-tool-grid { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: auto; }
  .orders-list-head { display: none; }
  .order-summary-card { grid-template-columns: 1fr; }
  .customer-sidebar { position: static; }
}
@media (max-width: 640px) {
  .international-auth-grid,
  .checkout-grid,
  .account-stats,
  .phone-row,
  .inline-tool-form,
  .language-picker { grid-template-columns: 1fr; }
  .order-ebook.professional-order-ebook { grid-template-columns: 1fr; }
  .order-ebook img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}
.report-export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.report-export-actions .button {
  min-height: 38px;
  padding: 9px 14px;
}
@media (max-width: 760px) {
  .report-export-actions { justify-content: flex-start; }
}
.admin-actions-cell {
  min-width: 260px;
}
.admin-inline-payment-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.admin-inline-payment-form input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.admin-inline-payment-form button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .admin-inline-payment-form { grid-template-columns: 1fr; }
}
/* Invoice GST split */
.invoice-panel { background: #fffdf8; }
.invoice-head,
.invoice-billing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}
.invoice-seller,
.invoice-billing > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ea;
  padding: 16px;
}
.invoice-table-wrap { overflow-x: auto; }
.invoice-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid rgba(242, 193, 76, .85);
  background: #fff;
}
.invoice-table th {
  background: #fff1be;
  color: var(--maroon);
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
}
.invoice-table th,
.invoice-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(242, 193, 76, .45);
  vertical-align: top;
}
.invoice-total-row td {
  background: #fff8dc;
  color: var(--maroon);
  font-weight: 950;
}
@media (max-width: 760px) {
  .invoice-head,
  .invoice-billing { grid-template-columns: 1fr; }
}
.invoice-label {
  display: block;
  margin-bottom: 8px;
  color: var(--maroon);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.invoice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.invoice-summary > div {
  border: 1px solid rgba(242, 193, 76, .7);
  border-radius: 8px;
  background: #fff8dc;
  padding: 14px;
}
.invoice-summary strong,
.invoice-summary span {
  display: block;
}
.invoice-summary span {
  margin-top: 6px;
  color: var(--maroon);
  font-size: 20px;
  font-weight: 950;
}
.invoice-note {
  border-left: 4px solid var(--gold);
  background: #fff8ea;
  padding: 12px 14px;
  color: var(--brown);
}
@media print {
  .admin-sidebar,
  .admin-topbar,
  .invoice-panel .button,
  .invoice-panel button { display: none !important; }
  .admin-main { margin: 0; padding: 0; }
  .invoice-panel { box-shadow: none; border: 0; }
}
@media (max-width: 760px) {
  .invoice-summary { grid-template-columns: 1fr; }
}
/* Prepared PDF delivery */
.file-download-actions {
  align-items: center;
}
.file-download-actions .button {
  min-height: 42px;
}
.file-missing-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px dashed rgba(177, 18, 25, .35);
  border-radius: 8px;
  color: #7a4c36;
  background: #fff8ea;
  font-weight: 850;
}
.admin-badge.muted {
  background: #f7eadb;
  color: #8a6954;
}
.prepared-file-notice {
  border: 1px solid rgba(242, 193, 76, .8);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf6, #fff0c5);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(80, 35, 18, .08);
}
.prepared-file-notice h2 {
  margin-top: 0;
  color: var(--maroon);
}

.button.in-cart.disabled {
  background: #f7eadb;
  border: 1px solid rgba(128, 91, 66, .25);
  color: #7a5a44;
  cursor: not-allowed;
  pointer-events: none;
}

.checkout-message {
  min-height: 22px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 750;
}
.checkout-message.error { color: var(--maroon); }
.checkout-message.success { color: #245c2b; }
.checkout-pay:disabled {
  opacity: .72;
  cursor: wait;
}
.message-office {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(183, 14, 25, .18);
  display: grid;
  gap: 6px;
  color: #5c3524;
  font-size: 14px;
  line-height: 1.55;
}
.message-office strong { color: var(--maroon); font-weight: 900; }
.message-office span { display: block; }
.message-copy h2 {
  margin: 0 0 18px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: clamp(28px, 3vw, 42px);
}
.message-signature {
  margin-top: 28px !important;
  color: var(--maroon) !important;
  font-weight: 700;
}
/* About Project */
.about-project-page .page-hero {
  background:
    linear-gradient(115deg, rgba(255, 248, 234, .97), rgba(255, 228, 146, .76)),
    url("/assets/about-project/open-manuscript.jpg") center/cover;
}
.project-intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 34px;
  align-items: center;
  padding: 54px clamp(18px, 4vw, 54px);
  background: linear-gradient(135deg, #fff8d7, #fffdf5 52%, #ffe492);
  border-bottom: 1px solid var(--line);
}
.project-intro-copy h2,
.project-scope-band h2,
.project-domains h2,
.project-feature-band h2,
.project-vision-band h2 {
  margin: 0 0 16px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}
.project-intro-copy p,
.project-feature-band p,
.project-vision-grid p {
  color: #654632;
  font-size: 18px;
  line-height: 1.75;
}
.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.project-highlights span,
.project-scope-grid span,
.project-domain-grid article,
.project-vision-grid div {
  border: 1px solid rgba(177, 18, 25, .16);
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 14px 34px rgba(88, 46, 18, .08);
}
.project-highlights span {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--maroon);
  font-weight: 900;
}
.project-intro-image,
.project-gallery-row figure,
.project-feature-band figure {
  margin: 0;
}
.project-intro-image img,
.project-image-stack img,
.project-gallery-row img,
.project-feature-band img,
.project-preservation-card img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.project-intro-image img { aspect-ratio: 4 / 3; }
.project-intro-image figcaption,
.project-gallery-row figcaption,
.project-feature-band figcaption {
  margin-top: 10px;
  color: #7a5640;
  font-size: 13px;
  font-weight: 800;
}
.project-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 28px;
  align-items: stretch;
}
.project-heritage-panel { min-height: 100%; }
.project-image-stack {
  display: grid;
  gap: 18px;
}
.project-image-stack img { height: 220px; }
.project-scope-band,
.project-vision-band {
  padding: 54px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, #fff2be, #fff8dd);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-scope-grid,
.project-domain-grid,
.project-vision-grid,
.project-preservation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.project-scope-grid div {
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(177, 18, 25, .16);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf8, #ffe981);
  box-shadow: 0 16px 38px rgba(126, 22, 18, .12);
}
.project-scope-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 30px;
}
.project-scope-grid span {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #684733;
  line-height: 1.6;
}
.project-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-gallery-row img { aspect-ratio: 4 / 3; }
.project-domain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-domain-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(150deg, #fffdf8 0%, #fff7d8 58%, #ffe56d 100%);
}
.project-domain-grid h3,
.project-preservation-card h2,
.project-vision-grid strong {
  margin: 0 0 12px;
  color: var(--maroon);
  font-family: "Noto Serif", serif;
  font-size: 26px;
}
.project-domain-grid p,
.project-preservation-card p {
  color: #6f4d37;
  line-height: 1.7;
}
.project-feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: center;
  padding: 56px clamp(18px, 4vw, 54px);
  background: linear-gradient(135deg, #8f0710, #b11219 48%, #e98b0b);
  color: #fffaf0;
}
.project-feature-band h2,
.project-feature-band .section-kicker { color: #ffd37f; }
.project-feature-band p,
.project-feature-band li { color: #fff6dc; }
.project-feature-band ul {
  margin: 18px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}
.project-feature-band img { aspect-ratio: 4 / 3; }
.project-feature-band figcaption { color: #fff0bd; }
.project-preservation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-preservation-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 14px 34px rgba(88, 46, 18, .08);
}
.project-preservation-card img {
  height: 210px;
  margin-bottom: 18px;
}
.project-vision-grid div {
  min-height: 180px;
  padding: 24px;
  border-radius: 8px;
}
.project-cta { margin: 30px 0 0; }

@media (max-width: 980px) {
  .project-intro-band,
  .project-two-column,
  .project-feature-band { grid-template-columns: 1fr; }
  .project-scope-grid,
  .project-domain-grid,
  .project-preservation-grid,
  .project-vision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .project-scope-grid,
  .project-domain-grid,
  .project-preservation-grid,
  .project-vision-grid,
  .project-gallery-row { grid-template-columns: 1fr; }
  .project-image-stack img,
  .project-preservation-card img { height: auto; aspect-ratio: 4 / 3; }
}

.checkout-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-auth-button,
.checkout-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--maroon);
  background: var(--maroon);
  color: #fff7cf !important;
  font-size: 13px !important;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}
.mini-auth-button.secondary,
.checkout-account-link {
  background: #fff8ea;
  color: var(--maroon) !important;
}
@media (max-width: 640px) {
  .checkout-auth-actions { justify-content: stretch; width: 100%; }
  .mini-auth-button { flex: 1 1 auto; }
}
.checkout-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.checkout-auth-modal.open { display: flex; }
.checkout-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 16, 11, .64);
  backdrop-filter: blur(4px);
}
.checkout-auth-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 210, 28, .42);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 26px 80px rgba(45, 16, 11, .34);
}
.checkout-auth-dialog.signup-dialog { width: min(720px, 100%); }
.checkout-auth-dialog h2 {
  margin: 4px 42px 10px 0;
  font-family: "Noto Serif", serif;
  font-size: clamp(26px, 4vw, 36px);
  color: var(--maroon);
  line-height: 1.08;
}
.checkout-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff8ea;
  color: var(--maroon);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.checkout-popup-note,
.checkout-popup-footnote {
  color: #6a3c24;
  line-height: 1.55;
}
.checkout-popup-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.checkout-popup-form label {
  display: grid;
  gap: 7px;
  color: #4d2919;
  font-weight: 850;
}
.checkout-popup-form input,
.checkout-popup-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(177, 18, 25, .22);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  color: #2d160f;
}
.checkout-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.checkout-popup-grid .full { grid-column: 1 / -1; }
.checkout-popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.checkout-popup-row a,
.checkout-popup-row button,
.checkout-popup-footnote button {
  border: 0;
  background: transparent;
  color: var(--maroon);
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.checkout-popup-submit {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--maroon);
  color: #fff7cf;
  font-weight: 950;
  cursor: pointer;
}
.checkout-auth-modal-open { overflow: hidden; }
.mini-auth-button { appearance: none; border: 1px solid var(--maroon); font: inherit; }
@media (max-width: 680px) {
  .checkout-auth-dialog { padding: 22px; }
  .checkout-popup-grid { grid-template-columns: 1fr; }
}
.checkout-summary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.checkout-summary-actions .button {
  width: 100%;
  min-height: 44px;
}
.summary-pay-button {
  background: var(--maroon);
  color: #fff7cf;
}
.checkout-summary-actions .continue-shopping-btn {
  margin-top: 0;
}
