/* ==========================================================================
   DUBURI v2 — Editorial Oceanic Design System
   Motto: "From the surface to the depth."
   Primary: Deep Ocean Water (#022331 / #03364A / #054A63)
   Accent: Deep Burnt Coral Orange (#CC470A / Hover #A63604)
   ========================================================================== */

:root {
  /* Deep Ocean Primary Palette */
  --ocean-950: #02202E;
  --ocean-900: #033346;
  --ocean-800: #054A63;
  --ocean-700: #086382;
  --ocean-600: #0D80A3;
  --ocean-400: #42B2C8;
  --ocean-300: #7AD4E3;
  --ocean-200: #BFE8F0;
  --ocean-100: #E5F3F7;
  --ocean-50:  #F1F8FA;

  /* Harder, Darker Burnt Coral-Orange Accent (Refined for authority & warmth) */
  --coral-700: #872A03;
  --coral-600: #A83705;
  --coral-500: #CC470A; /* Primary button & focal accent */
  --coral-400: #E05C1E; /* Subtle luminous pulse on dark ocean */
  --coral-100: #FCECE4;
  --coral-text-on-light: #9E3405; /* High contrast on pearl/white */

  /* Calm Editorial Neutrals */
  --surface-white: #FFFFFF;
  --surface-pearl: #FAFBF9;
  --surface-mist:  #EFF5F7;
  --surface-sand:  #F4F2EC;

  /* High-Contrast Ink Colors (Effortless reading for all ages) */
  --ink-900: #0B2029;
  --ink-700: #223D49;
  --ink-600: #3C5763;
  --ink-on-ocean: #FFFFFF;
  --ink-on-ocean-muted: rgba(238, 249, 253, 0.88);

  /* Architectural Hairlines */
  --line-subtle: rgba(5, 74, 99, 0.13);
  --line-strong: rgba(5, 74, 99, 0.25);
  --line-on-ocean: rgba(191, 232, 240, 0.2);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Rubik', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Rubik', sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-calligraphy: 'Amiri Quran', 'Amiri', 'Traditional Arabic', serif;

  /* Generous Editorial Scale */
  --container-max: 1380px;
  --container-narrow: 1180px;
  --gutter: clamp(1.25rem, 3.2vw, 2.5rem);
  --section-pad: clamp(5.25rem, 9.5vw, 9rem);
  --radius-sm: 11px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Oceanic Wave Easing: Surges swiftly, then glides slowly into stillness */
  --ease-wave: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swell: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem); /* 17px mobile -> 19px desktop (Rubik has a generous x-height) */
  line-height: 1.74;
  color: var(--ink-900);
  background-color: var(--surface-pearl);
  overflow-x: clip;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 1rem 1.5rem;
  background: var(--ocean-900);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

/* Top Scroll Tide Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ocean-400), var(--coral-500));
  z-index: 120;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
  overflow: clip;
}

.section--white { background-color: var(--surface-white); }
.section--pearl { background-color: var(--surface-pearl); }
.section--mist  { background-color: var(--surface-mist); }

.section--ocean {
  background: radial-gradient(ellipse at 22% 16%, #096380 0%, #054860 44%, #033245 76%, #022332 100%);
  color: var(--ink-on-ocean);
  overflow: hidden;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line-subtle);
  margin: 0;
}

/* ==========================================================================
   CLEAN ARCHITECTURAL OCEAN SHAPES & BATHYMETRIC DECOR (Subtle, Non-Cluttered)
   ========================================================================== */
.ocean-contour {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--ocean-700);
  opacity: 0.065;
  will-change: transform;
  animation: contourDrift 24s ease-in-out infinite alternate;
}

.ocean-contour--top-right {
  top: -90px;
  right: -120px;
  width: clamp(320px, 42vw, 560px);
  height: auto;
}

.ocean-contour--bottom-left {
  bottom: -110px;
  left: -130px;
  width: clamp(300px, 38vw, 520px);
  height: auto;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.ocean-contour--on-ocean {
  color: var(--ocean-200);
  opacity: 0.1;
}

@keyframes contourDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-14px, 12px, 0) rotate(2.5deg) scale(1.03); }
  100% { transform: translate3d(10px, -10px, 0) rotate(-2deg) scale(0.98); }
}

/* Living Multi-Layer Infinite Seamless SVG Ocean Wave Transitions */
.wave-separator {
  position: relative;
  width: 100%;
  height: clamp(42px, 5.2vw, 68px);
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
  margin-top: -1px;
  margin-bottom: -1px;
}

.wave-separator svg.wave-layer {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 200% !important;
  min-width: 200%;
  max-width: none !important;
  height: calc(100% + 2px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  shape-rendering: geometricPrecision;
}

.wave-layer-1 {
  animation: waveGlideInfinite 22s linear infinite;
}

.wave-layer-2 {
  animation: waveGlideInfiniteReverse 34s linear infinite;
}

.wave-layer-3 {
  animation: waveGlideInfinite 48s linear infinite;
}

@keyframes waveGlideInfinite {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes waveGlideInfiniteReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Editorial Depth Marker ("01 · SURFACE" -> "04 · DEPTH") */
.depth-marker {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean-700);
  margin-bottom: 1.4rem;
}

.depth-marker__line {
  display: inline-block;
  width: 34px;
  height: 1.5px;
  background: var(--coral-500);
  transform-origin: left;
}

.depth-marker--on-ocean {
  color: var(--ocean-200);
}

.depth-marker--on-ocean .depth-marker__line {
  background: var(--coral-400);
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM & FLOWING OCEAN TEXT ANIMATIONS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ocean-700);
  margin-bottom: 1.25rem;
}

.eyebrow--coral {
  color: var(--coral-text-on-light);
}

.eyebrow--on-ocean {
  color: var(--ocean-200);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Signature Motto Lockup: "From the surface to the depth." */
.motto-line {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--ocean-200);
  margin-bottom: 1.35rem;
  letter-spacing: 0.01em;
}

.motto-line__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral-400);
  box-shadow: 0 0 14px rgba(224, 92, 30, 0.75);
  flex-shrink: 0;
}

h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  letter-spacing: -0.022em;
  color: var(--ink-900);
}

.section--ocean h1,
.section--ocean h2,
.section--ocean h3,
.section--ocean .serif-heading {
  color: var(--ink-on-ocean);
}

.h1 {
  font-size: clamp(2.85rem, 5.7vw, 5.1rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.h2 {
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

.h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.24;
  margin-bottom: 0.9rem;
}

.lead {
  font-size: clamp(1.1875rem, 1.12rem + 0.32vw, 1.375rem);
  line-height: 1.74;
  color: var(--ink-700);
  max-width: 68ch;
}

.section--ocean .lead {
  color: var(--ink-on-ocean-muted);
}

.prose p {
  margin-bottom: 1.55rem;
  color: var(--ink-700);
  max-width: 72ch;
}
.prose p:last-child {
  margin-bottom: 0;
}

.bn-label {
  font-family: var(--font-bn);
  font-weight: 500;
  font-size: 0.92em;
  color: var(--ocean-700);
}

.section--ocean .bn-label {
  color: var(--ocean-200);
}

.arabic-bismillah {
  font-family: var(--font-calligraphy);
  font-weight: 400;
  font-size: clamp(2.05rem, 4.3vw, 3.45rem);
  line-height: 1.95;
  letter-spacing: 0;
  font-feature-settings: "liga" 1, "calt" 1;
  color: #F0FAFD;
  text-shadow: 0 6px 26px rgba(1, 20, 32, 0.34);
  margin-bottom: 1rem;
  display: block;
}

/* Flowing Waterline Heading Reveal (Words rise out of the tide with wave easing) */
.water-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: 0.14em;
  margin-block: -0.14em;
}

.water-word-inner {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 112%, 0) skewY(2.2deg);
  transition:
    transform 1.05s var(--ease-wave),
    opacity 0.75s var(--ease-smooth);
}

.is-flowing .water-word-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0) skewY(0deg);
}

/* Word-by-word flowing prose sentences (live written-on-water cadence) */
.water-phrase {
  display: inline;
  opacity: 0.08;
  filter: blur(3px);
  transition:
    opacity 0.9s var(--ease-wave),
    filter 0.85s var(--ease-smooth);
}

.is-flowing .water-phrase {
  opacity: 1;
  filter: blur(0);
}

/* General Editorial Wave Reveal for Cards & Modules */
.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 0.95s var(--ease-wave),
    transform 1.15s var(--ease-wave);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ==========================================================================
   CLEAN BESPOKE ICON SYSTEM (Minimalist Architectural Icons — Zero Clutter)
   ========================================================================== */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E2F0F5;
  border: 1.5px solid rgba(5, 74, 99, 0.26);
  color: var(--ocean-900);
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-wave), background-color 0.3s, border-color 0.3s, color 0.3s;
}

.icon-badge svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge--coral {
  background: #E2F0F5;
  border-color: rgba(5, 74, 99, 0.26);
  color: var(--ocean-900);
}

.icon-badge--on-ocean {
  background: rgba(191, 232, 240, 0.12);
  border: 1.5px solid rgba(191, 232, 240, 0.34);
  color: #D5F2F8;
}

.editorial-card:hover .icon-badge,
.editorial-card:hover .icon-badge--coral {
  transform: translateY(-3px) scale(1.04);
  background: var(--ocean-800);
  border-color: var(--ocean-800);
  color: #FFFFFF;
}

/* Bespoke Minimalist Card Art Plates (Clean Oceanic Geometric Header Strips) */
.card-art-plate {
  position: relative;
  height: 112px;
  margin: calc(clamp(2rem, 3.5vw, 2.75rem) * -1) calc(clamp(2rem, 3.5vw, 2.75rem) * -1) 1.75rem;
  border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
  background: linear-gradient(135deg, #033548 0%, #06536E 62%, #0B7394 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem clamp(1.75rem, 3vw, 2.5rem);
}

.card-art-plate--mist {
  background: linear-gradient(135deg, #E7F3F7 0%, #D5EAF0 60%, #C6E2EB 100%);
}

.card-art-plate svg.art-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.card-art-plate__label {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-200);
}

.card-art-plate--mist .card-art-plate__label {
  color: var(--ocean-800);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-subtle);
  transition: box-shadow 0.35s var(--ease-smooth), background-color 0.35s var(--ease-smooth);
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 34px rgba(3, 51, 70, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ocean-900);
  flex-shrink: 0;
}

.brand-mark__badge {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ocean-800);
  border-radius: 7px;
  overflow: hidden;
  line-height: 1;
  transition: transform 0.35s var(--ease-wave), box-shadow 0.35s;
}

.brand-mark:hover .brand-mark__badge {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 74, 99, 0.14);
}

.brand-mark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-900);
  padding: 0.48rem 0.62rem;
}

.brand-mark__icon svg {
  width: 24px;
  height: 24px;
}

.brand-mark__word {
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean-900);
  background: var(--surface-white);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2.35rem;
}

.main-nav a {
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease-smooth);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-wave);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ocean-900);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.25s;
}

.menu-toggle:hover {
  background-color: var(--ocean-50);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ocean-900);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-wave), opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 78px 0 0 0;
  background: radial-gradient(ellipse at 20% 14%, #096380 0%, #054A63 42%, #033346 76%, #02202E 100%);
  color: var(--ink-on-ocean);
  border-top: 1px solid rgba(191, 232, 240, 0.16);
  z-index: 95;
  padding: 2.25rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease-wave), transform 0.4s var(--ease-wave);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-drawer__links li {
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
}

.mobile-drawer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  transition: color 0.25s, transform 0.3s var(--ease-wave);
}

.mobile-drawer__links a:hover {
  color: var(--ocean-200);
  transform: translateX(4px);
}

.mobile-drawer__links a span.arrow {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  color: var(--coral-400);
}

.mobile-drawer__footer {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-drawer__motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ocean-200);
}

.mobile-drawer__email {
  font-size: 0.95rem;
  color: rgba(238, 249, 253, 0.82);
}

.mobile-drawer__email a {
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   BUTTONS & LINKS (Harder Deep Burnt Coral-Orange #CC470A)
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.98rem 1.95rem;
  border-radius: var(--radius-pill);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform 0.35s var(--ease-wave),
    background-color 0.25s,
    border-color 0.25s,
    box-shadow 0.35s;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.68rem 1.4rem;
  font-size: 0.96875rem;
}

.btn--coral {
  background: #D44B0D;
  color: #FFFFFF;
  border: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(180, 56, 4, 0.24);
}

.btn--coral:hover {
  background: #B83D06;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(168, 55, 5, 0.32);
}

.btn--coral:active {
  transform: translateY(0) scale(0.985);
  background: #9E3204;
  box-shadow: 0 2px 8px rgba(135, 42, 3, 0.24);
}

.btn--ocean {
  background-color: var(--ocean-800);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(3, 51, 70, 0.22);
}

.btn--ocean:hover {
  background-color: var(--ocean-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 32, 46, 0.3);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(191, 232, 240, 0.36);
  color: #FFFFFF;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.0625rem;
  font-weight: 600;
  padding-bottom: 0.32rem;
  border-bottom: 1.5px solid currentColor;
  transition: opacity 0.25s, gap 0.35s var(--ease-wave), color 0.25s;
}

.text-link:hover {
  opacity: 0.85;
  gap: 0.85rem;
}

.text-link--ocean {
  color: var(--ocean-800);
}

.text-link--coral {
  color: var(--coral-text-on-light);
}

.text-link--light {
  color: var(--ink-on-ocean);
}

.btn-ripple-ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transform: scale(0);
  animation: btnWaterRipple 0.72s var(--ease-wave) forwards;
  pointer-events: none;
}

@keyframes btnWaterRipple {
  to {
    transform: scale(4.2);
    opacity: 0;
  }
}

/* ==========================================================================
   TRUE 2D FLUID WATER WAVE ENGINE CANVAS (Every Ocean Section)
   ========================================================================== */
.ocean-canvas-wrap {
  position: relative;
  isolation: isolate;
}

.water-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.ocean-canvas-wrap > .container,
.ocean-canvas-wrap > .hero-footer-bar,
.ocean-canvas-wrap > .wave-separator {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   HERO SECTION (Balanced Above-the-Fold Viewport Fit — Zero Cutoff)
   ========================================================================== */
.hero {
  padding-top: clamp(2rem, 4.2vh, 3.5rem);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .hero {
    min-height: calc(100svh - 78px);
    padding-top: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.15rem;
  align-items: center;
  margin-block: auto;
  padding-block: clamp(1.5rem, 3.4vh, 2.75rem);
}

@media (min-width: 992px) {
  .hero-grid {
    gap: clamp(2.5rem, 4vw, 3.75rem);
  }
}

.hero .motto-line {
  font-size: clamp(1.0625rem, 1.35vw, 1.32rem);
  margin-bottom: 0.85rem;
}

.hero .h1 {
  font-size: clamp(2.45rem, 4.15vw, 4.15rem);
  line-height: 1.07;
  margin-bottom: 1.2rem;
}

.hero .lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.22rem);
  line-height: 1.66;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.85rem;
  margin-top: 1.65rem;
}

.hero-footer-bar {
  border-top: 1px solid var(--line-on-ocean);
  padding-block: 0.95rem;
  background: rgba(2, 28, 40, 0.22);
}

.hero-footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 1rem;
  color: var(--ink-on-ocean-muted);
}

.ripple-hint {
  font-size: 0.9375rem;
  color: var(--ocean-200);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* ==========================================================================
   MID-PAGE OCEAN MOTTO IMMERSION BAND ("From the surface to the depth.")
   ========================================================================== */
.motto-band {
  padding-block: clamp(5.5rem, 10vw, 8.75rem);
  text-align: center;
}

.motto-band__quote {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.4vw, 4.65rem);
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.motto-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.motto-metric-card {
  background: rgba(2, 32, 46, 0.42);
  border: 1px solid rgba(191, 232, 240, 0.22);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: transform 0.45s var(--ease-wave), border-color 0.3s, background-color 0.3s;
}

.motto-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191, 232, 240, 0.46);
  background: rgba(3, 44, 62, 0.56);
}

.motto-metric-card__num {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.motto-metric-card__label {
  font-size: 1rem;
  color: var(--ink-on-ocean-muted);
  line-height: 1.5;
}

/* ==========================================================================
   INTERACTIVE TABBED ECOSYSTEM
   ========================================================================== */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.35rem;
  border-bottom: 1px solid var(--line-subtle);
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: none;
  border: 0;
  padding: 1rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--coral-500);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-wave);
}

.tab-btn[aria-selected="true"] {
  color: var(--ocean-900);
}

.tab-btn[aria-selected="true"]::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
  animation: panelWaveIn 0.65s var(--ease-wave);
}

.tab-panel.is-active {
  display: block;
}

@keyframes panelWaveIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.editorial-feature-box {
  background: var(--surface-mist);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-block: 1.75rem 2.25rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  color: var(--ink-700);
}

.feature-checklist li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral-500);
  margin-top: 0.65rem;
  flex-shrink: 0;
}

.preview-card-stack {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: clamp(1.65rem, 3vw, 2.35rem);
  box-shadow: 0 22px 54px rgba(5, 74, 99, 0.08);
  position: relative;
  overflow: hidden;
}

.preview-card-stack__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  color: var(--ocean-700);
  font-weight: 700;
}

/* ==========================================================================
   EDITORIAL CARDS & CATALOG GRIDS
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.85rem, 3vw, 2.5rem);
  margin-top: 3rem;
}

.editorial-card {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-wave),
    border-color 0.35s,
    box-shadow 0.5s var(--ease-wave);
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 74, 99, 0.32);
  box-shadow: 0 24px 52px rgba(5, 74, 99, 0.09);
}

.editorial-card--tinted {
  background: var(--surface-mist);
}

.card-head-with-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.36rem 0.95rem;
  border-radius: var(--radius-pill);
}

.status-badge--ready {
  background: var(--coral-100);
  color: var(--coral-text-on-light);
}

.status-badge--ongoing {
  background: var(--ocean-100);
  color: var(--ocean-800);
}

.status-badge--pipeline {
  background: var(--surface-sand);
  color: var(--ink-700);
}

.episode-meta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-600);
}

.editorial-card p {
  color: var(--ink-700);
}

.card-footer-row {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   ACCORDION ROWS (Roadmap & FAQs)
   ========================================================================== */
.accordion-list {
  margin-top: 3rem;
  border-top: 1px solid var(--line-subtle);
}

.accordion-item {
  border-bottom: 1px solid var(--line-subtle);
}

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding-block: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink-900);
  transition: color 0.25s;
}

.accordion-trigger:hover {
  color: var(--ocean-700);
}

.accordion-trigger__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.accordion-index {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--coral-text-on-light);
  min-width: 1.9rem;
}

.accordion-title {
  font-family: var(--font-sans);
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
}

.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ocean-800);
  transition: transform 0.35s var(--ease-wave), opacity 0.25s;
}

.accordion-icon::before {
  width: 18px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s var(--ease-wave);
}

.accordion-panel.is-open {
  grid-template-rows: 1fr;
}

.accordion-panel__inner {
  overflow: hidden;
}

.accordion-panel__content {
  padding-bottom: 2rem;
  padding-left: clamp(0rem, 3vw, 3.15rem);
  color: var(--ink-700);
  max-width: 68ch;
}

/* ==========================================================================
   PULL QUOTE / COMMUNITY VOICE
   ========================================================================== */
.editorial-quote {
  border-left: 3.5px solid var(--coral-500);
  padding: 0.65rem 0 0.65rem clamp(1.5rem, 3vw, 2.6rem);
  margin-block: 2.75rem;
  background: linear-gradient(90deg, rgba(204, 71, 10, 0.05) 0%, transparent 65%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.36;
  color: var(--ocean-900);
  font-style: italic;
  margin-bottom: 1rem;
}

.editorial-quote figcaption {
  font-size: 1rem;
  color: var(--ink-600);
  font-weight: 500;
}

/* ==========================================================================
   FILTER PILLS
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.filter-pill {
  padding: 0.72rem 1.48rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-white);
  color: var(--ink-700);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-wave);
}

.filter-pill:hover {
  border-color: var(--ocean-800);
  color: var(--ocean-900);
  transform: translateY(-1px);
}

.filter-pill.is-active {
  background: var(--ocean-800);
  border-color: var(--ocean-800);
  color: #FFFFFF;
}

.course-item.is-hidden {
  display: none;
}

/* ==========================================================================
   STUDIO FILM SHOWCASE CARDS
   ========================================================================== */
.film-card {
  background: linear-gradient(155deg, #043C52 0%, #022230 100%);
  color: var(--ink-on-ocean);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 4.5vw, 3.75rem);
  border: 1px solid rgba(126, 214, 227, 0.22);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 26px 62px rgba(2, 28, 40, 0.2);
}

.film-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 30% 25%, rgba(13, 130, 166, 0.52), rgba(2, 22, 32, 0.98));
  border: 1px solid rgba(191, 232, 240, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.film-play-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #D44B0D;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px rgba(204, 71, 10, 0.24);
  transition: transform 0.45s var(--ease-wave), box-shadow 0.45s;
  position: relative;
  z-index: 2;
}

.film-card:hover .film-play-ring {
  transform: scale(1.09);
  box-shadow: 0 0 0 18px rgba(204, 71, 10, 0.3);
}

/* ==========================================================================
   FORMS & UNIFIED FRONT DOOR
   ========================================================================== */
.form-card {
  background: var(--surface-white);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: 0 24px 60px rgba(5, 74, 99, 0.07);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.field label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ocean-900);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-pearl);
  font-size: 1.0625rem;
  color: var(--ink-900);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ocean-700);
  background: var(--surface-white);
  box-shadow: 0 0 0 4px rgba(13, 128, 163, 0.14);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.form-feedback {
  display: none;
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--ocean-50);
  border: 1px solid var(--ocean-400);
  color: var(--ocean-900);
}

.form-feedback.is-visible {
  display: block;
}

/* ==========================================================================
   CLOSING OCEAN CTA BAND
   ========================================================================== */
.closing-cta {
  text-align: center;
  padding-block: clamp(5.75rem, 11vw, 9.75rem);
}

.closing-cta .lead {
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--surface-white);
  border-top: 1px solid var(--line-subtle);
  padding-block: clamp(3.5rem, 6vw, 5.25rem) 2.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-subtle);
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ocean-700);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  list-style: none;
}

.footer-nav a {
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 0.25s;
}

.footer-nav a:hover {
  color: var(--coral-text-on-light);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  font-size: 0.96875rem;
  color: var(--ink-600);
}

/* ==========================================================================
   SUBPAGE HERO
   ========================================================================== */
.page-hero {
  padding-block: clamp(4.5rem, 8.2vw, 7rem);
}

.page-hero .h1 {
  font-size: clamp(2.85rem, 5.4vw, 4.75rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 19ch;
}

.page-hero .lead {
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.125rem);
  line-height: 1.54;
  color: rgba(232, 247, 252, 0.72);
  max-width: 58ch;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (min-width: 768px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .motto-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-feature-box {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .film-card {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-drawer {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.18fr 0.82fr;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .water-flow-block,
  .water-word-inner,
  .water-phrase {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .pulse-dot,
  .ocean-contour,
  .wave-layer-1,
  .wave-layer-2,
  .wave-layer-3 {
    animation: none !important;
  }
}

/* Mobile Drawer Active Page Subtle Highlight */
.mobile-drawer__links a[aria-current="page"] {
  color: var(--ocean-300);
}

/* Crisp Small-Screen Header Breathing Room (320px - 420px) */
@media (max-width: 420px) {
  .header-inner {
    gap: 0.65rem;
    min-height: 76px;
  }
  .brand-mark__word {
    padding: 0.44rem 0.65rem;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }
  .header-actions {
    gap: 0.45rem;
  }
  .header-actions .btn--sm {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .mobile-drawer {
    inset: 76px 0 0 0;
  }
}

/* Interactive Film Play Button Link Polish */
a.film-play-ring {
  cursor: pointer;
  text-decoration: none;
}

/* Short Desktop/Laptop Viewport Fit Guard (700px - 820px height) */
@media (min-width: 992px) and (max-height: 820px) {
  .hero-grid {
    padding-block: 1.15rem;
  }
  .hero .h1 {
    font-size: clamp(2.25rem, 3.6vw, 3.45rem);
    margin-bottom: 0.9rem;
  }
  .hero-actions {
    margin-top: 1.25rem;
  }
  .hero-footer-bar {
    padding-block: 0.7rem;
  }
  .wave-separator {
    height: 44px;
  }
}

/* ==========================================================================
   HERO ARCHITECTURAL ARCH SANCTUARY v10
   - Luminous Pearl-White Upper Surface (~62%) + Deep Ocean Depth Zone (~38%)
   - Luminous Arch Sanctuary Header hugging the top arch curve
   - Infinitely Expanding & Reflecting Ocean Ripple Medallion
   - Interactive 3-Pillar Sanctuary Switcher + Seamless Animated Wave Waterline
   ========================================================================== */
.hero-sanctuary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-sanctuary {
    justify-content: flex-end;
  }
}

.sanctuary-arch-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}

/* Whisper-thin offset architectural outer arch line floating over the ocean */
.sanctuary-arch-outline {
  position: absolute;
  inset: -11px 11px 11px -11px;
  border-radius: 232px 232px 28px 28px;
  border: 1px solid rgba(191, 232, 240, 0.30);
  pointer-events: none;
  transition: transform 0.7s var(--ease-wave), border-color 0.45s;
}

.sanctuary-arch-wrap:hover .sanctuary-arch-outline {
  transform: translate3d(-4px, -4px, 0);
  border-color: rgba(191, 232, 240, 0.52);
}

.sanctuary-arch {
  position: relative;
  width: 100%;
  border-radius: 224px 224px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FCFD 52%, #E9F4F7 100%);
  box-shadow:
    0 34px 80px rgba(1, 18, 28, 0.48),
    0 10px 28px rgba(1, 22, 34, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-wave), box-shadow 0.6s var(--ease-wave);
}

.sanctuary-arch-wrap:hover .sanctuary-arch {
  transform: translateY(-3px);
  box-shadow:
    0 42px 92px rgba(1, 18, 28, 0.54),
    0 12px 32px rgba(1, 22, 34, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* UPPER LUMINOUS WHITE SURFACE (~60% Crisp White + Curved Calligraphy + Ripples) */
.sanctuary-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6.6rem 1.25rem 1.15rem;
  min-height: 368px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(13, 128, 163, 0.085) 0%, rgba(13, 128, 163, 0.02) 48%, transparent 72%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FCFD 62%, #EDF6F8 100%);
}

/* Infinitely Expanding & Reflecting Ripple Medallion Stage */
.sanctuary-ripple-stage {
  position: relative;
  z-index: 2;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  margin-block: 0.65rem 1.65rem;
}

/* Sculpted 3D Liquid Water Ripple Canvas Filling White Arch Surface */
.sanctuary-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Slow Bathymetric Orbital Ring */
.s-orbit {
  position: absolute;
  width: 152px;
  height: 152px;
  pointer-events: none;
  will-change: transform;
  animation: sanctuaryOrbitSpin 44s linear infinite;
}

@keyframes sanctuaryOrbitSpin {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(0, 0, 0) rotate(360deg); }
}

/* Rich Deep-Ocean Core Medallion */
.sanctuary-core {
  position: relative;
  z-index: 3;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #0B7394 0%, #054A63 48%, #022534 100%);
  border: 2.5px solid #FFFFFF;
  box-shadow:
    0 14px 32px rgba(3, 51, 70, 0.32),
    0 0 0 1px rgba(5, 74, 99, 0.22),
    inset 0 2px 10px rgba(140, 226, 236, 0.24);
  display: grid;
  place-items: center;
  transition: transform 0.6s var(--ease-wave), box-shadow 0.6s;
}

.sanctuary-arch-wrap:hover .sanctuary-core {
  transform: scale(1.05);
  box-shadow:
    0 18px 40px rgba(3, 51, 70, 0.40),
    0 0 0 1px rgba(5, 74, 99, 0.30),
    inset 0 2px 12px rgba(140, 226, 236, 0.32);
}

.sanctuary-core__icon {
  width: 56px;
  height: 56px;
}

.sanctuary-core__sun {
  transform-origin: 16px 10.2px;
  animation: sanctuarySunPulse 4.2s ease-in-out infinite;
}

@keyframes sanctuarySunPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

/* Interactive 3-Pillar Sanctuary Switcher Pills (Sitting on White Above Waterline) */
.sanctuary-pillars {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.48rem;
  width: 100%;
}

.sanctuary-pillar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.52rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.20);
  background: rgba(255, 255, 255, 0.90);
  color: var(--ocean-800);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(5, 74, 99, 0.06);
  transition: all 0.32s var(--ease-wave);
}

.sanctuary-pillar svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sanctuary-pillar:hover {
  border-color: var(--ocean-700);
  background: var(--ocean-50);
  transform: translateY(-1px);
}

.sanctuary-pillar.is-active {
  background: linear-gradient(180deg, #075B78 0%, #043E54 100%);
  border-color: #043E54;
  color: #FFFFFF;
  box-shadow: 0 8px 18px rgba(3, 51, 70, 0.28);
}

/* SEAMLESS ANIMATED OCEAN WATERLINE TRANSITION INSIDE THE ARCH */
.sanctuary-waterline {
  position: relative;
  width: 100%;
  height: 30px;
  overflow: hidden;
  background: #EDF6F8;
  margin-top: -1px;
  margin-bottom: -1px;
  flex-shrink: 0;
}

.sanctuary-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 200% !important;
  min-width: 200%;
  max-width: none !important;
  height: calc(100% + 2px);
  will-change: transform;
}

.sanctuary-wave--back {
  animation: waveGlideInfiniteReverse 22s linear infinite;
}

.sanctuary-wave--front {
  animation: waveGlideInfinite 15s linear infinite;
}

/* LOWER DEEP-OCEAN DEPTH ZONE (~38% Rich Primary Color + Spotlight & Quick Stats) */
.sanctuary-depth {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #033548 0%, #022636 62%, #021E2C 100%);
  padding: 1.05rem 1.35rem 1.4rem;
  color: #FFFFFF;
}

.sanctuary-glass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sanctuary-glass__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-200);
  white-space: nowrap;
}

.sanctuary-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-400);
  flex-shrink: 0;
}

.sanctuary-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-shrink: 0;
}

.sanctuary-step {
  width: 14px;
  height: 3.5px;
  border-radius: 99px;
  background: rgba(191, 232, 240, 0.26);
  transition: width 0.35s var(--ease-wave), background-color 0.3s;
}

.sanctuary-step.is-active {
  width: 26px;
  background: var(--coral-400);
}

.sanctuary-glass__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.2rem;
  color: #FFFFFF;
  transition: opacity 0.28s ease;
}

.sanctuary-glass__body.is-fading {
  opacity: 0.22;
}

.section--ocean .sanctuary-glass__title,
.sanctuary-glass__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.62rem, 2vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 0;
}

.sanctuary-glass__sub {
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(226, 244, 249, 0.84);
  margin: 0;
}

.sanctuary-glass__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #D44B0D;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(168, 55, 5, 0.42);
  transition: transform 0.35s var(--ease-wave), background-color 0.25s;
}

.sanctuary-glass__body:hover .sanctuary-glass__arrow {
  transform: translate(2px, -2px) scale(1.07);
}

/* Purposeful Quick-Access Metrics Strip inside Ocean Depth */
.sanctuary-depth__meta {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(191, 232, 240, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(226, 244, 249, 0.82);
}

.sanctuary-depth__meta a {
  transition: color 0.25s;
}

.sanctuary-depth__meta a:hover {
  color: #FFFFFF;
}

.sanctuary-depth__meta strong {
  color: var(--ocean-200);
  font-weight: 600;
}

.sanctuary-depth__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(191, 232, 240, 0.38);
  flex-shrink: 0;
}

/* Short Desktop/Laptop Viewport Fit Guard (700px - 820px height) */
@media (min-width: 992px) and (max-height: 820px) {
  .sanctuary-arch-wrap {
    max-width: 395px;
  }
  .sanctuary-surface {
    min-height: 314px;
    padding: 5.45rem 1.05rem 0.95rem;
  }
  .sanctuary-ripple-stage {
    width: 140px;
    height: 140px;
    margin-block: 0.35rem 1.15rem;
  }
  .sanctuary-core {
    width: 88px;
    height: 88px;
  }
  .sanctuary-core__icon {
    width: 48px;
    height: 48px;
  }
  .s-orbit {
    width: 128px;
    height: 128px;
  }
  .sanctuary-depth {
    padding: 0.85rem 1.15rem 1.1rem;
  }
  .sanctuary-depth__meta {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
  }
}

@media (max-width: 480px) {
  .sanctuary-arch-wrap {
    max-width: 380px;
  }
  .sanctuary-surface {
    min-height: 356px;
    padding: 6.1rem 0.9rem 1.05rem;
  }
  .sanctuary-ripple-stage {
    margin-block: 0.6rem 1.55rem;
  }
  .sanctuary-pillar {
    font-size: 0.78rem;
    padding: 0.46rem 0.4rem;
    gap: 0.3rem;
  }
  .sanctuary-depth {
    padding: 0.95rem 1.1rem 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-orbit,
  .sanctuary-core__sun,
  .sanctuary-wave--back,
  .sanctuary-wave--front {
    animation: none !important;
  }
}

/* Mobile Performance Isolation & Offscreen Animation Auto-Pause */
.sanctuary-surface,
.sanctuary-waterline,
.wave-separator {
  contain: layout paint;
}

.sanctuary-arch.is-offscreen .s-orbit,
.sanctuary-arch.is-offscreen .sanctuary-core__sun,
.sanctuary-arch.is-offscreen .sanctuary-wave {
  animation-play-state: paused !important;
}

/* Hide Header "Join & Enroll" Button on Mobile Only (Keep Visible on Desktop >= 992px) */
@media (max-width: 991px) {
  .site-header .header-actions .btn {
    display: none;
  }
}

/* ==========================================================================
   v16 — APPLE / EDITORIAL LIGHT-AREA TYPOGRAPHY, GRID & CARD CRAFT OVERHAUL
   (Strictly targets white/pearl/mist content areas — leaves Hero, Arch,
    Header, Mobile Drawer, Ocean Bands & Orange Buttons 100% untouched)
   ========================================================================== */

:root {
  --section-pad: clamp(4.25rem, 7.2vw, 6.5rem);
  --line-subtle: rgba(5, 74, 99, 0.10);
  --line-strong: rgba(5, 74, 99, 0.20);
}

/* Crisp Editorial Base Typography (eliminates bloated 19px Rubik body look) */
body {
  font-size: clamp(0.96875rem, 0.94rem + 0.14vw, 1.03125rem);
  line-height: 1.65;
  color: #36505D;
}

/* Refined Architectural Serif Headings + Balanced Line Wrapping (no orphan words) */
h1, h2, h3, h4, .serif-heading {
  font-variation-settings: "opsz" 72, "SOFT" 10, "WONK" 0;
  text-wrap: balance;
  color: #05202C;
}

.section--white .h2,
.section--pearl .h2,
.section--mist .h2 {
  font-size: clamp(1.95rem, 3.25vw, 3.05rem);
  font-weight: 450;
  line-height: 1.09;
  letter-spacing: -0.028em;
  margin-bottom: 1.05rem;
}

.section--white .h3,
.section--pearl .h3,
.section--mist .h3 {
  font-size: clamp(1.26rem, 1.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

/* Crisp Subheader / Lead & Editorial Prose Hierarchy on Light Surfaces */
.section--white .lead,
.section--pearl .lead,
.section--mist .lead {
  font-size: clamp(1.03125rem, 0.99rem + 0.18vw, 1.15625rem);
  line-height: 1.58;
  color: #4A6572;
  max-width: 56ch;
}

.prose p {
  font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
  color: #2E4855;
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

.prose p strong {
  color: #05202C;
  font-weight: 600;
}

.editorial-split .prose p:first-child {
  font-size: clamp(1.04rem, 1rem + 0.2vw, 1.14rem);
  line-height: 1.66;
  color: #163340;
}

/* Precision Architectural Eyebrows & Depth Markers (12px crisp uppercase) */
.eyebrow {
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.13em;
  margin-bottom: 0.85rem;
}

.depth-marker {
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.14em;
  gap: 0.7rem;
  margin-bottom: 0.95rem;
}

.depth-marker__line {
  width: 24px;
  height: 1.5px;
}

.eyebrow-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.eyebrow-lockup .eyebrow {
  margin-bottom: 0;
}

/* Refined Bengali Subtitle Lockup (never orphans opening parenthesis) */
.section--white .bn-label,
.section--pearl .bn-label,
.section--mist .bn-label {
  font-size: 0.78em;
  font-weight: 400;
  color: #547280;
  white-space: nowrap;
}

/* Refined Light-Section Text Links (Hero links untouched) */
.section--white .text-link,
.section--pearl .text-link,
.section--mist .text-link {
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 0.2rem;
}

/* ==========================================================================
   ARCHITECTURAL 2-COLUMN EDITORIAL SPLIT (Eliminates Desktop Dead Voids)
   ========================================================================== */
.editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.editorial-split__cta {
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .editorial-split {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(3rem, 5.5vw, 5.75rem);
    align-items: start;
  }

  .editorial-split--balanced {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .editorial-split--sticky .editorial-split__head {
    position: sticky;
    top: 108px;
  }

  .editorial-split__body .prose {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(5, 74, 99, 0.11);
  }
}

/* ==========================================================================
   REFINED JEWEL-LIKE ICON BADGES ON LIGHT SURFACES (Ocean badges preserved)
   ========================================================================== */
.section--white .icon-badge:not(.icon-badge--on-ocean),
.section--pearl .icon-badge:not(.icon-badge--on-ocean),
.section--mist .icon-badge:not(.icon-badge--on-ocean) {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #E9F3F7;
  border: 1px solid rgba(5, 74, 99, 0.14);
  color: var(--ocean-900);
}

.section--white .icon-badge:not(.icon-badge--on-ocean) svg,
.section--pearl .icon-badge:not(.icon-badge--on-ocean) svg,
.section--mist .icon-badge:not(.icon-badge--on-ocean) svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

/* ==========================================================================
   APPLE-STYLE SEGMENTED ECOSYSTEM TAB BAR & FIXED FEATURE CHECKLIST
   ========================================================================== */
.tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 5px;
  background: #E8F2F6;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: var(--radius-pill);
  border-bottom: 1px solid rgba(5, 74, 99, 0.09);
  margin-top: 2.25rem;
  margin-bottom: 1.85rem;
}

.tab-btn {
  padding: 0.62rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: #3D5B69;
  gap: 0.52rem;
  transition: color 0.25s, background-color 0.3s var(--ease-wave), box-shadow 0.3s var(--ease-wave);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.tab-btn::after {
  display: none;
}

.tab-btn:hover {
  color: var(--ocean-900);
}

.tab-btn[aria-selected="true"] {
  background: #FFFFFF;
  color: var(--ocean-900);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(3, 51, 70, 0.10), 0 1px 2px rgba(3, 51, 70, 0.05);
}

@media (max-width: 639px) {
  .tab-bar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 16px;
    padding: 5px;
  }
  .tab-btn {
    justify-content: flex-start;
    border-radius: 12px;
    padding: 0.72rem 1rem;
  }
}

/* Clean Elevated Feature Box */
.editorial-feature-box {
  background: #F4F9FB;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: 24px;
  padding: clamp(1.5rem, 3.6vw, 3rem);
  gap: clamp(1.75rem, 3.8vw, 3.5rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* CRITICAL FIX: Replaces broken flex column splitting on .feature-checklist li */
.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: 1.5rem 2rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.feature-checklist li {
  position: relative;
  display: block;
  padding: 0.9rem 0 0.9rem 1.35rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
  font-size: 0.95rem;
  line-height: 1.58;
  color: #3D5865;
}

.feature-checklist li strong {
  color: #05202C;
  font-weight: 600;
  margin-right: 0.22rem;
}

.feature-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.32rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-500);
  margin-top: 0;
}

/* ==========================================================================
   MUSEUM-GRADE EDITORIAL CARDS & PIXEL-PERFECT ART PLATES (Zero Gap Mismatch)
   ========================================================================== */
.cards-grid {
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-top: 2.25rem;
}

.editorial-card {
  --card-pad: clamp(1.5rem, 2.4vw, 2.1rem);
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: 18px;
  padding: var(--card-pad);
  gap: 1.25rem;
  box-shadow:
    0 1px 2px rgba(3, 51, 70, 0.03),
    0 10px 28px -18px rgba(3, 51, 70, 0.10);
}

.editorial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 74, 99, 0.20);
  box-shadow:
    0 4px 10px rgba(3, 51, 70, 0.04),
    0 18px 40px -16px rgba(3, 51, 70, 0.14);
}

.editorial-card--tinted {
  background: #F4F9FB;
}

.editorial-card p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: #445F6C;
}

.preview-card-stack {
  --card-pad: clamp(1.45rem, 2.4vw, 2rem);
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: var(--card-pad);
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.04),
    0 18px 44px -18px rgba(3, 51, 70, 0.12);
}

