
/* 84000.org Modern v14 Clean CSS
   Clean rebuild: no sticky header, no login, readable for elderly,
   preserves existing class names from v7-v13.
*/

:root {
  --bg: #fbfaf0;
  --surface: #ffffff;
  --cream: #fff9e8;
  --green: #5f8f1c;
  --green-dark: #3f6f12;
  --green-soft: #eef7dd;
  --gold: #d7a72c;
  --gold-soft: #fff2c8;
  --blue-soft: #eaf7ff;
  --pink-soft: #fff0f6;
  --purple-soft: #f7efff;
  --brown: #744116;
  --ink: #28331f;
  --muted: #647052;
  --line: rgba(158, 141, 78, .28);
  --shadow: 0 14px 36px rgba(70, 96, 24, .10);
  --radius: 26px;
  --content: 1280px;
  --body-size: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(255, 223, 128, .25), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(172, 216, 112, .18), transparent 30%),
    linear-gradient(180deg, var(--bg), #fffef8 44%, #f5faee);
  font-family: "Sarabun", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: var(--body-size);
  line-height: 1.86;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: none; filter: brightness(.96); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.22; color: var(--green); }
p { margin-top: 0; }

.skip-link {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: #1e2d10;
  color: white;
  font-weight: 900;
}
.skip-link:focus { transform: none; }

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

/* Header: not sticky */
.site-header, .v11-header, .v9-site-header {
  position: static !important;
  top: auto !important;
  z-index: auto;
  background: rgba(255, 255, 252, .96);
  border-bottom: 1px solid rgba(213, 174, 73, .35);
  box-shadow: 0 8px 26px rgba(53, 78, 18, .08);
  padding: 0 !important;
  border-radius: 0 !important;
}

.v11-topbar, .v9-header-top, .v11-login {
  display: none !important;
}

