/*
 * zyekh.com — Shared Stylesheet
 * Single source of truth untuk nav, base, forms, buttons, footer.
 * Tools-specific CSS tetap inline di masing-masing file.
 * 2026 — CSS native, no @layer needed (spesifisitas cukup clean tanpa PureCSS !important).
 */

/* ===================== CSS Custom Properties ===================== */
:root {
  /* Modern Web Standards (Baseline 2024+) */
  color-scheme: dark;
  accent-color: var(--accent);

  /* Colors — 100% Pure Monochrome System */
  --bg-dark:           #09090b;
  --bg-card:           #141417;
  --border-color:      #27272a;
  --border-color-hover:#52525b;
  --border-hover:      #52525b;
  --text-main:         #fafafa;
  --text-muted:        #a1a1aa;
  --accent-white:      #ffffff;
  --accent:            #ffffff;
  --accent-glow:       rgba(255, 255, 255, 0.1);
  --info:              #e4e4e7;
  --warn:              #a1a1aa;
  --danger:            #71717a;
  --code-bg:           #000000;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;

  /* Transitions — Modern Apple/iOS Fluid Spring Curve */
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== Reset & Base ===================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  overflow-x: clip; /* clip ≠ hidden — tidak break position:fixed/sticky */
  scrollbar-gutter: stable; /* CLS fix — prevent layout shift on scrollbar appear */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  overscroll-behavior: none;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

button, input, select, textarea {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}


/* Native CSS :has() Body Overflow Lock (Baseline 2023+) */
body:has(#navMenu.open),
body:has(dialog[open]) {
  overflow: hidden;
}

/* Native HTML5 Dialog & Lightbox Modal */
dialog.lightbox-modal {
  padding: 0;
  border: none;
  background: transparent;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  overflow: visible;
}

dialog.lightbox-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-top: 0;
  letter-spacing: -0.02em;
  text-wrap: balance; /* 2026: even line breaks for headings */
}

a { color: var(--text-main); text-decoration: none; }
/* WCAG 1.4.1 — underline links in article body text */
:is(.article-body, .article-content) a { text-decoration: underline; }
:is(.article-body, .article-content, .footer) a:hover { text-decoration: underline; }

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

pre, code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===================== View Transitions (2026) ===================== */
@view-transition {
  navigation: auto;
}

/* ===================== Navigation Bar (Floating Header) ===================== */
site-nav {
  display: block;
  height: 60px;
}

.header-nav {
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 0.65rem 0;
  min-height: 60px;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-lg);
  box-sizing: border-box;
}

.brand-logo {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  transition: border-color var(--transition);
}
.nav-toggle:hover { border-color: var(--border-hover); }

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop nav */
.nav-menu { display: flex; align-items: center; }

.nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link:focus    { color: var(--text-main); background: rgba(255, 255, 255, 0.06); }
.nav-link.active    { color: #ffffff; background: rgba(255, 255, 255, 0.12); font-weight: 600; }

/* Backdrop overlay */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-backdrop.active { display: block; opacity: 1; }

/* Mobile & Tablet (< 960px) */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: -280px;
    width: 260px;
    height: calc(100dvh - 60px);
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 0;
  }
  .nav-list li { width: 100%; }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
    background: transparent !important;
    transition: color var(--transition), padding-left var(--transition);
  }
  .nav-link:hover,
  .nav-link:focus  { padding-left: 6px; color: var(--text-main); }
  .nav-link.active { padding-left: 8px; border-left: 2px solid #fff; font-weight: 700; }
}

/* ===================== Layout ===================== */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

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

.section-padding {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 3.5vw + 0.3rem, 1.85rem);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.4rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.5vw + 0.4rem, 1.0rem);
  margin-top: 0;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Badge */
.badge {
  display: inline-block;
  padding: var(--space-xs) 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  background: #18181b;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* ===================== Buttons ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--text-main);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.65rem var(--space-lg);
  border: 1px solid var(--accent-white);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
}
.btn-primary:hover { background-color: #e4e4e7; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 0.65rem var(--space-lg);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
}
.btn-secondary:hover { border-color: var(--border-hover); }



/* ===================== Cards ===================== */
.custom-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}
.custom-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.card-grid-gap { padding: var(--space-sm); }

/* ===================== Forms (tools pages) ===================== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  margin-bottom: 0.8rem;
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--border-hover);
  outline: none;
}
label {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.4rem;
}
button {
  background-color: var(--text-main);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--accent-white);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  transition: background-color var(--transition);
}
button:hover { background-color: #e4e4e7; }

/* ===================== Table ===================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
th, td { padding: 0.75rem var(--space-md); border-bottom: 1px solid var(--border-color); text-align: left; }
th { background: var(--bg-card); color: var(--text-muted); font-weight: 600; font-size: 0.88rem; }
td { color: var(--text-main); }

/* ===================== Footer ===================== */
.footer {
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  content-visibility: auto;
}
.footer a { color: var(--text-main); text-decoration: none; }