.preview-card-stack p {
  font-size: 0.95rem;
  line-height: 1.62;
}

/* Synchronized edge-to-edge art plates using --card-pad (eliminates mobile offset) */
.card-art-plate {
  height: 98px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 1.45rem;
  border-radius: 17px 17px 0 0;
  padding: 1rem var(--card-pad);
}

.card-art-plate__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.card-head-with-icon {
  margin-bottom: 1.05rem;
}

.card-footer-row {
  padding-top: 1rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
}

.episode-meta {
  font-size: 0.84rem;
  font-weight: 500;
  color: #567280;
}

/* Crisp Architectural Status Tags (never swell into bloated 2-line ovals on mobile) */
.status-badge {
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.015em;
  padding: 0.32rem 0.74rem;
  border-radius: 8px;
}

/* ==========================================================================
   ELEVATED EDITORIAL PULL QUOTE CARD (Replaces Broken Half-Fade Gradient)
   ========================================================================== */
.editorial-quote {
  position: relative;
  border-left: 0;
  margin-block: 0;
  padding: clamp(1.85rem, 3.4vw, 2.75rem);
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 22px;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -22px rgba(3, 51, 70, 0.14);
}

.editorial-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(1.85rem, 3.4vw, 2.75rem);
  width: 48px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--coral-500);
}

.editorial-quote__mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 0.75;
  color: rgba(5, 74, 99, 0.18);
  margin-bottom: 0.65rem;
  user-select: none;
}

.editorial-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.05vw, 1.78rem);
  font-weight: 450;
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: #052330;
  font-style: italic;
  margin-bottom: 1.45rem;
}

.editorial-quote figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #516E7C;
  font-weight: 500;
}

.editorial-quote__rule {
  width: 18px;
  height: 1.5px;
  background: var(--coral-500);
  margin-top: 0.62rem;
  flex-shrink: 0;
}

/* ==========================================================================
   PRECISION ACCORDIONS (Roadmap, Qalban Outline & FAQs)
   ========================================================================== */
.accordion-list {
  margin-top: 2.25rem;
  border-top: 1px solid rgba(5, 74, 99, 0.11);
}

.accordion-list--flush {
  margin-top: 0;
}

.accordion-item {
  border-bottom: 1px solid rgba(5, 74, 99, 0.11);
}

.accordion-trigger {
  padding-block: 1.35rem;
  gap: 1.25rem;
}

.accordion-trigger__left {
  gap: 1rem;
}

.accordion-index {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral-text-on-light);
  min-width: 1.65rem;
}

.accordion-title {
  font-size: clamp(1.02rem, 1.2vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.38;
  color: #05202C;
}

.accordion-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EDF5F8;
  transition: background-color 0.25s;
}

.accordion-icon::before {
  width: 12px;
  height: 1.6px;
}

.accordion-icon::after {
  width: 1.6px;
  height: 12px;
}

.accordion-trigger:hover .accordion-icon,
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: var(--ocean-800);
}

.accordion-trigger:hover .accordion-icon::before,
.accordion-trigger:hover .accordion-icon::after,
.accordion-trigger[aria-expanded="true"] .accordion-icon::before,
.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  background: #FFFFFF;
}

.accordion-panel__content {
  padding-bottom: 1.5rem;
  padding-left: clamp(0rem, 2.2vw, 2.65rem);
  font-size: 0.95rem;
  line-height: 1.68;
  color: #425D6A;
}

.accordion-panel__content strong {
  color: #05202C;
  font-weight: 600;
}

/* ==========================================================================
   FILTER PILLS, ENROLLMENT STEPS, FORM CARD & FOOTER POLISH
   ========================================================================== */
.filter-pills {
  gap: 0.55rem;
  margin-top: 1.65rem;
}

.filter-pill {
  padding: 0.56rem 1.15rem;
  border-width: 1px;
  border-color: rgba(5, 74, 99, 0.18);
  font-size: 0.89rem;
  font-weight: 500;
}

/* Contact Page Enrollment Steps */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 1.85rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.steps-list__item {
  display: flex;
  gap: 1.05rem;
  align-items: flex-start;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
}

.steps-list__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #05202C;
  margin-bottom: 0.22rem;
}

.steps-list__desc {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: #45606D;
}

/* Elevated Clean Form Card */
.form-card {
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 22px;
  padding: clamp(1.65rem, 3.6vw, 2.85rem);
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -22px rgba(3, 51, 70, 0.12);
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
  padding: 0.82rem 1rem;
  border-width: 1px;
  border-color: rgba(5, 74, 99, 0.22);
  border-radius: 10px;
  font-size: 0.96875rem;
}

/* Clean Compact Footer */
.site-footer {
  padding-block: clamp(2.75rem, 5vw, 4.25rem) 2.25rem;
}

.footer-top {
  padding-bottom: 2rem;
}

.footer-motto {
  font-size: 1rem;
}

.footer-nav a {
  font-size: 0.9375rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

/* ==========================================================================
   v17 — BESPOKE TWO-TONE VECTOR ICON SYSTEM (.duburi-ic)
   Matching 2223.png: Deep Ocean (#04394E) + Burnt Coral-Orange (#E05206)
   Elevated Pure-White Squircle Tiles on Light Surfaces + Adaptive Dark Mode
   ========================================================================== */

:root {
  --ic-p: #04394E;
  --ic-a: #E05206;
}

/* Prevent legacy wireframe stroke rules from affecting bespoke two-tone icons */
.icon-badge svg.duburi-ic,
.tab-btn svg.duburi-ic,
.sanctuary-pillar svg.duburi-ic {
  fill: revert;
  stroke: revert;
  stroke-width: revert;
  flex-shrink: 0;
  display: block;
}

/* Elevated Pure-White Squircle Tiles on Light Surfaces (matching 2223.png!) */
.section--white .icon-badge:not(.icon-badge--on-ocean),
.section--pearl .icon-badge:not(.icon-badge--on-ocean),
.section--mist .icon-badge:not(.icon-badge--on-ocean) {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  box-shadow:
    0 2px 5px rgba(3, 51, 70, 0.05),
    0 8px 20px -6px rgba(3, 51, 70, 0.12);
  --ic-p: #04394E;
  --ic-a: #E05206;
}

.section--white .icon-badge:not(.icon-badge--on-ocean) svg.duburi-ic,
.section--pearl .icon-badge:not(.icon-badge--on-ocean) svg.duburi-ic,
.section--mist .icon-badge:not(.icon-badge--on-ocean) svg.duburi-ic {
  width: 31px;
  height: 31px;
}

/* Subtle tactile hover lift on cards — preserves vibrant two-tone icon colors */
.editorial-card:hover .icon-badge:not(.icon-badge--on-ocean),
.editorial-card:hover .icon-badge--coral {
  transform: translateY(-2px) scale(1.04);
  background: #FFFFFF;
  border-color: rgba(5, 74, 99, 0.22);
  box-shadow:
    0 4px 10px rgba(3, 51, 70, 0.08),
    0 12px 24px -6px rgba(3, 51, 70, 0.16);
}

/* Adaptive Dark-Ocean Glass Squircle Badges (Motto Metrics & Studio Film Cards) */
.icon-badge--on-ocean {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(191, 232, 240, 0.28);
  box-shadow: 0 8px 22px rgba(1, 18, 28, 0.26);
  --ic-p: #EAF8FC;
  --ic-a: #FF6B24;
}

.icon-badge--on-ocean svg.duburi-ic {
  width: 31px;
  height: 31px;
}

/* Ecosystem Segmented Tab Icons */
.tab-btn svg.duburi-ic {
  width: 20px;
  height: 20px;
  --ic-p: #3D5B69;
  --ic-a: #CC470A;
  transition: transform 0.3s var(--ease-wave);
}

.tab-btn[aria-selected="true"] svg.duburi-ic {
  --ic-p: #04394E;
  --ic-a: #E05206;
}

/* Hero Arch 3-Pillar Switcher Pill Icons */
.sanctuary-pillar svg.duburi-ic {
  width: 18px;
  height: 18px;
  --ic-p: #04394E;
  --ic-a: #E05206;
}

.sanctuary-pillar.is-active svg.duburi-ic {
  --ic-p: #FFFFFF;
  --ic-a: #FF7833;
}

/* ==========================================================================
   v18 — HANDCRAFTED TYPOGRAPHY HIERARCHY, BORDERLESS STATUS INDICATORS &
         CINEMA VIDEO PLAYER PREVIEW CARDS
   (Hero, Sculpted Water Ripple Arch, Header, Two-Tone Icons & CTAs Untouched)
   ========================================================================== */

/* 1. COMFORTABLE, AUTHORITATIVE TYPOGRAPHY SCALE (Zero Tiny AI Text!) */
body {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem); /* 16.5px mobile -> 17.5px desktop */
  line-height: 1.68;
  color: #27424F;
}

/* Commanding Section Headers (H2): Clearly 2x–3x Larger than Body */
.section--white .h2,
.section--pearl .h2,
.section--mist .h2 {
  font-size: clamp(2.15rem, 3.85vw, 3.45rem); /* 34.4px mobile -> 55.2px desktop */
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #041E29;
  margin-bottom: 1.15rem;
}

/* Strong, Distinct Card & Feature Titles (H3): Clearly 1.5x–1.7x Larger than Body */
.section--white .h3,
.section--pearl .h3,
.section--mist .h3 {
  font-size: clamp(1.5625rem, 2.05vw, 1.875rem); /* 25px mobile -> 30px desktop */
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: #041E29;
  margin-bottom: 0.72rem;
}

.section--white .semester-title,
.section--pearl .semester-title,
.section--mist .semester-title {
  font-size: clamp(1.28rem, 1.55vw, 1.48rem); /* 20.5px -> 23.7px */
  margin-bottom: 0.45rem;
}

/* Natural Lead / Subheader Bridge */
.section--white .lead,
.section--pearl .lead,
.section--mist .lead {
  font-size: clamp(1.125rem, 1.06rem + 0.26vw, 1.28125rem); /* 18px -> 20.5px */
  line-height: 1.62;
  color: #355260;
  max-width: 58ch;
}

/* Rich, Effortless Body Copy Across All Cards, Prose, Lists & Accordions */
.prose p {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem); /* 16.5px -> 17.5px */
  line-height: 1.72;
  color: #27424F;
  margin-bottom: 1.3rem;
}

.editorial-split .prose p:first-child {
  font-size: clamp(1.09375rem, 1.04rem + 0.2vw, 1.2rem); /* 17.5px -> 19.2px */
  line-height: 1.66;
  color: #102D3A;
}

.editorial-card p,
.preview-card-stack p,
.semester-desc,
.form-card__intro {
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.0625rem); /* 16.5px -> 17px */
  line-height: 1.66;
  color: #2E4A58;
}

.form-card__intro {
  margin-bottom: 1.85rem;
  color: #425E6B;
}

.contact-note {
  font-size: 0.96875rem; /* 15.5px */
  color: #466270;
}

.feature-checklist li {
  font-size: clamp(1.015rem, 0.98rem + 0.12vw, 1.0625rem); /* 16.2px -> 17px */
  line-height: 1.62;
  color: #2E4A58;
}

.feature-checklist li::before {
  top: 1.38rem;
}

/* Readable Bengali Subtitles (Eliminates Microscopic 11.8px Bengali Text!) */
.section--white .bn-label,
.section--pearl .bn-label,
.section--mist .bn-label {
  font-size: 0.8em;
  font-weight: 500;
  color: #3D5F6E;
  white-space: normal;
}

.card-bn-subtitle {
  margin-bottom: 0.85rem !important;
  line-height: 1.5 !important;
}

.card-bn-subtitle .bn-label,
.card-bn-inline {
  display: block;
  font-size: 0.96875rem !important; /* 15.5px crisp & clearly legible */
  font-weight: 500;
  color: #395B6A;
  margin-bottom: 0.55rem;
}

/* Crisp Secondary Metadata, Accordions, Eyebrows & Micro-Labels (Strictly >= 13px) */
.eyebrow,
.depth-marker {
  font-size: 0.8125rem; /* 13px crisp minimum */
  line-height: 1.38;
  letter-spacing: 0.12em;
}

.card-art-plate__label {
  font-size: 0.8125rem; /* 13px */
  letter-spacing: 0.11em;
}

.episode-meta {
  font-size: 0.9375rem; /* 15px */
  font-weight: 500;
  color: #466270;
}

.section--white .text-link,
.section--pearl .text-link,
.section--mist .text-link {
  font-size: 1.015rem; /* 16.2px */
  font-weight: 600;
}

.accordion-index {
  font-size: 0.84375rem; /* 13.5px */
  min-width: 1.8rem;
}

.accordion-title {
  font-size: clamp(1.125rem, 1.35vw, 1.25rem); /* 18px -> 20px clearly distinguished from body */
  font-weight: 600;
  line-height: 1.35;
}

.accordion-panel__content {
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem); /* 16px -> 17px */
  line-height: 1.68;
  color: #2E4A58;
}

.steps-list__title {
  font-size: clamp(1.09375rem, 1.25vw, 1.1875rem); /* 17.5px -> 19px */
  margin-bottom: 0.3rem;
}

.steps-list__desc {
  font-size: 1rem; /* 16px */
  line-height: 1.62;
  color: #34505E;
}

.editorial-quote figcaption {
  font-size: 0.9375rem; /* 15px */
}

.tab-btn {
  font-size: 0.96875rem; /* 15.5px */
}

.filter-pill {
  font-size: 0.9375rem; /* 15px */
}

.field label {
  font-size: 0.9375rem; /* 15px */
}

.field input,
.field select,
.field textarea {
  font-size: 1.03125rem; /* 16.5px */
}

.footer-motto {
  font-size: 1.0625rem;
}

.footer-nav a {
  font-size: 0.96875rem; /* 15.5px */
}

.footer-bottom {
  font-size: 0.90625rem; /* 14.5px */
}

/* ==========================================================================
   2. REFINED BORDERLESS EDITORIAL STATUS INDICATORS
      (Eliminates Fake-Button Peach/Orange Boxes Across Every Page!)
   ========================================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.8125rem; /* 13px crisp architectural label */
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Ready / Published / Complete -> Serene Emerald-Teal Live Dot + Deep Ocean Ink */
.status-badge--ready {
  background: transparent;
  color: #064257;
}

.status-badge--ready::before {
  background: #0F8B6D;
  box-shadow: 0 0 0 3px rgba(15, 139, 109, 0.16);
}

/* Near-Term / Ongoing -> Ocean Blue Dot + Cool Slate Ink */
.status-badge--ongoing {
  background: transparent;
  color: #315463;
}

.status-badge--ongoing::before {
  background: #0D80A3;
  box-shadow: 0 0 0 3px rgba(13, 128, 163, 0.15);
}

/* Pipeline / Roadmap -> Crisp Architectural Hollow Ring + Muted Ocean Slate */
.status-badge--pipeline {
  background: transparent;
  color: #496673;
}

.status-badge--pipeline::before {
  background: transparent;
  border: 1.75px solid #597987;
  box-shadow: none;
}

/* Paired Status Metadata Row inside Ecosystem Preview Cards */
.preview-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

/* Dark Ocean Film Cards Status Indicators & Crisp Contrast */
.film-card .status-badge--ready {
  color: #D7F1F7;
}

.film-card .status-badge--ready::before {
  background: #4CD9B0;
  box-shadow: 0 0 0 3.5px rgba(76, 217, 176, 0.22);
}

.film-card__title {
  color: #FFFFFF !important;
  font-size: clamp(2.1rem, 3.3vw, 2.95rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1rem !important;
}

.film-card .bn-label {
  color: var(--ocean-200) !important;
  font-size: 0.68em;
  font-weight: 400;
}

.film-card p {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem);
  line-height: 1.68;
}

/* ==========================================================================
   v19 — SPACIOUS EDITORIAL BREATHING ROOM, COMMANDING TITLE HIERARCHY,
         SINGLE-LINE HERO FOOTER BAR, CLEAN VIDEO CARD & 60FPS SMOOTHNESS
   (Hero Arch & All Animations Remain 100% Untouched!)
   ========================================================================== */

:root {
  /* Generous, Unhurried Apple/Kinfolk Section Rhythm */
  --section-pad: clamp(5.5rem, 9.5vw, 8.75rem);
}

/* Smooth Anchor Offset + Clean Scroll Feel */
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

[id] {
  scroll-margin-top: 96px;
}

/* Solid, Crisp Zero-Lag Sticky Header (No GPU backdrop-filter stutter on scroll) */
.site-header {
  background-color: rgba(255, 255, 255, 0.97);
}

.motto-metric-card {
  background: rgba(2, 32, 46, 0.56);
}

/* Offscreen Section Paint Skipping (Huge Mobile Scroll Boost) */
.section--white,
.section--pearl,
.section--mist,
.motto-band,
.closing-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

/* Release blur GPU layer cleanly after water-phrase reveal completes */
.is-settled .water-phrase {
  filter: none;
  transition: none;
}

/* ==========================================================================
   1. SINGLE-LINE, UNCROWDED HERO BOTTOM BAR (Below Arch — Arch Untouched!)
   ========================================================================== */
.hero-footer-bar {
  border-top: 1px solid rgba(191, 232, 240, 0.16);
  padding-block: 0.9rem;
  background: rgba(2, 26, 38, 0.34);
}

.hero-footer-bar__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(226, 245, 250, 0.84);
}

.hero-footer-bar__brand,
.hero-footer-bar .ripple-hint {
  white-space: nowrap;
  font-size: inherit;
  color: inherit;
}

.hero-footer-bar .ripple-hint {
  color: var(--ocean-200);
  gap: 0.35rem;
}

/* ==========================================================================
   2. COMMANDING TITLE vs BODY HIERARCHY + GENEROUS BREATHING ROOM SITE-WIDE
   ========================================================================== */

/* Calm, Effortlessly Readable Body Copy (15.2px–16.25px, airy 1.78 leading) */
body {
  font-size: clamp(0.95rem, 0.93rem + 0.1vw, 1.015rem);
  line-height: 1.76;
  color: #466270;
}

/* BIG, Commanding Section Headers (H2: 38px mobile -> 60px desktop — 2.5x–3.7x body!) */
.section--white .h2,
.section--pearl .h2,
.section--mist .h2 {
  font-size: clamp(2.35rem, 4.35vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #031B26;
  margin-bottom: 1.45rem;
}

/* Bold, Unmistakable Card & Panel Titles (H3: 28px mobile -> 36px desktop — 1.85x–2.2x body!) */
.section--white .h3,
.section--pearl .h3,
.section--mist .h3 {
  font-size: clamp(1.75rem, 2.45vw, 2.25rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.024em;
  color: #031B26;
  margin-bottom: 1rem;
}

.section--white .semester-title,
.section--pearl .semester-title,
.section--mist .semester-title {
  font-size: clamp(1.38rem, 1.75vw, 1.62rem);
  margin-bottom: 0.65rem;
}

/* Measured Section Lead Bridge (Clearly smaller & softer than H2) */
.section--white .lead,
.section--pearl .lead,
.section--mist .lead {
  font-size: clamp(1.03125rem, 0.99rem + 0.2vw, 1.1875rem);
  line-height: 1.72;
  color: #456270;
  max-width: 54ch;
}

/* Airy Editorial Prose */
.prose p {
  font-size: clamp(0.96875rem, 0.94rem + 0.12vw, 1.03125rem);
  line-height: 1.8;
  color: #3E5A68;
  margin-bottom: 1.65rem;
  max-width: 58ch;
}

.editorial-split .prose p:first-child {
  font-size: clamp(1.03125rem, 1rem + 0.16vw, 1.125rem);
  line-height: 1.74;
  color: #163442;
}

/* Card & Panel Body Text (Quiet, airy, clearly subordinate to 28–36px H3!) */
.editorial-card p,
.preview-card-stack p,
.semester-desc,
.form-card__intro {
  font-size: clamp(0.95rem, 0.93rem + 0.1vw, 1.015rem);
  line-height: 1.76;
  color: #486472;
}

.editorial-feature-box > div > p {
  font-size: clamp(0.96875rem, 0.94rem + 0.12vw, 1.03125rem);
  line-height: 1.78;
  color: #456270 !important;
  max-width: 52ch;
}

.form-card__intro {
  margin-bottom: 2.15rem;
}

/* Keep Depth Marker ("04 · DEPTH — ...") Crisp & Non-Broken on Mobile */
.depth-marker {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.depth-marker > span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.depth-marker__line {
  flex-shrink: 0;
  width: 22px;
}

.eyebrow {
  margin-bottom: 1.15rem;
}

/* Generous Spatial Rhythm Between Sections, Splits, Cards & Tabs */
.editorial-split {
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .editorial-split {
    gap: clamp(3.5rem, 6vw, 6.25rem);
  }
}

.editorial-split__cta {
  margin-top: 2.25rem;
}

.tab-bar {
  margin-top: 2.75rem;
  margin-bottom: 2.5rem;
}

.editorial-feature-box {
  padding: clamp(2rem, 4.4vw, 3.65rem);
  gap: clamp(2.5rem, 4.6vw, 4.25rem);
}

.cards-grid {
  gap: clamp(1.85rem, 3vw, 2.5rem);
  margin-top: clamp(2.65rem, 4.2vw, 3.75rem);
}

.editorial-card {
  --card-pad: clamp(1.85rem, 3vw, 2.55rem);
  gap: 1.75rem;
}

.preview-card-stack {
  --card-pad: clamp(1.75rem, 2.8vw, 2.4rem);
}

.card-art-plate {
  height: 106px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 1.85rem;
}

.card-head-with-icon {
  margin-bottom: 1.45rem;
}

.card-footer-row {
  padding-top: 1.35rem;
}

.card-bn-subtitle {
  margin-bottom: 1.15rem !important;
}

/* Decluttered Block-Structured Feature Checklist (Fixes Cramped 2248.jpg!) */
.feature-checklist {
  margin-block: 2.15rem 2.5rem;
}

.feature-checklist li {
  padding: 1.3rem 0 1.3rem 1.4rem;
  font-size: clamp(0.9375rem, 0.92rem + 0.08vw, 0.985rem);
  line-height: 1.72;
  color: #4A6674;
}

.feature-checklist li strong {
  display: block;
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.09375rem);
  line-height: 1.36;
  font-weight: 600;
  color: #041E29;
  margin-bottom: 0.32rem;
  margin-right: 0;
}

.feature-checklist li::before {
  top: 1.74rem;
  width: 6px;
  height: 6px;
}

/* Airy, Scannable Accordions (Fixes Dense 2250.jpg!) */
.accordion-trigger {
  padding-block: 1.65rem;
  gap: 1.35rem;
}

.accordion-title {
  font-size: clamp(1.16rem, 1.42vw, 1.3rem);
  font-weight: 600;
  line-height: 1.36;
  color: #031B26;
}

.accordion-panel__content {
  padding-top: 0.2rem;
  padding-bottom: 2.1rem;
  padding-left: clamp(0rem, 2.4vw, 2.8rem);
  font-size: clamp(0.95rem, 0.93rem + 0.08vw, 1rem);
  line-height: 1.78;
  color: #486472;
}

.accordion-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  margin-top: 1.05rem;
}

.accordion-points li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.68;
}

.accordion-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral-500);
}

.accordion-points li strong {
  color: #041E29;
  font-weight: 600;
}

/* Generous Spacing on Filter Pills, Steps & Form */
.filter-pills {
  gap: 0.65rem;
  margin-top: 2rem;
}

.steps-list {
  margin-top: 2.25rem;
}

.steps-list__item {
  padding-block: 1.55rem;
  gap: 1.25rem;
}

.steps-list__title {
  font-size: clamp(1.125rem, 1.3vw, 1.22rem);
  margin-bottom: 0.4rem;
}

.steps-list__desc {
  font-size: 0.96875rem;
  line-height: 1.72;
  color: #486472;
}

.form-card {
  padding: clamp(2rem, 4vw, 3.25rem);
}

.form-grid {
  gap: 1.75rem;
}

.editorial-quote {
  padding: clamp(2.15rem, 3.8vw, 3.15rem);
}

.editorial-quote blockquote {
  font-size: clamp(1.48rem, 2.2vw, 1.92rem);
  line-height: 1.42;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   3. CLEAN MINIMALIST CLICKABLE VIDEO PREVIEW CARD (studio.html — Fixes 2244.jpg!)
      - Zero fake scrubber bar / zero fake video controls
      - Zero mobile horizontal cutoff (min-width: 0 + width: 100%)
      - Unmistakable centered circular Play button + crisp caption
   ========================================================================== */
.film-card {
  padding: clamp(1.85rem, 4.2vw, 3.5rem);
  gap: clamp(2rem, 3.5vw, 3rem);
}

.film-card > * {
  min-width: 0;
}

a.film-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  gap: 0.7rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(13, 134, 170, 0.52) 0%, rgba(4, 50, 70, 0.92) 60%, rgba(2, 22, 32, 0.99) 100%);
  border: 1px solid rgba(191, 232, 240, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 42px rgba(1, 15, 23, 0.38);
  transition: transform 0.45s var(--ease-wave), border-color 0.3s, box-shadow 0.45s var(--ease-wave);
}

a.film-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(191, 232, 240, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 52px rgba(1, 15, 23, 0.5);
}

a.film-frame svg.art-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

a.film-frame .film-play-ring {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  min-width: 62px;
  min-height: 62px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: #D44B0D;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
  box-shadow:
    0 0 0 10px rgba(212, 75, 13, 0.24),
    0 10px 26px rgba(1, 16, 24, 0.45);
  transition: transform 0.4s var(--ease-wave), background-color 0.3s, box-shadow 0.4s;
}

a.film-frame .film-play-ring svg {
  width: 24px;
  height: 24px;
  transform: translateX(2px);
}

a.film-frame:hover .film-play-ring,
.film-card:hover a.film-frame .film-play-ring {
  transform: scale(1.08);
  background: #E05C1E;
  box-shadow:
    0 0 0 15px rgba(212, 75, 13, 0.32),
    0 14px 32px rgba(1, 16, 24, 0.52);
}

.film-frame__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: #FFFFFF;
}

.film-frame__cta {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ocean-200);
  transition: color 0.25s;
}

a.film-frame:hover .film-frame__cta {
  color: #FFFFFF;
}

/* ==========================================================================
   v20 — HOMEPAGE MINIMAL EDITORIAL ILLUSTRATIONS (.editorial-illus)
   - Full-bleed crisp SVG plates inside soft architectural rounded frames
   - Zero layout shift, zero visual clutter, balanced sticky laptop fit
   ========================================================================== */
.editorial-illus {
  margin-top: clamp(1.85rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(5, 74, 99, 0.10);
  background: #F4FAFC;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 16px 38px -20px rgba(3, 51, 70, 0.14);
}

.editorial-illus img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 360;
}

@media (max-width: 899px) {
  .editorial-illus {
    max-width: 100%;
    margin-top: 1.85rem;
    margin-bottom: 0.25rem;
  }
}

/* Laptop viewport height guard so sticky left column + illustration never clips */
@media (min-width: 900px) and (max-height: 820px) {
  .editorial-split--sticky .editorial-illus {
    max-width: 360px;
    margin-top: 1.5rem;
  }
}

/* ==========================================================================
   v21 — CREATIVELY INTEGRATED FRAMELESS HOMEPAGE ILLUSTRATIONS
   - Zero rectangular boxes/borders on the 4 integrated SVGs (100% transparent
     directly onto the website paper, woven organically into the typography!)
   - Keeps Section 06 Quiet Study (.editorial-illus) crisp & intact!
   ========================================================================== */

/* Shared Frameless Paper-Integrated Illustration Base */
.illus-frameless {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.illus-frameless img {
  display: block;
  width: 100%;
  height: auto;
}

/* 1. SECTION 01: CELESTIAL ASTROLABE WOVEN DIRECTLY INTO PROSE
      - Desktop (>= 680px): Circular shape-outside wrap so sentences curve
        gracefully around the astrolabe like a luxury editorial book spread!
      - Mobile (< 680px): Clean frameless centerpiece breathing right on #FFFFFF! */
.prose--woven {
  position: relative;
}

.prose--woven::after {
  content: '';
  display: table;
  clear: both;
}

.illus-woven-compass {
  margin: 0 auto 2.15rem;
  width: min(260px, 72vw);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.illus-woven-compass img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (min-width: 680px) {
  .prose--woven p {
    max-width: none;
  }

  .illus-woven-compass {
    float: right;
    width: clamp(204px, 22vw, 252px);
    margin: -0.5rem -0.25rem 1rem 2rem;
    shape-outside: circle(48%);
    shape-margin: 14px;
  }
}

/* 2. SECTION 02: HARMONIZED ECOSYSTEM HEADER + FRAMELESS THREE CURRENTS */
.ecosystem-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.ecosystem-intro-grid__copy {
  max-width: 44rem;
}

.illus-frameless--streams {
  width: 100%;
  max-width: 420px;
}

@media (min-width: 900px) {
  .ecosystem-intro-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
    align-items: center;
  }

  .illus-frameless--streams {
    justify-self: end;
    max-width: 460px;
  }
}

/* 3. SECTION 04: FRAMELESS ARCHITECTURAL ARCH RISING OFF WHITE PAPER */
.illus-frameless--arch {
  margin-top: clamp(1.75rem, 2.8vw, 2.4rem);
  width: 100%;
  max-width: 410px;
}

@media (max-width: 899px) {
  .illus-frameless--arch {
    margin-inline: auto;
    max-width: 380px;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .editorial-split--sticky .illus-frameless--arch {
    max-width: 330px;
    margin-top: 1.35rem;
  }
}

/* 4. SECTION 05: FRAMELESS ORGANIC TRUST CONSTELLATION CROWNING THE QUOTE */
.editorial-split__body--trust {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.illus-frameless--trust {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .illus-frameless--trust {
    margin-bottom: -0.35rem;
  }
}

/* ==========================================================================
   v22 — HANDCRAFTED HOMEPAGE TYPOGRAPHY & BREATHING ROOM (body.page-home)
   Calibrated to luxury editorial proportions (Hero & Animations 100% Untouched):
   - H2 Headline : 46px mobile -> 69px desktop (2.55x–3.6x Body!)
   - H3 Title    : 33px mobile -> 42px desktop (1.85x–2.2x Body!)
   - Accordion   : 21px mobile -> 25px desktop (airy 30px vertical padding)
   - Lead / Sub  : 19.5px mobile -> 21.5px desktop
   - Body Copy   : 18px mobile -> 19px desktop (calm #495E6A, 1.8 line-height)
   ========================================================================== */

/* Generous Gallery-Grade Section Breathing Room on Homepage */
.page-home .section:not(.hero) {
  padding-block: clamp(6rem, 10.5vw, 9.75rem);
}

/* Calm, Clean Editorial Kickers (Like "The curriculum" — Crisp, Unhurried) */
.page-home .section:not(.hero) .eyebrow,
.page-home .section:not(.hero) .depth-marker {
  font-size: 0.9375rem; /* 15px clean & effortless */
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.page-home .section--white .eyebrow,
.page-home .section--pearl .eyebrow,
.page-home .section--mist .eyebrow,
.page-home .section--white .depth-marker,
.page-home .section--pearl .depth-marker,
.page-home .section--mist .depth-marker {
  color: #9E3405;
}

.page-home .section:not(.hero) .depth-marker__line {
  width: 24px;
  opacity: 0.55;
}

/* COMMANDING H2 SECTION HEADLINES (46px mobile -> 69px desktop — Unmistakable!) */
.page-home .section--white .h2,
.page-home .section--pearl .h2,
.page-home .section--mist .h2 {
  font-size: clamp(2.85rem, 6vw, 4.3rem);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #041B26;
  margin-bottom: 1.9rem;
}

/* BOLD, UNMISTAKABLE H3 CARD & PANEL TITLES (33px mobile -> 42px desktop!) */
.page-home .section--white .h3,
.page-home .section--pearl .h3,
.page-home .section--mist .h3 {
  font-size: clamp(2.05rem, 3.1vw, 2.6rem);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -0.026em;
  color: #041B26;
  margin-bottom: 1.25rem;
}

.page-home .preview-card-stack .h3 {
  font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  margin-bottom: 1.05rem;
}

/* DISTINCT SUB-HEADLINE / LEAD (19.5px mobile -> 21.5px desktop) */
.page-home .section--white .lead,
.page-home .section--pearl .lead,
.page-home .section--mist .lead {
  font-size: clamp(1.2rem, 1.14rem + 0.28vw, 1.35rem);
  line-height: 1.72;
  color: #485E6A;
  max-width: 48ch;
}

/* COMFORTABLE, EFFORTLESS BODY COPY (18px mobile -> 19px desktop, 1.82 leading!) */
.page-home .section:not(.hero) .prose p {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.1875rem);
  line-height: 1.82;
  color: #495E6A;
  margin-bottom: 1.75rem;
  max-width: 50ch;
}

.page-home .section:not(.hero) .editorial-split .prose p:first-child {
  font-size: clamp(1.15625rem, 1.11rem + 0.18vw, 1.25rem);
  line-height: 1.78;
  color: #2B4552;
}

.page-home .section:not(.hero) .prose p:last-child {
  margin-bottom: 0;
}

.page-home .editorial-feature-box > div > p {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.1875rem);
  line-height: 1.78;
  color: #495E6A !important;
  max-width: 46ch;
}

.page-home .preview-card-stack p {
  font-size: clamp(1.09375rem, 1.06rem + 0.14vw, 1.15625rem);
  line-height: 1.76;
  color: #495E6A;
}

.page-home .section:not(.hero) .text-link {
  font-size: 1.125rem;
  font-weight: 600;
  padding-bottom: 0.28rem;
}

/* ROOMY FEATURE CHECKLIST INSIDE ECOSYSTEM TABS */
.page-home .feature-checklist {
  margin-block: 2.35rem 2.75rem;
}

.page-home .feature-checklist li {
  padding: 1.45rem 0 1.45rem 1.5rem;
  font-size: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
  line-height: 1.72;
  color: #495E6A;
}

.page-home .feature-checklist li strong {
  font-size: clamp(1.22rem, 1.45vw, 1.34rem);
  line-height: 1.32;
  font-weight: 600;
  color: #041B26;
  margin-bottom: 0.38rem;
}

.page-home .feature-checklist li::before {
  top: 1.98rem;
  width: 7px;
  height: 7px;
}

/* LUXURY BAYYINAH-STYLE ACCORDION ROWS (Clean Numbers, Big Titles, Hairline +) */
.page-home .accordion-list {
  border-top: 1px solid rgba(5, 74, 99, 0.13);
}

.page-home .accordion-item {
  border-bottom: 1px solid rgba(5, 74, 99, 0.13);
}

.page-home .accordion-trigger {
  padding-block: 1.9rem;
  gap: 1.5rem;
}

.page-home .accordion-trigger__left {
  gap: 1.35rem;
}

.page-home .accordion-index {
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px subtle, clean number */
  font-weight: 400;
  letter-spacing: 0;
  color: #627B87;
  min-width: 1.25rem;
}

.page-home .accordion-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3125rem, 1.8vw, 1.5625rem); /* 21px mobile -> 25px desktop! */
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: #041B26;
}

/* Pure Hairline + Icon (No Clunky Grey Circle Background) */
.page-home .accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
}

.page-home .accordion-icon::before {
  width: 16px;
  height: 1.6px;
  background: #233E4B !important;
}

.page-home .accordion-icon::after {
  width: 1.6px;
  height: 16px;
  background: #233E4B !important;
}

.page-home .accordion-trigger:hover .accordion-icon::before,
.page-home .accordion-trigger:hover .accordion-icon::after,
.page-home .accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  background: #D44B0D !important;
}

