/* =========================================================
   Arakan Literature — Main Stylesheet
   Pure CSS · No Tailwind · No SVG · Modern 2026 Design
   Version 4.0 — with Mrauk U temple imagery
   ========================================================= */

/* ==========================================
   1. DESIGN TOKENS
   ========================================== */
:root {
  /* Brand palette */
  --gold:        #88612E;
  --gold-light:  #926A35;
  --gold-dark:   #694721;
  --gold-glow:   rgba(200,164,93,0.35);

  --crimson:      #702D32;
  --crimson-deep: #512026;
  --crimson-soft: rgba(112,45,50,0.08);
  --burgundy:     #3C171D;

  /* Neutrals */
  --sand:       #3B232A;
  --sand-dark:  #60414A;
  --ivory:      #241317;
  --cream:      #301B21;
  --charcoal:   #241317;
  --ink:        #180D10;
  --warm-gray:  #C6B5BA;
  --mist:       #B59EA6;

  /* Linguistics accents */
  --ipa:         #376F95;
  --phonetic:    #557A43;
  --grammar:     #98623F;
  --etymology:   #806492;
  --sample:      #327976;

  /* State colors */
  --success: #36764F;
  --warning: #A47A28;
  --error:   #AE4949;
  --info:    #376F95;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mm:      'Padauk', 'Noto Serif Myanmar', 'Myanmar Text', serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;
  --sp-4: 16px;  --sp-5: 20px;  --sp-6: 24px;
  --sp-8: 32px;  --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px;

  /* Layout */
  --container: 1440px;
  --container-narrow: 760px;
  --header-h: 88px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(56,42,38,0.04);
  --shadow-sm: 0 2px 8px rgba(56,42,38,0.06);
  --shadow-md: 0 6px 20px rgba(56,42,38,0.08);
  --shadow-lg: 0 16px 40px rgba(56,42,38,0.10);
  --shadow-xl: 0 24px 60px rgba(56,42,38,0.14);
  --shadow-gold: 0 8px 24px rgba(200,164,93,0.20);
  --shadow-crimson: 0 12px 32px rgba(112,45,50,0.22);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.25s;
  --dur-slow: 0.45s;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ivory:      #241317;
    --cream:      #301B21;
    --sand:       #3B232A;
    --sand-dark:  #60414A;
    --charcoal:   #241317;
    --ink:        #180D10;
    --warm-gray:  #C6B5BA;
    --mist:       #B59EA6;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.55);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.6);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.7);
  }
}

/* ==========================================
   2. RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: #FFFFFF;
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  min-height: 100vh;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: #FFFFFF; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: #FFFFFF; transition: all var(--dur-base) var(--ease); }
input, textarea, select { font: inherit; color: #FFFFFF; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(114,96,85,0.20);
  border: 3px solid var(--ivory);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(114,96,85,0.40); }

::selection { background: var(--gold-glow); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ==========================================
   3. TYPOGRAPHY
   ========================================== */
.mm {
  font-family: var(--font-mm);
  line-height: 1.9;
  font-feature-settings: 'kern' 1, 'liga' 1;
  word-break: break-word;
  letter-spacing: 0.005em;
}
.mm-inline { font-family: var(--font-mm); font-size: 1.02em; line-height: 1.9; }
.mm-display { font-family: var(--font-mm); font-weight: 700; letter-spacing: 0.01em; line-height: 1.3; }

.ipa {
  font-family: var(--font-mono);
  color: #FFFFFF;
  font-size: 0.92em;
  letter-spacing: 0.01em;
  background: rgba(55,111,149,0.06);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}
.phonetic {
  font-family: var(--font-body);
  font-style: italic;
  color: #FFFFFF;
  font-size: 0.92em;
}
.roman {
  font-family: var(--font-mono);
  color: #FFFFFF;
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

.font-display { font-family: var(--font-display); letter-spacing: -0.01em; }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }

.italic  { font-style: italic; }
.bold    { font-weight: 700; }
.semibold{ font-weight: 600; }
.medium  { font-weight: 500; }
.center  { text-align: center; }
.right   { text-align: right; }

.text-xs   { font-size: 11.5px; letter-spacing: 0.02em; }
.text-sm   { font-size: 13.5px; }
.text-base { font-size: 15px; }
.text-lg   { font-size: 17px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: clamp(22px, 3vw, 26px); }
.text-3xl  { font-size: clamp(26px, 4vw, 34px); }
.text-4xl  { font-size: clamp(32px, 5vw, 44px); }
.text-5xl  { font-size: clamp(40px, 7vw, 60px); }