/* ===================== Tool Box (tools pages) ===================== */
.tool-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

/* ===================== Mobile Safeguards & Responsive Typography ===================== */
@media (max-width: 768px) {
  .main-container { padding: 1.25rem var(--space-md); }
  .page-title { font-size: clamp(1.65rem, 6vw, 2.1rem); line-height: 1.2; word-break: break-word; }
  .section-title { font-size: clamp(1.3rem, 4.5vw, 1.6rem); line-height: 1.25; }
  .card-title, .tool-title { font-size: clamp(1.05rem, 3.5vw, 1.15rem); }
  p  { font-size: 0.95rem; line-height: 1.55; }
  .custom-card, .tool-box { padding: var(--space-md); }
}

/* ===================== Native Grid (PureCSS Replacement) ===================== */
/*
 * Menggantikan pure-g + pure-u-* dengan native CSS Grid.
 * 3 layout variants berdasarkan pola yang ada di site:
 */

/* 1-col → 2-col at md → 4-col at lg (Certificates, Skills) */
.grid-2-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 568px) { .grid-2-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-2-4 { grid-template-columns: repeat(4, 1fr); } }

/* 1-col → 2-col at md (Blog cards, About) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 568px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* 1-col → 2-col at md → 3-col at lg (Tools hub) */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 568px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* 1/3 + 2/3 sidebar layout (Contact section) */
.grid-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 568px) { .grid-sidebar { grid-template-columns: 1fr 2fr; } }

/* 3/4 + 1/4 layout */
.grid-3-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 568px) { .grid-3-1 { grid-template-columns: 3fr 1fr; } }

/* Auto-fit grid (tools hub fallback) */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* Grid cell: padding wrapper (replaces card-grid-gap) */
.grid-cell { padding: var(--space-sm); }

/* ===================== Utility Classes ===================== */
/* Extracted from 120 inline styles in index.html */

/* Flex helpers */
.flex-row          { display: flex; align-items: center; }
.flex-row-between  { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap         { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.flex-col          { display: flex; flex-direction: column; }

/* Text helpers */
.text-muted        { color: var(--text-muted); }
.text-muted-sm     { color: var(--text-muted); font-size: 0.88rem; }
.text-muted-xs     { color: var(--text-muted); font-size: 0.8rem; }
.text-sm           { font-size: 0.9rem; }
.text-center       { text-align: center; }
.text-mono         { font-family: 'Fira Code', monospace; }
.text-mono-sm      { font-family: 'Fira Code', monospace; font-size: 0.78rem; color: var(--text-muted); }
.fw-600            { font-weight: 600; }
.fw-700            { font-weight: 700; }

/* Spacing helpers */
.mt-0    { margin-top: 0; }
.mt-xs   { margin-top: var(--space-xs); }
.mt-sm   { margin-top: var(--space-sm); }
.mt-md   { margin-top: var(--space-md); }
.mb-xs   { margin-bottom: var(--space-xs); }
.mb-sm   { margin-bottom: var(--space-sm); }
.mb-md   { margin-bottom: var(--space-md); }
.mb-lg   { margin-bottom: var(--space-lg); }

/* Card image (cert thumbnails) */
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

/* Cert card text elements */
.cert-title  { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.cert-issuer { font-size: 0.8rem; color: var(--text-muted); }

/* Card clickable */
.card-clickable { padding: var(--space-md); cursor: pointer; text-align: center; }

/* Inline code/terminal snippet */
.code-inline {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

/* Width full */
.w-full { width: 100%; }


/* ===================== Tools Hub ===================== */
.search-filter-box {
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
}
input.search-input {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  width: 100%;
}
.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.tool-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.tool-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}
.tool-category {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.6rem;
}

/* ===================== Accessibility ===================== */
:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   Tool Pages — Legal Calculators (jht, jkp, pesangon, cron)
   ============================================================ */
.page-header { margin-bottom: 2rem; }
.page-header h1, .page-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.65rem, 5vw + 0.3rem, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 0.5rem;
  word-break: break-word;
}
.page-header p, .page-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw + 0.4rem, 1.05rem);
  line-height: 1.55;
  margin: 0;
}



.faq-section { margin-top: 2rem; }
.faq-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }

