/*
Theme Name: BalesOtomatis
Description: Tema blog dengan design system yang sama dengan landing page balesotomatis.id (Notion-style). Tanpa jQuery, tanpa Elementor.
Version: 1.0.0
Author: BalesOtomatis
Text Domain: balesotomatis
*/
/* Blog BalesOtomatis: token & komponen bersama dengan landing page */
@import url('assets/fonts/inter.css');

:root {
  --canvas: #ffffff;
  --gray-1: #f6f5f4;
  --gray-2: #f9f9f8;
  --gray-3: #efeeed;
  --line: rgba(0, 0, 0, 0.1);
  --ink: rgba(0, 0, 0, 0.95);
  --ink-2: rgba(0, 0, 0, 0.72);
  --ink-3: rgba(0, 0, 0, 0.54);
  --blue: #0075de;
  --blue-hover: #0062ba;
  --blue-soft: #e8f1fb;
  --blue-soft-hover: #d6e6f7;
  --on-blue: #ffffff;
  --btn-dark: #000000;

  /* tint pill & kartu duotone (rotasi seperti Notion) */
  --tint-yellow: #fbe9b6;
  --tint-blue: #cfe5ff;
  --tint-green: #cdebd6;
  --tint-red: #ffd6cf;
  --tint-pink: #ffd9e6;
  --dot-pink: #e1306c;
  --dot-yellow: #e8a400;
  --dot-blue: #0075de;
  --dot-green: #1aae39;
  --dot-red: #f64932;
  --duo-red: #d9412f;
  --duo-blue: #1462c8;
  --duo-yellow: #d59b12;
  --duo-green: #1f7a3a;

  --r-btn: 8px;
  --r-card: 12px;
  --maxw: 1184px;
  --gutter: clamp(20px, 3.5vw, 32px);
  --section: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 50;
  --z-modal: 100;
  color-scheme: light only;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  padding: 8px 14px; background: var(--btn-dark); color: var(--canvas);
  border-radius: var(--r-btn); z-index: calc(var(--z-header) + 1);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
@media (max-width: 768px) { :root { --section: 40px; } }


/* ---------- Ikon ---------- */
.ph { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.15em; }

/* ---------- Tipografi ---------- */
.h1, .h2, .h3, h1, h2, h3, h4, blockquote p { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important; }
.h1 {
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.h2 {
  font-size: clamp(34px, 3.75vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(30px, 2.9vw, 42px); letter-spacing: -0.036em; line-height: 1.14; }
.h3 { font-size: 22px; font-weight: 700; line-height: 28px; letter-spacing: -0.011em; text-wrap: balance; }
.sub { font-size: 20px; line-height: 28px; letter-spacing: -0.006em; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.muted { color: var(--ink-3); }

.section-title { margin-bottom: 24px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-btn);
  font-size: 16px; font-weight: 500; line-height: 24px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary { background: var(--blue-soft); color: var(--blue); }
.btn--secondary:hover { background: var(--blue-soft-hover); }
.btn--ghost { color: var(--ink); padding-inline: 10px; }
.btn--ghost:hover { background: var(--gray-1); }
.btn--lg { height: 40px; padding-inline: 16px; }
.btn--block { width: 100%; }
.btn .ph { font-size: 18px; margin-left: -2px; }

/* tombol lingkaran panah (Notion) */
.arrow-btn {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--btn-dark); color: var(--canvas);
  font-size: 16px;
  transition: transform 0.2s var(--ease);
}
a:hover .arrow-btn, .arrow-btn:hover { transform: translateX(2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner {
  height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  /* Belum scroll: rata dengan container konten. Setelah scroll: melebar ke tepi layar. */
  padding-inline: max(24px, calc((100% - var(--maxw)) / 2));
  transition: padding 0.6s var(--ease);
}
.header.is-stuck .header__inner { padding-inline: 24px; }
.header__logo { height: 32px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 2px; }
.header__link { padding: 5px 12px; border-radius: 6px; font-size: 16px; line-height: 24px; color: var(--ink); transition: background-color 0.15s ease; }
.header__link:hover { background: var(--gray-1); }
.header__link.is-active { font-weight: 500; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.header__toggler { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-btn); font-size: 22px; }
.header__toggler:hover { background: var(--gray-1); }
.header__toggler .ph--close { display: none; }

@media (max-width: 900px) {
  .header__inner, .header.is-stuck .header__inner { grid-template-columns: auto 1fr auto auto; gap: 8px; padding-inline: var(--gutter); }
  .header__nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px var(--gutter) 16px; background: var(--canvas);
    border-bottom: 1px solid var(--line);
  }
  .header__nav .header__link { padding: 10px 12px; }
  .header.nav-open .header__nav { display: flex; }
  .header.nav-open .header__toggler .ph--menu { display: none; }
  .header.nav-open .header__toggler .ph--close { display: block; }
  .header__toggler { display: inline-flex; }
  .header__cta { display: none; } /* mobile: tombol daftar cukup di sticky bar bawah */
}


/* ---------- CTA band ---------- */
.cta { background: var(--gray-1); padding: 64px 32px; text-align: center; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { padding-block: 64px 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand img { height: 32px; width: auto; }
.footer__brand p { margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); max-width: 32ch; }
.footer__social { display: flex; gap: 4px; margin-top: 16px; }
.footer__social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-2); font-size: 20px; }
.footer__social a:hover { background: var(--gray-1); color: var(--ink); }
.footer h4 { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-3); margin-bottom: 12px; }
.footer li + li { margin-top: 8px; }
.footer li a { font-size: 16px; line-height: 24px; color: var(--ink); }
.footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.footer__bottom a:hover { color: var(--ink); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Sticky CTA (mobile, muncul setelah hero lewat) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-header) - 1);
  display: none; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--canvas); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1 1 0; min-width: 0; height: 44px; padding-inline: 10px; font-size: 15px; gap: 6px; }
