/* Phase 11.2C.2: self-hosted brand typography */
@font-face {
  font-family: "Baloo Chettan 2";
  src: url("/static/fonts/BalooChettan2.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/static/fonts/NunitoSans.ttf") format("truetype");
  font-weight: 300 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Egyptian Hieroglyphs";
  src: url("/static/fonts/NotoSansEgyptianHieroglyphs-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--gi-body-font);
  background-color: #f4f1e9;
  color: #4a3f35;
  margin: 0;
  padding: 0;
  text-align: center;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.branding {
  margin-bottom: 2rem;
  position: relative;
}

.branding .brand-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b0000; /* deep red */
  text-align: center;
  margin-bottom: 0.5rem;
}

.branding h1 {
  font-size: 2.2rem;
  color: #6b1c1c;
  margin-bottom: 0.2rem;
}

.branding h1::before,
.branding h1::after {
  content: "✠";
  color: #cc0000; /* red templar crosses */
  margin: 0 0.4rem;
}

.temple-subtitle {
  font-size: 1rem;
  color: #555;
  margin-top: 0.4rem;
  text-align: center;
}

section {
  margin-bottom: 2.5rem;
}

.scroll-upload h2,
.oracle-consult h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3d2b1f;
}

#scrollForm input[type="file"] {
  margin-right: 1rem;
}

button {
  background-color: #8b0000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

button:hover {
  background-color: #a52a2a;
}

.input-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#voiceSelect {
  padding: 0.4rem;
  font-size: 1rem;
}

textarea#seekerInput {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
}

.voice-response {
  background-color: #fffaf0;
  border: 2px solid #ddd;
  padding: 1rem;
  margin-top: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  text-align: left;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 8px;
}

/* Phase 4.2: Hamburger menu */
.header-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a3f35;
}

.main-menu {
  display: none;
  position: absolute;
  top: 2.5rem;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1000;
}

.main-menu.show {
  display: block;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-section button {
  background: #8b0000;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.menu-section button:hover {
  background: #a00000;
}

#userInfo, #usageInfo {
  font-size: 0.9rem;
  color: #4a3f35;
  margin-bottom: 0.5rem;
}

/* Phase 4.2.1: Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal label {
  font-weight: bold;
}

.modal input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal button {
  background-color: #8b0000;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.modal button:hover {
  background-color: #a52a2a;
}

.error-message {
  color: #d9534f;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

/* Phase 6.5D/E: Admin Console */
main.admin-console {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-subtitle {
  opacity: 0.8;
  margin-top: 8px;
}

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

.admin-panel {
  grid-column: span 12;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-panel h2,
.admin-panel h3 {
  margin-top: 0;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.admin-console .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-console .metric-card,
.admin-console .result-card,
.admin-console .detail-card,
.admin-console .action-card,
.admin-console .summary-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.admin-console .metric-label {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-bottom: 6px;
}

.admin-console .metric-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-console .control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.admin-console .control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.admin-console .control-group input,
.admin-console .control-group select {
  padding: 8px 10px;
}

.admin-console button {
  padding: 9px 14px;
  cursor: pointer;
}

.admin-console .results-list,
.admin-console .detail-grid,
.admin-console .action-list,
.admin-console .summary-list {
  display: grid;
  gap: 10px;
}

.admin-console .detail-grid {
  grid-template-columns: 1fr;
}

.admin-console .kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  margin: 6px 0;
}

.admin-console .kv .label {
  font-weight: 600;
  opacity: 0.85;
}

.admin-console .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
}

.admin-console .muted {
  opacity: 0.72;
}

.admin-console .status-line {
  min-height: 24px;
  margin-top: 8px;
}

.admin-console .status-ok {
  color: #1b5e20;
}

.admin-console .status-error {
  color: #8b1e1e;
}

.admin-console .mutation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-console details {
  margin-top: 12px;
}

.admin-console pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 12px;
}

.detail-user-id-group {
  flex: 1 1 320px;
}

.summary-card-spaced {
  margin-top: 12px;
}

.control-row-spaced {
  margin-top: 12px;
}

@media (max-width: 960px) {
  .span-4,
  .span-6,
  .span-12 {
    grid-column: span 12;
  }

  .admin-console .metric-grid,
  .admin-console .detail-grid,
  .admin-console .mutation-grid {
    grid-template-columns: 1fr;
  }

  .admin-console .kv {
    grid-template-columns: 1fr;
  }
}

/* Phase 8.5: support modal scrolling and layout */
.modal-content {
  margin: 5vh auto;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.support-modal-content {
  width: min(900px, 92vw);
  max-width: 900px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.support-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 12px;
  background: #fffaf0;
  text-align: left;
}

.support-card h3 {
  margin-top: 0;
}

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-actions button {
  width: 100%;
  margin-top: 0;
}

/* Phase 8.5: dedicated support page */
.support-page {
  max-width: 1100px;
  margin: 0 auto;
}

.support-hero {
  margin-bottom: 18px;
}

.support-note {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
  background: #fffaf0;
}

.support-page-grid {
  margin-top: 18px;
}

.support-price {
  font-weight: 700;
  margin-top: 8px;
}

.support-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #6f5a3a;
  color: #ffffff;
}

.button-link.secondary {
  background: transparent;
  color: inherit;
}

.support-page .support-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-page .support-actions {
  margin-top: auto;
}