details { border: 1px solid var(--border-color); border-radius: 6px; padding: 0; margin-bottom: 0.5rem; }
summary,
.faq-summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); transition: transform 0.2s; }
details[open] summary::after { content: '\2212'; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 0; }
.result-box { display: none; }
.result-box.visible { display: block; }
.result-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.result-card { background: #09090b; border: 1px solid var(--border-color); border-radius: 8px; padding: 1rem; }
.result-card .label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.result-card .value { font-family: 'Fira Code', monospace; font-size: 1.15rem; font-weight: 600; }
.result-card.total { border-color: var(--accent); }
.result-card.total .value { color: var(--accent); font-size: 1.35rem; }
.td-right { text-align: right; font-family: 'Fira Code', monospace; }

/* ============================================================
   Blog Article Pages & Responsive Article Typography
   ============================================================ */
.container-article {
  max-width: 840px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text-main); }

.article-header { margin-bottom: 2rem; }

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.45rem, 4.5vw + 0.4rem, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  word-break: break-word;
}

.meta-tag { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.article-hero-wrapper { margin: 1.5rem 0 2rem 0; border-radius: 12px; overflow: hidden; }
.article-hero-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hero-caption { text-align: center; font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem 1rem; background: var(--bg-card); }

.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.article-body p {
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.05rem);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: #e4e4e7;
}

.article-body li {
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.05rem);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Inline style extractions */
.tool-badge { color: #ffffff; font-size: 0.85rem; font-weight: 600; }
.td-row { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-color); }
.container-article { max-width: 840px; margin: 0 auto; padding: 2rem 1.5rem; }


/* FAQ / SEO Block — Tool Pages (19 simple tools, uniform boilerplate) */
.seo-block    { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.faq-card     { margin-bottom: 0.75rem; padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.faq-answer   { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.925rem; }

/* Breadcrumb nav (legal tools: jht, jkp, pesangon, cron) */
.breadcrumb     { list-style: none; display: flex; align-items: center; gap: 0.35rem; padding: 0; margin-bottom: 1.5rem; font-size: 0.9rem; }
.breadcrumb-link { color: var(--text-muted); text-decoration: none; }
.breadcrumb-link:hover { color: var(--text-main); }
.breadcrumb-sep  { color: var(--border-color-hover); }

/* Portfolio thumbnail (index.html cards) */
.portfolio-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-bottom: 0.75rem; display: block; }
.portfolio-card  { padding: 1rem; cursor: pointer; text-align: center; }


/* ===================== Recovered: Classes missing from :root refactor ===================== */

/* Tools — FAQ accordion wrapper */
.faq-accordion { display: flex; flex-direction: column; gap: 0; }

/* Tools — FAQ body (legal tools: jht, jkp, pesangon, cron) */
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; border-top: 1px solid var(--border-color); }

/* Tools — table total row */
.tr-total td { font-weight: 700; border-top: 2px solid var(--border-color); background: var(--bg-card); padding: 0.75rem 1rem; }

/* Tools — full-width grid span (pesangon) */
.full-width { grid-column: 1 / -1; }

/* Tools — toggle label (pesangon) */
.toggle-label { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; user-select: none; }

/* Tools — tool-item (tools/index.html grid items) */
.tool-item { display: flex; flex-direction: column; }

/* Tools — SEO content block (alias for seo-block with section semantics) */
.seo-content-block { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

/* Blog — article metadata row */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  line-height: 1.4;
}
.article-meta span { display: inline-flex; align-items: center; }
.article-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Blog — card thumbnail wrapper */
.card-thumb-wrapper { margin-bottom: 1rem; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }

/* Blog — article grid item */
.article-item { display: flex; flex-direction: column; }

/* Blog — cross-links section (inherits callout-card, extra styles) */
.article-cross-links { margin-top: 2rem; }

/* Page — header container, title & subtitle typography */
.page-header   { margin-bottom: 2rem; }
.page-title    { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 5vw, 2.2rem); font-weight: 800; margin-top: 0; margin-bottom: 0.5rem; letter-spacing: -0.025em; line-height: 1.25; color: var(--text-main); }
.page-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 700px; margin: 0; line-height: 1.6; }

/* Tools — stats table (counter.html) replaces deprecated border="1" */
.stats-table { border-collapse: collapse; width: 100%; margin-top: var(--space-md); }
.stats-table th,
.stats-table td { border: 1px solid var(--border-color); padding: 0.5rem 0.75rem; text-align: left; }
.stats-table th { color: var(--text-muted); font-weight: 600; background: var(--bg-card); }

/* Utility Classes */
.flex-wrap-gap { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.items-center { align-items: center; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.88rem; }
.dot-red, .dot-1 { background: #fafafa !important; }
.dot-yellow, .dot-2 { background: #a1a1aa !important; }
.dot-green, .dot-3 { background: #52525b !important; }

/* Filter Bar & Pill Buttons */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; margin-bottom: 1.5rem; align-items: center; }
.filter-btn {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color-hover);
  color: var(--text-main);
}
.filter-btn.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #09090b;
  font-weight: 600;
}