.page-home .accordion-panel__content {
  padding-top: 0.15rem;
  padding-bottom: 2.35rem;
  padding-left: clamp(0rem, 2.5vw, 2.6rem);
  font-size: clamp(1.09375rem, 1.06rem + 0.12vw, 1.15625rem); /* 17.5px -> 18.5px */
  line-height: 1.8;
  color: #495E6A;
}

.page-home .accordion-points {
  gap: 0.95rem;
  margin-top: 0.75rem;
}

.page-home .accordion-points li::before {
  top: 0.74rem;
  width: 6px;
  height: 6px;
}

/* ECOSYSTEM TABS & CARD SPACING */
.page-home .tab-bar {
  margin-top: 3.25rem;
  margin-bottom: 2.75rem;
}

.page-home .tab-btn {
  font-size: 1.03125rem;
  padding: 0.78rem 1.45rem;
}

.page-home .editorial-feature-box {
  padding: clamp(2.25rem, 4.6vw, 4rem);
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.page-home .preview-card-stack {
  --card-pad: clamp(2rem, 3.2vw, 2.75rem);
}

/* MID-PAGE OCEAN MOTTO BAND & CLOSING CTA SCALE */
.page-home .motto-band__quote {
  font-size: clamp(2.85rem, 6vw, 4.85rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.page-home .motto-band .lead,
.page-home .closing-cta .lead {
  font-size: clamp(1.1875rem, 1.12rem + 0.25vw, 1.34rem);
  line-height: 1.74;
  max-width: 48ch;
}

.page-home .motto-metric-card {
  padding: 2.15rem;
}

.page-home .motto-metric-card__num {
  font-size: 2.65rem;
  margin-bottom: 0.5rem;
}

.page-home .motto-metric-card__label {
  font-size: 1.09375rem;
  line-height: 1.65;
}

/* PULL QUOTE CARD BREATHING ROOM */
.page-home .editorial-quote {
  padding: clamp(2.35rem, 4vw, 3.4rem);
}

.page-home .editorial-quote blockquote {
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  line-height: 1.38;
  margin-bottom: 1.9rem;
}

.page-home .editorial-quote figcaption {
  font-size: 1.03125rem;
  padding-top: 1.35rem;
}

/* GENEROUS SPLIT GAPS & ILLUSTRATION BREATHING ROOM */
.page-home .editorial-split {
  gap: 3rem;
}

@media (min-width: 900px) {
  .page-home .editorial-split {
    gap: clamp(3.75rem, 6.2vw, 6.75rem);
  }
}

.page-home .editorial-split__cta {
  margin-top: 2.5rem;
}

.page-home .illus-frameless--arch {
  margin-top: clamp(2.25rem, 3.5vw, 3rem);
}

.page-home .editorial-illus {
  margin-top: clamp(2.25rem, 3.5vw, 3rem);
}

.page-home .editorial-split__body--trust {
  gap: 2rem;
}

/* Ensure woven astrolabe sits cleanly with generous air on both mobile & desktop */
.page-home .illus-woven-compass {
  margin: 0 auto 2.5rem;
}

@media (min-width: 680px) {
  .page-home .illus-woven-compass {
    margin: -0.25rem -0.25rem 1.25rem 2.35rem;
  }
}

/* ==========================================================================
   v23 — HANDCRAFTED EDITORIAL TYPOGRAPHY & BREATHING ROOM FOR COURSES & LIBRARY
   Matches homepage v22 scale verbatim (index.html & other pages untouched!):
   - H2 Headline : 46px mobile -> 69px desktop (2.55x–3.6x Body!)
   - H3 Title    : 31px mobile -> 38px desktop (1.75x–2.05x Body!)
   - Accordion   : 21px mobile -> 25px desktop (clean numbers, hairline +)
   - Lead / Sub  : 19.2px mobile -> 21.6px desktop
   - Body Copy   : 18px mobile -> 19px desktop (calm #495E6A, 1.8 line-height)
   ========================================================================== */

/* Subpage Hero Polish: Crisp, Legible Subheader & Confident Scale */
.page-editorial .page-hero .h1 {
  font-size: clamp(2.85rem, 5.6vw, 4.85rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}

.page-editorial .page-hero .lead {
  font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.28rem);
  line-height: 1.68;
  color: rgba(236, 249, 253, 0.86);
  max-width: 48ch;
}

/* Generous Gallery-Grade Section Rhythm */
.page-editorial .section:not(.page-hero) {
  padding-block: clamp(6rem, 10.5vw, 9.75rem);
}

.page-editorial .section-intro {
  max-width: 46rem;
}

/* Calm, Clean Editorial Kickers (15px sentence-case — matches homepage!) */
.page-editorial .section:not(.page-hero) .eyebrow {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.page-editorial .section--white .eyebrow,
.page-editorial .section--pearl .eyebrow {
  color: #9E3405;
}

/* COMMANDING H2 SECTION HEADLINES (45.6px mobile -> 68.8px desktop!) */
.page-editorial .section--white .h2,
.page-editorial .section--pearl .h2 {
  font-size: clamp(2.85rem, 6vw, 4.3rem);
  font-weight: 450;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: #041B26;
  margin-bottom: 1.75rem;
}

/* Balanced Split-Column H2 (Surah Mulk, Quran Tuition, Inside Qalban Shaakirah) */
.page-editorial .section--white .h2--split,
.page-editorial .section--pearl .h2--split {
  font-size: clamp(2.55rem, 4.4vw, 3.6rem);
  line-height: 1.07;
  margin-bottom: 1.25rem;
}

/* UNMISTAKABLE H3 CARD TITLES (31px mobile -> 38px desktop — ~2x Body!) */
.page-editorial .section--white .h3,
.page-editorial .section--pearl .h3 {
  font-size: clamp(1.95rem, 2.55vw, 2.35rem);
  font-weight: 480;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: #041B26;
  margin-bottom: 0.85rem;
}

/* Clean Bengali Subtitle Directly Beneath Card Title */
.page-editorial .card-bn-subtitle {
  margin-top: -0.25rem;
  margin-bottom: 1.35rem !important;
  line-height: 1.55 !important;
}

.page-editorial .card-bn-subtitle .bn-label {
  font-size: 1rem !important; /* 16px crisp & calm */
  font-weight: 500;
  color: #506C7A;
  margin-bottom: 0;
}

/* DISTINCT SUB-HEADLINE / LEAD (19.2px -> 21.6px) */
.page-editorial .section--white .lead,
.page-editorial .section--pearl .lead {
  font-size: clamp(1.2rem, 1.14rem + 0.28vw, 1.35rem);
  line-height: 1.72;
  color: #485E6A;
  max-width: 48ch;
}

/* COMFORTABLE, AIRY BODY COPY (18px mobile -> 19px desktop, 1.8 leading!) */
.page-editorial .editorial-card p:not(.card-bn-subtitle),
.page-editorial .editorial-feature-box > div > p:not(.card-bn-subtitle),
.page-editorial .semester-desc {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.1875rem);
  line-height: 1.8;
  color: #495E6A !important;
}

.page-editorial .editorial-card p:not(.card-bn-subtitle) {
  max-width: 46ch;
}

/* GENEROUS CARD, GRID & SUB-BAND BREATHING ROOM */
.page-editorial .cards-grid {
  gap: clamp(2rem, 3.2vw, 2.75rem);
  margin-top: clamp(3rem, 4.8vw, 4.25rem);
}

.page-editorial .editorial-card {
  --card-pad: clamp(2rem, 3.4vw, 2.85rem);
  gap: 2rem;
}

.page-editorial .card-art-plate {
  height: 112px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 2rem;
}

.page-editorial .card-head-with-icon {
  margin-bottom: 1.65rem;
}

.page-editorial .card-footer-row {
  padding-top: 1.5rem;
  gap: 1.15rem;
}

.page-editorial .episode-meta {
  font-size: 0.96875rem; /* 15.5px */
  color: #58727F;
}

.page-editorial .section:not(.page-hero) .text-link {
  font-size: 1.09375rem; /* 17.5px */
  font-weight: 600;
  padding-bottom: 0.26rem;
}

/* Filter Pills Breathing Room */
.page-editorial .filter-pills {
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.page-editorial .filter-pill {
  padding: 0.72rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Generous Vertical Separation Between Catalog Sub-bands */
.page-editorial .catalog-subband {
  margin-top: clamp(6rem, 10vw, 8.75rem);
}

.page-editorial .catalog-outline {
  margin-top: clamp(5.75rem, 9.5vw, 8.25rem);
  padding-top: clamp(4.25rem, 7.5vw, 6.5rem);
  border-top: 1px solid rgba(5, 74, 99, 0.12);
}

/* Surah Mulk Feature Box & Semester Stack */
.page-editorial .editorial-feature-box {
  padding: clamp(2.25rem, 4.6vw, 4rem);
  gap: clamp(2.75rem, 5vw, 4.5rem);
}

.page-editorial .preview-card-stack {
  --card-pad: clamp(2rem, 3.2vw, 2.75rem);
}

.page-editorial .semester-block--divider {
  margin-bottom: 1.85rem;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.11);
}

.page-editorial .semester-title {
  font-size: clamp(1.48rem, 2vw, 1.85rem) !important;
  margin-bottom: 0.75rem !important;
  color: #041B26;
}

.page-editorial .semester-desc strong {
  color: #041B26;
  font-weight: 600;
}

/* Generous Split Spacing */
.page-editorial .editorial-split {
  gap: 3rem;
}

@media (min-width: 900px) {
  .page-editorial .editorial-split {
    gap: clamp(3.75rem, 6.2vw, 6.75rem);
  }
}

/* LUXURY BAYYINAH-STYLE ACCORDIONS (Library 4-Part Outline — Matches Homepage!) */
.page-editorial .accordion-list {
  border-top: 1px solid rgba(5, 74, 99, 0.13);
}

.page-editorial .accordion-item {
  border-bottom: 1px solid rgba(5, 74, 99, 0.13);
}

.page-editorial .accordion-trigger {
  padding-block: 1.9rem;
  gap: 1.5rem;
}

.page-editorial .accordion-trigger__left {
  gap: 1.35rem;
}

.page-editorial .accordion-index {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #627B87;
  min-width: 1.25rem;
}

.page-editorial .accordion-title {
  font-family: var(--font-sans);
  font-size: clamp(1.3125rem, 1.8vw, 1.5625rem); /* 21px mobile -> 25px desktop */
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: #041B26;
}

.page-editorial .accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
}

.page-editorial .accordion-icon::before {
  width: 16px;
  height: 1.6px;
  background: #233E4B !important;
}

.page-editorial .accordion-icon::after {
  width: 1.6px;
  height: 16px;
  background: #233E4B !important;
}

.page-editorial .accordion-trigger:hover .accordion-icon::before,
.page-editorial .accordion-trigger:hover .accordion-icon::after,
.page-editorial .accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  background: #D44B0D !important;
}

.page-editorial .accordion-panel__content {
  padding-top: 0.15rem;
  padding-bottom: 2.35rem;
  padding-left: clamp(0rem, 2.5vw, 2.6rem);
  font-size: clamp(1.09375rem, 1.06rem + 0.12vw, 1.15625rem);
  line-height: 1.8;
  color: #495E6A;
}

/* Closing Ocean CTA Scale Match */
.page-editorial .closing-cta .lead {
  font-size: clamp(1.1875rem, 1.12rem + 0.25vw, 1.34rem);
  line-height: 1.74;
  max-width: 48ch;
}

/* ==========================================================================
   v28 — GPU COMPOSITOR ISOLATION & OFFSCREEN ANIMATION PAUSE (Zero Lag!)
   - Promotes canvas layers to dedicated GPU textures so repaints never
     re-rasterize the arch's rounded clip mask or 80px box-shadow
   - Automatically pauses offscreen SVG waves & bathymetric contours
   ========================================================================== */
.sanctuary-ripple-canvas,
.water-wave-canvas {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.is-offscreen .wave-layer-1,
.is-offscreen .wave-layer-2,
.is-offscreen .wave-layer-3,
.is-offscreen .ocean-contour {
  animation-play-state: paused !important;
}


/* ==========================================================================
   v31 — COMMANDING ABOUT US DEPTH ILLUSTRATION & RABBI ZIDNI ILMA CALLIGRAPHY
   ========================================================================== */
.illus-frameless--about {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  width: 100%;
  max-width: 460px;
}

.illus-frameless--about img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 899px) {
  .illus-frameless--about {
    margin-inline: auto;
    margin-top: 1.85rem;
    max-width: 420px;
  }
}

/* Majestic, Unhurried Scale for "رَبِّ زِدْنِي عِلْمًا" in Amiri Quran */
.arabic-bismillah {
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  line-height: 1.9;
}


/* ==========================================================================
   v33 — ARCHITECTURAL ECOSYSTEM STAGE (Homepage #how-duburi-works Overhaul)
   - Single-row compact mobile & desktop segmented tab bar (.eco-tabs)
   - Unified two-zone split card (.eco-stage): crisp white editorial ledger +
     seamlessly fused deep-ocean spotlight panel (zero nested box-in-box!)
   - High-contrast typography on dark ocean & structured numbered ledger rows
   ========================================================================== */

/* 1. SLEEK SEGMENTED PILL TAB BAR (Single-Row Even on Mobile!) */
.eco-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.35rem;
  padding: 5px;
  background: #E6F1F5;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: var(--radius-pill);
  margin-top: clamp(2.5rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.eco-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.45rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #365564;
  font-size: 0.96875rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease-wave), color 0.25s, box-shadow 0.3s var(--ease-wave);
}

.eco-tab svg.duburi-ic {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  --ic-p: #365564;
  --ic-a: #CC470A;
}

.eco-tab:hover {
  color: #04202C;
}

.eco-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #06526D 0%, #033548 100%);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(3, 51, 70, 0.24);
}

.eco-tab[aria-selected="true"] svg.duburi-ic {
  --ic-p: #FFFFFF;
  --ic-a: #FF7E3D;
}

.eco-tab__num {
  opacity: 0.68;
  font-weight: 500;
}

@media (max-width: 639px) {
  .eco-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 4px;
    padding: 4px;
  }
  .eco-tab {
    padding: 0.68rem 0.45rem;
    font-size: 0.875rem;
    gap: 0.36rem;
  }
  .eco-tab svg.duburi-ic {
    width: 16px;
    height: 16px;
  }
  .eco-tab__num {
    display: none;
  }
}

/* 2. UNIFIED TWO-ZONE ARCHITECTURAL SPLIT CARD */
.eco-stage {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 24px 60px -24px rgba(3, 51, 70, 0.14);
}

@media (min-width: 960px) {
  .eco-stage {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: stretch;
  }
}

/* LEFT / TOP WHITE EDITORIAL ZONE */
.eco-stage__main {
  padding: clamp(1.75rem, 3.8vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eco-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.05rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9E3405;
}

.eco-kicker svg.duburi-ic {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  --ic-p: #04394E;
  --ic-a: #E05206;
}

.eco-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #041B26;
  margin-bottom: 0.9rem;
}

.eco-lead {
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.125rem);
  line-height: 1.66;
  color: #4A6370;
  max-width: 44ch;
  margin-bottom: 0;
}

/* STRUCTURED NUMBERED CATALOG LEDGER (Replaces Generic Bullet List!) */
.eco-ledger {
  list-style: none;
  margin-block: clamp(1.75rem, 3vw, 2.35rem);
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.eco-ledger__row {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-block: 1.15rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
}

.eco-ledger__idx {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7893A0;
  padding-top: 0.22rem;
  font-variant-numeric: tabular-nums;
}

.eco-ledger__content {
  min-width: 0;
}

.eco-ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.28rem;
}

.eco-ledger__head strong {
  font-size: clamp(1.0625rem, 1.25vw, 1.15625rem);
  font-weight: 600;
  line-height: 1.32;
  color: #041B26;
}

.eco-ledger__bn {
  font-family: var(--font-bn);
  font-weight: 500;
  font-size: 0.9em;
  color: #4D6A78;
}

.eco-ledger__content p {
  font-size: clamp(0.95rem, 0.93rem + 0.08vw, 1rem);
  line-height: 1.6;
  color: #4B6673;
  margin: 0;
  max-width: 46ch;
}

.eco-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.56rem;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.eco-tag--live {
  background: rgba(15, 139, 109, 0.10);
  color: #0B6E56;
}

.eco-tag--info {
  background: rgba(13, 128, 163, 0.10);
  color: #085E7A;
}

.eco-stage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

/* RIGHT / BOTTOM SEAMLESSLY FUSED DEEP-OCEAN SPOTLIGHT PANEL */
.eco-stage__spotlight {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 86% 14%, #095C78 0%, #04364A 48%, #02202E 100%);
  color: #FFFFFF;
  padding: clamp(1.85rem, 3.8vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.eco-spot__bg {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 260px;
  height: 260px;
  opacity: 0.14;
  pointer-events: none;
}

.eco-spot__top,
.eco-spot__body,
.eco-spot__footer {
  position: relative;
  z-index: 2;
}

.eco-spot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
}

.eco-spot__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #D2F3FA;
  white-space: nowrap;
}

.eco-spot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF7833;
  box-shadow: 0 0 0 3px rgba(255, 120, 51, 0.24);
  flex-shrink: 0;
}

.eco-spot__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8CE2EC;
  white-space: nowrap;
}

.eco-spot__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.6vw, 2.4rem);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: #FFFFFF !important;
  margin-bottom: 0.45rem;
}

.eco-spot__bn {
  font-family: var(--font-bn);
  font-size: 0.98rem;
  font-weight: 500;
  color: #96DFEC !important;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.eco-spot__desc {
  font-size: clamp(0.98rem, 0.95rem + 0.12vw, 1.0625rem);
  line-height: 1.68;
  color: rgba(235, 248, 252, 0.88) !important;
  margin: 0;
  max-width: 38ch;
}

.eco-spot__footer {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(191, 232, 240, 0.16);
}

.eco-spot__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.eco-spot__spec-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(168, 224, 236, 0.72);
  margin-bottom: 0.2rem;
}

.eco-spot__spec-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #F2FBFE;
  line-height: 1.35;
}

.eco-spot__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 232, 240, 0.22);
  color: #FFFFFF;
  font-size: 0.96875rem;
  font-weight: 600;
  transition: background-color 0.28s, border-color 0.28s, transform 0.35s var(--ease-wave);
}

.eco-spot__link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(191, 232, 240, 0.45);
  transform: translateY(-1px);
}

.eco-spot__arrow {
  color: #FF8243;
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease-wave);
}

.eco-spot__link:hover .eco-spot__arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   v34 — MODERN MINIMALIST COURSE CATALOG & UNIFIED COURSE COVER SYSTEM
   - Bigger unified illustration (`illus-course-cover.svg`, 16:8.5 full-bleed)
     across ALL courses (Video Series, Masterclasses, Surah Mulk, Home Courses)
   - Bigger, commanding Fraunces course titles with disciplined hierarchy
   - Generous breathing room, zero cluttered icon boxes, single-line footers
   ========================================================================== */

/* Clean Modern Filter Pills on Courses Page */
.page-courses .filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.page-courses .filter-pill {
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #FFFFFF;
  color: #355463;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(3, 51, 70, 0.03);
  transition: all 0.28s var(--ease-wave);
}

.page-courses .filter-pill:hover {
  border-color: #054A63;
  color: #031B26;
  transform: translateY(-1px);
}

.page-courses .filter-pill.is-active {
  background: linear-gradient(180deg, #06526D 0%, #033548 100%);
  border-color: #033548;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(3, 51, 70, 0.22);
}

/* Spacious Responsive Course Grids */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.2vw, 2.65rem);
  margin-top: clamp(2.85rem, 4.6vw, 4rem);
}

@media (min-width: 780px) {
  .courses-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .courses-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 2.5vw, 2.25rem);
  }
}

/* MODERN, STYLIZED, MINIMALIST COURSE CARD */
.course-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -24px rgba(3, 51, 70, 0.13);
  transition:
    transform 0.48s var(--ease-wave),
    border-color 0.3s,
    box-shadow 0.48s var(--ease-wave);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 74, 99, 0.22);
  box-shadow:
    0 6px 14px rgba(3, 51, 70, 0.05),
    0 28px 60px -22px rgba(3, 51, 70, 0.18);
}

.course-card--upcoming {
  background: #FCFEFF;
}

/* Bigger, Commanding Unified Course Illustration Stage */
.course-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 340;
  background: #02202E;
  overflow: hidden;
  flex-shrink: 0;
}

.course-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.course-card:hover .course-card__media img {
  transform: scale(1.035);
}

/* Subtle Translucent Glass Corner Badges Over Illustration (Zero Body Clutter!) */
.course-card__overlay {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  pointer-events: none;
  z-index: 2;
}

.course-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 24, 36, 0.72);
  border: 1px solid rgba(191, 232, 240, 0.24);
  color: #E2F6FA;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}

.course-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.course-pill--live {
  border-color: rgba(76, 217, 176, 0.38);
  color: #E8FCF6;
}

.course-pill--live .course-pill__dot {
  background: #4CD9B0;
  box-shadow: 0 0 0 3px rgba(76, 217, 176, 0.22);
}

.course-pill--soon {
  border-color: rgba(140, 226, 236, 0.34);
  color: #DAF5FA;
}

.course-pill--soon .course-pill__dot {
  background: #7AD4E3;
}

/* Airy Editorial Course Card Body */
.course-card__body {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* BIGGER, COMMANDING COURSE TITLES WITH PROPER HIERARCHY */
.course-card__title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 2.85vw, 2.7rem);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #031B26;
  margin-bottom: 0.5rem;
}

.course-card--compact .course-card__title {
  font-size: clamp(1.88rem, 2.15vw, 2.25rem);
  line-height: 1.1;
}

.course-card__bn {
  font-family: var(--font-bn);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: #557180;
  margin-bottom: 1.4rem;
}

.course-card__desc {
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.09375rem);
  line-height: 1.72;
  color: #46606D;
  max-width: 44ch;
  margin-bottom: 2rem;
}

/* Clean, Aligned Single-Line Footer Bar */
.course-card__footer {
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.course-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.course-card__meta strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #041F2B;
}

.course-card__meta span {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #5E7987;
}

.course-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.18rem;
  border-radius: var(--radius-pill);
  border: 1.25px solid rgba(180, 56, 4, 0.30);
  background: rgba(212, 75, 13, 0.06);
  color: #A83705;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.32s var(--ease-wave);
}

.course-card__action:hover {
  background: #D44B0D;
  border-color: #D44B0D;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* SURAH MULK FLAGSHIP SPLIT ARCHITECTURE (Unified with v33/v34 Design Language) */
.course-flagship {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 24px 60px -24px rgba(3, 51, 70, 0.14);
}

@media (min-width: 960px) {
  .course-flagship {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }
}

.course-flagship__main {
  display: flex;
  flex-direction: column;
}

.course-flagship__intro {
  padding: clamp(1.85rem, 3.4vw, 2.85rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-flagship__title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 3.6vw, 3.15rem);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: #031B26;
  margin-bottom: 0.55rem;
}

.course-flagship__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.course-flagship__syllabus {
  background: radial-gradient(ellipse at 86% 12%, #095C78 0%, #04364A 48%, #02202E 100%);
  color: #FFFFFF;
  padding: clamp(1.85rem, 3.8vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.flagship-semesters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-block: auto;
}

.flagship-semester {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
}

.flagship-semester:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.flagship-semester__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.flagship-semester__num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #FF8243;
  font-variant-numeric: tabular-nums;
}

.flagship-semester__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.9vw, 1.8rem);
  font-weight: 480;
  line-height: 1.16;
  color: #FFFFFF !important;
  margin: 0;
}

.flagship-semester__ep {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8CE2EC;
  white-space: nowrap;
}

.flagship-semester__desc {
  font-size: clamp(0.98rem, 0.95rem + 0.1vw, 1.0625rem);
  line-height: 1.68;
  color: rgba(232, 247, 252, 0.86) !important;
  margin: 0;
}

.flagship-semester__desc strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* HOMEPAGE COURSES SPOTLIGHT WITH SAME UNIFIED COURSE COVER */
.eco-stage__spotlight--media {
  padding: 0;
  gap: 0;
}

.eco-spot__cover {
  width: 100%;
  aspect-ratio: 640 / 340;
  overflow: hidden;
  border-bottom: 1px solid rgba(191, 232, 240, 0.16);
  background: #02202E;
}

.eco-spot__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-spot__inner {
  padding: clamp(1.65rem, 3.2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
}

/* Clean small-screen footer alignment guard */
@media (max-width: 390px) {
  .course-card__body {
    padding: 1.5rem 1.35rem;
  }
  .course-card__footer {
    gap: 0.65rem;
  }
  .course-card__footer .btn--sm,
  .course-card__action {
    padding: 0.58rem 1rem;
    font-size: 0.88rem;
  }
}


/* ==========================================================================
   v35 — SYMMETRICAL MOBILE/DESKTOP PADDING & GRID OVERFLOW FIX
   Fixes the CSS Grid `1fr` (= minmax(auto, 1fr)) right-edge overflow seen in
   `.course-flagship__syllabus` (Surah Mulk) and `.eco-stage__spotlight` so
   both left and right padding remain 100% equal and generous on every screen.
   ========================================================================== */
.course-flagship,
.eco-stage {
  grid-template-columns: minmax(0, 1fr);
}

.course-flagship__main,
.course-flagship__intro,
.course-flagship__syllabus,
.eco-stage__main,
.eco-stage__spotlight,
.eco-spot__inner,
.flagship-semesters,
.flagship-semester {
  min-width: 0;
  max-width: 100%;
}

.course-flagship__syllabus {
  padding: clamp(1.85rem, 3.8vw, 3.25rem) clamp(1.5rem, 3.6vw, 3.25rem);
}

.course-flagship__intro {
  padding: clamp(1.75rem, 3.4vw, 2.85rem) clamp(1.5rem, 3.4vw, 2.85rem);
}

.eco-stage__main {
  padding: clamp(1.75rem, 3.8vw, 3.5rem) clamp(1.5rem, 3.6vw, 3.5rem);
}

.eco-stage__spotlight {
  padding: clamp(1.85rem, 3.8vw, 3.25rem) clamp(1.5rem, 3.6vw, 3.25rem);
}

.eco-stage__spotlight--media {
  padding: 0;
}

.eco-spot__inner {
  padding: clamp(1.65rem, 3.2vw, 2.5rem) clamp(1.5rem, 3.2vw, 2.5rem);
}

.eco-spot__top {
  flex-wrap: wrap;
  row-gap: 0.45rem;
  column-gap: 0.75rem;
}

.eco-spot__badge {
  white-space: normal;
  line-height: 1.35;
}

.flagship-semester__head {
  flex-wrap: wrap;
  row-gap: 0.3rem;
  column-gap: 0.65rem;
}

@media (max-width: 440px) {
  .eco-spot__badge,
  .eco-spot__count,
  .flagship-semester__ep {
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }
}


/* ==========================================================================
   v36 — LIBRARY DROPDOWN NAVIGATION, WRITINGS SANCTUARY, FULL ARTICLE READER,
         LIKE/DISLIKE REACTIONS & RESTRICTED MODERN ADMIN STUDIO
   ========================================================================== */

/* 1. DESKTOP LIBRARY DROPDOWN MENU */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  background: transparent;
  border: 0;
  padding-block: 0.35rem;
  font-size: 1.03125rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  position: relative;
  transition: color 0.25s var(--ease-smooth);
}

.nav-dropdown__trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-wave);
}

.nav-dropdown__trigger:hover,
.nav-dropdown.is-open .nav-dropdown__trigger,
.nav-dropdown.is-active .nav-dropdown__trigger {
  color: var(--ocean-900);
}

.nav-dropdown__trigger:hover::after,
.nav-dropdown.is-open .nav-dropdown__trigger::after,
.nav-dropdown.is-active .nav-dropdown__trigger::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown__chev {
  width: 15px;
  height: 15px;
  transition: transform 0.32s var(--ease-wave);
}

.nav-dropdown.is-open .nav-dropdown__chev {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate3d(-50%, -8px, 0) scale(0.97);
  min-width: 248px;
  padding: 0.55rem;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.12);
  box-shadow:
    0 4px 12px rgba(3, 51, 70, 0.06),
    0 24px 54px -16px rgba(3, 51, 70, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 140;
  transition: opacity 0.25s var(--ease-wave), transform 0.3s var(--ease-wave), visibility 0.25s;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.nav-dropdown__item {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.78rem 1rem !important;
  border-radius: 11px;
  transition: background-color 0.22s, color 0.22s;
}

.nav-dropdown__item::after {
  display: none !important;
}

.nav-dropdown__item:hover,
.nav-dropdown__item[aria-current="page"] {
  background: #EFF7FA;
}

.nav-dropdown__item-title {
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #041E29;
}

.nav-dropdown__item[aria-current="page"] .nav-dropdown__item-title {
  color: #B83D06;
}

.nav-dropdown__item-sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #54707D;
  font-weight: 400;
}

/* MOBILE DRAWER COLLAPSIBLE LIBRARY DROPDOWN */
.mobile-dropdown__trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  cursor: pointer;
  text-align: left;
}

.mobile-dropdown__chev {
  width: 22px;
  height: 22px;
  color: var(--coral-400);
  transition: transform 0.32s var(--ease-wave);
}

.mobile-dropdown.is-open .mobile-dropdown__chev {
  transform: rotate(180deg);
}

.mobile-dropdown__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-wave);
}

.mobile-dropdown.is-open .mobile-dropdown__sub {
  grid-template-rows: 1fr;
}

.mobile-dropdown__sub-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 2px solid rgba(140, 226, 236, 0.26);
  margin-bottom: 0;
}

.mobile-dropdown.is-open .mobile-dropdown__sub-inner {
  margin-bottom: 1rem;
}

.mobile-dropdown__sub-inner a {
  font-family: var(--font-sans) !important;
  font-size: 1.15rem !important;
  font-weight: 500;
  padding-block: 0.72rem !important;
  color: rgba(232, 247, 252, 0.90) !important;
}

.mobile-dropdown__sub-inner a[aria-current="page"] {
  color: #FF8E53 !important;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #6B8592;
  transition: color 0.22s;
}

.footer-admin-link:hover {
  color: var(--ocean-900);
}

/* 2. COLORFUL EDITORIAL COVER HERO FOR WRITINGS PAGE (writings.html) */
.writings-cover {
  background: radial-gradient(ellipse at 22% 16%, #096380 0%, #054860 44%, #033245 76%, #022332 100%);
  color: #FFFFFF;
}

.writings-cover .h1 {
  max-width: 16ch;
}

.writings-cover .lead {
  color: rgba(244, 251, 253, 0.90);
}

/* 3. ADMIN-ONLY FACEBOOK/INSTAGRAM-STYLE QUICK COMPOSER ON writings.html */
.quick-composer-wrap {
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.quick-composer {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.13);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.8vw, 2rem);
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.04),
    0 18px 44px -20px rgba(3, 51, 70, 0.14);
}

.quick-composer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.quick-composer__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06526D 0%, #022331 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  flex-shrink: 0;
  border: 2px solid rgba(234, 79, 8, 0.65);
}

.quick-composer__name {
  display: block;
  font-size: 0.96875rem;
  font-weight: 600;
  color: #041B26;
  line-height: 1.25;
}

.quick-composer__role {
  display: block;
  font-size: 0.8125rem;
  color: #0F8B6D;
  font-weight: 500;
}

.quick-composer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.quick-composer__prompt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  border: 1.5px dashed rgba(5, 74, 99, 0.24);
  background: #F4FAFC;
  color: #425E6B;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.quick-composer__prompt:hover {
  border-color: #D44B0D;
  background: #FFF9F6;
  color: #041B26;
}

.quick-composer__prompt-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #B83D06;
  white-space: nowrap;
}

.quick-composer__form {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
  display: grid;
  gap: 1.15rem;
}

.quick-composer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

/* 4. WRITINGS FEED TOOLBAR & MODERN WRITINGS CARDS (Matches v34 Courses Craft) */
.writings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.writings-toolbar .filter-pills {
  margin-top: 0;
}

.writings-count {
  font-size: 0.9rem;
  font-weight: 500;
  color: #5C7785;
}

.writings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3.2vw, 2.65rem);
  margin-top: clamp(2.5rem, 4.2vw, 3.5rem);
}

@media (min-width: 780px) {
  .writings-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.writing-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow:
    0 2px 6px rgba(3, 51, 70, 0.03),
    0 20px 50px -24px rgba(3, 51, 70, 0.13);
  transition: transform 0.48s var(--ease-wave), border-color 0.3s, box-shadow 0.48s var(--ease-wave);
}

.writing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 74, 99, 0.22);
  box-shadow:
    0 6px 14px rgba(3, 51, 70, 0.05),
    0 28px 60px -22px rgba(3, 51, 70, 0.18);
}

.writing-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 640 / 340;
  background: #02202E;
  overflow: hidden;
  flex-shrink: 0;
}

.writing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.writing-card:hover .writing-card__media img {
  transform: scale(1.035);
}

.writing-card__body {
  padding: clamp(1.65rem, 3vw, 2.45rem);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.writing-card__date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #607B88;
  margin-bottom: 0.65rem;
}

.writing-card__admin-edit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #086382;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: #E8F4F8;
}

.writing-card__admin-edit:hover {
  background: #054A63;
  color: #FFFFFF;
}

.writing-card__title {
  font-family: var(--font-serif);
  font-size: clamp(2.05rem, 2.75vw, 2.55rem);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: #031B26;
  margin-bottom: 0.55rem;
}

.writing-card__title a:hover {
  color: #06526D;
}

.writing-card__bn {
  font-family: var(--font-bn);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: #557180;
  margin-bottom: 1.3rem;
}

.writing-card__desc {
  font-size: clamp(1.03125rem, 1rem + 0.12vw, 1.09375rem);
  line-height: 1.72;
  color: #46606D;
  max-width: 44ch;
  margin-bottom: 1.85rem;
}

.writing-card__footer {
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

/* LIKE & DISLIKE PILL CONTROLS */
.reaction-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.48rem 0.88rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.15);
  background: #F6FAFC;
  color: #395766;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s var(--ease-wave);
}

.reaction-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.reaction-btn:hover {
  border-color: #054A63;
  color: #041B26;
  background: #EAF4F8;
}

.reaction-btn--like.is-active {
  background: #E6F7F2;
  border-color: #0F8B6D;
  color: #096B53;
}

.reaction-btn--dislike.is-active {
  background: #FCECE4;
  border-color: #CC470A;
  color: #9E3405;
}

/* 5. FULL SINGLE-WRITING READER PAGE (writing.html) */
.reader-shell {
  max-width: 820px;
  margin-inline: auto;
}

.reader-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.96875rem;
  font-weight: 600;
  color: #06526D;
}

.reader-back:hover {
  color: #B83D06;
}

.reader-header {
  margin-bottom: 2.35rem;
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #54707E;
  margin-bottom: 1.1rem;
}

.reader-cat {
  color: #9E3405;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.reader-title {
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  font-weight: 460;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #031B26;
  margin-bottom: 0.75rem;
}

.reader-bn {
  font-family: var(--font-bn);
  font-size: 1.15rem;
  font-weight: 500;
  color: #4D6A78;
  margin-bottom: 1.25rem;
}

.reader-excerpt {
  font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.28rem);
  line-height: 1.68;
  color: #445F6C;
}

.reader-cover {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(5, 74, 99, 0.11);
  margin-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
  box-shadow: 0 22px 54px -22px rgba(3, 51, 70, 0.20);
}

.reader-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 680;
  object-fit: cover;
}

.reader-article {
  font-size: clamp(1.125rem, 1.09rem + 0.14vw, 1.22rem);
  line-height: 1.88;
  color: #253F4C;
}

.reader-article p {
  margin-bottom: 1.65rem;
}

.reader-article strong {
  color: #031B26;
  font-weight: 600;
}

.reader-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  font-weight: 480;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: #031B26;
  margin-top: 2.75rem;
  margin-bottom: 1.1rem;
}

.reader-h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2vw, 1.7rem);
  color: #031B26;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.reader-quote {
  margin-block: 2.25rem;
  padding: 1.65rem 1.85rem;
  border-left: 3.5px solid #D44B0D;
  background: #F4FAFC;
  border-radius: 0 16px 16px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.32rem, 2vw, 1.68rem);
  line-height: 1.48;
  color: #042432;
}

.reader-reaction-box {
  margin-top: 3.25rem;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  box-shadow: 0 14px 36px -20px rgba(3, 51, 70, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.reader-reaction-box__title {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  color: #031B26;
  margin-bottom: 0.2rem;
}

.reader-reaction-box__sub {
  font-size: 0.92rem;
  color: #54707D;
  margin: 0;
}

.reader-more {
  margin-top: clamp(4.5rem, 8vw, 6.5rem);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid rgba(5, 74, 99, 0.11);
}

.empty-sanctuary {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  color: #4D6A78;
}

/* 6. RESTRICTED ADMIN LOGIN GATE & MODERN ADMIN DASHBOARD (admin.html) */
.admin-gate-section {
  min-height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: #FFFFFF;
  border-radius: 24px;
  padding: clamp(2rem, 4.5vw, 3rem);
  color: #041B26;
  box-shadow: 0 34px 80px rgba(1, 18, 28, 0.45);
}

.admin-login-card__head {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.82rem;
  border-radius: var(--radius-pill);
  background: #EFF7FA;
  color: #064E67;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.admin-login-card__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #031B26 !important;
  line-height: 1.12;
  margin-bottom: 0.45rem;
}

.admin-login-card__sub {
  font-size: 0.9375rem;
  color: #4D6A78;
  line-height: 1.55;
}

.admin-pw-wrap {
  position: relative;
}

.admin-pw-wrap input {
  padding-right: 4.4rem;
}

.admin-pw-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: #E8F3F7;
  border: 0;
  border-radius: 7px;
  padding: 0.32rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #054A63;
  cursor: pointer;
}

.admin-login-error {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #FDF1EC;
  border: 1px solid rgba(204, 71, 10, 0.34);
  color: #9E3405;
  font-size: 0.9rem;
  font-weight: 500;
}

/* MODERN ADMIN STUDIO SHELL */
.admin-studio-shell {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4.5rem, 8vw, 6.5rem);
}