@media (max-width: 720px) {
  .support-cta-row {
    flex-direction: column;
  }

  .button-link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Phase 8.5: account page */
.account-page {
  max-width: 1100px;
  margin: 0 auto;
}

.account-hero {
  margin-bottom: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.account-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.account-kv span {
  opacity: 0.8;
}

.account-kv strong {
  text-align: right;
  word-break: break-word;
}

@media (max-width: 720px) {
  .account-kv {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-kv strong {
    text-align: left;
  }
}

/* Phase 8.5: about page */
.about-page {
  max-width: 1100px;
  margin: 0 auto;
}

.about-hero {
  margin-bottom: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

/* Phase 8.5: final polish support grid and founder note */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-card.support-card-contribution {
  background: #f7efe2;
}

.founder-welcome {
  border-left: 4px solid rgba(111, 90, 58, 0.45);
}

@media (max-width: 980px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}



.mail-link {
  color: #6b1c1c;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-word;
}

.admin-cta-row {
  justify-content: center;
}


.support-checkout-btn.support-selected {
  outline: 3px solid rgba(111, 90, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 90, 58, 0.18);
}

.temple-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.branding .temple-title {
  font-size: 2.2rem;
  color: #6b1c1c;
  margin-bottom: 0.2rem;
}

.branding .temple-title::before,
.branding .temple-title::after {
  content: none !important;
}

.temple-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}



/* Phase 10.9B: centered brand link and mobile temple title polish */
.branding {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.branding .brand-home-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  line-height: 1.15;
}

.branding .header-actions {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 20;
}

.branding .temple-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  max-width: 100%;
}

.branding .temple-title::before,
.branding .temple-title::after {
  flex: 0 0 auto;
  display: inline-block;
  margin: 0;
}

@media (max-width: 520px) {
  .branding {
    padding-left: 3.25rem;
    padding-right: 3.25rem;
  }

  .branding .brand-home-link {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .branding .header-actions {
    top: 0.65rem;
    right: 0.65rem;
  }

  .menu-toggle {
    line-height: 1;
  }

  .branding .temple-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
    gap: 0.35rem;
  }

  .branding .temple-title::before,
  .branding .temple-title::after {
    width: clamp(28px, 9vw, 40px);
    height: clamp(28px, 9vw, 40px);
  }
}

@media (max-width: 360px) {
  .branding {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }

  .branding .temple-title {
    gap: 0.25rem;
  }

  .branding .temple-title::before,
  .branding .temple-title::after {
    width: 26px;
    height: 26px;
  }
}


/* Phase 10.9B hotfix: keep hamburger dropdown controlled by JS */
.branding .main-menu {
  display: none;
}

.branding .main-menu.open,
.branding .main-menu.show,
.branding .main-menu.active,
.branding .header-actions.open .main-menu {
  display: flex;
}


/* Phase 10.9C: templar cross heading polish */
.crossed-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}

.crossed-title::before,
.crossed-title::after {
  content: "✠";
  color: #cc0000;
  font-size: 0.8em;
  line-height: 1;
  flex: 0 0 auto;
  background: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
}

.about-hero h1.crossed-title {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.branding .temple-title.crossed-title {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 520px) {
  .about-hero h1.crossed-title {
    font-size: clamp(1.35rem, 6.8vw, 1.85rem);
    gap: 0.28rem;
  }

  .branding .temple-title.crossed-title {
    font-size: clamp(1.45rem, 7vw, 1.95rem);
    gap: 0.28rem;
  }

  .crossed-title::before,
  .crossed-title::after {
    font-size: 0.72em;
  }
}

@media (max-width: 360px) {
  .about-hero h1.crossed-title,
  .branding .temple-title.crossed-title {
    gap: 0.22rem;
  }

  .crossed-title::before,
  .crossed-title::after {
    font-size: 0.68em;
  }
}


/* Phase 10.9D: mobile temple cross and compact user menu polish */

/* Stronger than the older temple-title logo rules: force simple red crosses. */
.branding .temple-title.crossed-title::before,
.branding .temple-title.crossed-title::after,
.about-hero h1.crossed-title::before,
.about-hero h1.crossed-title::after {
  content: "✠" !important;
  color: #cc0000 !important;
  font-size: 0.8em !important;
  line-height: 1 !important;
  background: none !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
}

/* Keep the mobile header action from growing over the page when user name appears. */
.branding .header-actions {
  max-width: min(42vw, 12rem);
}

.branding .header-actions .menu-toggle {
  max-width: min(38vw, 10.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* If the menu button becomes a username, keep it compact on phone. */
@media (max-width: 520px) {
  .branding .header-actions {
    top: 0.55rem;
    right: 0.55rem;
    max-width: 34vw;
  }

  .branding .header-actions .menu-toggle {
    font-size: 0.78rem;
    line-height: 1;
    padding: 0.35rem 0.45rem;
    max-width: 32vw;
    min-width: 2.15rem;
    min-height: 2.15rem;
  }

  .branding .temple-title.crossed-title,
  .about-hero h1.crossed-title {
    white-space: nowrap;
  }

  .branding .temple-title.crossed-title::before,
  .branding .temple-title.crossed-title::after,
  .about-hero h1.crossed-title::before,
  .about-hero h1.crossed-title::after {
    font-size: 0.68em !important;
  }
}

@media (max-width: 390px) {
  .branding .header-actions {
    max-width: 30vw;
  }

  .branding .header-actions .menu-toggle {
    max-width: 28vw;
    font-size: 0.72rem;
    padding: 0.32rem 0.38rem;
  }
}


/* Phase 10.9E: final mobile cross and about overlap cleanup */

/*
  Final override: remove old temple logo artwork everywhere the title pseudo-elements
  are used, and force the simple templar cross.
*/
.branding h1::before,
.branding h1::after,
.branding .temple-title::before,
.branding .temple-title::after,
.branding .temple-title.crossed-title::before,
.branding .temple-title.crossed-title::after,
.about-hero h1::before,
.about-hero h1::after,
.about-hero h1.crossed-title::before,
.about-hero h1.crossed-title::after {
  content: "✠" !important;
  color: #cc0000 !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 0.35rem !important;
  padding: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex: 0 0 auto !important;
  font-size: 0.72em !important;
  line-height: 1 !important;
}

/* Keep title rows compact and centered on phone. */
.branding h1,
.branding .temple-title,
.branding .temple-title.crossed-title,
.about-hero h1,
.about-hero h1.crossed-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.2rem !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/*
  About page cleanup: keep the CTA/link row from visually bleeding into the
  first content card below it on small screens.
*/
.about-page .about-hero .support-cta-row {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.about-page .about-section,
.about-page section {
  position: relative;
  z-index: 0;
  clear: both;
}

.about-page .about-section:first-of-type,
.about-page section:first-of-type {
  margin-top: 1.25rem;
}

@media (max-width: 520px) {
  .branding h1::before,
  .branding h1::after,
  .branding .temple-title::before,
  .branding .temple-title::after,
  .about-hero h1::before,
  .about-hero h1::after {
    font-size: 0.62em !important;
    margin: 0 0.22rem !important;
  }

  .about-page .about-hero .support-cta-row {
    margin-bottom: 1.5rem;
  }

  .about-page .about-section:first-of-type,
  .about-page section:first-of-type {
    margin-top: 1.5rem;
  }
}


/* Phase 10.9F: remove temple image marks and founder border */

/* The old temple-mark images are no longer part of the mobile/launch title treatment. */
.temple-mark,
.temple-mark-left,
.temple-mark-right {
  display: none !important;
}

/* Keep the Temple title centered now that image marks are removed. */
.temple-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Remove the left-side founder card stripe that looked like a shadow/overlap on mobile. */
.founder-welcome {
  border-left: none !important;
}

/* Keep the About first content card clean below the CTA. */
.about-page .founder-welcome {
  box-shadow: none;
}


/* Phase 10.10 Clean: consolidated homepage skin */
:root {
  --gi-card-cream: #fffaf1;
  --gi-navy: #0a3a68;
  --gi-navy-deep: #05253f;
  --gi-crimson: #980716;
  --gi-crimson-deep: #710412;
  --gi-gold: #b38a3c;
  --gi-gold-soft: #d8bb76;
  --gi-dark-silver: #68758a;
  --gi-slate: #24374d;
  --gi-brand-font: "Baloo Chettan 2", "Nunito Sans", system-ui, sans-serif;
  --gi-display-font: "Noto Sans Egyptian Hieroglyphs", "Nunito Sans", Georgia, "Times New Roman", serif;
  --gi-body-font: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gi-symbol-font: "Noto Sans Egyptian Hieroglyphs", "Noto Sans", "Nunito Sans", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--gi-slate);
  font-family: var(--gi-body-font);
  text-align: center;
  background:
    radial-gradient(circle at 50% 9%, rgba(255,255,255,0.98), rgba(255,255,255,0.80) 18rem, transparent 42rem),
    radial-gradient(circle at 16% 34%, rgba(255,255,255,0.92), rgba(255,255,255,0.52) 8rem, transparent 22rem),
    radial-gradient(circle at 84% 34%, rgba(255,255,255,0.92), rgba(255,255,255,0.52) 8rem, transparent 22rem),
    linear-gradient(180deg, #edf4fa 0%, #f8f1e6 24%, #f1f6fb 100%) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 4.6rem;
  bottom: 0;
  width: min(18vw, 220px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.96;
  background-image: url("/static/img/temple-side-final.svg?v=1");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
}

body::before { left: 0; }
body::after { right: 0; transform: scaleX(-1); }

main.temple-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 1.25rem;
}

.temple-nav {
  display: grid;
  grid-template-columns: minmax(255px, 1fr) minmax(240px, 0.8fr) minmax(330px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(179,138,60,0.45);
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.94), transparent 16rem),
    linear-gradient(180deg, #fff9ee, #f4eadb);
  box-shadow: 0 10px 24px rgba(22,32,51,0.14);
}

.brand-lockup {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  color: var(--gi-slate) !important;
  text-decoration: none;
  font-family: var(--gi-brand-font);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1;
}

.nav-cross,
.hero-divider,
.gold-rule,
.choice-label,
.temple-statement,
.footer-ornament {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-cross span,
.hero-divider span,
.gold-rule span,
.choice-label span,
.temple-statement-rule,
.footer-ornament span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(179,138,60,0.40), rgba(216,187,118,0.98), rgba(179,138,60,0.40), transparent);
}

.nav-cross strong {
  color: var(--gi-crimson);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 400;
}

.hero-divider {
  max-width: 360px;
  margin: 0.45rem auto 0.35rem;
}

.gold-rule b,
.hero-divider b {
  width: 160px;
  height: 24px;
  display: block;
  background: url("/static/img/gold-flourish-final.svg?v=1") center/contain no-repeat;
}

.temple-nav .header-actions {
  position: static !important;
  justify-self: end;
  display: flex;
  max-width: none;
  z-index: 30;
}

.temple-nav .menu-toggle { display: none; }

.temple-nav .main-menu {
  position: static !important;
  display: flex !important;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.temple-nav .menu-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.temple-nav .menu-section[hidden] { display: none !important; }

.temple-nav .menu-section button,
.footer-links button {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gi-navy);
  font-family: var(--gi-body-font);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.temple-nav #loginBtn {
  border: 1px solid rgba(216,187,118,0.84);
  background: rgba(255,248,237,0.9);
}

.temple-nav #registerBtn,
.temple-nav .nav-primary {
  border: 1px solid rgba(216,187,118,0.84);
  background: linear-gradient(180deg, var(--gi-navy), var(--gi-navy-deep));
  color: #fff;
}

.user-info-inline {
  font-size: 0.82rem;
  color: var(--gi-dark-silver);
}

.temple-landing-hero {
  padding: 2rem 1rem 1rem;
}

.temple-landing-hero h1 {
  margin: 0;
  color: var(--gi-navy);
  font-family: var(--gi-display-font);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-shadow: 0 4px 14px rgba(255,255,255,0.82);
}

.temple-landing-hero p {
  margin: 0;
  color: var(--gi-dark-silver);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.temple-card {
  width: min(910px, calc(100% - 1.5rem));
  margin: 0 auto 1.55rem;
  padding: 0;
  border: 1px solid rgba(179,138,60,0.82);
  border-radius: 16px;
  background: rgba(255,250,241,0.97);
  box-shadow: 0 0 0 1px rgba(216,187,118,0.46), 0 18px 38px rgba(22,32,51,0.18), inset 0 1px 0 rgba(255,255,255,0.80);
  overflow: hidden;
}

.card-banner {
  padding: 0.8rem 1.4rem 0.65rem;
  color: #fff;
  border-bottom: 1px solid rgba(216,187,118,0.62);
}

.oracle-banner {
  background: radial-gradient(circle at 50% 0, rgba(255,255,255,0.16), transparent 16rem), linear-gradient(180deg, #a20718, #710412);
}

.scroll-banner {
  background: radial-gradient(circle at 50% 0, rgba(255,255,255,0.15), transparent 16rem), linear-gradient(180deg, #0b436f, #05253f);
}

.gold-rule {
  max-width: 720px;
  margin: 0 auto 0.15rem;
}

.card-banner h2 {
  margin: 0;
  color: #ffecc8;
  font-family: var(--gi-display-font);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-banner p {
  margin: 0.15rem auto 0;
  color: rgba(255,255,255,0.94);
  font-size: 0.92rem;
}

.card-body {
  padding: 1rem clamp(1rem, 4vw, 2.6rem) 1.15rem;
}

.oracle-form {
  display: grid;
  gap: 0.85rem;
}

.oracle-input,
.oracle-output-wrap {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(179,138,60,0.74);
  border-radius: 10px;
  background: rgba(255,252,247,0.88);
}

textarea#seekerInput.oracle-input {
  min-height: 3rem;
  padding: 0.82rem 1rem;
  color: var(--gi-slate);
  font-family: var(--gi-body-font);
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

.oracle-output-wrap {
  min-height: 5.3rem;
  padding: 0.72rem 1rem;
}

.voice-response {
  width: 100%;
  min-height: 4.4rem;
  max-height: 360px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gi-slate);
  font-family: var(--gi-body-font);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
  white-space: pre-wrap;
  overflow-y: auto;
}

.choice-label {
  max-width: 650px;
  margin: 0.45rem auto 0;
  color: var(--gi-navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.voice-card {
  display: grid;
  grid-template-columns: 134px 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(179,138,60,0.74);
  border-radius: 10px;
  background: radial-gradient(circle at 12% 50%, rgba(216,187,118,0.16), transparent 5rem), rgba(255,252,247,0.88);
  color: var(--gi-slate);
  text-align: left;
}

.voice-card.is-selected {
  border-color: rgba(216,187,118,0.96);
  box-shadow: 0 0 0 1px rgba(216,187,118,0.50), 0 9px 20px rgba(22,32,51,0.12);
}

.voice-icon {
  width: 128px;
  height: 104px;
  display: block;
  justify-self: center;
}

.voice-copy {
  display: grid;
  gap: 0.08rem;
  text-align: center;
}

.voice-copy strong {
  color: var(--gi-crimson);
  font-family: var(--gi-display-font);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.voice-copy em {
  color: var(--gi-gold);
  font-family: var(--gi-body-font);
  font-size: 1.02rem;
}

.voice-copy small {
  color: var(--gi-slate);
  font-size: 0.82rem;
}

.voice-choice-message,
.oracle-helper {
  min-height: 1rem;
  color: var(--gi-dark-silver);
  font-size: 0.88rem;
}

.oracle-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.oracle-actions button,
.upload-submit {
  min-width: 210px;
  margin: 0;
  padding: 0.82rem 1.15rem;
  border-radius: 7px;
  border: 1px solid rgba(216,187,118,0.84);
  color: #fff;
  font-family: var(--gi-display-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#askButton {
  background: linear-gradient(180deg, var(--gi-crimson), var(--gi-crimson-deep));
}

#speakButton,
.upload-submit {
  background: linear-gradient(180deg, var(--gi-navy), var(--gi-navy-deep));
}

.temple-statement {
  width: min(940px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.15rem auto;
  text-align: center;
  clear: both;
}

.temple-statement-copy {
  display: grid;
  justify-items: center;
  gap: 0.06rem;
}

.temple-statement-line {
  display: block;
  color: var(--gi-navy);
  font-family: var(--gi-display-font);
  font-size: clamp(1.02rem, 2vw, 1.34rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.22;
}

.scroll-form {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.upload-zone {
  width: min(760px, 100%);
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  padding: 1.05rem 1rem 0.9rem;
  border: 2px dashed rgba(179,138,60,0.68);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 0, rgba(255,255,255,0.84), transparent 11rem), rgba(255,252,247,0.84);
  cursor: pointer;
}

.upload-quill {
  width: 104px;
  height: 96px;
  display: block;
}

.upload-icon {
  color: #7b7f82;
  font-size: 2.2rem;
}

.upload-main {
  color: var(--gi-navy);
  font-family: var(--gi-display-font);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-sub {
  color: var(--gi-slate);
  font-size: 0.9rem;
}

.upload-types {
  color: var(--gi-slate);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

#scroll {
  max-width: 100%;
  color: var(--gi-dark-silver);
}

.scroll-footer-note {
  width: min(830px, calc(100% - 1.6rem));
  margin: 0.85rem auto 0;
  padding: 0.78rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(179,138,60,0.74);
  border-radius: 8px;
  background: rgba(246,236,219,0.82);
  color: var(--gi-slate);
}

.scroll-note-icon {
  width: 48px;
  height: 48px;
  display: block;
  justify-self: center;
}

.scroll-footer-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.scroll-count-line {
  margin: 0.75rem auto 0;
  color: var(--gi-dark-silver);
  font-size: 0.84rem;
}

.temple-footer {
  margin-top: 0.8rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(180deg, var(--gi-navy), var(--gi-navy-deep));
  border-top: 1px solid rgba(216,187,118,0.62);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}

.footer-links button {
  color: #fff;
}

.footer-links button:hover {
  color: #ffecc8;
}

.footer-ornament {
  min-width: 180px;
  color: var(--gi-gold-soft);
}

.footer-ornament b {
  font-size: 1.3rem;
  font-weight: 400;
}

.temple-copyright {
  justify-self: end;
  color: #d7dfeb;
  font-size: 0.84rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  body::before,
  body::after {
    width: 125px;
    opacity: 0.68;
  }

  main.temple-shell {
    width: min(100% - 1rem, 760px);
  }

  .temple-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-cross {
    display: none;
  }

  .temple-nav .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(179,138,60,0.45);
    border-radius: 7px;
    background: rgba(255,248,237,0.84);
    color: var(--gi-navy);
    font-size: 1.2rem;
  }

  .temple-nav .main-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 0.45rem) !important;
    right: 0 !important;
    min-width: min(300px, calc(100vw - 2rem));
    padding: 0.8rem;
    border: 1px solid rgba(179,138,60,0.35);
    border-radius: 14px;
    background: rgba(255,248,237,0.98);
    box-shadow: 0 18px 40px rgba(22,32,51,0.16);
  }

  .temple-nav .main-menu.show {
    display: flex !important;
  }

  .temple-nav .menu-section {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .temple-nav .menu-section button {
    width: 100%;
  }

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

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

  .footer-links,
  .temple-copyright {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body::before,
  body::after {
    opacity: 0.42;
    width: 86px;
  }

  main.temple-shell {
    width: calc(100% - 0.4rem);
  }

  .brand-lockup {
    font-size: 1.22rem;
  }

  .temple-landing-hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
    letter-spacing: 0.045em;
  }

  .temple-card {
    width: calc(100% - 0.4rem);
  }

  .card-body {
    padding: 0.9rem;
  }

  .card-banner h2 {
    font-size: 1.55rem;
  }

  .gold-rule b,
  .hero-divider b {
    width: 118px;
    height: 20px;
  }

  .voice-card {
    grid-template-columns: 86px 1fr;
  }

  .voice-icon {
    width: 82px;
    height: 68px;
  }

  .voice-copy {
    text-align: left;
  }

  .oracle-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .oracle-actions button,
  .upload-submit {
    width: 100%;
    min-width: 0;
  }

  .temple-statement {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .temple-statement-rule {
    display: none;
  }

  .scroll-footer-note {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Phase 10.10I: homepage tuning pass */

/* Tone down and stack the hero title. */
.temple-landing-hero h1 {
  display: grid !important;
  justify-items: center !important;
  gap: 0.02em !important;
  line-height: 1.02 !important;
  margin: 0 !important;
}

.hero-title-line {
  display: block !important;
  color: var(--gi-navy) !important;
  font-family: var(--gi-display-font) !important;
  font-size: clamp(1.95rem, 4.3vw, 3.65rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.hero-title-temple {
  font-size: clamp(2.2rem, 5vw, 4.25rem) !important;
  letter-spacing: 0.11em !important;
}

/* Make scroll count visible without making it loud. */
.scroll-count-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  gap: 0.45rem !important;
  margin: 0 auto 0.25rem !important;
  padding: 0.48rem 0.9rem !important;
  border: 1px solid rgba(216,187,118,0.84) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.84), transparent 7rem),
    rgba(255,250,241,0.92) !important;
  color: var(--gi-navy) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.04em !important;
  box-shadow:
    0 0 0 1px rgba(216,187,118,0.26),
    0 6px 14px rgba(22,32,51,0.08),
    inset 0 1px 0 rgba(255,255,255,0.78) !important;
}

.scroll-count-badge span {
  min-width: 1.4rem !important;
  display: inline-grid !important;
  place-items: center !important;
  color: var(--gi-crimson) !important;
  font-family: var(--gi-display-font) !important;
  font-size: 1.1rem !important;
}

/* Lower note should be text-only now; quill remains in upload area. */
.scroll-footer-note {
  grid-template-columns: 1fr !important;
  text-align: center !important;
}

.scroll-footer-note .scroll-note-icon {
  display: none !important;
}

/* Keep the upload quill as the only quill visual. */
.upload-quill {
  margin-bottom: 0.15rem !important;
}

@media (max-width: 560px) {
  .hero-title-line {
    font-size: clamp(1.65rem, 9vw, 2.65rem) !important;
    letter-spacing: 0.055em !important;
  }

  .hero-title-temple {
    font-size: clamp(1.95rem, 10vw, 3.1rem) !important;
    letter-spacing: 0.085em !important;
  }

  .scroll-count-badge {
    width: fit-content !important;
    max-width: 100% !important;
    font-size: 0.82rem !important;
  }
}


/* Phase 10.10L: approved painterly atmosphere background */
body::before,
body::after,
main.temple-shell::before,
main.temple-shell::after {
  display: none !important;
}

body {
  background-color: #edf3f8 !important;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.18) 0%,
      rgba(255, 250, 240, 0.10) 24%,
      rgba(237, 243, 248, 0.22) 62%,
      rgba(246, 240, 230, 0.18) 100%
    ),
    url("/static/img/temple-atmosphere-bg.webp?v=1") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
}

.temple-nav {
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.94), transparent 16rem),
    linear-gradient(180deg, rgba(255,249,238,0.94), rgba(244,234,219,0.92)) !important;
  backdrop-filter: blur(4px);
}

.temple-card {
  background: rgba(255, 250, 241, 0.94) !important;
  backdrop-filter: blur(2px);
}

.temple-landing-hero h1 {
  text-shadow:
    0 2px 0 rgba(255,255,255,0.65),
    0 10px 26px rgba(255,255,255,0.88) !important;
}

.temple-landing-hero p {
  text-shadow: 0 1px 0 rgba(255,255,255,0.78);
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll !important;
    background-position: center top !important;
  }
}

@media (max-width: 560px) {
  body {
    background-size: auto 900px !important;
    background-position: center top !important;
  }
}

/* Phase 10.10M: oracle identity card art */

.voice-card {
  grid-template-columns: 176px 1fr !important;
  min-height: 175px !important;
  overflow: hidden !important;
}

.voice-icon {
  width: 166px !important;
  height: 166px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 18px !important;
  border: 1px solid rgba(216,187,118,0.70) !important;
  box-shadow:
    0 0 0 1px rgba(216,187,118,0.30),
    0 8px 18px rgba(22,32,51,0.12),
    inset 0 1px 0 rgba(255,255,255,0.70) !important;
  background: rgba(255,250,241,0.92) !important;
}

.voice-card.is-selected .voice-icon {
  border-color: rgba(216,187,118,0.96) !important;
  box-shadow:
    0 0 0 1px rgba(216,187,118,0.46),
    0 10px 22px rgba(22,32,51,0.16) !important;
}

.voice-copy {
  align-self: center !important;
}

@media (max-width: 900px) {
  .voice-card {
    grid-template-columns: 150px 1fr !important;
    min-height: 155px !important;
  }

  .voice-icon {
    width: 142px !important;
    height: 142px !important;
  }
}

@media (max-width: 560px) {
  .voice-card {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .voice-icon {
    width: min(220px, 82vw) !important;
    height: min(220px, 82vw) !important;
  }

  .voice-copy {
    text-align: center !important;
  }
}

/* Phase 10.10N: gold trim polish pass */

/* Stronger gold framing on major cards */
.temple-card {
  border: 1px solid rgba(216, 187, 118, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(168, 132, 58, 0.18),
    0 0 0 3px rgba(255, 245, 220, 0.34),
    0 18px 34px rgba(20, 31, 49, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.78),
    inset 0 0 0 1px rgba(224, 201, 135, 0.22) !important;
}

/* Richer trim on top banners */
.oracle-banner,
.scroll-banner {
  border-bottom: 1px solid rgba(229, 206, 143, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(110, 79, 22, 0.24) !important;
}

/* Divider lines feel more like gilt trim */
.nav-cross span,
.hero-divider span,
.gold-rule span,
.choice-label span,
.temple-statement-rule,
.footer-ornament span {
  height: 1.5px !important;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(159,119,51,0.38) 14%,
      rgba(224,201,135,0.98) 50%,
      rgba(159,119,51,0.38) 86%,
      transparent 100%
    ) !important;
  box-shadow: 0 0 6px rgba(224, 201, 135, 0.22) !important;
}

/* Section ornament gets a little more definition */
.footer-ornament b {
  color: #d9bb75 !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.45),
    0 0 10px rgba(217,187,117,0.18) !important;
}

/* Voice cards feel more premium */
.voice-card {
  border: 1px solid rgba(216, 187, 118, 0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 8px 22px rgba(20, 31, 49, 0.06) !important;
}

.voice-card.is-selected {
  border-color: rgba(224, 201, 135, 0.96) !important;
  box-shadow:
    0 0 0 1px rgba(224, 201, 135, 0.30),
    0 0 0 3px rgba(255, 245, 220, 0.22),
    0 10px 24px rgba(20, 31, 49, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.78) !important;
}

/* Oracle images gain a subtle gilt surround */
.voice-icon {
  border: 1px solid rgba(216, 187, 118, 0.86) !important;
  box-shadow:
    0 0 0 1px rgba(168,132,58,0.14),
    0 0 0 3px rgba(255,248,229,0.22),
    0 10px 18px rgba(20,31,49,0.10) !important;
}

/* Input edges slightly warmer */
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
select {
  border-color: rgba(208, 180, 116, 0.72) !important;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.72),
    0 0 0 1px rgba(255,245,220,0.12) !important;
}

/* Primary buttons get richer gilt edges */
.oracle-actions button,
.upload-submit,
button[type="submit"] {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 0 1px rgba(216,187,118,0.36),
    0 6px 14px rgba(20,31,49,0.12) !important;
}

/* Footer band top edge */
.temple-footer,
footer {
  box-shadow: inset 0 1px 0 rgba(224, 201, 135, 0.32) !important;
}

/* Phase 10.10O: fleur center ornament replacement */

/* Replace the center footer ornament glyph with an actual fleur asset */
.footer-ornament b {
  display: inline-block !important;
  width: 56px !important;
  height: 32px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-image: url("/static/img/fleur-center-mark.svg?v=1") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  vertical-align: middle !important;
  transform: translateY(1px);
}

/* Give it slightly more room so it reads as intentional */
.footer-ornament {
  gap: 0.9rem !important;
}

/* Phase 10.10P: approved fleur divider asset */

.gold-rule b,
.hero-divider b {
  width: 210px !important;
  height: 42px !important;
  display: block !important;
  background-image: url("/static/img/fleur-divider-card.webp?v=1") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
}

.footer-ornament b {
  display: inline-block !important;
  width: 156px !important;
  height: 42px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-image: url("/static/img/fleur-divider-footer.webp?v=1") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
}

@media (max-width: 700px) {
  .gold-rule b,
  .hero-divider b {
    width: 150px !important;
    height: 32px !important;
  }

  .footer-ornament b {
    width: 128px !important;
    height: 34px !important;
  }
}

/* Phase 10.10Q: clean fleur no dark box */

.gold-rule b,
.hero-divider b {
  background-image: url("/static/img/fleur-divider-clean-card.webp?v=1") !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.footer-ornament b {
  background-image: url("/static/img/fleur-divider-clean-footer.webp?v=1") !important;
  background-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* Phase 10.10R: crisp fleur divider asset */

.gold-rule b,
.hero-divider b {
  width: 220px !important;
  height: 42px !important;
  background-image: url("/static/img/fleur-divider-crisp-card.webp?v=1") !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: none !important;
}

.footer-ornament b {
  display: inline-block !important;
  width: 168px !important;
  height: 42px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-image: url("/static/img/fleur-divider-crisp-footer.webp?v=1") !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

@media (max-width: 700px) {
  .gold-rule b,
  .hero-divider b {
    width: 155px !important;
    height: 32px !important;
  }

  .footer-ornament b {
    width: 132px !important;
    height: 34px !important;
  }
}

/* Phase 10.10S: final no-text fleur divider */

.gold-rule b,
.hero-divider b {
  width: 220px !important;
  height: 42px !important;
  background-image: url("/static/img/fleur-divider-final-card.webp?v=1") !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: none !important;
}

.footer-ornament b {
  display: inline-block !important;
  width: 168px !important;
  height: 42px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background-image: url("/static/img/fleur-divider-final-footer.webp?v=1") !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

@media (max-width: 700px) {
  .gold-rule b,
  .hero-divider b {
    width: 155px !important;
    height: 32px !important;
  }

  .footer-ornament b {
    width: 132px !important;
    height: 34px !important;
  }
}

/* Phase 10.10T: fleur vertical alignment tune */

.gold-rule b,
.hero-divider b {
  transform: translateY(-4px) !important;
}

.footer-ornament b {
  transform: translateY(-3px) !important;
}

@media (max-width: 700px) {
  .gold-rule b,
  .hero-divider b {
    transform: translateY(-3px) !important;
  }

  .footer-ornament b {
    transform: translateY(-2px) !important;
  }
}

/* Phase 10.11: back-page temple skin alignment */
body.temple-backdrop-page {
  min-height: 100vh;
  color: #3e2d25;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 216, 0.88), rgba(255, 244, 216, 0.35) 34%, rgba(62, 32, 23, 0.18) 100%),
    linear-gradient(180deg, rgba(42, 19, 14, 0.18), rgba(246, 236, 220, 0.9)),
    url("/static/img/temple-atmosphere-bg.webp?v=1") center top / cover fixed no-repeat,
    #f6ecdc;
}

body.temple-backdrop-page .temple-page-shell,
body.temple-backdrop-page .temple-admin-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 42px) 0 48px;
}

body.temple-backdrop-page .temple-admin-shell {
  width: min(1280px, calc(100% - 28px));
}

body.temple-backdrop-page .branding,
body.temple-backdrop-page .admin-header {
  position: relative;
  margin: 0 auto 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(146, 104, 42, 0.38);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.86), rgba(244, 223, 190, 0.72));
  box-shadow: 0 18px 48px rgba(52, 25, 16, 0.20);
  backdrop-filter: blur(8px);
}

body.temple-backdrop-page .brand-lockup {
  display: inline-block;
  color: #6f1f18;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 245, 220, 0.65);
}

body.temple-backdrop-page .temple-back-cross {
  max-width: 420px;
  margin: 10px auto 0;
}

body.temple-backdrop-page .support-note,
body.temple-backdrop-page .support-card,
body.temple-backdrop-page .account-card,
body.temple-backdrop-page .admin-panel,
body.temple-backdrop-page .summary-card,
body.temple-backdrop-page .metric-card,
body.temple-backdrop-page .result-card,
body.temple-backdrop-page .detail-card,
body.temple-backdrop-page .action-card {
  border: 1px solid rgba(146, 104, 42, 0.32);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.92), rgba(247, 229, 199, 0.82));
  box-shadow: 0 14px 34px rgba(61, 31, 18, 0.14);
  backdrop-filter: blur(6px);
}

body.temple-backdrop-page .support-note,
body.temple-backdrop-page .support-card,
body.temple-backdrop-page .account-card {
  padding: clamp(16px, 3vw, 24px);
}

body.temple-backdrop-page h1,
body.temple-backdrop-page h2,
body.temple-backdrop-page h3 {
  color: #5f201b;
}

body.temple-backdrop-page .support-cta-row,
body.temple-backdrop-page .support-actions {
  gap: 10px;
}

body.temple-backdrop-page .button-link,
body.temple-backdrop-page .support-actions button,
body.temple-backdrop-page .admin-console button,
body.temple-backdrop-page .menu-section button {
  border: 1px solid rgba(255, 226, 165, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, #8f2b22, #651a17);
  color: #fff8e8;
  box-shadow: 0 8px 18px rgba(77, 20, 14, 0.18);
}

body.temple-backdrop-page .button-link.secondary {
  background: rgba(255, 248, 230, 0.56);
  color: #5f201b;
  border-color: rgba(146, 104, 42, 0.38);
}

body.temple-backdrop-page .main-menu {
  background: rgba(255, 248, 230, 0.96);
  border-color: rgba(146, 104, 42, 0.38);
}

body.temple-backdrop-page .account-kv {
  border-bottom-color: rgba(146, 104, 42, 0.22);
}

body.temple-backdrop-page .admin-panel {
  padding: clamp(14px, 2vw, 20px);
}

body.temple-backdrop-page .admin-console input,
body.temple-backdrop-page .admin-console select,
body.temple-backdrop-page .admin-console textarea {
  border: 1px solid rgba(146, 104, 42, 0.32);
  border-radius: 10px;
  background: rgba(255, 252, 244, 0.9);
  color: #3e2d25;
}

body.temple-backdrop-page .admin-console pre {
  background: rgba(255, 248, 230, 0.72);
  border: 1px solid rgba(146, 104, 42, 0.18);
}

body.temple-backdrop-page .temple-back-footer {
  margin-top: 32px;
}

@media (max-width: 720px) {
  body.temple-backdrop-page .temple-page-shell,
  body.temple-backdrop-page .temple-admin-shell {
    width: min(100% - 18px, 1120px);
    padding-top: 12px;
  }

  body.temple-backdrop-page .branding,
  body.temple-backdrop-page .admin-header {
    border-radius: 18px;
  }

  body.temple-backdrop-page .support-note,
  body.temple-backdrop-page .support-card,
  body.temple-backdrop-page .account-card,
  body.temple-backdrop-page .admin-panel {
    border-radius: 16px;
  }
}

/* Phase 10.11.1: support modal, back-page menu, CTA, and voice selection hotfix */

/* Back-page hamburger must float above the second card/section. */
body.temple-backdrop-page .temple-page-shell,
body.temple-backdrop-page .branding,
body.temple-backdrop-page .support-hero,
body.temple-backdrop-page .about-hero,
body.temple-backdrop-page .account-hero {
  overflow: visible !important;
}

body.temple-backdrop-page .branding {
  z-index: 250 !important;
}

body.temple-backdrop-page .header-actions {
  z-index: 12000 !important;
}

body.temple-backdrop-page .main-menu {
  z-index: 12001 !important;
  box-shadow: 0 18px 36px rgba(42, 20, 12, 0.28) !important;
}

body.temple-backdrop-page .branding .main-menu.show,
body.temple-backdrop-page .branding .main-menu.open,
body.temple-backdrop-page .branding .main-menu.active,
body.temple-backdrop-page .branding .header-actions.open .main-menu {
  display: flex !important;
  flex-direction: column !important;
}

/* Center the hero/support CTA rows and make the language feel intentional. */
body.temple-backdrop-page .support-cta-row {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

body.temple-backdrop-page .support-cta-row .button-link {
  min-width: min(220px, 100%) !important;
  text-align: center !important;
}

/* Homepage support modal temple skin. */
#supportModal.modal {
  z-index: 6000 !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 244, 216, 0.20), transparent 34%),
    rgba(28, 18, 14, 0.62) !important;
  backdrop-filter: blur(3px);
}

#supportModal .support-modal-content {
  position: relative !important;
  width: min(960px, calc(100vw - 24px)) !important;
  max-width: 960px !important;
  max-height: calc(100vh - 32px) !important;
  margin: clamp(12px, 4vh, 34px) auto !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  color: #3e2d25 !important;
  border: 1px solid rgba(216, 187, 118, 0.74) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 250, 236, 0.98), rgba(255, 245, 224, 0.88) 36%, rgba(242, 222, 187, 0.92) 100%),
    rgba(255, 248, 232, 0.96) !important;
  box-shadow:
    0 24px 70px rgba(24, 13, 8, 0.38),
    0 0 0 3px rgba(255, 245, 220, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

#supportModal .support-modal-content .close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  color: #6f1f18 !important;
  background: rgba(255, 248, 230, 0.86) !important;
  border: 1px solid rgba(146, 104, 42, 0.32) !important;
}

#supportModal .support-modal-content h2 {
  color: #5f201b !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  margin: 0.35rem 2.5rem 0.6rem !important;
}

#supportModal #supportStatusLine {
  max-width: 720px !important;
  margin: 0 auto 1rem !important;
  color: #60483a !important;
}

#supportModal .profile-summary {
  border: 1px solid rgba(146, 104, 42, 0.28) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  margin: 12px auto 18px !important;
  max-width: 760px !important;
  background: rgba(255, 250, 238, 0.72) !important;
  color: #4a382d !important;
}

#supportModal .support-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)) !important;
  gap: 14px !important;
}

#supportModal .support-card {
  border: 1px solid rgba(216, 187, 118, 0.58) !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(247, 229, 199, 0.86)) !important;
  box-shadow: 0 12px 26px rgba(61, 31, 18, 0.12) !important;
}

#supportModal .support-card h3 {
  color: #5f201b !important;
}