.color-crimson    { color: #FFFFFF; }
.color-gold       { color: #FFFFFF; }
.color-gold-dark  { color: #FFFFFF; }
.color-gray       { color: #FFFFFF; }
.color-ivory      { color: #FFFFFF; }
.color-sand       { color: #FFFFFF; }
.color-ipa        { color: #FFFFFF; }
.color-phonetic   { color: #FFFFFF; }

.uppercase     { text-transform: uppercase; letter-spacing: 0.15em; }
.tracking-wide { letter-spacing: 0.06em; }
.tracking-wide2{ letter-spacing: 0.18em; }
.tracking-wide3{ letter-spacing: 0.28em; }

.line-clamp-1, .line-clamp-2, .line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ==========================================
   4. LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}
@media (min-width: 768px) {
  .container { padding-left: var(--sp-10); padding-right: var(--sp-10); }
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}

.row          { display: flex; flex-wrap: wrap; }
.row-center   { display: flex; flex-wrap: wrap; align-items: center; }
.row-between  { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.col          { display: flex; flex-direction: column; }

.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.grid   { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-sidebar    { grid-template-columns: 1fr; gap: var(--sp-10); }
.grid-sidebar-lg { grid-template-columns: 1fr; gap: var(--sp-10); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-sidebar    { grid-template-columns: 1fr 340px; }
  .grid-sidebar-lg { grid-template-columns: 300px 1fr; }
}

.hidden   { display: none !important; }
.block    { display: block; }
.inline-block { display: inline-block; }

.mt-2 { margin-top: var(--sp-2); }   .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }   .mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); } .mt-12 { margin-top: var(--sp-12); }
.mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); } .mb-12 { margin-bottom: var(--sp-12); }
.mb-14 { margin-bottom: var(--sp-16); }

.p-4 { padding: var(--sp-4); } .p-5 { padding: var(--sp-5); } .p-6 { padding: var(--sp-6); }
.pt-4 { padding-top: var(--sp-4); } .pt-6 { padding-top: var(--sp-6); }
.pt-8 { padding-top: var(--sp-8); } .pb-8 { padding-bottom: var(--sp-8); }

/* ==========================================
   5. DECORATIVE
   ========================================== */
.arakan-border, .rakhine-border {
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0px, var(--gold) 8px,
    transparent 8px, transparent 12px,
    var(--gold-dark) 12px, var(--gold-dark) 14px,
    transparent 14px, transparent 18px
  );
}

.arakan-pattern, .rakhine-pattern {
  background-color: var(--sand);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(200,164,93,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(112,45,50,0.04) 0%, transparent 40%),
    linear-gradient(45deg, rgba(200,164,93,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200,164,93,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(200,164,93,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(200,164,93,.08) 75%);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, 0 24px, 24px -24px, -24px 0;
}

.arakan-pattern-gold, .rakhine-pattern-gold {
  background-image:
    linear-gradient(45deg, rgba(200,164,93,.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200,164,93,.05) 25%, transparent 25%);
  background-size: 40px 40px;
}

.arakan-textile, .rakhine-textile {
  height: 20px;
  background-color: var(--crimson-deep);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0px, transparent 8px,
    rgba(200,164,93,.65) 8px, rgba(200,164,93,.65) 10px
  );
}

.rule-gold {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.4;
}

/* ==========================================
   6. BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 12px 24px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  box-shadow: 0 4px 14px rgba(112,45,50,0.24);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(112,45,50,0.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: #FFFFFF;
  background: var(--ivory);
  border-color: var(--sand-dark);
}
.btn-ghost:hover {
  color: #FFFFFF;
  border-color: rgba(200,164,93,0.6);
  background: var(--cream);
  transform: translateY(-1px);
}
.btn-gold {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200,164,93,0.32);
}
.btn-outline-gold {
  color: #FFFFFF;
  background: transparent;
  border-color: rgba(200,164,93,0.45);
}
.btn-outline-gold:hover {
  background: rgba(200,164,93,0.08);
  border-color: var(--gold);
}
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: var(--r-sm); }
.btn-lg { padding: 15px 32px; font-size: 14.5px; }

/* ==========================================
   7. FORMS
   ========================================== */
.form-input, .form-search, .form-textarea, .form-select {
  width: 100%;
  background: var(--ivory);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #FFFFFF;
  outline: none;
  transition: all var(--dur-base) var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: #FFFFFF; opacity: 0.75; }
.form-input:hover, .form-textarea:hover { border-color: rgba(200,164,93,0.4); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.75; }
.form-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B5E55' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.search-bar { position: relative; }
.search-bar .form-search { padding: 16px 16px 16px 54px; font-size: 15px; }
.search-bar-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #FFFFFF;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease);
}
.search-bar:focus-within .search-bar-icon { transform: translateY(-50%) scale(1.1); }
@media (min-width: 768px) {
  .search-bar .form-search { padding-right: 140px; }
}
.search-bar-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
@media (min-width: 768px) { .search-bar-btn { display: inline-flex; } }

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--sand-dark);
  border-radius: var(--r-full);
  transition: background var(--dur-base) var(--ease);
}
.switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: var(--ivory);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(56,42,38,0.25);
  transition: transform var(--dur-base) var(--ease-out);
}
.switch input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
.switch input:checked + .switch-slider::before {
  transform: translateX(18px);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--cream);
  border: 1px solid var(--sand-dark);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
}

/* ==========================================
   8. CARDS
   ========================================== */
.card {
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--dur-base) var(--ease);
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(200,164,93,0.45);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   9. HEADER / NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(36,19,23,0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: all var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(36,19,23,0.96);
  box-shadow: 0 4px 24px rgba(56,42,38,0.06);
  border-bottom-color: rgba(200,164,93,0.12);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(36,19,23,0.85); }
  .site-header.scrolled { background: rgba(36,19,23,0.96); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--sp-5);
}
@media (min-width: 1024px) { .header-inner { height: 88px; } }

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: transform var(--dur-base) var(--ease);
}
.logo-group:hover { transform: translateY(-1px); }
.logo-group img { width: 46px; height: 46px; object-fit: contain; }
@media (min-width: 1024px) { .logo-group img { width: 52px; height: 52px; } }

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: 3px;
}

.nav-menu { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .nav-menu { display: flex; } }

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease);
}
.nav-link:hover {
  color: #FFFFFF;
  background: var(--crimson-soft);
}
.nav-separator {
  font-size: 4px;
  color: #FFFFFF;
  opacity: 0.35;
  user-select: none;
  margin: 0 2px;
}

.header-cta {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  padding: 10px 22px;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-crimson);
}
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--r-md);
  transition: background var(--dur-base) var(--ease);
}
.hamburger:hover { background: var(--crimson-soft); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1024px) { .hamburger { display: none; } }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(36,26,23,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 400px;
  height: 100%;
  z-index: 56;
  background: var(--ivory);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.2);
}
.mobile-menu.open { transform: translateX(0); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sand-dark);
}
.mobile-menu-close {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #FFFFFF;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.mobile-menu-close:hover { color: #FFFFFF; background: var(--crimson-soft); }

.mobile-nav {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  padding: 14px 16px;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.mobile-nav-link::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  transition: all var(--dur-base) var(--ease);
}
.mobile-nav-link:hover { color: #FFFFFF; background: var(--crimson-soft); }
.mobile-nav-link:hover::before { opacity: 1; transform: scale(1.3); }

/* ==========================================
   10. FOOTER — Modern with Temple Texture
   ========================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #241013 0%, #421A20 45%, #301318 100%);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

/* Temple photo — very subtle, dark */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/hero-mrauk.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: sepia(0.5) saturate(0.4) contrast(1.1) brightness(0.25);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* Gradient overlay */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,164,93,0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(200,164,93,0.08), transparent 70%),
    linear-gradient(180deg,
      rgba(36,16,19,0.92) 0%,
      rgba(66,26,32,0.85) 45%,
      rgba(36,16,19,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0 0;
}

/* Footer hero */
.footer-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(200,164,93,0.12);
  margin-bottom: 60px;
}
@media (min-width: 992px) {
  .footer-hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: end;
  }
}

.footer-hero-left { max-width: 580px; }
.footer-brand { display: inline-block; margin-bottom: 20px; }

.footer-brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  background: linear-gradient(135deg, #3B232A 0%, #926A35 50%, #88612E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #FFFFFF;
}

.footer-brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: 12px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.75;
  color: #FFFFFF;
  max-width: 480px;
}

/* Newsletter */
.footer-newsletter {
  position: relative;
  padding: 28px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(200,164,93,0.18);
  border-radius: var(--r-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.footer-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,93,0.6), transparent);
}

.footer-newsletter-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.footer-newsletter-desc {
  font-size: 13px;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.65;
}

.newsletter-form { display: flex; gap: var(--sp-2); }

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(200,164,93,0.22);
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  transition: all var(--dur-base) var(--ease);
}
.newsletter-input::placeholder { color: #FFFFFF; }
.newsletter-input:focus {
  border-color: rgba(200,164,93,0.7);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 4px rgba(200,164,93,0.12);
}

.newsletter-btn {
  flex-shrink: 0;
  padding: 14px 22px;
  background: linear-gradient(135deg, #88612E, #694721);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-base) var(--ease);
}
.newsletter-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #926A35, #88612E);
  box-shadow: 0 12px 26px rgba(200,164,93,0.35);
}
.newsletter-btn:active { transform: translateY(0); }

.newsletter-note {
  font-size: 11px;
  color: #FFFFFF;
  margin-top: 12px;
}
.newsletter-note strong { color: #FFFFFF; font-weight: 500; }

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  padding-bottom: 60px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 60px; } }