.admin-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .admin-studio-layout {
    grid-template-columns: 276px minmax(0, 1fr);
  }
}

.admin-sidebar {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow: 0 14px 36px -22px rgba(3, 51, 70, 0.12);
}

@media (min-width: 980px) {
  .admin-sidebar {
    position: sticky;
    top: 102px;
  }
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.10);
}

.admin-profile__name {
  font-size: 1rem;
  font-weight: 600;
  color: #031B26;
  line-height: 1.25;
}

.admin-profile__email {
  font-size: 0.82rem;
  color: #5A7684;
  word-break: break-all;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #365564;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s;
}

.admin-nav__btn:hover {
  background: #EFF7FA;
  color: #031B26;
}

.admin-nav__btn.is-active {
  background: linear-gradient(180deg, #06526D 0%, #033548 100%);
  color: #FFFFFF;
  font-weight: 600;
}

.admin-sidebar__foot {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-panel-head h1,
.admin-panel-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: #031B26;
  line-height: 1.1;
  margin: 0;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 720px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-kpi {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 8px 24px -18px rgba(3, 51, 70, 0.12);
}

.admin-kpi__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5C7785;
  margin-bottom: 0.45rem;
}

.admin-kpi__val {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  color: #031B26;
  line-height: 1.1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.admin-search {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(5, 74, 99, 0.18);
  border-radius: 10px;
  background: #F7FBFC;
  font-size: 0.9375rem;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-row {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  box-shadow: 0 10px 28px -20px rgba(3, 51, 70, 0.12);
}

@media (min-width: 720px) {
  .admin-row {
    grid-template-columns: 148px minmax(0, 1fr) auto;
    padding: 1.15rem 1.35rem;
  }
}

.admin-row__thumb {
  width: 100%;
  aspect-ratio: 640 / 340;
  border-radius: 11px;
  overflow: hidden;
  background: #02202E;
}

.admin-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.admin-row__cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9E3405;
}

.admin-row__date {
  font-size: 0.8rem;
  color: #657F8C;
}

.admin-row__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #031B26;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.admin-row__bn {
  font-family: var(--font-bn);
  font-size: 0.88rem;
  color: #54707D;
  margin-bottom: 0.45rem;
}

.admin-row__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #5E7987;
}

.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.9rem;
  border-radius: 9px;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F6FAFC;
  color: #163948;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-act-btn:hover {
  background: #E5F2F7;
  border-color: #054A63;
}

.admin-act-btn--primary {
  background: #054A63;
  border-color: #054A63;
  color: #FFFFFF;
}

.admin-act-btn--primary:hover {
  background: #033346;
}

.admin-act-btn--danger {
  color: #A83705;
  border-color: rgba(204, 71, 10, 0.24);
  background: #FFF7F4;
}

.admin-act-btn--danger:hover {
  background: #CC470A;
  border-color: #CC470A;
  color: #FFFFFF;
}

/* FULL WRITING STUDIO EDITOR CARD */
.admin-editor-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  border-radius: 22px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 18px 44px -22px rgba(3, 51, 70, 0.12);
}

.editor-toolbar-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(5, 74, 99, 0.16);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #F2F8FA;
}

.editor-fmt-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.editor-fmt-btn {
  padding: 0.34rem 0.68rem;
  border-radius: 7px;
  border: 1px solid rgba(5, 74, 99, 0.15);
  background: #FFFFFF;
  color: #05394D;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.editor-fmt-btn:hover,
.editor-fmt-btn.is-active {
  background: #054A63;
  border-color: #054A63;
  color: #FFFFFF;
}

.editor-textarea {
  border-radius: 0 0 10px 10px !important;
  min-height: 290px !important;
  line-height: 1.75;
}

.editor-preview-box {
  padding: 1.75rem;
  border: 1px solid rgba(5, 74, 99, 0.16);
  border-radius: 0 0 10px 10px;
  background: #FAFDFE;
  min-height: 290px;
}

.editor-word-stats {
  font-size: 0.8125rem;
  color: #5C7785;
  margin-top: 0.45rem;
}

/* CLEAN MODAL & TOAST */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 24, 36, 0.62);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__box {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.85rem;
  box-shadow: 0 28px 64px rgba(1, 16, 26, 0.42);
}

.admin-modal__box h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #031B26;
  margin-bottom: 0.5rem;
}

.admin-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.duburi-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 260;
  padding: 0.9rem 1.35rem;
  border-radius: 12px;
  background: #033346;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 16px 38px rgba(1, 18, 28, 0.34);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.28s, transform 0.32s var(--ease-wave);
}

.duburi-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.duburi-toast.is-error {
  background: #B83D06;
}


/* ==========================================================================
   v37 — GLOBAL [hidden] ENFORCEMENT & STAFF-ONLY LOGIN NOTICE BANNER
   ========================================================================== */
[hidden] {
  display: none !important;
}

.admin-notice-banner {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 13px;
  background: #FFF7F2;
  border: 1px solid rgba(204, 71, 10, 0.28);
  border-left: 3.5px solid #CC470A;
  color: #3D281E;
  font-size: 0.875rem;
  line-height: 1.58;
  text-align: left;
}

.admin-notice-banner__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9E3405;
  margin-bottom: 0.35rem;
}

.admin-notice-banner p {
  margin: 0;
  color: #463228;
}

.admin-notice-banner p + p {
  margin-top: 0.45rem;
  color: #4A6370;
  font-size: 0.84rem;
}

/* Polished Writing Card Preview Clamp so Long Writings Keep Clean Card Height */
.writing-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================================================================
   v38 — NEXT-LEVEL WRITINGS SANCTUARY & READING EXPERIENCE
   - Strictly scoped fonts for Writings: Lora (Headlines) + Literata (Body)
   - Warm off-white paper (#FAF9F6) & soft charcoal ink (#222222)
   - Clean Title First -> Clean Rounded Image Below (Zero Text Over Images)
   - Simple Clickable Topic Words, Light/Dark Mode, Text Size & Continue Reading
   - Generous, Clutter-Free Empty Space Around Every Writing
   ========================================================================== */

:root {
  --font-writing-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-writing-body: 'Literata', Georgia, 'Times New Roman', serif;
  --paper-bg: #FAF9F6;
  --paper-surface: #FFFFFF;
  --paper-ink: #222222;
  --paper-muted: #5C5852;
  --paper-line: rgba(34, 34, 34, 0.10);
}

/* 1. WARM PAPER BACKGROUND ON WRITINGS FEED & FULL ARTICLE READER */
body.page-writings-paper,
body.page-writings-paper .section--pearl {
  background-color: var(--paper-bg);
  color: var(--paper-ink);
}

body.page-writing-reader {
  background-color: var(--paper-bg);
  color: var(--paper-ink);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.reader-paper-section {
  background-color: var(--paper-bg);
  padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(5.5rem, 10vw, 8.5rem);
  transition: background-color 0.35s ease;
}

/* 2. SIMPLE CLICKABLE TOPIC WORDS (All, Reflections, Stories, Tazkiyah...) */
.topic-words-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem clamp(1.35rem, 2.8vw, 2.15rem);
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 0.1rem;
}

.topic-word {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0.55rem 0.1rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  font-weight: 500;
  color: #6B665F;
  cursor: pointer;
  transition: color 0.25s ease;
}

.topic-word::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #CC470A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease-wave);
}

.topic-word:hover {
  color: #222222;
}

.topic-word.is-active {
  color: #222222;
  font-weight: 600;
}

.topic-word.is-active::after {
  transform: scaleX(1);
}

/* 3. REDESIGNED WRITINGS CARDS: CLEAN TITLE FIRST -> CLEAN IMAGE BELOW (NO TEXT ON PHOTO!) */
.writing-card--editorial {
  background: var(--paper-surface);
  border: 1px solid rgba(34, 34, 34, 0.08);
  border-radius: 22px;
  padding: clamp(1.75rem, 3.2vw, 2.65rem);
  gap: 0;
  box-shadow:
    0 2px 6px rgba(34, 34, 34, 0.025),
    0 18px 46px -24px rgba(34, 34, 34, 0.11);
}

.writing-card__head {
  margin-bottom: clamp(1.35rem, 2.4vw, 1.8rem);
}

.writing-card__meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--paper-muted);
  margin-bottom: 0.85rem;
}

.writing-card__topic {
  color: #A83705;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.writing-card__dot {
  opacity: 0.45;
}

/* STRICTLY LORA FOR WRITING HEADLINES */
.writing-card--editorial .writing-card__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.85rem, 2.45vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--paper-ink);
  margin-bottom: 0.5rem;
}

.writing-card--editorial .writing-card__title a {
  transition: color 0.25s;
}

.writing-card--editorial .writing-card__title a:hover {
  color: #054A63;
}

.writing-card--editorial .writing-card__bn {
  font-family: var(--font-bn);
  font-size: 0.96875rem;
  color: var(--paper-muted);
  margin-bottom: 0;
}

/* Clean, Slightly Rounded Image BELOW the Title with Generous Empty Space Around It */
.writing-card__figure {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #ECEAE4;
  margin-bottom: clamp(1.35rem, 2.4vw, 1.8rem);
}

.writing-card__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.writing-card--editorial:hover .writing-card__figure img {
  transform: scale(1.028);
}

.writing-card__foot-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* STRICTLY LITERATA FOR WRITING PREVIEW BODY */
.writing-card--editorial .writing-card__desc {
  font-family: var(--font-writing-body);
  font-size: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  line-height: 1.76;
  color: #363431;
  max-width: 52ch;
  margin-bottom: 1.65rem;
}

.writing-card__resume-bar {
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: rgba(34, 34, 34, 0.08);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.writing-card__resume-bar span {
  display: block;
  height: 100%;
  background: #CC470A;
  border-radius: 99px;
}

.writing-card--editorial .writing-card__footer {
  border-top-color: var(--paper-line);
}

/* 4. EXPANSIVE, PEACEFUL SINGLE-WRITING READER SANCTUARY (writing.html) */
.page-writing-reader .reader-shell {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 2vw, 1.25rem);
}

.page-writing-reader .reader-topbar {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--paper-line);
}

.reader-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: #F1EFE9;
  border: 1px solid rgba(34, 34, 34, 0.09);
}

.reader-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #2E2C29;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s;
}

.reader-ctrl-btn:hover:not(:disabled) {
  background: #FFFFFF;
  color: #054A63;
}

.reader-ctrl-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.reader-ctrl-btn--size {
  padding-inline: 0.62rem;
  font-family: var(--font-writing-head);
}

.reader-ctrl-btn--edit {
  background: #054A63;
  color: #FFFFFF;
}

.reader-ctrl-btn--edit:hover {
  background: #033346;
  color: #FFFFFF;
}

.reader-ctrl-sep {
  width: 1px;
  height: 16px;
  background: rgba(34, 34, 34, 0.14);
}

/* CONTINUE READING RESUME BANNER */
.reader-resume-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-radius: 14px;
  background: #F3EFE7;
  border: 1px solid rgba(204, 71, 10, 0.22);
  font-size: 0.9375rem;
  color: #2C2926;
}

.reader-resume-bar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.reader-resume-bar__btn {
  padding: 0.44rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: #CC470A;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.reader-resume-bar__btn:hover {
  background: #A83705;
}

.reader-resume-bar__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #6B665F;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.reader-resume-bar__close:hover {
  background: rgba(34, 34, 34, 0.08);
  color: #222222;
}

/* STRICTLY LORA HEADLINE + GENEROUS EMPTY SPACE ABOVE CLEAN ROUNDED IMAGE */
.page-writing-reader .reader-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.65rem);
}

.page-writing-reader .reader-meta-row {
  color: var(--paper-muted);
  margin-bottom: 1.25rem;
}

.reader-title,
.page-writing-reader .reader-title {
  font-family: var(--font-writing-head);
  font-size: clamp(2.25rem, 4.6vw, 3.35rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--paper-ink);
  margin-bottom: 0.9rem;
}

.page-writing-reader .reader-bn {
  color: var(--paper-muted);
  margin-bottom: 1.35rem;
}

.page-writing-reader .reader-excerpt {
  font-family: var(--font-writing-body);
  font-size: clamp(1.125rem, 1.08rem + 0.22vw, 1.25rem);
  line-height: 1.72;
  color: #4D4943;
}

/* Clean Slightly Rounded Image BELOW Title with Ample Empty Space */
.page-writing-reader .reader-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 34, 34, 0.08);
  margin-block: 0 clamp(3rem, 6vw, 4.5rem);
  box-shadow: 0 20px 50px -26px rgba(34, 34, 34, 0.20);
}

/* STRICTLY LITERATA FOR THE FULL WRITING BODY + DYNAMIC TEXT SIZE SCALES */
.reader-article {
  font-family: var(--font-writing-body);
  font-size: 1.15625rem; /* 18.5px comfortable default */
  line-height: 1.92;
  color: var(--paper-ink);
  max-width: 65ch;
  margin-inline: auto;
}

body[data-reader-size="sm"] .reader-article { font-size: 1.03125rem; line-height: 1.86; }
body[data-reader-size="md"] .reader-article { font-size: 1.15625rem; line-height: 1.92; }
body[data-reader-size="lg"] .reader-article { font-size: 1.28125rem; line-height: 1.94; }
body[data-reader-size="xl"] .reader-article { font-size: 1.40625rem; line-height: 1.96; }

.reader-article p {
  margin-bottom: 1.75rem;
  color: inherit;
}

.reader-article strong {
  color: inherit;
  font-weight: 600;
}

.reader-h2 {
  font-family: var(--font-writing-head);
  font-size: clamp(1.62rem, 2.5vw, 2.08rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.014em;
  color: var(--paper-ink);
  margin-top: 3.15rem;
  margin-bottom: 1.2rem;
}

.reader-h3 {
  font-family: var(--font-writing-head);
  font-size: clamp(1.32rem, 1.9vw, 1.62rem);
  font-weight: 600;
  color: var(--paper-ink);
  margin-top: 2.35rem;
  margin-bottom: 0.9rem;
}

.reader-quote {
  font-family: var(--font-writing-head);
  font-style: italic;
  margin-block: 2.65rem;
  padding: 1.65rem 1.95rem;
  border-left: 3px solid #CC470A;
  background: #F2EFE8;
  border-radius: 0 14px 14px 0;
  font-size: clamp(1.25rem, 1.85vw, 1.5rem);
  line-height: 1.58;
  color: #222222;
}

/* Inline Uploaded AVIF/WebP Figures Inside Writing Body */
.reader-inline-figure {
  margin-block: clamp(2.25rem, 4.5vw, 3.25rem);
  text-align: center;
}

.reader-inline-figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: 0 14px 36px -22px rgba(34, 34, 34, 0.18);
}

.reader-inline-figure figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--paper-muted);
}

.page-writing-reader .reader-reaction-box {
  margin-top: clamp(3.5rem, 6vw, 4.75rem);
  background: #FFFFFF;
  border: 1px solid var(--paper-line);
}

.page-writing-reader .reader-reaction-box__title {
  font-family: var(--font-writing-head);
  color: var(--paper-ink);
}

/* 5. GENTLE NIGHT-READING DARK MODE ON writing.html */
body.page-writing-reader.reader-theme-dark {
  --paper-bg: #161A1D;
  --paper-surface: #1E2428;
  --paper-ink: #E8E4DC;
  --paper-muted: #A4A096;
  --paper-line: rgba(232, 228, 220, 0.12);
  background-color: var(--paper-bg);
  color: var(--paper-ink);
}

body.reader-theme-dark .reader-paper-section {
  background-color: var(--paper-bg);
}

body.reader-theme-dark .site-header {
  background-color: rgba(22, 26, 29, 0.96);
  border-bottom-color: rgba(232, 228, 220, 0.10);
}

body.reader-theme-dark .main-nav a,
body.reader-theme-dark .nav-dropdown__trigger {
  color: #D2CFC8;
}

body.reader-theme-dark .main-nav a:hover,
body.reader-theme-dark .main-nav a[aria-current="page"],
body.reader-theme-dark .nav-dropdown.is-active .nav-dropdown__trigger {
  color: #FFFFFF;
}

body.reader-theme-dark .menu-toggle span {
  background-color: #E8E4DC;
}

body.reader-theme-dark .reader-back {
  color: #8CE2EC;
}

body.reader-theme-dark .reader-controls {
  background: #22282D;
  border-color: rgba(232, 228, 220, 0.14);
}

body.reader-theme-dark .reader-ctrl-btn {
  color: #E8E4DC;
}

body.reader-theme-dark .reader-ctrl-btn:hover:not(:disabled) {
  background: #2E363C;
  color: #FFFFFF;
}

body.reader-theme-dark .reader-ctrl-sep {
  background: rgba(232, 228, 220, 0.18);
}

body.reader-theme-dark .reader-resume-bar {
  background: #21272C;
  border-color: rgba(255, 130, 67, 0.34);
  color: #E8E4DC;
}

body.reader-theme-dark .reader-resume-bar__close {
  color: #B6B1A8;
}

body.reader-theme-dark .reader-cat {
  color: #FF8E53;
}

body.reader-theme-dark .reader-excerpt {
  color: #C4C0B7;
}

body.reader-theme-dark .reader-quote {
  background: #1E2429;
  color: #EFECE5;
  border-left-color: #E05C1E;
}

body.reader-theme-dark .reader-reaction-box,
body.reader-theme-dark .writing-card--editorial {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.11);
}

body.reader-theme-dark .writing-card--editorial .writing-card__desc {
  color: #C8C4BB;
}

body.reader-theme-dark .writing-card--editorial .writing-card__title a:hover {
  color: #8CE2EC;
}

body.reader-theme-dark .reaction-btn {
  background: #252C31;
  border-color: rgba(232, 228, 220, 0.16);
  color: #DEDAD2;
}

body.reader-theme-dark .reader-more .h2 {
  color: #E8E4DC;
}

body.reader-theme-dark .reader-more .eyebrow {
  color: #FF8E53;
}

/* 6. ADMIN EDITOR & QUICK COMPOSER UPLOADER + LITERATA WRITING FEEL */
.editor-textarea {
  font-family: var(--font-writing-body);
  font-size: 1.0625rem !important;
  line-height: 1.82 !important;
  background: var(--paper-bg) !important;
  color: var(--paper-ink) !important;
}

.editor-preview-box {
  background: var(--paper-bg);
  color: var(--paper-ink);
}

.upload-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.upload-note {
  font-size: 0.875rem;
  color: #4D6A78;
  margin: 0;
}

.upload-rule-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6B8390;
}

.admin-cover-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #F6FAFC;
  border: 1px solid rgba(5, 74, 99, 0.14);
  align-items: center;
}

@media (min-width: 640px) {
  .admin-cover-uploader {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 1.25rem;
  }
}

.admin-cover-uploader__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #02202E;
}

.admin-cover-uploader__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cover-uploader__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}


/* ==========================================================================
   v43 — NURTURED MODERN EDITORIAL ADMIN STUDIO (DESKTOP SIDEBAR + MOBILE UI)
   - Inspired by clean gallery-card UI references (rounded outer bezel,
     framed rounded media, frosted metric tiles, pill action bars, wide air)
   - Full-bleed 100%-width AVIF cover (`illus-admin-writing-room.avif`)
   - Official Duburi brand logo emblem in Admin Profile & Desktop Sidebar
   - Clean mobile layout with zero search-bar height distortion
   ========================================================================== */

.admin-studio-shell {
  padding: 0 !important;
  background-color: #F4F6F8;
  color: #091E28;
}

/* 1. ARCHITECTURAL 2-COLUMN DESKTOP WORKBENCH */
.studio-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100svh - 78px);
}

@media (min-width: 1024px) {
  .studio-workbench {
    grid-template-columns: 292px minmax(0, 1fr);
    align-items: stretch;
  }
}

/* 2. HANDCRAFTED DESKTOP EDITORIAL SIDE PANEL */
.studio-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .studio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    position: sticky;
    top: 78px;
    height: calc(100svh - 78px);
    overflow-y: auto;
    padding: 2.25rem 1.5rem 2rem;
    background: #FFFFFF;
    border-right: 1px solid rgba(5, 74, 99, 0.08);
    box-shadow: 8px 0 36px -26px rgba(3, 38, 54, 0.10);
    z-index: 12;
  }
}

.studio-sidebar__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.08);
}

.studio-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-inline: 0.25rem;
}

.studio-sidebar__logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #07536E 0%, #022433 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -8px rgba(2, 36, 51, 0.55);
}

.studio-sidebar__logo svg {
  width: 24px;
  height: 24px;
}

.studio-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.studio-sidebar__brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  color: #041D29;
}

.studio-sidebar__brand-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: #6B8390;
  margin-top: 0.1rem;
}

.studio-compose-cta {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding-inline: 1.35rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: linear-gradient(180deg, #DC5112 0%, #C24008 100%);
  color: #FFFFFF;
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 24px -8px rgba(194, 64, 8, 0.45);
  transition: transform 0.28s var(--ease-wave), box-shadow 0.28s, filter 0.22s;
}

.studio-compose-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.studio-compose-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 28px -8px rgba(194, 64, 8, 0.52);
}

.studio-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.studio-nav-label {
  padding-inline: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #859BA7;
  margin-bottom: 0.25rem;
}

.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.studio-nav__item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: #445F6D;
  font-size: 0.96875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.studio-nav__left {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.studio-nav__item svg {
  width: 18px;
  height: 18px;
  color: #708997;
  flex-shrink: 0;
  transition: color 0.22s ease;
}

.studio-nav__item:hover {
  background: #F2F7F9;
  color: #041D29;
}

.studio-nav__item:hover svg {
  color: #054A63;
}

.studio-nav__item.is-active {
  background: #EBF4F8;
  color: #032230;
  font-weight: 600;
}

.studio-nav__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: #D44B0D;
}

.studio-nav__item.is-active svg {
  color: #054A63;
}

.studio-nav__count {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #678290;
  padding: 0.16rem 0.58rem;
  border-radius: var(--radius-pill);
  background: #F1F5F8;
}

.studio-nav__item.is-active .studio-nav__count {
  background: #FFFFFF;
  color: #042E3F;
  box-shadow: 0 2px 6px rgba(3, 51, 70, 0.08);
}

.studio-sidebar__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
}

.studio-signout-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  padding: 0.82rem 1rem;
  border-radius: 13px;
  border: 0;
  background: transparent;
  color: #5C7481;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s;
}

.studio-signout-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.studio-signout-btn:hover {
  background: #FDF1EC;
  color: #A83705;
}

/* 3. MAIN WORKSPACE STAGE & FULL-BLEED 100% AVIF WRITING ROOM COVER */
.studio-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-hero-cover {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  min-height: clamp(275px, 34vw, 450px);
  background-color: #03222E;
  background-image: url('../img/illus-admin-writing-room.avif');
  background-size: cover;
  background-position: center 46%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Soft bottom-only atmospheric scrim preserving the full glow of the pomegranate, crown & lantern */
.admin-hero-cover__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 20, 30, 0.86) 0%,
    rgba(2, 22, 34, 0.44) 28%,
    rgba(2, 26, 38, 0.06) 56%,
    rgba(2, 26, 38, 0.0) 78%
  );
  pointer-events: none;
  z-index: 1;
}

.admin-hero-cover__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.35rem, 4.5vw, 3.75rem);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.admin-hero-identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

/* Official Duburi Brand Logo Rounded-Square Profile Avatar */
.admin-logo-avatar {
  width: clamp(52px, 5vw, 62px);
  height: clamp(52px, 5vw, 62px);
  border-radius: 17px;
  background: linear-gradient(145deg, #064E67 0%, #02202E 100%);
  border: 1.5px solid rgba(191, 232, 240, 0.34);
  box-shadow:
    0 12px 28px rgba(1, 14, 22, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-logo-avatar svg {
  width: clamp(30px, 2.9vw, 36px);
  height: clamp(30px, 2.9vw, 36px);
}

.admin-hero-identity__text {
  min-width: 0;
}

.admin-hero-identity__name {
  font-family: var(--font-serif);
  font-size: clamp(1.48rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(1, 14, 22, 0.72);
}

.admin-hero-identity__email {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  color: rgba(224, 244, 250, 0.90);
  text-shadow: 0 1px 12px rgba(1, 14, 22, 0.70);
  word-break: break-all;
  margin-top: 0.2rem;
}

/* 4. SLEEK MOBILE / TABLET NAVIGATION BAR (BELOW COVER, HIDDEN ON DESKTOP) */
.studio-mobile-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 1rem clamp(1.35rem, 4.5vw, 2.5rem);
  background: #FFFFFF;
  border-bottom: 1px solid rgba(5, 74, 99, 0.08);
}

@media (min-width: 1024px) {
  .studio-mobile-bar {
    display: none;
  }
}

.studio-mobile-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #EFF3F6;
}

.studio-mobile-tab {
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #46606D;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.studio-mobile-tab.is-active {
  background: #FFFFFF;
  color: #03202E;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(3, 51, 70, 0.10);
}

.studio-mobile-utils {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
}

.studio-mobile-util {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #06526D;
  cursor: pointer;
}

.studio-mobile-util--out {
  color: #6B828E;
  font-weight: 500;
}

/* 5. SPACIOUS WORKSPACE CANVAS (GENEROUS BREATHING ROOM EVERYWHERE) */
.studio-canvas {
  flex: 1;
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.35rem, 4.5vw, 3.75rem) clamp(5rem, 8.5vw, 7.5rem);
}

.studio-canvas__inner {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
}

.studio-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.35rem 2rem;
  margin-bottom: clamp(2.5rem, 4.2vw, 3.5rem);
}

.studio-kicker {
  display: block;
  font-size: 0.84375rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #A83705;
  margin-bottom: 0.6rem;
}

.studio-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 3.8vw, 3.2rem);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #031B26;
  margin: 0;
}

.studio-head-cta {
  padding: 0.85rem 1.7rem;
  font-size: 0.96875rem;
}

@media (min-width: 1024px) {
  .studio-head-cta {
    display: none;
  }
}

.studio-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #FFFFFF;
  color: #163948;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.22s, background-color 0.22s;
}

.studio-ghost-btn:hover {
  border-color: #054A63;
  background: #F0F7FA;
}

/* 6. ARCHITECTURAL METRIC STRIP */
.studio-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.08);
  border-radius: 24px;
  margin-bottom: clamp(2.5rem, 4.2vw, 3.5rem);
  box-shadow:
    0 2px 6px rgba(3, 40, 56, 0.02),
    0 18px 42px -24px rgba(3, 40, 56, 0.11);
  overflow: hidden;
}

@media (min-width: 720px) {
  .studio-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.studio-metric {
  padding: clamp(1.5rem, 2.6vw, 2rem) clamp(1.4rem, 2.6vw, 2.15rem);
  border-bottom: 1px solid rgba(5, 74, 99, 0.07);
  border-right: 1px solid rgba(5, 74, 99, 0.07);
}

.studio-metric:nth-child(2n) {
  border-right: 0;
}

.studio-metric:nth-last-child(-n+2) {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .studio-metric {
    border-bottom: 0;
    border-right: 1px solid rgba(5, 74, 99, 0.08);
  }
  .studio-metric:nth-child(2n) {
    border-right: 1px solid rgba(5, 74, 99, 0.08);
  }
  .studio-metric:last-child {
    border-right: 0;
  }
}

.studio-metric__label {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 0.84375rem;
  font-weight: 500;
  color: #5E7683;
  margin-bottom: 0.7rem;
}

.studio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.studio-dot--live {
  background: #0F8B6D;
}

.studio-dot--draft {
  background: #0D80A3;
}

.studio-metric__val {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 450;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #031B26;
  font-variant-numeric: tabular-nums;
}

/* 7. FIXED & AIRY SEARCH + SEGMENTED CONTROL BAR (ZERO MOBILE HEIGHT BUG) */
.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 4.2vw, 3.5rem);
}

@media (min-width: 720px) {
  .studio-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.studio-search-wrap {
  position: relative;
  width: 100%;
  height: 54px;
  flex: none;
}

@media (min-width: 720px) {
  .studio-search-wrap {
    width: auto;
    flex: 1 1 auto;
    max-width: 540px;
  }
}

.studio-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #77909D;
  pointer-events: none;
}

.studio-search {
  width: 100%;
  height: 54px;
  padding: 0 1.25rem 0 3.1rem;
  border-radius: 16px;
  border: 1px solid rgba(5, 74, 99, 0.12);
  background: #FFFFFF;
  color: #07222E;
  font-size: 1rem;
  box-shadow: 0 4px 16px -10px rgba(3, 40, 56, 0.10);
  transition: border-color 0.22s, box-shadow 0.22s;
}

.studio-search::placeholder {
  color: #7A929E;
}

.studio-search:focus {
  outline: none;
  border-color: #086382;
  box-shadow: 0 0 0 4px rgba(13, 128, 163, 0.12);
}

.studio-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: #E8EFF3;
  flex-shrink: 0;
}

.studio-seg-btn {
  padding: 0.68rem 1.35rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #46616E;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.studio-seg-btn:hover {
  color: #041D29;
}

.studio-seg-btn.is-active {
  background: #FFFFFF;
  color: #031F2C;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(3, 40, 56, 0.09);
}

/* 8. MODERN REFERENCE-INSPIRED WRITING CARDS (2397.png / 2398.jpg / 2399.png)
   - Outer white bezel + framed rounded top media + floating status pill + corner ↗ icon
   - Generous vertical breathing room, bold Lora title, calm Bengali subtitle & preview
   - 3 frosted stat tiles (Read Time | Likes | Dislikes)
   - Single-row pill button footer (`Edit Writing` + `Unpublish` + circular trash icon)
   ========================================================================== */
.studio-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 3.5vw, 2.75rem);
}

@media (min-width: 820px) {
  .studio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 2.65rem);
  }
}

.studio-wcard {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.08);
  border-radius: 28px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow:
    0 2px 6px rgba(3, 38, 54, 0.025),
    0 22px 52px -24px rgba(3, 38, 54, 0.14);
  transition: transform 0.38s var(--ease-wave), border-color 0.25s, box-shadow 0.38s var(--ease-wave);
}

.studio-wcard:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 74, 99, 0.18);
  box-shadow:
    0 6px 14px rgba(3, 38, 54, 0.04),
    0 28px 60px -22px rgba(3, 38, 54, 0.18);
}

/* Framed Rounded Media Stage (Matching 2397.png & 2399.png) */
.studio-wcard__media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: #02202E;
  flex-shrink: 0;
}

.studio-wcard__media {
  display: block;
  width: 100%;
  height: 100%;
}

.studio-wcard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-wave);
}

.studio-wcard:hover .studio-wcard__media img {
  transform: scale(1.035);
}

/* Floating Glass Status Pill Top-Left (Inspired by 2398.jpg) */
.studio-wcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 24, 36, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.studio-wcard__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.studio-wcard__badge--live .studio-wcard__badge-dot {
  background: #4CD9B0;
  box-shadow: 0 0 0 3px rgba(76, 217, 176, 0.25);
}

.studio-wcard__badge--draft .studio-wcard__badge-dot {
  background: #7AD4E3;
}

/* Floating Circular Corner Open Button Top-Right (Inspired by 2398.jpg & 2399.png) */
.studio-wcard__corner-link {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #042230;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(2, 24, 36, 0.22);
  transition: transform 0.28s var(--ease-wave), background-color 0.22s;
}

.studio-wcard__corner-link svg {
  width: 17px;
  height: 17px;
}

.studio-wcard__corner-link:hover {
  transform: scale(1.08);
  background: #FFFFFF;
}

/* Airy Editorial Card Body with Generous Padding & Breathing Room */
.studio-wcard__body {
  padding: 1.5rem 0.85rem 0.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.studio-wcard__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84375rem;
  font-weight: 500;
  color: #6B828E;
  margin-bottom: 0.75rem;
}

.studio-wcard__cat {
  color: #A83705;
  font-weight: 600;
}

.studio-wcard__dot {
  opacity: 0.45;
}

.studio-wcard__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.42rem, 1.9vw, 1.72rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #061D28;
  margin-bottom: 0.65rem;
  text-wrap: balance;
}

.studio-wcard__title a:hover {
  color: #054A63;
}

.studio-wcard__bn {
  font-family: var(--font-bn);
  font-size: 0.96875rem;
  line-height: 1.6;
  color: #657D8A;
  margin-bottom: 0.95rem;
}

.studio-wcard__excerpt {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.68;
  color: #4D6673;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Frosted Stat Tiles (Inspired directly by 2397.png "Iceland Cabin" & "Sam Rivers") */
.studio-wcard__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: auto;
  margin-bottom: 1.35rem;
}

.studio-wcard__tile {
  background: #F4F7F9;
  border-radius: 14px;
  padding: 0.78rem 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.studio-wcard__tile-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6E8591;
  line-height: 1.25;
}

.studio-wcard__tile-val {
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  font-weight: 700;
  color: #061E29;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* Bottom Pill Action Row (Inspired directly by 2399.png "San Francisco" & 2397.png) */
.studio-wcard__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.studio-wcard__pill {
  height: 48px;
  padding-inline: 1.25rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-wave), background-color 0.22s, color 0.22s, box-shadow 0.25s;
}

.studio-wcard__pill--primary {
  flex: 1 1 auto;
  background: #04364A;
  color: #FFFFFF;
  box-shadow: 0 8px 20px -10px rgba(3, 51, 70, 0.55);
}

.studio-wcard__pill--primary:hover {
  background: #022433;
  transform: translateY(-1px);
}

.studio-wcard__pill--muted {
  flex: 0 1 auto;
  background: #EFF4F7;
  color: #2B4755;
}

.studio-wcard__pill--muted:hover {
  background: #E2ECF1;
  color: #041D29;
}

.studio-wcard__icon-del {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(204, 71, 10, 0.16);
  background: #FDF3EF;
  color: #B83D06;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s, transform 0.25s var(--ease-wave);
}

.studio-wcard__icon-del svg {
  width: 18px;
  height: 18px;
}

.studio-wcard__icon-del:hover {
  background: #CC470A;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* 9. SPACIOUS SURFACE CARDS FOR EDITOR & SETTINGS VIEWS */
.studio-surface-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.08);
  border-radius: 26px;
  padding: clamp(1.85rem, 3.8vw, 3.25rem);
  box-shadow:
    0 2px 6px rgba(3, 40, 56, 0.025),
    0 18px 44px -26px rgba(3, 40, 56, 0.12);
}

.studio-form-grid {
  gap: 1.85rem;
}

.studio-form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  padding-top: 0.85rem;
}

.studio-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.studio-card-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.1vw, 1.85rem);
  font-weight: 480;
  color: #041D29;
  margin-bottom: 0.7rem;
}

.studio-card-sub {
  font-size: 1rem;
  line-height: 1.72;
  color: #4D6673;
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.studio-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.studio-steps-list {
  padding-left: 1.35rem;
  color: #36505D;
  line-height: 1.88;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.74rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.22s, border-color 0.22s, color 0.22s, transform 0.25s var(--ease-wave);
}

.studio-btn--primary {
  background: #054A63;
  color: #FFFFFF;
}

.studio-btn--primary:hover {
  background: #033346;
}

.studio-btn--subtle {
  background: #F4F8FA;
  border-color: rgba(5, 74, 99, 0.14);
  color: #163948;
}

.studio-btn--subtle:hover {
  background: #E8F2F6;
  border-color: rgba(5, 74, 99, 0.28);
}

.admin-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 2rem;
  border-radius: 24px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.08);
  color: #546E7B;
  font-size: 1.0625rem;
}

/* Mobile Fine-Tuning */
@media (max-width: 640px) {
  .admin-hero-cover {
    min-height: 265px;
    background-position: center 44%;
  }
  .admin-hero-cover__inner {
    padding: 1.35rem 1.35rem 1.45rem;
  }
  .studio-wcard {
    padding: 12px;
    border-radius: 26px;
  }
  .studio-wcard__body {
    padding: 1.35rem 0.65rem 0.55rem;
  }
  .studio-wcard__pill {
    padding-inline: 1rem;
    font-size: 0.9rem;
  }
}


/* ==========================================================================
   v44 — UNIFIED ACCOUNTS, MEMBER DASHBOARD, COMMENTS & USER ROLE MANAGEMENT
   Matches the v43 nurtured gallery-card aesthetic with generous whitespace,
   crisp hierarchy, and full dark-mode support on the article reader.
   ========================================================================== */

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

/* 1. HEADER MENU ACCOUNT / SIGN-IN PILL (DESKTOP & MOBILE) */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.05rem;
  border-radius: var(--radius-pill);
  border: 1.25px solid rgba(5, 74, 99, 0.20);
  background: #F4F9FB;
  color: #043245;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.22s, border-color 0.22s, color 0.22s, transform 0.25s var(--ease-wave);
}

.nav-account-btn:hover {
  background: #E6F2F6;
  border-color: #054A63;
  color: #021F2C;
  transform: translateY(-1px);
}

.nav-account-btn.is-signed-in {
  padding: 0 0.95rem 0 0.35rem;
  background: #FFFFFF;
  border-color: rgba(5, 74, 99, 0.18);
  box-shadow: 0 2px 10px -4px rgba(3, 51, 70, 0.14);
}

.nav-account-btn__ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-account-btn__dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-account-btn__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06526D 0%, #022433 100%);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 500;
  display: grid;
  place-items: center;
}

.nav-account-btn__unread {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DC5112;
  border: 2px solid #FFFFFF;
}

.nav-account-btn__label {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .nav-account-btn {
    height: 38px;
    padding: 0 0.78rem;
    font-size: 0.84rem;
    gap: 0.35rem;
  }
  .nav-account-btn.is-signed-in {
    padding: 0 0.65rem 0 0.25rem;
  }
  .nav-account-btn__avatar {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
}

.mobile-unread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: var(--radius-pill);
  background: #DC5112;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 0.35rem;
}

body.reader-theme-dark .nav-account-btn {
  background: #22282D;
  border-color: rgba(232, 228, 220, 0.22);
  color: #E8E4DC;
}

/* 2. UNIFIED SIGN IN & CREATE ACCOUNT PORTAL CARD */
.auth-portal-card {
  width: 100%;
  max-width: 490px;
  margin-inline: auto;
  background: #FFFFFF;
  border-radius: 28px;
  padding: clamp(2.1rem, 4.8vw, 3.25rem);
  color: #041B26;
  box-shadow: 0 38px 88px rgba(1, 18, 28, 0.48);
}