#supportModal .support-actions button,
#supportModal .support-checkout-btn,
#supportModal #templeContributionBtn {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 226, 165, 0.48) !important;
  background: linear-gradient(180deg, #8f2b22, #651a17) !important;
  color: #fff8e8 !important;
  box-shadow: 0 8px 18px rgba(77, 20, 14, 0.16) !important;
}

#supportModal .support-checkout-btn:disabled {
  opacity: 0.56 !important;
  cursor: not-allowed !important;
}

/* Voice cards: no red hover wash. Selection is champagne/gold, names stay readable. */
.voice-card {
  position: relative !important;
  color: #372820 !important;
}

.voice-card:hover,
.voice-card:focus-visible {
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 239, 202, 0.92)) !important;
  border-color: rgba(224, 201, 135, 0.94) !important;
  color: #372820 !important;
  box-shadow:
    0 0 0 1px rgba(224, 201, 135, 0.24),
    0 10px 24px rgba(20, 31, 49, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  transform: translateY(-1px);
}

.voice-card:hover .voice-copy strong,
.voice-card:focus-visible .voice-copy strong,
.voice-card.is-selected .voice-copy strong,
.voice-card[aria-pressed="true"] .voice-copy strong {
  color: #6f1f18 !important;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.72) !important;
}

.voice-card:hover .voice-copy em,
.voice-card:hover .voice-copy small,
.voice-card:focus-visible .voice-copy em,
.voice-card:focus-visible .voice-copy small,
.voice-card.is-selected .voice-copy em,
.voice-card.is-selected .voice-copy small,
.voice-card[aria-pressed="true"] .voice-copy em,
.voice-card[aria-pressed="true"] .voice-copy small {
  color: #4c3a2d !important;
}

