/* ==========================================================================
   Jyavani — Refactored CSS (theme-safe, production-ready)
   - Tujuan: memastikan theme class (html.theme-dark / html.theme-light)
     selalu deterministik dan mencegah flash saat load.
   - Perubahan: reorganized and documented only. No functional values changed.
   ========================================================================== */
   
   /* =========================================================
   THEME + CORE
========================================================= */

:root{
  color-scheme: light;

  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --accent: #00A89E;
  --link: #0000EE;
  --link-hover: #00ab3e;
  --border: #e6eef2;
  --surface: #ffffff;
  --surface-hover: #f7fafc;
  --control-bg: #f3f4f6;
  --shadow: 0 8px 24px rgba(2,6,23,0.08);
  --guide-line: #d1d5db;
  --crbg: #fff;
  --crbgh: #effaff;

  --nav-menu-bg: rgba(255,255,255,.62);
  --nav-menu-bd: rgba(2,6,23,.08);

  --let-base: #1f2937;
  --let-accent: #b11226;
  --let-hover: #c9a227;
  --let-base-hover: var(--let-accent);
  --let-accent-hover: var(--let-base);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;

  --content-max: 820px;
  --page-max: 1000px;
  --container-max: 1100px;
  --ease: .2s ease;
}

html.theme-dark{
  color-scheme: dark;

  --bg: #071022;
  --text: #e6eef6;
  --muted: #9ca3af;
  --accent: #00A89E;
  --link: #1A73E8;
  --link-hover: #00ab3e;
  --border: #1f2a35;
  --surface: #0e1620;
  --surface-hover: #16202e;
  --control-bg: #1f2a35;
  --shadow: 0 8px 24px rgba(0,0,0,0.45);
  --guide-line: #374151;
  --crbg: #0b1220;
  --crbgh: #121a2a;

  --nav-menu-bg: rgba(14,22,32,.55);
  --nav-menu-bd: rgba(255,255,255,.08);

  --let-base: #e5e7eb;
  --let-accent: #ff4d5e;
  --let-hover: #ffd166;
  --let-base-hover: var(--let-accent);
  --let-accent-hover: var(--let-base);
}

html.theme-light{ color-scheme: light; }

html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-hover);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: var(--link);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), transform var(--ease);
  -webkit-tap-highlight-color: transparent;
}

a:hover,
a:focus-visible{
  color: var(--link-hover);
}

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

button{
  cursor: pointer;
}

button,
input,
select,
textarea{
  min-width: 0;
}

:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 2px;
  border-radius: 8px;
}