.footer-col { min-width: 0; }

.footer-col-title {
  position: relative;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 22px;
  padding-left: 24px;
}
.footer-col-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 1px;
  background: #88612E;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  padding: 2px 0;
  font-size: 14px;
  color: #FFFFFF;
  transition: color var(--dur-base) var(--ease), gap var(--dur-base) var(--ease);
}
.footer-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #88612E, transparent);
  transition: width 0.4s var(--ease);
}
.footer-link:hover { color: #FFFFFF; gap: 8px; }
.footer-link:hover::before { width: 100%; }

.footer-link-arrow {
  font-size: 12px;
  color: #FFFFFF;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--dur-base) var(--ease);
}
.footer-link:hover .footer-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 14px;
  color: #FFFFFF;
  transition: color var(--dur-base) var(--ease);
}
.footer-contact-row:hover { color: #FFFFFF; }
.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(200,164,93,0.08);
  border: 1px solid rgba(200,164,93,0.18);
  font-size: 13px;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease);
}
.footer-contact-row:hover .footer-contact-icon {
  background: rgba(200,164,93,0.16);
  border-color: rgba(200,164,93,0.45);
  transform: scale(1.08);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,164,93,0.18);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}
.footer-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #88612E, #694721);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  z-index: 0;
}
.footer-social span { position: relative; z-index: 1; }
.footer-social:hover {
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(200,164,93,0.3);
}
.footer-social:hover::before { opacity: 1; }

.footer-bottom {
  padding: 28px 0;
  border-top: 1px solid rgba(200,164,93,0.12);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: var(--sp-6);
  }
}

.footer-copy { font-size: 13px; color: #FFFFFF; }
.footer-copy strong { color: #FFFFFF; font-weight: 500; }

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: #FFFFFF;
  transition: color var(--dur-base) var(--ease);
}
.footer-bottom-links a:hover { color: #FFFFFF; }

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #FFFFFF;
}
.footer-made .heart {
  color: #FFFFFF;
  animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #88612E, #694721);
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 12px 28px rgba(200,164,93,0.42);
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(200,164,93,0.55);
}
.back-to-top:active { transform: translateY(-2px) scale(1); }

/* ==========================================
   11. BREADCRUMB
   ========================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  color: #FFFFFF;
  margin-bottom: var(--sp-8);
}
.breadcrumb a { transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: #FFFFFF; }
.breadcrumb-sep { color: #FFFFFF; opacity: 0.6; font-size: 8px; }
.breadcrumb-current { color: #FFFFFF; font-weight: 500; }

/* ==========================================
   12. PAGE HERO — Subtle Temple Texture
   ========================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
  padding: 56px 0;
  isolation: isolate;
}
@media (min-width: 768px) { .page-hero { padding: 80px 0; } }

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/cta-pagodas.jpg');
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
  filter: sepia(0.6) saturate(0.3) contrast(1) brightness(1.25);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(200,164,93,0.25), transparent 70%),
    linear-gradient(to bottom, rgba(36,19,23,0.55), rgba(59,35,42,0.85));
  pointer-events: none;
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 500;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-left { justify-content: flex-start; }
.eyebrow-left::before { display: none; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-4);
}
.page-subtitle {
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* ==========================================
   13. SECTION HEADERS
   ========================================== */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}
.section-header-left { max-width: 660px; }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.section-subtitle {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.7;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  transition: all var(--dur-base) var(--ease);
}
.link-more:hover { color: #FFFFFF; gap: 12px; }
.link-more::after { content: '→'; transition: transform var(--dur-base) var(--ease); }

/* ==========================================
   14. STATS
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* ==========================================
   15. HOME HERO — Mrauk U Cinematic
   ========================================== */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}

/* Layer 1: Mrauk U temple photo */
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/hero-mrauk.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  filter: sepia(0.35) saturate(0.75) contrast(1.15) brightness(0.65);
  transform: scale(1.05);
  animation: heroZoom 24s ease-out forwards;
  z-index: 0;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.02); }
}

/* Layer 2: Crimson gradient overlay */
.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 60%, rgba(60,23,29,0.5), rgba(60,23,29,0.85) 100%),
    linear-gradient(180deg,
      rgba(36,16,19,0.75) 0%,
      rgba(60,23,29,0.35) 35%,
      rgba(112,45,50,0.45) 70%,
      rgba(36,16,19,0.85) 100%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* Fallback tint */
.hero-home-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200,164,93,0.28), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200,164,93,0.14), transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-home-img { display: none; }

.hero-home-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 720px;
  color: #FFFFFF;
}

