/* The approved A / B / C atmospheres share an open, photographic composition.
   Colour stays quiet around reading; actions keep their own clear shape. */
html[data-design="gallery"][data-layout]:not([data-theme="night"]){
  --bg:#fbf6ed;--surface:#fffaf2;--surface-raised:#fffcf7;--surface-soft:#eeeadd;
  --ink:#303b2e;--text:#303b2e;--muted:#59614e;--primary:#435638;--primary-dark:#32442a;
  --primary-soft:#e5eadc;--line:#dedfcf;--line-strong:#89957d;--button-ink:#fffdf7;
  --header-bg:#fbf6edf0;--nav-bg:#fbf6edf5;--field-bg:#fffcf5;
  --gallery-copper:#715236;--gallery-paper:#fbf6ed;--radius:24px;
  --turning-accent:var(--primary);--turning-accent-hover:var(--primary-dark);
  --dreamy-art:url('assets/dreamy/breeze-margins.svg');
}
html[data-design="gallery"][data-layout="watercolour"]:not([data-theme="night"]){
  --bg:#fbf3eb;--surface:#fff8f2;--surface-raised:#fffbf8;--surface-soft:#f0e3e2;
  --ink:#493b44;--text:#493b44;--muted:#705d66;--primary:#785267;--primary-dark:#614056;
  --primary-soft:#f0e0e8;--line:#e5d5d6;--line-strong:#ad8f9c;--button-ink:#fffcf6;
  --header-bg:#fbf3ebed;--nav-bg:#fbf3ebf5;--field-bg:#fff9f4;
  --gallery-copper:#805d47;--gallery-paper:#fbf3eb;
  --dreamy-art:url('assets/dreamy/watercolour-margins.svg');
}
html[data-design="gallery"][data-theme="night"]{
  --bg:#151b11;--surface:#1d2418;--surface-raised:#252e20;--surface-soft:#303824;
  --ink:#f5efde;--text:#f5efde;--muted:#c9ccb8;--primary:#e0c993;--primary-dark:#f1ddb1;
  --primary-soft:#343b26;--line:#434a34;--line-strong:#a1a384;--button-ink:#242c1b;
  --header-bg:#151b11ed;--nav-bg:#151b11f5;--field-bg:#222b1a;
  --gallery-copper:#e1c29a;--gallery-paper:#151b11;--radius:24px;
  --turning-accent:var(--primary);--turning-accent-hover:var(--primary-dark);
  --dreamy-art:radial-gradient(ellipse at 2% 16%,#8a744b16,transparent 32%),radial-gradient(ellipse at 97% 75%,#6b77311c,transparent 34%);
}
html[data-design="gallery"] body{
  background-color:var(--bg);background-image:var(--dreamy-art);
  background-position:top center;background-size:100% auto;background-repeat:no-repeat;
}
html[data-design="gallery"] .site-header{border:0;background:var(--header-bg);box-shadow:none}
html[data-design="gallery"] .header-inner{min-height:96px;padding-block:16px;gap:22px}
html[data-design="gallery"] main{max-width:1180px;padding:12px 40px 50px}
html[data-design="gallery"] .header-note{gap:12px}
html[data-design="gallery"] :is(.appearance-toggle,.language-toggle,.header-about){
  border:0;background:transparent;box-shadow:none;border-radius:50%;color:var(--ink);
}
html[data-design="gallery"] .language-toggle{padding:8px 4px;border-radius:8px}
html[data-design="gallery"] .header-about{padding-inline:10px;border-radius:99px}
html[data-design="gallery"] .appearance-toggle:hover,
html[data-design="gallery"] .language-toggle:hover{background:var(--primary-soft)}

/* Navigation has breathing room, a brush-like active mark, and full tap targets. */
html[data-design="gallery"] .desktop-nav{gap:14px;padding:0;border:0;border-radius:0;background:transparent}
html[data-design="gallery"] .desktop-nav .nav-item,
html[data-design="gallery"] .mobile-nav .nav-item{
  position:relative;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);
}
html[data-design="gallery"] .desktop-nav .nav-item{padding:12px 8px;font-weight:550}
html[data-design="gallery"] .desktop-nav .nav-item .icon{display:none}
html[data-design="gallery"] :is(.desktop-nav,.mobile-nav) .nav-item.active,
html[data-design="gallery"] :is(.desktop-nav,.mobile-nav) .nav-item[aria-current="page"]{
  background:transparent;color:var(--primary);border:0;box-shadow:none;font-weight:750;
}
html[data-design="gallery"] :is(.desktop-nav,.mobile-nav) .nav-item.active::after{
  content:'';position:absolute;inset-inline:30%;bottom:3px;height:3px;background:var(--primary);
  border-radius:60% 20% 55% 30%;transform:rotate(-2deg);opacity:.8;
}
html[data-design="gallery"] .desktop-nav .nav-item:not(.active):hover{border:0;background:transparent;color:var(--ink);text-decoration:underline;text-underline-offset:7px}
html[data-design="gallery"] .mobile-nav{border:0;background:var(--nav-bg);box-shadow:0 -8px 25px #17261d05;gap:6px;padding:5px 14px calc(7px + env(safe-area-inset-bottom))}
html[data-design="gallery"] .mobile-nav .nav-item{min-height:56px;padding:5px 2px 11px;gap:4px;font-weight:550}
html[data-design="gallery"] .mobile-nav .nav-item .icon{width:21px;height:21px;stroke-width:1.5}

/* The photograph, title and compact mood control form one easy vertical flow. */
html[data-design="gallery"] #page-today .today-composition{max-width:980px;margin:0 auto}
html[data-design="gallery"] #page-today :is(#openingMoment,#dailySection){margin:0;padding:0;border:0;background:transparent}
html[data-design="gallery"] #page-today .turning-stage{
  display:block;position:relative;min-height:0;padding:0;margin:0;border:0;border-radius:0;
  background:transparent;box-shadow:none;overflow:visible;
}
html[data-design="gallery"] #page-today .turning-visual{
  position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:485px;
  overflow:hidden;isolation:isolate;
  -webkit-mask-image:linear-gradient(0deg,transparent,#000 12%,#000 91%,transparent);
  mask-image:linear-gradient(0deg,transparent,#000 12%,#000 91%,transparent);
}
html[data-design="gallery"] #page-today .turning-art{
  position:absolute;inset:0;width:100%;height:100%;margin:0;grid-area:auto;
  border:0;border-radius:0;background:transparent;-webkit-mask-image:none;mask-image:none;
}
html[data-design="gallery"] #page-today .turning-art img{
  width:100%;height:100%;object-fit:cover;filter:brightness(.92) saturate(.9);animation:none;
}
html[data-design="gallery"] #page-today .turning-visual::after{
  content:'';position:absolute;z-index:0;inset:0;pointer-events:none;
  background:linear-gradient(180deg,#16211900 10%,#16211909 30%,#1621198c 60%,#162119bb 88%,#16211988);
}
html[data-design="gallery"] #page-today .turning-copy{
  position:relative;grid-area:auto;z-index:1;width:100%;max-width:790px;margin:0;
  padding:160px 40px 68px;align-items:center;text-align:center;color:#fffaf0;
}
html[data-design="gallery"] #page-today .turning-copy .gallery-eyebrow{
  display:none;color:#fffaf0;font:500 10px/1.7 var(--sans);letter-spacing:.18em;margin:0 0 17px;
  text-shadow:0 1px 8px #0a150d66;
}
html[data-design="gallery"] #page-today .gallery-eyebrow::before{display:none}
html[data-design="gallery"] #page-today .turning-title{
  color:#fffaf0;max-width:16ch;margin:0 auto 18px;font:500 clamp(48px,6vw,74px)/1.04 var(--editorial-display);
  letter-spacing:-.025em;text-wrap:balance;text-shadow:0 2px 16px #09150c55;
}
html[data-design="gallery"] #page-today .turning-title.is-long{max-width:25ch;font-size:clamp(36px,4.8vw,54px);line-height:1.16}
html[data-design="gallery"] #page-today .turning-copy .quote-author{color:#fffaf0;font:550 14px/1.6 var(--sans);margin:0 0 15px;text-shadow:0 1px 8px #07120999}
html[data-design="gallery"] #page-today .turning-copy .turning-meta{color:#fffaf0;font:500 11px/1.6 var(--sans);letter-spacing:.06em;margin:0;justify-content:center;text-shadow:0 1px 8px #07120999}
html[data-design="gallery"] #page-today .turning-copy .gallery-deck.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
html[data-design="gallery"][data-layout="watercolour"]:not([data-theme="night"]) #page-today .turning-visual{
  -webkit-mask-image:radial-gradient(ellipse 74% 73% at 50% 47%,#000 56%,#000b 72%,transparent 97%);
  mask-image:radial-gradient(ellipse 74% 73% at 50% 47%,#000 56%,#000b 72%,transparent 97%);
}
html[data-design="gallery"][data-theme="night"] #page-today .turning-art img{filter:brightness(.76) saturate(.8)}
html[data-design="gallery"][data-theme="night"] #page-today .turning-visual::after{background:linear-gradient(180deg,#151b1100 15%,#151b111a 30%,#151b118c 63%,#151b11bf 90%)}

/* Six native range stops; the control's hit area stays larger than its track. */
html[data-design="gallery"] #page-today #moodPanel{
  max-width:520px;margin:8px auto 17px;padding:0 10px;border:0;border-radius:0;background:transparent;box-shadow:none;
}
html[data-design="gallery"] #page-today #moodPanel .mood-heading-row{display:flex;gap:16px;justify-content:space-between;align-items:baseline;min-height:0}
html[data-design="gallery"] #page-today #moodPanel .mood-heading-row h2{font:500 19px/1.4 var(--editorial-display);color:var(--ink);letter-spacing:0;margin:0}
html[data-design="gallery"] #moodValue{font:600 12px/1.4 var(--sans);color:var(--primary);text-align:end}
html[data-design="gallery"] #page-today #moodOptions{padding:0;max-width:none}
html[data-design="gallery"] #moodPanel :is(#moodSliderHint,#moodPosition){position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-design="gallery"] #moodPanel .mood-track-wrap{min-height:40px;height:40px;margin:2px 0 0;padding:0}
html[data-design="gallery"] #moodPanel .mood-slider{height:40px}
html[data-design="gallery"] #moodPanel .mood-slider::-webkit-slider-runnable-track{height:3px;border:0;border-radius:10px;background:linear-gradient(to right,var(--primary) 0 var(--mood-progress),var(--line-strong) var(--mood-progress) 100%)}
html[data-design="gallery"][dir="rtl"] #moodPanel .mood-slider::-webkit-slider-runnable-track{background:linear-gradient(to left,var(--primary) 0 var(--mood-progress),var(--line-strong) var(--mood-progress) 100%)}
html[data-design="gallery"] #moodPanel .mood-slider::-webkit-slider-thumb{width:19px;height:19px;margin-top:-8px;border:4px solid var(--bg);background:var(--primary);box-shadow:0 0 0 1px var(--primary),0 2px 5px #17261d25}
html[data-design="gallery"] #moodPanel .mood-slider::-moz-range-track{height:3px;border:0;background:var(--line-strong)}
html[data-design="gallery"] #moodPanel .mood-slider::-moz-range-progress{height:3px;background:var(--primary)}
html[data-design="gallery"] #moodPanel .mood-slider::-moz-range-thumb{width:12px;height:12px;border:4px solid var(--bg);box-shadow:0 0 0 1px var(--primary)}
html[data-design="gallery"] #moodPanel .mood-scale-ticks{inset-inline:9px;top:17px;z-index:1}
html[data-design="gallery"] #moodPanel .mood-scale-ticks span{width:6px;height:6px;border:0;background:var(--primary);opacity:.75}
html[data-design="gallery"] #page-today #moodMessage{margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font:400 13px/1.5 var(--sans);min-height:20px;text-align:center}