.sticky-cta .btn--primary { flex: 0 0 auto; }
.sticky-cta .btn .ph { font-size: 17px; margin-left: 0; }
@media (max-width: 400px) { .sticky-cta .btn { font-size: 14px; padding-inline: 8px; } .sticky-cta .btn--secondary .ph { display: none; } }
@media (max-width: 900px) { .sticky-cta { display: flex; } body.has-sticky-cta { padding-bottom: 76px; } }

/* ---------- Monogram di kartu testimoni ---------- */
.tcard__brand { display: inline-flex; align-items: center; gap: 8px; }
.tcard__mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,255,255,0.92); color: var(--duo); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}


/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.06s; } .reveal-d2 { transition-delay: 0.12s; } .reveal-d3 { transition-delay: 0.18s; }
  .hero > .container > * { animation: rise 0.7s var(--ease) both; }
  .hero > .container > :nth-child(2) { animation-delay: 0.06s; }
  .hero > .container > :nth-child(3) { animation-delay: 0.12s; }
  .hero > .container > :nth-child(4) { animation-delay: 0.18s; }
  .hero > .container > :nth-child(5) { animation-delay: 0.28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}


/* ======================= BLOG ======================= */
.blog-head { padding-block: 40px 24px; }
.blog-head .h2 { margin-bottom: 8px; }
.blog-head .sub { max-width: 60ch; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cat-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--canvas); font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .15s ease, border-color .15s ease; }
.cat-chip:hover { background: var(--gray-2); border-color: rgba(0,0,0,.18); }
.cat-chip.is-active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; background: var(--gray-1); border-radius: var(--r-card); overflow: hidden; margin-bottom: 24px; }
.featured__media { position: relative; min-height: 340px; overflow: hidden; min-width: 0; }
.featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.featured:hover .featured__media img { transform: scale(1.03); }
.featured__body { min-width: 0; padding: 28px 28px 28px 4px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured__body .h2--sm { font-size: clamp(24px, 2.4vw, 34px); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.post-meta .ph { font-size: 16px; }
.post-cat { font-size: 13px; font-weight: 600; color: var(--blue); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard-post { display: flex; flex-direction: column; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease; }
.pcard-post:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: rgba(0,0,0,.18); }
.pcard-post__media { aspect-ratio: 16 / 10; background: var(--gray-3); overflow: hidden; border-bottom: 1px solid var(--line); }
.pcard-post__media img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-post__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-post__title { font-size: 18px; font-weight: 700; line-height: 24px; letter-spacing: -0.011em; text-wrap: balance; }
.pcard-post__excerpt { font-size: 15px; line-height: 22px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-post .post-meta { margin-top: auto; padding-top: 6px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } .featured { grid-template-columns: 1fr; } .featured__media { min-height: 0; aspect-ratio: 16 / 10; } .featured__body { padding: 20px 20px 24px; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-btn); font-size: 15px; color: var(--ink); }
.pagination .page-numbers:hover { background: var(--gray-1); }
.pagination .page-numbers.current { background: var(--ink); color: var(--canvas); }

/* artikel */
.article { max-width: 760px; margin-inline: auto; padding-block: 40px 24px; }
.article__head { margin-bottom: 28px; }
.article__head .h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 10px 0 16px; text-wrap: balance; }
.article__hero { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); margin: 28px 0 8px; }
.article__hero img { width: 100%; display: block; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-top: 2em; }
.prose h3 { font-size: 22px; font-weight: 700; line-height: 1.25; margin-top: 1.6em; }
.prose h4 { font-size: 18px; font-weight: 700; }
.prose p { text-wrap: pretty; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose .toc a { text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: 10px; margin-inline: auto; }
.prose figure { margin: 1.6em 0; } .prose figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; background: var(--gray-1); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose pre { background: var(--gray-1); padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--gray-1); padding: 1px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; } .prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; } .prose th { font-weight: 600; }
.prose iframe, .prose video { max-width: 100%; border-radius: 10px; }
.prose .wp-block-image, .prose .wp-caption { max-width: 100%; }
.article__foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.share { display: flex; gap: 6px; }
.share a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-btn); color: var(--ink-2); font-size: 20px; border: 1px solid var(--line); }
.share a:hover { background: var(--gray-1); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--gray-1); color: var(--ink-2); }