.hero-home .eyebrow { color: #FFFFFF; }
.hero-home .eyebrow::before,
.hero-home .eyebrow::after {
  background: linear-gradient(90deg, transparent, rgba(226,199,135,0.7));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: var(--sp-6) 0;
  text-shadow:
    0 2px 20px rgba(0,0,0,0.4),
    0 0 60px rgba(200,164,93,0.15);
}
.hero-title .accent {
  color: #FFFFFF;
  text-shadow: 0 0 30px rgba(200,164,93,0.5);
}

.hero-desc {
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto var(--sp-10);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

.hero-home .btn-primary {
  background: linear-gradient(135deg, #88612E, #694721);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(200,164,93,0.3);
}
.hero-home .btn-primary:hover {
  background: linear-gradient(135deg, #926A35, #88612E);
  box-shadow: 0 16px 40px rgba(200,164,93,0.4);
}

.hero-home .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  border: 1px solid rgba(200,164,93,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-home .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(200,164,93,0.7);
  color: #FFFFFF;
}

.hero-search { position: relative; max-width: 480px; margin: 0 auto; }
.hero-search input {
  width: 100%;
  padding: 16px 22px 16px 54px;
  font-size: 15px;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid rgba(200,164,93,0.35);
  border-radius: var(--r-lg);
  color: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
  transition: all var(--dur-base) var(--ease);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.hero-search input::placeholder { color: #FFFFFF; }
.hero-search input:focus {
  border-color: #88612E;
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 0 5px rgba(200,164,93,0.15), 0 12px 36px rgba(0,0,0,0.4);
}
.hero-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #FFFFFF;
  pointer-events: none;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(200,164,93,0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 10;
}
.hero-scroll span {
  display: block;
  width: 3px;
  height: 8px;
  background: #88612E;
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(14px); opacity: 0.3; }
}

/* ==========================================
   16. WORD OF THE DAY
   ========================================== */
.wotd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  align-items: center;
}
@media (min-width: 1024px) {
  .wotd-grid { grid-template-columns: 1fr 1.2fr; gap: 72px; }
}

.wotd-card {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #702D32 0%, #3C171D 100%);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(60,23,29,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  isolation: isolate;
}
@media (min-width: 768px) { .wotd-card { padding: 44px; } }
.wotd-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(200,164,93,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(200,164,93,.08) 25%, transparent 25%);
  background-size: 44px 44px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.wotd-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,93,0.55), transparent);
  z-index: 1;
}
.wotd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(60,23,29,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.wotd-card-inner { position: relative; z-index: 2; }

.wotd-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--sp-6);
}
.wotd-meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(200,164,93,0.7);
}
.wotd-word {
  font-family: var(--font-mm);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: var(--sp-3);
  word-break: break-word;
  text-shadow: 0 2px 20px rgba(200,164,93,0.2);
}
.wotd-english {
  font-size: 14px;
  font-style: italic;
  color: #FFFFFF;
  margin-bottom: var(--sp-6);
}
.wotd-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(200,164,93,0.4), transparent);
  margin-bottom: var(--sp-6);
  border: 0;
}
.wotd-detail {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.85;
}
.wotd-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 5px;
}
.wotd-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  margin-top: var(--sp-8);
  letter-spacing: 0.05em;
  transition: all var(--dur-base) var(--ease);
}
.wotd-cta::after { content: '→'; transition: transform var(--dur-base) var(--ease); }
.wotd-card:hover .wotd-cta { color: #FFFFFF; gap: 12px; }

/* ==========================================
   17. WORD CARDS
   ========================================== */
.word-card {
  display: block;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.word-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.word-card:hover {
  border-color: rgba(200,164,93,0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.word-card:hover::before { transform: scaleX(1); }

.word-card-title {
  font-family: var(--font-mm);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  word-break: break-word;
  margin-bottom: var(--sp-3);
  transition: color var(--dur-base) var(--ease);
}
.word-card:hover .word-card-title { color: #FFFFFF; }

.word-card-eng {
  font-size: 14px;
  font-style: italic;
  color: #FFFFFF;
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}
.word-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--sand-dark);
}
.word-tag {
  font-family: var(--font-mm);
  font-size: 11px;
  color: #FFFFFF;
  background: var(--sand);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease);
}
.word-card:hover .word-tag {
  background: rgba(200,164,93,0.12);
  color: #FFFFFF;
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  padding: 10px 16px;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.recent-chip:hover {
  background: var(--ivory);
  border-color: rgba(200,164,93,0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.recent-chip-word {
  font-family: var(--font-mm);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  transition: color var(--dur-base) var(--ease);
}
.recent-chip:hover .recent-chip-word { color: #FFFFFF; }
.recent-chip-eng { font-size: 11px; color: #FFFFFF; }

/* ==========================================
   18. DICTIONARY ENTRY
   ========================================== */
.entry-item {
  display: block;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: var(--sp-4);
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .entry-item { padding: 30px; } }
.entry-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--crimson));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.entry-item:hover {
  border-color: rgba(200,164,93,0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.entry-item:hover::before { transform: scaleY(1); }

.entry-word {
  font-family: var(--font-mm);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: var(--sp-3);
  word-break: break-word;
  letter-spacing: 0.005em;
  transition: color var(--dur-base) var(--ease);
}
.entry-item:hover .entry-word { color: #FFFFFF; }

.entry-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.entry-tag {
  font-size: 11.5px;
  color: #FFFFFF;
  background: var(--sand);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  line-height: 1.4;
}
.entry-tag.mm-tag { font-family: var(--font-mm); font-size: 12.5px; }

.entry-note {
  margin-top: var(--sp-5);
  padding: 16px 20px;
  border-left: 3px solid rgba(200,164,93,0.6);
  background: linear-gradient(90deg, rgba(200,164,93,0.06), transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.entry-note-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 8px;
  font-weight: 600;
}
.entry-note-text {
  font-family: var(--font-mm);
  font-size: 14px;
  line-height: 1.9;
  color: #FFFFFF;
}

.letter-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.letter-divider-mark {
  font-family: var(--font-mm);
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}
.letter-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(200,164,93,0.5), transparent);
}

/* ==========================================
   19. ALPHABET BAR
   ========================================== */
.alpha-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.alpha-bar::-webkit-scrollbar { display: none; }

.alpha-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-family: var(--font-mm);
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.alpha-chip:hover {
  border-color: rgba(200,164,93,0.55);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.alpha-chip.active {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-crimson);
}
.alpha-chip.is-all {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
}

/* ==========================================
   20. PAGINATION
   ========================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-12);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--sand-dark);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}
.page-btn:hover {
  color: #FFFFFF;
  border-color: rgba(200,164,93,0.5);
  background: var(--sand);
  transform: translateY(-2px);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #FFFFFF;
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow-crimson);
}
.page-btn:disabled, .page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn-dots {
  padding: 0 6px;
  color: #FFFFFF;
  font-size: 13px;
}

/* ==========================================
   21. ARTICLE ROW
   ========================================== */
.article-list { display: flex; flex-direction: column; }

.article-row {
  display: block;
  position: relative;
  padding: 28px 0;
  border-bottom: 1px solid var(--sand-dark);
  transition: all 0.35s var(--ease);
}
.article-row:first-child { border-top: 1px solid var(--sand-dark); }
.article-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--crimson));
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.article-row:hover::before { transform: scaleY(1); }
.article-row:hover {
  padding-left: 22px;
  padding-right: 10px;
  background: linear-gradient(90deg, rgba(200,164,93,0.05), transparent 70%);
}

.article-row-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .article-row-inner { flex-direction: row; align-items: center; gap: var(--sp-6); }
}

.article-index {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  opacity: 0.65;
  transition: all var(--dur-base) var(--ease);
  letter-spacing: 0.02em;
}
.article-row:hover .article-index {
  opacity: 1;
  color: #FFFFFF;
  transform: scale(1.05);
}
@media (min-width: 768px) {
  .article-index-wrap {
    width: 72px;
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-shrink: 0;
  }
  .article-index-wrap::after {
    content: '';
    width: 1px;
    height: 26px;
    background: var(--sand-dark);
  }
}

.article-body { flex: 1; min-width: 0; }

.article-cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(200,164,93,0.28), rgba(200,164,93,0.18));
  border: 1px solid rgba(200,164,93,0.35);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
  font-weight: 600;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.005em;
  transition: color var(--dur-base) var(--ease);
}
.article-row:hover .article-title { color: #FFFFFF; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: #FFFFFF;
}
.article-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-sep { color: #FFFFFF; opacity: 0.6; font-size: 6px; }

.article-read {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  transition: all var(--dur-base) var(--ease);
}
@media (min-width: 768px) {
  .article-read-wrap { width: 110px; text-align: right; flex-shrink: 0; }
}
.article-read::after { content: '→'; transition: transform var(--dur-base) var(--ease); }
.article-row:hover .article-read { color: #FFFFFF; gap: 12px; }

.cat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.cat-chip:hover {
  border-color: rgba(200,164,93,0.55);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.cat-chip.active {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #FFFFFF;
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow-crimson);
}
.cat-chip-count { font-size: 10px; opacity: 0.7; }

.tag-pill {
  display: inline-block;
  font-size: 11.5px;
  color: #FFFFFF;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease);
}
.tag-pill:hover {
  background: rgba(200,164,93,0.14);
  color: #FFFFFF;
  border-color: rgba(200,164,93,0.4);
  transform: translateY(-1px);
}

/* ==========================================
   22. SIDEBAR
   ========================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 112px;
    align-self: flex-start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .sidebar::-webkit-scrollbar { width: 6px; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(200,164,93,0.3); border-radius: 3px; border: 0; }
}

.sidebar-card {
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  padding: 24px;
}
.sidebar-card.tinted { background: rgba(59,35,42,0.5); }
.sidebar-card.dashed { border-style: dashed; border-color: rgba(200,164,93,0.4); }

.sidebar-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--sp-3);
  letter-spacing: 0.01em;
}
.sidebar-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.35;
  margin-bottom: var(--sp-4);
  border: 0;
}
.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.sidebar-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}
.sidebar-stat-label {
  font-size: 11px;
  color: #FFFFFF;
  margin-top: 4px;
}

.sidebar-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: #FFFFFF;
  transition: all var(--dur-base) var(--ease);
}
.sidebar-list-item:hover {
  color: #FFFFFF;
  background: rgba(200,164,93,0.08);
  padding-left: 16px;
}
.sidebar-list-item::before {
  content: '◆';
  font-size: 5px;
  color: #FFFFFF;
  margin-right: 8px;
}
.sidebar-list-item > span:first-child { flex: 1; display: flex; align-items: center; }
.sidebar-list-count { font-size: 11px; color: #FFFFFF; }

.sidebar-popular { display: flex; flex-direction: column; gap: var(--sp-4); }
.sidebar-popular-item { display: block; }
.sidebar-popular-title {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.55;
  transition: color var(--dur-base) var(--ease);
}
.sidebar-popular-item:hover .sidebar-popular-title { color: #FFFFFF; }
.sidebar-popular-meta {
  font-size: 10.5px;
  color: #FFFFFF;
  margin-top: 5px;
}

.sidebar-newsletter-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  background: var(--ivory);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--r-md);
  outline: none;
  margin-bottom: 10px;
  transition: all var(--dur-base) var(--ease);
}
.sidebar-newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ==========================================
   23. WORD DETAIL
   ========================================== */
.entry-header { padding: 40px 0 0; }
.entry-hero-word {
  font-family: var(--font-mm);
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin-bottom: var(--sp-6);
  word-break: break-word;
}

.entry-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--sp-8);
}
.entry-tag-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  font-size: 14px;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.entry-tag-box:hover { border-color: rgba(200,164,93,0.5); }
.entry-tag-box .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 600;
}
.entry-tag-box .divider {
  width: 1px;
  height: 14px;
  background: rgba(200,164,93,0.4);
}
.entry-tag-box .value { font-weight: 500; color: #FFFFFF; }
.entry-tag-box.mm .value { font-family: var(--font-mm); font-size: 15px; }

.entry-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-8) 0;
}
.entry-divider::before, .entry-divider::after {
  content: '';
  height: 1px;
  width: 48px;
  background: rgba(200,164,93,0.4);
}
.entry-divider-mark { color: #FFFFFF; font-size: 8px; }

.entry-section { margin-bottom: var(--sp-10); }
.entry-section-title {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--sp-4);
  font-weight: 700;
}
.entry-section-body {
  padding: 22px 26px;
  border-left: 3px solid rgba(200,164,93,0.6);
  background: linear-gradient(90deg, rgba(200,164,93,0.05), transparent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-mm);
  font-size: 16px;
  line-height: 1.95;
  color: #FFFFFF;
  white-space: pre-line;
}
.entry-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px) { .entry-details-grid { grid-template-columns: 1fr 1fr; } }
.entry-detail {
  padding: 16px 18px;
  background: rgba(59,35,42,0.4);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.entry-detail:hover {
  border-color: rgba(200,164,93,0.4);
  background: rgba(59,35,42,0.6);
}
.entry-detail-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 6px;
  font-weight: 600;
}
.entry-detail-value {
  font-family: var(--font-mm);
  font-size: 14px;
  line-height: 1.85;
  color: #FFFFFF;
  white-space: pre-line;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--sand-dark);
}
.entry-actions .spacer { flex: 1; }