/* Rounded reading actions; underlined secondary links and no enclosing panels. */
html[data-design="gallery"] .btn{border-radius:99px;box-shadow:none;min-height:48px}
html[data-design="gallery"] .btn-primary{background:var(--primary);border:1px solid var(--primary);color:var(--button-ink)}
html[data-design="gallery"] .btn-outline,html[data-design="gallery"] .btn-secondary{border-radius:99px;background:transparent}
html[data-design="gallery"] :is(.text-button,.text-link){border:0;border-radius:99px;background:transparent;box-shadow:none;color:var(--primary-dark);text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;font-weight:600}
html[data-design="gallery"] :is(.text-button,.text-link):hover{border:0;background:var(--primary-soft)}
html[data-design="gallery"] #page-today #todayActions{
  display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;width:100%;max-width:660px;margin:0 auto 14px;padding:0;
}
html[data-design="gallery"] #page-today #todayActions:empty{display:none}
html[data-design="gallery"] #page-today #todayActions .btn-primary{min-height:48px;padding:12px 24px;border-radius:99px;font-size:14px;font-weight:600}
html[data-design="gallery"] #page-today #todayActions .save-button{width:42px;height:44px;min-width:42px;margin:0;padding:9px;border:0;border-radius:50%;background:transparent;color:var(--primary);box-shadow:none}
html[data-design="gallery"] #page-today #todayActions .save-button.is-saved{background:var(--primary-soft);color:var(--primary)}
html[data-design="gallery"] #page-today #todayActions .gallery-listen{padding:9px 5px;min-height:44px;border:0;border-radius:99px;background:transparent;color:var(--primary-dark);font:550 13px/1.6 var(--sans);text-decoration:underline;text-underline-offset:5px}
html[data-design="gallery"] #page-today #todayActions .gallery-listen>svg{width:20px;height:20px;padding:0;border:0}
html[data-design="gallery"] #page-today #todayAfter{max-width:660px;margin:0 auto}
html[data-design="gallery"] #page-today .moment-after{display:flex;justify-content:space-between;align-items:center;border:0;margin:0;padding:6px 0;min-height:44px}
html[data-design="gallery"] #page-today .moment-after .another-button{padding:7px 9px;min-height:44px;border:0;border-radius:99px;background:transparent;color:var(--primary-dark);text-decoration:underline;text-underline-offset:5px;font-size:12px}
html[data-design="gallery"] #page-today .moment-after>span{font-size:12px}
html[data-design="gallery"] #page-today .today-composition>.format-choice{max-width:660px;margin:10px auto 0;border:0}
html[data-design="gallery"] #page-today .format-choice>summary{font-size:12px;text-align:center;color:var(--muted);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
html[data-design="gallery"] #page-today .today-explore-link{display:flex;width:fit-content;gap:12px;justify-content:center;margin:10px auto 22px;padding:10px 17px;min-height:44px;background:transparent;color:var(--primary-dark);border:0;border-radius:99px;font-size:14px;text-decoration:underline;text-underline-offset:5px}
html[data-design="gallery"] #page-today .today-explore-link:hover{background:var(--primary-soft);border:0;color:var(--primary-dark)}
html[data-design="gallery"] .gallery-tradition-entry{margin:8px auto 0;padding:20px 0;max-width:900px;border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-design="gallery"] .gallery-tradition-entry:hover{border:0;background:transparent}
html[data-design="gallery"] .gallery-tradition-entry>svg{border:0;background:var(--primary-soft);color:var(--primary-dark);border-radius:50%}
html[data-design="gallery"] .gallery-edition-note{text-align:center}
html[data-design="gallery"] .segmented{border:0;border-radius:99px;background:var(--surface-soft)}
html[data-design="gallery"] .segmented button{border:0;border-radius:99px}
html[data-design="gallery"] #page-explore :is(.explore-topic,.authors-invitation,.explore-faith-entry,.explore-quotation-entry){border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-design="gallery"] #page-explore .explore-topic{padding:0 0 14px}
html[data-design="gallery"] #page-explore .explore-topic:hover{border:0;background:transparent}
html[data-design="gallery"] #page-explore .search-box{border-radius:99px;border-color:var(--line-strong);background:var(--field-bg)}
html[data-design="gallery"] #page-explore :is(.explore-read-action,#browseQuotations){border-radius:99px}
html[data-design="gallery"] #page-explore #typeFilters button{border:0;border-radius:99px}
html[data-design="gallery"] :is(.settings-card,.rhythm-stats){border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-design="gallery"] .settings-card{padding-inline:0}
html[data-design="gallery"] #readerDialog .scene-tools button{border:0;border-radius:99px;background:var(--surface-soft)}
html[data-design="gallery"] #readerDialog.faith-gallery-reader :is(.fg-reflection,.fg-origin){border:0;border-radius:0;background:transparent;box-shadow:none}
html[data-design="gallery"] #readerDialog.faith-gallery-reader :is(.fg-listen,.fg-journal,.fg-finish){border-radius:99px}

