/* ArtiKata.com — tema 2026 (mobile-first) */
:root {
  --ink: #1d2130;
  --ink-2: #3a4052;
  --muted: #646b7d;
  --paper: #faf7f1;
  --surface: #ffffff;
  --line: #e7e0d2;
  --line-2: #efe9de;
  --brand: #3a33b5;
  --brand-ink: #2a2486;
  --brand-soft: #eceafd;
  --accent: #c4434f;
  --accent-soft: #fbe9ea;
  --ok: #1d7a4c;
  --ok-soft: #e5f4ec;
  --warn: #a8540e;
  --warn-soft: #fdf0e1;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 33, 48, .06), 0 6px 20px rgba(29, 33, 48, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #8c86f0; outline-offset: 2px; border-radius: 6px; }
kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--line-2); border-radius: 6px; padding: .05em .4em; }

.ak-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ak-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.ak-skip:focus { left: 8px; color: #fff; }
.ak-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.ak-muted { color: var(--muted); }
.ak-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--accent); margin: 0 0 .35rem; }

/* ---------- Header ---------- */
.ak-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.ak-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.ak-logo { display: flex; align-items: center; }
.ak-logo img { height: 34px; width: auto; display: block; }
.ak-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; padding: 0 11px; }
.ak-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ak-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ak-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ak-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ak-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 14px; }
.ak-nav.is-open { display: grid; }
.ak-nav a { color: var(--ink-2); font-weight: 600; padding: 11px 6px; border-bottom: 1px solid var(--line-2); }
.ak-nav a:last-child { border-bottom: 0; }
.ak-nav a:hover { color: var(--brand); text-decoration: none; }
@media (min-width: 900px) {
  .ak-burger { display: none; }
  .ak-nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0; gap: 4px; background: none; }
  .ak-nav a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
  .ak-nav a:hover { background: var(--brand-soft); }
  .ak-logo img { height: 38px; }
}