.auth-portal-card__head {
  text-align: center;
  margin-bottom: 1.85rem;
}

.auth-logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg, #07536E 0%, #02202E 100%);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 12px 26px -8px rgba(2, 32, 46, 0.50);
}

.auth-logo-mark svg {
  width: 32px;
  height: 32px;
}

.auth-portal-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 480;
  color: #031B26 !important;
  line-height: 1.12;
  margin-bottom: 0.55rem;
}

.auth-portal-card__sub {
  font-size: 0.96875rem;
  line-height: 1.62;
  color: #506976;
  max-width: 38ch;
  margin-inline: auto;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 15px;
  background: #EEF3F6;
  margin-bottom: 1.85rem;
}

.auth-mode-btn {
  padding: 0.72rem 1rem;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: #4A6573;
  font-size: 0.96875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.auth-mode-btn.is-active {
  background: #FFFFFF;
  color: #031F2C;
  box-shadow: 0 3px 10px rgba(3, 40, 56, 0.10);
}

.auth-form {
  gap: 1.35rem;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 0.35rem;
}

.auth-switch-foot {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  text-align: center;
  font-size: 0.9375rem;
  color: #526C79;
}

.auth-switch-foot a {
  color: #A83705;
  font-weight: 600;
}

/* 3. MOBILE SCROLLABLE PILL BAR & UNREAD COUNT BADGES */
.studio-mobile-tabs--scroll {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.studio-mobile-tabs--scroll::-webkit-scrollbar {
  display: none;
}

.studio-mobile-tabs--scroll .studio-mobile-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mob-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 5px;
  border-radius: var(--radius-pill);
  background: #DC5112;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
}

.studio-nav__count--alert {
  background: #DC5112 !important;
  color: #FFFFFF !important;
}

.studio-section-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: #526B78;
  max-width: 58ch;
  margin-top: -1.5rem;
  margin-bottom: 2.25rem;
}

/* 4. HANDCRAFTED MEMBER DASHBOARD HERO BANNER & SECTIONS */
.member-hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 86% 18%, rgba(212, 75, 13, 0.24) 0%, transparent 56%),
    radial-gradient(ellipse at 18% 12%, #0B6E8C 0%, #043B50 48%, #02212E 100%);
  color: #FFFFFF;
}

.member-hero-banner__geo {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 360px;
  height: 360px;
  color: #BFE8F0;
  opacity: 0.12;
  pointer-events: none;
}

.member-hero-banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 3.85rem) clamp(1.35rem, 4.5vw, 3.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.member-avatar-squircle {
  width: clamp(56px, 5.4vw, 68px);
  height: clamp(56px, 5.4vw, 68px);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1.5px solid rgba(191, 232, 240, 0.34);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 500;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(1, 14, 22, 0.36);
}

.member-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.member-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(140, 226, 236, 0.16);
  border: 1px solid rgba(191, 232, 240, 0.28);
  color: #D7F5FA;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-since-text {
  font-size: 0.84rem;
  color: rgba(224, 244, 250, 0.76);
}

.member-section-block {
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
}

.member-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.member-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  font-weight: 480;
  color: #031B26;
  margin: 0;
}

.member-section-link {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #A83705;
  cursor: pointer;
}

.member-section-link:hover {
  color: #054A63;
}

/* 5. CONVERSATION THREAD CARDS (ADMIN COMMENTS INBOX & MEMBER ADMIN REPLIES) */
.thread-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.65rem, 3vw, 2.25rem);
}

.studio-thread-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.09);
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  box-shadow:
    0 2px 6px rgba(3, 38, 54, 0.025),
    0 18px 46px -26px rgba(3, 38, 54, 0.13);
}

.studio-thread-card.is-unread {
  border-color: rgba(212, 75, 13, 0.34);
  box-shadow:
    0 0 0 3px rgba(212, 75, 13, 0.06),
    0 18px 46px -26px rgba(3, 38, 54, 0.14);
}

.studio-thread-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.08);
}

.studio-thread-card__writing {
  font-family: var(--font-writing-head);
  font-size: clamp(1.18rem, 1.5vw, 1.38rem);
  font-weight: 600;
  color: #05202C;
  line-height: 1.3;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.studio-thread-card__writing:hover {
  color: #054A63;
}

.studio-thread-card__sub {
  font-size: 0.875rem;
  color: #607885;
}

.studio-thread-card__badges {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.thread-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.thread-pill--new {
  background: #FCECE4;
  color: #A83705;
}

.thread-pill--replied {
  background: #E6F7F2;
  color: #0B6F57;
}

.thread-pill--pending {
  background: #EEF4F7;
  color: #466270;
}

.studio-thread-card__msgs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.studio-thread-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
}

.studio-thread-reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
}

.studio-thread-reply-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.studio-text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #06526D;
}

.studio-text-link:hover {
  color: #A83705;
}

.studio-wcard__icon-del--sm {
  width: 38px;
  height: 38px;
}

.studio-wcard__icon-del--sm svg {
  width: 16px;
  height: 16px;
}

/* 6. SHARED COMMENT BUBBLES & ARTICLE READER COMMENTS SECTION (writing.html) */
.reader-ctrl-btn.is-saved {
  color: #B83D06;
}

.reader-comments {
  margin-top: clamp(3.75rem, 6.5vw, 5.25rem);
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
  border-top: 1px solid var(--paper-line);
}

.reader-comments__head {
  margin-bottom: 1.75rem;
}

.reader-comments__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 600;
  color: var(--paper-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.reader-comments__count {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 74, 99, 0.09);
  color: #054A63;
}

.cmt-auth-prompt {
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.cmt-auth-prompt__title {
  font-family: var(--font-writing-head);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--paper-ink);
  margin-bottom: 0.35rem;
}

.cmt-auth-prompt__sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--paper-muted);
  max-width: 48ch;
  margin: 0;
}

.cmt-auth-prompt__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cmt-composer {
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.8vw, 1.95rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2.35rem;
  box-shadow: 0 12px 32px -22px rgba(34, 34, 34, 0.14);
}

.cmt-composer__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cmt-composer__name {
  font-size: 0.96875rem;
  font-weight: 600;
  color: var(--paper-ink);
  line-height: 1.25;
}

.cmt-composer__hint {
  font-size: 0.8125rem;
  color: var(--paper-muted);
}

.cmt-textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  border-radius: 15px;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F8FAFB;
  color: #0B2029;
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 0.22s, background-color 0.22s, box-shadow 0.22s;
}

.cmt-textarea:focus {
  outline: none;
  border-color: #086382;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(13, 128, 163, 0.11);
}

.cmt-textarea--sm {
  min-height: 76px;
}

.cmt-composer__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.cmt-composer__rule {
  font-size: 0.84rem;
  color: var(--paper-muted);
}

.reader-comments__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cmt-thread {
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.8vw, 1.95rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cmt-replies {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-left: clamp(0.85rem, 2.2vw, 1.5rem);
  border-left: 2.5px solid rgba(5, 74, 99, 0.15);
  margin-top: 0.25rem;
}

.cmt-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cmt-item--reply {
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: #F5F8FA;
}

.cmt-item--staff {
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: #EDF6F9;
  border: 1px solid rgba(5, 74, 99, 0.13);
}

.cmt-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.cmt-item__author {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.cmt-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #E8F1F5;
  color: #04364A;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cmt-avatar--logo {
  background: linear-gradient(145deg, #07536E 0%, #02202E 100%);
}

.cmt-avatar--logo svg {
  width: 22px;
  height: 22px;
}

.cmt-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cmt-item__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #061D28;
}

.cmt-role-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
}

.cmt-role-pill--admin {
  background: #04364A;
  color: #FFFFFF;
}

.cmt-role-pill--moderator {
  background: #0D80A3;
  color: #FFFFFF;
}

.cmt-role-pill--writer {
  background: #FCECE4;
  color: #9E3405;
}

.cmt-item__date {
  font-size: 0.8125rem;
  color: #6B828E;
}

.cmt-item__body {
  font-size: 0.96875rem;
  line-height: 1.72;
  color: #2A434F;
  margin: 0;
  word-break: break-word;
}

.cmt-thread__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}

.cmt-thread__foot:empty {
  display: none;
}

.cmt-action-btn {
  border: 0;
  background: transparent;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #06526D;
  cursor: pointer;
}

.cmt-action-btn:hover {
  color: #A83705;
}

.cmt-action-btn--danger {
  color: #B44112;
}

.cmt-inline-reply {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.cmt-inline-reply__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cmt-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 18px;
  background: var(--paper-surface);
  border: 1px solid var(--paper-line);
  color: var(--paper-muted);
}

/* Dark Mode Reader Support for Comments */
body.reader-theme-dark .cmt-textarea {
  background: #1A2024;
  border-color: rgba(232, 228, 220, 0.16);
  color: #E8E4DC;
}

body.reader-theme-dark .cmt-item__name {
  color: #EFECE5;
}

body.reader-theme-dark .cmt-item__body {
  color: #D2CEC6;
}

body.reader-theme-dark .cmt-item--reply {
  background: #242B30;
}

body.reader-theme-dark .cmt-item--staff {
  background: #1C2E36;
  border-color: rgba(140, 226, 236, 0.22);
}

body.reader-theme-dark .cmt-action-btn {
  color: #8CE2EC;
}

body.reader-theme-dark .reader-comments__count {
  background: rgba(140, 226, 236, 0.16);
  color: #9EE6F0;
}

/* 7. ADMIN USERS & ROLES MANAGEMENT GRID (REFERENCE-INSPIRED v43 CARDS) */
.studio-info-banner {
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
  background: #EAF4F8;
  border: 1px solid rgba(5, 74, 99, 0.16);
  color: #163A49;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.studio-segmented--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 520px) {
  .studio-segmented--4 .studio-seg-btn {
    padding: 0.62rem 0.55rem;
    font-size: 0.84rem;
  }
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.65rem, 3vw, 2.25rem);
}

@media (min-width: 820px) {
  .users-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.user-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.08);
  border-radius: 26px;
  padding: clamp(1.5rem, 2.8vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  box-shadow:
    0 2px 6px rgba(3, 38, 54, 0.025),
    0 20px 48px -24px rgba(3, 38, 54, 0.13);
}

.user-card--blocked {
  background: #FFFBF9;
  border-color: rgba(204, 71, 10, 0.24);
}

.user-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.user-card__ident {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.user-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #EAF3F7;
  color: #04364A;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.user-card__avatar--logo {
  background: linear-gradient(145deg, #07536E 0%, #02202E 100%);
}

.user-card__avatar--logo svg {
  width: 28px;
  height: 28px;
}

.user-card__meta {
  min-width: 0;
}

.user-card__name {
  font-family: var(--font-writing-head);
  font-size: 1.22rem;
  font-weight: 600;
  color: #051D28;
  line-height: 1.25;
}

.user-card__email {
  font-size: 0.875rem;
  color: #607885;
  word-break: break-all;
  margin-top: 0.14rem;
}

.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-status-pill--active {
  background: #E6F7F2;
  color: #0B6F57;
}

.user-status-pill--blocked {
  background: #FCECE4;
  color: #A83705;
}

.user-card__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.user-card__role-val,
.user-card__date-val {
  font-size: 0.86rem !important;
  font-weight: 600 !important;
}

.user-card__controls {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.user-card__role-wrap {
  display: block;
  width: 100%;
}

.user-role-select {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F6F9FB;
  color: #06212E;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.user-role-select:focus {
  outline: none;
  border-color: #086382;
  background: #FFFFFF;
}

.user-card__btns {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-card__btns .studio-wcard__pill {
  flex: 1 1 auto;
}

.user-card__locked-note {
  margin-top: auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #F4F7F9;
  font-size: 0.84rem;
  color: #5E7683;
  text-align: center;
}


/* ==========================================================================
   v45 — MANUAL BILINGUAL SUPPORT (EN / বাংলা) & SERIES / MULTI-PART GROUPING
   Calm, spacious editorial polish matching Duburi's oceanic & warm-paper craft.
   ========================================================================== */

/* 1. BILINGUAL & SERIES BADGES ON WRITINGS FEED & ADMIN STUDIO CARDS */
.writing-lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.62rem;
  border-radius: var(--radius-pill);
  background: #EAF4F8;
  border: 1px solid rgba(5, 74, 99, 0.16);
  color: #054A63;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
}

.writing-card__series-row {
  margin-bottom: 0.72rem;
}

.writing-series-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 71, 10, 0.22);
  background: #FFF6F1;
  color: #8F2F04;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
}

.writing-series-chip:hover {
  background: #FCECE4;
  border-color: rgba(204, 71, 10, 0.42);
  transform: translateY(-1px);
}

.writing-series-chip__part {
  padding-left: 0.48rem;
  border-left: 1px solid rgba(204, 71, 10, 0.28);
  color: #CC470A;
  font-weight: 700;
}

.studio-wcard__series-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: #FFF5F0;
  border: 1px solid rgba(204, 71, 10, 0.22);
  color: #A83705;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

/* 2. MULTI-PART SERIES STRIP ON writings.html */
.series-strip {
  margin-top: 1.65rem;
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(34, 34, 34, 0.08);
  box-shadow: 0 10px 28px -22px rgba(34, 34, 34, 0.12);
}

.series-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.series-strip__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5C5852;
}

.series-strip__clear {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #A83705;
  cursor: pointer;
}

.series-strip__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.series-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 1.05rem;
  border-radius: 13px;
  border: 1px solid rgba(5, 74, 99, 0.14);
  background: #F6FAFB;
  color: #06212E;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.24s var(--ease-wave);
}

.series-card-pill:hover {
  border-color: #054A63;
  background: #EAF4F8;
  transform: translateY(-1px);
}

.series-card-pill.is-active {
  background: #04364A;
  border-color: #04364A;
  color: #FFFFFF;
}

.series-card-pill__meta {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 74, 99, 0.10);
  color: #054A63;
}

.series-card-pill.is-active .series-card-pill__meta {
  background: rgba(255, 255, 255, 0.18);
  color: #E2F6FA;
}

/* 3. MANUAL BILINGUAL SWITCHER BAR ON writing.html */
.reader-lang-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 0.72rem 1rem 0.72rem 1.2rem;
  margin-bottom: clamp(1.85rem, 3.6vw, 2.65rem);
  border-radius: 16px;
  background: #F2F6F8;
  border: 1px solid rgba(5, 74, 99, 0.11);
}

.reader-lang-bar__label {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #466270;
}

.reader-lang-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: #E2ECF0;
}

.reader-lang-btn {
  padding: 0.44rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #365260;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.reader-lang-btn--bn {
  font-family: var(--font-bn);
}

.reader-lang-btn.is-active {
  background: #FFFFFF;
  color: #031F2C;
  box-shadow: 0 2px 8px rgba(3, 40, 56, 0.12);
}

/* CRISP BANGLA READING TYPOGRAPHY WHEN VIEWING BANGLA VERSION */
.is-lang-bn .reader-title,
.is-lang-bn .writing-card__title,
.is-lang-bn .reader-h2,
.is-lang-bn .reader-h3 {
  font-family: var(--font-bn) !important;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.005em;
}

.is-lang-bn .reader-excerpt,
.is-lang-bn .reader-article,
.is-lang-bn .writing-card__desc {
  font-family: var(--font-bn) !important;
  line-height: 1.98;
}

.is-lang-bn .reader-quote {
  font-family: var(--font-bn) !important;
  font-style: normal;
  font-weight: 500;
  line-height: 1.75;
}

/* 4. TOP SERIES BANNER & COLLAPSIBLE PARTS TOC ON writing.html */
.reader-series-banner {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.12);
  box-shadow: 0 12px 32px -24px rgba(3, 51, 70, 0.14);
}

.reader-series-banner__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.reader-series-banner__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.reader-series-banner__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #042E3F;
}

.reader-series-banner__kicker:hover {
  color: #A83705;
}

.reader-series-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CC470A;
  flex-shrink: 0;
}

.reader-series-banner__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.72rem;
  border-radius: var(--radius-pill);
  background: #FCECE4;
  color: #9E3405;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.reader-series-toc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.88rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F4F8FA;
  color: #064257;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.reader-series-toc-btn:hover {
  background: #E6F2F6;
  border-color: #054A63;
}

.reader-series-toc-btn__chev {
  display: inline-block;
  transition: transform 0.25s var(--ease-wave);
}

.reader-series-toc-btn.is-open .reader-series-toc-btn__chev {
  transform: rotate(180deg);
}

.reader-series-progress {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(5, 74, 99, 0.10);
  overflow: hidden;
}

.reader-series-progress span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #086382 0%, #CC470A 100%);
  transition: width 0.35s var(--ease-wave);
}

.reader-series-toc {
  list-style: none;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.reader-series-toc__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #2A434F;
  transition: background-color 0.2s, color 0.2s;
}

a.reader-series-toc__link:hover {
  background: #EFF6F9;
  color: #031B26;
}

.reader-series-toc__item.is-current .reader-series-toc__link {
  background: #FFF5F0;
  border: 1px solid rgba(204, 71, 10, 0.20);
  color: #031B26;
  font-weight: 600;
}

.reader-series-toc__num {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #A83705;
  min-width: 3.6rem;
}

.reader-series-toc__title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.reader-series-toc__now {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.16rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #CC470A;
  color: #FFFFFF;
}

.reader-series-toc__arrow {
  color: #06526D;
  font-weight: 600;
}

/* 5. BOTTOM SMOOTH SERIES PREV / NEXT NAVIGATION ON writing.html */
.reader-series-nav {
  margin-top: clamp(3rem, 5.5vw, 4.25rem);
  padding: clamp(1.35rem, 2.8vw, 1.95rem);
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  box-shadow: 0 14px 36px -24px rgba(3, 51, 70, 0.14);
}

.reader-series-nav__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.08);
}

.reader-series-nav__series {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #054A63;
}

.reader-series-nav__count {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #A83705;
}

.reader-series-nav__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .reader-series-nav__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.series-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(5, 74, 99, 0.12);
  background: #F6FAFB;
  text-decoration: none;
  transition: transform 0.28s var(--ease-wave), border-color 0.22s, background-color 0.22s;
}

a.series-nav-card:hover {
  transform: translateY(-2px);
  border-color: #054A63;
  background: #EAF4F8;
}

.series-nav-card--next {
  text-align: right;
  align-items: flex-end;
}

a.series-nav-card--next {
  background: #FFF7F3;
  border-color: rgba(204, 71, 10, 0.24);
}

a.series-nav-card--next:hover {
  background: #FCECE4;
  border-color: #CC470A;
}

.series-nav-card--empty {
  background: #FAFBFB;
  border-style: dashed;
  opacity: 0.78;
}

.series-nav-card__dir {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A83705;
}

.series-nav-card__title {
  font-family: var(--font-writing-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.38;
  color: #05202C;
}

.series-nav-card__sub {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #607885;
}

/* 6. STUDIO SUBPANELS, BILINGUAL TOGGLE SWITCH & QUICK COMPOSER COLLAPSIBLES */
.studio-subpanel {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 18px;
  background: #F6FAFC;
  border: 1px solid rgba(5, 74, 99, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.studio-subpanel--bilingual {
  background: #FAF9F6;
  border-color: rgba(204, 71, 10, 0.18);
}

.studio-subpanel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.studio-subpanel__title {
  font-family: var(--font-sans);
  font-size: 1.03125rem;
  font-weight: 700;
  color: #05202C;
  margin-bottom: 0.25rem;
}

.studio-subpanel__opt {
  font-weight: 500;
  font-size: 0.875rem;
  color: #667F8C;
}

.studio-subpanel__desc {
  font-size: 0.9rem;
  line-height: 1.58;
  color: #506A77;
  max-width: 56ch;
  margin: 0;
}

.series-pill-preview {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #FCECE4;
  color: #9E3405;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Accessible Modern Toggle Switch */
.studio-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.studio-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.studio-switch__track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: #CBD9E0;
  transition: background-color 0.24s ease;
}

.studio-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(3, 38, 54, 0.22);
  transition: transform 0.26s var(--ease-wave);
}

.studio-switch input:checked + .studio-switch__track {
  background: #CC470A;
}

.studio-switch input:checked + .studio-switch__track::after {
  transform: translateX(20px);
}

.studio-switch__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #05202C;
}

.studio-bilingual-fields {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.bilingual-lang-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.bilingual-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #04364A;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
}

.bilingual-lang-banner__note {
  font-size: 0.84rem;
  color: #5A7380;
}

/* Quick Composer Optional Collapsibles */
.qc-extras-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qc-collapsible {
  border: 1px solid rgba(5, 74, 99, 0.13);
  border-radius: 14px;
  background: #F7FAFC;
  overflow: hidden;
}

.qc-collapsible__sum {
  padding: 0.82rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #054A63;
  cursor: pointer;
  list-style: none;
}

.qc-collapsible__sum::-webkit-details-marker {
  display: none;
}

.qc-collapsible__body {
  padding: 0.25rem 1.1rem 1.1rem;
}

/* 7. DARK MODE SUPPORT FOR BILINGUAL & SERIES ON writing.html */
body.reader-theme-dark .reader-lang-bar {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.14);
}

body.reader-theme-dark .reader-lang-bar__label {
  color: #B4B0A8;
}

body.reader-theme-dark .reader-lang-switch {
  background: #14181B;
}

body.reader-theme-dark .reader-lang-btn {
  color: #B8B4AC;
}

body.reader-theme-dark .reader-lang-btn.is-active {
  background: #2C353B;
  color: #FFFFFF;
}

body.reader-theme-dark .reader-series-banner,
body.reader-theme-dark .reader-series-nav {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.13);
}

body.reader-theme-dark .reader-series-banner__kicker,
body.reader-theme-dark .reader-series-nav__series,
body.reader-theme-dark .series-nav-card__title {
  color: #EFECE5;
}

body.reader-theme-dark .reader-series-banner__badge {
  background: rgba(224, 92, 30, 0.20);
  color: #FFA06E;
}

body.reader-theme-dark .reader-series-toc-btn {
  background: #252D32;
  border-color: rgba(232, 228, 220, 0.16);
  color: #E8E4DC;
}

body.reader-theme-dark .reader-series-toc__link {
  color: #D2CEC6;
}

body.reader-theme-dark a.reader-series-toc__link:hover {
  background: #252D32;
  color: #FFFFFF;
}

body.reader-theme-dark .reader-series-toc__item.is-current .reader-series-toc__link {
  background: #2A2320;
  border-color: rgba(224, 92, 30, 0.36);
  color: #FFFFFF;
}

body.reader-theme-dark .series-nav-card {
  background: #232A2F;
  border-color: rgba(232, 228, 220, 0.14);
}

body.reader-theme-dark a.series-nav-card:hover {
  background: #2A3339;
  border-color: #8CE2EC;
}

body.reader-theme-dark .writing-lang-pill {
  background: #24323A;
  border-color: rgba(140, 226, 236, 0.25);
  color: #9EE6F0;
}

body.reader-theme-dark .writing-series-chip {
  background: #2A221E;
  border-color: rgba(255, 130, 67, 0.32);
  color: #FFA473;
}
/* ==========================================================================
   v48 — ADMIN COVER EXACT 1672x941 RATIO, DESKTOP SIGN-IN & PROFILE HEADER,
         MOBILE HAMBURGER TOP PROFILE + EDIT PROFILE MENU,
         STICKY FLOATING BOTTOM READING BAR & 2X LARGER TEXT SIZES
   ========================================================================== */

/* 1. ADMIN COVER PHOTO: EXACT IMAGE ASPECT RATIO (1672x941), BIGGER & UNCROPPED */
.admin-hero-cover {
  width: 100%;
  aspect-ratio: 1672 / 941;
  min-height: 0;
  max-height: 680px;
  background-size: cover;
  background-position: center center;
}

@media (max-width: 640px) {
  .admin-hero-cover {
    aspect-ratio: 1672 / 941;
    min-height: 210px;
    background-position: center center;
  }
}

/* 2. HIDE SIGN-IN & PROFILE IN MOBILE HEADER; SHOW ORANGE SIGN-IN / PROFILE ON DESKTOP ONLY */
@media (max-width: 991px) {
  .site-header .header-actions [data-account-nav] {
    display: none !important;
  }
}

.site-header .header-actions .nav-account-btn.btn--coral {
  height: auto;
  padding: 0.68rem 1.4rem;
  border: 0;
  background: #D44B0D;
  color: #FFFFFF;
  font-size: 0.96875rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(180, 56, 4, 0.24);
}

.site-header .header-actions .nav-account-btn.btn--coral:hover {
  background: #B83D06;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(168, 55, 5, 0.32);
}

.nav-account-btn__avatar--logo svg {
  width: 18px;
  height: 18px;
}

/* 3. MOBILE HAMBURGER MENU TOP SIGN-IN & LOGGED-IN PROFILE + EDIT PROFILE MENU */
.mobile-drawer__account {
  margin-bottom: 1.5rem;
}

.mob-auth-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(191, 232, 240, 0.20);
}

.mob-auth-card__signin {
  width: 100%;
}

.mob-auth-card__signup {
  display: block;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(226, 244, 250, 0.84);
}

.mob-auth-card__signup span {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mob-profile-card {
  padding: 1.15rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 232, 240, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mob-profile-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.mob-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.mob-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1.5px solid rgba(191, 232, 240, 0.36);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  display: grid;
  place-items: center;
}

.mob-profile-avatar--logo {
  background: linear-gradient(145deg, #07536E 0%, #02202E 100%);
}

.mob-profile-avatar--logo svg {
  width: 26px;
  height: 26px;
}

.mob-profile-unread-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #E05C1E;
  border: 2px solid #04364A;
}

.mob-profile-info {
  min-width: 0;
  flex: 1;
}

.mob-profile-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-profile-role {
  font-size: 0.82rem;
  color: rgba(212, 240, 248, 0.82);
  margin-top: 0.16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-profile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(191, 232, 240, 0.16);
}

.mob-profile-menu__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.85rem;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mob-profile-menu__item svg {
  width: 17px;
  height: 17px;
  color: #8CE2EC;
  flex-shrink: 0;
}

.mob-profile-menu__item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mob-profile-menu__arr {
  margin-left: auto;
  color: var(--coral-400);
  font-size: 1rem;
}

.mob-profile-menu__item--out {
  background: transparent;
  color: rgba(226, 244, 250, 0.78);
}

.mob-profile-menu__item--out svg {
  color: rgba(255, 142, 83, 0.88);
}

/* 4. STICKY FIXED FLOATING BOTTOM READING BAR (MOBILE & DESKTOP) */
.reader-float-bar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 14px));
  transform: translateX(-50%);
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: calc(100vw - 18px);
  padding: 0.38rem 0.48rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(5, 74, 99, 0.16);
  box-shadow:
    0 14px 36px -6px rgba(2, 26, 38, 0.24),
    0 3px 10px rgba(2, 26, 38, 0.10);
  white-space: nowrap;
}

.rf-sep {
  width: 1px;
  height: 20px;
  background: rgba(5, 74, 99, 0.15);
  flex-shrink: 0;
  margin-inline: 0.08rem;
}

.rf-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: #E7F0F4;
}

.rf-lang-btn {
  height: 32px;
  padding: 0 0.65rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #365260;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.rf-lang-btn--bn {
  font-family: var(--font-bn);
  font-weight: 600;
}

.rf-lang-btn.is-active {
  background: #04364A;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(3, 40, 56, 0.22);
}

.rf-size-group {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  height: 38px;
  min-width: 38px;
  padding: 0 0.62rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #06212E;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.rf-btn:hover:not(:disabled) {
  background: #E9F3F7;
  color: #04364A;
}

.rf-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.rf-btn--size {
  font-family: var(--font-writing-head);
  font-size: 0.96875rem;
  font-weight: 700;
  padding: 0 0.56rem;
}

.rf-size-val {
  height: 32px;
  padding: 0 0.36rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #516A78;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.rf-size-val.is-custom {
  color: #CC470A;
  background: rgba(204, 71, 10, 0.10);
}

.rf-btn.is-saved {
  color: #CC470A;
  background: rgba(204, 71, 10, 0.10);
}

.rf-btn--edit {
  background: #054A63;
  color: #FFFFFF;
}

.rf-btn--edit:hover {
  background: #033346;
  color: #FFFFFF;
}

.rf-btn-label {
  display: none;
}

@media (min-width: 640px) {
  .reader-float-bar {
    gap: 0.45rem;
    padding: 0.45rem 0.68rem;
  }
  .rf-btn {
    padding: 0 0.82rem;
  }
  .rf-btn-label {
    display: inline;
  }
  .rf-lang-btn {
    padding: 0 0.82rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .reader-float-bar {
    gap: 0.2rem;
    padding: 0.32rem 0.38rem;
  }
  .rf-btn {
    min-width: 34px;
    height: 36px;
    padding: 0 0.46rem;
  }
  .rf-lang-btn {
    padding: 0 0.52rem;
    font-size: 0.78rem;
  }
  .rf-size-val {
    font-size: 0.72rem;
    padding: 0 0.26rem;
  }
}

/* Keep footer & toast clear of floating bottom bar on writing.html */
body.page-writing-reader .site-footer {
  padding-bottom: 5.5rem;
}

body.page-writing-reader .duburi-toast {
  bottom: 5.25rem;
}

/* Dark Mode for Sticky Floating Bottom Reading Bar */
body.reader-theme-dark .reader-float-bar {
  background: rgba(26, 32, 36, 0.94);
  border-color: rgba(232, 228, 220, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56);
}

body.reader-theme-dark .rf-sep {
  background: rgba(232, 228, 220, 0.16);
}

body.reader-theme-dark .rf-lang-switch {
  background: #14181B;
}

body.reader-theme-dark .rf-lang-btn {
  color: #B8B4AC;
}

body.reader-theme-dark .rf-lang-btn.is-active {
  background: #D44B0D;
  color: #FFFFFF;
}

body.reader-theme-dark .rf-btn {
  color: #EFECE5;
}

body.reader-theme-dark .rf-btn:hover:not(:disabled) {
  background: #2C353C;
  color: #FFFFFF;
}

body.reader-theme-dark .rf-size-val {
  color: #B6B1A8;
}

body.reader-theme-dark .rf-size-val.is-custom {
  color: #FFA06E;
  background: rgba(224, 92, 30, 0.22);
}

body.reader-theme-dark .rf-btn.is-saved {
  color: #FFA06E;
  background: rgba(224, 92, 30, 0.22);
}

/* 5. EXPANDED TEXT SIZES UP TO 2X THE PREVIOUS LARGEST SIZE (1.40625rem -> 2.8125rem) */
body[data-reader-size="2xl"] .reader-article { font-size: 1.65625rem; line-height: 1.84; max-width: 100%; }
body[data-reader-size="3xl"] .reader-article { font-size: 1.9375rem;  line-height: 1.76; max-width: 100%; }
body[data-reader-size="4xl"] .reader-article { font-size: 2.21875rem; line-height: 1.68; max-width: 100%; }
body[data-reader-size="5xl"] .reader-article { font-size: 2.5rem;     line-height: 1.60; max-width: 100%; }
body[data-reader-size="6xl"] .reader-article { font-size: 2.8125rem;  line-height: 1.54; max-width: 100%; }

body[data-reader-size="2xl"] .is-lang-bn .reader-article { line-height: 1.88; }
body[data-reader-size="3xl"] .is-lang-bn .reader-article { line-height: 1.82; }
body[data-reader-size="4xl"] .is-lang-bn .reader-article { line-height: 1.74; }
body[data-reader-size="5xl"] .is-lang-bn .reader-article { line-height: 1.68; }
body[data-reader-size="6xl"] .is-lang-bn .reader-article { line-height: 1.62; }

body[data-reader-size="2xl"] .reader-h2,
body[data-reader-size="3xl"] .reader-h2,
body[data-reader-size="4xl"] .reader-h2,
body[data-reader-size="5xl"] .reader-h2,
body[data-reader-size="6xl"] .reader-h2 {
  font-size: 1.32em;
  line-height: 1.24;
}

body[data-reader-size="2xl"] .reader-h3,
body[data-reader-size="3xl"] .reader-h3,
body[data-reader-size="4xl"] .reader-h3,
body[data-reader-size="5xl"] .reader-h3,
body[data-reader-size="6xl"] .reader-h3 {
  font-size: 1.15em;
  line-height: 1.28;
}

body[data-reader-size="2xl"] .reader-quote,
body[data-reader-size="3xl"] .reader-quote,
body[data-reader-size="4xl"] .reader-quote,
body[data-reader-size="5xl"] .reader-quote,
body[data-reader-size="6xl"] .reader-quote {
  font-size: 1.06em;
  line-height: 1.48;
}

body[data-reader-size="2xl"] .reader-excerpt { font-size: 1.42rem; }
body[data-reader-size="3xl"] .reader-excerpt { font-size: 1.65rem; }
body[data-reader-size="4xl"] .reader-excerpt { font-size: 1.9rem;  }
body[data-reader-size="5xl"] .reader-excerpt { font-size: 2.15rem; }
body[data-reader-size="6xl"] .reader-excerpt { font-size: 2.4rem;  }

@media (min-width: 900px) {
  body[data-reader-size="2xl"] .reader-shell,
  body[data-reader-size="3xl"] .reader-shell { max-width: 820px; }
  body[data-reader-size="4xl"] .reader-shell,
  body[data-reader-size="5xl"] .reader-shell,
  body[data-reader-size="6xl"] .reader-shell { max-width: 940px; }
}
/* ==========================================================================
   v49 — 50% LARGER HERO HEADLINE (DESKTOP & MOBILE), BADGE SYSTEM WITH ICONS,
         AUTHOR BYLINE BELOW WRITING HEADLINES, ADMIN NAME EDIT & HOMEPAGE
         FEATURED WRITINGS SECTION
   ========================================================================== */

/* 1. HERO MAIN HEADLINE: 50% LARGER ON BOTH MOBILE AND DESKTOP
      Previous: clamp(2.45rem, 4.15vw, 4.15rem)  -> x1.5 = clamp(3.675rem, 6.225vw, 6.225rem) */
.hero .h1 {
  font-size: clamp(2.94rem, 4.98vw, 4.98rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-bottom: 1.3rem;
  overflow-wrap: break-word;
}

@media (min-width: 992px) and (max-height: 820px) {
  .hero .h1 {
    font-size: clamp(2.7rem, 4.32vw, 4.14rem);
    line-height: 1.04;
    margin-bottom: 1rem;
  }
}

/* 2. UNIFIED SHORT BADGE PILLS WITH SVG ICONS (Students, Writers, Authors, Moderators, Custom) */
.duburi-badge-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.36rem;
  vertical-align: middle;
}

.duburi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.64rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.duburi-badge--sm {
  padding: 0.16rem 0.52rem;
  font-size: 0.71rem;
  gap: 0.26rem;
}

.duburi-badge__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.duburi-badge__ic svg {
  width: 13px;
  height: 13px;
}

.duburi-badge--sm .duburi-badge__ic svg {
  width: 11.5px;
  height: 11.5px;
}

/* Badge Color Themes */
.duburi-badge--ocean {
  background: #E6F3F8;
  border-color: rgba(5, 74, 99, 0.22);
  color: #043C52;
}

.duburi-badge--coral {
  background: #FCECE4;
  border-color: rgba(204, 71, 10, 0.26);
  color: #9E3405;
}

.duburi-badge--emerald {
  background: #E4F6F0;
  border-color: rgba(15, 139, 109, 0.26);
  color: #096850;
}

.duburi-badge--gold {
  background: #FCF4DF;
  border-color: rgba(181, 127, 14, 0.28);
  color: #875905;
}

.duburi-badge--indigo {
  background: #EAEFFA;
  border-color: rgba(59, 91, 189, 0.26);
  color: #29418F;
}

.duburi-badge--plum {
  background: #F4EAF7;
  border-color: rgba(133, 56, 158, 0.24);
  color: #6B2882;
}

.duburi-badge--slate {
  background: #ECF1F4;
  border-color: rgba(54, 80, 93, 0.22);
  color: #2B4552;
}

/* Badges displayed on dark ocean banners (Admin Hero, Member Hero, Mobile Drawer) */
.duburi-badge-list--on-dark .duburi-badge,
.mob-profile-badges .duburi-badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(191, 232, 240, 0.30);
  color: #F2FAFD;
}

.duburi-badge-list--on-dark .duburi-badge--coral,
.mob-profile-badges .duburi-badge--coral {
  background: rgba(224, 92, 30, 0.28);
  border-color: rgba(255, 142, 83, 0.45);
  color: #FFE4D6;
}

.duburi-badge-list--on-dark .duburi-badge--gold,
.mob-profile-badges .duburi-badge--gold {
  background: rgba(232, 180, 48, 0.24);
  border-color: rgba(246, 206, 98, 0.42);
  color: #FFF2C9;
}

.duburi-badge-list--on-dark .duburi-badge--emerald,
.mob-profile-badges .duburi-badge--emerald {
  background: rgba(34, 181, 142, 0.24);
  border-color: rgba(98, 224, 188, 0.40);
  color: #DCFAF1;
}

.mob-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.42rem;
}

/* Identity Row: Name + Badges Side-by-Side (Admin Hero & Member Hero) */
.identity-name-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.admin-hero-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin-top: 0.22rem;
}

.admin-hero-edit-name {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(191, 232, 240, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.admin-hero-edit-name:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.65);
}

/* 3. AUTHOR BYLINE & BADGES DIRECTLY BELOW HEADLINE ON WRITINGS */
.reader-author-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
  margin-bottom: 1.4rem;
  padding: 0.85rem 1.05rem;
  border-radius: 16px;
  background: #F4F2EC;
  border: 1px solid rgba(34, 34, 34, 0.08);
}

.reader-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #E4EFF4;
  color: #04364A;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.reader-author-avatar--logo {
  background: linear-gradient(145deg, #07536E 0%, #02202E 100%);
}

.reader-author-avatar--logo svg {
  width: 24px;
  height: 24px;
}

.reader-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.reader-author-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6B665F;
}

.reader-author-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.reader-author-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #05202C;
}

body.reader-theme-dark .reader-author-byline {
  background: #20262B;
  border-color: rgba(232, 228, 220, 0.13);
}

body.reader-theme-dark .reader-author-label {
  color: #A8A49B;
}

body.reader-theme-dark .reader-author-name {
  color: #F2EFE9;
}