.article-cta { margin: 48px auto 0; max-width: 760px; background: var(--gray-1); border-radius: var(--r-card); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.article-cta .h3 { margin-bottom: 4px; }
.article-cta p { color: var(--ink-2); font-size: 15px; line-height: 22px; }
.article-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .article-cta { grid-template-columns: 1fr; } }

.related { padding-block: 56px 16px; }
.related .h3 { margin-bottom: 16px; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-btn); font: inherit; font-size: 16px; color: var(--ink); background: var(--canvas); }
.search-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.empty { padding: 48px 0; text-align: center; color: var(--ink-2); }

.breadcrumb { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ink); }
.readtime { white-space: nowrap; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* kartu tanpa gambar: sampul teks berwarna */
.pcard-post__media--text { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 20px; color: #fff; background: var(--duo-blue); }
.pcard-post__glyph { position: absolute; right: -8%; top: -10%; width: 62%; height: 62%; opacity: .18; transform: rotate(-12deg); }
.pcard-post__media--text[data-tint="green"] { background: var(--duo-green); }
.pcard-post__media--text[data-tint="yellow"] { background: var(--duo-yellow); }
.pcard-post__media--text[data-tint="red"] { background: var(--duo-red); }
.pcard-post__media--text[data-tint="pink"] { background: #c8266b; }
.pcard-post__media--text span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.featured__media .pcard-post__media--text { position: absolute; inset: 0; }

/* ======================= ARTIKEL: bar, ukuran teks, daftar isi, tabel ======================= */
.article__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.fontsize { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--gray-3); border-radius: 10px; }
.fontsize__label { font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 0 6px 0 8px; }
.fontsize__btn { width: 34px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.fontsize__btn .ph { font-size: 16px; }
.fontsize__btn:hover { color: var(--ink); }
.fontsize__btn.is-active { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.prose { font-size: calc(18px * var(--fs, 1)); }
.prose h2 { font-size: calc(28px * var(--fs, 1)); }
.prose h3 { font-size: calc(22px * var(--fs, 1)); }
.prose h4, .prose li, .prose p { font-size: inherit; }

.toc { margin: 0 0 32px; }
.toc__box { background: var(--gray-1); border-radius: var(--r-card); padding: 4px 20px; }
.toc__title { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 16px; font-weight: 700; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title .ph { font-size: 20px; color: var(--ink-2); }
.toc__count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.toc__count::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.toc__box:not([open]) .toc__count::after { transform: rotate(-45deg) translateY(2px); }
.prose .toc__list, .toc__list { list-style: none !important; padding: 0 0 16px; margin: 0; counter-reset: toc; border-top: 1px solid var(--line); }
.prose .toc__item { margin: 0; }
.toc__item { counter-increment: toc; }
.toc__item a { display: flex; gap: 12px; padding: 9px 0; font-size: 15px; line-height: 22px; color: var(--ink-2); border-bottom: 1px solid var(--line); text-decoration: none; transition: color .15s ease; }
.toc__item a::before { content: counter(toc) "."; font-variant-numeric: tabular-nums; color: var(--ink-3); min-width: 22px; }
.toc__item:last-child a { border-bottom: 0; }
.toc__item a:hover, .toc__item.is-current a { color: var(--blue); }
.toc__item--h3 a { padding-left: 22px; font-size: 14px; }
.toc__item--h3 a::before { content: '–'; min-width: 14px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 84px; }

.table-wrap { margin: 1.6em 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-card); }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: calc(15px * var(--fs, 1)); line-height: 1.5; margin: 0; }
.table-scroll thead th { position: sticky; top: 0; background: var(--gray-1); color: var(--ink); font-weight: 700; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-scroll td, .table-scroll tbody th { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:nth-child(even) td { background: var(--gray-2); }
.table-scroll tbody tr:hover td { background: var(--blue-soft); }
.table-scroll td:first-child, .table-scroll tbody th { color: var(--ink); font-weight: 600; }
.table-scroll td strong { color: var(--ink); }
@media (max-width: 640px) {
  .table-scroll:not(.table-scroll--cards) table { min-width: 480px; }
  .table-scroll--cards { overflow: visible; border: 0; }
  .table-scroll--cards table { min-width: 0; display: block; }
  .table-scroll--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-scroll--cards tbody, .table-scroll--cards tr, .table-scroll--cards td { display: block; }
  .table-scroll--cards tr { border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 0; background: var(--canvas); }
  .table-scroll--cards tr + tr { margin-top: 10px; }
  .table-scroll--cards td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 8px 14px; border: 0; background: none !important; }
  .table-scroll--cards td[data-label]::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
  .table-scroll--cards td:not([data-label]) { grid-template-columns: 1fr; }
  .table-scroll--cards td:first-child { font-weight: 600; }
  .table-scroll td, .table-scroll th { padding: 10px 12px; }
}
.fontsize__btn:disabled { opacity: .35; cursor: default; }