.voice-card.is-selected,
.voice-card[aria-pressed="true"] {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(180deg, rgba(255, 247, 219, 0.98), rgba(242, 218, 169, 0.92)) !important;
  border-color: rgba(195, 151, 58, 0.98) !important;
  box-shadow:
    0 0 0 2px rgba(195, 151, 58, 0.30),
    0 0 0 5px rgba(255, 245, 220, 0.34),
    0 12px 28px rgba(20, 31, 49, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

.voice-card.is-selected::after,
.voice-card[aria-pressed="true"]::after {
  content: "Selected";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(195, 151, 58, 0.42);
  background: rgba(255, 250, 238, 0.92);
  color: #5f201b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(61, 31, 18, 0.12);
}

@media (max-width: 560px) {
  .voice-card.is-selected::after,
  .voice-card[aria-pressed="true"]::after {
    top: 10px;
    right: 10px;
    font-size: 0.66rem;
  }

  #supportModal .support-modal-content {
    border-radius: 20px !important;
  }
}

/* Phase 10.11.2: ornament reduction, voice message cleanup, and clean scroll upload */

/* Keep the selected badge on Hathor/Moses; remove the redundant message below them. */
.voice-choice-message {
  display: none !important;
}

/* Homepage: remove the upper fleur under "Welcome to Your Temple" and make it a stronger gold line. */
.temple-landing-hero .hero-divider.hero-divider-line-only {
  width: min(420px, 74vw);
  max-width: 420px;
  margin: 16px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.temple-landing-hero .hero-divider.hero-divider-line-only b {
  display: none !important;
}

.temple-landing-hero .hero-divider.hero-divider-line-only span {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(210, 165, 67, 0.92), rgba(255, 235, 174, 0.95), rgba(210, 165, 67, 0.92), transparent);
  box-shadow: 0 0 12px rgba(210, 165, 67, 0.32);
}

/* Scroll upload: hide native mechanical file field and use one clean chooser/upload button. */
#scroll {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.upload-zone[role="button"] {
  cursor: pointer;
}