/* ---------- Search ---------- */
.ak-searchbar { background: linear-gradient(180deg, var(--surface), var(--paper)); border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.ak-search { position: relative; max-width: 760px; }
.ak-search__box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: border-color .15s, box-shadow .15s; }
.ak-search__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(58, 51, 181, .12); }
.ak-search__box svg { color: var(--muted); flex: none; }
.ak-search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; padding: 10px 4px; color: var(--ink); }
.ak-search__input::-webkit-search-cancel-button { cursor: pointer; }
.ak-search--big .ak-search__box { padding: 6px 6px 6px 18px; }
.ak-search--big .ak-search__input { font-size: 1.1rem; padding: 12px 4px; }
.ak-suggest { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ak-suggest a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.ak-suggest a:hover, .ak-suggest a.is-active { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.ak-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; padding: 11px 18px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .05s; white-space: nowrap; }
.ak-btn:active { transform: translateY(1px); }
.ak-btn:hover { text-decoration: none; }
.ak-btn--primary { background: var(--brand); color: #fff; }
.ak-btn--primary:hover { background: var(--brand-ink); color: #fff; }
.ak-btn--ghost { background: var(--surface); color: var(--brand); border-color: #cfccf3; }
.ak-btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.ak-iconbtn, .ak-linkbtn { font: inherit; cursor: pointer; }
.ak-iconbtn { font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.ak-iconbtn:hover { border-color: var(--brand); color: var(--brand); }
.ak-linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-size: .85rem; font-weight: 600; }
.ak-linkbtn:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.ak-hero { padding: 36px 0 30px; background:
  radial-gradient(900px 300px at 85% -10%, rgba(196, 67, 79, .10), transparent 60%),
  radial-gradient(800px 320px at 0% 0%, rgba(58, 51, 181, .12), transparent 60%),
  var(--surface); border-bottom: 1px solid var(--line); }
.ak-hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 6vw, 3.1rem); letter-spacing: -.01em; max-width: 24ch; margin-bottom: .3em; }
.ak-hero__title em { font-style: italic; color: var(--brand); }
.ak-hero__lead { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.ak-hero__try { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: .92rem; }
.ak-hero__try span { color: var(--muted); }
.ak-hero__try a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--ink-2); }
.ak-hero__try a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- Layout ---------- */
.ak-page { padding-top: 20px; padding-bottom: 40px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .ak-page.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}
.ak-main { min-width: 0; }
.ak-crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.ak-crumbs a { color: var(--muted); }
.ak-crumbs [aria-current] { color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.ak-pagehead { margin-bottom: 18px; }
.ak-pagehead p { color: var(--ink-2); }

.ak-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.ak-box__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.ak-toollist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ak-toollist a { display: flex; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.ak-toollist a:hover { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }
.ak-miniform { display: flex; gap: 6px; }
.ak-miniform input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; background: var(--paper); }
.ak-miniform input:focus { outline: 0; border-color: var(--brand); }
.ak-miniform .ak-btn { padding: 9px 14px; }
.ak-more { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .92rem; }

/* ---------- Word entry ---------- */
.ak-entry__head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ak-entry__head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); pointer-events: none; }
.ak-entry__word { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; margin: 0 0 10px; overflow-wrap: anywhere; letter-spacing: -.01em; }
.ak-entry__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; z-index: 1; }
.ak-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .85rem; color: var(--ink-2); }
.ak-defs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin-bottom: 16px; }
.ak-defs__lang { font-size: 1.05rem; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.ak-defs__pos { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 8px; margin: 4px 0 8px; }
.ak-defs__list { margin: 0 0 12px; padding-left: 1.4em; }
.ak-defs__list > li { padding: 4px 0 10px; }
.ak-defs__list > li::marker { color: var(--muted); font-weight: 700; }
.ak-def { font-size: 1.04rem; }
.ak-examples { margin: 6px 0 0; padding: 8px 12px; list-style: none; border-left: 3px solid var(--brand-soft); background: #fcfbff; border-radius: 0 8px 8px 0; color: var(--ink-2); font-style: italic; font-size: .95rem; }
.ak-def__foot { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 4px; }
.ak-trans { color: var(--ok); font-size: .95rem; }
.ak-src { color: #9aa0ad; font-size: .78rem; margin-left: auto; }
.ak-related { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.ak-related h2 { font-size: 1rem; margin-top: 4px; }
.ak-related h2 + .ak-chips { margin-bottom: 14px; }
.ak-neighbors { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.ak-neighbors h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (min-width: 600px) { .ak-neighbors { grid-template-columns: 1fr 1fr; } }

.ak-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ak-chips a, .ak-chips span { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.ak-chips a:hover { background: var(--brand-soft); border-color: #cfccf3; color: var(--brand-ink); text-decoration: none; }
.ak-chips span { color: var(--muted); }
.ak-chips--syn a { background: var(--ok-soft); border-color: #c9e6d6; color: #165f3b; }
.ak-chips--ant a { background: var(--accent-soft); border-color: #f2cdd0; color: #8f2933; }
.ak-chips--lg a, .ak-chips--lg span { font-size: 1rem; padding: 7px 15px; }

.ak-note { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 16px; border: 1px solid; }
.ak-note--ok { background: var(--ok-soft); border-color: #c9e6d6; color: #13502f; }
.ak-note--warn { background: var(--warn-soft); border-color: #f3d6b4; color: #6b3608; }
.ak-cta { background: linear-gradient(135deg, var(--brand-soft), #fff 70%); border: 1px solid #dcd9f7; border-radius: var(--radius); padding: 16px 18px; margin: 8px 0 16px; color: var(--ink-2); }
.ak-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px 20px; }
.ak-empty h2 { font-size: 1rem; margin-top: 16px; }

/* ---------- Index & lists ---------- */
.ak-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ak-letters a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.ak-letters a:hover, .ak-letters a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }
.ak-letters--big a { width: 46px; height: 46px; font-size: 1.1rem; }
.ak-subidx { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ak-subidx a { font-size: .85rem; padding: 3px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.ak-wordgrid { list-style: none; margin: 0 0 20px; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ak-wordgrid a { display: block; padding: 6px 4px; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); overflow-wrap: anywhere; }
.ak-wordgrid a:hover { color: var(--brand); }
.ak-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0; }
.ak-pager a, .ak-pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.ak-pager a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.ak-pager .ak-pager__cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.ak-pager .ak-pager__gap { border: 0; background: none; min-width: 20px; }

/* ---------- Home ---------- */
.ak-home { display: grid; gap: 8px; }
.ak-wotd { background: var(--ink); color: #fff; border-radius: 20px; padding: 24px; margin-bottom: 14px; position: relative; overflow: hidden; }
.ak-wotd::before { content: "“"; position: absolute; right: 18px; top: -30px; font-family: var(--serif); font-size: 12rem; color: rgba(255,255,255,.06); line-height: 1; }
.ak-wotd .ak-eyebrow { color: #f3a6ad; }
.ak-wotd__word { font-family: var(--serif); font-size: clamp(2rem, 7vw, 2.8rem); margin: 0; }
.ak-wotd__word a { color: #fff; }
.ak-wotd__syl { color: #c9c6f5; margin: 0 0 8px; letter-spacing: .03em; }
.ak-wotd__def { color: #e7e8ee; max-width: 70ch; }
.ak-wotd .ak-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ak-wotd .ak-btn--ghost:hover { border-color: #fff; color: #fff; }
.ak-section { margin: 18px 0; }
.ak-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.ak-section__head h2 { margin: 0; font-size: 1.25rem; }
.ak-section__head a { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.ak-tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ak-tools--list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ak-tool { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ak-tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfccf3; text-decoration: none; color: var(--ink); }
.ak-tool__icon { font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.ak-tool strong { font-size: 1rem; }
.ak-tool span:not(.ak-tool__icon) { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ak-about { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink-2); }

/* ---------- Cards (artikel) ---------- */
.ak-cards { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
@media (min-width: 700px) { .ak-cards:not(.ak-cards--compact) { grid-template-columns: 1fr 1fr; } }
.ak-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ak-card:hover { border-color: #cfccf3; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.ak-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--line-2); }
.ak-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ak-card__body strong { font-size: .98rem; line-height: 1.35; }
.ak-card__body span { color: var(--muted); font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ak-cards--compact .ak-card { padding: 9px 12px; border-radius: 10px; }
.ak-cards--compact .ak-card__body strong { font-size: .9rem; font-weight: 600; }
.ak-catrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.ak-tag { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .85rem; font-weight: 600; }
.ak-tag small { color: #7a76c4; font-weight: 600; }
.ak-tag:hover { background: var(--brand); color: #fff; text-decoration: none; }
.ak-tag:hover small { color: #dcdaf9; }
.ak-tag--alt { background: var(--warn-soft); color: #7a3d08; }

/* ---------- Article (WordPress) ---------- */
.ak-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.ak-article__head h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.ak-wpcontent { font-size: 1rem; overflow-wrap: break-word; }
.ak-wpcontent img { border-radius: 10px; }
.ak-wpcontent table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.ak-wpcontent input, .ak-wpcontent select, .ak-wpcontent textarea { max-width: 100%; }
.ak-wpcontent iframe { max-width: 100%; }
.ak-sharebar { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
body.is-article .content h2 { font-size: 1.3rem; }

/* ---------- Tools ---------- */
.ak-toolpage .ak-pagehead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ak-toolform { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.ak-toolform--stack { flex-direction: column; align-items: stretch; }
.ak-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.ak-field--grow { flex: 1 1 260px; }
.ak-field label { font-weight: 700; font-size: .9rem; }
.ak-field label small { font-weight: 500; color: var(--muted); }
.ak-field input, .ak-field select, .ak-field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%; }
.ak-field textarea { resize: vertical; min-height: 90px; }
.ak-field input:focus, .ak-field select:focus, .ak-field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(58, 51, 181, .1); }
.ak-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ak-btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.ak-check { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; cursor: pointer; }
.ak-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.ak-result { background: var(--surface); border: 2px solid var(--brand-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; scroll-margin-top: 80px; }
.ak-result:focus { outline: 0; }
.ak-result.is-flash { animation: ak-flash 1s ease; }
@keyframes ak-flash { 0% { border-color: var(--brand); box-shadow: 0 0 0 6px rgba(58,51,181,.15); } 100% { border-color: var(--brand-soft); box-shadow: none; } }
.ak-result h2 { font-size: 1.1rem; }
.ak-output { font-size: 1.15rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.ak-output--big { font-family: var(--serif); font-size: 1.35rem; }
.ak-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ak-stat { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px; }
.ak-stat b { display: block; font-size: 1.4rem; line-height: 1.2; color: var(--brand-ink); }
.ak-stat span { font-size: .82rem; color: var(--muted); }
.ak-tablewrap { overflow-x: auto; margin-bottom: 14px; }
.ak-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .95rem; }
.ak-table th, .ak-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.ak-table th { background: var(--paper); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ak-table tr.is-hit td { background: #fff7d6; }
.ak-prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; color: var(--ink-2); }
.ak-prose h2 { margin-top: .3em; }
.ak-prose h3 { margin-top: 1.2em; }
.ak-prose li { margin-bottom: .35em; }

/* Kuis */
.ak-quiz__q { font-size: 1.05rem; margin-bottom: 10px; }
.ak-quiz__word { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; display: block; margin: 4px 0 12px; }
.ak-quiz__opts { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
@media (min-width: 600px) { .ak-quiz__opts { grid-template-columns: 1fr 1fr; } }
.ak-quiz__opt { text-align: left; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.ak-quiz__opt:hover:not(:disabled) { border-color: var(--brand); }
.ak-quiz__opt.is-right { background: var(--ok-soft); border-color: var(--ok); color: #13502f; font-weight: 700; }
.ak-quiz__opt.is-wrong { background: var(--accent-soft); border-color: var(--accent); color: #8f2933; }
.ak-quiz__opt:disabled { cursor: default; }
.ak-progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.ak-progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.ak-score { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--brand-ink); line-height: 1; }

/* ---------- Footer ---------- */
.ak-footer { background: #171a26; color: #b9bdca; padding: 28px 0 22px; margin-top: 10px; }
.ak-footer a { color: #e3e5ee; }
.ak-footer__letters { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #2b2f40; margin-bottom: 18px; font-size: .92rem; }
.ak-footer__letters span { color: #8c91a3; margin-right: 4px; }
.ak-footer__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.ak-footer__grid h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.ak-footer__grid a { display: block; padding: 4px 0; font-size: .92rem; }
.ak-footer__note { font-size: .82rem; color: #8c91a3; margin: 0; }

/* Toast */
.ak-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; z-index: 99; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .ak-header, .ak-searchbar, .ak-side, .ak-footer, .ak-cta, .ak-iconbtn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Definisi KBBI yang dirapikan ---------- */
.ak-kbbi p { margin: 0 0 .4em; }
.ak-senses { margin: 0 0 .6em; padding-left: 1.5em; }
.ak-senses > li { padding: 3px 0 7px; }
.ak-senses > li::marker { color: var(--accent); font-weight: 700; }
.ak-ex { display: inline; color: var(--ink-2); font-style: italic; background: #f6f5ff; border-radius: 4px; padding: 0 4px; }
.ak-ex::before { content: "“"; color: var(--muted); }
.ak-ex::after { content: "”"; color: var(--muted); }
.ak-lbl { display: inline-block; font-size: .72rem; font-weight: 700; font-style: normal; letter-spacing: .02em; text-decoration: none; color: #6b3608; background: var(--warn-soft); border: 1px solid #f3d6b4; border-radius: 5px; padding: 0 6px; margin: 0 3px; vertical-align: 1px; cursor: help; }
.ak-subs { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.ak-subs__title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px !important; }
.ak-subs dl { margin: 0; display: grid; gap: 10px; }
.ak-subs dt { font-size: 1rem; color: var(--brand-ink); }
.ak-subs dt strong { font-weight: 700; }
.ak-subs dd { margin: 2px 0 0; padding: 0 0 10px 14px; border-left: 3px solid var(--brand-soft); border-bottom: 1px solid var(--line-2); }
.ak-subs dd p:last-child, .ak-subs dd ol:last-child { margin-bottom: 0; }
.ak-defs__list.is-single { list-style: none; padding-left: 0; }