.visually-hidden{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   GLOBAL TYPOGRAPHY RHYTHM
========================================================= */

h1,h2,h3,h4,h5,h6{
  margin: 0 0 .55em;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

h1{ font-size: clamp(2rem, 3vw, 2.6rem); }
h2{ font-size: clamp(1.6rem, 2.5vw, 2rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4{ font-size: 1.125rem; }
h5{ font-size: 1rem; }
h6{ font-size: .92rem; }

p{
  margin: 0 0 1rem;
}

ul,ol{
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li + li{
  margin-top: .35rem;
}

blockquote{
  margin: 1.25rem 0;
  padding: .9rem 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-hover);
  color: var(--text);
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  padding: .16rem .38rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--control-bg) 75%, transparent);
}

pre{
  margin: 1rem 0 1.25rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--control-bg);
  border: 1px solid var(--border);
  overflow: auto;
  line-height: 1.55;
}

pre code{
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* =========================================================
   HEADER / NAV
========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner{
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.brand img{
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-hover);
}

.hamburger{
  display: none;
  padding: 8px;
  color: var(--text);
}

.hamburger svg{
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.navbar{
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 0;
}

.menu{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item{
  position: relative;
}

.menu-link{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.menu-link:hover{
  background: var(--surface-hover);
  color: var(--accent);
}

.arrow-icon{
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: .6;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-link:hover .arrow-icon{
  opacity: 1;
  transform: rotate(180deg);
}

.mobile-toggle-btn,
.mobile-head{
  display: none;
}

.controls{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.ctrl-item{
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--text);
  border: 1px solid transparent;
  font-size: 13px;
}

.ctrl-input{
  width: 160px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.ctrl-input:focus{
  border-color: var(--accent);
}

/* dropdown desktop */
.submenu{
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 200px;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 1100;
}

.submenu li{
  position: relative;
}

.submenu a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
}

.submenu a:hover{
  background: var(--surface-hover);
  color: var(--accent);
}

.menu-item:hover > .submenu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu .submenu{
  top: -9px;
  left: 100%;
  margin-left: 8px;
  margin-top: 0;
}

.submenu li:hover > .submenu{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li:hover > .mobile-row > .menu-link .arrow-icon,
.submenu li:hover > a .arrow-icon{
  transform: rotate(-90deg);
}

@media (min-width: 901px){
  .header-inner{
    justify-content: flex-start;
    gap: 16px;
    margin: 0 8%;
  }

  .navbar{
    flex: 1;
    gap: 12px;
  }

  .menu{
    margin-inline: auto;
    padding: 10px;
    border-radius: 14px;
    background: var(--nav-menu-bg);
    border: 1px solid var(--nav-menu-bd);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .controls{
    margin-left: 0;
  }
}

@media (max-width: 900px){
  .hamburger{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
  }

  .hamburger svg{
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
  }

  .site-header{
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .navbar{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    width: min(85%, 340px);
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    box-shadow: 20px 0 50px rgba(0,0,0,.2);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s;
    overflow-y: auto;
  }

  .navbar.open{
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .mobile-head{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .mobile-title{
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
  }

  .close-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
  }

  .close-btn svg{
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
  }

  .menu{
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 10px 0;
  }

  .menu-item{
    width: 100%;
  }

  .mobile-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 16px;
  }

  .menu-link{
    flex: 1 1 auto;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 0;
  }

  .menu-link .arrow-icon{
    display: none;
  }

  .mobile-toggle-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 10px;
    color: var(--muted);
    appearance: none;
    -webkit-appearance: none;
  }

  .mobile-toggle-btn svg{
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    transition: transform var(--ease), color var(--ease), background-color var(--ease);
  }

  .hamburger:hover,
  .close-btn:hover,
  .mobile-toggle-btn:hover,
  .hamburger:focus-visible,
  .close-btn:focus-visible,
  .mobile-toggle-btn:focus-visible{
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--accent);
  }

  .hamburger:active,
  .close-btn:active,
  .mobile-toggle-btn:active{
    background: color-mix(in srgb, var(--text) 10%, transparent);
    transform: scale(.98);
  }

  .mobile-toggle-btn.expanded{
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .mobile-toggle-btn.expanded svg{
    transform: rotate(90deg);
  }

  .submenu{
    position: static;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: max-height .3s ease;
  }

  .menu-item > .submenu{
    margin-left: 24px;
    border-left: 1px solid var(--guide-line);
  }

  .submenu .submenu{
    top: 0;
    left: 0;
    margin-left: 16px;
    border-left: 1px solid var(--guide-line);
  }

  .submenu a{
    padding: 12px 16px;
    font-size: 15px;
    background: transparent;
  }

  .submenu.open{
    max-height: 1000px;
  }

  .controls{
    flex-direction: column;
    width: 100%;
    padding: 24px;
    margin-top: auto;
    gap: 12px;
    border-top: 1px solid var(--border);
  }

  .ctrl-item,
  .ctrl-input{
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }
}
/* =========================================================
   OVERLAY
========================================================= */

.overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(2px);
  transition: opacity .3s ease, visibility .3s ease;
}

.overlay.active{
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-row-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-col{
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links{
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.footer-link:hover{
  color: var(--accent);
  transform: translateY(-1px);
}

.social-icons{
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--text);
}

.social-btn:hover,
.social-btn:focus-visible{
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-row-bottom{
  border-top: 1px solid var(--border);
  padding-top: 8px;
  text-align: center;
}

.copyright-text{
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 680px){
  .footer-row-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-links{
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .social-icons{
    justify-content: center;
  }

  .site-footer{
    padding: 10px 14px;
  }
}

/* =========================================================
   CONTENT / POSTS / PAGES RHYTHM
========================================================= */

.adam-post-single{
  max-width: var(--content-max);
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.adam-page-single{
  max-width: var(--page-max);
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.adam-post-header,
.post-header{
  margin-bottom: 1.25rem;
}

.adam-post-title{
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

.post-title{
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.18;
  margin: 0 0 .5rem;
  color: var(--text);
}

.adam-cat-badges,
.post-categories{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.cat-badge,
.post-category{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: .45rem .72rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}

.cat-badge:hover,
.post-category:hover{
  color: #fff;
  background: var(--accent);
}

.adam-breadcrumb{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .9rem;
  color: var(--muted);
}

.adam-breadcrumb a{
  color: var(--muted);
}

.adam-breadcrumb a:hover{
  color: var(--accent);
  text-decoration: underline;
}

.adam-breadcrumb .sep{
  opacity: .5;
}

.adam-breadcrumb .current{
  color: var(--text);
  font-weight: 500;
}

.adam-post-meta-row,
.post-top-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  color: var(--muted);
  font-size: .94rem;
}

.adam-post-meta-row{
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 1.25rem;
}

.meta-author{
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar,
.author-avatar-placeholder{
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.author-avatar{
  object-fit: cover;
  border: 2px solid var(--surface-hover);
}

.author-avatar-placeholder{
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.meta-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.meta-text .by{
  font-size: .78rem;
  color: var(--muted);
}

.meta-text .name{
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.meta-details{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: .88rem;
  color: var(--muted);
}

.meta-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg{
  width: 16px;
  height: 16px;
  opacity: .7;
}

.meta-item.updated{
  color: var(--accent);
}

.author-inline{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.author-inline .author-link,
.author-inline .author-username{
  color: var(--accent);
  font-weight: 600;
}

.author-inline .author-link:hover{
  color: var(--link-hover);
  text-decoration: underline;
}

.updated-at{
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
}

.author-label{
  margin-right: 4px;
}

.adam-post-thumb{
  margin: 0 0 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.adam-post-thumb img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.adam-thumb--linked{
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.adam-thumb-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,.94);
  color: #111;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

html.theme-dark .adam-thumb-badge{
  background: rgba(14,22,32,.94);
  color: #fff;
}

.adam-thumb-bottom{
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  transition: opacity .16s ease, transform .16s ease;
}

.adam-thumb-overlay{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.adam-thumb-cta{
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg,#2563eb,#3b82f6);
  color: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
  transform: translateY(6px) scale(.98);
  opacity: 0;
  transition: transform .2s cubic-bezier(.2,.9,.18,1), opacity .18s ease;
}

.adam-thumb--linked:hover .adam-thumb-overlay,
.adam-thumb--linked:focus-within .adam-thumb-overlay{
  opacity: 1;
  pointer-events: auto;
}

.adam-thumb--linked:hover .adam-thumb-cta,
.adam-thumb--linked:focus-within .adam-thumb-cta{
  opacity: 1;
  transform: translateY(0) scale(1.06);
}

.adam-thumb--linked:hover .adam-thumb-bottom,
.adam-thumb--linked:focus-within .adam-thumb-bottom{
  opacity: 0;
  transform: translateY(6px) scale(.98);
  pointer-events: none;
}

.post-content,
.adam-post-body{
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
}

.post-content > *:last-child,
.adam-post-body > *:last-child{
  margin-bottom: 0;
}

.post-content h2,
.post-content h3,
.post-content h4,
.adam-post-body h2,
.adam-post-body h3,
.adam-post-body h4{
  margin-top: 1.5em;
  margin-bottom: .55em;
}

.post-content p,
.adam-post-body p{
  margin: 0 0 1rem;
}

.post-content ul,
.post-content ol,
.adam-post-body ul,
.adam-post-body ol{
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.post-content li,
.adam-post-body li{
  margin-bottom: .35rem;
}

.post-content a,
.adam-post-body a{
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-content blockquote,
.adam-post-body blockquote{
  margin: 1.25rem 0;
  padding: .95rem 1.2rem;
  background: var(--surface-hover);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.post-content img,
.adam-post-body img{
  margin: 1rem 0 1.25rem;
  border-radius: 8px;
}

.post-published-by{
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--guide-line);
}

.published-by-inner{
  display: flex;
  gap: 1rem;
  align-items: center;
}

.publisher-avatar .avatar-img,
.avatar-fallback{
  width: 56px;
  height: 56px;
  border-radius: 999px;
}

.publisher-avatar .avatar-img{
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--control-bg);
}

.avatar-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--control-bg);
  color: var(--muted);
  font-weight: 700;
  border: 2px solid var(--border);
}

.publisher-meta .publisher-line{
  margin: 0 0 .25rem;
  color: var(--text);
}

.publisher-meta .publisher-name{
  margin-left: .5rem;
  color: var(--accent);
  font-weight: 600;
}

.publisher-meta .publisher-name:hover{
  color: var(--link-hover);
  text-decoration: underline;
}

.publisher-meta .published-at{
  color: var(--muted);
  font-size: .92rem;
}

.adam-post-footer{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-actions,
.post-actions{
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.btn-back,
.post-actions .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-back:hover,
.post-actions .btn:hover{
  background: var(--surface-hover);
  color: var(--accent);
}

.post-actions .btn--primary{
  background: var(--accent);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.post-actions .btn--primary:hover{
  color: #fff;
  filter: brightness(.98);
}

.post-actions .btn .icon{
  line-height: 1;
  font-size: 1.05rem;
}

@media (max-width: 720px){
  .adam-post-single{
    margin: 1rem;
    padding: 1rem;
  }

  .post-top-meta{
    gap: .5rem .9rem;
  }

  .author-inline .author-username{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .publisher-avatar .avatar-img,
  .avatar-fallback{
    width: 44px;
    height: 44px;
  }

  .post-actions .btn{
    flex: 1 1 100%;
    justify-content: center;
  }

  .adam-thumb-cta{
    font-size: 16px;
    padding: 12px 20px;
  }

  .adam-thumb-badge{
    font-size: 12px;
    padding: 6px 10px;
  }

  .adam-thumb-bottom{
    font-size: 13px;
    padding: 8px 10px;
  }
}

/* =========================================================
   CATEGORY / POSTS LIST
========================================================= */

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px;
  line-height: 1.6;
}

.category-header{
  margin: .5rem 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.category-header + .posts-list,
.category-header + .no-posts{
  margin-top: .75rem;
}

.category-header h1{
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.category-description{
  margin: .6rem 0 0;
  font-size: .98rem;
  color: var(--muted);
}

.posts-list{
  display: grid;
  gap: 1rem 1.25rem;
}

.post-card{
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  background: var(--crbg);
  box-shadow: 0 0 0 1px rgba(14,25,30,.02);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
}

.post-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(20,30,40,.06);
  border-left-color: rgba(11,122,107,.18);
  background: var(--crbgh);
}

.post-card .thumb{
  flex: 0 0 200px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.post-card .thumb img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.post-body{
  flex: 1 1 auto;
  min-width: 0;
}

.post-body h2{
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

.post-body h2 a{
  font-weight: 700;
  color: var(--text);
}

.post-body h2 a:hover{
  color: var(--accent);
  text-decoration: underline;
}

.meta{
  margin-bottom: .6rem;
  font-size: .86rem;
  color: var(--muted);
}

.excerpt{
  margin: 0 0 .65rem;
  font-size: .98rem;
  color: var(--text);
}

.read-more{
  display: inline-flex;
  align-items: center;
  padding: .48rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}

.read-more:hover{
  background: rgba(11,122,107,.12);
  transform: translateY(-1px);
}

.pagination{
  margin-top: 1.2rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  justify-content: center;
  padding-top: .5rem;
}

.page-link{
  display: inline-flex;
  align-items: center;
  padding: .45rem .65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
}

.page-info{
  font-size: .95rem;
  color: var(--muted);
}

.no-posts{
  padding: 1rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 720px){
  .container{
    padding: .9rem;
  }

  .post-card{
    flex-direction: column;
    gap: .75rem;
    padding: .9rem;
  }

  .post-card .thumb{
    width: 100%;
    flex: 0 0 auto;
  }

  .post-card .thumb img{
    height: 180px;
  }

  .post-body h2{
    font-size: 1.05rem;
  }
}

@media (min-width: 1100px){
  .post-card .thumb{
    flex-basis: 220px;
  }

  .post-card .thumb img{
    height: 130px;
  }
}

/* =========================================================
   PAGES LIST
========================================================= */

.adam-pages-list{
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem;
  color: var(--text);
}

.adam-pages-list__header{
  margin-bottom: 1.25rem;
  text-align: center;
}

.adam-pages-list__title{
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.adam-pages-list__count{
  margin-top: .35rem;
  font-size: .95rem;
  color: var(--muted);
}

.adam-empty-card{
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--muted);
}

.adam-pages-list__grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.adam-pages-list__item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.adam-pages-list__item:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(2,6,23,.12);
}

.adam-pages-list__item-main{
  flex: 1 1 auto;
  min-width: 0;
}

.adam-pages-list__meta{
  margin-top: .35rem;
  color: var(--muted);
  font-size: .92rem;
}

.adam-pages-list__item-actions{
  flex: 0 0 auto;
}

.adam-page-link{
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
}

.adam-page-link:hover{
  text-decoration: underline;
}

.adam-pagination{
  margin-top: 1.5rem;
  text-align: center;
}

.adam-pagination__inner{
  display: inline-flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}

.adam-pagination__link{
  padding: .45rem .75rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}

.adam-pagination__info{
  padding: .45rem .75rem;
  background: var(--surface-hover);
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 720px){
  .adam-pages-list__item{
    flex-direction: column;
    align-items: flex-start;
  }

  .adam-pages-list__item-actions{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .adam-pages-list__item-actions .adam-btn-open{
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   ARCHIVE
========================================================= */

#adamz-arch-container{
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.adamz-arch-header{
  text-align: center;
  margin-bottom: 2.5rem;
}

.adamz-arch-label{
  display: inline-block;
  margin-bottom: 1rem;
  padding: .4rem 1.2rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.adamz-arch-title{
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

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

.adamz-arch-card{
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 20px;
  background: var(--crbg);
  border: 1px solid var(--border);
}

.adamz-arch-img-link{
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
}

.adamz-arch-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.165,.84,.44,1);
}

.adamz-arch-date-tag{
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: .5rem .8rem;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.adamz-arch-card:hover .adamz-arch-img{
  transform: scale(1.06);
}

.adamz-arch-post-title{
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
}

.adamz-arch-post-title a{
  color: var(--text);
}

.adamz-arch-post-title a:hover{
  color: var(--accent);
}

.adamz-arch-excerpt{
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.adamz-arch-pagination{
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.adamz-arch-nav-btn{
  padding: .75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.adamz-arch-nav-btn:hover{
  opacity: .88;
}

.adamz-arch-page-info{
  font-size: .9rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 768px){
  #adamz-arch-container{
    padding: 0 1rem;
  }

  .adamz-arch-grid{
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .adamz-arch-title{
    font-size: 1.8rem;
  }
}

/* =========================================================
   WIDGETS
========================================================= */

.sidebar-wrap{
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  margin: 2rem 0;
}

.w-box{
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.w-box:hover{
  background: var(--surface-hover);
}

.w-title{
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--text);
}

.w-empty{
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
}

.w-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.w-list a{
  color: var(--link);
  overflow-wrap: anywhere;
}

.w-list a:hover{
  color: var(--link-hover);
  text-decoration: underline;
}

.w-search-form{
  display: flex;
  gap: 8px;
  min-width: 0;
}

.w-search-form input{
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--text);
  outline: none;
}

.w-search-form input:focus{
  border-color: var(--accent);
  background: var(--surface);
}

.w-search-form button{
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--text);
}

.w-search-form button:hover{
  background: var(--surface-hover);
  border-color: var(--accent);
}

@media (max-width: 768px){
  .sidebar-wrap{
    max-width: 100%;
  }
}

/* =========================================================
   TTNG CUSTOM
========================================================= */

.ttng-visi-misi{
  padding: 2rem 1rem 3rem;
  color: var(--text);
  font-family: "Outfit", "Inter", "Poppins", sans-serif;
}

.ttng-visi-title,
.ttng-misi-title{
  margin-bottom: 1rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 78%, var(--accent));
}

.ttng-visi-box{
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border-left: 6px solid #2c59d4;
  background: linear-gradient(135deg, color-mix(in srgb, #f4f7ff 82%, var(--surface)), var(--surface));
  box-shadow: 0 6px 16px rgba(36,55,110,.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ttng-visi-box:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(36,55,110,.15);
}

.ttng-visi-box p{
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.7;
  text-align: center;
  color: var(--text);
}

.ttng-misi-list{
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: misi-counter;
}

.ttng-misi-list li{
  position: relative;
  margin-bottom: 1rem;
  padding: 1.15rem 1.35rem 1.15rem 3.4rem;
  border-radius: 12px;
  background: var(--surface);
  border-left: 4px solid #b936c7;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ttng-misi-list li::before{
  counter-increment: misi-counter;
  content: counter(misi-counter);
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,#2c59d4,#b936c7);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(45,89,212,.3);
}

.ttng-misi-list li:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(36,55,110,.12);
}

.ttng-misi-list li p{
  margin: 0;
}

@media (max-width: 768px){
  .ttng-misi-list li{
    padding: 1rem 1.2rem 1rem 3rem;
  }
}

/* =========================================================
   GLOBAL TABLES
   - full header gradient
   - zebra + hover
   - mobile overflow
========================================================= */

:root{
  --table-bg: var(--surface);
  --table-text: var(--text);
  --table-border: var(--border);
  --table-head-text: #ffffff;
  --table-zebra: #f8fbfd;
  --table-hover: #eef8fb;
  --table-grad-1: #00A89E;
  --table-grad-2: #1A73E8;
  --table-grad-3: #7c3aed;
  --table-radius: 16px;
  --table-shadow: 0 10px 26px rgba(2,6,23,.08);
}

html.theme-dark{
  --table-zebra: #111b2a;
  --table-hover: #162334;
  --table-grad-3: #8b5cf6;
  --table-shadow: 0 12px 28px rgba(0,0,0,.34);
}

table{
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--table-bg);
  color: var(--table-text);
  border: 1px solid var(--table-border);
  border-radius: var(--table-radius);
  box-shadow: var(--table-shadow);
  overflow: hidden;
}

table caption{
  caption-side: top;
  text-align: left;
  padding: 0 0 .75rem;
  color: var(--muted);
  font-weight: 700;
}

table th,
table td{
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

table thead{
  position: relative;
  isolation: isolate;
}

table thead::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, var(--table-grad-1) 0%, var(--table-grad-2) 52%, var(--table-grad-3) 100%);
}

table thead th{
  position: relative;
  z-index: 1;
  background: transparent !important;
  color: var(--table-head-text);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

table thead th + th{
  box-shadow: inset 1px 0 0 rgba(255,255,255,.18);
}

table tbody td{
  background: var(--table-bg);
  border-bottom: 1px solid var(--table-border);
}

table tbody td + td{
  border-left: 1px solid var(--table-border);
}

table tbody tr:nth-child(even) td{
  background: var(--table-zebra);
}

table tbody tr:hover td{
  background: var(--table-hover);
}

table tfoot td,
table tfoot th{
  background: var(--control-bg);
  color: var(--table-text);
  font-weight: 700;
  border-top: 1px solid var(--table-border);
}

table a{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

table a:hover{
  color: var(--link-hover);
}

@media (max-width: 768px){
  table{
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }

  table thead,
  table tbody,
  table tfoot{
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  table tr{
    width: 100%;
  }

  table th,
  table td{
    min-width: 0;
    width: auto;
    padding: .72rem .8rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  table thead th{
    font-size: .76rem;
    white-space: normal;
  }
}

/* =========================================================
   SMALL UTILITIES
========================================================= */

.profa{
  display: inline-block;
  width: 14px;
  height: 20px;
  line-height: 0;
}

.profa svg{
  width: 100%;
  height: 100%;
  display: block;
}
   
/* ============================
   LOGO ANIMATION (jyavani)
   - Keep animation timings, colors, delays exactly as before.
   ============================ */
.jyavani-logo {
  font-family: "Taviraj", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.05em;
  display: inline-flex;
  gap: 0.02em;
  cursor: pointer;
  padding-bottom: 10px;
}

.jyavani-logo .letter {
  line-height: 1;
  display: inline-block;
  position: relative;
  transition: color 400ms ease, transform 400ms ease;
}

/* Default logo colors (explicit color choices, not theme variables) */
.jyavani-logo .accent { color: var(--let-accent); }
.jyavani-logo .base   { color: var(--let-base); }

.jyavani-logo:hover .accent { color: var(--let-accent-hover); }
.jyavani-logo:hover .base   { color: var(--let-base-hover); }
.jyavani-logo:hover .letter { transform: translateY(-6px); }

/* Wave delay per letter */
.jyavani-logo .letter:nth-child(1) { transition-delay: 0ms;   }
.jyavani-logo .letter:nth-child(2) { transition-delay: 80ms;  }
.jyavani-logo .letter:nth-child(3) { transition-delay: 160ms; }
.jyavani-logo .letter:nth-child(4) { transition-delay: 240ms; }
.jyavani-logo .letter:nth-child(5) { transition-delay: 320ms; }
.jyavani-logo .letter:nth-child(6) { transition-delay: 400ms; }

.jyavani-logo .letter:hover {
  color: var(--let-hover);
  transform: translateY(-10px);
  transition-delay: 0ms;
}

/* Tooltip kata bijak */
.jyavani-logo .letter::after {
  content: attr(data-word);
  position: absolute;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #555;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
  pointer-events: none;
}
.jyavani-logo .letter:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
  color: #DAA520;
}