.upload-zone[role="button"]:focus-visible {
  outline: 3px solid rgba(210, 165, 67, 0.62);
  outline-offset: 4px;
}

.scroll-file-status {
  max-width: min(620px, 92%);
  margin: 10px auto 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(210, 165, 67, 0.34);
  background: rgba(255, 250, 236, 0.74);
  color: #5f201b;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
  overflow-wrap: anywhere;
}

.scroll-file-status:empty {
  display: none;
}

.scroll-form .upload-submit {
  min-width: min(240px, 92%);
}

.scroll-form.has-selected-file .upload-submit {
  box-shadow:
    0 0 0 2px rgba(210, 165, 67, 0.22),
    0 10px 24px rgba(77, 20, 14, 0.18);
}

/* Back pages: keep the top Return-to-Temple cross, hide decorative section crosses. */
body.temple-backdrop-page .branding > .temple-back-cross {
  display: flex !important;
}

body.temple-backdrop-page main section .nav-cross:not(.temple-back-cross),
body.temple-backdrop-page .support-note .nav-cross:not(.temple-back-cross),
body.temple-backdrop-page .support-card .nav-cross:not(.temple-back-cross),
body.temple-backdrop-page .account-card .nav-cross:not(.temple-back-cross),
body.temple-backdrop-page .about-grid .nav-cross:not(.temple-back-cross),
body.temple-backdrop-page .about-card .nav-cross:not(.temple-back-cross),
body.temple-backdrop-page .section-cross,
body.temple-backdrop-page .card-cross,
body.temple-backdrop-page .title-cross {
  display: none !important;
}