.related-list { display: flex; flex-direction: column; gap: 2px; }
.related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 9px 10px;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.related-item:hover {
  background: rgba(200,164,93,0.08);
  padding-left: 14px;
}
.related-item-word {
  font-family: var(--font-mm);
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  transition: color var(--dur-base) var(--ease);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-item:hover .related-item-word { color: #FFFFFF; }
.related-item-eng {
  font-size: 10.5px;
  color: #FFFFFF;
  text-align: right;
  flex-shrink: 0;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   24. ARTICLE VIEW / PROSE
   ========================================== */
.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-dark);
  padding: 48px 0 0;
  isolation: isolate;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/hero-mrauk.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  filter: sepia(0.55) saturate(0.35) contrast(1.05) brightness(1.15);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 70% at 50% 0%, rgba(200,164,93,0.22), transparent 70%),
    linear-gradient(to bottom,
      rgba(36,19,23,0.35) 0%,
      rgba(36,19,23,0.65) 40%,
      rgba(59,35,42,0.95) 100%);
  pointer-events: none;
  z-index: 1;
}
.article-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.article-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-6);
}
.article-hero-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 6px 14px;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-6);
}
.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
  padding-bottom: var(--sp-10);
  font-size: 12.5px;
  color: #FFFFFF;
}
.article-author { display: flex; align-items: center; gap: var(--sp-3); }
.article-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-crimson);
}
.article-author-info { text-align: left; }
.article-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}
.article-author-role {
  font-size: 11px;
  color: #FFFFFF;
  margin-top: 3px;
}

.article-featured {
  margin-bottom: var(--sp-10);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-lg);
}
.article-featured img { width: 100%; display: block; }