.header-inner, .v9-header-inner, .v11-brandrow {
  width: min(calc(100% - 44px), var(--content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: center;
  padding: 15px 0 16px;
}

.brand, .v9-brand, .v11-brand {
  display: block;
  padding: 10px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffefb, #fbf6df);
  border: 1px solid rgba(214, 163, 41, .30);
  box-shadow: 0 10px 22px rgba(130, 104, 42, .08);
}

.brand-logo, .v9-brand-logo, .v11-brand-logo {
  display: block;
  width: 100%;
  max-width: 290px;
}

.site-nav, .v9-site-nav, .v11-mainnav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.site-nav a, .v9-site-nav a, .v11-mainnav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 17px;
  border: 1px solid rgba(143, 160, 88, .26);
  background: linear-gradient(180deg, #ffffff, #faf9ef);
  color: #6c5526;
  text-align: center;
  font-size: .98rem;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(80, 102, 28, .06);
}

.v11-mainnav a {
  flex-direction: column;
  gap: 4px;
  min-height: 74px;
}
.v11-mainnav span { font-size: 1.35rem; line-height: 1; }
.v11-mainnav em { font-style: normal; font-size: .94rem; line-height: 1.18; }

.site-nav a[aria-current="page"],
.v9-site-nav a[aria-current="page"],
.v11-mainnav a[aria-current="page"] {
  color: var(--green-dark);
  background: linear-gradient(180deg, #fbffe9, #eaf4c7);
  border-color: rgba(95, 143, 28, .42);
}

.sacred-namo {
  background: linear-gradient(90deg, #fff7d7, #f1f8df, #eaf7ff);
  border-bottom: 1px solid rgba(213, 174, 73, .30);
  color: #704415;
  text-align: center;
  padding: 12px 18px;
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.72;
}

/* Layout */
.v11-home, .home-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.v11-home > section,
.v11-home > .home-section,
.v11-home > .v11-values,
.v11-home > .v12-featured-buddha,
.home-section,
.v9-stats,
.v11-footer-inner {
  width: min(calc(100% - 44px), var(--content));
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.v11-hero {
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(480px, 1.08fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 10px;
}

.v11-hero-copy {
  align-self: center;
  padding: 38px 4px 30px 0;
}

.v11-kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-size: 1.08rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.v11-kicker:before {
  content: "";
  width: 36px; height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), rgba(214,163,41,.08));
}

.v11-hero h1, .home-hero h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 2px 0 #fff, 0 10px 30px rgba(95, 143, 28, .10);
}

.v11-subtitle, .v9-hero-subtitle {
  margin: .2em 0 .38em;
  color: var(--brown);
  font-size: clamp(1.45rem, 2.15vw, 2.3rem);
  line-height: 1.35;
  font-weight: 900;
}

.v11-description, .lead {
  color: #405031;
  font-size: 1.12rem;
  line-height: 1.86;
  font-weight: 650;
}

.v11-search, .v9-main-search {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  max-width: 760px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(116,158,40,.32);
  box-shadow: 0 14px 30px rgba(83,120,28,.12);
}
.v11-search input, .v9-main-search input[type="text"] {
  min-height: 54px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 18px;
}
.v11-search button, .v11-search input[type="submit"], .v9-main-search input[type="submit"] {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #9fcb3d, #60981b);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.v11-chip-row, .v9-popular-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
  color: #746b48;
  font-size: .98rem;
}
.v11-chip-row span, .v9-popular-links span { font-weight: 900; color: #7a6c39; }
.v11-chip-row a, .v9-popular-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(190,184,112,.35);
  color: #66653a;
}

/* Buddha image: crop lower hands area to avoid finger issues */
.v12-hero-art, .v11-hero-art {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,227,142,.65), transparent 32%),
    linear-gradient(180deg, #fffaf0 0%, #f6f1df 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(210,188,120,.25), 0 18px 38px rgba(130,105,45,.10);
  padding-top: 14px;
}

.v12-hero-figure {
  position: relative;
  margin: 0;
  width: min(100%, 540px);
  height: 505px;
  overflow: hidden;
  text-align: center;
}
.v12-hero-figure img {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto;
  filter: drop-shadow(0 22px 38px rgba(126,91,30,.18));
}
.v12-hero-figure figcaption {
  display: none;
}

/* Cards */
.v11-categories {
  padding-top: 24px;
  padding-bottom: 10px;
}
.v11-categories h2, .home-section > h2 {
  margin: 0 0 20px;
  color: var(--green);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  line-height: 1.22;
}
.v11-card-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.v11-card, .resource-card, .section-card {
  position: relative;
  display: block;
  min-height: 160px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(177,181,125,.36);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.v11-card:after, .resource-card:after {
  content: "";
  position: absolute;
  right: -28px; bottom: -32px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}
.v11-icon, .v9-card-icon {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 10px;
}
.v11-card strong, .resource-card strong, .section-card strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.34rem;
  line-height: 1.28;
  margin-bottom: 6px;
}
.v11-card small, .resource-card span, .section-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: #566047;
  font-size: 1rem;
  line-height: 1.68;
}
.tone-green, .resource-card:nth-child(6n+1), .section-card:nth-child(4n+1) { background: linear-gradient(180deg,#fff,#f2fae7); }
.tone-blue, .resource-card:nth-child(6n+2), .section-card:nth-child(4n+2) { background: linear-gradient(180deg,#fff,#eef6ff); }
.tone-sky, .resource-card:nth-child(6n+3), .section-card:nth-child(4n+3) { background: linear-gradient(180deg,#fff,#eef9ff); }
.tone-gold, .resource-card:nth-child(6n+4), .section-card:nth-child(4n+4) { background: linear-gradient(180deg,#fff,#fff4db); }
.tone-pink, .resource-card:nth-child(6n+5) { background: linear-gradient(180deg,#fff,#fff0f5); }
.tone-lotus, .resource-card:nth-child(6n+6) { background: linear-gradient(180deg,#fff,#f7efff); }

/* Info blocks */
.v11-values, .v12-featured-buddha {
  display: grid;
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 24px;
}
.v11-values { grid-template-columns: repeat(3, minmax(0,1fr)); }
.v11-values article, .v12-featured-buddha, .home-card, .hero-card, .article-card, .tool-card, .book-group {
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(177,181,125,.34);
  box-shadow: var(--shadow);
}
.v11-values article {
  padding: 22px 20px;
}
.v11-values h3 {
  margin: 0 0 8px;
  color: #6e7f2e;
  font-size: 1.42rem;
}
.v11-values p {
  color: #59634d;
  font-size: 1.02rem;
  line-height: 1.76;
}

.v12-featured-buddha {
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  padding: 30px 32px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,224,138,.25), transparent 28%),
    linear-gradient(135deg,#fffef9 0%,#f6faee 45%,#fff4dc 100%);
}
.v12-feature-kicker {
  color: #7c9f1f;
  font-weight: 900;
  font-size: 1.04rem;
}
.v12-featured-buddha h2 {
  margin: 8px 0 12px;
  color: var(--green);
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}
.v12-featured-buddha p {
  color: #4a5038;
  font-size: 1.08rem;
  line-height: 1.86;
}
.v12-feature-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.v12-feature-actions a, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(111,152,27,.28);
  background: linear-gradient(180deg,#fff,#edf4d8);
  color: #5f7f1c;
  font-weight: 900;
}
.v12-featured-visual {
  display: flex;
  justify-content: center;
  overflow: hidden;
  max-height: 360px;
}
.v12-featured-visual img {
  width: min(100%, 330px);
  filter: drop-shadow(0 20px 34px rgba(126,91,30,.14));
}

/* Older section/form compatibility */
.home-section, .home-card, .hero-card, .article-card {
  padding: clamp(22px, 3vw, 34px);
  margin-top: 28px;
}
.tool-grid, .book-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.book-columns { grid-template-columns: 1fr 1.35fr 1fr; }
.tool-card, .book-group {
  padding: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(110px, 180px) 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
input, select, button {
  font: inherit;
}
input[type="text"], input:not([type]), select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(127,91,37,.28);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
}
input[type="submit"], button {
  min-height: 48px;
  border: 1px solid rgba(170,123,46,.30);
  border-radius: 999px;
  background: linear-gradient(180deg,#fffaf0,#f2e3c6);
  color: #60400b;
  padding: 8px 18px;
  font-weight: 900;
  cursor: pointer;
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 8px;
}
.book-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.book-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
}
.book-list a:hover {
  background: var(--green-soft);
}

/* Footer */
.site-footer, .v11-footer {
  margin-top: 34px;
  padding: 28px 0 22px;
  color: #eef6d9;
  background:
    radial-gradient(circle at 15% 0%, rgba(216,180,49,.20), transparent 28%),
    linear-gradient(180deg, #6e9f25 0%, #3d6811 100%) !important;
  border-top: 0;
}
.site-footer p, .v11-footer p {
  width: min(calc(100% - 44px), var(--content));
  margin: .5em auto;
}
.dhammadana-line {
  text-align: center;
  color: #fff5c8 !important;
  font-size: 1.13rem;
  font-weight: 900;
  line-height: 1.75;
}
.v11-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}
.v11-footer strong, .site-footer strong {
  color: #fff3bf;
  font-size: 1.25rem;
}
.v11-footer a, .site-footer a {
  color: #fff9d8;
  font-weight: 850;
}
.v11-copyright {
  text-align: center;
  color: #eaf1cb;
}

/* Responsive */
@media (max-width: 1180px) {
  .header-inner, .v9-header-inner, .v11-brandrow {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .brand, .v9-brand, .v11-brand {
    width: fit-content;
    max-width: min(410px,100%);
  }
  .site-nav, .v9-site-nav, .v11-mainnav {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  .v11-hero {
    grid-template-columns: 1fr;
  }
  .v12-hero-art { min-height: 430px; border-radius: 28px; }
  .v11-card-grid, .resource-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .v11-values, .v12-featured-buddha, .book-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root { --body-size: 19px; }
  .header-inner, .v9-header-inner, .v11-brandrow,
  .v11-home > section, .v11-home > .home-section, .v11-home > .v11-values,
  .v11-home > .v12-featured-buddha, .home-section, .v9-stats, .site-footer p, .v11-footer-inner {
    width: calc(100% - 24px);
  }
  .header-inner, .v9-header-inner, .v11-brandrow {
    padding: 12px 0;
  }
  .brand-logo, .v9-brand-logo, .v11-brand-logo {
    max-width: 310px;
  }
  .site-nav, .v9-site-nav, .v11-mainnav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .site-nav a, .v9-site-nav a, .v11-mainnav a {
    flex: 0 0 auto;
    min-height: 48px;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 15px;
  }
  .v11-mainnav a {
    min-width: 112px;
    min-height: 72px;
  }
  .sacred-namo {
    padding: 10px 14px;
    font-size: .98rem;
  }
  .v11-hero {
    gap: 14px;
    padding-top: 14px;
  }
  .v12-hero-art {
    order: 1;
    min-height: 300px;
    border-radius: 24px;
    padding-top: 8px;
  }
  .v12-hero-figure {
    height: 300px;
  }
  .v12-hero-figure img {
    width: min(100%, 330px);
  }
  .v11-hero-copy {
    order: 2;
    padding: 6px 2px 0;
  }
  .v11-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.4rem);
  }
  .v11-subtitle {
    font-size: clamp(1.28rem, 5.3vw, 1.8rem);
  }
  .v11-description, .lead {
    font-size: 1.02rem;
    line-height: 1.78;
  }
  .v11-search, .v9-main-search {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 12px;
  }
  .v11-search input, .v9-main-search input[type="text"] {
    min-height: 50px;
    padding: 0 12px;
  }
  .v11-search button, .v9-main-search input[type="submit"] {
    min-height: 50px;
  }
  .v11-chip-row span, .v9-popular-links span {
    width: 100%;
  }
  .v11-card-grid, .resource-grid, .tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v11-card, .resource-card, .section-card {
    min-height: 0;
    padding: 19px 17px;
    border-radius: 22px;
  }
  .v11-values {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .v12-featured-buddha {
    padding: 20px 16px;
    border-radius: 24px;
  }
  .v12-featured-buddha h2 {
    font-size: 1.75rem;
  }
  .v12-featured-buddha p {
    font-size: 1rem;
  }
  .v12-feature-actions {
    flex-direction: column;
  }
  .v12-feature-actions a {
    width: 100%;
  }
  .v12-featured-visual {
    max-height: 270px;
  }
  .v12-featured-visual img {
    width: min(100%, 270px);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-actions {
    justify-content: flex-start;
  }
  .form-actions input[type="submit"] {
    width: 100%;
  }
  .v11-footer-inner {
    flex-direction: column;
  }
}

@media print {
  .site-header, .sacred-namo, .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 16pt;
  }
}



/* =====================================================================
   84000.org v14 Hero Final
   Uses final golden meditation Buddha hero image as the homepage hero.
   ===================================================================== */

.v11-hero{
  width: min(calc(100% - 44px), var(--content));
  margin: 28px auto 14px;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(380px,.9fr) minmax(460px,1.1fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(213,174,73,.35);
  background:
    linear-gradient(90deg,
      rgba(255,252,235,.98) 0%,
      rgba(255,252,235,.94) 35%,
      rgba(255,252,235,.58) 54%,
      rgba(255,252,235,.10) 76%),
    url("../img/hero-buddha-meditation-gold.png");
  background-size: cover;
  background-position: center right;
  box-shadow: 0 18px 44px rgba(70,96,24,.12);
}

.v11-hero-copy{
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(30px,5vw,62px) clamp(20px,4vw,54px);
}

.v14-hero-image{
  min-height: 560px;
}

.v11-kicker{
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.v11-hero h1{
  max-width: 680px;
  text-shadow: 0 2px 0 #fff, 0 12px 32px rgba(95,143,28,.15);
}

.v11-description{
  max-width: 650px;
}

.v11-search{
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
}

.v11-categories{
  margin-top: 26px;
}

/* Hide old separate Buddha figure styles on homepage when final hero is used */
.v12-hero-art,
.v12-hero-figure,
.v12-hero-figure img,
.v12-hero-figure figcaption{
  display: none;
}

/* Featured section: use the same hero as a soft background, not a duplicate object image */
.v12-featured-buddha{
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,250,232,.88)),
    url("../img/hero-buddha-meditation-gold.png");
  background-size: cover;
  background-position: center right;
}
.v12-featured-visual{
  display:none;
}
.v12-featured-copy{
  max-width: 760px;
}

@media (max-width: 1180px){
  .v11-hero{
    grid-template-columns: 1fr;
    min-height: 640px;
    background:
      linear-gradient(180deg,
        rgba(255,252,235,.96) 0%,
        rgba(255,252,235,.88) 42%,
        rgba(255,252,235,.32) 100%),
      url("../img/hero-buddha-meditation-gold.png");
    background-size: cover;
    background-position: center bottom;
  }
  .v14-hero-image{
    min-height: 330px;
  }
}

@media (max-width: 780px){
  .v11-hero{
    width: calc(100% - 24px);
    margin-top: 16px;
    min-height: 720px;
    border-radius: 26px;
    background:
      linear-gradient(180deg,
        rgba(255,252,235,.98) 0%,
        rgba(255,252,235,.92) 43%,
        rgba(255,252,235,.20) 100%),
      url("../img/hero-buddha-meditation-gold.png");
    background-size: cover;
    background-position: 62% bottom;
  }
  .v11-hero-copy{
    order: 1;
    padding: 22px 18px 12px;
  }
  .v14-hero-image{
    order: 2;
    min-height: 350px;
  }
  .v11-categories{
    margin-top: 12px;
  }
}

@media (max-width: 440px){
  .v11-hero{
    min-height: 700px;
    background-position: 66% bottom;
  }
  .v14-hero-image{
    min-height: 320px;
  }
}



/* ==== v14 logo/header fix ==== */
.header-inner,
.v9-header-inner,
.v11-brandrow{
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand,
.v9-brand,
.v11-brand{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  max-width: 390px !important;
}

.brand-logo,
.v9-brand-logo,
.v11-brand-logo{
  display: block;
  width: min(100%, 380px) !important;
  max-width: 380px !important;
  height: auto !important;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(108, 125, 38, .10));
  background: transparent !important;
}

.site-nav,
.v9-site-nav,
.v11-mainnav{
  align-items: center;
}

.site-nav a,
.v9-site-nav a,
.v11-mainnav a{
  box-shadow: 0 5px 14px rgba(80,102,28,.045);
}

/* Prevent sacred line from becoming too tall/overflowing */
.sacred-namo{
  white-space: normal;
  overflow: hidden;
}

@media (max-width: 1180px){
  .header-inner,
  .v9-header-inner,
  .v11-brandrow{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand,
  .v9-brand,
  .v11-brand{
    max-width: 360px !important;
  }

  .brand-logo,
  .v9-brand-logo,
  .v11-brand-logo{
    width: min(100%, 350px) !important;
    max-width: 350px !important;
  }
}

@media (max-width: 780px){
  .brand,
  .v9-brand,
  .v11-brand{
    max-width: 310px !important;
  }

  .brand-logo,
  .v9-brand-logo,
  .v11-brand-logo{
    width: min(100%, 300px) !important;
    max-width: 300px !important;
  }
}



/* ==== v14 mobile hero Buddha visible fix ==== */

/* Desktop: keep using wide hero background; separate image hidden */
.mobile-hero-buddha{
  display:none;
}

/* Tablet and mobile: show Buddha as a real image first, then text */
@media (max-width: 780px){

  .v11-hero{
    display:block !important;
    width:calc(100% - 24px) !important;
    min-height:0 !important;
    margin:16px auto 14px !important;
    overflow:hidden;
    border-radius:26px !important;
    border:1px solid rgba(213,174,73,.35);
    background:linear-gradient(180deg,#fffdf1 0%,#fffef9 100%) !important;
    box-shadow:0 14px 32px rgba(70,96,24,.10);
  }

  .mobile-hero-buddha{
    display:block;
    width:100%;
    background:
      radial-gradient(circle at 55% 30%,rgba(255,226,146,.35),transparent 35%),
      #fff7df;
    border-bottom:1px solid rgba(213,174,73,.24);
  }

  .mobile-hero-buddha img{
    display:block;
    width:100%;
    height:340px;
    object-fit:cover;
    object-position:62% center;
  }

  .v14-hero-image{
    display:none !important;
  }

  .v11-hero-copy{
    display:block;
    padding:22px 18px 20px !important;
    background:linear-gradient(180deg,#fffef8 0%,#ffffff 100%);
  }

  .v11-kicker{
    margin-top:0;
  }

  .v11-hero h1{
    margin-top:4px;
  }

  .v11-search{
    margin-top:16px;
  }
}

@media (max-width: 440px){
  .mobile-hero-buddha img{
    height:300px;
    object-position:64% center;
  }
}

@media (max-width: 380px){
  .mobile-hero-buddha img{
    height:280px;
    object-position:65% center;
  }
}



/* ==== v14 simplified home: remove long copy sections ==== */

.simplified-hero .v11-hero-copy{
  align-self:end;
  padding:0 0 38px 42px;
}

.simplified-hero .v11-search{
  max-width:640px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 40px rgba(83,120,28,.16);
}

.simplified-hero .v11-chip-row{
  max-width:640px;
  margin-top:12px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(190,184,112,.28);
  border-radius:999px;
  padding:8px 10px;
}

.v11-values,
.v12-featured-buddha{
  display:none !important;
}

/* Reduce vertical weight now that long copy is gone */
.v11-categories{
  margin-top:18px;
}

@media (max-width:1180px){
  .simplified-hero .v11-hero-copy{
    padding:0 22px 28px;
  }
}

@media (max-width:780px){
  .simplified-hero{
    display:block !important;
  }

  .simplified-hero .mobile-hero-buddha{
    display:block;
  }

  .simplified-hero .v11-hero-copy{
    padding:16px 16px 18px !important;
  }

  .simplified-hero .v11-search{
    margin-top:0;
    max-width:none;
  }

  .simplified-hero .v11-chip-row{
    border-radius:18px;
    margin-top:10px;
    padding:9px;
  }

  .simplified-hero .v11-chip-row a{
    font-size:.92rem;
  }
}



/* ==== v14 home Namo + logo no-frame fix ==== */

/* Absolutely no logo frame/card */
.brand,
.v9-brand,
.v11-brand {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
}

.brand-logo,
.v9-brand-logo,
.v11-brand-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  filter: drop-shadow(0 5px 12px rgba(79, 105, 21, .10));
}

/* Old global Namo bar is removed; keep hidden if accidentally present on non-home pages */
.sacred-namo {
  display: none !important;
}

/* Homepage Namo under Buddha image only */
.home-namo-under-buddha {
  grid-column: 2;
  align-self: end;
  justify-self: center;
  width: min(92%, 640px);
  margin: 0 24px 22px 0;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 250, 224, .86);
  border: 1px solid rgba(213, 174, 73, .32);
  color: #704415;
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 10px 24px rgba(109, 82, 28, .08);
  backdrop-filter: blur(4px);
}

/* Keep search compact after removing long copy */
.simplified-hero .v11-hero-copy {
  align-self: end;
  padding-bottom: 36px !important;
}

@media (max-width:1180px) {
  .home-namo-under-buddha {
    grid-column: 1;
    margin: -8px auto 22px;
    width: min(calc(100% - 40px), 760px);
  }
}

@media (max-width:780px) {
  /* Put Namo directly under the visible mobile Buddha image, before search text area */
  .home-namo-under-buddha {
    display: block;
    width: auto;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    background: linear-gradient(90deg, #fff7d7, #f4f8df);
    box-shadow: none;
    padding: 11px 14px;
    font-size: .96rem;
    line-height: 1.68;
  }

  .simplified-hero .v11-hero-copy {
    padding-top: 16px !important;
  }

  .brand-logo,
  .v9-brand-logo,
  .v11-brand-logo {
    max-width: 300px !important;
  }
}



/* ==== v14 menu/footer fix ==== */

/* No home button: rebalance to 6 menu items */
.site-nav,
.v9-site-nav,
.v11-mainnav{
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

/* Mobile/tablet: no horizontal scroll menu. Use clean 2-column grid. */
@media (max-width: 780px){
  .site-nav,
  .v9-site-nav,
  .v11-mainnav{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .site-nav a,
  .v9-site-nav a,
  .v11-mainnav a{
    flex: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    white-space: normal !important;
    padding: 8px 10px !important;
    border-radius: 16px !important;
    font-size: .96rem !important;
  }

  .v11-mainnav a{
    min-height: 64px !important;
  }

  .v11-mainnav span{
    font-size: 1.18rem !important;
  }

  .v11-mainnav em{
    font-size: .94rem !important;
  }
}

/* Very narrow mobile: still 2 columns, compact */
@media (max-width: 380px){
  .site-nav a,
  .v9-site-nav a,
  .v11-mainnav a{
    font-size: .9rem !important;
    padding: 7px 8px !important;
  }
}

/* Footer as dhamma-dana, no copyright wording */
.dhammadana-line,
.v11-copyright{
  text-align: center !important;
  color: #fff5c8 !important;
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
  font-weight: 900 !important;
  line-height: 1.75 !important;
  letter-spacing: .01em;
}

.v11-footer-inner nav a[href="index.html"],
.site-footer nav a[href="index.html"]{
  display: none !important;
}



/* =====================================================================
   84000.org Modern v15 Layout Polish
   - lighter header
   - pill menu, no card-like nav
   - search lifted and cleaner
   - popular keywords as inline text
   - Namo as full bar under hero, not overlaying image
   ===================================================================== */

:root{
  --v15-content: 1320px;
  --v15-green: #5f8f1c;
  --v15-green-dark: #3f6f12;
  --v15-gold: #d6a329;
  --v15-ink: #2d331f;
  --v15-muted: #6d7057;
}

/* Header polish */
.header-inner,
.v9-header-inner,
.v11-brandrow{
  width: min(calc(100% - 52px), var(--v15-content)) !important;
  grid-template-columns: 280px 1fr !important;
  gap: 28px !important;
  padding: 10px 0 12px !important;
  align-items: center !important;
}

.brand,
.v9-brand,
.v11-brand{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: 280px !important;
}

.brand-logo,
.v9-brand-logo,
.v11-brand-logo{
  width: min(100%, 270px) !important;
  max-width: 270px !important;
  filter: drop-shadow(0 5px 10px rgba(70, 95, 20, .08)) !important;
}

/* Desktop menu as compact pills */
.site-nav,
.v9-site-nav,
.v11-mainnav{
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 10px !important;
  overflow: visible !important;
  padding: 0 !important;
}

.site-nav a,
.v9-site-nav a,
.v11-mainnav a{
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(143,160,88,.25) !important;
  background: rgba(255,255,255,.66) !important;
  color: #674e22 !important;
  box-shadow: none !important;
  font-size: .98rem !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.v11-mainnav a{
  flex-direction: row !important;
  gap: 7px !important;
}

.v11-mainnav span{
  font-size: 1.08rem !important;
  line-height: 1 !important;
}

.v11-mainnav em{
  font-size: .98rem !important;
  font-style: normal !important;
  line-height: 1 !important;
}

.site-nav a:hover,
.v9-site-nav a:hover,
.v11-mainnav a:hover{
  background: #f5f9e8 !important;
  border-color: rgba(95,143,28,.38) !important;
}

.site-nav a[aria-current="page"],
.v9-site-nav a[aria-current="page"],
.v11-mainnav a[aria-current="page"]{
  background: linear-gradient(180deg,#fbffe9,#eaf4c7) !important;
  color: var(--v15-green-dark) !important;
  border-color: rgba(95,143,28,.42) !important;
}

/* Hero polish */
.v11-hero.simplified-hero,
.simplified-hero{
  width: min(calc(100% - 44px), var(--v15-content)) !important;
  margin: 24px auto 0 !important;
  min-height: 500px !important;
  border-radius: 30px !important;
  background:
    linear-gradient(90deg,
      rgba(255,252,235,.98) 0%,
      rgba(255,252,235,.93) 29%,
      rgba(255,252,235,.50) 49%,
      rgba(255,252,235,.08) 72%),
    url("../img/hero-buddha-meditation-gold.png") !important;
  background-size: cover !important;
  background-position: center right !important;
  box-shadow: 0 16px 38px rgba(70,96,24,.10) !important;
  border: 1px solid rgba(213,174,73,.32) !important;
  overflow: hidden !important;
}

.simplified-hero .v11-hero-copy{
  align-self: center !important;
  padding: 0 0 0 42px !important;
  max-width: 610px !important;
}

/* Search box higher, cleaner, more central */
.simplified-hero .v11-search{
  margin: 0 !important;
  max-width: 560px !important;
  grid-template-columns: 1fr 132px !important;
  padding: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(115,156,40,.28) !important;
  box-shadow: 0 14px 28px rgba(83,120,28,.12) !important;
}

.simplified-hero .v11-search input{
  min-height: 50px !important;
  padding: 0 18px !important;
  font-size: 1.05rem !important;
}

.simplified-hero .v11-search button{
  min-height: 50px !important;
  font-size: 1.03rem !important;
}

/* Popular links: inline text, not a big card */
.simplified-hero .v11-chip-row{
  max-width: 620px !important;
  margin-top: 13px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  gap: 0 !important;
  line-height: 1.8 !important;
}

.simplified-hero .v11-chip-row span{
  width: auto !important;
  display: inline !important;
  margin-right: 8px !important;
  color: #76683f !important;
  font-weight: 900 !important;
}

.simplified-hero .v11-chip-row a{
  display: inline !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 0 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #6a7727 !important;
  font-weight: 750 !important;
}

.simplified-hero .v11-chip-row a:not(:last-child)::after{
  content: " · ";
  color: #b59a42;
  margin: 0 8px;
}

/* Remove old Namo placement if exists */
.home-namo-under-buddha{
  display: none !important;
}

/* Namo bar under hero */
.home-namo-bar{
  width: min(calc(100% - 44px), var(--v15-content));
  margin: 0 auto 22px;
  padding: 13px 20px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(90deg,#fff6cf,#f7f7df,#eef8e2);
  border: 1px solid rgba(213,174,73,.32);
  border-top: 0;
  color: #704415;
  font-size: 1.04rem;
  line-height: 1.7;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 10px 24px rgba(109,82,28,.07);
}

/* Category begins closer and calmer */
.v11-categories{
  margin-top: 18px !important;
  padding-top: 0 !important;
}

.v11-categories h2{
  margin-bottom: 16px !important;
  font-size: 2rem !important;
}

/* Slightly smaller cards so page feels premium */
.v11-card,
.resource-card,
.section-card{
  min-height: 138px !important;
  padding: 20px 19px !important;
  border-radius: 22px !important;
}

/* Mobile: grid menu, no horizontal scroll, compact */
@media (max-width: 900px){
  .header-inner,
  .v9-header-inner,
  .v11-brandrow{
    width: calc(100% - 24px) !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  .brand,
  .v9-brand,
  .v11-brand{
    max-width: 300px !important;
  }

  .brand-logo,
  .v9-brand-logo,
  .v11-brand-logo{
    width: min(100%, 290px) !important;
    max-width: 290px !important;
  }

  .site-nav,
  .v9-site-nav,
  .v11-mainnav{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px !important;
    justify-content: stretch !important;
    overflow: visible !important;
  }

  .site-nav a,
  .v9-site-nav a,
  .v11-mainnav a{
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 8px 10px !important;
    border-radius: 16px !important;
    white-space: normal !important;
  }

  .v11-mainnav a{
    min-height: 58px !important;
  }
}

/* Mobile hero: image first, Namo after image, search below */
@media (max-width: 780px){
  .v11-hero.simplified-hero,
  .simplified-hero{
    display: block !important;
    width: calc(100% - 24px) !important;
    min-height: 0 !important;
    margin: 16px auto 0 !important;
    border-radius: 24px 24px 0 0 !important;
    background: #fffdf1 !important;
  }

  .mobile-hero-buddha{
    display: block !important;
    border-bottom: 0 !important;
  }

  .mobile-hero-buddha img{
    display: block !important;
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    object-position: 62% center !important;
  }

  .v14-hero-image{
    display: none !important;
  }

  .home-namo-bar{
    width: calc(100% - 24px) !important;
    margin: 0 auto 16px !important;
    border-radius: 0 0 22px 22px !important;
    padding: 11px 14px !important;
    font-size: .96rem !important;
    line-height: 1.68 !important;
  }

  .simplified-hero .v11-hero-copy{
    padding: 16px 16px 18px !important;
    max-width: none !important;
    background: linear-gradient(180deg,#fffef8,#fff) !important;
  }

  .simplified-hero .v11-search{
    grid-template-columns: 1fr !important;
    max-width: none !important;
    border-radius: 22px !important;
    padding: 11px !important;
  }

  .simplified-hero .v11-search input{
    min-height: 48px !important;
    padding: 0 12px !important;
  }

  .simplified-hero .v11-search button{
    min-height: 48px !important;
  }

  .simplified-hero .v11-chip-row{
    display: block !important;
    margin-top: 10px !important;
    font-size: .93rem !important;
  }

  .simplified-hero .v11-chip-row span{
    display: block !important;
    margin: 0 0 3px !important;
  }

  .v11-categories{
    margin-top: 14px !important;
  }
}

@media (max-width: 420px){
  .mobile-hero-buddha img{
    height: 290px !important;
    object-position: 65% center !important;
  }
}



/* =====================================================================
   84000.org Modern v16
   Fixed hero image ratio across screen sizes + removed duplicate categories.
   ===================================================================== */

/* Hide older hero implementations to prevent mixed layout */
.v11-hero,
.simplified-hero,
.mobile-hero-buddha,
.v14-hero-image{
  display:none !important;
}

/* New single hero structure: image is real <img>, never stretched */
.v16-hero{
  width:min(calc(100% - 44px), var(--v15-content, 1320px));
  margin:24px auto 0;
  position:relative;
  border-radius:30px 30px 0 0;
  overflow:hidden;
  border:1px solid rgba(213,174,73,.32);
  border-bottom:0;
  background:#fffdf1;
  box-shadow:0 16px 38px rgba(70,96,24,.10);
}

.v16-hero-media{
  position:relative;
  width:100%;
  aspect-ratio:16 / 7.35;
  min-height:470px;
  max-height:620px;
  overflow:hidden;
  background:#fff7df;
}

.v16-hero-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center right;
}

/* Desktop search overlay */
.v16-hero-search{
  position:absolute;
  left:clamp(28px, 5vw, 72px);
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:min(580px, 45%);
}

/* Make the overlay readable without becoming a big card */
.v16-hero-search .v11-search{
  margin:0 !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:1fr 132px !important;
  gap:9px !important;
  padding:8px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.94) !important;
  border:1px solid rgba(115,156,40,.28) !important;
  box-shadow:0 14px 28px rgba(83,120,28,.12) !important;
  backdrop-filter:blur(4px);
}

.v16-hero-search .v11-search input{
  min-height:50px !important;
  padding:0 18px !important;
  font-size:1.05rem !important;
}

.v16-hero-search .v11-search button{
  min-height:50px !important;
  font-size:1.03rem !important;
}

/* Popular links as plain inline text */
.v16-hero-search .v11-chip-row{
  max-width:100% !important;
  margin-top:13px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:block !important;
  line-height:1.85 !important;
  color:#76683f !important;
  font-size:1rem !important;
}

.v16-hero-search .v11-chip-row span{
  display:inline !important;
  margin-right:8px !important;
  color:#76683f !important;
  font-weight:900 !important;
}

.v16-hero-search .v11-chip-row a{
  display:inline !important;
  min-height:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#6a7727 !important;
  font-weight:750 !important;
}

.v16-hero-search .v11-chip-row a:not(:last-child)::after{
  content:" · ";
  color:#b59a42;
  margin:0 8px;
}

/* Namo under hero, not overlay */
.home-namo-bar{
  width:min(calc(100% - 44px), var(--v15-content, 1320px)) !important;
  margin:0 auto 24px !important;
  padding:13px 20px !important;
  border-radius:0 0 22px 22px !important;
  background:linear-gradient(90deg,#fff6cf,#f7f7df,#eef8e2) !important;
  border:1px solid rgba(213,174,73,.32) !important;
  border-top:0 !important;
  color:#704415 !important;
  font-size:1.04rem !important;
  line-height:1.7 !important;
  font-weight:850 !important;
  text-align:center !important;
  box-shadow:0 10px 24px rgba(109,82,28,.07) !important;
}

/* The duplicate category section is removed in HTML; make sure no old duplicate grid shows if left behind */
.v11-categories,
#resources{
  display:none !important;
}

/* Pull the next section up because categories are removed */
#tipitaka.home-section,
#advanced-search.home-section{
  margin-top:24px !important;
}

/* Tablet: keep image ratio stable; search becomes bottom panel */
@media (max-width: 980px){
  .v16-hero{
    width:calc(100% - 24px);
    border-radius:26px 26px 0 0;
    margin-top:16px;
  }

  .v16-hero-media{
    aspect-ratio:16 / 9;
    min-height:0;
    max-height:none;
  }

  .v16-hero-media img{
    object-position:62% center;
  }

  .v16-hero-search{
    position:static;
    transform:none;
    width:100%;
    padding:16px;
    background:linear-gradient(180deg,#fffef8,#fff);
  }

  .v16-hero-search .v11-search{
    grid-template-columns:1fr !important;
    border-radius:22px !important;
    padding:11px !important;
  }

  .v16-hero-search .v11-search input,
  .v16-hero-search .v11-search button{
    min-height:48px !important;
  }

  .v16-hero-search .v11-chip-row{
    margin-top:10px !important;
    font-size:.94rem !important;
  }

  .v16-hero-search .v11-chip-row span{
    display:block !important;
    margin:0 0 3px !important;
  }

  .home-namo-bar{
    width:calc(100% - 24px) !important;
    margin-bottom:16px !important;
    padding:11px 14px !important;
    font-size:.96rem !important;
    line-height:1.68 !important;
  }
}

/* Mobile: show the full 16:9 hero image naturally; no forced weird height */
@media (max-width: 520px){
  .v16-hero-media{
    aspect-ratio:16 / 9;
  }

  .v16-hero-media img{
    object-position:63% center;
  }

  .v16-hero-search{
    padding:14px;
  }

  .v16-hero-search .v11-chip-row{
    font-size:.92rem !important;
  }
}



/* =====================================================================
   v17 Footer Clean
   Single dhamma-dana footer, no duplicate columns/copyright.
   ===================================================================== */

.site-footer.clean-footer,
.clean-footer{
  margin-top: 34px !important;
  padding: 22px 16px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 130, .13), transparent 35%),
    linear-gradient(180deg, #5f8f1c 0%, #3f6f12 100%) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  color: #fff6c8 !important;
  text-align: center !important;
}

.clean-footer .footer-dhamma{
  width: min(calc(100% - 24px), 1180px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: #fff6c8 !important;
  font-size: clamp(1rem, 1.55vw, 1.16rem) !important;
  line-height: 1.75 !important;
  font-weight: 850 !important;
  letter-spacing: .01em;
  text-align: center !important;
}

/* Hide older footer blocks if any legacy CSS/html slips through */
.clean-footer .v11-footer-inner,
.clean-footer .v11-copyright,
.clean-footer .dhammadana-line,
.site-footer:not(.clean-footer) .v11-footer-inner,
.site-footer:not(.clean-footer) .v11-copyright{
  display: none !important;
}

@media (max-width: 780px){
  .site-footer.clean-footer,
  .clean-footer{
    margin-top: 24px !important;
    padding: 18px 12px !important;
  }

  .clean-footer .footer-dhamma{
    font-size: .98rem !important;
    line-height: 1.72 !important;
  }
}



/* =====================================================================
   v18 Hero Desktop Uncrop + Footer Clean
   - desktop hero taller to preserve more of the Buddha image
   - desktop crop shifted upward to keep head / halo / lower base visible
   - mobile hero kept as-is from v16/v17
   ===================================================================== */

/* Desktop hero uncrop */
@media (min-width: 981px){
  .v16-hero{
    width: min(calc(100% - 44px), 1360px) !important;
    margin-top: 20px !important;
  }

  .v16-hero-media{
    /* Taller than before so top and bottom are not cut as much */
    aspect-ratio: 16 / 9.1 !important;
    min-height: 560px !important;
    max-height: 760px !important;
  }

  .v16-hero-media img{
    object-fit: cover !important;
    /* pull focus upward a bit to preserve head / halo, while still keeping base */
    object-position: 62% 24% !important;
  }

  /* Search floats a bit higher so it sits naturally in the left sky area */
  .v16-hero-search{
    top: 41% !important;
    left: clamp(30px, 5vw, 76px) !important;
    width: min(590px, 46%) !important;
  }

  .v16-hero-search .v11-search{
    box-shadow: 0 16px 30px rgba(83,120,28,.11) !important;
  }

  .v16-hero-search .v11-chip-row{
    margin-top: 15px !important;
  }

  .home-namo-bar{
    width: min(calc(100% - 44px), 1360px) !important;
    padding: 12px 20px 14px !important;
    font-size: 1rem !important;
    line-height: 1.72 !important;
    font-weight: 760 !important;
    color: #80531f !important;
    box-shadow: 0 8px 18px rgba(109,82,28,.05) !important;
  }
}

/* Large desktop can use a bit more height */
@media (min-width: 1400px){
  .v16-hero-media{
    aspect-ratio: 16 / 9.35 !important;
    min-height: 590px !important;
  }

  .v16-hero-media img{
    object-position: 62% 23% !important;
  }
}

/* Footer single line, calm and centered */
.clean-footer .footer-dhamma{
  font-weight: 820 !important;
  color: #fff6cf !important;
  text-wrap: balance;
  max-width: 1200px !important;
}

@media (max-width: 980px){
  /* keep tablet/mobile hero behavior from v16/v17 */
  .v16-hero{
    width: calc(100% - 24px) !important;
  }

  .clean-footer .footer-dhamma{
    font-size: .98rem !important;
    line-height: 1.72 !important;
  }
}