/* Phase 10.11.3: correct back-page cross hierarchy and homepage hero line */

/* Homepage: the upper ornament becomes a clean, stronger gold line. */
.hero-divider.hero-divider-line-only {
  width: min(460px, 76vw) !important;
  max-width: 460px !important;
  margin: 16px auto 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

.hero-divider.hero-divider-line-only b,
.hero-divider.hero-divider-line-only strong {
  display: none !important;
}

.hero-divider.hero-divider-line-only span {
  display: block !important;
  flex: 1 1 auto !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 124, 31, 0.72),
    rgba(255, 232, 159, 0.98),
    rgba(176, 124, 31, 0.72),
    transparent
  ) !important;
  box-shadow:
    0 0 10px rgba(210, 165, 67, 0.34),
    0 1px 0 rgba(255, 250, 230, 0.62) !important;
}

/* Back pages: hide all decorative nav crosses by default. */
body.temple-backdrop-page .nav-cross {
  display: none !important;
}

/* Back pages: restore ONLY the protected top header cross divider. */
body.temple-backdrop-page .branding > .nav-cross.temple-back-cross {
  display: flex !important;
  width: min(420px, 72vw) !important;
  max-width: 420px !important;
  margin: 10px auto 2px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.temple-backdrop-page .branding > .nav-cross.temple-back-cross span {
  display: block !important;
  flex: 1 1 auto !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 124, 31, 0.72),
    rgba(255, 232, 159, 0.98),
    rgba(176, 124, 31, 0.72),
    transparent
  ) !important;
  box-shadow:
    0 0 10px rgba(210, 165, 67, 0.34),
    0 1px 0 rgba(255, 250, 230, 0.62) !important;
}

body.temple-backdrop-page .branding > .nav-cross.temple-back-cross strong {
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  color: #7a2019 !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
  border: 1px solid rgba(210, 165, 67, 0.52) !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, rgba(255, 249, 225, 0.98), rgba(236, 204, 137, 0.86)) !important;
  box-shadow:
    0 0 0 4px rgba(255, 245, 220, 0.32),
    0 6px 14px rgba(61, 31, 18, 0.16) !important;
}

/* Back pages: suppress lower/body crosses even if they use a different class name. */
body.temple-backdrop-page main section .nav-cross,
body.temple-backdrop-page main article .nav-cross,
body.temple-backdrop-page .support-hero .nav-cross,
body.temple-backdrop-page .about-hero .nav-cross,
body.temple-backdrop-page .account-hero .nav-cross,
body.temple-backdrop-page .support-note .nav-cross,
body.temple-backdrop-page .support-card .nav-cross,
body.temple-backdrop-page .account-card .nav-cross,
body.temple-backdrop-page .about-grid .nav-cross,
body.temple-backdrop-page .about-card .nav-cross,
body.temple-backdrop-page .section-cross,
body.temple-backdrop-page .card-cross,
body.temple-backdrop-page .title-cross,
body.temple-backdrop-page .heading-cross,
body.temple-backdrop-page .ornament-cross,
body.temple-backdrop-page .cross-divider,
body.temple-backdrop-page .temple-section-cross {
  display: none !important;
}

/* Phase 10.11.4: enlarge protected header cross and suppress heading pseudo-crosses */

/* Keep the top Return-to-Temple cross only, but make the encircled mark feel intentional. */
body.temple-backdrop-page .branding > .nav-cross.temple-back-cross {
  display: flex !important;
  width: min(500px, 78vw) !important;
  max-width: 500px !important;
  margin: 12px auto 6px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
}

body.temple-backdrop-page .branding > .nav-cross.temple-back-cross span {
  display: block !important;
  flex: 1 1 auto !important;
  height: 2px !important;
  min-width: 42px !important;
  border-radius: 999px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 124, 31, 0.78),
    rgba(255, 232, 159, 1),
    rgba(176, 124, 31, 0.78),
    transparent
  ) !important;
  box-shadow:
    0 0 11px rgba(210, 165, 67, 0.38),
    0 1px 0 rgba(255, 250, 230, 0.66) !important;
}

body.temple-backdrop-page .branding > .nav-cross.temple-back-cross strong {
  display: inline-flex !important;
  width: 48px !important;
  height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 48px !important;
  color: #7a2019 !important;
  font-size: 1.62rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  border: 1.5px solid rgba(210, 165, 67, 0.62) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 253, 238, 1), rgba(242, 213, 153, 0.92) 70%, rgba(205, 158, 62, 0.76)) !important;
  box-shadow:
    0 0 0 4px rgba(255, 245, 220, 0.36),
    0 7px 16px rgba(61, 31, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.75) !important;
}

/*
  The remaining lower crosses are not showing up in template grep,
  so they are likely CSS pseudo-elements on headings/titles/cards.
  Keep the real protected top cross above, but suppress generated crosses below it.
*/
body.temple-backdrop-page h1::before,
body.temple-backdrop-page h1::after,
body.temple-backdrop-page h2::before,
body.temple-backdrop-page h2::after,
body.temple-backdrop-page h3::before,
body.temple-backdrop-page h3::after,
body.temple-backdrop-page .crossed-title::before,
body.temple-backdrop-page .crossed-title::after,
body.temple-backdrop-page .temple-subtitle::before,
body.temple-backdrop-page .temple-subtitle::after,
body.temple-backdrop-page .support-note::before,
body.temple-backdrop-page .support-note::after,
body.temple-backdrop-page .support-card::before,
body.temple-backdrop-page .support-card::after,
body.temple-backdrop-page .account-grid::before,
body.temple-backdrop-page .account-grid::after,
body.temple-backdrop-page .admin-panel::before,
body.temple-backdrop-page .admin-panel::after,
body.temple-backdrop-page .summary-card::before,
body.temple-backdrop-page .summary-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Mobile: still larger than the old mark, but not oversized. */
@media (max-width: 560px) {
  body.temple-backdrop-page .branding > .nav-cross.temple-back-cross {
    width: min(430px, 78vw) !important;
    gap: 12px !important;
  }

  body.temple-backdrop-page .branding > .nav-cross.temple-back-cross strong {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    font-size: 1.42rem !important;
  }
}



/* Phase 11.0: PWA shell and iPhone safe-area readiness */
:root {
  --gi-safe-top: env(safe-area-inset-top, 0px);
  --gi-safe-right: env(safe-area-inset-right, 0px);
  --gi-safe-bottom: env(safe-area-inset-bottom, 0px);
  --gi-safe-left: env(safe-area-inset-left, 0px);
}

/* Prefer dynamic viewport height where supported while preserving older fallback behavior. */
html,
body {
  min-height: 100vh;
}

@supports (height: 100dvh) {
  html,
  body {
    min-height: 100dvh;
  }
}

/* Compensate when iOS Home Screen / Safari safe areas are active. */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: var(--gi-safe-top);
    padding-right: var(--gi-safe-right);
    padding-bottom: var(--gi-safe-bottom);
    padding-left: var(--gi-safe-left);
    box-sizing: border-box;
  }

  .temple-nav,
  .branding {
    box-sizing: border-box;
  }

  .modal {
    box-sizing: border-box;
    padding-top: max(1rem, var(--gi-safe-top));
    padding-right: max(1rem, var(--gi-safe-right));
    padding-bottom: max(1rem, var(--gi-safe-bottom));
    padding-left: max(1rem, var(--gi-safe-left));
  }

  .modal-content {
    max-height: calc(100vh - 32px - var(--gi-safe-top) - var(--gi-safe-bottom)) !important;
  }
}

@supports (height: 100dvh) {
  .modal-content {
    max-height: calc(100dvh - 32px - var(--gi-safe-top) - var(--gi-safe-bottom)) !important;
  }
}

@media (max-width: 720px) {
  .oracle-actions button,
  .upload-submit,
  .menu-toggle,
  .main-menu button,
  .footer-links button,
  .support-actions button,
  .support-checkout-btn,
  .button-link {
    min-height: 44px;
  }

  textarea#seekerInput.oracle-input {
    font-size: 16px;
  }
}



/* Phase 11.0.2: guided mobile voice and Home Screen nudge */
.voice-status-panel {
  width: min(760px, 100%);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(179,138,60,0.62);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.88), transparent 12rem),
    rgba(255,252,247,0.92);
  color: var(--gi-slate);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.voice-status-panel[hidden],