/* Arabic retains its existing wordmark; prose and controls have their own scale. */
html[data-design="gallery"][lang="ar"] #page-today .turning-title{font-size:clamp(39px,5.7vw,62px);line-height:1.45;letter-spacing:0;max-width:20ch;margin-bottom:12px}
html[data-design="gallery"][lang="ar"] #page-today .turning-title.is-long{font-size:clamp(30px,4.5vw,45px);line-height:1.6}
html[data-design="gallery"][lang="ar"] #page-today .turning-copy .gallery-eyebrow{font-size:14px;letter-spacing:0}
html[data-design="gallery"][lang="ar"] #page-today .turning-copy .turning-meta{font-size:14px;letter-spacing:0}
html[data-design="gallery"][lang="ar"] #page-today #moodPanel .mood-heading-row h2{font-size:21px;line-height:1.6}
html[data-design="gallery"][lang="ar"] #moodValue{font-size:15px;line-height:1.6}
html[data-design="gallery"][lang="ar"] #page-today #moodMessage{font-size:16px;line-height:1.7}
html[data-design="gallery"][lang="ar"] #page-today #todayActions :is(.btn-primary,.gallery-listen){font-size:17px;line-height:1.6}

@media(min-width:1100px){
  html[data-design="gallery"] #page-today .turning-visual{-webkit-mask-image:radial-gradient(ellipse 75% 82% at 50% 44%,#000 53%,#000d 69%,transparent 95%);mask-image:radial-gradient(ellipse 75% 82% at 50% 44%,#000 53%,#000d 69%,transparent 95%)}
}
@media(max-width:760px){
  html[data-design="gallery"] .header-inner{min-height:94px;padding:15px 23px;gap:14px}
  html[data-design="gallery"] .header-note{gap:10px}
  html[data-design="gallery"] main{padding:0 22px 38px}
  html[data-design="gallery"] #page-today .turning-stage{width:calc(100% + 44px);margin-inline:-22px}
  html[data-design="gallery"] #page-today .turning-visual{min-height:350px}
  html[data-design="gallery"] #page-today .turning-copy{padding:95px 27px 53px;margin:0;max-width:590px}
  html[data-design="gallery"] #page-today .turning-title{font-size:44px;line-height:1.06;max-width:18ch;margin-bottom:15px}
  html[data-design="gallery"] #page-today .turning-title.is-long{font-size:33px;line-height:1.16;max-width:22ch}
  html[data-design="gallery"] #page-today .turning-copy .gallery-eyebrow{font-size:9px;margin-bottom:15px;letter-spacing:.14em}
  html[data-design="gallery"] #page-today .turning-copy .turning-meta{font-size:12px}
  html[data-design="gallery"] #page-today #moodPanel{margin:0 auto 17px;padding:0 4px}
  html[data-design="gallery"] #page-today #moodPanel .mood-heading-row h2{font-size:18px}
  html[data-design="gallery"] #moodValue{font-size:11px}
  html[data-design="gallery"] #page-today #todayActions{gap:8px 11px}
  html[data-design="gallery"] #page-today #todayActions .btn-primary{padding:11px 20px;font-size:13px}
  html[data-design="gallery"] #page-today #todayActions .gallery-listen{font-size:12px;justify-content:center;margin-inline:auto}
  html[data-design="gallery"] #page-today #todayActions .save-button{width:36px;min-width:36px}
  html[data-design="gallery"] .gallery-tradition-entry{padding:14px 0;grid-template-columns:76px minmax(0,1fr) 32px;gap:13px}
  html[data-design="gallery"] .gallery-tradition-entry>img{width:76px;height:110px}
  html[data-design="gallery"] .gallery-tradition-entry>svg{width:32px;height:32px;padding:8px}
  html[data-design="gallery"] .gallery-tradition-copy strong{font-size:28px;line-height:1.15}
  html[data-design="gallery"] .gallery-tradition-copy>span{font-size:12px;line-height:1.7}
  html[data-design="gallery"][lang="ar"] #page-today .turning-title{font-size:39px;line-height:1.5}
  html[data-design="gallery"][lang="ar"] #page-today .turning-title.is-long{font-size:30px;line-height:1.6}
  html[data-design="gallery"][lang="ar"] #page-today .turning-copy .gallery-eyebrow{font-size:12px}
  html[data-design="gallery"][lang="ar"] #page-today .turning-copy .turning-meta{font-size:12px}
  html[data-design="gallery"][lang="ar"] #page-today #todayActions .btn-primary{font-size:17px}
  html[data-design="gallery"][lang="ar"] #page-today #todayActions .gallery-listen{font-size:15px}
}
@media(max-width:360px){
  html[data-design="gallery"] #page-explore .explore-topic-label{gap:4px}
  html[data-design="gallery"] #page-explore .explore-topic-label .icon{width:20px;height:20px;padding:3px}
  html[data-design="gallery"] #page-explore .explore-topic-name{font-size:22px}
  html[data-design="gallery"] .header-inner{padding-inline:18px;gap:10px}
  html[data-design="gallery"] .header-note{gap:4px}
  html[data-design="gallery"] main{padding-inline:20px}
  html[data-design="gallery"] #page-today .turning-stage{width:calc(100% + 40px);margin-inline:-20px}
  html[data-design="gallery"] #page-today .turning-visual{min-height:315px}
  html[data-design="gallery"] #page-today .turning-copy{padding:85px 23px 47px}
  html[data-design="gallery"] #page-today .turning-title{font-size:38px}
  html[data-design="gallery"] #page-today .turning-title.is-long{font-size:29px}
  html[data-design="gallery"] #page-today #moodPanel .mood-heading-row h2{font-size:17px}
  html[data-design="gallery"] #page-today #moodMessage{font-size:12px}
  html[data-design="gallery"] #page-today #todayActions .gallery-listen{order:3;flex-basis:100%;justify-content:center}
  html[data-design="gallery"][lang="ar"] #page-today .turning-title{font-size:35px}
  html[data-design="gallery"][lang="ar"] #page-today .turning-title.is-long{font-size:28px}
}
@media(prefers-reduced-motion:reduce){
  html[data-design="gallery"] #page-today :is(.turning-copy,.turning-art img){animation:none;transition:none}
}