/* Prose */
.prose {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: #FFFFFF;
  max-width: 780px;
  letter-spacing: 0.003em;
}
.prose > p { margin-bottom: 26px; }
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 68px;
  line-height: 0.85;
  padding: 8px 10px 0 0;
  color: #FFFFFF;
  font-weight: 700;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.22;
  margin-top: 52px;
  margin-bottom: 22px;
  padding-left: 18px;
  position: relative;
  scroll-margin-top: 120px;
  letter-spacing: -0.005em;
}
.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--crimson));
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.35;
  margin-top: 38px;
  margin-bottom: 14px;
  scroll-margin-top: 120px;
}
.prose a {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(200,164,93,0.5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: all var(--dur-base) var(--ease);
}
.prose a:hover {
  color: #FFFFFF;
  text-decoration-color: var(--gold);
}
.prose strong { color: #FFFFFF; font-weight: 700; }
.prose em { font-style: italic; color: #FFFFFF; }
.prose ul, .prose ol { margin: 26px 0; }
.prose li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}
.prose ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 8px;
  color: #FFFFFF;
}
.prose ol { counter-reset: item; }
.prose ol li::before {
  counter-increment: item;
  content: counter(item) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
}
.prose blockquote {
  margin: 44px 0;
  padding: 26px 34px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(200,164,93,0.06), transparent);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.55;
  color: #FFFFFF;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose img {
  border-radius: var(--r-md);
  margin: 34px 0;
  border: 1px solid var(--sand-dark);
  box-shadow: var(--shadow-md);
}

.prose-cta {
  margin: 44px 0;
  padding: 26px 30px;
  background: linear-gradient(90deg, rgba(200,164,93,0.08), rgba(200,164,93,0.02));
  border: 1px solid rgba(200,164,93,0.35);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose-cta-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 12px;
}
.prose-cta p {
  font-size: 15px;
  line-height: 1.85;
  color: #FFFFFF;
  margin: 0;
}

/* ==========================================
   25. LINGUISTICS COMPONENTS
   ========================================== */
.phonetic-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding: 16px 20px;
  background: rgba(55,111,149,0.05);
  border: 1px solid rgba(55,111,149,0.18);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-6);
}
.phonetic-block-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 700;
}
.phonetic-block-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.script-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}
.script-compare-col {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1px solid var(--sand-dark);
  text-align: center;
}
.script-compare-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: 600;
}
.script-compare-value {
  font-family: var(--font-mm);
  font-size: 26px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.4;
}

.word-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}
.word-part {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.word-part:hover {
  border-color: rgba(200,164,93,0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.word-part-script {
  font-family: var(--font-mm);
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
}
.word-part-roman {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FFFFFF;
  font-style: italic;
}
.word-part-meaning { font-size: 11px; color: #FFFFFF; }

.grammar-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  background: rgba(152,98,63,0.08);
  border: 1px solid rgba(152,98,63,0.25);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
}

.etymology-box {
  margin: var(--sp-5) 0;
  padding: 18px 22px;
  background: rgba(128,100,146,0.05);
  border: 1px solid rgba(128,100,146,0.18);
  border-left: 3px solid var(--etymology);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.etymology-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 8px;
}
.etymology-text {
  font-size: 14px;
  line-height: 1.75;
  color: #FFFFFF;
  font-style: italic;
}

.usage-example {
  margin: var(--sp-5) 0;
  padding: 18px 22px;
  background: rgba(50,121,118,0.05);
  border: 1px solid rgba(50,121,118,0.18);
  border-radius: var(--r-md);
}
.usage-example-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 10px;
}
.usage-example-native {
  font-family: var(--font-mm);
  font-size: 16px;
  line-height: 1.85;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.usage-example-translation {
  font-size: 13.5px;
  color: #FFFFFF;
  font-style: italic;
  line-height: 1.7;
}

/* ==========================================
   26. SHARE & AUTHOR
   ========================================== */
.share-row {
  margin-top: var(--sp-10);
  padding: 26px;
  background: rgba(200,164,93,0.05);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.share-row-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.share-row-sub { font-size: 12.5px; color: #FFFFFF; }
.share-buttons { display: flex; gap: var(--sp-2); }

.share-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}
.share-btn:hover {
  color: #FFFFFF;
  border-color: rgba(200,164,93,0.5);
  background: var(--cream);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.toc-link {
  display: block;
  padding: 9px 12px 9px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #FFFFFF;
  border-left: 2px solid var(--sand-dark);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: all var(--dur-base) var(--ease);
}
.toc-link:hover {
  color: #FFFFFF;
  border-left-color: rgba(200,164,93,0.55);
  background: rgba(200,164,93,0.06);
}
.toc-link.active {
  color: #FFFFFF;
  font-weight: 600;
  border-left-color: var(--gold);
  background: rgba(200,164,93,0.10);
}

.author-bio {
  margin-top: var(--sp-8);
  padding: 30px;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
@media (min-width: 640px) { .author-bio { flex-direction: row; } }
.author-bio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}
.author-bio-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-crimson);
}
.author-bio-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.author-bio-role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 12px;
  font-weight: 600;
}
.author-bio-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #FFFFFF;
}

.prev-next {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}
@media (min-width: 640px) { .prev-next { grid-template-columns: 1fr 1fr; } }
.prev-next-card {
  display: block;
  padding: 26px;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  transition: all 0.35s var(--ease-out);
}
.prev-next-card:hover {
  border-color: rgba(200,164,93,0.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.prev-next-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 12px;
  font-weight: 700;
}
.prev-next-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  transition: color var(--dur-base) var(--ease);
}
.prev-next-card:hover .prev-next-title { color: #FFFFFF; }
.prev-next-date { font-size: 11px; color: #FFFFFF; margin-top: 8px; }

/* ==========================================
   27. TRANSLATE / CONVERTER
   ========================================== */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 15px;
  font-size: 11px;
  border: 1px solid var(--sand-dark);
  background: var(--sand);
  color: #FFFFFF;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
  font-weight: 500;
}
.pipeline-step.active {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-crimson);
}
.pipeline-step.done {
  background: rgba(200,164,93,0.14);
  border-color: rgba(200,164,93,0.5);
  color: #FFFFFF;
}
.pipeline-step-num { font-weight: 700; }
.pipeline-arrow { color: #FFFFFF; font-size: 15px; opacity: 0.7; }

.conv-card {
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-8);
}
.conv-card-top {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
}
.conv-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 22px 30px;
  border-bottom: 1px solid var(--sand-dark);
  background: linear-gradient(to right, rgba(200,164,93,0.06), transparent);
}
.conv-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}
.conv-card-sub { font-size: 11.5px; color: #FFFFFF; margin-top: 3px; }
.conv-card-mode {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
}

.conv-body { padding: 30px; }
@media (max-width: 640px) { .conv-body { padding: 20px; } }

.conv-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 1024px) {
  .conv-panels { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}

.conv-panel {
  background: var(--ivory);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  transition: all var(--dur-base) var(--ease);
}
.conv-panel:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.conv-panel.tinted { background: rgba(59,35,42,0.35); }

.conv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 14px 20px;
  border-bottom: 1px solid var(--sand-dark);
  background: linear-gradient(to bottom, rgba(200,164,93,0.05), transparent);
}
.conv-lang {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  color: #FFFFFF;
}
.conv-lang.src { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.conv-lang.tgt { background: linear-gradient(135deg, var(--crimson), var(--crimson-deep)); }
.conv-lang .dot { font-size: 6px; opacity: 0.9; }

.conv-textarea {
  flex: 1;
  width: 100%;
  min-height: 300px;
  padding: 20px;
  font-family: var(--font-mm);
  font-size: 17px;
  line-height: 2;
  color: #FFFFFF;
  background: transparent;
  border: 0;
  outline: none;
  resize: vertical;
  letter-spacing: 0.005em;
}
.conv-textarea::placeholder { color: #FFFFFF; opacity: 0.55; }
.conv-textarea.english {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
}

.conv-output {
  flex: 1;
  min-height: 300px;
  padding: 20px;
  font-family: var(--font-mm);
  font-size: 17px;
  line-height: 2;
  color: #FFFFFF;
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: 0.005em;
}
.conv-output.is-empty { color: #FFFFFF; opacity: 0.55; }

.conv-counter {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  font-family: var(--font-mono);
}
.conv-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #FFFFFF;
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease);
}
.conv-icon-btn:hover { color: #FFFFFF; background: rgba(200,164,93,0.10); }

.conv-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  margin-top: var(--sp-6);
  border-top: 1px solid var(--sand-dark);
}
.conv-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  user-select: none;
}
.conv-option span { font-size: 13px; color: #FFFFFF; }

.conv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--sand-dark);
  margin-top: var(--sp-6);
}
.conv-actions .spacer { flex: 1; }
.conv-link-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #FFFFFF;
  transition: color var(--dur-base) var(--ease);
  cursor: pointer;
}
.conv-link-clear:hover { color: #FFFFFF; }

.conv-hints {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  font-size: 11px;
  color: #FFFFFF;
}
.conv-hint { display: inline-flex; align-items: center; gap: 6px; }

.stage2-box {
  margin-top: var(--sp-5);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stage2-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 15px 20px;
  background: rgba(200,164,93,0.05);
  text-align: left;
  transition: background var(--dur-base) var(--ease);
  cursor: pointer;
}
.stage2-toggle:hover { background: rgba(200,164,93,0.10); }
.stage2-toggle-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}
.stage2-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(200,164,93,0.15);
}
.stage2-badge {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--ivory);
  font-family: var(--font-mono);
}
.stage2-badge.gold { color: #FFFFFF; border: 1px solid rgba(200,164,93,0.3); }
.stage2-badge.crimson { color: #FFFFFF; border: 1px solid rgba(112,45,50,0.3); }
.stage2-chevron {
  font-size: 12px;
  color: #FFFFFF;
  transition: transform var(--dur-base) var(--ease);
}
.stage2-box.open .stage2-chevron { transform: rotate(180deg); }
.stage2-body { display: none; border-top: 1px solid var(--sand-dark); }
.stage2-box.open .stage2-body { display: block; }

.coverage-bar-wrap {
  padding: 18px 20px;
  background: rgba(200,164,93,0.04);
  border-bottom: 1px solid var(--sand-dark);
}
.coverage-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.coverage-bar-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 700;
}
.coverage-bar-value {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-mono);
}
.coverage-bar {
  height: 8px;
  background: var(--sand-dark);
  border-radius: var(--r-full);
  overflow: hidden;
}
.coverage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: var(--r-full);
  transition: width 0.6s var(--ease-out);
  width: 0;
}
.coverage-hint { font-size: 11px; color: #FFFFFF; margin-top: 10px; }

.burmese-intermediate {
  padding: 18px 20px;
  font-family: var(--font-mm);
  font-size: 14.5px;
  line-height: 2;
  color: #FFFFFF;
  background: var(--ivory);
  min-height: 60px;
}

.matches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: var(--sp-4);
}
@media (min-width: 640px) { .matches-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .matches-grid { grid-template-columns: repeat(3, 1fr); } }

