/* A compact public site. The content studio keeps its existing workspace. */
body:not(.admin-mode) { background: linear-gradient(180deg, #fafbf8 0, #f8faf6 45%, #fbfaf8 100%); }
body:not(.admin-mode) .shell { width: min(1000px, calc(100% - 48px)); }
.site-header { position: sticky; background: #fafbf8d9; backdrop-filter: blur(18px) saturate(1.2); }
.site-header nav { height: 68px; gap: 24px; }
.brand { font-size: 21px; }
.brand-logo { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; border: 1px solid #25342014; border-radius: 9px; background: #fff; box-shadow: 0 3px 12px #2534200d; }
.nav-links { gap: 24px; font-size: 12px; margin-inline-start: auto; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.theme-switch { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #ffffff80; color: #4c5c47; transition: background .2s, color .2s, transform .2s; }
.theme-switch:hover { background: #edf1e7; color: #263522; transform: rotate(8deg); }
.language-switch { background: #ffffff80; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 500 12px/1.7 var(--sans); white-space: nowrap; transition: background .2s, border-color .2s; }
.language-switch:lang(ar) { font-family: 'Noto Sans Arabic', sans-serif; }
.language-switch:hover { background: #edf1e7; }
.mini-hero { min-height: 340px; margin-top: 28px; margin-bottom: 52px; padding: 48px clamp(30px,7vw,76px); display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #fff; border-radius: 30px; background: #f2f5ec; box-shadow: 0 28px 80px #32432912, inset 0 1px #ffffffc7; }
.mini-hero-copy { position: relative; z-index: 2; max-width: 700px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #52634c; font-size: 10px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.mini-hero h1 { font-size: clamp(43px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -.065em; margin: 0 0 24px; max-width: 720px; text-wrap: balance; }
.mini-hero p { color: #505b4f; font-size: clamp(14px, 1.55vw, 17px); line-height: 1.8; max-width: 540px; margin: 0 0 30px; text-wrap: pretty; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid #4f6845; color: #34462e; font-size: 12px; font-weight: 600; }
.hero-link svg { transition: transform .2s ease; }
.hero-link:hover svg { transform: translateX(4px); }
.hero-mark { position: absolute; z-index: 2; inset-inline-end: 28px; top: 25px; color: #586d4e; font-size: 21px; opacity: .65; }
.hero-aura, .hero-aura span { position: absolute; inset: 0; pointer-events: none; }
.hero-aura { z-index: -1; overflow: hidden; background: radial-gradient(circle at 82% 12%, #f2b9e5 0, transparent 40%), radial-gradient(circle at 12% 92%, #a7ebc5 0, transparent 44%), radial-gradient(circle at 43% 24%, #b8dcff 0, transparent 38%), linear-gradient(125deg, #fff7df 4%, #eaf9ef 48%, #f8eaf5 100%); }
.hero-aura span { width: 58%; height: 105%; border-radius: 50%; filter: blur(46px); opacity: .7; will-change: transform, filter; }
.hero-aura span:nth-child(1) { inset: -35% auto auto 53%; background: #ee9fdc; animation: aura-float-one 13s ease-in-out infinite alternate, aura-hue 22s linear infinite; }
.hero-aura span:nth-child(2) { inset: 42% auto auto -14%; background: #82e2bd; animation: aura-float-two 16s ease-in-out infinite alternate, aura-hue 26s linear infinite reverse; }
.hero-aura span:nth-child(3) { width: 46%; height: 82%; inset: 26% auto auto 40%; background: #ffc28e; opacity: .52; animation: aura-float-three 18s ease-in-out infinite alternate; }
@keyframes aura-float-one { to { transform: translate(-28%, 24%) scale(1.15); } }
@keyframes aura-float-two { to { transform: translate(42%, -28%) scale(1.2); } }
@keyframes aura-float-three { to { transform: translate(-35%, -18%) scale(.9); } }
@keyframes aura-hue { to { filter: blur(42px) hue-rotate(42deg); } }
.home-courses { padding-bottom: 64px; }
.section-head { align-items: center; margin-bottom: 18px; gap: 16px; }
.section-head h2, .simple-sessions h2, .simple-support h2 { font-size: 22px; line-height: 1.45; margin: 0; letter-spacing: -.025em; }
.section-head .text-link { font-size: 12px; gap: 8px; }
.course-grid { gap: 16px; }
.course-card { border-radius: 14px; border-color: #34472d17; box-shadow: 0 10px 30px #34432908; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px #34432910; }
.course-card-body { padding: 18px 19px 16px; }
.card-category { color: var(--muted); font-size: 10px; margin-bottom: 12px; }
.course-card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 7px; letter-spacing: -.03em; }
.course-card p { display: -webkit-box; overflow: hidden; margin-bottom: 14px; font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.course-bottom { font-size: 10px; font-weight: 600; padding-top: 10px; gap: 10px; color: #4f6248; }
.course-card.has-cover .course-art { height: auto; aspect-ratio: 16/10; padding: 0; background: #f0f0f2; }
.course-card.has-cover .course-art img { width: 100%; height: 100%; object-fit: contain; }
.simple-course-icon { display: grid; place-items: center; width: 100%; height: 100%; }
.button { border-radius: 999px; padding: 11px 18px; font-size: 12px; }
.home-empty { grid-column: 1/-1; min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px dashed #52634c35; border-radius: 14px; color: var(--muted); background: #ffffff52; }
.home-empty span { color: #79906e; font-size: 17px; }
.home-empty p { margin: 0; font-size: 12px; }
.simple-sessions { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(42px,7vw,76px); padding-top: 72px; padding-bottom: 72px; margin-top: 0; align-items: center; }
.simple-sessions.home-sessions { border-top: 1px solid var(--line); }
.simple-sessions:not(.home-sessions) { padding-top: 50px; padding-bottom: 65px; min-height: 60vh; }
.session-label { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #5c7152; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.session-label::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.simple-sessions h1 { font-size: clamp(38px,4.5vw,54px); line-height: 1.06; margin: 0 0 18px; }
.simple-sessions h2 { font-size: clamp(34px,4vw,48px); line-height: 1.08; margin-bottom: 18px; }
.simple-sessions .session-description { max-width: 440px; font-size: 14px; color: var(--muted); line-height: 1.85; margin: 0 0 28px; }
.session-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin: 0 0 24px; overflow: hidden; border: 1px solid #394d3117; border-radius: 13px; background: #394d3117; }
.session-facts > div { min-width: 0; padding: 14px 12px; background: #fafbf8; }
.session-facts span, .session-facts strong { display: block; }
.session-facts span { margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.session-facts strong { color: var(--text); font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.simple-sessions .session-next { max-width: 420px; margin: 0; color: #4b5847; font-size: 12px; line-height: 1.75; }
.simple-sessions form { gap: 15px; padding: clamp(24px,4vw,36px); border: 1px solid #3f54361a; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px #3443290d; }
.request-form-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.request-form-head > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e9f1df; color: #4c643f; font-size: 10px; font-weight: 650; }
.request-form-head h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.request-form-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.simple-sessions label { font-size: 11px; }
.simple-sessions input:not([type=checkbox]), .simple-sessions textarea { background: #fafbf8; padding: 11px 12px; font-size: 12px; border-radius: 9px; }
.simple-sessions textarea { min-height: 80px; }
.simple-sessions .checkbox { padding-top: 2px; font-size: 10px; color: var(--muted); }
.request-actions { display: flex; align-items: center; gap: 15px; }
.request-actions .small { font-size: 10px; max-width: 210px; line-height: 1.6; }
.request-actions .button { min-width: 160px; box-shadow: 0 8px 22px #78986220; }
.request-success { padding: 10px 0; }
.request-success .success-icon { width: 42px; height: 42px; margin-bottom: 16px; }
.request-success h2 { font-size: 23px; }
.request-success p { font-size: 13px; }
.minimal-videos { padding-top: 30px; padding-bottom: 35px; border-top: 1px solid var(--line); }
.video-grid { gap: 16px; }
.video-thumb { aspect-ratio: 16/9; border-radius: 8px; margin-bottom: 14px; background: #e8ece3; }
.video-card { text-align: start; }
.video-card h3 { font-size: 19px; }
.video-card p { font-size: 12px; }
.simple-support { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; margin-top: 16px; margin-bottom: 24px; border: 1px solid #76698716; border-radius: 18px; background: linear-gradient(120deg, #f0f4e9, #f3edf4); }
.simple-support h2 { font-size: 20px; margin-bottom: 6px; }
.simple-support p { font-size: 12px; color: var(--muted); margin: 0; }
.support-kicker { display: block; margin-bottom: 8px; color: #6d5d77; font-size: 9px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.simple-support > div:first-child { max-width: 620px; }
.simple-support .button { background: #ffffff82; border-color: #6957772b; }
.simple-support > div:last-child > .small { margin-top: 8px; font-size: 10px; }
.minimal-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 22px !important; padding-bottom: 24px !important; font-size: 10px; }
.minimal-footer > div { display: flex; gap: 20px; }
.page-head { padding-top: 38px; padding-bottom: 24px; }
.page-head h1 { font-size: 32px; margin-bottom: 10px; }
.page-head p { font-size: 13px; margin: 0; }
.library { padding-bottom: 50px; }
.content-language-note { font-size: 11px; color: var(--muted); margin: 20px 0 0; }
.course-page-simple { max-width: 780px; padding-top: 42px; padding-bottom: 76px; }
.course-page-simple > header { margin: 34px 0 30px; }
.course-page-simple h1 { max-width: 720px; margin: 8px 0 14px; font-size: clamp(38px,6vw,66px); line-height: 1.12; }
.course-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.course-cover { width: 100%; max-height: 480px; margin: 0 0 34px; border-radius: 18px; object-fit: contain; background: #f1f2ef; }
.course-introduction { margin: 0 0 36px; padding-bottom: 30px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.9; }
.course-body { max-width: 680px; }
.course-back { margin-top: 48px; }
.chip { padding: 7px 13px; font-size: 11px; border-radius: 6px; }
.course-intro h1 { font-size: 36px; }
.course-intro-grid { gap: 35px; }
.course-intro-grid .course-art { height: 240px; }
.course-intro-grid .lead { font-size: 15px; }
.course-overview { margin-top: 45px; padding-top: 30px; gap: 40px; }
.course-overview h2 { font-size: 25px; }
.curriculum h3 { font-size: 21px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 23px; }
.legal p { font-size: 14px; }
html[lang=ar] { --sans: 'Noto Sans Arabic', system-ui, sans-serif; }
html[lang=ar] body { line-height: 1.9; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=ar] .eyebrow { letter-spacing: 0; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3 { line-height: 1.6; }
html[lang=ar] .brand { font-family: 'DM Sans', system-ui, sans-serif; }
html[dir=rtl] [data-icon=arrow] { transform: rotate(180deg); }
html[dir=rtl] .lesson-sidebar { border-right: 0; border-left: 1px solid var(--line); }
html[dir=rtl] summary small { float: left; }
html[dir=rtl] .prose blockquote { border-left: 0; border-right: 2px solid #a291b3; border-radius: 10px 0 0 10px; }
html[dir=rtl] .modal-close { right: auto; left: 10px; }
html[dir=rtl] dialog h2 { padding-right: 0; padding-left: 25px; }
html[dir=rtl] .hero-link:hover svg { transform: rotate(180deg) translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .hero-aura span { animation: none !important; }
}
@media (max-width: 760px) {
  body:not(.admin-mode) .shell { width: calc(100% - 36px); }
  .site-header nav { height: 62px; gap: 12px; }
  .nav-tools { margin-inline-start: auto; }
  .nav-links { top: 62px; z-index: 30; padding: 20px; font-size: 13px; }
  .brand { font-size: 20px; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 8px; }
  .mini-hero { min-height: 0; margin-top: 18px; margin-bottom: 34px; padding: 24px 22px; border-radius: 22px; }
  .hero-kicker { margin-bottom: 10px; font-size: 9px; }
  .mini-hero h1 { margin-bottom: 12px; font-size: clamp(32px, 9.5vw, 42px); line-height: 1.18; }
  .mini-hero p { margin-bottom: 14px; font-size: 12px; line-height: 1.65; }
  .hero-link { font-size: 11px; }
  html[lang=ar] .mini-hero h1 { line-height: 1.32; }
  .section-head h2, .simple-sessions h2 { font-size: 21px; }
  .section-head > .text-link { margin-top: 0; font-size: 11px; }
  .course-card h3 { font-size: 21px; }
  .course-card-body { padding: 19px; }
  .course-card p { margin-bottom: 14px; }
  .home-courses { padding-bottom: 30px; }
  .simple-sessions { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 46px; }
  .simple-sessions h2 { font-size: 34px; }
  .simple-sessions form { padding: 22px; }
  .session-facts > div { padding: 12px 9px; }
  .simple-sessions .session-copy > .small { max-width: none; }
  .simple-sessions .session-copy > p { margin-bottom: 8px; }
  .simple-support { align-items: flex-start; flex-direction: column; gap: 18px; padding: 25px; }
  .minimal-footer { gap: 15px; flex-wrap: wrap; }
  .minimal-footer > div { gap: 16px; }
  .course-intro-grid .course-art { height: 180px; }
  .course-intro h1 { font-size: 30px; }
  html[dir=rtl] .lesson-sidebar { border-left: 0; }
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; }.session-facts { grid-template-columns: 1fr; }.session-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.session-facts span { margin: 0; }.request-actions { align-items: stretch; flex-direction: column; gap: 10px; }.request-actions .button { width: 100%; }.request-actions .small { max-width: none; text-align: center; } }

/* A simpler, guided course-writing workspace. */
.admin-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-theme-switch { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 9px; }
.admin-theme-switch:hover { background: #25342009; color: var(--text); }
.login-page > .admin-theme-switch { position: absolute; top: 24px; inset-inline-end: 24px; }
.editor-advanced { margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; }
.editor-advanced > summary { padding: 13px 15px; border: 0; font-size: 11px; font-weight: 600; }
.editor-advanced > summary span { float: right; color: var(--muted); font-size: 9px; font-weight: 400; }
.advanced-fields { display: grid; gap: 15px; padding: 4px 15px 16px; }
.field-help { margin: -9px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.translate-field { position: relative; min-width: 0; }
.translate-field > label { display: block; }
.translate-field input, .translate-field textarea { padding-inline-end: 78px; }
.translate-button { position: absolute; top: 29px; inset-inline-end: 8px; z-index: 2; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel2); color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .02em; }
.translate-button:hover { color: var(--text); border-color: #87709755; }
.translate-button:disabled { cursor: wait; }
.lesson-title-wrap { position: relative; min-width: 0; }
.lesson-title-wrap .lesson-title-input { padding-inline-end: 74px; }
.lesson-title-wrap .translate-button { top: 50%; transform: translateY(-50%); }
.course-wizard { display: grid; grid-template-columns: minmax(0,1fr) 245px; gap: 22px; align-items: start; }
.wizard-main { min-width: 0; }
.wizard-panel[hidden] { display: none; }
.wizard-panel > h2, .wizard-panel-heading h2 { margin: 0 0 8px; font-size: 27px; }
.wizard-intro { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.wizard-panel > form { grid-template-columns: repeat(2,minmax(0,1fr)); }
.wizard-panel > form > label:has(textarea), .wizard-panel > form > .media-input, .wizard-panel > form > .editor-advanced { grid-column: 1/-1; }
.wizard-panel-heading { margin-bottom: 18px; padding: 4px 2px; }
.wizard-sidebar { position: sticky; top: 20px; padding: 18px; }
.wizard-step { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 7px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); text-align: start; }
.wizard-step b { width: 27px; height: 27px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; font-size: 9px; }
.wizard-step span, .wizard-step strong, .wizard-step small { display: block; }
.wizard-step strong { color: var(--text); font-size: 11px; font-weight: 550; }
.wizard-step small { margin-top: 2px; font-size: 8px; }
.wizard-step.current { color: var(--text); }
.wizard-step.current b { background: #dde9d1; border-color: #cbdcbb; color: #38502d; }
.wizard-actions { display: grid; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.wizard-actions > p { min-height: 15px; margin: 0 0 2px; color: var(--muted); font-size: 9px; text-align: center; }
.wizard-actions > .button { width: 100%; }
.wizard-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.review-summary { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.review-summary > div:first-child strong, .review-summary > div:first-child span { display: block; }
.review-summary > div:first-child strong { font-size: 18px; }
.review-summary > div:first-child span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.review-numbers { display: flex; gap: 25px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-numbers span { color: var(--muted); font-size: 9px; }
.review-numbers b { display: block; margin-bottom: 3px; color: var(--text); font-size: 18px; }
.publish-checklist { display: grid; gap: 8px; margin: 20px 0; }
.publish-checklist > div { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.publish-checklist > div.ready { color: var(--text); }
.publish-checklist > div span { width: 18px; color: #937d9d; font-size: 14px; }
.publish-checklist > div.ready span { color: #607a4b; }
.course-authoring { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 18px; align-items: start; }
.lesson-list { position: sticky; top: 18px; padding: 15px; }
.lesson-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 3px 14px; }
.lesson-list-head h2 { margin: 0; font-size: 18px; }
.lesson-list-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.lesson-section { margin-bottom: 14px; }
.lesson-section-head { display: flex; align-items: center; gap: 3px; padding: 5px 3px; }
.lesson-section-head input { height: 30px; margin: 0; padding: 4px 6px; border: 0; background: transparent; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.lesson-section-head > div { display: flex; opacity: 0; transition: opacity .15s; }
.lesson-section-head:hover > div, .lesson-section-head:focus-within > div { opacity: 1; }
.lesson-section-head .icon-button { min-width: 23px; min-height: 23px; font-size: 12px; }
.lesson-row { display: flex; align-items: center; gap: 3px; margin: 3px 0; border-radius: 8px; }
.lesson-row.selected { background: #edf3e6; }
.lesson-select { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 10px; border: 0; background: transparent; color: inherit; text-align: start; }
.lesson-select span { width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 8px; }
.lesson-select b { overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.lesson-row-actions { display: none; align-items: center; }
.lesson-row:hover .lesson-row-actions, .lesson-row:focus-within .lesson-row-actions { display: flex; }
.lesson-row-actions .icon-button { min-width: 23px; min-height: 23px; font-size: 12px; }
.add-section { margin: 4px; color: var(--muted); font-size: 10px; }
.course-editor-simple { display: grid; grid-template-columns: minmax(270px,.68fr) minmax(0,1.32fr); gap: 18px; align-items: start; }
.course-version-bar { display: inline-flex; gap: 4px; margin: -12px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.course-version-bar button { padding: 8px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; }
.course-version-bar button.selected { background: var(--text); color: var(--bg); }
.course-version-bar button:last-child { font-family: 'Noto Sans Arabic', sans-serif; }
[data-course-version=ar] label { font-family: 'Noto Sans Arabic', sans-serif; text-align: right; }
[data-writing-language=ar] input, [data-writing-language=ar] textarea { direction: rtl; text-align: right; font-family: 'Noto Sans Arabic', sans-serif; }
[data-writing-language=en] input, [data-writing-language=en] textarea { direction: ltr; text-align: left; font-family: 'DM Sans', system-ui, sans-serif; }
.course-content-canvas[dir=rtl] .course-content-head, .course-content-canvas[dir=rtl] .content-picker { text-align: right; }
.course-content-canvas[dir=rtl] .block-toolbar { direction: rtl; text-align: right; }
.course-content-canvas { min-height: 580px; padding: clamp(24px,4vw,44px); }
.course-content-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.course-content-head h2 { margin: 7px 0 0; }
.lesson-canvas-head { display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 20px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.lesson-title-input { margin: 0; padding: 0; border: 0; background: transparent; font-size: clamp(25px,3vw,36px); font-weight: 600; letter-spacing: -.04em; }
.lesson-canvas-head label { font-size: 9px; }
.lesson-canvas-head label input { margin-top: 4px; padding: 7px 8px; font-size: 10px; }
.canvas-help { margin: 14px 0 24px; color: var(--muted); font-size: 10px; }
.course-content-canvas .block-editor { margin: 16px 0; border-radius: 11px; }
.course-content-canvas .block-toolbar { padding: 8px 12px; }
.course-content-canvas .block-editor [data-block] { padding: 18px; }
.course-content-canvas .block-editor textarea { font-size: 13px; line-height: 1.75; }
.content-picker { margin-top: 24px; padding: 16px; border: 1px dashed var(--line); border-radius: 11px; text-align: center; }
.content-picker > strong { display: block; margin-bottom: 10px; font-size: 10px; }
.content-picker > div { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.content-type { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); font-size: 9px; }
.content-type:hover { background: var(--panel2); }
.content-type span { color: var(--muted); }
.lesson-empty { min-height: 420px; display: grid; place-content: center; }

/* Session calendar. */
.calendar-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.calendar-stats > div { padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.calendar-stats span, .calendar-stats strong { display: block; }
.calendar-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.calendar-stats strong { margin-top: 5px; font-size: 24px; font-weight: 550; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 18px; align-items: start; }
.calendar-panel { min-width: 0; padding: 18px; }
.calendar-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.calendar-toolbar h2 { min-width: 180px; margin: 0 8px; font-size: 22px; }
.calendar-toolbar #calendar-today { margin-inline-start: auto; }
.calendar-scroll { overflow-x: auto; }
.calendar-weekdays, .calendar-grid { min-width: 680px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays span { padding: 8px; color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.calendar-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.calendar-day { min-height: 112px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.calendar-day.outside { background: var(--panel2); opacity: .52; }
.calendar-day-number { width: 24px; height: 24px; display: grid; place-items: center; margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.calendar-day.today .calendar-day-number { border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; }
.calendar-event { width: 100%; display: block; margin: 4px 0; padding: 6px 7px; overflow: hidden; border: 0; border-inline-start: 3px solid #8f789b; border-radius: 5px; background: #eee8f1; color: #302a34; text-align: start; }
.calendar-event:hover { background: #e4d9e9; }
.calendar-event b, .calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event b { font-size: 8px; }
.calendar-event span { margin-top: 1px; font-size: 9px; }
.calendar-event.completed { border-inline-start-color: #789061; background: #e7efdf; }
.calendar-queue { padding: 18px; }
.calendar-queue .panel-head { align-items: flex-start; margin-bottom: 8px; }
.calendar-queue h2 { font-size: 20px; }
.calendar-queue .panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.queue-count { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--panel2); color: var(--muted); font-size: 9px; }
.queue-request { padding: 14px 0; border-top: 1px solid var(--line); }
.queue-request > div { display: flex; align-items: center; gap: 9px; }
.queue-request > div:first-child span:last-child { min-width: 0; }
.queue-request strong, .queue-request small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-request strong { font-size: 11px; font-weight: 550; }
.queue-request small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.queue-request > div:last-child { justify-content: flex-end; margin-top: 10px; }
.queue-request > div:last-child a { color: var(--muted); font-size: 9px; }

/* A true-black night palette shared by the public site and studio. */
html[data-theme=dark] {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0e0e10;
  --panel2: #171719;
  --text: #f3f1f4;
  --muted: #aaa6ae;
  --accent: #eee9f1;
  --lavender: #c8b3d3;
  --line: #ffffff18;
}
html[data-theme=dark] body:not(.admin-mode) { background: #050505; color: var(--text); }
html[data-theme=dark] .site-header { background: #050505e6; border-color: #ffffff12; }
html[data-theme=dark] .brand-dot { background: #d2bddc; box-shadow: 0 0 0 5px #d2bddc12; }
html[data-theme=dark] .brand-logo { border-color: #ffffff20; box-shadow: 0 3px 14px #0008; }
html[data-theme=dark] .nav-links, html[data-theme=dark] .minimal-footer { color: #a8a5ac; }
html[data-theme=dark] .nav-links a.active, html[data-theme=dark] a:hover { color: #eadff0; }
html[data-theme=dark] .theme-switch, html[data-theme=dark] .language-switch { background: #111113; border-color: #ffffff1c; color: #d4d0d7; }
html[data-theme=dark] .theme-switch:hover, html[data-theme=dark] .language-switch:hover { background: #1c1c1f; color: #fff; }
html[data-theme=dark] .mini-hero { border-color: #ffffff14; background: #0b0b0d; box-shadow: 0 34px 100px #000, inset 0 1px #ffffff0d; }
html[data-theme=dark] .hero-aura { background: #070707; }
html[data-theme=dark] .hero-aura span:nth-child(1) { background: #e7cfe8; opacity: .66; }
html[data-theme=dark] .hero-aura span:nth-child(2) { background: #cde5bd; opacity: .66; }
html[data-theme=dark] .hero-aura span:nth-child(3) { background: #f0d4b9; opacity: .4; }
html[data-theme=dark] .hero-kicker, html[data-theme=dark] .hero-mark { color: #cdbbd6; }
html[data-theme=dark] .mini-hero p { color: #bbb7be; }
html[data-theme=dark] .hero-link { color: #f0e8f3; border-color: #a989b5; }
html[data-theme=dark] .course-card, html[data-theme=dark] .simple-sessions form, html[data-theme=dark] .curriculum, html[data-theme=dark] dialog { background: #0d0d0f; border-color: #ffffff16; box-shadow: 0 24px 60px #0008; }
html[data-theme=dark] .course-card.has-cover .course-art { background: #111113; }
html[data-theme=dark] .course-card:hover { border-color: #b79bc44d; box-shadow: 0 26px 58px #000b; }
html[data-theme=dark] .home-empty { background: #0b0b0c; border-color: #ffffff20; }
html[data-theme=dark] .home-empty span { color: #c2a9cd; }
html[data-theme=dark] .simple-sessions.home-sessions, html[data-theme=dark] .minimal-videos { border-color: #ffffff12; }
html[data-theme=dark] .session-label { color: #c8b2d2; }
html[data-theme=dark] .simple-sessions .session-description, html[data-theme=dark] .simple-sessions .session-next { color: #aaa7ae; }
html[data-theme=dark] .session-facts { background: #ffffff12; border-color: #ffffff12; }
html[data-theme=dark] .session-facts > div { background: #0a0a0b; }
html[data-theme=dark] .request-form-head > span { background: #241d27; color: #d6c3de; }
html[data-theme=dark] input, html[data-theme=dark] textarea, html[data-theme=dark] select, html[data-theme=dark] .simple-sessions input:not([type=checkbox]), html[data-theme=dark] .simple-sessions textarea { background: #050505; border-color: #ffffff1d; color: #f3f1f4; }
html[data-theme=dark] input::placeholder, html[data-theme=dark] textarea::placeholder { color: #737077; }
html[data-theme=dark] label { color: #cfccd1; }
html[data-theme=dark] .button { background: #171719; color: #f3f1f4; }
html[data-theme=dark] .button.primary { background: #eee9f1; border-color: #eee9f1; color: #090909; }
html[data-theme=dark] .button.primary:hover { background: #fff; }
html[data-theme=dark] .simple-support { background: linear-gradient(120deg, #0c0b0d, #171119); border-color: #ffffff16; }
html[data-theme=dark] .support-kicker { color: #c9afd5; }
html[data-theme=dark] .simple-support .button { background: #ffffff08; border-color: #ffffff24; }
html[data-theme=dark] .search-field, html[data-theme=dark] .chip { background: #0b0b0c; border-color: #ffffff1b; }
html[data-theme=dark] .chip.selected { background: #eee9f1; border-color: #eee9f1; color: #090909; }
html[data-theme=dark] .lesson-sidebar { background: #09090a; }
html[data-theme=dark] .lesson-nav.current { background: #211a24; color: #dfcfe6; }
html[data-theme=dark] .prose { color: #bbb8be; }
html[data-theme=dark] .prose blockquote { background: #171219; border-color: #92759f; }
html[data-theme=dark] .prose blockquote p { color: #cdbbd5; }
html[data-theme=dark] .empty { border-color: #ffffff1b; }
html[data-theme=dark] #toast { background: #eee9f1; color: #090909; border-color: #eee9f1; }
html[data-theme=dark] body.admin-mode, html[data-theme=dark] .admin-main { background: #050505; color: var(--text); }
html[data-theme=dark] .admin-sidebar { background: #080808; border-color: #ffffff13; }
html[data-theme=dark] .admin-topbar { background: #070707; border-color: #ffffff13; }
html[data-theme=dark] .admin-theme-switch { background: #111113; border-color: #ffffff1c; color: #c9c5cc; }
html[data-theme=dark] .admin-theme-switch:hover { background: #1b1b1e; color: #fff; }
html[data-theme=dark] .admin-sidebar nav a.current { background: #211a24; color: #dccbe4; }
html[data-theme=dark] .admin-sidebar nav .count { background: #e9e2ed; color: #090909; }
html[data-theme=dark] .stat-card, html[data-theme=dark] .panel, html[data-theme=dark] .login-card, html[data-theme=dark] .media-card { background: #0d0d0f; border-color: #ffffff15; }
html[data-theme=dark] .stat-card > span svg, html[data-theme=dark] .studio-note svg { color: #c8b3d3; }
html[data-theme=dark] .mini-art { background: #2a202e; color: #d7c3df; }
html[data-theme=dark] .avatar { background: #241d27; color: #d7c3df; }
html[data-theme=dark] .badge { background: #ffffff0c; color: #aaa6ae; }
html[data-theme=dark] .badge.published, html[data-theme=dark] .badge.completed { background: #eee9f112; color: #eee9f1; }
html[data-theme=dark] .badge.new { background: #c8b3d31c; color: #d6c1df; }
html[data-theme=dark] .studio-note { background: #ffffff05; border-color: #ffffff12; }
html[data-theme=dark] .block-editor { border-color: #ffffff17; }
html[data-theme=dark] .block-toolbar { background: #151517; }
html[data-theme=dark] .lesson-row.selected { background: #241d27; }
html[data-theme=dark] .wizard-step.current b { background: #eee9f1; border-color: #eee9f1; color: #090909; }
html[data-theme=dark] .review-summary { background: #111113; }
html[data-theme=dark] .publish-checklist > div.ready span { color: #d2bddc; }
html[data-theme=dark] .lesson-section-head input, html[data-theme=dark] .lesson-title-input { background: transparent; }
html[data-theme=dark] .editor-advanced { border-color: #ffffff18; }
html[data-theme=dark] .translate-button { background: #19191c; border-color: #ffffff1c; color: #bdb9c0; }
html[data-theme=dark] .content-type { border-color: #ffffff1b; }
html[data-theme=dark] .content-type:hover { background: #1a1a1d; }
html[data-theme=dark] .calendar-event { background: #241d27; color: #eadff0; border-inline-start-color: #c8b3d3; }
html[data-theme=dark] .calendar-event:hover { background: #302436; }
html[data-theme=dark] .calendar-event.completed { background: #182018; border-inline-start-color: #a8bd95; color: #dce8d2; }
html[data-theme=dark] .media-thumb, html[data-theme=dark] .media-pick { background: #09090a; }
html[data-theme=dark] .login-page { background: radial-gradient(ellipse at 50% 20%, #241a28, #050505 65%); }
@media (max-width: 1100px) {
  .course-wizard { grid-template-columns: minmax(0,1fr) 220px; }
  .course-authoring { grid-template-columns: 220px minmax(0,1fr); }
  .calendar-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html[data-theme=dark] .nav-links { background: #09090a; border-color: #ffffff16; }
  .course-wizard { grid-template-columns: 1fr; }
  .wizard-sidebar { position: static; grid-row: 1; }
  .wizard-main { grid-row: 2; }
  .wizard-panel > form { grid-template-columns: 1fr; }
  .wizard-panel > form > * { grid-column: 1/-1; }
  .wizard-step { padding: 8px 5px; }
  .wizard-actions { grid-template-columns: 1fr 1fr; }
  .wizard-actions > p, .wizard-actions > .button.primary, .wizard-nav { grid-column: 1/-1; }
  .course-authoring { grid-template-columns: 1fr; }
  .lesson-list { position: static; }
  .course-editor-simple { grid-template-columns: 1fr; }
  .course-content-canvas { min-height: 420px; padding: 22px; }
  .lesson-canvas-head { grid-template-columns: 1fr; }
  .admin-brand-row { gap: 8px; }
  .admin-theme-switch span { display: none; }
  .admin-theme-switch { width: 34px; height: 34px; justify-content: center; padding: 0; }
  .calendar-stats { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .calendar-stats > div { padding: 11px; }
  .calendar-stats strong { font-size: 19px; }
  .calendar-panel { padding: 12px; }
  .calendar-toolbar h2 { min-width: 0; flex: 1; font-size: 18px; }
}

/* Beit Mona guest-house story and direct-booking page. */
.guest-preview { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 270px; margin-bottom: 64px; overflow: hidden; border: 1px solid #51483816; border-radius: 22px; background: #f2eee7; box-shadow: 0 22px 60px #453a2b0d; }
.guest-preview > img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.guest-preview > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(28px,5vw,54px); }
.guest-preview-kicker, .guest-eyebrow { color: #6b6657; font-size: 9px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
.guest-preview h2 { margin: 8px 0 10px; font-size: clamp(32px,4vw,48px); }
.guest-preview p { max-width: 430px; margin: 0 0 22px; color: #646156; font-size: 12px; line-height: 1.8; }
.guest-preview .text-link { color: #3e4936; font-weight: 600; }
.guest-house-page { overflow: hidden; }
.guest-hero { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(28px,5vw,58px); align-items: center; min-height: 560px; padding-top: 28px; padding-bottom: 28px; }
.guest-hero-copy { padding-inline-start: clamp(0px,2vw,22px); }
.guest-hero h1 { margin: 13px 0 15px; font-size: clamp(58px,8vw,96px); line-height: .95; letter-spacing: -.07em; }
.guest-hero p { max-width: 390px; margin: 0 0 28px; color: #5f6158; font-size: clamp(16px,2vw,20px); line-height: 1.65; }
.guest-hero > img { width: 100%; height: 510px; border-radius: 30px 4px 30px 4px; object-fit: cover; box-shadow: 0 28px 80px #2d352719; }
.guest-hero .button { box-shadow: 0 10px 28px #60765325; }
.guest-facts { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 12px; margin-bottom: 70px; overflow: hidden; border-top: 1px solid #4b524522; border-bottom: 1px solid #4b524522; }
.guest-facts > div { padding: 20px 16px; text-align: center; }
.guest-facts > div + div { border-inline-start: 1px solid #4b524522; }
.guest-facts strong { font-size: 12px; font-weight: 550; }
.guest-gallery-section { padding-bottom: 88px; }
.guest-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.guest-section-heading > span { font-size: 13px; font-weight: 600; }
.guest-section-heading .text-button { color: var(--muted); }
.guest-gallery { display: grid; grid-template-columns: 1.65fr 1fr 1fr; grid-template-rows: repeat(2,190px); gap: 8px; overflow: hidden; border-radius: 20px; }
.guest-photo { min-width: 0; padding: 0; overflow: hidden; border: 0; background: #e7e8e2; }
.guest-photo:first-child { grid-row: 1 / 3; }
.guest-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.guest-photo:hover img { transform: scale(1.025); filter: saturate(1.05); }
.guest-photo:focus-visible { outline: 3px solid #73846a; outline-offset: -5px; }
.guest-story { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(44px,8vw,92px); align-items: center; padding-bottom: 96px; }
.guest-story h2, .guest-amenities h2, .guest-nearby h2, .guest-booking h2, .guest-mona-section h2 { margin: 12px 0 22px; font-size: clamp(38px,5vw,60px); line-height: 1.08; letter-spacing: -.055em; }
.guest-story p { max-width: 500px; color: #5e625a; font-size: 14px; line-height: 1.95; }
.guest-access-note { margin-top: 28px; padding-top: 23px; border-top: 1px solid #4b524522; font-size: 11px !important; }
.guest-story > img { width: 100%; height: 480px; border-radius: 4px 28px 4px 28px; object-fit: cover; }
.guest-mona-section { margin-bottom: 96px; padding: 78px 0; background: linear-gradient(120deg,#dce7d6,#edf0dd); color: #273125; }
.guest-mona-inner { display: grid; grid-template-columns: 78px minmax(0,1fr) 175px; gap: 34px; align-items: center; }
.guest-mona-mark { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #41523a45; border-radius: 50%; font-size: 22px; }
.guest-mona-section h2 { max-width: 660px; margin-bottom: 14px; }
.guest-mona-section p { max-width: 680px; margin: 0; color: #4a5846; font-size: 14px; line-height: 1.9; }
.guest-mona-fact { padding-inline-start: 28px; border-inline-start: 1px solid #41523a35; }
.guest-mona-fact strong, .guest-mona-fact span { display: block; }
.guest-mona-fact strong { font: 400 32px/1.1 var(--serif); }
.guest-mona-fact span { margin-top: 8px; color: #61705d; font-size: 10px; }
.guest-amenities { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(45px,8vw,90px); align-items: start; padding-bottom: 98px; }
.guest-section-intro h2 { font-size: clamp(34px,4vw,48px); }
.guest-amenity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; border-top: 1px solid #4b524522; }
.guest-amenity-grid > div { display: flex; align-items: center; gap: 12px; min-height: 57px; border-bottom: 1px solid #4b524522; color: #484f45; font-size: 12px; }
.guest-amenity-grid svg { flex: 0 0 auto; color: #6d8063; }
.guest-nearby { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px,8vw,90px); align-items: start; margin-bottom: 96px; padding-top: 58px; border-top: 1px solid #4b524522; }
.guest-nearby h2 { max-width: 430px; font-size: clamp(34px,4vw,48px); }
.guest-nearby-list > div { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid #4b524522; }
.guest-nearby-list strong { font-size: 13px; font-weight: 550; }
.guest-nearby-list span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.guest-booking { scroll-margin-top: 95px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; margin-bottom: 78px; overflow: hidden; border: 1px solid #4b52451e; border-radius: 24px; background: #f0ede6; }
.guest-booking > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.guest-booking > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(30px,6vw,66px); }
.guest-booking h2 { margin-bottom: 15px; font-size: clamp(36px,4.5vw,52px); }
.guest-booking p { max-width: 470px; margin-bottom: 25px; color: #5f6158; font-size: 13px; line-height: 1.85; }
.guest-booking small { display: block; margin-top: 16px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.guest-call { flex-wrap: wrap; white-space: normal; }
.guest-call span, .guest-call strong { display: block; }
.guest-call strong { font-size: 14px; font-weight: 650; }
.guest-phone-pending { margin: 14px 0 0 !important; color: var(--muted) !important; font-size: 10px !important; }
.guest-modal-head { padding-inline-end: 42px; }
.guest-modal-head h2 { margin: 8px 0 22px; }
.guest-modal-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guest-modal-gallery img { width: 100%; aspect-ratio: 4/3; border-radius: 10px; object-fit: cover; }
dialog:has(.guest-modal-gallery) { width: min(900px,calc(100% - 32px)); max-width: 900px; max-height: 88vh; }

html[data-theme=dark] .guest-preview, html[data-theme=dark] .guest-booking { border-color: #ffffff16; background: #0f0f0e; box-shadow: 0 28px 70px #0008; }
html[data-theme=dark] .guest-preview p, html[data-theme=dark] .guest-hero p, html[data-theme=dark] .guest-story p, html[data-theme=dark] .guest-booking p { color: #b7b4ad; }
html[data-theme=dark] .guest-preview-kicker, html[data-theme=dark] .guest-eyebrow { color: #c7b9cc; }
html[data-theme=dark] .guest-preview .text-link, html[data-theme=dark] .guest-amenity-grid svg { color: #cfbdd6; }
html[data-theme=dark] .guest-facts, html[data-theme=dark] .guest-facts > div + div, html[data-theme=dark] .guest-access-note, html[data-theme=dark] .guest-amenity-grid, html[data-theme=dark] .guest-amenity-grid > div, html[data-theme=dark] .guest-nearby, html[data-theme=dark] .guest-nearby-list > div { border-color: #ffffff17; }
html[data-theme=dark] .guest-mona-section { background: linear-gradient(120deg,#121612,#1b1a18); color: #f1eff1; }
html[data-theme=dark] .guest-mona-section p { color: #b4b5ad; }
html[data-theme=dark] .guest-mona-mark, html[data-theme=dark] .guest-mona-fact { border-color: #ffffff20; }
html[data-theme=dark] .guest-mona-fact span, html[data-theme=dark] .guest-amenity-grid > div { color: #b7b4bb; }

@media (max-width: 820px) {
  .guest-preview { grid-template-columns: 1fr; }
  .guest-preview > img { max-height: 320px; }
  .guest-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 46px; }
  .guest-hero-copy { padding: 0; }
  .guest-hero > img { height: min(68vw,500px); }
  .guest-story, .guest-amenities, .guest-nearby { grid-template-columns: 1fr; }
  .guest-story { gap: 36px; }
  .guest-story > img { height: min(70vw,460px); }
  .guest-mona-inner { grid-template-columns: 60px 1fr; }
  .guest-mona-fact { grid-column: 2; padding: 20px 0 0; border-inline-start: 0; border-top: 1px solid #41523a35; }
}
@media (max-width: 600px) {
  .guest-preview { margin-bottom: 42px; }
  .guest-hero { padding-top: 32px; padding-bottom: 18px; }
  .guest-hero h1 { font-size: 58px; }
  .guest-hero > img { height: 78vw; border-radius: 22px 3px 22px 3px; }
  .guest-facts { grid-template-columns: 1fr 1fr; margin-bottom: 48px; }
  .guest-facts > div { padding: 15px 8px; }
  .guest-facts > div:nth-child(3) { border-inline-start: 0; border-top: 1px solid #4b524522; }
  .guest-facts > div:nth-child(4) { border-top: 1px solid #4b524522; }
  .guest-gallery-section, .guest-story, .guest-amenities { padding-bottom: 58px; }
  .guest-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px repeat(2,135px); }
  .guest-photo:first-child { grid-column: 1 / 3; grid-row: 1; }
  .guest-photo-2 { grid-column: 1; grid-row: 2; }
  .guest-photo-3 { grid-column: 2; grid-row: 2; }
  .guest-photo-4 { grid-column: 1; grid-row: 3; }
  .guest-photo-5 { grid-column: 2; grid-row: 3; }
  .guest-story h2, .guest-amenities h2, .guest-nearby h2, .guest-booking h2, .guest-mona-section h2 { font-size: 36px; }
  .guest-mona-section { margin-bottom: 60px; padding: 52px 0; }
  .guest-mona-inner { grid-template-columns: 1fr; gap: 20px; }
  .guest-mona-mark { width: 52px; height: 52px; }
  .guest-mona-fact { grid-column: 1; }
  .guest-amenity-grid { grid-template-columns: 1fr; }
  .guest-nearby { gap: 24px; margin-bottom: 60px; padding-top: 42px; }
  .guest-nearby-list > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .guest-booking { grid-template-columns: 1fr; margin-bottom: 52px; }
  .guest-booking > img { min-height: 280px; max-height: 340px; }
  .guest-modal-gallery { grid-template-columns: 1fr; }
}

/* Beit Mona editor in the content studio. */
.guest-house-admin { display: grid; gap: 18px; max-width: 1050px; }
.guest-house-admin .panel { padding: 26px; }
.guest-house-admin .panel > h2 { margin-bottom: 20px; }
.guest-house-admin .field-row { align-items: start; }
.guest-image-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guest-image-fields .media-input { min-width: 0; }
.guest-admin-save { position: sticky; bottom: 14px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8ed; box-shadow: 0 12px 35px #2633211c; backdrop-filter: blur(14px); }
html[data-theme=dark] .guest-admin-save { background: #0d0d0fed; box-shadow: 0 14px 35px #000a; }
@media (max-width: 760px) {
  .guest-image-fields { grid-template-columns: 1fr; }
  .guest-house-admin .panel { padding: 20px; }
  .guest-admin-save { align-items: stretch; flex-direction: column; }
}

/* Master class spotlight on the homepage. */
.masterclass { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(30px, 5vw, 70px); margin-bottom: 56px; padding: clamp(36px, 6vw, 76px); border: 1px solid #ffffff14; border-radius: 30px; background: radial-gradient(circle at 20% 35%, #7a58a066 0, transparent 46%), radial-gradient(circle at 88% 90%, #4f7a5c55 0, transparent 50%), linear-gradient(140deg, #121015, #1d1724 55%, #10130f); color: #f4f1f6; box-shadow: 0 30px 80px #1d142630; }
.masterclass::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#ffffff70 1px, transparent 1.3px); background-size: 34px 34px; opacity: .16; -webkit-mask-image: radial-gradient(circle at 30% 50%, #000, transparent 72%); mask-image: radial-gradient(circle at 30% 50%, #000, transparent 72%); }
.mc-visual { position: relative; justify-self: center; width: clamp(230px, 32vw, 370px); aspect-ratio: 1; }
.mc-logo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px #ffffff12, 0 0 90px #c7a8ff59, 0 26px 60px #0009; }
.mc-ring { position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 0deg, #d2bddc, transparent 25%, #d7edb7 50%, transparent 75%, #d2bddc); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); animation: mc-spin 14s linear infinite; }
.mc-spark { position: absolute; z-index: 2; color: #fff; font-size: 24px; line-height: 1; text-shadow: 0 0 14px #e6d4ff; animation: mc-twinkle 3.2s ease-in-out infinite; }
.mc-spark-1 { top: 2%; inset-inline-end: 4%; }
.mc-spark-2 { bottom: 8%; inset-inline-start: -2%; font-size: 15px; animation-delay: 1.1s; }
.mc-spark-3 { top: 20%; inset-inline-start: -7%; font-size: 11px; animation-delay: 2.1s; }
.mc-copy { position: relative; z-index: 1; max-width: 540px; }
.mc-kicker { display: inline-block; color: #d2bddc; font-size: 10px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.masterclass h2 { margin: 12px 0 20px; color: #fff; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.masterclass p { margin: 0; color: #cfc8d6; font-size: 14px; line-height: 1.85; }
.mc-soon { display: inline-flex; align-items: center; gap: 11px; padding: 10px 20px; border: 1px solid #ffffff30; border-radius: 999px; background: linear-gradient(110deg, #ffffff0d 30%, #ffffff33 50%, #ffffff0d 70%) 0 0 / 250% 100%; color: #fff; font-size: 13px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; animation: mc-shimmer 3.5s linear infinite; }
.mc-soon + p { margin-top: 22px; }
.mc-soon-dot { width: 8px; height: 8px; border-radius: 50%; background: #d7edb7; animation: mc-pulse 2s ease-out infinite; }
.mc-description { white-space: pre-line; }
.mc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 26px 0; }
.mc-facts > div { padding: 14px 16px; border: 1px solid #ffffff1c; border-radius: 14px; background: #ffffff0b; }
.mc-facts span { display: block; margin-bottom: 4px; color: #a99fb3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.mc-facts strong { color: #fff; font-size: 15px; font-weight: 600; }
.mc-description + .mc-join, .mc-kicker + h2 + .mc-join { margin-top: 26px; }
.mc-join { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.masterclass .button.primary { background: #d7edb7; border-color: transparent; color: #1f2b18; box-shadow: 0 10px 30px #d7edb733; }
.masterclass .button.primary:hover { background: #e4f5cb; }
.mc-sms { color: #d9d1e0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.mc-sms:hover { color: #fff; }
.mc-note { display: block; margin-top: 16px; color: #9d94a6; font-size: 11px; }
html[lang=ar] .mc-kicker, html[lang=ar] .mc-soon, html[lang=ar] .mc-facts span { letter-spacing: 0; }
html[lang=ar] .mc-kicker { font-size: 12px; }
html[data-theme=dark] .masterclass { border-color: #ffffff1f; box-shadow: 0 0 0 1px #ffffff08, 0 30px 80px #000; }
.mc-toggle { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; cursor: pointer; }
.mc-toggle input { width: 20px; height: 20px; margin-top: 1px; }
.mc-toggle strong { font-size: 13px; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
@keyframes mc-twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes mc-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
@keyframes mc-pulse { from { box-shadow: 0 0 0 0 #d7edb7a0; } to { box-shadow: 0 0 0 10px #d7edb700; } }
@media (max-width: 760px) {
  .masterclass { grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; padding: 38px 22px 40px; border-radius: 22px; text-align: center; }
  .mc-visual { width: min(70vw, 280px); }
  .mc-copy { margin-inline: auto; }
  .mc-join { justify-content: center; }
  .mc-facts { text-align: start; }
}
@media (prefers-reduced-motion: reduce) { .mc-ring, .mc-spark, .mc-soon, .mc-soon-dot { animation: none; } }

/* Beit Mona social links. */
.guest-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.guest-social > span { margin-inline-end: 4px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
html[lang=ar] .guest-social > span { font-size: 12px; letter-spacing: 0; }
.guest-social a { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; padding-inline: 12px 15px; border: 1px solid #4b52452a; border-radius: 999px; background: #ffffff8c; color: var(--text); font-size: 12px; font-weight: 550; transition: background .2s, border-color .2s, transform .2s; }
.guest-social a:hover { background: #fff; border-color: #4b52454d; color: var(--text); transform: translateY(-2px); }
.guest-booking small + .guest-social { margin-top: 20px; }
html[data-theme=dark] .guest-social a { background: #ffffff0d; border-color: #ffffff1f; color: #ecebe8; }
html[data-theme=dark] .guest-social a:hover { background: #ffffff1a; color: #fff; }
@media (prefers-reduced-motion: reduce) { .guest-social a { transition: none; } }

/* Homepage "follow my socials". */
.home-social { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: 28px; margin-top: 16px; padding: 34px 38px; border: 1px solid var(--line); border-radius: 18px; background: #ffffffa6; }
.home-social-kicker { color: #6e6185; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
html[lang=ar] .home-social-kicker { font-size: 12px; letter-spacing: 0; }
.home-social h2 { margin: 8px 0 6px; font-size: 22px; line-height: 1.4; }
.home-social p { margin: 0; color: var(--muted); font-size: 12px; }
.home-social-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.home-social-links a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.home-social-links a:hover { border-color: #2534203a; box-shadow: 0 10px 26px #2534200f; color: var(--text); transform: translateY(-2px); }
.home-social-links a > [data-icon=arrow] { flex-shrink: 0; margin-inline-start: auto; color: var(--muted); }
.home-social-icon { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #f1edf5; color: #5d4f73; }
.is-tiktok .home-social-icon { background: #e9f7f6; color: #121212; }
.is-youtube .home-social-icon { background: #ffeaed; color: #d4002b; }
.is-facebook .home-social-icon { background: #e8f0fe; color: #1a62d1; }
.is-instagram .home-social-icon { background: #fdeef5; color: #b8336f; }
.home-social-name { min-width: 0; }
.home-social-name strong { display: block; font-size: 13px; font-weight: 600; }
.home-social-name small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme=dark] .home-social { border-color: #ffffff14; background: #0e0e10; }
html[data-theme=dark] .home-social-links a { border-color: #ffffff17; background: #151517; }
html[data-theme=dark] .home-social-links a:hover { border-color: #ffffff30; box-shadow: none; }
html[data-theme=dark] .home-social-kicker { color: #d2bddc; }
html[data-theme=dark] .home-social-icon { background: #ffffff12; color: #ecebe8; }
html[data-theme=dark] .is-youtube .home-social-icon { color: #ff5c77; }
html[data-theme=dark] .is-facebook .home-social-icon { color: #7aa7f5; }
html[data-theme=dark] .is-instagram .home-social-icon { color: #f07fb0; }
@media (min-width: 761px) { .home-social-links a > [data-icon=arrow] { display: none; } }
@media (max-width: 760px) { .home-social { grid-template-columns: 1fr; gap: 20px; padding: 25px; } }
@media (prefers-reduced-motion: reduce) { .home-social-links a { transition: none; } }