body.reader-theme-dark .duburi-badge--ocean {
  background: #1C313B;
  border-color: rgba(140, 226, 236, 0.28);
  color: #A3E8F2;
}

body.reader-theme-dark .duburi-badge--coral {
  background: #35211A;
  border-color: rgba(255, 142, 83, 0.34);
  color: #FFA97A;
}

body.reader-theme-dark .duburi-badge--emerald {
  background: #19312A;
  border-color: rgba(98, 224, 188, 0.30);
  color: #8AE8CE;
}

body.reader-theme-dark .duburi-badge--gold {
  background: #332A18;
  border-color: rgba(246, 206, 98, 0.34);
  color: #F8D882;
}

body.reader-theme-dark .duburi-badge--indigo {
  background: #1F273E;
  border-color: rgba(146, 174, 245, 0.30);
  color: #BACBF8;
}

body.reader-theme-dark .duburi-badge--plum {
  background: #2E1F36;
  border-color: rgba(206, 152, 232, 0.30);
  color: #DFB7F2;
}

body.reader-theme-dark .duburi-badge--slate {
  background: #252E33;
  border-color: rgba(200, 214, 222, 0.24);
  color: #D2DDE3;
}

/* Writing Card Author Row (writings.html & Homepage Featured Writings) */
.writing-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 0.72rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--paper-muted);
}

.writing-card__author-by strong {
  color: var(--paper-ink);
  font-weight: 600;
}

.studio-wcard__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #546F7D;
  margin-bottom: 0.9rem;
}

.studio-wcard__author strong {
  color: #061D28;
}

/* 4. MEMBER DASHBOARD MY BADGES GRID */
.member-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.member-badge-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.09);
  box-shadow: 0 10px 26px -20px rgba(3, 38, 54, 0.12);
}

.member-badge-tile__ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.member-badge-tile__ic svg {
  width: 20px;
  height: 20px;
}

.member-badge-tile__name {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  color: #041D29;
  line-height: 1.25;
}

.member-badge-tile__short {
  font-size: 0.8rem;
  color: #607885;
}

/* 5. ADMIN BADGES CREATOR, ICON PICKER & USER ASSIGN DRAWER */
.badge-creator-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.badge-live-preview-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  background: #F4F8FA;
  border: 1px solid rgba(5, 74, 99, 0.12);
  min-width: 170px;
}

.badge-live-preview-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67808E;
}

.badge-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.5rem;
}

.badge-ic-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem;
  border-radius: 13px;
  border: 1.5px solid rgba(5, 74, 99, 0.13);
  background: #F8FAFB;
  color: #365260;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-ic-opt svg {
  width: 20px;
  height: 20px;
}

.badge-ic-opt:hover {
  border-color: #054A63;
  color: #041D29;
  background: #EDF5F8;
}

.badge-ic-opt.is-selected {
  background: #04364A;
  border-color: #04364A;
  color: #FFFFFF;
}

.badge-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-col-opt {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.badge-col-opt.is-selected {
  box-shadow: 0 0 0 2.5px #04364A;
  transform: translateY(-1px);
}

.badges-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 1rem;
}

.badge-catalog-item {
  padding: 1.15rem;
  border-radius: 18px;
  background: #F8FAFC;
  border: 1px solid rgba(5, 74, 99, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.badge-catalog-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.badge-sys-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #E8F0F4;
  color: #4D6875;
}

.badge-catalog-item__name {
  font-size: 0.96rem;
  font-weight: 600;
  color: #041D29;
}

.badge-catalog-item__meta {
  font-size: 0.8rem;
  color: #607885;
}

/* Assign Badges Drawer inside Admin User Cards */
.user-badges-drawer {
  border-radius: 14px;
  border: 1px solid rgba(5, 74, 99, 0.13);
  background: #F7FAFC;
  overflow: hidden;
}

.user-badges-drawer__sum {
  padding: 0.65rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #054A63;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-badges-drawer__sum::-webkit-details-marker {
  display: none;
}

.user-badges-drawer__sum::after {
  content: '▾';
  font-size: 0.85rem;
}

.user-badges-drawer[open] .user-badges-drawer__sum::after {
  content: '▴';
}

.user-badges-drawer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  padding: 0.25rem 0.85rem 0.85rem;
}

.assign-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.32rem 0.68rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(5, 74, 99, 0.18);
  background: #FFFFFF;
  color: #365260;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.assign-badge-chip__ic svg {
  width: 12px;
  height: 12px;
}

.assign-badge-chip.is-assigned {
  background: #04364A;
  border-color: #04364A;
  color: #FFFFFF;
}

.assign-badge-chip__chk {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* 6. HOMEPAGE FEATURED WRITINGS CONTROL BAR & CARD STAR BUTTON */
.studio-featured-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 1.75rem;
  padding: 1.15rem 1.45rem;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(204, 71, 10, 0.20);
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px -22px rgba(204, 71, 10, 0.20);
}

.studio-featured-bar__info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.studio-featured-bar__star {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #FCECE4;
  color: #CC470A;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.studio-featured-bar__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #05202C;
}

.studio-featured-bar__sub {
  font-size: 0.86rem;
  color: #546F7D;
  line-height: 1.48;
}

.studio-featured-bar__ctrl {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.studio-featured-bar__label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #365260;
  white-space: nowrap;
}

.studio-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  border: 1px solid rgba(5, 74, 99, 0.18);
  background: #F6FAFC;
  overflow: hidden;
}

.studio-stepper__btn {
  width: 38px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #04364A;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.studio-stepper__btn:hover {
  background: #E4F0F5;
}

.studio-stepper__input {
  width: 48px;
  height: 40px;
  border: 0;
  border-inline: 1px solid rgba(5, 74, 99, 0.12);
  background: #FFFFFF;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 700;
  color: #041D29;
  font-variant-numeric: tabular-nums;
}

.studio-wcard__feat-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F4F8FA;
  color: #6B828E;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.22s ease;
}

.studio-wcard__feat-btn:hover {
  border-color: #CC470A;
  color: #CC470A;
  background: #FFF6F1;
}

.studio-wcard__feat-btn.is-featured {
  background: #FCECE4;
  border-color: rgba(204, 71, 10, 0.36);
  color: #CC470A;
}

.studio-subpanel--featured {
  background: #FFF9F6;
  border-color: rgba(204, 71, 10, 0.20);
}

/* 7. HOMEPAGE FEATURED WRITINGS SECTION LAYOUT */
.home-featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.home-featured-head > div:first-child {
  max-width: 44rem;
}

.home-featured-grid {
  margin-top: clamp(2.75rem, 4.5vw, 3.85rem);
}

@media (min-width: 1100px) {
  .home-featured-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.65rem, 2.4vw, 2.15rem);
  }
  .home-featured-grid--3 .writing-card--editorial {
    padding: clamp(1.45rem, 2.2vw, 1.95rem);
  }
  .home-featured-grid--3 .writing-card--editorial .writing-card__title {
    font-size: clamp(1.52rem, 1.8vw, 1.85rem);
  }
}
/* ==========================================================================
   v50 — READING CARDS (KEY TAKEAWAYS), SMOOTH ARTICLE PROGRESS BAR,
         LIVE WORD COUNTER, NESTED LISTS, CUSTOM SPACING/INDENTATION &
         INTERACTIVE ARTICLE QUIZZES (LIGHT & DARK MODE)
   ========================================================================== */

/* 1. SMOOTH GPU-ACCELERATED ARTICLE READING PROGRESS BAR (writing.html) */
body.page-writing-reader .scroll-progress {
  height: 3.5px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
  will-change: transform;
  background: linear-gradient(90deg, var(--ocean-600) 0%, var(--coral-500) 100%);
  z-index: 150;
}

body.page-writing-reader.reader-theme-dark .scroll-progress {
  background: linear-gradient(90deg, #42B2C8 0%, #FF8243 100%);
}

/* 2. EDITOR LIVE WORD COUNTER BAR & TOOLBAR TAKEAWAY BUTTON */
.editor-fmt-btn--takeaway {
  background: #FFF6F0;
  border-color: rgba(204, 71, 10, 0.28);
  color: #9E3405;
}

.editor-fmt-btn--takeaway:hover {
  background: #CC470A;
  border-color: #CC470A;
  color: #FFFFFF;
}

.editor-word-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.84rem;
  color: #546F7D;
  margin-top: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.editor-word-stats strong {
  color: #05202C;
  font-weight: 600;
}

.ews-dot {
  opacity: 0.45;
}

.ews-takeaway {
  color: #A83705;
  font-weight: 600;
}

/* 3. CUSTOM SPACING & INDENTATION + NESTED BULLETED/NUMBERED LISTS */
.reader-article.has-custom-formatting {
  line-height: var(--art-line-height, 1.92) !important;
}

.reader-article.has-custom-formatting p {
  margin-bottom: var(--art-para-space, 1.75rem);
  text-indent: var(--art-text-indent, 0em);
}

.reader-list {
  margin-block: 0 var(--art-para-space, 1.75rem);
  padding-left: var(--art-list-indent, 1.6rem);
  color: inherit;
}

.reader-list--nested {
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
  padding-left: var(--art-list-indent, 1.5rem);
}

.reader-list li {
  margin-bottom: 0.55rem;
  padding-left: 0.2rem;
  line-height: inherit;
}

.reader-list li:last-child {
  margin-bottom: 0;
}

.reader-ul {
  list-style-type: disc;
}

.reader-ul .reader-ul {
  list-style-type: circle;
}

.reader-ul .reader-ul .reader-ul {
  list-style-type: square;
}

.reader-ol {
  list-style-type: decimal;
}

.reader-ol .reader-ol {
  list-style-type: lower-alpha;
}

.reader-ol .reader-ol .reader-ol {
  list-style-type: lower-roman;
}

.reader-list li::marker {
  color: #CC470A;
  font-weight: 600;
}

body.reader-theme-dark .reader-list li::marker {
  color: #FF8E53;
}

/* 4. INLINE TAKEAWAY HIGHLIGHT & END-OF-ARTICLE READING CARDS */
.reader-takeaway-mark {
  background: linear-gradient(180deg, transparent 58%, rgba(204, 71, 10, 0.16) 58%);
  color: inherit;
  padding-inline: 0.12em;
  border-radius: 3px;
}

body.reader-theme-dark .reader-takeaway-mark {
  background: linear-gradient(180deg, transparent 58%, rgba(255, 130, 67, 0.28) 58%);
}

.reader-takeaway-inline {
  margin-block: 2rem;
  padding: 1.25rem 1.45rem;
  border-radius: 16px;
  background: #FFF8F4;
  border: 1px solid rgba(204, 71, 10, 0.22);
  border-left: 3.5px solid #CC470A;
}

.reader-takeaway-inline__tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A83705;
  margin-bottom: 0.45rem;
}

.reader-takeaway-inline p {
  margin-bottom: 0 !important;
  text-indent: 0 !important;
  font-weight: 500;
}

body.reader-theme-dark .reader-takeaway-inline {
  background: #26201D;
  border-color: rgba(255, 130, 67, 0.30);
  border-left-color: #FF8243;
}

body.reader-theme-dark .reader-takeaway-inline__tag {
  color: #FFA06E;
}

/* Key Takeaways Card Collection at End of Article */
.reader-takeaways {
  margin-top: clamp(3rem, 5.5vw, 4.25rem);
  padding: clamp(1.5rem, 3.2vw, 2.25rem);
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.11);
  box-shadow: 0 16px 40px -26px rgba(3, 51, 70, 0.15);
}

.reader-takeaways__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.09);
}

.reader-takeaways__kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #A83705;
  margin-bottom: 0.25rem;
}

.reader-takeaways__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 600;
  color: var(--paper-ink);
  margin: 0;
  line-height: 1.2;
}

.reader-takeaways__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding-inline: 0.6rem;
  border-radius: var(--radius-pill);
  background: #FCECE4;
  color: #9E3405;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.reader-takeaways__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .reader-takeaways__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.takeaway-card {
  position: relative;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: #FAF9F6;
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-top: 3px solid #054A63;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.takeaway-card:nth-child(even) {
  border-top-color: #CC470A;
}

.takeaway-card__num {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #086382;
  font-variant-numeric: tabular-nums;
}

.takeaway-card:nth-child(even) .takeaway-card__num {
  color: #A83705;
}

.takeaway-card__text {
  font-family: var(--font-writing-body);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--paper-ink);
  margin: 0;
}

.reader-takeaways.is-lang-bn .takeaway-card__text,
.reader-takeaways.is-lang-bn .reader-takeaways__title {
  font-family: var(--font-bn) !important;
}

body.reader-theme-dark .reader-takeaways {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.13);
}

body.reader-theme-dark .reader-takeaways__head {
  border-bottom-color: rgba(232, 228, 220, 0.12);
}

body.reader-theme-dark .reader-takeaways__kicker {
  color: #FFA06E;
}

body.reader-theme-dark .reader-takeaways__count {
  background: rgba(224, 92, 30, 0.22);
  color: #FFA473;
}

body.reader-theme-dark .takeaway-card {
  background: #252C31;
  border-color: rgba(232, 228, 220, 0.12);
  border-top-color: #42B2C8;
}

body.reader-theme-dark .takeaway-card:nth-child(even) {
  border-top-color: #FF8243;
}

body.reader-theme-dark .takeaway-card__num {
  color: #8CE2EC;
}

body.reader-theme-dark .takeaway-card:nth-child(even) .takeaway-card__num {
  color: #FFA06E;
}

/* 5. ADMIN COLLAPSIBLE SPACING & QUIZ SUBPANELS */
.studio-subpanel--collapsible {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.studio-subpanel__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: clamp(1.15rem, 2.3vw, 1.55rem);
  cursor: pointer;
  list-style: none;
}

.studio-subpanel__summary::-webkit-details-marker {
  display: none;
}

.studio-subpanel__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.78rem;
  border-radius: var(--radius-pill);
  background: #E8F2F6;
  color: #054A63;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.studio-subpanel__body {
  padding: 0 clamp(1.15rem, 2.3vw, 1.55rem) clamp(1.25rem, 2.5vw, 1.65rem);
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  padding-top: 1.25rem;
}

.spacing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem 1.5rem;
}

@media (min-width: 640px) {
  .spacing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spacing-ctrl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spacing-ctrl__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  color: #355260;
}

.spacing-ctrl__top strong {
  font-size: 0.86rem;
  color: #042E3F;
  font-variant-numeric: tabular-nums;
}

.spacing-ctrl input[type="range"] {
  width: 100%;
  accent-color: #CC470A;
  cursor: pointer;
}

.spacing-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

/* 6. ADMIN QUIZ BUILDER UI */
.studio-subpanel--quiz {
  background: #F7FAFC;
  border-color: rgba(5, 74, 99, 0.14);
}

.qb-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qb-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.qb-empty {
  padding: 1.25rem;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px dashed rgba(5, 74, 99, 0.22);
  font-size: 0.92rem;
  line-height: 1.6;
  color: #546F7D;
}

.qb-card {
  padding: 1.25rem;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qb-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.08);
}

.qb-card__num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A83705;
}

.qb-card__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.qb-type-select {
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(5, 74, 99, 0.18);
  background: #F4F8FA;
  color: #05202C;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.qb-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F6FAFC;
  color: #163948;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.qb-icon-btn:hover {
  background: #E4F0F5;
}

.qb-icon-btn--del {
  color: #B83D06;
  background: #FFF5F0;
  border-color: rgba(204, 71, 10, 0.22);
}

.qb-icon-btn--del:hover {
  background: #CC470A;
  color: #FFFFFF;
}

.qb-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.qb-opt-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  border-radius: 11px;
  border: 1px solid rgba(5, 74, 99, 0.13);
  background: #F9FCFD;
}

.qb-opt-row.is-correct {
  border-color: rgba(15, 139, 109, 0.45);
  background: #EFFBF7;
}

.qb-opt-check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.qb-opt-check input {
  width: 18px;
  height: 18px;
  accent-color: #0F8B6D;
  cursor: pointer;
}

.qb-opt-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 0.45rem 0.35rem !important;
  box-shadow: none !important;
}

.qb-add-opt-btn {
  align-self: flex-start;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.2rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #054A63;
  cursor: pointer;
}

.qb-add-opt-btn:hover {
  color: #CC470A;
}

.qb-bool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.qb-bool-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(5, 74, 99, 0.16);
  background: #F8FAFC;
  font-size: 0.92rem;
  font-weight: 600;
  color: #27424F;
  cursor: pointer;
}

.qb-bool-opt.is-correct {
  background: #EAF8F3;
  border-color: rgba(15, 139, 109, 0.48);
  color: #08664E;
}

.qb-bool-opt input {
  width: 17px;
  height: 17px;
  accent-color: #0F8B6D;
}

.qb-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.qb-count {
  font-size: 0.86rem;
  font-weight: 600;
  color: #546F7D;
}

.qb-add-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 7. READER INTERACTIVE ARTICLE QUIZ (writing.html — Light & Dark Mode) */
.reader-quiz {
  margin-top: clamp(3rem, 5.5vw, 4.25rem);
}

.reader-quiz__card {
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.12);
  box-shadow: 0 18px 44px -26px rgba(3, 51, 70, 0.16);
}

.reader-quiz__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.65rem;
  border-bottom: 1px solid rgba(5, 74, 99, 0.09);
}

.reader-quiz__kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #A83705;
  margin-bottom: 0.25rem;
}

.reader-quiz__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  color: var(--paper-ink);
  margin: 0;
  line-height: 1.2;
}

.reader-quiz__pill {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: #EAF4F8;
  color: #054A63;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
}

.reader-quiz__form {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.quiz-q {
  border: 1px solid rgba(5, 74, 99, 0.10);
  border-radius: 18px;
  padding: clamp(1.15rem, 2.5vw, 1.55rem);
  background: #FAF9F6;
  margin: 0;
}

.quiz-q--ok {
  border-color: rgba(15, 139, 109, 0.36);
}

.quiz-q--no {
  border-color: rgba(204, 71, 10, 0.34);
}

.quiz-q__legend {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0;
}

.quiz-q__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
}

.quiz-q__num {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #054A63;
}

.quiz-q__type {
  color: #6B665F;
  font-weight: 500;
}

.quiz-q__prompt {
  font-family: var(--font-writing-head);
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  font-weight: 600;
  line-height: 1.42;
  color: var(--paper-ink);
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-opts--bool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.quiz-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  border-radius: 13px;
  border: 1.5px solid rgba(5, 74, 99, 0.14);
  background: #FFFFFF;
  color: var(--paper-ink);
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.quiz-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.quiz-opt__ctrl {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid rgba(5, 74, 99, 0.34);
  background: #FFFFFF;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.quiz-opt input[type="checkbox"] + .quiz-opt__ctrl {
  border-radius: 6px;
}

.quiz-opt:hover {
  border-color: #054A63;
  background: #F4FAFC;
}

.quiz-opt.is-selected {
  border-color: #054A63;
  background: #EDF6F9;
}

.quiz-opt.is-selected .quiz-opt__ctrl {
  border-color: #054A63;
  background: #054A63;
  box-shadow: inset 0 0 0 3.5px #FFFFFF;
}

.quiz-opt.is-correct {
  border-color: #0F8B6D !important;
  background: #EAF8F3 !important;
}

.quiz-opt.is-correct .quiz-opt__ctrl {
  border-color: #0F8B6D;
  background: #0F8B6D;
}

.quiz-opt.is-wrong {
  border-color: #CC470A !important;
  background: #FDF1EC !important;
}

.quiz-opt.is-wrong .quiz-opt__ctrl {
  border-color: #CC470A;
  background: #CC470A;
}

.quiz-opt.is-missed {
  border-color: rgba(15, 139, 109, 0.55) !important;
  border-style: dashed;
  background: #F3FBF8 !important;
}

.quiz-opt__text {
  flex: 1 1 auto;
  min-width: 0;
}

.quiz-opt__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.56rem;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.quiz-opt__tag--ok {
  background: #D6F3EA;
  color: #08634C;
}

.quiz-opt__tag--no {
  background: #FCE3D7;
  color: #9E3405;
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 13px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.58;
}

.quiz-feedback--ok {
  background: #E8F7F2;
  border: 1px solid rgba(15, 139, 109, 0.28);
  color: #0A5240;
}

.quiz-feedback--no {
  background: #FDF2EC;
  border: 1px solid rgba(204, 71, 10, 0.28);
  color: #7D2B05;
}

.quiz-feedback__head {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quiz-feedback__ans,
.quiz-feedback__exp {
  margin: 0.25rem 0 0;
}

.reader-quiz__err {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: #FDF1EC;
  border: 1px solid rgba(204, 71, 10, 0.34);
  color: #9E3405;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.reader-quiz__submit-row {
  display: flex;
  justify-content: flex-end;
}

.quiz-score-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.45rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #04364A 0%, #06526D 100%);
  color: #FFFFFF;
}

.quiz-score-banner__score {
  font-family: var(--font-writing-head);
  font-size: 1.32rem;
  color: #FFFFFF;
}

.quiz-score-banner__msg {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(232, 247, 252, 0.88);
  margin: 0.25rem 0 0;
}

.quiz-score-banner .btn--ocean {
  background: #FFFFFF;
  color: #04364A;
  box-shadow: none;
}

.quiz-score-banner .btn--ocean:hover {
  background: #E8F4F8;
}

/* Dark Mode for Reader Interactive Quiz */
body.reader-theme-dark .reader-quiz__card {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.13);
}

body.reader-theme-dark .reader-quiz__head {
  border-bottom-color: rgba(232, 228, 220, 0.12);
}

body.reader-theme-dark .reader-quiz__kicker {
  color: #FFA06E;
}

body.reader-theme-dark .reader-quiz__pill {
  background: #24323A;
  color: #9EE6F0;
}

body.reader-theme-dark .quiz-q {
  background: #242B30;
  border-color: rgba(232, 228, 220, 0.12);
}

body.reader-theme-dark .quiz-q__num {
  color: #8CE2EC;
}

body.reader-theme-dark .quiz-q__type {
  color: #A8A49B;
}

body.reader-theme-dark .quiz-opt {
  background: #1B2125;
  border-color: rgba(232, 228, 220, 0.15);
  color: #E8E4DC;
}

body.reader-theme-dark .quiz-opt:hover {
  background: #252E34;
  border-color: #8CE2EC;
}

body.reader-theme-dark .quiz-opt.is-selected {
  background: #1F323B;
  border-color: #8CE2EC;
}

body.reader-theme-dark .quiz-opt__ctrl {
  background: #1B2125;
  border-color: rgba(232, 228, 220, 0.36);
}

body.reader-theme-dark .quiz-opt.is-correct {
  background: #193129 !important;
  border-color: #4CD9B0 !important;
}

body.reader-theme-dark .quiz-opt.is-wrong {
  background: #33201A !important;
  border-color: #FF8243 !important;
}

body.reader-theme-dark .quiz-opt.is-missed {
  background: #1B2C27 !important;
  border-color: rgba(76, 217, 176, 0.55) !important;
}

body.reader-theme-dark .quiz-feedback--ok {
  background: #193129;
  border-color: rgba(76, 217, 176, 0.30);
  color: #B4F4DF;
}

body.reader-theme-dark .quiz-feedback--no {
  background: #33201A;
  border-color: rgba(255, 130, 67, 0.34);
  color: #FFD0B8;
}
/* ==========================================================================
   v51 — STUDIO FILM ILLUSTRATION FRAME (USES PREVIOUS VIDEO PLAY COVER)
   ========================================================================== */
a.film-frame--illus {
  position: relative;
  padding: 0;
  justify-content: flex-end;
  align-items: stretch;
  overflow: hidden;
  background: #02202E;
}

.film-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.65s var(--ease-wave);
}

a.film-frame--illus:hover .film-frame__img {
  transform: scale(1.04);
}

.film-frame__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 20, 30, 0.88) 0%,
    rgba(2, 22, 34, 0.36) 36%,
    rgba(2, 22, 34, 0.04) 70%,
    rgba(2, 22, 34, 0.0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.film-frame__caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem 1.2rem;
  text-align: center;
}

/* ==========================================================================
   v54 — REFINED PROGRESSIVE-BLUR WRITING PREVIEW CARD & CLEAN ECOSYSTEM TABS
   - Calibrated cover height so the full illustration (books, pen, inkwell)
     remains framed without ugly zoom-cropping on mobile or desktop
   - True multi-layer seamless progressive blur (zero hard line/break):
     whisper-light haze across the full image -> gradual soft blur -> velvety
     deeper blur behind the title, with artwork still clearly visible beneath
   - Clean, airy editorial typography for homepage 3-pillar tabs
   ========================================================================== */

/* 1. WRITING PREVIEW CARD — SEAMLESS PROGRESSIVE BLUR & BALANCED FRAMING */
.writing-card--editorial {
  background: var(--paper-surface);
  border: 1px solid rgba(5, 74, 99, 0.13);
  border-radius: 30px;
  padding: 13px;
  gap: 0;
  box-shadow:
    0 4px 14px rgba(3, 38, 54, 0.08),
    0 18px 42px -12px rgba(3, 38, 54, 0.19),
    0 32px 68px -26px rgba(3, 38, 54, 0.14);
  transition: transform 0.42s var(--ease-wave), border-color 0.28s, box-shadow 0.42s var(--ease-wave);
}

.writing-card--editorial:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 74, 99, 0.24);
  box-shadow:
    0 8px 22px rgba(3, 38, 54, 0.11),
    0 26px 56px -14px rgba(3, 38, 54, 0.24),
    0 40px 80px -28px rgba(3, 38, 54, 0.18);
}

@media (min-width: 640px) {
  .writing-card--editorial {
    border-radius: 32px;
    padding: 15px;
  }
}

/* Balanced cover height (~50% taller than 16:9 without slicing off the books!) */
.writing-card--editorial .wc-hero {
  position: relative;
  width: 100%;
  min-height: clamp(265px, 70vw, 298px);
  border-radius: 22px;
  overflow: hidden;
  background: #02202E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  isolation: isolate;
}

@media (min-width: 640px) {
  .writing-card--editorial .wc-hero {
    min-height: 315px;
    border-radius: 23px;
  }
}

.writing-card--editorial .wc-hero__img-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.writing-card--editorial .wc-hero__img-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transition: transform 0.75s var(--ease-wave);
}

.writing-card--editorial:hover .wc-hero__img-link img {
  transform: scale(1.035);
}

/* SMOOTH DARK GRADIENT OVERLAY (ZERO BLUR — CRISP IMAGE, RICH DARK FADE BEHIND TEXT)
   - Above text: sharp, clear cover view with a subtle dark tint
   - Behind text: smoothly deepens into rich dark ocean for crisp white title contrast */
.writing-card--editorial .wc-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(1, 13, 20, 0.26) 0%,
    rgba(1, 13, 20, 0.05) 26%,
    rgba(1, 13, 20, 0.14) 38%,
    rgba(1, 12, 19, 0.62) 50%,
    rgba(1, 11, 17, 0.88) 64%,
    rgba(1, 10, 15, 0.96) 78%,
    rgba(1, 8, 13, 0.99) 100%
  );
}

/* Top Floating Row: Category + Series Pill (Left) | EN·বাংলা + Edit (Right) */
.writing-card--editorial .wc-hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 14px 14px 0;
}

.writing-card--editorial .wc-hero__top-left,
.writing-card--editorial .wc-hero__top-right {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.writing-card--editorial .wc-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.82rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 26, 38, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(191, 232, 240, 0.24);
  color: #EAF8FC;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}

/* Calm Frosted Ocean Series Pill on Cover (ZERO Peach/Orange!) */
.writing-card--editorial .writing-series-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.35rem 0.82rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(191, 232, 240, 0.36);
  background: rgba(236, 247, 251, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #032B3A;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.22s, transform 0.22s;
}

.writing-card--editorial .writing-series-chip:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.writing-card--editorial .writing-series-chip__name {
  color: #365665;
  font-weight: 500;
}

.writing-card--editorial .writing-series-chip__part {
  padding-left: 0;
  border-left: 0;
  color: #043B50;
  font-weight: 700;
}

.writing-card--editorial .writing-series-chip__name + .writing-series-chip__part {
  padding-left: 0.48rem;
  border-left: 1px solid rgba(5, 74, 99, 0.22);
}

.writing-card--editorial .wc-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 26, 38, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(191, 232, 240, 0.24);
  color: #F2FAFD;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.writing-card--editorial .wc-glass-pill--edit {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.82);
  color: #042E3F;
}

.writing-card--editorial .wc-glass-pill--edit:hover {
  background: #FFFFFF;
  color: #021C27;
}

/* Pure Floating Title Over Seamless Progressive Blur (Zero Box Edge / Zero Seam!) */
.writing-card--editorial .wc-hero__title-wrap {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: auto;
  padding: 2.5rem 1.25rem 1.25rem;
  background: transparent;
  border: 0;
  text-decoration: none;
}

@media (min-width: 640px) {
  .writing-card--editorial .wc-hero__title-wrap {
    padding: 2.85rem 1.45rem 1.45rem;
  }
}

.writing-card--editorial .writing-card__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.5rem, 2.22vw, 1.95rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.016em;
  color: #FFFFFF;
  margin: 0;
  text-wrap: balance;
  text-shadow:
    0 2px 18px rgba(0, 8, 14, 0.85),
    0 1px 3px rgba(0, 8, 14, 0.75);
}

.writing-card--editorial .writing-card__bn {
  font-family: var(--font-bn);
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.52;
  color: #F4FBFE;
  margin: 0.5rem 0 0;
  text-shadow:
    0 2px 14px rgba(0, 8, 14, 0.82),
    0 1px 2px rgba(0, 8, 14, 0.70);
}

/* Airy, Uncramped Lower Card Content */
.writing-card--editorial .wc-content {
  padding: 1.55rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .writing-card--editorial .wc-content {
    padding: 1.75rem 1.05rem 0.7rem;
  }
}

.writing-card--editorial .writing-card__desc {
  font-family: var(--font-writing-body);
  font-size: clamp(1.03125rem, 1rem + 0.14vw, 1.09375rem);
  line-height: 1.75;
  color: #364C58;
  max-width: none;
  margin: 0 0 1.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spacious Author & Date/Read-Time Block */
.writing-card--editorial .wc-meta-block {
  margin-top: auto;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  margin-bottom: 1.6rem;
}

.writing-card--editorial .writing-card__author {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #556D79;
}

.writing-card--editorial .wc-author-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.7rem;
  min-width: 0;
}

.writing-card--editorial .wc-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #EAF3F7;
  color: #04364A;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.writing-card--editorial .wc-author-avatar--logo {
  background: linear-gradient(145deg, #07536E 0%, #02202E 100%);
}

.writing-card--editorial .wc-author-avatar--logo svg {
  width: 22px;
  height: 22px;
}

.writing-card--editorial .writing-card__author-by {
  line-height: 1.35;
}

.writing-card--editorial .writing-card__author-by strong {
  color: #061D28;
  font-weight: 600;
}

.writing-card--editorial .wc-details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: #58707D;
}

.writing-card--editorial .wc-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  line-height: 1.35;
  white-space: nowrap;
}

.writing-card--editorial .wc-detail-item svg {
  width: 17px;
  height: 17px;
  color: #77909D;
  flex-shrink: 0;
}

.writing-card--editorial .writing-card__resume-bar {
  height: 4px;
  background: rgba(5, 74, 99, 0.09);
  margin-bottom: 1.25rem;
}

/* Signature Bottom Action Row: Wide Read More Pill + Single Favorite Heart Circle */
.writing-card--editorial .writing-card__footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
}

.writing-card--editorial .wc-cta-btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 1.45rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.writing-card--editorial .wc-fav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(5, 74, 99, 0.14);
  background: #FFFFFF;
  color: #46606D;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(3, 38, 54, 0.10);
  transition: transform 0.28s var(--ease-wave), border-color 0.22s, background-color 0.22s, color 0.22s, box-shadow 0.25s;
}

.writing-card--editorial .wc-fav-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.28s var(--ease-wave), fill 0.22s;
}

.writing-card--editorial .wc-fav-btn:hover {
  border-color: rgba(212, 75, 13, 0.42);
  color: #D44B0D;
  background: #FFF7F3;
  transform: translateY(-1px);
}

.writing-card--editorial .wc-fav-btn.is-favorited {
  border-color: rgba(212, 75, 13, 0.40);
  background: #FFF1EA;
  color: #D44B0D;
}

.writing-card--editorial .wc-fav-btn.is-favorited svg {
  fill: #D44B0D;
  transform: scale(1.06);
}

@media (max-width: 365px) {
  .writing-card--editorial {
    padding: 11px;
    border-radius: 26px;
  }
  .writing-card--editorial .wc-hero {
    min-height: 248px;
    border-radius: 19px;
  }
  .writing-card--editorial .wc-content {
    padding: 1.35rem 0.55rem 0.45rem;
  }
  .writing-card--editorial .wc-cta-btn {
    height: 48px;
    font-size: 0.95rem;
  }
  .writing-card--editorial .wc-fav-btn {
    width: 48px;
    height: 48px;
  }
}

/* 3-Column Desktop Featured Writings Harmony */
@media (min-width: 1100px) {
  .home-featured-grid--3 .writing-card--editorial {
    padding: 13px;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-hero {
    min-height: 295px;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-content {
    padding: 1.5rem 0.72rem 0.55rem;
  }
  .home-featured-grid--3 .writing-card--editorial .writing-card__title {
    font-size: clamp(1.36rem, 1.52vw, 1.62rem);
  }
  .home-featured-grid--3 .writing-card--editorial .wc-cta-btn {
    height: 48px;
    font-size: 0.95rem;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-fav-btn {
    width: 48px;
    height: 48px;
  }
}

/* Dark Mode Reader Support for "More from Duburi Writings" Cards on writing.html */
body.reader-theme-dark .writing-card--editorial {
  background: #1E2428;
  border-color: rgba(232, 228, 220, 0.12);
  box-shadow: 0 24px 56px -20px rgba(0, 0, 0, 0.55);
}

body.reader-theme-dark .writing-card--editorial .writing-card__desc {
  color: #CCC8BF;
}

body.reader-theme-dark .writing-card--editorial .writing-card__author-by strong {
  color: #F2EFE9;
}

body.reader-theme-dark .writing-card--editorial .writing-card__author,
body.reader-theme-dark .writing-card--editorial .wc-details-row {
  color: #ACA89F;
}

body.reader-theme-dark .writing-card--editorial .wc-meta-block {
  border-top-color: rgba(232, 228, 220, 0.11);
}

body.reader-theme-dark .writing-card--editorial .wc-author-avatar {
  background: #273239;
  color: #E8E4DC;
}

body.reader-theme-dark .writing-card--editorial .wc-fav-btn {
  background: #252D33;
  border-color: rgba(232, 228, 220, 0.18);
  color: #D8D4CC;
}

body.reader-theme-dark .writing-card--editorial .wc-fav-btn:hover,
body.reader-theme-dark .writing-card--editorial .wc-fav-btn.is-favorited {
  background: rgba(224, 92, 30, 0.22);
  border-color: rgba(255, 130, 67, 0.46);
  color: #FF8E53;
}

body.reader-theme-dark .writing-card--editorial .wc-fav-btn.is-favorited svg {
  fill: #FF8E53;
}

/* 2. HOMEPAGE #how-duburi-works CLEAN HEADER & SPACIOUS 3-TAB EDITORIAL PANEL */
.ecosystem-intro-grid--clean {
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 3.75rem);
}

.ecosystem-intro-grid--clean .h2 {
  margin-bottom: 0;
  max-width: 14ch;
}

.eco-kicker--calm {
  color: #06526D;
  letter-spacing: 0.10em;
  margin-bottom: 1.15rem;
}

.eco-stage__main--editorial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2.1rem, 3.6vw, 3rem);
  padding: clamp(2rem, 4.2vw, 3.75rem) clamp(1.65rem, 3.8vw, 3.5rem);
}

.eco-editorial-top {
  display: flex;
  flex-direction: column;
}

.eco-stage__main--editorial .eco-title {
  margin-bottom: 1.35rem;
}

.eco-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48ch;
}

.eco-copy p {
  font-size: clamp(1.03125rem, 1rem + 0.16vw, 1.125rem);
  line-height: 1.8;
  color: #3E5966;
  margin: 0;
}

.eco-copy strong {
  color: #041D29;
  font-weight: 600;
}

.eco-stage__main--editorial .eco-stage__actions {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(5, 74, 99, 0.09);
  gap: 1rem 1.5rem;
}
/* ==========================================================================
   v56 — DUAL DESKTOP & MOBILE FEATURED WRITINGS CONTROLS IN ADMIN STUDIO
   ========================================================================== */
.studio-featured-bar__ctrls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
}

@media (max-width: 560px) {
  .studio-featured-bar__ctrls {
    width: 100%;
    justify-content: space-between;
  }
  .studio-featured-bar__ctrls .studio-featured-bar__ctrl {
    flex: 1 1 auto;
    justify-content: space-between;
  }
}
/* ==========================================================================
   v59 — 3RD PURE BRIGHT WHITE THEME (#FFFFFF) & THEME SWATCH INDICATOR
   ========================================================================== */
.rf-theme-swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(5, 74, 99, 0.34);
}

.rf-theme-swatch--offwhite {
  background: linear-gradient(135deg, #F9F8F5 0%, #EAE8E1 100%);
  border-color: #B6B3AA;
}

.rf-theme-swatch--paper {
  background: linear-gradient(135deg, #F5EFE1 0%, #E3D6BC 100%);
  border-color: #B9A27E;
}

.rf-theme-swatch--white {
  background: #FFFFFF;
  border-color: #1A1A1A;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.rf-theme-swatch--dark {
  background: linear-gradient(135deg, #252C33 0%, #0E1317 100%);
  border-color: #9EE6F0;
}

/* Pure Bright White Mode on Article Reader (writing.html) */
body.page-writing-reader.reader-theme-white {
  --paper-bg: #FFFFFF;
  --paper-surface: #FFFFFF;
  --paper-ink: #111111;
  --paper-muted: #525252;
  --paper-line: rgba(17, 17, 17, 0.10);
  background-color: #FFFFFF;
  color: #111111;
}

body.page-writing-reader.reader-theme-white .reader-paper-section {
  background-color: #FFFFFF;
}

body.page-writing-reader.reader-theme-white .site-header {
  background-color: #FFFFFF;
  border-bottom-color: rgba(17, 17, 17, 0.09);
}

body.page-writing-reader.reader-theme-white .reader-quote,
body.page-writing-reader.reader-theme-white .reader-author-byline,
body.page-writing-reader.reader-theme-white .takeaway-card,
body.page-writing-reader.reader-theme-white .quiz-q {
  background-color: #FAFAFA;
  border-color: rgba(17, 17, 17, 0.10);
  color: #111111;
}

body.page-writing-reader.reader-theme-white .reader-float-bar {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 17, 17, 0.14);
}
/* ==========================================================================
   v63 — CLEAR BADGE DELETE BUTTON + OPEN-ENDED QUIZ & ADMIN SUBMISSIONS UI
   ========================================================================== */
.badge-catalog-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(5, 74, 99, 0.08);
}

.badge-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.34rem 0.78rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(204, 71, 10, 0.28);
  background: #FFF5F0;
  color: #B43905;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.badge-del-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.badge-del-btn:hover {
  background: #CC470A;
  border-color: #CC470A;
  color: #FFFFFF;
}

