
/* Heaven's Culture Academy, shared styles. The Chapel look: plain white, ivory bands, Cormorant and Cinzel, black-and-white portraits, gold hairlines. */
:root {
  --white: #FFFFFF; --ivory: #F7F5F0; --ink: #171614; --stone: #6D6961; --gold: #9A7A3E; --gold-soft: #CDBB91; --line: #E5E0D5;
  --serif: "Cormorant Garamond", "Anek Telugu", Garamond, "Times New Roman", serif;
  --caps: "Cinzel", "Anek Telugu", "Trajan Pro", "Times New Roman", serif;
}
body { background: var(--white); color: var(--ink); font: 400 20px/1.6 var(--serif); }
.caps { font: 400 12px/1.5 var(--caps); letter-spacing: .24em; text-transform: uppercase; }
.gold { color: var(--gold); }
.muted { color: var(--stone); }
.btn { display: inline-block; border: 1px solid var(--ink); padding: 15px 30px; font: 400 12px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; text-align: center; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.solid { background: var(--ink); color: var(--white); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.link { font: 400 12px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 6px; }
.band { padding-block: clamp(84px, 10vw, 136px); }
.band.ivory { background: var(--ivory); }
.sh { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: clamp(44px, 5vw, 68px); }
.sh h2 { font: 400 clamp(40px, 4.8vw, 64px)/1.05 var(--serif); }
.sh h2 i, h2 i { color: var(--gold); }
.sh p { max-width: 50ch; color: var(--stone); font-size: 21px; }

/* notice + header */
.notice { background: var(--ink); color: #E9E4D8; text-align: center; padding: 11px 16px; font: 400 11px/1.5 var(--caps); letter-spacing: .22em; text-transform: uppercase; }
.notice a { color: var(--gold-soft); border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-left: 12px; white-space: nowrap; }
.masthead { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 16px; }
.masthead nav { display: flex; gap: 30px; font: 400 12px/1 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.masthead nav a:hover { color: var(--ink); }
.masthead .right { justify-self: end; display: flex; align-items: center; gap: 24px; }
.masthead .btn { padding: 12px 22px; }
.crest { display: grid; justify-items: center; gap: 8px; }
.crest .deer { height: 46px; }
.crest span { font: 500 12px/1 var(--caps); letter-spacing: .34em; white-space: nowrap; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { background: none; border: 0; padding: 8px 10px; font: 400 11px/1 var(--caps); letter-spacing: .12em; color: var(--stone); cursor: pointer; }
.lang button[data-lang="te"] { font-family: var(--serif); font-size: 14px; letter-spacing: 0; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* hero */
.hero { text-align: center; padding-block: clamp(64px, 8vw, 108px) 56px; display: grid; gap: 22px; justify-items: center; }
.hero .partner { display: flex; align-items: center; gap: 14px; }
.hero .partner i { width: 28px; height: 1px; background: var(--gold); display: inline-block; }
.hero h1 { font: 400 clamp(64px, 10vw, 140px)/.92 var(--serif); letter-spacing: -0.012em; }
.hero h1 i { color: var(--gold); }
.hero .sub { font: 400 14px/1.4 var(--caps); letter-spacing: .3em; text-transform: uppercase; }
.hero .when { font-style: italic; color: var(--stone); font-size: 21px; }
.hero p.lead { max-width: 48ch; color: var(--stone); font-size: 22px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; color: var(--stone); }
.trust span { padding-inline: 18px; }
.trust span + span { border-left: 1px solid var(--line); }
.plate { max-width: 1200px; margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
.plate .frame { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.plate .frame > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: grayscale(1) contrast(1.05); }
.plate figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-style: italic; color: var(--stone); font-size: 17px; }
.now { position: absolute; left: 28px; bottom: 28px; background: var(--white); padding: 16px 24px 16px 16px; display: flex; gap: 16px; align-items: center; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 12px 32px rgba(0,0,0,.22); transition: transform .2s; }
.now:hover { transform: translateY(-2px); }
.now .pl { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; font-size: 15px; padding-left: 3px; }
.now small { display: block; font: 400 10px/1.4 var(--caps); letter-spacing: .2em; color: var(--gold); text-transform: uppercase; }
.now b { display: block; font: 500 24px/1.15 var(--serif); }
.now em { display: block; font-size: 16px; color: var(--stone); }

/* verse */
.verse { background: var(--ink); color: #F3EEE3; text-align: center; padding-block: clamp(72px, 9vw, 112px); }
.verse .deer { height: 38px; }
.verse blockquote { font: italic 400 clamp(34px, 4.4vw, 60px)/1.18 var(--serif); max-width: 20ch; margin: 26px auto 20px; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about h2 { font: 400 clamp(44px, 5vw, 70px)/1.02 var(--serif); margin-top: 16px; }
.about .copy { display: grid; gap: 18px; font-size: 22px; line-height: 1.6; }
.about .copy p:first-child::first-letter { font-size: 3.2em; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--gold); }
.aims { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink); }
.aim { padding: 32px 28px 0; text-align: center; display: grid; gap: 10px; justify-items: center; align-content: start; }
.aim + .aim { border-left: 1px solid var(--line); }
.aim .n { font: italic 400 22px/1 var(--serif); color: var(--gold); }
.aim h3 { font: 500 32px/1.1 var(--serif); }
.aim p { color: var(--stone); font-size: 19px; max-width: 28ch; }

/* sessions */
.sessions { max-width: 1000px; margin-inline: auto; border-top: 1px solid var(--ink); }
.sess { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line); }
.sess .num { font: 400 64px/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.sess h3 { font: 500 clamp(26px, 2.6vw, 34px)/1.15 var(--serif); }
.sess p { margin-top: 6px; font-style: italic; color: var(--stone); font-size: 18px; }
.sess .tag { font: 400 10px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); border: 1px solid var(--line); padding: 9px 12px; white-space: nowrap; }
.sess .tag.free { color: var(--white); background: var(--gold); border-color: var(--gold); cursor: pointer; }

/* teachers */
.guest { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding-bottom: clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.arch { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 0 0; outline: 1px solid var(--gold-soft); outline-offset: 10px; background: var(--ivory); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.05); }
.arch.cut img { object-fit: contain; object-position: 50% 100%; position: absolute; inset: auto 0 0 0; height: 96%; }
.guest .txt { display: grid; gap: 14px; }
.guest h3 { font: 400 clamp(44px, 5vw, 66px)/1.02 var(--serif); }
.guest .role { font-style: italic; color: var(--stone); font-size: 22px; }
.guest .bio { font-size: 21px; line-height: 1.6; max-width: 46ch; }
.guest .facts { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--line); }
.guest .facts div { display: grid; gap: 2px; }
.guest .facts b { font: 400 30px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.guest .facts span { font: 400 11px/1.4 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
html[lang="te"] .guest .facts span { letter-spacing: .02em; text-transform: none; font-size: 14px; }
.guest .site { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hosts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(64px, 8vw, 104px); }
.host { display: grid; gap: 22px; text-align: center; justify-items: center; align-content: start; }
.host .arch { width: 100%; max-width: 320px; }
.host h3 { font: 400 34px/1.1 var(--serif); margin-top: 6px; }
.host .role { font-style: italic; color: var(--stone); font-size: 18px; }
.host p { font-size: 19px; color: var(--stone); max-width: 30ch; }

/* study */
.study { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.st { padding: 40px 32px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.st + .st { border-left: 1px solid var(--line); }
.st .ico { width: 44px; height: 44px; color: var(--gold); }
.st h3 { font: 500 26px/1.15 var(--serif); }
.st p { color: var(--stone); font-size: 18px; max-width: 28ch; }

/* enrol */
.enrol { display: grid; grid-template-columns: 1.2fr .8fr; max-width: 1040px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(23,22,20,.07); }
.enrol .l { padding: clamp(32px, 4vw, 56px); display: grid; gap: 16px; align-content: start; }
.enrol .l .deer { height: 44px; }
.enrol .l h2 { font: 400 clamp(40px, 4vw, 54px)/1.05 var(--serif); }
.enrol ul { display: grid; gap: 10px; margin-top: 8px; }
.enrol li { display: grid; grid-template-columns: 24px 1fr; font-size: 19px; }
.enrol li::before { content: "✦"; color: var(--gold); font-size: 12px; padding-top: 7px; }
.enrol .r { background: var(--ivory); border-left: 1px solid var(--line); padding: clamp(32px, 4vw, 56px); display: grid; gap: 14px; align-content: center; justify-items: center; text-align: center; }
.enrol .price { font: 400 88px/1 var(--serif); font-variant-numeric: lining-nums; }
.enrol .r .btn { width: 100%; }
.enrol .small { font-size: 16px; font-style: italic; color: var(--stone); }

/* next + faq */
.next { border-block: 1px solid var(--line); }
.next .wrap { display: flex; justify-content: center; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 30px; text-align: center; }
.next b { font: 500 24px/1.2 var(--serif); }
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 4px; font: 500 24px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 28px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 4px 22px; color: var(--stone); max-width: 64ch; }

/* footer */
footer { background: var(--ivory); border-top: 1px solid var(--line); }
footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 32px; padding-block: 64px 48px; }
footer .brand { display: grid; gap: 12px; justify-items: start; align-content: start; }
footer .brand .deer { height: 50px; }
footer .brand p { color: var(--stone); font-style: italic; font-size: 18px; max-width: 32ch; }
footer h4 { font: 400 12px/1 var(--caps); letter-spacing: .22em; margin: 0 0 18px; }
footer li { margin-bottom: 8px; color: var(--stone); font-size: 18px; }
footer .base { border-top: 1px solid var(--line); }
footer .base .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: 15px; color: var(--stone); }

/* layers */
.layer { position: fixed; inset: 0; z-index: 80; }
.layer[hidden] { display: none; }
.layer .shade { position: absolute; inset: 0; background: rgba(23,22,20,.55); }
.modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100% - 32px)); background: var(--white); }
.modal .art { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.modal .art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); }
.modal .art .pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; border: 1px solid #fff; color: #fff; display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.modal .body { padding: 24px 30px 28px; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.modal .body b { display: block; font: 500 28px/1.1 var(--serif); }
.modal .body span { color: var(--stone); font-style: italic; }
.x { position: absolute; right: 12px; top: 10px; z-index: 2; width: 42px; height: 42px; border: 0; background: var(--white); font: 400 26px/1 var(--serif); cursor: pointer; }
.mbar { display: none; }

/* Telugu */
html[lang="te"] .caps, html[lang="te"] .btn, html[lang="te"] .link, html[lang="te"] .masthead nav, html[lang="te"] .notice, html[lang="te"] .hero .sub, html[lang="te"] .sess .tag { letter-spacing: .02em; text-transform: none; font-size: 14px; }
html[lang="te"] body { line-height: 1.75; }
html[lang="te"] .hero h1 { font-size: clamp(48px, 7vw, 100px); line-height: 1.2; }
html[lang="te"] .about h2, html[lang="te"] .sh h2 { line-height: 1.25; }

@media (max-width: 960px) {
  .about, .guest { grid-template-columns: 1fr; }
  .guest .arch { max-width: 420px; }
  .enrol { grid-template-columns: 1fr; }
  .enrol .r { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  body { font-size: 19px; padding-bottom: 64px; }
  .masthead .wrap { grid-template-columns: auto 1fr auto; }
  .masthead nav.left, .masthead .right .acct, .masthead .right .lang { display: none; }
  .crest { grid-template-columns: auto auto; align-items: center; gap: 10px; justify-items: start; }
  .crest .deer { height: 36px; }
  .crest span { font-size: 9px; letter-spacing: .2em; }
  .mobile-lang { display: flex !important; }
  .plate .frame { aspect-ratio: 4 / 5; }
  .plate .frame > img { object-position: 68% 30% !important; }
  .now { left: 12px; right: 12px; bottom: 12px; padding: 12px; }
  .now .pl { width: 44px; height: 44px; }
  .now b { font-size: 20px; }
  .aims, .study, .hosts { grid-template-columns: 1fr; }
  .aim + .aim, .st + .st { border-left: 0; border-top: 1px solid var(--line); }
  .aim { padding-block: 28px; }
  .sess { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
  .sess .num { font-size: 44px; }
  .sess .tag { grid-column: 2; justify-self: start; }
  .trust span { padding-inline: 10px; font-size: 17px; }
  footer .top { grid-template-columns: 1fr 1fr; }
  footer .brand { grid-column: 1 / -1; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 10px; align-items: center; justify-content: space-between; }
  .mbar span { font-style: italic; color: var(--stone); font-size: 16px; }
  .mbar .btn { padding: 12px 18px; }
  .opt-nav { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.mobile-lang { display: none; }

/* breadcrumb and course cards (shared) */
.crumb { border-bottom: 1px solid var(--line); }
.crumb .wrap { display: flex; gap: 10px; padding-block: 12px; font: 400 11px/1.4 var(--caps); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.crumb a:hover { color: var(--ink); }
.crumb b { font-weight: 400; color: var(--ink); }
html[lang="te"] .crumb .wrap { letter-spacing: .02em; text-transform: none; font-size: 14px; }

/* Live site: keep Sign In / My Courses reachable on phones */
.masthead .acct a { white-space: nowrap; }
@media (max-width: 820px) {
  .masthead .right { gap: 14px; }
  .masthead .right .acct { display: flex !important; gap: 0; font-size: 10px; letter-spacing: .14em; }
  .masthead .right .btn { padding: 10px 14px; letter-spacing: .16em; }
  .masthead .wrap { gap: 12px; }
}

/* Live site: small phones (tested on 320–360 px wide) */
@media (max-width: 960px) {
  .feature, .story { grid-template-columns: minmax(0, 1fr); }
  .feature .txt, .story > * { min-width: 0; }
}
@media (max-width: 820px) {
  .masthead .acct a { padding: 12px 2px; }
  .crest .deer { flex-shrink: 0; }
}
@media (max-width: 400px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .crest span { display: none; }
  .crest .deer { height: 34px; }
  .masthead .right { gap: 10px; }
  .masthead .right .btn { padding: 10px 12px; letter-spacing: .12em; }
  .btn { white-space: normal; padding-left: 18px; padding-right: 18px; }
  .feature .txt { padding: 26px 20px; }
  .caps { letter-spacing: .16em; }
}

/* Telugu (team choice, 1 Dec 2026): Chathura for headings, Anek Telugu for all other text.
   Chathura is drawn small, so Telugu headings are enlarged to match the English ones. */
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3, html[lang="te"] blockquote,
html[lang="te"] .amount, html[lang="te"] .mc h3, html[lang="te"] .lessons h2 {
  font-family: "Cormorant Garamond", "Chathura", serif; font-weight: 700; font-size-adjust: ex-height 0.5;
}
html[lang="te"] .lang button[data-lang="te"], .lang button[data-lang="te"] { font-family: "Anek Telugu", var(--serif); font-size: 14px; }
html[lang="te"] body { font-family: "Cormorant Garamond", "Anek Telugu", serif; }
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3 { line-height: 1.32; }
html[lang="te"] .home-hero h1, html[lang="te"] .hero h1 { line-height: 1.28; padding-bottom: .08em; }
html[lang="te"] .home-hero { gap: 28px; }

/* Alignment pass (1 Dec 2026, Roy: "tab placements and alignments")
   Top tabs never break onto two lines; they tighten on small laptops instead */
.masthead nav a { white-space: nowrap; }
@media (min-width: 821px) and (max-width: 1200px) {
  .masthead .wrap { gap: 16px; }
  .masthead nav { gap: 18px; letter-spacing: .13em; }
  .masthead .right { gap: 16px; }
  .masthead .btn { padding: 11px 15px; letter-spacing: .14em; }
  .crest span { letter-spacing: .26em; }
}
@media (min-width: 821px) and (max-width: 980px) {
  .masthead nav { gap: 14px; font-size: 11px; letter-spacing: .1em; }
  .masthead .right { gap: 12px; }
  .masthead .btn { padding: 10px 12px; letter-spacing: .1em; font-size: 11px; }
  .crest span { font-size: 10px; letter-spacing: .2em; }
}
/* Breadcrumb: wraps between the names, never inside a name */
.crumb .wrap { flex-wrap: wrap; row-gap: 4px; }
.crumb .wrap > * { white-space: nowrap; }
@media (max-width: 420px) { .crumb .wrap { gap: 8px; font-size: 10px; letter-spacing: .12em; } }
/* Phones: the top banner takes two lines, not three */
@media (max-width: 820px) { .notice { font-size: 10px; letter-spacing: .12em; padding: 9px 14px; } }
/* Small phones: the bottom bar's button stays on one line */
@media (max-width: 380px) {
  .mbar .btn { white-space: nowrap; padding: 12px 14px; letter-spacing: .12em; }
  .mbar span { font-size: 15px; line-height: 1.3; }
}

/* Header alignment (1 Dec 2026, Roy: "the home page navbar doesn't have alignment")
   Laptops: the tabs, the language switch, Sign In and the button all sit on the emblem's centre line (the name
   hangs below it), and both sides take the same width (lang.js measures them) so the emblem has equal space each
   side. The switch and the button are one height with their words in the middle. Phones and tablets: the last
   item reaches the right edge, like the logo on the left. */
.masthead { --hh: 38px; }
.masthead .lang { height: var(--hh); box-sizing: border-box; }
.masthead .lang button { display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; line-height: 1; }
.masthead .lang button[data-lang="te"] { padding-top: 5px; } /* Anek Telugu draws తెలుగు high in its line */
.masthead .right > .btn { height: var(--hh); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; line-height: 1; }
.masthead .acct a { display: inline-flex; align-items: center; min-height: var(--hh); }
@media (min-width: 821px) {
  .masthead .wrap { align-items: start; }
  .masthead nav.left, .masthead .right { height: 46px; align-items: center; }
  .masthead .wrap[data-even] nav.left, .masthead .wrap[data-even] .right { width: var(--side); max-width: 100%; justify-content: space-between; }
}
@media (min-width: 821px) and (max-width: 1200px) { .masthead { --hh: 36px; } }
@media (min-width: 821px) and (max-width: 980px) { .masthead { --hh: 34px; } }
@media (max-width: 820px) {
  .masthead { --hh: 36px; }
  .masthead .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .masthead .crest { justify-self: start; }
  .masthead .acct a { padding-top: 0; padding-bottom: 0; }
  html[lang="te"] .masthead .right .acct { font-size: 13px; letter-spacing: 0; }
}

/* Page alignment (1 Dec 2026, Roy: "check all pages, placements and alignment") */
/* Rows of three: each item's icon, title and text start on the same lines, even when one text is longer */
.st, .mark { align-content: start; }
.marks .mark span { max-width: 32ch; }
/* "nearly 1,500": a small italic word before the number keeps it on one line, level with 2008 and Two (2 Dec 2026) */
.mark b:has(.pre) { position: relative; }
.mark b .pre { position: absolute; right: 100%; top: 50%; transform: translateY(-62%); margin-right: .55em; font-size: .38em; font-style: italic; white-space: nowrap; color: var(--stone); }
/* The line under the pastors is as wide as every other line on the page (it ran into the side margins) */
section.pastors-wrap { border-bottom: 0; position: relative; }
section.pastors-wrap::after { content: ""; position: absolute; bottom: 0; left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); border-bottom: 1px solid var(--line); }
@media (max-width: 400px) { section.pastors-wrap::after { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); } }
/* Laptops: the gold frames of the side pastors line up with the page edges instead of sticking out */
@media (min-width: 821px) { .pastors-wrap .pastors { padding-inline: 11px; } }
/* Two buttons stacked one above the other are the same width */
.feature .txt .ctas { display: grid; grid-template-columns: fit-content(100%); justify-content: start; }
@media (max-width: 560px) {
  .pastors-wrap .home-hero .ctas, .hero .ctas { display: grid; grid-template-columns: fit-content(100%); justify-content: center; }
  /* "Five sessions · Telugu and English · ₹500 for 3 months": one per line on phones, no stray divider */
  .feature .txt .meta { flex-direction: column; gap: 2px; }
  .feature .txt .meta span { border: 0; padding: 0; margin: 0; }
}
/* Headings and small capitals never leave one word alone on a line; phone numbers never break */
h1, h2, h3, .caps, .sub { text-wrap: balance; }
p { text-wrap: pretty; }
.nw { white-space: nowrap; }
/* Course page: the session tags are one width so their edges line up; the subtitle clears the title's tails */
.sess .tag { min-width: 120px; text-align: center; }
.hero h1 { padding-bottom: .12em; }
/* Laptops: the teacher's gold frame lines up with the page edge instead of sticking out */
@media (min-width: 961px) { .guest > .arch, .guest > div > .arch { margin-left: 11px; } }
html[lang="te"] .sess .tag { min-width: 140px; }
@media (max-width: 960px) { .guest > .arch { margin-inline: 11px; } }
.next b { text-wrap: balance; }
@media (max-width: 560px) {
  /* Course opening on phones: "Five sessions · Telugu and English · ₹500" one per line, no stray divider;
     the partner line drops its side rules when it has to take two lines */
  .trust { flex-direction: column; align-items: center; gap: 2px; }
  .trust span, .trust span + span { border: 0; padding-inline: 0; }
}
@media (max-width: 480px) { .hero .partner i { display: none; } }
/* Home page, small laptops and iPads held sideways (821–1100px): no room for the header's Browse Courses button
   beside the switch and Sign In without crowding the name; the same button sits just below in the opening */
@media (min-width: 821px) and (max-width: 1100px) { .masthead .right > .btn[href="#courses"] { display: none; } }

/* ── Skip to content (2 Dec 2026): hidden until a keyboard or screen-reader user tabs to it ── */
.skip { position: absolute; left: 12px; top: 12px; z-index: 1000; transform: translateY(-200%); padding: 12px 18px; background: var(--ink); color: var(--white); font: 400 12px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; transition: transform .15s; }
.skip:focus, .skip:focus-visible { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }
html[lang="te"] .skip { font: 500 14px/1.2 'Anek Telugu', sans-serif; letter-spacing: 0; text-transform: none; }

/* Roy's iPhone 16 Pro (3 Dec 2026): "the option between English and Telugu is not found", and the free-video window.
   Phones: the EN | తెలుగు switch stays in the header, like the app pages (it used to sit only in the opening, so it
   was gone once you scrolled, and the language card only shows on the very first visit). The course page's header
   Enrol hides on phones; the bar at the bottom of the screen already has it. The header is solid, so nothing
   shows through it. iPhones colour plain buttons blue, so buttons take the text colour. */
button { color: inherit; }
.masthead { background: var(--white); }
.pl svg { display: block; width: .8em; height: .95em; }
.x { color: var(--ink); padding: 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
@media (max-width: 820px) {
  .masthead .right .lang { display: flex; }
  .mobile-lang { display: none !important; }
  .masthead .right > .btn { display: none; }
}
@media (max-width: 820px) {
  .masthead .crest { grid-template-columns: max-content auto; }  /* the deer never gets squeezed */
}
@media (min-width: 401px) and (max-width: 439px) {
  /* not room for the name on one line beside the switch: it stacks, Heaven's Culture / Academy */
  .masthead .crest span { white-space: normal; max-width: 125px; line-height: 1.6; }
}
@media (max-width: 400px) {
  .masthead .right .lang button { padding-left: 8px; padding-right: 8px; }
}
/* The free-video window on phones: the button wraps inside the white box instead of running off the screen */
@media (max-width: 600px) {
  .modal .body { padding: 20px 20px 22px; gap: 16px; }
  .modal .body > div { min-width: 0; }
  .modal .body b { font-size: 25px; }
  .modal .body .btn { width: 100%; text-align: center; white-space: normal; padding: 15px 14px; letter-spacing: .16em; line-height: 1.45; }
  .modal .art .pl { width: 72px; height: 72px; }
}