.match-item {
  font-family: var(--font-mm);
  font-size: 11.5px;
  padding: 12px 14px;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease);
}
.match-item:hover { border-color: rgba(200,164,93,0.45); }
.match-item-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.match-item-src { color: #FFFFFF; }
.match-item-arrow { color: #FFFFFF; }
.match-item-tgt { color: #FFFFFF; font-weight: 700; }
.match-item-phon {
  font-size: 10.5px;
  color: #FFFFFF;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.match-item-phon em { font-style: italic; }

.instructions {
  margin-top: var(--sp-12);
  padding: 34px;
  background: linear-gradient(135deg, rgba(200,164,93,0.06), rgba(200,164,93,0.02));
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
}
.instructions-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.instructions-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.instructions-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}
.instructions ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.instructions li {
  font-size: 14px;
  line-height: 1.75;
  color: #FFFFFF;
}
.instructions li strong { color: #FFFFFF; font-weight: 600; }
.instructions li span.crimson { color: #FFFFFF; font-weight: 600; }

/* ==========================================
   28. TOOLS GRID
   ========================================== */
.tool-search-wrap {
  position: relative;
  max-width: 660px;
  margin: var(--sp-8) auto 0;
  background: var(--ivory);
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--r-lg);
  transition: all var(--dur-base) var(--ease);
}
.tool-search-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-glow);
}
.tool-search-wrap input {
  width: 100%;
  padding: 17px 52px 17px 54px;
  font-size: 15px;
  background: transparent;
  border: 0;
  outline: none;
  color: #FFFFFF;
  border-radius: inherit;
}
.tool-search-wrap input::placeholder { color: #FFFFFF; opacity: 0.7; }
.tool-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #FFFFFF;
  pointer-events: none;
}
.tool-search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #FFFFFF;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease);
  display: none;
}
.tool-search-clear.visible { display: block; }
.tool-search-clear:hover { color: #FFFFFF; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: var(--sp-6);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 17px;
  border-radius: var(--r-md);
  color: #FFFFFF;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
}
.filter-chip:hover {
  color: #FFFFFF;
  border-color: rgba(200,164,93,0.6);
  background: var(--cream);
  transform: translateY(-2px);
}
.filter-chip.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  border-color: transparent;
  box-shadow: var(--shadow-crimson);
}
.filter-chip .count {
  font-size: 11px;
  opacity: 0.75;
  padding-left: 6px;
  border-left: 1px solid currentColor;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,164,93,0.5);
  box-shadow: var(--shadow-xl), 0 6px 16px rgba(200,164,93,0.08);
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.tool-card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(112,45,50,0.06), rgba(200,164,93,0.10));
  border: 1px solid rgba(200,164,93,0.25);
  color: #FFFFFF;
  transition: all 0.35s var(--ease);
  flex-shrink: 0;
}
.tool-card:hover .tool-card-icon {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  border-color: transparent;
  color: #FFFFFF;
  transform: rotate(-4deg) scale(1.06);
  box-shadow: var(--shadow-crimson);
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  color: #FFFFFF;
  background: rgba(200,164,93,0.10);
  border: 1px solid rgba(200,164,93,0.28);
}
.tool-tag.new { color: #FFFFFF; background: linear-gradient(135deg, var(--crimson), var(--crimson-deep)); border-color: transparent; }
.tool-tag.popular { color: #FFFFFF; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border-color: transparent; }

.tool-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}
.tool-card-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: #FFFFFF;
  margin-bottom: var(--sp-6);
  flex: 1;
}
.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  transition: gap 0.35s var(--ease);
}
.tool-card:hover .tool-card-link { gap: 14px; }
.tool-card-link::after { content: '→'; }
.tool-card.is-disabled { opacity: 0.72; pointer-events: none; }