/* Open-Ended Quiz Reader Textarea & Guest Name Field */
.quiz-open-textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  border-radius: 13px;
  border: 1.5px solid rgba(5, 74, 99, 0.18);
  background: #FFFFFF;
  color: var(--paper-ink);
  font-family: var(--font-sans);
  font-size: 0.96875rem;
  line-height: 1.65;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quiz-open-textarea:focus {
  outline: none;
  border-color: #054A63;
  box-shadow: 0 0 0 4px rgba(13, 128, 163, 0.12);
}

.quiz-guest-name {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quiz-guest-name label {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--paper-muted);
}

.quiz-guest-name input {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(5, 74, 99, 0.18);
  background: #FFFFFF;
  color: var(--paper-ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.quiz-feedback--open {
  background: #EFF7FA;
  border: 1px solid rgba(5, 74, 99, 0.22);
  color: #053244;
}

body.reader-theme-dark .quiz-open-textarea,
body.reader-theme-dark .quiz-guest-name input {
  background: #1B2125;
  border-color: rgba(232, 228, 220, 0.18);
  color: #E8E4DC;
}

body.reader-theme-dark .quiz-feedback--open {
  background: #1D2D35;
  border-color: rgba(140, 226, 236, 0.26);
  color: #D2EEF4;
}

/* Admin Quiz Submissions Filter Select & Answer Cards */
.quiz-subs-filter-select {
  height: 54px;
  padding: 0 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(5, 74, 99, 0.14);
  background: #FFFFFF;
  color: #06212E;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 240px;
}

.qsub-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qsub-question {
  font-family: var(--font-writing-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: #042230;
  line-height: 1.42;
}

.qsub-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.16rem 0.52rem;
  border-radius: 6px;
  background: #E8F3F7;
  color: #054A63;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.qsub-answer {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #F6F9FB;
  border: 1px solid rgba(5, 74, 99, 0.10);
  font-size: 0.96875rem;
  line-height: 1.72;
  color: #243C48;
  word-break: break-word;
}
/* ==========================================================================
   v64 — WRITINGS OCEAN-DROP DIGITAL ILLUSTRATION HERO + MULTI-COLOR EDITOR
   ========================================================================== */

/* 1. WRITINGS HERO BACKGROUND: AESTHETIC OCEAN LANDSCAPE + POPPING DROP
      (Water ripple canvas sits at z-index:1 right over the artwork so touch
       ripples & all animations work identically over the ocean illustration!) */
/* Clean Original Ocean Gradient + Side-by-Side Circular Ocean-Drop Medallion (Matches illus-about-depth.svg!) */
.writings-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

@media (min-width: 900px) {
  .writings-hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 340px);
  }
}

.writings-hero-medallion {
  margin: 0 auto;
  width: min(280px, 74vw);
  max-width: 340px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 24px 44px rgba(1, 16, 26, 0.34));
}

@media (min-width: 900px) {
  .writings-hero-medallion {
    width: 100%;
    margin: 0 0 0 auto;
  }
}

.writings-hero-medallion img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fix Upload Label Button Contrast Inside .field (White Text on Dark Teal Primary Pill!) */
.field label.studio-btn--primary,
label.studio-btn.studio-btn--primary {
  color: #FFFFFF !important;
}

/* Keep Text Color Popover Safely Inside Mobile Viewports */
@media (max-width: 640px) {
  .editor-color-popover {
    left: auto;
    right: -12px;
    max-width: calc(100vw - 44px);
  }
}

.writings-cover .h1 {
  max-width: 17.5ch;
  text-shadow: 0 4px 26px rgba(1, 16, 24, 0.48);
}

.writings-cover .lead {
  color: rgba(244, 251, 253, 0.92);
  text-shadow: 0 2px 14px rgba(1, 16, 24, 0.42);
}

/* 2. EDITOR TOOLBAR MULTI-COLOR TEXT PICKER */
.editor-color-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.editor-fmt-btn--color {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  --active-col: #C2410C;
}

.editor-color-a {
  font-weight: 700;
  line-height: 1.05;
  border-bottom: 2.5px solid var(--active-col);
  padding-inline: 1px;
}

.editor-color-caret {
  font-size: 0.7rem;
  opacity: 0.72;
}

.editor-color-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 228px;
  padding: 0.78rem;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.16);
  box-shadow: 0 18px 42px -10px rgba(3, 38, 54, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.editor-color-popover__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5C7684;
}

.editor-color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.editor-swatch {
  width: 100%;
  height: 30px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--sw);
  box-shadow: 0 0 0 1px rgba(5, 74, 99, 0.18);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.editor-swatch:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px #04364A;
}

.editor-color-custom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(5, 74, 99, 0.10);
}

.editor-color-native {
  width: 34px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 1px solid rgba(5, 74, 99, 0.22) !important;
  border-radius: 7px !important;
  background: transparent !important;
  cursor: pointer;
  flex-shrink: 0;
}