.install-nudge[hidden] {
  display: none !important;
}

.voice-status-panel strong {
  display: block;
  color: var(--gi-navy);
  font-family: var(--gi-display-font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-status-panel span {
  display: block;
  margin-top: 0.22rem;
  color: var(--gi-dark-silver);
  font-size: 0.92rem;
  line-height: 1.42;
}

.voice-status-panel.is-listening {
  border-color: rgba(152,7,22,0.48);
  box-shadow: 0 0 0 1px rgba(152,7,22,0.12), inset 0 1px 0 rgba(255,255,255,0.82);
}

.voice-status-panel.is-working {
  border-color: rgba(10,58,104,0.42);
}

.voice-status-panel.is-speaking {
  border-color: rgba(216,187,118,0.92);
  box-shadow: 0 0 0 1px rgba(216,187,118,0.28), 0 10px 24px rgba(22,32,51,0.10);
}

.voice-status-panel.is-error {
  border-color: rgba(152,7,22,0.72);
  background: rgba(255,246,244,0.96);
}

.voice-status-panel.is-notice,
.voice-status-panel.is-ready {
  border-color: rgba(179,138,60,0.66);
}

.oracle-replay-button {
  min-height: 44px;
  margin: 0.8rem auto 0;
  padding: 0.74rem 1rem;
  border-radius: 7px;
  border: 1px solid rgba(216,187,118,0.84);
  background: linear-gradient(180deg, var(--gi-navy), var(--gi-navy-deep));
  color: #fff;
  font-family: var(--gi-display-font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.install-nudge {
  width: min(760px, 100%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
  margin: 0.1rem auto 0;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(179,138,60,0.55);
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 50%, rgba(216,187,118,0.12), transparent 9rem),
    rgba(255,250,241,0.94);
  text-align: left;
}

.install-nudge-copy {
  display: grid;
  gap: 0.18rem;
}

.install-nudge-copy strong {
  color: var(--gi-navy);
  font-family: var(--gi-display-font);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.install-nudge-copy span {
  color: var(--gi-dark-silver);
  font-size: 0.9rem;
  line-height: 1.42;
}

.install-nudge-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.install-nudge-actions button {
  min-height: 40px;
  margin: 0;
  padding: 0.58rem 0.72rem;
  border-radius: 7px;
  border: 1px solid rgba(216,187,118,0.74);
  background: rgba(255,252,247,0.92);
  color: var(--gi-navy);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#installNudgeHelpBtn {
  background: linear-gradient(180deg, var(--gi-navy), var(--gi-navy-deep));
  color: #fff;
}

@media (max-width: 720px) {
  .voice-status-panel,
  .install-nudge {
    width: 100%;
  }

  .install-nudge {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .install-nudge-actions {
    justify-content: center;
  }

  .install-nudge-actions button {
    flex: 1 1 140px;
    min-height: 44px;
  }
}


/* Phase 11.2C: God Incorporated circular brand mark and deep-blue/gold nav polish */
:root {
  --godinc-blue: #0a3a68;
  --godinc-blue-deep: #062744;
  --godinc-blue-ink: #082f52;
  --godinc-gold: #c49a3a;
  --godinc-gold-soft: #d6b36a;
  --godinc-parchment: #f8f1e6;
}

.brand-lockup,
.branding .brand-home-link.brand-lockup {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.25vw, 0.8rem);
  color: var(--godinc-blue) !important;
  text-decoration: none !important;
  letter-spacing: 0.075em;
  text-transform: lowercase;
  line-height: 1;
}

.godinc-brand-mark {
  width: clamp(38px, 6vw, 62px);
  height: clamp(38px, 6vw, 62px);
  flex: 0 0 auto;
  display: inline-block;
  filter: drop-shadow(0 2px 2px rgba(6, 39, 68, 0.14));
}

.godinc-wordmark {
  color: var(--godinc-blue);
  font-family: var(--gi-brand-font);
  font-size: clamp(1.35rem, 4.2vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.075em;
  text-transform: lowercase;
  white-space: nowrap;
}

.brand-lockup:hover .godinc-wordmark,
.brand-lockup:focus-visible .godinc-wordmark {
  color: var(--godinc-blue-deep);
  text-shadow: 0 0 12px rgba(196, 154, 58, 0.22);
}

.nav-cross.brand-mark-divider,
body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.7rem, 3vw, 1.8rem) !important;
  margin: clamp(0.55rem, 2vw, 1.2rem) auto !important;
  width: min(760px, 92vw) !important;
  color: var(--godinc-gold) !important;
}

.nav-cross.brand-mark-divider span,
body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider span {
  display: block !important;
  flex: 1 1 auto !important;
  height: 1px !important;
  max-width: 260px !important;
  background: linear-gradient(90deg, transparent, var(--godinc-gold), transparent) !important;
  opacity: 0.92 !important;
}

.nav-cross.brand-mark-divider strong,
body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider strong {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: clamp(58px, 8vw, 86px) !important;
  height: clamp(58px, 8vw, 86px) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: radial-gradient(circle at center, rgba(248, 241, 230, 0.86), rgba(248, 241, 230, 0.32)) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: 0 8px 18px rgba(6, 39, 68, 0.12) !important;
}

.godinc-divider-mark {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.temple-footer .footer-links {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(196, 154, 58, 0.55);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(6, 39, 68, 0.98), rgba(10, 58, 104, 0.94)),
    var(--godinc-blue-deep);
  box-shadow:
    inset 0 0 0 1px rgba(248, 241, 230, 0.08),
    0 16px 34px rgba(6, 39, 68, 0.22);
}

.temple-footer .footer-links button {
  color: var(--godinc-gold-soft) !important;
  border-color: rgba(196, 154, 58, 0.42) !important;
  background: rgba(248, 241, 230, 0.05) !important;
  letter-spacing: 0.08em;
}

.temple-footer .footer-links button:hover,
.temple-footer .footer-links button:focus-visible {
  color: var(--godinc-parchment) !important;
  border-color: rgba(214, 179, 106, 0.78) !important;
  background: rgba(196, 154, 58, 0.16) !important;
}

@media (max-width: 700px) {
  .godinc-wordmark {
    font-size: clamp(1.1rem, 7vw, 1.8rem);
    letter-spacing: 0.045em;
  }

  .godinc-brand-mark {
    width: clamp(34px, 13vw, 48px);
    height: clamp(34px, 13vw, 48px);
  }

  .nav-cross.brand-mark-divider strong,
  body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider strong {
    width: 58px !important;
    height: 58px !important;
  }
}


/* Phase 11.2C.1: brand lockup scale + font-ready correction */
body,
button,
input,
textarea,
select {
  font-family: var(--gi-body-font);
}

.branding .brand-home-link.brand-lockup,
.brand-lockup {
  max-width: min(560px, 48vw);
  flex: 1 1 auto;
  gap: clamp(0.32rem, 0.85vw, 0.55rem);
}

.godinc-brand-mark {
  width: clamp(26px, 3.1vw, 40px);
  height: clamp(26px, 3.1vw, 40px);
}

.godinc-wordmark {
  font-family: var(--gi-brand-font);
  font-size: clamp(1.08rem, 2.25vw, 1.78rem);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.temple-nav .godinc-brand-mark {
  width: clamp(28px, 3.25vw, 42px);
  height: clamp(28px, 3.25vw, 42px);
}

.temple-nav .godinc-wordmark {
  font-size: clamp(1.15rem, 2.55vw, 1.95rem);
}

/* Header mark should read as a compact icon, not a giant divider. */
.branding > .nav-cross.brand-mark-divider {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 0.6rem !important;
  gap: 0 !important;
}

.branding > .nav-cross.brand-mark-divider span {
  display: none !important;
}

.branding > .nav-cross.brand-mark-divider strong {
  width: clamp(30px, 3.35vw, 44px) !important;
  height: clamp(30px, 3.35vw, 44px) !important;
  min-width: clamp(30px, 3.35vw, 44px) !important;
  box-shadow: 0 4px 10px rgba(6, 39, 68, 0.10) !important;
}

/* Back pages can keep the mark as ceremonial divider, but smaller. */
body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider {
  width: min(480px, 82vw) !important;
  margin: 0.45rem auto 0.7rem !important;
  gap: clamp(0.45rem, 1.6vw, 0.85rem) !important;
}

body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider span {
  display: block !important;
  max-width: 160px !important;
}

body.temple-backdrop-page .branding > .nav-cross.temple-back-cross.brand-mark-divider strong {
  width: clamp(40px, 5.2vw, 56px) !important;
  height: clamp(40px, 5.2vw, 56px) !important;
  min-width: clamp(40px, 5.2vw, 56px) !important;
}

/* Lower nav strip: preserve the dark-blue/gold treatment but reduce its bulk. */
.temple-footer .footer-links {
  width: min(880px, calc(100vw - 48px));
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
}

.temple-footer .footer-links button {
  padding: 0.45rem 0.72rem;
  font-size: clamp(0.74rem, 1.25vw, 0.9rem);
  letter-spacing: 0.075em;
}

/* Homepage: keep brand from overrunning welcome/user/menu area. */
.temple-nav {
  gap: clamp(0.45rem, 1vw, 0.9rem);
}

.temple-nav .brand-lockup {
  min-width: 0;
}

@media (max-width: 1100px) {
  .branding .brand-home-link.brand-lockup,
  .brand-lockup {
    max-width: min(520px, 54vw);
  }

  .godinc-wordmark,
  .temple-nav .godinc-wordmark {
    font-size: clamp(1.08rem, 3vw, 1.65rem);
  }

  .godinc-brand-mark,
  .temple-nav .godinc-brand-mark {
    width: clamp(26px, 4vw, 38px);
    height: clamp(26px, 4vw, 38px);
  }
}

@media (max-width: 760px) {
  .branding .brand-home-link.brand-lockup,
  .brand-lockup {
    max-width: 100%;
    flex: 1 1 100%;
    justify-content: center;
  }

  .godinc-wordmark,
  .temple-nav .godinc-wordmark {
    font-size: clamp(1.18rem, 8vw, 1.85rem);
  }

  .godinc-brand-mark,
  .temple-nav .godinc-brand-mark {
    width: clamp(30px, 12vw, 44px);
    height: clamp(30px, 12vw, 44px);
  }

  .branding > .nav-cross.brand-mark-divider {
    margin: 0.25rem auto !important;
  }

  .temple-footer .footer-links {
    width: min(94vw, 540px);
    padding: 0.55rem;
  }
}


/* Phase 11.2C.3: wordmark-only return link, standalone center mark */
.brand-lockup .godinc-brand-mark {
  display: none !important;
}

.branding .brand-home-link.brand-lockup,
.brand-lockup {
  gap: 0 !important;
  max-width: min(500px, 46vw);
}

.godinc-wordmark {
  display: inline-block;
  font-family: var(--gi-brand-font);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--godinc-blue);
}

.temple-nav .godinc-wordmark {
  font-size: clamp(1.25rem, 2.7vw, 2.05rem);
}

body.temple-backdrop-page .brand-lockup .godinc-wordmark {
  font-size: clamp(1.18rem, 2.4vw, 1.85rem);
}

/* Keep the standalone circular mark as the ceremonial center mark. */
.nav-cross.brand-mark-divider .godinc-divider-mark,
.temple-back-cross.brand-mark-divider .godinc-divider-mark {
  display: block !important;
}

@media (max-width: 760px) {
  .branding .brand-home-link.brand-lockup,
  .brand-lockup {
    max-width: 100%;
  }

  .temple-nav .godinc-wordmark,
  body.temple-backdrop-page .brand-lockup .godinc-wordmark {
    font-size: clamp(1.24rem, 8vw, 1.9rem);
  }
}


/* Phase 11.2C.4: Nunito Sans site typography harmonization */
html,
body {
  font-family: var(--gi-body-font);
  font-weight: 400;
}

body,
p,
li,
label,
small,
button,
input,
textarea,
select,
.modal,
.modal-content,
.support-note,
.support-card,
.account-card,
.account-kv,
.profile-summary,
.scroll-footer-note,
.temple-footer,
.main-menu,
.menu-section button,
.button-link {
  font-family: var(--gi-body-font);
}

/* Preserve the logo wordmark as the only Baloo-branded text treatment. */
.godinc-wordmark {
  font-family: var(--gi-brand-font) !important;
  font-weight: 400;
}

/* Bring headings closer to the rounded logo language without making them cartoonish. */
h1,
h2,
h3,
h4,
.temple-title,
.crossed-title,
.modal-content h2,
.support-card h3,
.support-note h2,
.account-card h2 {
  font-family: var(--gi-display-font);
  font-weight: 700;
  letter-spacing: 0.035em;
}

/* Keep the main Temple title ceremonial and spacious. */
.branding .temple-title,
.temple-title.crossed-title {
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Better match button/menu rhythm to the new secondary font. */
button,
.button-link,
.menu-section button,
.support-actions button,
.support-actions a {
  font-weight: 700;
  letter-spacing: 0.035em;
}

/* Body copy should soften slightly now that the brand is rounded. */
.support-note p,
.support-card p,
.about-card p,
.account-card p,
.modal-content p,
.temple-subtitle,
.scroll-footer-note {
  line-height: 1.62;
  font-weight: 400;
}

/* Small metadata/readout areas need clarity more than ceremony. */
.account-kv span,
.account-kv strong,
.support-price,
.profile-summary,
#supportStatusLine,
#voiceStatusText,
#installNudgeText {
  font-family: var(--gi-body-font);
}

/* Avoid over-spacing compact mobile text. */
@media (max-width: 760px) {
  h1,
  h2,
  h3,
  h4,
  .temple-title,
  .crossed-title,
  .modal-content h2,
  .support-card h3,
  .support-note h2 {
    letter-spacing: 0.02em;
  }

  button,
  .button-link,
  .menu-section button,
  .support-actions button,
  .support-actions a {
    letter-spacing: 0.02em;
  }
}


/* Phase 11.2E: isolated footer signature cleanup */
.temple-footer.gi-site-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 0.7rem !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 0.8rem !important;
  padding: 1rem 0.75rem !important;
  overflow: hidden !important;
  text-align: center !important;
  background: linear-gradient(180deg, var(--gi-navy), var(--gi-navy-deep)) !important;
  border-top: 1px solid rgba(216,187,118,0.62) !important;
}

.temple-footer.gi-site-footer .gi-footer-nav,
.temple-footer.gi-site-footer .footer-links {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: clamp(0.18rem, 1.7vw, 0.55rem) !important;
  width: min(100%, 420px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 0.25rem !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.temple-footer.gi-site-footer .footer-links button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0.52rem clamp(0.25rem, 1.7vw, 0.72rem) !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  font-size: clamp(0.68rem, 2.4vw, 0.86rem) !important;
  line-height: 1.12 !important;
  letter-spacing: clamp(0.015em, 0.5vw, 0.045em) !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.temple-footer.gi-site-footer .footer-links button:hover,
.temple-footer.gi-site-footer .footer-links button:focus-visible {
  color: #ffecc8 !important;
}

.gi-footer-signature {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  color: #d7dfeb !important;
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
}

.gi-footer-mark-tile {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(216,187,118,0.78) !important;
  background: radial-gradient(circle at 50% 42%, #fff7e5, #d9b96b 72%, #0a3a68 73%) !important;
  box-shadow: 0 0 0 2px rgba(255,245,220,0.16), 0 4px 10px rgba(0,0,0,0.20) !important;
}

.gi-footer-signature-mark {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

.gi-footer-signature-text {
  display: inline-block !important;
  color: #d7dfeb !important;
  max-width: 100% !important;
}

@media (max-width: 420px) {
  .temple-footer.gi-site-footer {
    gap: 0.75rem !important;
    padding: 0.95rem 0.45rem !important;
  }

  .temple-footer.gi-site-footer .gi-footer-nav,
  .temple-footer.gi-site-footer .footer-links {
    width: 100% !important;
    gap: 0.16rem !important;
    padding: 0 !important;
  }

  .temple-footer.gi-site-footer .footer-links button {
    padding: 0.48rem 0.18rem !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.01em !important;
  }

  .gi-footer-mark-tile {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }

  .gi-footer-signature-mark {
    width: 21px !important;
    height: 21px !important;
  }
}


/* Phase 11.2E.1: constrain centered footer to card width */
.temple-footer.gi-site-footer {
  width: min(910px, calc(100% - 1.5rem)) !important;
  max-width: 910px !important;
  margin: 0.8rem auto 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

@media (max-width: 560px) {
  .temple-footer.gi-site-footer {
    width: calc(100% - 0.4rem) !important;
    max-width: calc(100% - 0.4rem) !important;
    border-radius: 14px !important;
  }
}

/* v11.4D App Store typography contract
   Single source of truth for the final three-font system:
   - Baloo Chettan 2: brand wordmark / return links / dialog titles
   - Noto Sans Egyptian Hieroglyphs: large ceremonial display headings
   - Nunito Sans: body, UI, cards, buttons, forms, and readable copy
*/
html,
body,
p,
li,
label,
small,
button,
input,
textarea,
select,
.modal,
.modal-content,
.support-note,
.support-card,
.account-card,
.account-kv,
.profile-summary,
.scroll-footer-note,
.temple-footer,
.main-menu,
.menu-section button,
.button-link,
.support-actions button,
.support-actions a,
#supportStatusLine,
#voiceStatusText,
#installNudgeText {
  font-family: var(--gi-body-font) !important;
}

.godinc-wordmark,
.brand-home-link,
.brand-lockup,
.branding .brand-home-link.brand-lockup,
.temple-nav .godinc-wordmark,
body.temple-backdrop-page .brand-lockup .godinc-wordmark {
  font-family: var(--gi-brand-font) !important;
}

.temple-landing-hero h1,
.temple-landing-hero .hero-title-line,
.temple-landing-hero .hero-title-temple,
.support-hero h1,
.about-hero h1,
.account-hero h1,
.temple-title,
.crossed-title,
.temple-statement-line {
  font-family: var(--gi-display-font) !important;
  font-weight: 400;
}

.modal-content h2,
#feedbackTitle,
.support-modal h2,
#supportModal h2 {
  font-family: var(--gi-brand-font) !important;
  font-weight: 400;
}

.support-card h3,
.support-note h2,
.account-card h2,
.about-card h2 {
  font-family: var(--gi-display-font) !important;
  font-weight: 400;
}

code,
pre,
.admin-monospace,
.monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

/* v11.4F.1 privacy policy and footer link polish */
.privacy-shell {
  max-width: 980px;
}

.privacy-card {
  line-height: 1.68;
}

.privacy-card h2,
.privacy-card h3 {
  color: var(--gi-navy);
  margin-top: 1.35rem;
}

.privacy-card a,
.gi-footer-links a {
  color: var(--gi-crimson);
  font-weight: 700;
  text-decoration: none;
}

.privacy-card a:hover,
.gi-footer-links a:hover {
  text-decoration: underline;
}

.gi-footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
  text-align: center;
}