.stat-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 768px) { .stat-blocks { grid-template-columns: repeat(4, 1fr); } }
.stat-block {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid rgba(200,164,93,0.15);
  transition: background var(--dur-base) var(--ease);
}
.stat-block:hover { background: rgba(200,164,93,0.04); }
.stat-block:last-child { border-right: 0; }
.stat-block-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-block-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* ==========================================
   29. ADSENSE
   ========================================== */
.adsense-wrap {
  position: relative;
  margin: var(--sp-6) auto;
  padding: 12px;
  background: rgba(59,35,42,0.4);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 970px;
}
.adsense-wrap .adsbygoogle { display: block; width: 100%; }
.adsense-label {
  position: absolute;
  top: 4px;
  left: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.65;
  pointer-events: none;
}
.sidebar .adsense-wrap { margin: 0 0 var(--sp-6); min-height: 250px; }

/* ==========================================
   30. CTA BANNER — Pagoda Close-up
   ========================================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 110px 24px;
  text-align: center;
  background: var(--burgundy);
  isolation: isolate;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/cta-pagodas.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  filter: sepia(0.4) saturate(0.65) contrast(1.2) brightness(0.55) hue-rotate(-10deg);
  transform: scale(1.08);
  z-index: 0;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(60,23,29,0.85) 0%,
      rgba(112,45,50,0.55) 40%,
      rgba(60,23,29,0.75) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200,164,93,0.15), transparent 70%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
.cta-banner-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.12;
  margin: var(--sp-6) 0 var(--sp-4);
  letter-spacing: -0.015em;
  text-shadow:
    0 2px 24px rgba(0,0,0,0.5),
    0 0 80px rgba(200,164,93,0.2);
}
.cta-banner-title .accent { color: #FFFFFF; }
.cta-banner-desc {
  font-size: 15.5px;
  line-height: 1.75;
  color: #FFFFFF;
  margin-bottom: var(--sp-8);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}
.cta-banner .btn-gold {
  background: linear-gradient(135deg, #926A35, #88612E);
  color: #FFFFFF;
  box-shadow: 0 14px 36px rgba(200,164,93,0.35);
}
.cta-banner .btn-gold:hover {
  background: linear-gradient(135deg, #926A35, #926A35);
  box-shadow: 0 20px 48px rgba(200,164,93,0.5);
  transform: translateY(-3px);
}
.cta-banner .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  border: 1px solid rgba(200,164,93,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cta-banner .btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: #88612E;
  color: #FFFFFF;
}

.eyebrow-light {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.eyebrow-light::before, .eyebrow-light::after {
  content: '';
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,199,135,0.7), transparent);
}

/* ==========================================
   31. EMPTY STATE
   ========================================== */
.empty-state {
  text-align: center;
  padding: 88px 20px;
}
.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #FFFFFF;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--sp-2);
}
.empty-desc {
  font-size: 14px;
  color: #FFFFFF;
  max-width: 420px;
  margin: 0 auto var(--sp-6);
  line-height: 1.7;
}

/* ==========================================
   32. TOAST
   ========================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-deep));
  padding: 13px 22px;
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(60,23,29,0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.45s var(--ease-out);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ==========================================
   33. ANIMATIONS
   ========================================== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(200,164,93,0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease-out) both; }

#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  z-index: 61;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(200,164,93,0.55);
}

/* ==========================================
   34. AUTOCOMPLETE
   ========================================== */
.ac-dropdown {
  position: fixed;
  z-index: 55;
  display: none;
}
.ac-dropdown.open { display: block; }
.ac-dropdown-inner {
  background: var(--ivory);
  border: 1px solid var(--sand-dark);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(56,42,38,0.20);
  overflow: hidden;
}
.ac-list { max-height: 420px; overflow-y: auto; padding: 6px 0; }
.ac-item { display: block; }
.ac-item button {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: 11px 18px;
  text-align: left;
  transition: background var(--dur-fast) var(--ease);
  cursor: pointer;
}
.ac-item button:hover,
.ac-item[data-active="true"] button {
  background: rgba(200,164,93,0.08);
}
.ac-word {
  font-family: var(--font-mm);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}
.ac-meta {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: #FFFFFF;
  min-width: 0;
}
.ac-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-meta .mm-mini { font-family: var(--font-mm); }
.ac-arrow {
  color: #FFFFFF;
  font-size: 12px;
  flex-shrink: 0;
}
.ac-item mark {
  background: rgba(200,164,93,0.3);
  color: #FFFFFF;
  border-radius: 3px;
  padding: 0 3px;
}
.ac-footer {
  display: none;
  border-top: 1px solid var(--sand-dark);
  background: rgba(200,164,93,0.05);
  padding: 12px 18px;
  text-align: center;
}
.ac-footer.visible { display: block; }
.ac-footer button {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease);
}
.ac-footer button:hover { color: #FFFFFF; }

/* ==========================================
   35. UTILITIES
   ========================================== */
.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;
}
.sr-only:focus,
.sr-only:not(.sr-only) {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 9999;
  background: var(--crimson);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 8px; }

.main-content { padding-top: 91px; }
@media (min-width: 768px) { .main-content { padding-top: 95px; } }

/* ==========================================
   36. RESPONSIVE
   ========================================== */
@media (max-width: 1023px) {
  .sidebar { position: static; top: auto; max-height: none; }
}
@media (max-width: 640px) {
  .prose { font-size: 16px; }
  .prose > p:first-of-type::first-letter { font-size: 52px; }
  .prose h2 { font-size: 22px; padding-left: 14px; }
  .prose h3 { font-size: 18px; }

  .footer-inner    { padding: 60px 0 0; }
  .footer-hero     { gap: 32px; padding-bottom: 40px; margin-bottom: 40px; }
  .footer-grid     { gap: 40px; padding-bottom: 40px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn  { width: 100%; padding: 14px 20px; }
  .back-to-top     { bottom: 16px; right: 16px; width: 44px; height: 44px; }

  .script-compare  { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-home::before { animation: none; }
}
/* Unified white text and dark native controls. */
:root { color-scheme: dark; }
html, body, body *, body *::before, body *::after {
  color: #FFFFFF;
}
input, textarea, select { caret-color: #FFFFFF; }
option, optgroup { color: #FFFFFF; background-color: #301B21; }
input::placeholder, textarea::placeholder { color: #FFFFFF; opacity: 1; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #FFFFFF;
  caret-color: #FFFFFF;
  box-shadow: 0 0 0 1000px #301B21 inset;
}
/* Keep control indicators visible against the dark surfaces. */
.switch-slider::before, .hamburger span { background: #FFFFFF; }