.editor-color-apply,
.editor-color-clear {
  height: 30px;
  padding: 0 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.editor-color-apply {
  background: #04364A;
  color: #FFFFFF;
  flex: 1 1 auto;
}

.editor-color-apply:hover {
  background: #022433;
}

.editor-color-clear {
  background: #F4F7F9;
  border-color: rgba(5, 74, 99, 0.16);
  color: #46606D;
}

.editor-color-clear:hover {
  background: #FCECE4;
  color: #9E3405;
}

/* 3. ADAPTIVE EDITORIAL TEXT COLORS (LIGHT, PURE WHITE & DARK READER MODES) */
.rt-color--coral   { color: #C2410C; }
.rt-color--ocean   { color: #054A63; }
.rt-color--emerald { color: #0F766E; }
.rt-color--gold    { color: #B45309; }
.rt-color--indigo  { color: #3730A3; }
.rt-color--crimson { color: #BE123C; }
.rt-color--plum    { color: #7E22CE; }
.rt-color--slate   { color: #475569; }

body.reader-theme-dark .rt-color--coral   { color: #FF945E; }
body.reader-theme-dark .rt-color--ocean   { color: #7AD4E3; }
body.reader-theme-dark .rt-color--emerald { color: #5EEAD4; }
body.reader-theme-dark .rt-color--gold    { color: #FCD34D; }
body.reader-theme-dark .rt-color--indigo  { color: #A5B4FC; }
body.reader-theme-dark .rt-color--crimson { color: #FDA4AF; }
body.reader-theme-dark .rt-color--plum    { color: #D8B4FE; }
body.reader-theme-dark .rt-color--slate   { color: #94A3B8; }
body.page-writing-reader.reader-theme-offwhite {
  --paper-bg: #F6F5F1;
  --paper-surface: #FAF9F6;
  --paper-ink: #1C1B19;
  --paper-muted: #605D56;
  --paper-line: rgba(28, 27, 25, 0.10);
  background-color: #F6F5F1;
  color: #1C1B19;
}

body.page-writing-reader.reader-theme-offwhite .reader-paper-section {
  background-color: #F6F5F1;
}
/* ==========================================================================
   v68 — BOOKS LIBRARY CALLIGRAPHY HERO, WRITINGS PURE-OCEAN STACK &
         HOMEPAGE FEATURED WRITINGS / BOOKS TABS
   ========================================================================== */
.books-hero-cover {
  background-color: #02202E;
  background-image: url('../img/illus-books-library-cover.svg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #FFFFFF;
}

.books-hero-cover .water-wave-canvas {
  z-index: 1;
}

.books-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(1.2rem, 2.5vw, 2rem);
}

.books-hero-arabic {
  font-family: 'Amiri Quran', 'Amiri', Georgia, serif;
  font-size: clamp(1.95rem, 4.2vw, 3.35rem);
  font-weight: 400;
  line-height: 2.05;
  color: #FAF6EE;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
  text-shadow: 0 4px 24px rgba(1, 14, 22, 0.52);
}

.books-hero-divider {
  display: block;
  width: 68px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(240, 106, 40, 0) 0%, #F06A28 50%, rgba(240, 106, 40, 0) 100%);
  margin-bottom: clamp(1.35rem, 2.8vw, 1.95rem);
}

.books-hero-quote {
  max-width: 20ch;
  margin: 0 auto 1.1rem;
  font-size: clamp(2.1rem, 4.1vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-shadow: 0 4px 26px rgba(1, 14, 22, 0.55);
}

.books-hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 1.1vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 238, 246, 0.86);
  margin: 0;
}

/* WRITINGS HERO: HEADLINE -> DEEP OCEAN DROP MEDALLION -> SUB-HEADLINE */
.writings-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.writings-hero-stack .motto-line {
  justify-content: center;
}

.writings-hero-quote {
  max-width: 19ch;
  margin: 0 auto;
  text-wrap: balance;
}

.writings-hero-stack .writings-hero-medallion {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) auto;
  width: min(270px, 68vw);
  max-width: 310px;
}

.writings-hero-lead {
  max-width: 44ch;
  margin: 0 auto;
  color: rgba(235, 247, 251, 0.88);
}

/* HOMEPAGE FEATURED TABS (WRITINGS | BOOKS) */
.home-feat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: #EDF4F7;
  border: 1px solid rgba(5, 74, 99, 0.10);
  margin-top: clamp(1.75rem, 3vw, 2.35rem);
}

.home-feat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: transparent;
  color: #365260;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.home-feat-tab svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.home-feat-tab:hover {
  color: #04364A;
}

.home-feat-tab.is-active {
  background: #04364A;
  color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(3, 40, 56, 0.42);
}

.home-feat-panel {
  margin-top: clamp(2rem, 3.8vw, 3rem);
}

.home-feat-panel .home-featured-grid {
  margin-top: 0;
}

.home-featured-books-grid {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
  border-radius: 28px;
  background: linear-gradient(180deg, #F3F6F8 0%, #EEF3F6 100%);
  border: 1px solid rgba(5, 74, 99, 0.08);
}

.studio-wcard__feat-btn--sm {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
/* ==========================================================================
   v69 — COMPACT HALF-HEIGHT COVER BANNERS FOR WRITINGS & BOOKS PAGES
         (Reveals Books & Writings Immediately Below Above-the-Fold!)
   ========================================================================== */

/* Shared Compact Wave Separator inside Half-Height Cover Banners */
.writings-cover--compact .wave-separator,
.books-hero-cover--compact .wave-separator {
  height: clamp(26px, 3.2vw, 42px);
}

/* Tighten top padding of content section directly following compact banners */
.writings-cover--compact + .section,
.books-hero-cover--compact + .section {
  padding-top: clamp(2.1rem, 3.6vw, 3.25rem);
}

/* 1. WRITINGS PAGE: HALF-HEIGHT FULL-BLEED OCEAN-DROP COVER BANNER */
.page-hero.writings-cover--compact {
  padding-top: clamp(1.85rem, 3.2vw, 2.85rem);
  padding-bottom: 0;
  background-color: #02202E;
  background-image: url('../img/illus-writings-ocean-drop.svg?v=69');
  background-size: cover;
  background-position: 76% 52%;
  background-repeat: no-repeat;
  color: #FFFFFF;
}

.writings-cover--compact .water-wave-canvas {
  z-index: 1;
}

.writings-cover__inner {
  padding-bottom: clamp(2rem, 3.6vw, 3.1rem);
}

.writings-cover__copy {
  max-width: min(56%, 36rem);
  text-align: left;
}

.writings-cover__copy .motto-line {
  margin-bottom: 0.75rem;
}

.writings-cover__quote {
  font-size: clamp(1.75rem, 3.05vw, 2.7rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.022em;
  max-width: 19ch !important;
  margin-bottom: 0.78rem !important;
  color: #FFFFFF;
  text-shadow: 0 3px 20px rgba(1, 16, 24, 0.45);
}

.writings-cover__lead {
  font-size: clamp(0.92rem, 0.9rem + 0.16vw, 1.03125rem) !important;
  line-height: 1.56 !important;
  max-width: 40ch !important;
  color: rgba(235, 247, 251, 0.90) !important;
  margin: 0;
  text-shadow: 0 2px 12px rgba(1, 16, 24, 0.40);
}

@media (max-width: 767px) {
  .page-hero.writings-cover--compact {
    padding-top: 1.5rem;
    background-position: 78% 55%;
  }
  .writings-cover__inner {
    padding-bottom: 1.65rem;
  }
  .writings-cover__copy {
    max-width: 68%;
  }
  .writings-cover__quote {
    font-size: clamp(1.42rem, 5.4vw, 1.85rem) !important;
    line-height: 1.15 !important;
  }
  .writings-cover__lead {
    font-size: 0.88rem !important;
  }
}

/* 2. BOOKS PAGE: COMPACT HALF-HEIGHT LOWER-SHELF COVER BANNER
      (Arabic Calligraphy + Short Quote Positioned Cleanly ABOVE the Open Book!) */
.page-hero.books-hero-cover--compact {
  padding-top: clamp(1.35rem, 2.3vw, 2.05rem);
  padding-bottom: 0;
  background-color: #02202E;
  background-image: url('../img/illus-books-library-cover.svg?v=69');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.books-hero-cover--compact .books-hero-inner {
  padding-top: 0;
  /* Leaves clean open-book showcase zone directly below the text with zero overlap! */
  padding-bottom: clamp(5.8rem, 10vw, 8.2rem);
}

.books-hero-cover--compact .books-hero-arabic {
  font-size: clamp(1.5rem, 2.75vw, 2.25rem);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.books-hero-cover--compact .books-hero-divider {
  width: 52px;
  margin-bottom: clamp(0.65rem, 1.3vw, 1rem);
}

.books-hero-cover--compact .books-hero-quote {
  font-size: clamp(1.65rem, 3.05vw, 2.65rem) !important;
  line-height: 1.12 !important;
  max-width: 24ch !important;
  margin: 0 auto 0.55rem !important;
}

.books-hero-cover--compact .books-hero-sub {
  font-size: clamp(0.75rem, 0.95vw, 0.86rem);
  letter-spacing: 0.11em;
}

@media (max-width: 640px) {
  .page-hero.books-hero-cover--compact {
    padding-top: 1.25rem;
    background-size: auto 100%;
    background-position: center bottom;
  }
  .books-hero-cover--compact .books-hero-inner {
    padding-bottom: 5.4rem;
  }
  .books-hero-cover--compact .books-hero-arabic {
    font-size: clamp(1.42rem, 6.2vw, 1.8rem);
    line-height: 1.55;
  }
  .books-hero-cover--compact .books-hero-quote {
    font-size: clamp(1.42rem, 5.6vw, 1.85rem) !important;
    max-width: 18ch !important;
  }
}
/* ==========================================================================
   v70 — DESKTOP-ONLY PROPORTION REFINEMENTS (ZERO MOBILE CHANGES!)
   1. Books Cover (min-width: 768px): Slight height increase so subtitle sits
      cleanly above the open book with zero overlap across all desktop widths.
   2. Writings Cover (min-width: 768px): Water drop shifted cleanly below the
      navbar (posY: 18%) & quote widened to 2 crisp lines reaching mid-screen.
   3. Admin Studio (min-width: 1024px): Wider sidebar + higher lower white
      dashboard panel shrinking the cover proportionally (preserving exact
      uncropped aspect framing while revealing Editorial Dashboard & Total
      Writings stats above the fold!).
   ========================================================================== */

@media (min-width: 768px) {
  /* 1. BOOKS PAGE DESKTOP COVER: CLEAR SUBTITLE ABOVE OPEN BOOK */
  .page-hero.books-hero-cover--compact {
    padding-top: clamp(1.5rem, 2.35vw, 2.2rem);
  }

  .books-hero-cover--compact .books-hero-inner {
    padding-bottom: clamp(7.6rem, 10.8vw, 13.5rem);
  }

  /* 2. WRITINGS PAGE DESKTOP COVER: DROP BELOW HEADER + 2-LINE WIDE QUOTE */
  .page-hero.writings-cover--compact {
    padding-top: clamp(2.15rem, 3.2vw, 3.1rem);
    background-position: 76% 18%;
  }

  .writings-cover--compact .writings-cover__inner {
    padding-bottom: clamp(2.45rem, 3.8vw, 3.55rem);
  }

  .writings-cover--compact .writings-cover__copy {
    max-width: min(62%, 44rem);
  }

  .writings-cover--compact .writings-cover__quote {
    font-size: clamp(1.9rem, 2.75vw, 2.75rem) !important;
    line-height: 1.13 !important;
    max-width: 31ch !important;
  }

  .writings-cover--compact .writings-cover__lead {
    max-width: 52ch !important;
  }
}

@media (min-width: 1024px) {
  /* 3. ADMIN STUDIO DESKTOP: WIDER SIDEBAR + PROPORTIONALLY SHRUNK COVER
        SO TOTAL WRITINGS METRICS ARE VISIBLE ABOVE THE FOLD WITH ZERO CROP! */
  .studio-workbench {
    grid-template-columns: clamp(330px, 31vw, 600px) minmax(0, 1fr);
  }

  .studio-sidebar {
    padding: 2.15rem clamp(1.65rem, 2.8vw, 2.85rem) 2rem;
  }

  /* Preserves the exact uncropped framing of the pomegranate & crown cover
     while scaling cleanly down as the sidebar widens from the left */
  .admin-hero-cover {
    aspect-ratio: 2.385 / 1;
    min-height: 0;
    max-height: 555px;
    background-size: cover;
    background-position: center 46%;
  }

  /* Pull lower white dashboard panel higher up so Total Writings is clearly visible */
  .studio-canvas {
    padding-top: clamp(1.45rem, 2.2vw, 2rem);
  }

  .studio-page-head {
    margin-bottom: clamp(1.15rem, 1.8vw, 1.65rem);
  }
}
/* ==========================================================================
   v71 — WRITING PREVIEW 2-LINE EXCERPT & LARGER LOWER ICONS,
         ADMIN 3-BOX SIDEBAR GRID, BIGGER STUDIO BRAND & COVER IDENTITY,
         AND STRONGER ICONIC MOBILE ADMIN BAR
   ========================================================================== */

/* 1. WRITING PREVIEW CARD: STRICT 2-LINE EXCERPT + LARGER, CRISP LOWER META */
.writing-card--editorial .writing-card__desc {
  -webkit-line-clamp: 2;
  line-height: 1.72;
  margin-bottom: 1.35rem;
}

.writing-card--editorial .wc-meta-block {
  padding-top: 1.25rem;
  gap: 0.95rem;
  margin-bottom: 1.45rem;
}

.writing-card--editorial .writing-card__author {
  gap: 0.88rem;
  font-size: 1.02rem;
  color: #4A6370;
}

.writing-card--editorial .wc-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 1.12rem;
}

.writing-card--editorial .wc-author-avatar--logo svg {
  width: 25px;
  height: 25px;
}

.writing-card--editorial .writing-card__author .duburi-badge--sm {
  font-size: 0.8rem;
  padding: 0.24rem 0.68rem;
  gap: 0.34rem;
}

.writing-card--editorial .writing-card__author .duburi-badge--sm svg {
  width: 14px;
  height: 14px;
}

.writing-card--editorial .wc-details-row {
  gap: 0.65rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: #4A6370;
}

.writing-card--editorial .wc-detail-item {
  gap: 0.56rem;
}

.writing-card--editorial .wc-detail-item svg {
  width: 20px;
  height: 20px;
  color: #5C7785;
}

.writing-card--editorial .wc-fav-btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1100px) {
  .home-featured-grid--3 .writing-card--editorial .writing-card__author {
    font-size: 0.98rem;
    gap: 0.8rem;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-author-avatar {
    width: 42px;
    height: 42px;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-author-avatar--logo svg {
    width: 24px;
    height: 24px;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-details-row {
    font-size: 0.95rem;
    gap: 0.55rem 1.4rem;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-detail-item svg {
    width: 19px;
    height: 19px;
  }
  .home-featured-grid--3 .writing-card--editorial .wc-fav-btn svg {
    width: 23px;
    height: 23px;
  }
}

/* 2. ADMIN PANEL COVER IDENTITY: BIGGER LOGO, NAME, BADGE, EMAIL & EDIT BUTTON */
.admin-hero-cover__inner {
  padding: clamp(1.6rem, 3.2vw, 2.75rem) clamp(1.35rem, 4vw, 3.5rem);
}

.admin-hero-identity {
  gap: clamp(1.05rem, 1.8vw, 1.55rem);
  align-items: center;
}

.admin-logo-avatar {
  width: clamp(60px, 5.4vw, 84px);
  height: clamp(60px, 5.4vw, 84px);
  border-radius: clamp(18px, 1.7vw, 24px);
  border-width: 2px;
}

.admin-logo-avatar svg {
  width: clamp(34px, 3.2vw, 48px);
  height: clamp(34px, 3.2vw, 48px);
}

.identity-name-badges-row {
  gap: 0.6rem 0.9rem;
}

.admin-hero-identity__name {
  font-size: clamp(1.75rem, 2.9vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.admin-hero-cover .duburi-badge-list--on-dark .duburi-badge {
  font-size: clamp(0.84rem, 0.98vw, 0.96rem);
  padding: 0.34rem 0.88rem;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.admin-hero-cover .duburi-badge-list--on-dark .duburi-badge svg {
  width: 15px;
  height: 15px;
}

.admin-hero-subrow {
  gap: 0.65rem 1.05rem;
  margin-top: 0.45rem;
}

.admin-hero-identity__email {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 500;
  margin-top: 0;
}

.admin-hero-edit-name {
  font-size: clamp(0.84rem, 0.96vw, 0.94rem);
  padding: 0.36rem 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 3. ADMIN DESKTOP SIDEBAR: BIGGER DUBURI STUDIO BRAND + 3-BOX GRID MENU */
@media (min-width: 1024px) {
  .studio-sidebar {
    gap: 1.85rem;
    padding: 2rem clamp(1.35rem, 2.2vw, 2.25rem) 2rem;
  }

  .studio-sidebar__top {
    gap: 1.45rem;
    padding-bottom: 1.65rem;
  }

  .studio-sidebar__brand {
    gap: 1.05rem;
    padding-inline: 0.15rem;
  }

  .studio-sidebar__logo {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    box-shadow: 0 12px 26px -10px rgba(2, 36, 51, 0.55);
  }

  .studio-sidebar__logo svg {
    width: 34px;
    height: 34px;
  }

  .studio-sidebar__brand-name {
    font-size: clamp(1.38rem, 1.55vw, 1.68rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  .studio-sidebar__brand-sub {
    font-size: 0.92rem;
    font-weight: 600;
    color: #4D6A78;
    margin-top: 0.18rem;
  }

  .studio-compose-cta {
    height: 54px;
    font-size: 1.02rem;
    font-weight: 600;
  }

  .studio-nav-group {
    gap: 0.65rem;
  }

  .studio-nav-label {
    padding-inline: 0.2rem;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    color: #6B8492;
    margin-bottom: 0.1rem;
  }

  /* 3-Column Handcrafted Grid Box Menu (Replaces Vertical List!) */
  .studio-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.68rem;
  }

  .studio-nav__item {
    position: relative;
    width: 100%;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.1rem 0.55rem 0.85rem;
    border-radius: 16px;
    border: 1.5px solid rgba(5, 74, 99, 0.10);
    background: #F7FAFC;
    color: #2E4A58;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.24;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(3, 42, 58, 0.03);
    transition: transform 0.22s var(--ease-wave), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  }

  .studio-nav__item[hidden] {
    display: none !important;
  }

  .studio-nav__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    width: 100%;
  }

  .studio-nav__left span {
    display: block;
    width: 100%;
    word-break: break-word;
  }

  .studio-nav__item svg {
    width: 23px;
    height: 23px;
    color: #086382;
  }

  .studio-nav__count {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #46606D;
    background: #E6EFF4;
    border-radius: var(--radius-pill);
  }

  .studio-nav__item:hover {
    background: #FFFFFF;
    border-color: rgba(5, 74, 99, 0.28);
    color: #031F2C;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -14px rgba(3, 42, 58, 0.26);
  }

  .studio-nav__item:hover svg {
    color: #04364A;
  }

  .studio-nav__item.is-active {
    background: linear-gradient(155deg, #06506A 0%, #032B3B 100%);
    border-color: #032B3B;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 12px 26px -12px rgba(3, 40, 56, 0.52);
  }

  .studio-nav__item.is-active::before {
    display: none;
  }

  .studio-nav__item.is-active svg {
    color: #8CE2EC;
  }

  .studio-nav__item.is-active .studio-nav__count {
    background: rgba(255, 255, 255, 0.20);
    color: #FFFFFF;
    box-shadow: none;
  }

  .studio-sidebar__foot {
    padding-top: 1.25rem;
  }

  .studio-signout-btn {
    justify-content: center;
    padding: 0.88rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(5, 74, 99, 0.12);
    background: #FAFBFD;
    font-weight: 600;
  }
}

/* 4. ADMIN MOBILE NAVIGATION BAR: TALLER, CRISP ICONS & STRONGER ACTIVE STATE */
@media (max-width: 1023px) {
  .studio-mobile-bar {
    padding: 1.15rem clamp(1rem, 4vw, 2rem) 1.1rem;
    gap: 0.95rem 1rem;
    background: #FFFFFF;
    border-bottom: 1.5px solid rgba(5, 74, 99, 0.11);
    box-shadow: 0 8px 24px -16px rgba(3, 38, 54, 0.14);
  }

  .studio-mobile-tabs {
    width: 100%;
    padding: 5px;
    gap: 0.36rem;
    border-radius: 18px;
    background: #EAF1F5;
    border: 1px solid rgba(5, 74, 99, 0.12);
  }

  .studio-mobile-tab {
    height: 44px;
    padding: 0 1.05rem;
    border-radius: 13px;
    color: #365260;
    font-size: 0.93rem;
    font-weight: 600;
    gap: 0.46rem;
    white-space: nowrap;
  }

  .studio-mobile-tab svg {
    width: 17px;
    height: 17px;
    color: #5C7785;
    flex-shrink: 0;
    transition: color 0.2s ease;
  }

  .studio-mobile-tab.is-active {
    background: linear-gradient(155deg, #06506A 0%, #032B3B 100%);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 6px 16px -6px rgba(3, 40, 56, 0.48);
  }

  .studio-mobile-tab.is-active svg {
    color: #8CE2EC;
  }

  .studio-mobile-utils {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .studio-mobile-util {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    height: 36px;
    padding: 0 0.92rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(5, 74, 99, 0.16);
    background: #F4F8FA;
    color: #053A4E;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
  }

  .studio-mobile-util svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  .studio-mobile-util--out {
    background: #FFF6F2;
    border-color: rgba(204, 71, 10, 0.22);
    color: #A83705;
    font-weight: 600;
  }
}
/* ==========================================================================
   v72 — ADMIN SIDEBAR -17.5% + EXACT POMEGRANATE/CROWN FRAMING &
         PORTRAIT EDITORIAL WRITING PREVIEW CARD (BLACK BORDER, LOW SHADOW)
   ========================================================================== */

/* 1. ADMIN DESKTOP SIDEBAR (-17.5% WIDTH) + UNCROPPED CROWN & SEEDS COVER */
@media (min-width: 1024px) {
  .studio-workbench {
    grid-template-columns: clamp(280px, 25.5vw, 490px) minmax(0, 1fr);
  }

  .studio-sidebar {
    padding: 1.85rem clamp(1.1rem, 1.7vw, 1.75rem) 1.85rem;
    gap: 1.65rem;
  }

  .studio-nav {
    gap: 0.56rem;
  }

  .studio-nav__item {
    min-height: 88px;
    padding: 1rem 0.42rem 0.78rem;
    font-size: 0.79rem;
    border-radius: 14px;
  }

  .studio-nav__item svg {
    width: 21px;
    height: 21px;
  }

  /* Mathematically framed for native 1672x941 AVIF:
     - Preserves identical lower white panel height (~550px max cover height)
     - background-position: center 44% keeps +4.9% headroom above crown tip
       (zero top crop!) and keeps ALL bottom pomegranate seeds clearly visible
       while trimming only the extra dark wood margin below the seeds */
  .admin-hero-cover {
    aspect-ratio: 2.60 / 1;
    min-height: 0;
    max-height: 550px;
    background-size: cover;
    background-position: center 44%;
  }
}

/* 2. WRITING PREVIEW CARD: PORTRAIT EDITORIAL PROPORTIONS, HARD BLACK BORDER,
      SUBTLE LOW SHADOW (READS LIKE A PUBLICATION, NOT A PUFFY COURSE CARD!) */
.writing-card--editorial {
  background: var(--paper-surface);
  border: 1.5px solid #16181A;
  border-radius: 20px;
  padding: 13px;
  box-shadow: 0 2px 6px rgba(10, 14, 18, 0.05);
  transition: transform 0.3s var(--ease-wave), border-color 0.22s ease, box-shadow 0.3s ease;
}

.writing-card--editorial:hover {
  transform: translateY(-2px);
  border-color: #000000;
  box-shadow: 0 7px 16px -6px rgba(10, 14, 18, 0.11);
}

.writing-card--editorial .wc-hero {
  border-radius: 13px;
}

@media (min-width: 640px) {
  .writing-card--editorial {
    border-radius: 22px;
    padding: 14px;
  }
  .writing-card--editorial .wc-hero {
    border-radius: 14px;
  }
}

/* Portrait Desktop Proportions Across Writings Feed, Featured Grid & Reader More */
@media (min-width: 780px) {
  .writings-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 392px));
    justify-content: start;
    gap: clamp(1.65rem, 2.4vw, 2.25rem);
  }

  .writing-card--editorial {
    width: 100%;
    max-width: 392px;
  }

  .writing-card--editorial .wc-hero {
    min-height: 325px;
  }

  .writing-card--editorial .wc-content {
    padding: 1.45rem 0.65rem 0.5rem;
  }

  .writing-card--editorial .writing-card__title {
    font-size: clamp(1.38rem, 1.55vw, 1.66rem);
  }

  .writing-card--editorial .wc-cta-btn {
    height: 48px;
    font-size: 0.96rem;
  }

  .writing-card--editorial .wc-fav-btn {
    width: 48px;
    height: 48px;
  }
}

/* 3-Column Portrait Grid on Desktop Writings Feed (writings.html) */
@media (min-width: 1080px) {
  #writings-grid.writings-grid--2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: clamp(1.5rem, 2.2vw, 2.05rem);
  }

  #writings-grid .writing-card--editorial {
    max-width: 100%;
  }

  .home-featured-grid--3 .writing-card--editorial {
    max-width: 100%;
    padding: 13px;
  }

  .home-featured-grid--3 .writing-card--editorial .wc-hero {
    min-height: 310px;
  }
}

/* Crisp Editorial Dark-Mode Border & Subtle Shadow on writing.html */
body.reader-theme-dark .writing-card--editorial {
  background: #1B2125;
  border: 1.5px solid rgba(232, 228, 220, 0.30);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
}

body.reader-theme-dark .writing-card--editorial:hover {
  border-color: rgba(232, 228, 220, 0.52);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.36);
}
/* ==========================================================================
   v73 — SOFTER GRAY WRITING CARD BORDER + SUBTLE SHADOW,
         TIGHTER GAP BELOW WRITINGS & BOOKS COVERS,
         AND CUSTOM CATEGORIES MANAGER STYLES
   ========================================================================== */

/* 1. SOFTER EDITORIAL GRAY BORDER & SUBTLE GROUNDED SHADOW ON WRITING CARDS */
.writing-card--editorial {
  border: 1px solid #CFD6DB;
  box-shadow:
    0 2px 6px rgba(15, 34, 46, 0.045),
    0 10px 24px -12px rgba(15, 34, 46, 0.085);
}

.writing-card--editorial:hover {
  transform: translateY(-2px);
  border-color: #ABB7BF;
  box-shadow:
    0 4px 12px rgba(15, 34, 46, 0.07),
    0 16px 30px -12px rgba(15, 34, 46, 0.12);
}

body.reader-theme-dark .writing-card--editorial {
  border: 1px solid rgba(232, 228, 220, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

body.reader-theme-dark .writing-card--editorial:hover {
  border-color: rgba(232, 228, 220, 0.30);
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.38);
}

/* 2. REDUCE HUGE GAP BELOW WRITINGS & BOOKS COVERS (BEAT .page-editorial SPECIFICITY!) */
.page-editorial .writings-cover--compact + .section:not(.page-hero),
.page-editorial .books-hero-cover--compact + .section:not(.page-hero) {
  padding-top: clamp(1.35rem, 2.4vw, 2.25rem);
}

.writings-cover--compact + .section .quick-composer-wrap {
  margin-bottom: clamp(1.65rem, 2.8vw, 2.35rem);
}

.books-hero-cover--compact + .section .section-intro {
  margin-bottom: 0;
}

.books-toolbar {
  margin-top: clamp(1.35rem, 2.4vw, 2rem);
}

.books-hero-cover--compact + .section .books-shelf-wrap {
  margin-top: clamp(1.75rem, 3.2vw, 2.65rem);
}

/* 3. ADMIN CUSTOM CATEGORIES MANAGER (WRITINGS & BOOKS) */
.cat-mgr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .cat-mgr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.cat-add-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.cat-add-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 1rem;
  border-radius: 13px;
  border: 1.5px solid rgba(5, 74, 99, 0.16);
  background: #FAFBFD;
  color: #05202C;
  font-size: 0.94rem;
}

.cat-add-row input:focus {
  outline: none;
  border-color: #054A63;
  background: #FFFFFF;
}

.cat-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cat-mgr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.6rem 0.46rem 0.95rem;
  border-radius: var(--radius-pill);
  background: #EFF5F8;
  border: 1px solid rgba(5, 74, 99, 0.14);
  color: #042E3F;
  font-size: 0.88rem;
  font-weight: 600;
}

.cat-mgr-pill__del {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(5, 74, 99, 0.08);
  color: #46606D;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
}

.cat-mgr-pill__del:hover {
  background: #CC470A;
  color: #FFFFFF;
}
/* ==========================================================================
   v74 — PURE MILK-WHITE & PITCH-BLACK NEOMORPHIC ADMIN & MEMBER DASHBOARDS
         - Strictly scoped ONLY to .admin-studio-shell (admin.html & account.html)
           and #admin-delete-modal — ZERO impact on any other site page!
         - Clean milk pure white (#F2F2F5) surfaces + authentic raised & inset
           dual neomorphic shadows + hard dark pitch-black (#09090B) text & icons
         - Spacious, calm, larger typography & breathing room across desktop & mobile
         - Admin Cover cropped cleanly from bottom right up to ~3px below
           the pomegranate fruit body with ZERO top crown crop
   ========================================================================== */

.admin-studio-shell {
  --neo-bg: #F2F2F5;
  --neo-surface: #F4F4F7;
  --neo-surface-hi: #FAFAFC;
  --neo-surface-lo: #EBEBF0;
  --neo-ink: #09090B;
  --neo-ink-soft: #3F3F46;
  --neo-ink-muted: #52525B;
  --neo-border: rgba(255, 255, 255, 0.85);
  --neo-border-subtle: rgba(9, 9, 11, 0.08);
  --neo-raise-lg:
    -10px -10px 24px #FFFFFF,
    10px 10px 24px rgba(10, 10, 14, 0.11),
    inset 1px 1px 1px rgba(255, 255, 255, 0.92);
  --neo-raise-md:
    -6px -6px 14px #FFFFFF,
    6px 6px 15px rgba(10, 10, 14, 0.10),
    inset 1px 1px 1px rgba(255, 255, 255, 0.92);
  --neo-raise-sm:
    -4px -4px 9px #FFFFFF,
    4px 4px 10px rgba(10, 10, 14, 0.09),
    inset 1px 1px 0 rgba(255, 255, 255, 0.90);
  --neo-inset:
    inset 4px 4px 9px rgba(10, 10, 14, 0.10),
    inset -4px -4px 9px #FFFFFF;
  --neo-inset-sm:
    inset 3px 3px 6px rgba(10, 10, 14, 0.09),
    inset -3px -3px 6px #FFFFFF;
  --neo-black-grad: linear-gradient(145deg, #1E1E22 0%, #060608 100%);
  --neo-black-shadow:
    -5px -5px 12px #FFFFFF,
    6px 8px 18px rgba(0, 0, 0, 0.28),
    inset 1px 1px 1px rgba(255, 255, 255, 0.16);

  background-color: var(--neo-bg) !important;
  color: var(--neo-ink) !important;
}

.admin-studio-shell .studio-workbench {
  background-color: var(--neo-bg);
}

/* --------------------------------------------------------------------------
   1. ADMIN COVER PHOTO: EXACT BOTTOM CROP (~3px BELOW POMEGRANATE FRUIT BODY,
      ZERO TOP CROWN CROP!) — DESKTOP ONLY, MOBILE STAYS UNTOUCHED
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .admin-studio-shell .admin-hero-cover {
    aspect-ratio: 3.00 / 1;
    min-height: 0;
    max-height: 472px;
    background-size: cover;
    background-position: center 34%;
  }

  .admin-studio-shell .admin-hero-cover__inner {
    padding: 1.55rem clamp(1.75rem, 3.6vw, 3.25rem);
  }
}

/* Member Dashboard Hero Banner (account.html) -> Clean Matte Pitch Black */
.admin-studio-shell .member-hero-banner {
  background: linear-gradient(145deg, #18181C 0%, #08080A 100%);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-studio-shell .member-avatar-squircle {
  background: linear-gradient(145deg, #27272C 0%, #0E0E11 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.admin-studio-shell .member-role-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.admin-studio-shell .member-hero-banner .btn--coral {
  background: #FFFFFF;
  color: #09090B;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   2. NEOMORPHIC DESKTOP SIDEBAR (MILK WHITE + PITCH BLACK TILES & ICONS)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .admin-studio-shell .studio-sidebar {
    background: var(--neo-bg);
    border-right: 1px solid rgba(9, 9, 11, 0.07);
    box-shadow: 10px 0 30px -18px rgba(10, 10, 14, 0.14);
    gap: 2.15rem;
    padding: 2.2rem clamp(1.25rem, 1.9vw, 2rem) 2.2rem;
  }

  .admin-studio-shell .studio-sidebar__top {
    gap: 1.65rem;
    padding-bottom: 1.9rem;
    border-bottom: 1px solid var(--neo-border-subtle);
  }

  .admin-studio-shell .studio-sidebar__logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--neo-black-grad);
    box-shadow: var(--neo-black-shadow);
  }

  .admin-studio-shell .studio-sidebar__brand-name {
    color: var(--neo-ink);
    font-size: clamp(1.45rem, 1.65vw, 1.78rem);
    font-weight: 600;
  }

  .admin-studio-shell .studio-sidebar__brand-sub {
    color: var(--neo-ink-soft);
    font-size: 0.96rem;
    font-weight: 600;
  }

  .admin-studio-shell .studio-compose-cta {
    height: 56px;
    border-radius: 18px;
    background: var(--neo-black-grad);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: var(--neo-black-shadow);
    border: 0;
  }

  .admin-studio-shell .studio-compose-cta:hover {
    background: linear-gradient(145deg, #27272B 0%, #09090B 100%);
    transform: translateY(-2px);
    box-shadow:
      -6px -6px 14px #FFFFFF,
      8px 12px 22px rgba(0, 0, 0, 0.34);
  }

  .admin-studio-shell .studio-nav-group {
    gap: 0.85rem;
  }

  .admin-studio-shell .studio-nav-label {
    color: var(--neo-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.72;
    padding-inline: 0.25rem;
  }

  /* Calm, spacious 2-col on medium laptops, 3-col on wide desktop so tile labels breathe */
  .admin-studio-shell .studio-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  @media (min-width: 1480px) {
    .admin-studio-shell .studio-nav {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.82rem;
    }
  }

  .admin-studio-shell .studio-nav__item {
    min-height: 102px;
    padding: 1.15rem 0.65rem 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--neo-border);
    background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
    color: var(--neo-ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: var(--neo-raise-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
  }

  .admin-studio-shell .studio-nav__item svg {
    width: 24px;
    height: 24px;
    color: var(--neo-ink);
    stroke-width: 2;
  }

  .admin-studio-shell .studio-nav__count {
    top: 8px;
    right: 8px;
    min-width: 24px;
    height: 24px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--neo-ink);
    background: var(--neo-bg);
    box-shadow: var(--neo-inset-sm);
  }

  .admin-studio-shell .studio-nav__count--alert {
    background: var(--neo-ink) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.26) !important;
  }

  .admin-studio-shell .studio-nav__item:hover {
    background: linear-gradient(145deg, #FFFFFF 0%, #EFEFF3 100%);
    border-color: #FFFFFF;
    color: #000000;
    transform: translateY(-2px);
    box-shadow:
      -8px -8px 18px #FFFFFF,
      8px 10px 20px rgba(10, 10, 14, 0.14);
  }

  .admin-studio-shell .studio-nav__item:hover svg {
    color: #000000;
  }

  .admin-studio-shell .studio-nav__item.is-active {
    background: var(--neo-black-grad);
    border-color: #09090B;
    color: #FFFFFF;
    box-shadow: var(--neo-black-shadow);
  }

  .admin-studio-shell .studio-nav__item.is-active svg {
    color: #FFFFFF;
  }

  .admin-studio-shell .studio-nav__item.is-active .studio-nav__count {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    box-shadow: none;
  }

  .admin-studio-shell .studio-sidebar__foot {
    border-top: 1px solid var(--neo-border-subtle);
    padding-top: 1.5rem;
  }

  .admin-studio-shell .studio-signout-btn {
    height: 50px;
    border-radius: 16px;
    border: 1px solid var(--neo-border);
    background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
    color: var(--neo-ink);
    font-size: 0.96rem;
    font-weight: 600;
    box-shadow: var(--neo-raise-sm);
  }

  .admin-studio-shell .studio-signout-btn:hover {
    background: var(--neo-black-grad);
    color: #FFFFFF;
    box-shadow: var(--neo-black-shadow);
  }
}

/* --------------------------------------------------------------------------
   3. NEOMORPHIC MOBILE STUDIO BAR (MILK WHITE + PITCH BLACK, ZERO BREAKAGE)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .admin-studio-shell .studio-mobile-bar {
    padding: 1.25rem clamp(1rem, 4vw, 1.75rem) 1.2rem;
    gap: 1.05rem;
    background: var(--neo-bg);
    border-bottom: 1px solid var(--neo-border-subtle);
    box-shadow: 0 10px 24px -16px rgba(10, 10, 14, 0.15);
  }

  .admin-studio-shell .studio-mobile-tabs {
    padding: 7px;
    gap: 0.5rem;
    border-radius: 20px;
    background: var(--neo-surface-lo);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--neo-inset);
  }

  .admin-studio-shell .studio-mobile-tab {
    height: 46px;
    padding: 0 1.1rem;
    border-radius: 14px;
    background: transparent;
    color: var(--neo-ink);
    font-size: 0.96rem;
    font-weight: 600;
    gap: 0.48rem;
  }

  .admin-studio-shell .studio-mobile-tab svg {
    width: 18px;
    height: 18px;
    color: var(--neo-ink);
    stroke-width: 2;
  }

  .admin-studio-shell .studio-mobile-tab.is-active {
    background: var(--neo-black-grad);
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  }

  .admin-studio-shell .studio-mobile-tab.is-active svg {
    color: #FFFFFF;
  }

  .admin-studio-shell .mob-count-pill {
    background: var(--neo-ink);
    color: #FFFFFF;
  }

  .admin-studio-shell .studio-mobile-tab.is-active .mob-count-pill {
    background: #FFFFFF;
    color: #09090B;
  }

  .admin-studio-shell .studio-mobile-util {
    height: 40px;
    padding: 0 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--neo-border);
    background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
    color: var(--neo-ink);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--neo-raise-sm);
  }

  .admin-studio-shell .studio-mobile-util--out {
    background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
    border-color: var(--neo-border);
    color: var(--neo-ink);
  }
}

/* --------------------------------------------------------------------------
   4. SPACIOUS, BREATHING WORKSPACE CANVAS & LARGER TYPOGRAPHY
   -------------------------------------------------------------------------- */
.admin-studio-shell .studio-canvas {
  background: var(--neo-bg);
  padding: clamp(2rem, 3.8vw, 3.25rem) clamp(1.15rem, 4.2vw, 3.75rem) clamp(4.5rem, 8vw, 7rem);
}

.admin-studio-shell .studio-canvas__inner {
  max-width: 1080px;
}

.admin-studio-shell .studio-page-head {
  gap: 1.5rem 2.25rem;
  margin-bottom: clamp(2rem, 3.4vw, 2.85rem);
}

.admin-studio-shell .studio-kicker {
  color: var(--neo-ink-soft);
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.55rem;
}

.admin-studio-shell .studio-page-title {
  color: var(--neo-ink);
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   5. NEOMORPHIC METRIC TILES (SEPARATE RAISED MILK-WHITE BLOCKS!)
   -------------------------------------------------------------------------- */
.admin-studio-shell .studio-metrics {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(2rem, 3.4vw, 2.85rem);
  overflow: visible;
}

@media (min-width: 760px) {
  .admin-studio-shell .studio-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-studio-shell .studio-metric {
  padding: clamp(1.35rem, 2.4vw, 1.85rem) clamp(1.3rem, 2.2vw, 1.75rem);
  border-radius: 24px;
  border: 1px solid var(--neo-border);
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  box-shadow: var(--neo-raise-md);
}

.admin-studio-shell .studio-metric + .studio-metric {
  border-left: 1px solid var(--neo-border);
  border-top: 1px solid var(--neo-border);
}

.admin-studio-shell .studio-metric__label {
  color: var(--neo-ink-soft);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.admin-studio-shell .studio-metric__val {
  color: var(--neo-ink);
  font-size: clamp(2.3rem, 3.4vw, 3.05rem);
  font-weight: 600;
  line-height: 1.05;
}

.admin-studio-shell .studio-dot--live {
  background: #09090B;
}

.admin-studio-shell .studio-dot--draft {
  background: #71717A;
}

/* --------------------------------------------------------------------------
   6. NEOMORPHIC SURFACE CARDS, FEATURED BARS, TOKEN BAR & SETTINGS STACK
   -------------------------------------------------------------------------- */
.admin-studio-shell .studio-settings-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.85rem, 3.2vw, 2.6rem);
}

.admin-studio-shell .studio-surface-card,
.admin-studio-shell .studio-featured-bar,
.admin-studio-shell .book-token-bar,
.admin-studio-shell .studio-info-banner {
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  border: 1px solid var(--neo-border);
  border-radius: 28px;
  box-shadow: var(--neo-raise-lg);
  color: var(--neo-ink);
}

.admin-studio-shell .studio-surface-card {
  padding: clamp(1.65rem, 3.5vw, 3.1rem);
}

.admin-studio-shell .studio-featured-bar {
  padding: clamp(1.4rem, 2.6vw, 1.95rem) clamp(1.4rem, 2.8vw, 2.25rem);
  margin-bottom: clamp(1.85rem, 3vw, 2.5rem);
  gap: 1.35rem 2rem;
}

.admin-studio-shell .studio-featured-bar__star {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--neo-black-grad);
  color: #FFFFFF;
  font-size: 1.35rem;
  box-shadow: var(--neo-black-shadow);
}

.admin-studio-shell .studio-featured-bar__title {
  color: var(--neo-ink);
  font-size: clamp(1.12rem, 1.35vw, 1.28rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-studio-shell .studio-featured-bar__sub {
  color: var(--neo-ink-soft);
  font-size: clamp(0.94rem, 1.05vw, 1.02rem);
  line-height: 1.58;
}

.admin-studio-shell .studio-featured-bar__label {
  color: var(--neo-ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-studio-shell .studio-stepper {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--neo-surface-lo);
  box-shadow: var(--neo-inset);
}

.admin-studio-shell .studio-stepper__btn {
  width: 46px;
  height: 46px;
  color: var(--neo-ink);
  font-size: 1.25rem;
  font-weight: 700;
  background: transparent;
}

.admin-studio-shell .studio-stepper__btn:hover {
  background: rgba(9, 9, 11, 0.08);
  color: #000000;
}

.admin-studio-shell .studio-stepper__input {
  width: 52px;
  height: 46px;
  color: var(--neo-ink);
  font-size: 1.08rem;
  font-weight: 700;
  background: transparent;
  border-inline: 1px solid rgba(9, 9, 11, 0.08);
}

.admin-studio-shell .book-token-bar {
  padding: 1.35rem 1.75rem;
  margin-bottom: 2rem;
}

.admin-studio-shell .book-token-bar strong,
.admin-studio-shell .book-token-bar div {
  color: var(--neo-ink) !important;
  font-size: 0.98rem !important;
  line-height: 1.6;
}

.admin-studio-shell .studio-card-heading {
  color: var(--neo-ink);
  font-size: clamp(1.38rem, 1.9vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.admin-studio-shell .studio-card-sub,
.admin-studio-shell .studio-steps-list {
  color: var(--neo-ink-soft);
  font-size: clamp(0.98rem, 1.08vw, 1.0625rem);
  line-height: 1.72;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   7. SEARCH BAR, SEGMENTED FILTERS & ALL BUTTONS (PITCH BLACK & MILK WHITE)
   -------------------------------------------------------------------------- */
.admin-studio-shell .studio-controls {
  gap: 1.15rem 1.5rem;
  margin-bottom: clamp(1.85rem, 3vw, 2.5rem);
}

.admin-studio-shell .studio-search {
  height: 58px;
  padding: 0 1.25rem 0 3.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--neo-surface-lo);
  color: var(--neo-ink);
  font-size: 1.05rem;
  box-shadow: var(--neo-inset);
}

.admin-studio-shell .studio-search::placeholder {
  color: var(--neo-ink-muted);
}

.admin-studio-shell .studio-search:focus {
  outline: none;
  border-color: var(--neo-ink);
  background: #F6F6F9;
}

.admin-studio-shell .studio-search-icon {
  width: 21px;
  height: 21px;
  left: 1.15rem;
  color: var(--neo-ink);
}

.admin-studio-shell .studio-segmented {
  padding: 6px;
  border-radius: 18px;
  background: var(--neo-surface-lo);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--neo-inset);
  gap: 0.35rem;
}

.admin-studio-shell .studio-seg-btn {
  height: 46px;
  padding: 0 1.25rem;
  border-radius: 13px;
  color: var(--neo-ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
}

.admin-studio-shell .studio-seg-btn:hover {
  color: var(--neo-ink);
}

.admin-studio-shell .studio-seg-btn.is-active {
  background: var(--neo-black-grad);
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.26);
}

.admin-studio-shell .quiz-subs-filter-select {
  height: 58px;
  padding: 0 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--neo-surface-lo);
  color: var(--neo-ink);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--neo-inset);
}

/* Primary & Secondary Buttons Inside Admin & Member Dashboards */
.admin-studio-shell .btn--coral,
.admin-studio-shell .btn--ocean,
.admin-studio-shell .studio-btn--primary {
  background: var(--neo-black-grad) !important;
  color: #FFFFFF !important;
  border: 1px solid #09090B !important;
  box-shadow: var(--neo-black-shadow) !important;
  font-size: 1rem;
  font-weight: 600;
  min-height: 48px;
  padding: 0.78rem 1.65rem;
  border-radius: 16px;
}

.admin-studio-shell .btn--coral:hover,
.admin-studio-shell .btn--ocean:hover,
.admin-studio-shell .studio-btn--primary:hover {
  background: linear-gradient(145deg, #27272C 0%, #09090B 100%) !important;
  transform: translateY(-2px);
}

.admin-studio-shell .studio-btn--subtle,
.admin-studio-shell .studio-ghost-btn,
.admin-studio-shell .admin-act-btn {
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  color: var(--neo-ink);
  border: 1px solid var(--neo-border);
  box-shadow: var(--neo-raise-sm);
  font-size: 0.98rem;
  font-weight: 600;
  min-height: 46px;
  padding: 0.68rem 1.35rem;
  border-radius: 15px;
}

.admin-studio-shell .studio-btn--subtle:hover,
.admin-studio-shell .studio-ghost-btn:hover,
.admin-studio-shell .admin-act-btn:hover {
  background: linear-gradient(145deg, #FFFFFF 0%, #EFEFF3 100%);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: var(--neo-raise-md);
}

/* --------------------------------------------------------------------------
   8. SPACIOUS, UNCROWDED FORMS, INPUTS, SUBPANELS & EDITOR TOOLBARS
   -------------------------------------------------------------------------- */
.admin-studio-shell .studio-form-grid {
  gap: clamp(1.85rem, 3vw, 2.5rem);
}

.admin-studio-shell .form-grid--2 {
  gap: 1.5rem 2rem;
}

.admin-studio-shell .field {
  gap: 0.65rem;
}

.admin-studio-shell .field label {
  color: var(--neo-ink);
  font-size: clamp(0.98rem, 1.08vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.admin-studio-shell input[type="text"],
.admin-studio-shell input[type="email"],
.admin-studio-shell input[type="password"],
.admin-studio-shell input[type="number"]:not(.studio-stepper__input),
.admin-studio-shell input[type="date"],
.admin-studio-shell select,
.admin-studio-shell .book-token-bar__input {
  height: 56px;
  padding: 0 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--neo-surface-lo);
  color: var(--neo-ink);
  font-size: 1.0625rem;
  box-shadow: var(--neo-inset);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.admin-studio-shell input:focus,
.admin-studio-shell select:focus,
.admin-studio-shell textarea:focus {
  outline: none;
  border-color: var(--neo-ink);
  background: #F7F7FA;
  box-shadow:
    inset 2px 2px 5px rgba(10, 10, 14, 0.08),
    0 0 0 3px rgba(9, 9, 11, 0.10);
}

.admin-studio-shell .editor-textarea {
  min-height: 280px;
  padding: 1.4rem 1.5rem;
  border-radius: 0 0 18px 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--neo-surface-lo) !important;
  color: var(--neo-ink) !important;
  font-size: 1.125rem !important;
  line-height: 1.85 !important;
  box-shadow: var(--neo-inset);
}

.admin-studio-shell .editor-toolbar-bar {
  padding: 0.9rem 1.1rem;
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--neo-border);
  border-bottom: 1px solid var(--neo-border-subtle);
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  box-shadow: var(--neo-raise-sm);
  gap: 0.65rem;
}

.admin-studio-shell .editor-fmt-btns {
  gap: 0.5rem;
}

.admin-studio-shell .editor-fmt-btn {
  min-height: 40px;
  padding: 0.42rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--neo-border);
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  color: var(--neo-ink);
  font-size: 0.94rem;
  font-weight: 600;
  box-shadow: var(--neo-raise-sm);
}

.admin-studio-shell .editor-fmt-btn:hover {
  background: #FFFFFF;
  color: #000000;
}

.admin-studio-shell .editor-fmt-btn.is-active {
  background: var(--neo-black-grad);
  border-color: #09090B;
  color: #FFFFFF;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.admin-studio-shell .editor-word-stats {
  color: var(--neo-ink-soft);
  font-size: 0.94rem;
  padding-top: 0.45rem;
}

/* Calm Neomorphic Subpanels (Featured, Series, Bilingual, Spacing, Quiz, Cover) */
.admin-studio-shell .studio-subpanel,
.admin-studio-shell .admin-cover-uploader,
.admin-studio-shell .bk-cover-text-box,
.admin-studio-shell .book-page-editor-card,
.admin-studio-shell .qb-card {
  background: var(--neo-bg) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: 22px !important;
  padding: clamp(1.35rem, 2.6vw, 2.05rem) !important;
  box-shadow: var(--neo-raise-md) !important;
}

.admin-studio-shell .studio-subpanel__title {
  color: var(--neo-ink);
  font-size: clamp(1.1rem, 1.3vw, 1.24rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.admin-studio-shell .studio-subpanel__opt {
  color: var(--neo-ink-muted);
  font-weight: 500;
}

.admin-studio-shell .studio-subpanel__desc,
.admin-studio-shell .upload-note,
.admin-studio-shell .upload-rule-note {
  color: var(--neo-ink-soft);
  font-size: 0.98rem;
  line-height: 1.62;
}

.admin-studio-shell .studio-subpanel__pill,
.admin-studio-shell .series-pill-preview,
.admin-studio-shell .bilingual-badge {
  background: var(--neo-surface-lo);
  color: var(--neo-ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--neo-inset-sm);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.38rem 0.9rem;
}

.admin-studio-shell .studio-subpanel__body {
  padding-top: 1.5rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--neo-border-subtle);
}

.admin-studio-shell .studio-switch__track {
  background: var(--neo-surface-lo);
  box-shadow: var(--neo-inset-sm);
}

.admin-studio-shell .studio-switch input:checked + .studio-switch__track {
  background: #09090B;
}

.admin-studio-shell .studio-switch__text {
  color: var(--neo-ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.admin-studio-shell .spacing-grid {
  gap: 1.35rem 1.85rem;
}

.admin-studio-shell .spacing-ctrl {
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: var(--neo-surface-lo);
  box-shadow: var(--neo-inset-sm);
}

.admin-studio-shell .spacing-ctrl__top {
  font-size: 0.98rem;
  color: var(--neo-ink);
}

.admin-studio-shell input[type="range"] {
  accent-color: #09090B;
}

/* --------------------------------------------------------------------------
   9. ALL ADMIN & MEMBER DASHBOARD CARDS (WRITINGS, BOOKS, COMMENTS,
      USERS, BADGES, CATEGORIES, QUIZ ANSWERS) — PURE NEOMORPHIC MILK-WHITE
   -------------------------------------------------------------------------- */
.admin-studio-shell .studio-list,
.admin-studio-shell .books-admin-grid,
.admin-studio-shell .users-grid,
.admin-studio-shell .cat-mgr-grid {
  gap: clamp(1.5rem, 2.6vw, 2.15rem);
}

.admin-studio-shell .thread-stack {
  gap: clamp(1.4rem, 2.4vw, 1.95rem);
}

.admin-studio-shell .studio-wcard,
.admin-studio-shell .book-admin-card,
.admin-studio-shell .studio-thread-card,
.admin-studio-shell .user-card,
.admin-studio-shell .badge-catalog-item,
.admin-studio-shell .admin-empty {
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: 26px !important;
  box-shadow: var(--neo-raise-lg) !important;
  color: var(--neo-ink) !important;
}

.admin-studio-shell .book-admin-card,
.admin-studio-shell .studio-thread-card,
.admin-studio-shell .user-card {
  padding: clamp(1.45rem, 2.6vw, 2rem) !important;
}

.admin-studio-shell .studio-wcard__title,
.admin-studio-shell .book-admin-card__title,
.admin-studio-shell .studio-thread-card__writing,
.admin-studio-shell .user-card__name,
.admin-studio-shell .badge-catalog-item__name,
.admin-studio-shell .qsub-question {
  color: var(--neo-ink) !important;
  font-size: clamp(1.24rem, 1.55vw, 1.48rem);
}

.admin-studio-shell .studio-wcard__desc,
.admin-studio-shell .book-admin-card__meta,
.admin-studio-shell .studio-thread-card__sub,
.admin-studio-shell .user-card__email,
.admin-studio-shell .badge-catalog-item__meta {
  color: var(--neo-ink-soft) !important;
  font-size: 0.98rem;
  line-height: 1.64;
}

.admin-studio-shell .qsub-answer,
.admin-studio-shell .thread-comment-box {
  background: var(--neo-surface-lo);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--neo-inset-sm);
  color: var(--neo-ink);
  font-size: 1.02rem;
  line-height: 1.72;
  padding: 1.15rem 1.3rem;
  border-radius: 16px;
}

.admin-studio-shell .qsub-tag,
.admin-studio-shell .eco-tag,
.admin-studio-shell .thread-pill {
  background: var(--neo-surface-lo) !important;
  color: var(--neo-ink) !important;
  border: 1px solid rgba(9, 9, 11, 0.14) !important;
  font-weight: 700;
  font-size: 0.8rem;
}

.admin-studio-shell .thread-pill--new,
.admin-studio-shell .eco-tag--live {
  background: var(--neo-ink) !important;
  color: #FFFFFF !important;
  border-color: var(--neo-ink) !important;
}

/* Neomorphic Icon Actions (Star Feature, Delete, Move, Badge Delete, Category Pills) */
.admin-studio-shell .studio-wcard__feat-btn,
.admin-studio-shell .studio-wcard__icon-del,
.admin-studio-shell .qb-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--neo-border);
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  color: var(--neo-ink);
  box-shadow: var(--neo-raise-sm);
}

.admin-studio-shell .studio-wcard__feat-btn.is-featured {
  background: var(--neo-black-grad);
  border-color: #09090B;
  color: #FFFFFF;
  box-shadow: var(--neo-black-shadow);
}

.admin-studio-shell .studio-wcard__icon-del:hover,
.admin-studio-shell .qb-icon-btn--del:hover {
  background: var(--neo-black-grad);
  color: #FFFFFF;
}

.admin-studio-shell .badge-del-btn {
  padding: 0.44rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--neo-border);
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  color: var(--neo-ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--neo-raise-sm);
}

.admin-studio-shell .badge-del-btn:hover {
  background: var(--neo-black-grad);
  border-color: #09090B;
  color: #FFFFFF;
}

/* Custom Categories Manager Pills & Inputs */
.admin-studio-shell .cat-add-row {
  gap: 0.85rem;
  margin-bottom: 1.65rem;
}

.admin-studio-shell .cat-add-row input {
  height: 54px;
  font-size: 1.02rem;
}

.admin-studio-shell .cat-pill-list {
  gap: 0.8rem;
}

.admin-studio-shell .cat-mgr-pill {
  padding: 0.56rem 0.72rem 0.56rem 1.1rem;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--neo-surface-hi) 0%, var(--neo-surface-lo) 100%);
  border: 1px solid var(--neo-border);
  color: var(--neo-ink);
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: var(--neo-raise-sm);
}

.admin-studio-shell .cat-mgr-pill__del {
  width: 26px;
  height: 26px;
  background: var(--neo-surface-lo);
  color: var(--neo-ink);
  box-shadow: var(--neo-inset-sm);
}

.admin-studio-shell .cat-mgr-pill__del:hover {
  background: #09090B;
  color: #FFFFFF;
  box-shadow: none;
}

/* Book Page Tabs & Mode Switcher Inside Book Editor */
.admin-studio-shell .book-page-lang-tabs {
  padding: 5px;
  border-radius: 14px;
  background: var(--neo-surface-lo);
  box-shadow: var(--neo-inset-sm);
}

.admin-studio-shell .book-page-lang-tab {
  padding: 0.42rem 0.98rem;
  border-radius: 10px;
  color: var(--neo-ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-studio-shell .book-page-lang-tab.is-active {
  background: var(--neo-black-grad);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.admin-studio-shell .book-page-editor-card__num {
  color: var(--neo-ink);
  font-size: 0.94rem;
}

/* Member Dashboard Headings & Links Inside account.html */
.admin-studio-shell .member-section-title {
  color: var(--neo-ink);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
}

.admin-studio-shell .member-section-link {
  color: var(--neo-ink);
  font-size: 0.96rem;
  font-weight: 600;
}

/* Neomorphic Confirm Delete Modal on admin.html */
#admin-delete-modal .admin-modal__box {
  background: linear-gradient(145deg, #FAFAFC 0%, #ECECF0 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  padding: 2.25rem;
  color: #09090B;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 1px 1px 1px #FFFFFF;
}

#admin-delete-modal .admin-modal__box h3 {
  color: #09090B;
  font-size: 1.55rem;
}

#admin-delete-modal .admin-act-btn {
  min-height: 46px;
  padding: 0.65rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #FAFAFC 0%, #EAEAEF 100%);
  color: #09090B;
  font-size: 0.96rem;
  font-weight: 600;
  box-shadow: -4px -4px 9px #FFFFFF, 4px 4px 10px rgba(10, 10, 14, 0.10);
}

#admin-delete-modal .admin-act-btn--danger {
  background: linear-gradient(145deg, #1E1E22 0%, #050507 100%);
  border-color: #09090B;
  color: #FFFFFF;
}
/* ==========================================================================
   v75 — WIDER WRITING READER + LARGER DEFAULT TEXT + PROGRESSIVE WIDTH
         SCALING ON A+ (UP TO EXACT WEBSITE CONTAINER BOX),
         PLUS LOGIN/PRIVATE READING GATES & NEOMORPHIC USER ACCESS PICKER
   ========================================================================== */

/* 1. WIDER, COMFORTABLE WRITING PAGE & PROGRESSIVE WIDTH EXPANSION WITH TEXT SIZE */
.page-writing-reader .reader-shell {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 1.5vw, 1rem);
  transition: max-width 0.32s var(--ease-wave);
}

.page-writing-reader .reader-article {
  max-width: 100% !important;
  width: 100%;
}

.page-writing-reader .reader-cover img {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

/* Larger Default Writing Font Size + Harmonious 9-Step Scale */
body.page-writing-reader[data-reader-size="sm"]  .reader-article { font-size: clamp(1.04rem, 1rem + 0.25vw, 1.125rem);  line-height: 1.84; }
body.page-writing-reader[data-reader-size="md"]  .reader-article { font-size: clamp(1.16rem, 1.1rem + 0.3vw, 1.28125rem); line-height: 1.88; }
body.page-writing-reader[data-reader-size="lg"]  .reader-article { font-size: clamp(1.26rem, 1.2rem + 0.35vw, 1.40625rem); line-height: 1.86; }
body.page-writing-reader[data-reader-size="xl"]  .reader-article { font-size: clamp(1.38rem, 1.3rem + 0.4vw, 1.5625rem);  line-height: 1.82; }
body.page-writing-reader[data-reader-size="2xl"] .reader-article { font-size: clamp(1.56rem, 1.45rem + 0.45vw, 1.78rem);  line-height: 1.76; }
body.page-writing-reader[data-reader-size="3xl"] .reader-article { font-size: clamp(1.76rem, 1.62rem + 0.5vw, 2.05rem);   line-height: 1.70; }
body.page-writing-reader[data-reader-size="4xl"] .reader-article { font-size: clamp(1.98rem, 1.82rem + 0.55vw, 2.32rem);  line-height: 1.64; }
body.page-writing-reader[data-reader-size="5xl"] .reader-article { font-size: clamp(2.22rem, 2.02rem + 0.6vw, 2.62rem);   line-height: 1.58; }
body.page-writing-reader[data-reader-size="6xl"] .reader-article { font-size: clamp(2.48rem, 2.24rem + 0.65vw, 2.92rem);  line-height: 1.52; }

/* Progressive Container Width Expansion as Reader Increases Text Size
   (Never overflows outside the website's .container border box!) */
@media (min-width: 900px) {
  body.page-writing-reader[data-reader-size="sm"]  .reader-shell { max-width: 820px; }
  body.page-writing-reader[data-reader-size="md"]  .reader-shell { max-width: 900px; }
  body.page-writing-reader[data-reader-size="lg"]  .reader-shell { max-width: 980px; }
  body.page-writing-reader[data-reader-size="xl"]  .reader-shell { max-width: 1080px; }
  body.page-writing-reader[data-reader-size="2xl"] .reader-shell { max-width: 1180px; }
  body.page-writing-reader[data-reader-size="3xl"] .reader-shell { max-width: 1260px; }
  body.page-writing-reader[data-reader-size="4xl"] .reader-shell,
  body.page-writing-reader[data-reader-size="5xl"] .reader-shell,
  body.page-writing-reader[data-reader-size="6xl"] .reader-shell { max-width: 100%; }
}

/* 2. WRITING PREVIEW & LOGIN / PRIVATE ACCESS GATE */
.wc-glass-pill--private {
  background: rgba(12, 14, 18, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #FFFFFF !important;
}

.reader-preview-locked {
  display: flex;
  flex-direction: column;
}

.reader-preview-byline {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--paper-muted);
  margin-bottom: 1.6rem;
}

.reader-preview-byline strong {
  color: var(--paper-ink);
}

.reader-cover--preview {
  margin-bottom: 1.75rem;
}

.reader-preview-excerpt {
  font-family: var(--font-writing-body);
  font-size: clamp(1.16rem, 1.1rem + 0.3vw, 1.32rem);
  line-height: 1.82;
  color: var(--paper-ink);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--paper-line);
}

.reader-access-gate {
  margin-top: 0.5rem;
  padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: 26px;
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.14);
  box-shadow: 0 18px 46px -22px rgba(3, 38, 54, 0.14);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.reader-access-gate--private {
  margin-top: 1.5rem;
}

.reader-access-gate__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg, #064E67 0%, #02202E 100%);
  color: #FFFFFF;
  font-size: 1.55rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  box-shadow: 0 12px 26px -10px rgba(2, 32, 46, 0.45);
}

.reader-access-gate__kicker {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #B8420A;
}

.reader-access-gate__title {
  font-family: var(--font-writing-head);
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  color: #041D29;
  margin: 0;
  max-width: 24ch;
}

.reader-access-gate__desc {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.05vw, 1.0625rem);
  line-height: 1.7;
  color: #4D6673;
  max-width: 48ch;
  margin: 0 0 0.65rem;
}

.reader-access-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.btn--ghost-ocean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(5, 74, 99, 0.24);
  background: transparent;
  color: #053A4E;
  font-weight: 600;
  text-decoration: none;
}

body.reader-theme-dark .reader-access-gate {
  background: #1B2125;
  border-color: rgba(232, 228, 220, 0.16);
}

body.reader-theme-dark .reader-access-gate__title {
  color: #F4EFE6;
}

body.reader-theme-dark .reader-access-gate__desc {
  color: #B6B1A8;
}

/* 3. MEMBER DASHBOARD: PRIVATE SHARED WITH YOU GRID */
.member-private-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
}

@media (min-width: 680px) {
  .member-private-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.member-private-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.4rem 1.55rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #FAFAFC 0%, #EBEBF0 100%);
  box-shadow: -6px -6px 14px #FFFFFF, 6px 6px 15px rgba(10, 10, 14, 0.10);
  text-decoration: none;
  color: #09090B;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.member-private-card:hover {
  transform: translateY(-2px);
  box-shadow: -8px -8px 18px #FFFFFF, 8px 10px 20px rgba(10, 10, 14, 0.14);
}

.member-private-card strong {
  font-family: var(--font-writing-head);
  font-size: 1.2rem;
  line-height: 1.3;
  color: #09090B;
}

.member-private-card > span:last-child {
  font-size: 0.92rem;
  font-weight: 600;
  color: #52525B;
}

/* 4. ADMIN NEOMORPHIC ACCESS & PRIVACY PICKER & QUICK ACCESS MODAL */
.access-mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.access-mode-opt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(145deg, #FAFAFC 0%, #EBEBF0 100%);
  color: #09090B;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: -4px -4px 9px #FFFFFF, 4px 4px 10px rgba(10, 10, 14, 0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.access-mode-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #09090B;
  flex-shrink: 0;
}

.access-mode-opt.is-active {
  background: linear-gradient(145deg, #1E1E22 0%, #060608 100%);
  border-color: #09090B;
  color: #FFFFFF;
  box-shadow: -4px -4px 10px #FFFFFF, 5px 7px 16px rgba(0, 0, 0, 0.28);
}

.access-mode-opt.is-active input[type="radio"] {
  accent-color: #FFFFFF;
}

.access-users-picker {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.access-users-picker__top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.access-users-picker__manual {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.access-users-picker__manual input {
  flex: 1 1 220px;
  min-width: 0;
}

.access-users-checklist {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: #EBEBF0;
  box-shadow: inset 4px 4px 9px rgba(10, 10, 14, 0.10), inset -4px -4px 9px #FFFFFF;
}

.access-user-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #FAFAFC 0%, #EFEFF4 100%);
  color: #09090B;
  cursor: pointer;
  box-shadow: -3px -3px 7px #FFFFFF, 3px 3px 8px rgba(10, 10, 14, 0.08);
  transition: background 0.18s, color 0.18s;
}

.access-user-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #09090B;
  flex-shrink: 0;
}

.access-user-row__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.access-user-row__info strong {
  font-size: 0.96rem;
  color: inherit;
}

.access-user-row__info span {
  font-size: 0.84rem;
  opacity: 0.76;
  overflow: hidden;
  text-overflow: ellipsis;
}

.access-user-row__role {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.24rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 11, 0.08);
  color: inherit;
  flex-shrink: 0;
}

.access-user-row.is-selected {
  background: linear-gradient(145deg, #1E1E22 0%, #09090B 100%);
  border-color: #09090B;
  color: #FFFFFF;
}

.access-user-row.is-selected .access-user-row__role {
  background: rgba(255, 255, 255, 0.18);
}

.access-users-empty {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: #52525B;
}

#admin-access-modal .admin-modal__box--access {
  max-width: 580px;
  width: min(580px, calc(100vw - 2rem));
  background: linear-gradient(145deg, #FAFAFC 0%, #ECECF0 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: clamp(1.5rem, 3.2vw, 2.25rem);
  color: #09090B;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30), inset 1px 1px 1px #FFFFFF;
}

.acc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.acc-modal__head h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #09090B;
}

.acc-modal__item-title {
  margin: 0.55rem 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #3F3F46;
}

#admin-access-modal .access-users-picker input[type="text"],
#admin-access-modal .access-users-picker input[type="email"] {
  height: 46px;
  padding: 0 1rem;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #EBEBF0;
  color: #09090B;
  font-size: 0.96rem;
  box-shadow: inset 3px 3px 7px rgba(10, 10, 14, 0.10), inset -3px -3px 7px #FFFFFF;
}

#admin-access-modal .studio-btn--primary,
#admin-access-modal .admin-act-btn--danger {
  background: linear-gradient(145deg, #1E1E22 0%, #050507 100%);
  border-color: #09090B;
  color: #FFFFFF;
  border-radius: 13px;
  min-height: 46px;
  padding: 0 1.25rem;
}

#admin-access-modal .admin-act-btn {
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 13px;
  font-weight: 600;
}
/* ==========================================================================
   v76 — EDITORIAL PODCAST & ARTICLE AUDIO STREAMING PLAYERS (/api/audio/...)
   ========================================================================== */
.podcast-episodes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2rem, 3.6vw, 2.75rem);
}

@media (min-width: 780px) {
  .podcast-episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.podcast-ep-card {
  background: #FFFFFF;
  border: 1px solid rgba(5, 74, 99, 0.12);
  border-radius: 22px;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  box-shadow: 0 4px 18px -10px rgba(3, 38, 54, 0.10);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.podcast-ep-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.podcast-ep-card__badge {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #054A63;
  background: #EAF4F8;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-pill);
}

.podcast-ep-card__meta {
  font-size: 0.82rem;
  color: #5C7481;
  font-variant-numeric: tabular-nums;
}

.podcast-ep-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.52rem);
  font-weight: 500;
  line-height: 1.25;
  color: #041D29;
  margin: 0;
}

.podcast-ep-card__player,
.reader-audio-box__player {
  width: 100%;
  height: 44px;
  border-radius: 999px;
}

.podcast-ep-card__foot {
  display: flex;
  justify-content: flex-end;
}

.podcast-ep-card__link,
.reader-audio-box__link {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: #06526D;
  text-decoration: none;
}

.podcast-ep-card__link:hover,
.reader-audio-box__link:hover {
  color: #CC470A;
  text-decoration: underline;
}

.reader-audio-box {
  margin: 0 0 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: #F4F7F9;
  border: 1px solid rgba(5, 74, 99, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reader-audio-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.reader-audio-box__label {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: #053244;
}

body.reader-theme-dark .reader-audio-box {
  background: #1E252A;
  border-color: rgba(232, 228, 220, 0.14);
}

body.reader-theme-dark .reader-audio-box__label,
body.reader-theme-dark .reader-audio-box__link {
  color: #E8E4DC;
}
