/* ChakriBakri global site header and footer. Used by all EJS pages. */
:root {
  --site-shell-blue: #1d4ed8;
  --site-shell-blue-hover: #17358f;
  --site-shell-navy: #101d3b;
  --site-shell-navy-alt: #152a56;
  --site-shell-orange: #ffb36c;
  --site-shell-border: #e8edf5;
}
html { scroll-padding-top: 6rem; }
body > header {
  position: sticky !important; top: 0; z-index: 60 !important; width: 100%;
  border-bottom: 1px solid var(--site-shell-border) !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 3px 18px rgba(15,23,42,.045) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
body > header > div {
  width: 100%; max-width: 1280px !important; margin-inline: auto;
  padding-inline: clamp(1rem,3.5vw,2rem); box-sizing: border-box;
}
body > header > div > div {
  display: flex; min-height: 64px; align-items: center; justify-content: space-between;
}
body > header .homepage-brand { display: inline-flex; align-items: center; min-width: 0; }
body > header .homepage-brand img {
  display: block; width: auto; height: auto; max-width: min(52vw,210px);
  max-height: 3.1rem; object-fit: contain;
}
body > header .header-icon-action, body > header .header-menu-action {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center;
  gap: .5rem; border-radius: 12px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body > header .header-icon-action {
  border: 1px solid #dbe4f0; background: #fff !important; color: #1d4ed8 !important;
}
body > header .header-icon-action:hover {
  border-color: #c2d2ea; background: #f2f6ff !important; box-shadow: 0 4px 12px rgba(30,64,175,.07);
}
body > header .header-menu-action {
  border: 1px solid var(--site-shell-blue); background: var(--site-shell-blue) !important;
  color: #fff !important; box-shadow: 0 5px 14px rgba(30,64,175,.16);
}
body > header .header-menu-action:hover {
  background: var(--site-shell-blue-hover) !important; border-color: var(--site-shell-blue-hover);
  box-shadow: 0 7px 18px rgba(30,64,175,.2);
}
body > header .header-icon-action:active, body > header .header-menu-action:active { transform: translateY(1px); }
body > header .header-icon-action:focus-visible, body > header .header-menu-action:focus-visible {
  outline: 3px solid #fb923c; outline-offset: 3px;
}
body > header .bookmark-icon { flex: 0 0 auto; width: 20px; height: 20px; }
body > header #bookmark-count { min-width: 16px; min-height: 16px; font-size: 10px; line-height: 1; }
#category-sidebar, #bookmarks-sidebar {
  border-left: 1px solid #e5eaf2; background: #fff; box-shadow: -18px 0 50px rgba(15,23,42,.12);
}
#category-sidebar > div > div:first-child, #bookmarks-sidebar > div > div:first-child {
  min-height: 68px; background: #fbfcff; border-color: #e5eaf2;
}
#category-sidebar h3, #bookmarks-sidebar h3 { color: #16213c; letter-spacing: -.02em; }
.category-link { border-radius: 12px; transition: background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease; }
.category-link:hover { background: #f2f6ff; color: var(--site-shell-blue); transform: translateX(-2px); }
.category-link.active { border-left: 3px solid #f97316; background: #eef4ff; color: var(--site-shell-blue); }
body > footer {
  width: 100%; margin-top: auto !important; border-top: 1px solid rgba(255,255,255,.08) !important;
  background: linear-gradient(120deg,var(--site-shell-navy),var(--site-shell-navy-alt)) !important; color: #fff;
}
body > footer > div {
  box-sizing: border-box; width: 100%; max-width: 1280px !important; margin-inline: auto;
  padding: 1.5rem clamp(1rem,3.5vw,2rem);
}
body > footer .text-accent-orange { color: var(--site-shell-orange) !important; letter-spacing: -.02em; }
body > footer nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem;
}
body > footer nav a {
  display: inline-flex; align-items: center; padding: .45rem .65rem; border-radius: 8px;
  color: #cbd5e1 !important; text-underline-offset: 3px;
  transition: background-color .18s ease,color .18s ease;
}
body > footer nav a:hover { background: rgba(255,255,255,.08); color: var(--site-shell-orange) !important; }
body > footer .border-t { border-color: rgba(255,255,255,.13) !important; }
body > footer .text-gray-400 { color: #aebbd0 !important; }
body > header a:focus-visible, body > footer a:focus-visible { outline: 3px solid #fb923c; outline-offset: 3px; }
@media (max-width: 640px) {
  body > header > div { padding-inline: 1rem; }
  body > header .homepage-brand img { max-width: 47vw; max-height: 2.8rem; }
  body > header .header-icon-action, body > header .header-menu-action {
    min-height: 40px; padding-left: .7rem; padding-right: .7rem; border-radius: 10px;
  }
  body > header .header-action-label { font-size: .78rem; }
  body > footer .max-w-7xl { padding-top: 1.75rem; padding-bottom: 1.25rem; }
  body > footer nav { gap: .2rem; }
  body > footer nav a { padding: .4rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  body > header .header-icon-action, body > header .header-menu-action, body > footer nav a, .category-link {
    scroll-behavior: auto !important; transition-duration: .01ms !important;
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  }
}

/* Shared page canvas: align public EJS pages with Home and Category. */
body.min-h-screen {
  background: #f6f8fc !important; color: #172033;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main.flex-grow.info-page-main {
  width: 100%; max-width: none; padding-top: clamp(1.2rem,3vw,2.4rem); padding-bottom: clamp(2.25rem,4vw,3.5rem);
}
.info-page-wrap { width: 100%; max-width: 1200px; margin-inline: auto; }
.info-page-hero {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; overflow: hidden; min-height: 190px; margin-bottom: clamp(1.75rem,3vw,2.5rem);
  padding: clamp(1.5rem,4vw,2.65rem); border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
  background: linear-gradient(120deg,#142650,#1e40af 72%,#2853b8); box-shadow: 0 18px 42px rgba(30,64,175,.14);
}
.info-page-hero::after {
  content: ""; position: absolute; z-index: -1; top: -145px; right: -85px; width: 290px; height: 290px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.035),0 0 0 58px rgba(255,255,255,.025); pointer-events: none;
}
.info-page-hero-copy { min-width: 0; }
.info-page-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-bottom: .85rem;
  color: rgba(255,255,255,.68); font-size: .75rem; font-weight: 750; letter-spacing: .07em; line-height: 1.45; text-transform: uppercase;
}
.info-page-breadcrumb a { color: #ffd0a5 !important; text-decoration: none; transition: color .18s ease; }
.info-page-breadcrumb a:hover { color: #fff !important; }
.info-page-hero h1 {
  max-width: 760px; margin: 0 0 .55rem !important; color: #fff !important;
  font-size: clamp(2rem,4vw,3rem) !important; font-weight: 850 !important; letter-spacing: -.045em;
  line-height: 1.08; text-wrap: balance;
}
.info-page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.8) !important; font-size: clamp(.95rem,1.4vw,1.08rem); line-height: 1.65; }
.info-page-content, .info-page-contact .contact-content, .info-page-about .about-content {
  width: 100%; box-sizing: border-box; border: 1px solid #e5eaf2; border-radius: 18px; background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.045); padding: clamp(1.25rem,3vw,2.5rem); margin-bottom: 1.75rem;
}
.info-page-legal .content-section { max-width: 100%; margin: 0; padding: 1.2rem 0 1.5rem; border-bottom: 1px solid #e9eef5; }
.info-page-legal .content-section:first-child { padding-top: .1rem; }
.info-page-legal .content-section:last-child { border-bottom: 0; padding-bottom: 0; }
.info-page-legal .content-section h2 {
  margin: .15rem 0 .75rem; color: #172b4d; font-size: clamp(1.15rem,2.2vw,1.38rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.3; text-wrap: balance;
}
.info-page-legal .content-section p, .info-page-legal .content-section li { color: #526176; line-height: 1.75; }
.info-page-legal .content-section p { max-width: 90ch; margin: 0 0 .8rem; }
.info-page-legal .content-section p:last-child { margin-bottom: 0; }
.info-page-legal .content-section ul, .info-page-legal .content-section ol { padding-left: 1.4rem; margin: .65rem 0 1rem; }
.info-page-legal .content-section li { margin: .35rem 0; padding-left: .15rem; }
.info-page-legal .content-section a { color: #1e40af; text-underline-offset: 3px; overflow-wrap: anywhere; }
.info-page-legal .important-note, .info-page-legal .warning-note, .info-page-legal .info-note,
.info-page-legal .highlight-box, .info-page-legal .info-box, .info-page-legal .warning-box,
.info-page-legal .contact-box, .info-page-legal .acceptance-box, .info-page-legal .consent-box {
  border: 1px solid #e5eaf2; border-left: 4px solid #1e40af; border-radius: 12px;
  padding: 1rem 1.2rem; margin: 1.1rem 0; background: #f7faff; box-shadow: none;
}
.info-page-legal .important-note { background: #fff8ed; border-color: #f5d6b3; border-left-color: #f97316; }
.info-page-legal .warning-note, .info-page-legal .warning-box { background: #fff5f4; border-color: #fecaca; border-left-color: #ef4444; }
.info-page-legal .acceptance-box, .info-page-legal .consent-box { background: #f1fbf6; border-color: #b7e4ca; border-left-color: #168457; }
.info-page-legal .acceptance-box p, .info-page-legal .consent-box p { color: #236044; }
.info-page-contact .contact-content { max-width: none; margin-bottom: 1.75rem; }
.info-page-contact .contact-content > .text-center:first-child { max-width: 850px; margin: 0 auto 1.5rem; }
.info-page-contact .contact-content > .text-center:first-child p { color: #526176; line-height: 1.75; }
.info-page-contact .contact-card {
  margin: 1.5rem 0; padding: clamp(1.25rem,3vw,2rem); border: 1px solid #dce7f7; border-radius: 16px;
  background: linear-gradient(135deg,#f5f8ff 0%,#fff 76%); text-align: center;
}
.info-page-contact .contact-card h2 { margin: 0 0 1.2rem; color: #172b4d; font-size: 1.4rem; font-weight: 800; letter-spacing: -.025em; }
.info-page-contact .email-link {
  display: inline-flex; max-width: 100%; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1rem;
  border: 1px solid #bfd3f3; border-radius: 12px; background: #fff; color: #1e40af; font-size: clamp(1rem,2.5vw,1.15rem);
  font-weight: 750; text-decoration: none; overflow-wrap: anywhere; transition: background-color .18s,color .18s,border-color .18s,transform .18s;
}
.info-page-contact .email-link:hover { transform: translateY(-1px); border-color: #1e40af; background: #1e40af; color: #fff; }
.info-page-contact .response-time { display: inline-flex; align-items: center; background: #eefaf3; color: #216746; border: 1px solid #bde5cc; border-radius: 999px; padding: .5rem .85rem; }
.info-page-contact .guidelines-box { margin: 1.5rem 0; border: 1px solid #f5d6b3; border-radius: 14px; background: #fff8ed; padding: clamp(1rem,2.5vw,1.5rem); }
.info-page-contact .purpose-box { margin-top: 1.5rem; padding: clamp(1rem,2.5vw,1.5rem); border: 1px solid #dce7f7; border-radius: 14px; background: #f5f8ff; }
.info-page-contact .do-list li, .info-page-contact .dont-list li { display: flex; align-items: flex-start; margin-bottom: .65rem; }
.info-page-contact .do-list li::before { content: "✓"; color: #168457; font-weight: 800; margin-right: .75rem; flex-shrink: 0; }
.info-page-contact .dont-list li::before { content: "×"; color: #dc2626; font-weight: 800; margin-right: .75rem; flex-shrink: 0; }
.info-page-about .mission-card {
  position: relative; overflow: hidden; margin-bottom: 1.5rem; padding: clamp(1.35rem,3vw,2.1rem);
  border: 1px solid #dce7f7; border-radius: 18px; background: linear-gradient(135deg,#f1f6ff,#fff 80%);
  box-shadow: 0 3px 12px rgba(15,23,42,.045); color: #526176;
}
.info-page-about .mission-card h2 { margin: 0 0 .75rem; color: #172b4d; font-size: 1.45rem; font-weight: 850; letter-spacing: -.025em; }
.info-page-about .mission-card p { margin: 0; line-height: 1.75; }
.info-page-about .about-content { margin-bottom: 1.5rem; }
.info-page-about .about-content h2 { color: #172b4d; font-size: 1.4rem; font-weight: 850; letter-spacing: -.025em; }
.info-page-about .source-card {
  margin-bottom: 1rem; padding: 1.25rem; border: 1px solid #e5eaf2; border-radius: 14px; background: #f9fbff;
  transition: border-color .18s,box-shadow .18s,transform .18s;
}
.info-page-about .source-card:hover { transform: translateY(-1px); border-color: #cbdaf1; box-shadow: 0 10px 24px rgba(15,23,42,.055); }
.info-page-about .source-card h3 { color: #172b4d; font-weight: 800; }
.info-page-about .feature-list li { display: flex; align-items: flex-start; margin-bottom: .85rem; }
.info-page-about .feature-list li::before { content: "✓"; color: #f97316; font-weight: 800; margin-right: .75rem; flex-shrink: 0; }
.info-page-about .info-page-cta { margin-top: 1.5rem; text-align: center; }
.info-page-about .info-page-cta > p { color: #64748b; }
.info-page-about .info-page-cta > a { background: #1e40af; color: #fff; box-shadow: 0 5px 14px rgba(30,64,175,.16); }
.info-page-about .info-page-cta > a:hover { background: #17358f; }
@media (max-width: 640px) {
  main.flex-grow.info-page-main { padding-top: 1rem; padding-bottom: 2rem; }
  .info-page-wrap { padding-inline: .75rem !important; }
  .info-page-hero { min-height: 0; padding: 1.4rem 1.1rem; border-radius: 20px; margin-bottom: 1.4rem; }
  .info-page-hero::after { top: -165px; right: -150px; }
  .info-page-hero h1 { font-size: clamp(1.9rem,8.5vw,2.5rem) !important; }
  .info-page-content, .info-page-contact .contact-content, .info-page-about .about-content { padding: 1.1rem; border-radius: 15px; }
  .info-page-legal .content-section { padding: 1rem 0 1.2rem; }
  .info-page-contact .contact-card { padding: 1.1rem; }
}


/* Match the homepage/category page frame and card rhythm on information pages. */
body > header {
  border-bottom: 1px solid #e8edf5 !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 3px 18px rgba(15,23,42,.045) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body > footer {
  background: #111827 !important;
}
.info-page-main {
  width: 100%;
  max-width: none;
  padding-top: clamp(1.2rem,3vw,2.4rem);
  padding-bottom: clamp(2.25rem,4vw,3.5rem);
}
.info-page-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}
.info-page-intro {
  margin-bottom: clamp(1.75rem,3vw,2.5rem);
}
.info-page-hero {
  margin-bottom: 1.2rem;
}
.info-page-hero h1 {
  max-width: 700px;
}
.info-page-legal.info-page-content {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.info-page-legal .content-section,
.info-page-legal .content-section:first-child,
.info-page-legal .content-section:last-child {
  box-sizing: border-box;
  margin: 0;
  padding: clamp(1.15rem,2.5vw,1.65rem);
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.045);
}
.info-page-legal .content-section h2 {
  margin: 0 0 .8rem;
  color: #172033;
  font-size: clamp(1.15rem,2.2vw,1.4rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.info-page-legal .content-section p {
  max-width: 95ch;
}
.info-page-about,
.info-page-contact .contact-content {
  display: grid;
  gap: 1rem;
}
.info-page-about .mission-card,
.info-page-about .about-content {
  margin: 0;
}
.info-page-about .info-page-cta,
.info-page-about > .text-center.mt-8 {
  margin: 0 !important;
  padding: 1.5rem;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.045);
}
.info-page-contact .contact-content {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.info-page-contact .contact-content > .text-center:first-child,
.info-page-contact .contact-content > .text-center.mt-8,
.info-page-contact .contact-content > .mt-8.pt-8 {
  box-sizing: border-box;
  max-width: none;
  margin: 0 !important;
  padding: 1.25rem;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.045);
}
.info-page-contact .contact-card {
  margin: 0;
  border-color: #e5eaf2;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.045);
}
.info-page-contact .guidelines-box,
.info-page-contact .purpose-box {
  margin: 0;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.045);
}
.info-page-contact .guidelines-box {
  border-left: 4px solid #f97316;
}
.info-page-contact .purpose-box {
  border-left: 4px solid #1e40af;
}
@media (max-width: 640px) {
  .info-page-wrap { padding-inline: 1rem !important; }
  .info-page-hero { margin-bottom: 1rem; }
  .info-page-content,
  .info-page-contact .contact-content { padding: 0; }
  .info-page-about .about-content { padding: 1.1rem; }
  .info-page-legal .content-section,
  .info-page-legal .content-section:first-child,
  .info-page-legal .content-section:last-child { padding: 1rem; border-radius: 15px; }
  .info-page-contact .contact-card,
  .info-page-contact .guidelines-box,
  .info-page-contact .purpose-box { padding: 1.1rem; border-radius: 15px; }
}

/* Prism language switcher: styles the existing language links and SVG icon. */
.language-toggle .language-btn.translation-prism-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px 10px 16px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  background:
    linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.88)) padding-box,
    linear-gradient(90deg, #ff00cc, #3333ff, #00ffcc, #f6d365, #ff00cc) border-box;
  background-size: 100% 100%, 500% 100%;
  background-position: 0 0, 0% 50%;
  animation:
    translation-prism-slide 5s linear infinite,
    translation-prism-glow 3s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.language-toggle .language-btn.translation-prism-btn span,
.language-toggle .language-btn.translation-prism-btn svg,
.language-toggle .language-btn.translation-prism-btn img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}

.language-toggle .language-btn.translation-prism-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.language-toggle .language-btn.translation-prism-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.language-toggle .language-btn.translation-prism-btn:active {
  transform: translateY(1px) scale(0.98);
}

.language-toggle .language-btn.translation-prism-btn:focus-visible {
  outline: 3px solid #3333ff;
  outline-offset: 4px;
}

@keyframes translation-prism-slide {
  0% { background-position: 0 0, 0% 50%; }
  100% { background-position: 0 0, 500% 50%; }
}

@keyframes translation-prism-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.2),
                0 0 30px rgba(51, 51, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 0, 204, 0.45),
                0 0 50px rgba(0, 255, 204, 0.3),
                0 0 70px rgba(246, 211, 101, 0.15);
  }
}

@media (max-width: 640px) {
  .language-toggle .language-btn.translation-prism-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    min-width: 110px;
  }
}

@media (max-width: 400px) {
  .language-toggle .language-btn.translation-prism-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    min-width: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-toggle .language-btn.translation-prism-btn {
    animation: none !important;
    transition: none;
    background:
      linear-gradient(#0f172a, #0f172a) padding-box,
      linear-gradient(90deg, #ff00cc, #00ffcc) border-box;
  }
}
