/*
Theme Name: The Kimchi Edit Editorial
Theme URI: https://thekimchiedit.com/
Author: The Kimchi Edit
Description: A lightweight editorial WordPress theme for The Kimchi Edit, designed for Korean culture, entertainment, beauty and travel publishing. Built with clear navigation, strong article templates, useful reference tools and mobile-first usability.
Version: 2.2.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tke-editorial
*/

:root {
  --tke-bg: #faf8f4;
  --tke-surface: #ffffff;
  --tke-surface-soft: #f4f0e9;
  --tke-ink: #201d1a;
  --tke-muted: #716b64;
  --tke-line: #e7e0d7;
  --tke-accent: #c34a3f;
  --tke-accent-dark: #94362f;
  --tke-sage: #eef2ed;
  --tke-blush: #f7eeeb;
  --tke-sun: #f5f1df;
  --tke-dark: #25211f;
  --tke-max: 1280px;
  --tke-copy: 760px;
  --tke-wide-copy: 900px;
  --tke-radius: 16px;
  --tke-radius-sm: 11px;
  --tke-shadow: 0 12px 34px rgba(49, 39, 30, .055);
  --tke-header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--tke-bg);
  color: var(--tke-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
iframe { max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tke-accent); }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(195, 74, 63, .24);
  outline-offset: 2px;
}
::selection { background: #ead2cd; }

.tke-wrap { width: min(calc(100% - 48px), var(--tke-max)); margin-inline: auto; }
.tke-copy { width: min(calc(100% - 48px), var(--tke-copy)); margin-inline: auto; }
.tke-section { padding: 68px 0; }
.tke-section + .tke-section { border-top: 1px solid var(--tke-line); }
.tke-surface { background: var(--tke-surface); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; top: 8px; left: 8px; padding: 10px 14px; background: #fff; z-index: 99999; }

/* Header */
.tke-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, .96);
  border-bottom: 1px solid var(--tke-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.admin-bar .tke-site-header { top: 32px; }
.tke-header-row {
  min-height: var(--tke-header-h);
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.tke-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--tke-ink);
}
.tke-brand:hover { color: var(--tke-ink); }
.tke-brand-text {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: .92;
  font-weight: 700;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.tke-brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--tke-accent);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
}
.tke-brand-logo { display: block; width: auto; max-width: 210px; max-height: 44px; object-fit: contain; }
.tke-nav { justify-self: center; min-width: 0; }
.tke-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: clamp(13px, 1.7vw, 23px); }
.tke-nav li { min-width: 0; }
.tke-nav a { display: block; white-space: nowrap; font-size: 12.5px; line-height: 1.3; font-weight: 750; text-decoration: none; letter-spacing: .01em; }
.tke-nav .current-menu-item > a, .tke-nav .current-menu-ancestor > a { color: var(--tke-accent); }
.tke-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tke-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--tke-dark);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.tke-header-cta:hover { background: var(--tke-accent); color: #fff; }
.tke-icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--tke-line);
  border-radius: 999px;
  background: transparent;
  color: var(--tke-ink);
}
.tke-icon-button:hover { border-color: #b9afa5; background: #fff; color: var(--tke-ink); }
.tke-menu-toggle { display: none; }
.tke-search-panel { display: none; border-top: 1px solid var(--tke-line); padding: 14px 0 18px; background: var(--tke-bg); }
.tke-search-panel.is-open { display: block; }
.tke-search-panel form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 780px; margin-inline: auto; }
.tke-search-panel input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 15px; border: 1px solid var(--tke-line); background: #fff; border-radius: 999px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .58em;
  color: var(--tke-ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -.032em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 5.1vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.05rem); }
h3 { font-size: clamp(1.28rem, 2vw, 1.72rem); }
p { margin: 0 0 1.3em; }
.tke-kicker {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--tke-accent);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tke-deck {
  max-width: 740px;
  color: #4b4641;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  line-height: 1.52;
}
.tke-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--tke-muted); font-size: 12px; line-height: 1.45; }
.tke-meta a { text-decoration: none; font-weight: 750; }
.tke-divider { width: 44px; height: 2px; margin: 20px 0; background: var(--tke-accent); border: 0; }

/* Homepage */
.tke-home-intro { padding: 50px 0 30px; }
.tke-home-intro-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .62fr); gap: clamp(34px, 6vw, 78px); align-items: center; }
.tke-home-intro h1 { max-width: 760px; margin-bottom: 0; font-size: clamp(3rem, 5.6vw, 5.35rem); }
.tke-home-intro-copy { max-width: 480px; padding-top: 20px; }
.tke-home-intro-copy p:last-child { margin-bottom: 0; }

.tke-lead-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); gap: 30px; align-items: start; }
.tke-lead-card { min-height: 510px; position: relative; overflow: hidden; border-radius: var(--tke-radius); background: #2d2926; color: #fff; box-shadow: var(--tke-shadow); }
.tke-lead-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tke-lead-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,15,13,.84) 0%, rgba(18,15,13,.38) 50%, rgba(18,15,13,.06) 78%); }
.tke-lead-card-content { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(24px, 4vw, 38px); }
.tke-lead-card h2 { max-width: 800px; margin-bottom: 10px; color: #fff; font-size: clamp(2rem, 3.8vw, 3.65rem); }
.tke-lead-card a { color: inherit; text-decoration: none; }
.tke-lead-card .tke-kicker { color: #ffd6d0; }
.tke-lead-card .tke-meta { color: rgba(255,255,255,.76); }
.tke-lead-side { display: grid; gap: 16px; align-content: start; }

/* Story cards */
.tke-card { min-width: 0; }
.tke-card-image { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 14px; border-radius: 12px; background: #ece7e0; text-decoration: none; }
.tke-card-image > span { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, #eee7df, #f7f3ed); }
.tke-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.tke-card:hover .tke-card-image img { transform: scale(1.022); }
.tke-card .tke-kicker { margin-bottom: 7px; }
.tke-card h3 { margin-bottom: 7px; font-size: clamp(1.24rem, 1.8vw, 1.58rem); }
.tke-card h3 a { text-decoration: none; }
.tke-card p { display: -webkit-box; overflow: hidden; margin-bottom: 10px; color: var(--tke-muted); font-size: 14px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tke-card-compact { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--tke-line); }
.tke-card-compact:last-child { padding-bottom: 0; border-bottom: 0; }
.tke-card-compact .tke-card-image { margin: 0; aspect-ratio: 1 / 1; border-radius: 10px; }
.tke-card-compact .tke-kicker { margin: 1px 0 5px; }
.tke-card-compact h3 { margin: 0 0 6px; font-size: 1.07rem; line-height: 1.18; }

.tke-section-head { display: flex; justify-content: space-between; gap: 26px; align-items: flex-end; margin-bottom: 28px; }
.tke-section-head > div { min-width: 0; }
.tke-section-head h2 { margin: 0; }
.tke-section-head p { max-width: 660px; margin: 7px 0 0; color: var(--tke-muted); font-size: 15px; line-height: 1.65; }
.tke-text-link { flex: 0 0 auto; color: var(--tke-ink); font-size: 12px; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.tke-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tke-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tke-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tke-feature-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: stretch; }
.tke-feature-split > .tke-card .tke-card-image { aspect-ratio: 4 / 3; }
.tke-feature-list { display: grid; gap: 16px; }
.tke-band { background: var(--tke-sage); }
.tke-band-blush { background: var(--tke-blush); }
.tke-band-sun { background: var(--tke-sun); }

/* Homepage tools */
.tke-utility-home { background: var(--tke-dark); color: #f8f4ee; }
.tke-utility-home + .tke-section { border-top: 0; }
.tke-utility-home .tke-section-head h2 { color: #fff; }
.tke-utility-home .tke-section-head p { color: #c9c0b8; }
.tke-utility-home .tke-kicker { color: #eaa39c; }
.tke-utility-home .tke-text-link { color: #fff; }
.tke-home-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tke-home-tool {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.tke-home-tool:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); color: #fff; }
.tke-home-tool > span { color: #e4a49e; font-size: 10px; line-height: 1.2; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.tke-home-tool strong { margin-top: auto; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; line-height: 1.13; letter-spacing: -.02em; }
.tke-home-tool small { display: block; margin-top: 7px; color: #c8c0b9; font-size: 12.5px; line-height: 1.45; }

/* Article and pages */
.tke-article-header { padding: 64px 0 30px; }
.tke-article-header .tke-copy { width: min(calc(100% - 48px), var(--tke-wide-copy)); }
.tke-article-header h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 5vw, 4.65rem); }
.tke-article-header .tke-deck { margin-bottom: 20px; }
.tke-article-hero { width: min(calc(100% - 48px), 1160px); margin: 0 auto 46px; }
.tke-article-hero img { display: block; width: 100%; max-height: 690px; object-fit: cover; border-radius: var(--tke-radius); }
.tke-entry-content { width: min(calc(100% - 48px), var(--tke-copy)); margin-inline: auto; padding-bottom: 56px; overflow-wrap: break-word; }
.tke-entry-content > * { max-width: 100%; }
.tke-entry-content > :first-child { margin-top: 0; }
.tke-entry-content h2 { margin-top: 1.65em; font-size: clamp(1.78rem, 3vw, 2.45rem); }
.tke-entry-content h3 { margin-top: 1.45em; }
.tke-entry-content h4 { margin-top: 1.35em; }
.tke-entry-content a { color: var(--tke-accent-dark); }
.tke-entry-content blockquote { margin: 30px 0; padding: 5px 0 5px 22px; border-left: 3px solid var(--tke-accent); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.58; }
.tke-entry-content img { border-radius: 12px; }
.tke-entry-content figure { margin: 28px 0; }
.tke-entry-content figcaption { margin-top: 7px; color: var(--tke-muted); font-size: 12px; line-height: 1.5; }
.tke-entry-content ul, .tke-entry-content ol { padding-left: 1.25em; }
.tke-entry-content li + li { margin-top: .35em; }
.tke-entry-content pre { max-width: 100%; overflow-x: auto; padding: 16px; border-radius: 10px; background: #272321; color: #fff; }
.tke-entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tke-entry-content th, .tke-entry-content td { min-width: 130px; padding: 11px 13px; text-align: left; border: 1px solid var(--tke-line); }
.tke-entry-content th { background: var(--tke-surface-soft); }
.tke-take { width: min(calc(100% - 48px), 820px); margin: 0 auto 40px; padding: 21px 22px; border: 1px solid var(--tke-line); border-left: 4px solid var(--tke-accent); border-radius: 12px; background: #fff; }
.tke-take strong { display: block; margin-bottom: 5px; color: var(--tke-accent); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.tke-take p:last-child { margin-bottom: 0; }
.tke-author-box { width: min(calc(100% - 48px), var(--tke-copy)); margin: 8px auto 68px; padding: 24px 0; border-top: 1px solid var(--tke-line); border-bottom: 1px solid var(--tke-line); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 17px; }
.tke-author-box img { display: block; border-radius: 999px; }
.tke-author-box .tke-kicker { margin-bottom: 4px; }
.tke-author-box h3 { margin: 0 0 4px; font-size: 1.3rem; }
.tke-author-box p { margin: 0; color: var(--tke-muted); font-size: 14px; line-height: 1.65; }
.tke-related { padding: 58px 0 74px; border-top: 1px solid var(--tke-line); }

/* Tool pages */
.tke-has-tool-page .tke-article-header { padding-bottom: 18px; }
.tke-has-tool-page .tke-article-header h1 { max-width: 780px; font-size: clamp(2.35rem, 4.2vw, 4rem); }
.tke-tool-page-content { width: min(calc(100% - 48px), var(--tke-max)); }
.tke-tool-page-content > p:first-child { max-width: 760px; color: #514b45; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.6; }
.tke-tool-page-content > .tke-tool-shell, .tke-tool-page-content > .tke-tool-grid { margin-top: 28px; }
.tke-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tke-tool-card { min-height: 220px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--tke-line); border-radius: 14px; background: var(--tke-surface); color: var(--tke-ink); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.tke-tool-card:hover { transform: translateY(-2px); border-color: #c9beb4; box-shadow: var(--tke-shadow); color: var(--tke-ink); }
.tke-tool-card h2 { margin-bottom: 9px; font-size: clamp(1.45rem, 2vw, 1.9rem); }
.tke-tool-card p { color: var(--tke-muted); font-size: 14px; line-height: 1.58; }
.tke-tool-card .tke-tool-arrow { margin-top: auto; font-size: 12px; font-weight: 800; }
.tke-tool-shell { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--tke-line); border-radius: 16px; background: var(--tke-surface); }
.tke-tool-intro { max-width: 760px; margin-bottom: 24px; }
.tke-tool-intro h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.tke-tool-intro p { margin-bottom: 0; color: var(--tke-muted); font-size: 14.5px; line-height: 1.65; }
.tke-filter-panel, .tke-calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.tke-filter-panel label, .tke-calculator-grid label, .tke-mini-watchlist { display: grid; gap: 6px; color: #48423d; font-size: 11.5px; font-weight: 800; }
.tke-filter-panel select, .tke-calculator-grid select, .tke-calculator-grid input, .tke-mini-watchlist select, .tke-watchlist-control select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  border: 1px solid #d9d1c8;
  border-radius: 9px;
  background: #fff;
  padding: 8px 11px;
  color: var(--tke-ink);
}
.tke-help { color: var(--tke-muted); font-weight: 600; cursor: help; }
.tke-tool-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 26px; }
.tke-tool-actions [data-result-count] { margin-left: auto; color: var(--tke-muted); font-size: 12px; }

/* Buttons and forms */
.tke-button, .search-submit, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--tke-dark);
  border-radius: 999px;
  background: var(--tke-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.tke-button:hover, .search-submit:hover, input[type="submit"]:hover { border-color: var(--tke-accent); background: var(--tke-accent); color: #fff; }
.tke-button-ghost { border-color: var(--tke-line); background: #fff; color: var(--tke-ink); }
.tke-button-ghost:hover { border-color: #c8bdb2; background: var(--tke-surface-soft); color: var(--tke-ink); }
.tke-button-block { width: 100%; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9d1c8;
  border-radius: 9px;
  background: #fff;
  color: var(--tke-ink);
}
textarea { width: 100%; min-height: 140px; }

/* Drama tools */
.tke-drama-results { display: grid; gap: 14px; }
.tke-drama-result { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 20px; padding: 16px; border: 1px solid var(--tke-line); border-radius: 13px; background: #fff; }
.tke-tool-result-image { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #ece7e0; }
.tke-tool-result-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tke-image-placeholder { background: linear-gradient(145deg, #e8e0d7, #f5f1eb); }
.tke-drama-result h3 { margin: 4px 0 6px; font-size: 1.45rem; }
.tke-drama-result h3 a { text-decoration: none; }
.tke-drama-result p { margin-bottom: 9px; color: var(--tke-muted); font-size: 13.5px; line-height: 1.55; }
.tke-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tke-chip-row span { padding: 4px 8px; border-radius: 999px; background: var(--tke-surface-soft); font-size: 10.5px; font-weight: 750; }
.tke-result-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 12px; }
.tke-mini-watchlist { width: min(220px, 100%); color: var(--tke-muted); }
.tke-mini-watchlist select { min-height: 36px; padding: 5px 8px; font-size: 12px; }
.tke-empty-tool { padding: 26px 18px; text-align: center; border: 1px dashed #d5cbc1; border-radius: 12px; color: var(--tke-muted); }
.tke-empty-tool strong { display: block; color: var(--tke-ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; }
.tke-empty-tool p { margin: 5px auto 0; }
.tke-calc-result { margin-top: 22px; padding: 24px; border-radius: 13px; background: var(--tke-sun); }
.tke-calc-result strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1; }
.tke-calc-result p { margin: 11px 0 0; }
.tke-random-result { margin-top: 22px; }
.tke-random-pick-card { padding: 24px; border-radius: 13px; background: var(--tke-sage); }
.tke-random-pick-card h3 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
.tke-random-pick-card .tke-button { margin-top: 14px; }
.tke-watchlist-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 22px; }
.tke-watchlist-tabs button { min-height: 40px; border: 1px solid var(--tke-line); background: #fff; border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 800; }
.tke-watchlist-tabs button.is-active { background: var(--tke-dark); color: #fff; border-color: var(--tke-dark); }

/* Directories */
.tke-directory-search { display: flex; align-items: center; gap: 14px; margin: 20px 0 13px; }
.tke-directory-search input { flex: 1; min-width: 0; }
.tke-directory-search span { color: var(--tke-muted); font-size: 12px; white-space: nowrap; }
.tke-alpha-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 22px; }
.tke-alpha-nav button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--tke-line); background: #fff; font-size: 10.5px; font-weight: 800; }
.tke-alpha-nav button:first-child { padding-inline: 12px; }
.tke-alpha-nav button.is-active { background: var(--tke-dark); color: #fff; border-color: var(--tke-dark); }
.tke-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tke-directory-card { min-width: 0; padding: 18px; border: 1px solid var(--tke-line); border-radius: 12px; background: #fff; }
.tke-directory-term { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.tke-directory-term h3 { margin: 0; font-size: 1.36rem; }
.tke-directory-term h3 a { text-decoration: none; }
.tke-directory-term > span { color: var(--tke-accent); font-weight: 800; }
.tke-directory-card p { margin: 7px 0 11px; color: var(--tke-muted); font-size: 13.5px; line-height: 1.58; }
.tke-directory-card .tke-pronunciation { margin: 4px 0 0; font-size: 11.5px; }
.tke-no-results { text-align: center; color: var(--tke-muted); padding: 22px; }
.tke-table-wrap { overflow-x: auto; border: 1px solid var(--tke-line); border-radius: 12px; background: #fff; -webkit-overflow-scrolling: touch; }
.tke-data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tke-data-table th, .tke-data-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--tke-line); font-size: 13px; vertical-align: top; }
.tke-data-table th { background: var(--tke-surface-soft); color: #5f5851; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.tke-data-table tr:last-child td { border-bottom: 0; }

/* Reference entries */
.tke-reference-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; align-items: start; padding-bottom: 68px; }
.tke-reference-main { min-width: 0; }
.tke-reference-sidebar { display: grid; gap: 12px; position: sticky; top: calc(var(--tke-header-h) + 20px); }
.tke-entry-content-wide { width: 100%; padding-bottom: 28px; }
.tke-take-inline { width: 100%; margin: 0 0 24px; }
.tke-fact-card, .tke-watchlist-control { padding: 19px; background: #fff; border: 1px solid var(--tke-line); border-radius: 13px; }
.tke-fact-card dl { margin: 0; }
.tke-fact-card dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tke-line); }
.tke-fact-card dl > div:last-child { border-bottom: 0; }
.tke-fact-card dt { color: var(--tke-muted); font-size: 11px; font-weight: 800; }
.tke-fact-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.tke-small-note { margin: 12px 0 0; color: var(--tke-muted); font-size: 10.5px; line-height: 1.5; }
.tke-watchlist-control { display: grid; gap: 7px; }
.tke-watchlist-control > span { color: var(--tke-muted); font-size: 10.5px; }
.tke-hangul { display: inline; color: var(--tke-accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .42em; letter-spacing: 0; vertical-align: .14em; }
.tke-reference-single .tke-article-header h1 { font-size: clamp(2.45rem, 4.7vw, 4.25rem); }

/* Reader ratings */
.tke-reader-box { width: 100%; margin: 18px 0 8px; padding: 24px; border-radius: 14px; background: var(--tke-dark); color: #fff; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; }
.tke-reader-box .tke-kicker { color: #eaa39c; }
.tke-reader-summary { display: flex; flex-direction: column; }
.tke-reader-score { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.05; margin-bottom: 6px; }
.tke-reader-summary > span:last-child { color: #bbb3ac; font-size: 11px; }
.tke-rating-form { display: grid; gap: 14px; }
.tke-rating-form fieldset { border: 0; padding: 0; margin: 0; }
.tke-rating-form legend { margin-bottom: 7px; color: #c8c0b9; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tke-stars { display: flex; gap: 4px; }
.tke-stars button { min-width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #77716c; font-size: 24px; line-height: 1; }
.tke-stars button.is-selected { color: #f1cf65; }
.tke-choice-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tke-choice-row button { min-height: 34px; border: 1px solid #55504c; border-radius: 999px; background: transparent; color: #fff; padding: 5px 10px; font-size: 11.5px; }
.tke-choice-row button.is-selected { background: #fff; color: var(--tke-dark); border-color: #fff; }
.tke-choice-row small { opacity: .65; }
.tke-reader-box button:disabled { opacity: .55; cursor: not-allowed; }
.tke-form-note { margin: 0; color: var(--tke-muted); font-size: 11.5px; }
.tke-reader-box .tke-form-note { color: #bdb5ae; }

/* Quiz */
.tke-quiz-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 22px; }
.tke-quiz-picker button { min-height: 92px; text-align: left; border: 1px solid var(--tke-line); border-radius: 11px; background: #fff; padding: 13px; }
.tke-quiz-picker button:hover { border-color: #c8bdb2; }
.tke-quiz-picker strong { display: block; margin-bottom: 4px; }
.tke-quiz-picker span { display: block; color: var(--tke-muted); font-size: 10.5px; line-height: 1.4; }
.tke-quiz-question, .tke-quiz-result { padding: 24px; border-radius: 13px; background: var(--tke-sage); }
.tke-quiz-question h3 { margin: 13px 0 16px; }
.tke-quiz-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tke-quiz-answers button { min-height: 46px; text-align: left; padding: 10px 12px; border: 1px solid #c2cdc1; border-radius: 9px; background: rgba(255,255,255,.82); }
.tke-quiz-answers button.is-correct { border-color: #5a815b; background: #e4f1e3; }
.tke-quiz-answers button.is-wrong { border-color: #aa5f56; background: #f3dedb; }
.tke-text-button { border: 0; background: transparent; padding: 0; font-weight: 800; text-decoration: underline; }
.tke-quiz-result strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; }
.tke-quiz-result .tke-button { margin-top: 9px; }

/* Food results */
.tke-food-results { margin-top: 22px; }
.tke-food-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tke-food-result-card { min-width: 0; padding: 18px; border: 1px solid var(--tke-line); border-radius: 12px; background: #fff; }
.tke-food-result-card h3 { margin: 0 0 7px; font-size: 1.38rem; }
.tke-food-result-card h3 a { text-decoration: none; }
.tke-food-result-card h3 small { color: var(--tke-accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .58em; }
.tke-food-result-card p { color: var(--tke-muted); font-size: 13px; line-height: 1.55; }

/* Archives */
.tke-archive-head { padding: 58px 0 30px; }
.tke-archive-head h1 { margin-bottom: 9px; font-size: clamp(2.65rem, 5vw, 4.6rem); }
.tke-archive-description { max-width: 720px; color: var(--tke-muted); font-size: 16px; line-height: 1.7; }
.tke-archive-description p:last-child { margin-bottom: 0; }
.tke-archive-grid { padding-bottom: 68px; }
.tke-pagination { margin-top: 44px; }
.tke-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.tke-pagination a, .tke-pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--tke-line); border-radius: 999px; text-decoration: none; }
.tke-pagination .current { background: var(--tke-dark); color: #fff; border-color: var(--tke-dark); }

/* Footer */
.tke-site-footer { background: #211e1c; color: #f7f3ed; padding: 54px 0 28px; }
.tke-site-footer .tke-brand-text { color: #fff; font-size: 24px; }
.tke-footer-grid { display: grid; grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, .65fr)); gap: 36px; align-items: start; }
.tke-footer-about { max-width: 430px; margin: 16px 0 0; color: #bfb7b0; font-size: 14px; line-height: 1.65; }
.tke-footer-heading { margin-bottom: 13px; color: #aFA7a0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 10px; line-height: 1.2; letter-spacing: .13em; text-transform: uppercase; }
.tke-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tke-footer-links a { color: #f0ebe5; text-decoration: none; font-size: 13px; line-height: 1.45; }
.tke-footer-links a:hover { color: #fff; text-decoration: underline; }
.tke-footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #9f9790; font-size: 11.5px; }

/* WordPress alignment */
.alignwide { width: min(1080px, calc(100vw - 48px)); max-width: none !important; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none !important; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-block-columns { gap: 24px; }
.tke-ad-slot { min-height: 1px; margin: 20px auto; text-align: center; }
.tke-empty { padding: 82px 0; text-align: center; }
.tke-empty p { max-width: 600px; margin-inline: auto; color: var(--tke-muted); }

/* Large tablets / small laptops */
@media (max-width: 1160px) {
  .tke-header-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tke-nav {
    display: none;
    position: absolute;
    top: var(--tke-header-h);
    left: 0;
    right: 0;
    justify-self: stretch;
    max-height: calc(100vh - var(--tke-header-h));
    overflow-y: auto;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--tke-line);
    background: var(--tke-bg);
    box-shadow: 0 18px 35px rgba(44, 36, 29, .08);
  }
  .admin-bar .tke-nav { max-height: calc(100vh - var(--tke-header-h) - 32px); }
  .tke-nav.is-open { display: block; }
  .tke-nav ul { display: grid; gap: 0; }
  .tke-nav li + li { border-top: 1px solid var(--tke-line); }
  .tke-nav a { padding: 12px 0; font-size: 14px; }
  .tke-menu-toggle { display: grid; }
  .tke-home-intro-grid { gap: 42px; }
  .tke-lead-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); }
  .tke-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .tke-tool-grid, .tke-home-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-quiz-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-food-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-footer-grid { grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(160px, .8fr)); }
  .tke-footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Tablets */
@media (max-width: 900px) {
  .tke-section { padding: 58px 0; }
  .tke-home-intro-grid { grid-template-columns: 1fr; gap: 18px; }
  .tke-home-intro-copy { max-width: 680px; padding-top: 0; }
  .tke-lead-grid { grid-template-columns: 1fr; }
  .tke-lead-card { min-height: 470px; }
  .tke-lead-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-card-compact { grid-template-columns: 90px minmax(0, 1fr); }
  .tke-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-feature-split { grid-template-columns: 1fr; }
  .tke-filter-panel, .tke-calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-reference-layout { grid-template-columns: 1fr; gap: 24px; }
  .tke-reference-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tke-reference-sidebar .tke-fact-card { grid-column: 1 / -1; }
  .tke-reader-box { grid-template-columns: 1fr; }
}


@media (max-width: 782px) {
  .admin-bar .tke-site-header { top: 46px; }
  .admin-bar .tke-nav { max-height: calc(100vh - var(--tke-header-h) - 46px); }
}

/* Phones */
@media (max-width: 640px) {
  :root { --tke-header-h: 64px; }
  body { font-size: 16px; line-height: 1.68; }
  .admin-bar .tke-site-header { top: 46px; }
  .tke-wrap, .tke-copy, .tke-entry-content, .tke-article-hero, .tke-author-box, .tke-take, .tke-tool-page-content { width: min(calc(100% - 28px), var(--tke-max)); }
  .tke-header-row { min-height: var(--tke-header-h); gap: 10px; }
  .tke-brand-text { font-size: 18px; }
  .tke-brand-text small { font-size: 7px; }
  .tke-brand-logo { max-width: 165px; max-height: 38px; }
  .tke-header-cta { display: none; }
  .tke-icon-button { width: 44px; height: 44px; }
  .tke-nav { top: var(--tke-header-h); padding: 8px 14px 16px; }
  .tke-nav a { min-height: 46px; display: flex; align-items: center; padding: 10px 2px; }
  .tke-search-panel { padding: 12px 0 14px; }
  .tke-search-panel form { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .tke-search-panel .search-submit { padding-inline: 13px; }

  h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.78rem, 9vw, 2.4rem); }
  h3 { font-size: 1.3rem; }
  .tke-section { padding: 48px 0; }
  .tke-home-intro { padding: 34px 0 22px; }
  .tke-home-intro h1 { max-width: 540px; font-size: clamp(2.75rem, 13.2vw, 3.75rem); line-height: 1.02; }
  .tke-home-intro .tke-deck { font-size: 1.05rem; }
  .tke-lead-card { min-height: 390px; border-radius: 13px; }
  .tke-lead-card-content { padding: 20px; }
  .tke-lead-card h2 { font-size: clamp(1.9rem, 9.5vw, 2.55rem); }
  .tke-lead-side { grid-template-columns: 1fr; gap: 14px; }
  .tke-card-compact { grid-template-columns: 92px minmax(0, 1fr); }
  .tke-card-compact h3 { font-size: 1.08rem; }
  .tke-section-head { flex-direction: column; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
  .tke-section-head p { font-size: 14px; }
  .tke-grid-4, .tke-grid-3, .tke-grid-2, .tke-tool-grid, .tke-home-tool-grid, .tke-directory-grid, .tke-filter-panel, .tke-calculator-grid, .tke-quiz-picker, .tke-quiz-answers, .tke-food-result-grid { grid-template-columns: 1fr; }
  .tke-card-image { aspect-ratio: 16 / 9; }
  .tke-home-tool { min-height: 138px; padding: 18px; }
  .tke-home-tool strong { font-size: 1.22rem; }

  .tke-article-header { padding: 42px 0 24px; }
  .tke-article-header .tke-copy { width: min(calc(100% - 28px), var(--tke-wide-copy)); }
  .tke-article-header h1, .tke-has-tool-page .tke-article-header h1, .tke-reference-single .tke-article-header h1 { margin-bottom: 14px; font-size: clamp(2.25rem, 11vw, 3.15rem); }
  .tke-article-header .tke-deck { font-size: 1.04rem; }
  .tke-article-hero { margin-bottom: 32px; }
  .tke-article-hero img { border-radius: 12px; }
  .tke-entry-content { padding-bottom: 44px; }
  .tke-entry-content h2 { margin-top: 1.5em; font-size: 1.82rem; }
  .tke-entry-content blockquote { padding-left: 17px; font-size: 1.08rem; }
  .tke-take { margin-bottom: 30px; padding: 18px; }
  .tke-author-box { grid-template-columns: 52px minmax(0, 1fr); margin-bottom: 52px; padding: 20px 0; }
  .tke-related { padding: 48px 0 58px; }

  .tke-tool-page-content > .tke-tool-shell, .tke-tool-page-content > .tke-tool-grid { margin-top: 22px; }
  .tke-tool-shell { padding: 18px 14px; border-radius: 13px; }
  .tke-tool-intro { margin-bottom: 20px; }
  .tke-tool-actions { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .tke-tool-actions .tke-button { width: 100%; }
  .tke-tool-actions [data-result-count] { grid-column: 1 / -1; margin: 0; text-align: left; }
  .tke-drama-result { grid-template-columns: 1fr; gap: 13px; padding: 13px; }
  .tke-drama-result .tke-tool-result-image { aspect-ratio: 16 / 9; }
  .tke-drama-result h3 { font-size: 1.38rem; }
  .tke-result-actions { display: grid; align-items: stretch; gap: 12px; }
  .tke-mini-watchlist { width: 100%; }
  .tke-directory-search { flex-direction: column; align-items: stretch; gap: 7px; }
  .tke-directory-search span { white-space: normal; }
  .tke-alpha-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .tke-alpha-nav button { flex: 0 0 auto; min-width: 40px; height: 40px; }
  .tke-table-wrap { border: 0; overflow: visible; background: transparent; }
  .tke-data-table { min-width: 0; display: block; }
  .tke-data-table thead { display: none; }
  .tke-data-table tbody { display: grid; gap: 10px; }
  .tke-data-table tr { display: grid; padding: 14px; border: 1px solid var(--tke-line); border-radius: 11px; background: #fff; }
  .tke-data-table td { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--tke-line); font-size: 12.5px; }
  .tke-data-table td:last-child { border-bottom: 0; }
  .tke-data-table td::before { color: var(--tke-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
  .tke-data-table td:nth-child(1)::before { content: "Drama"; }
  .tke-data-table td:nth-child(2)::before { content: "Original"; }
  .tke-data-table td:nth-child(3)::before { content: "Format"; }
  .tke-data-table td:nth-child(4)::before { content: "Year"; }
  .tke-data-table td:nth-child(5)::before { content: "Status"; }
  .tke-reference-sidebar { grid-template-columns: 1fr; }
  .tke-reference-sidebar .tke-fact-card { grid-column: auto; }
  .tke-reader-box { padding: 18px; gap: 20px; }
  .tke-stars button { min-width: 40px; min-height: 40px; }
  .tke-quiz-question, .tke-quiz-result { padding: 18px; }
  .tke-watchlist-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .tke-watchlist-tabs button { flex: 0 0 auto; min-height: 44px; }

  .tke-archive-head { padding: 42px 0 26px; }
  .tke-archive-head h1 { font-size: clamp(2.45rem, 12vw, 3.25rem); }
  .tke-archive-grid { padding-bottom: 54px; }
  .tke-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tke-footer-grid > div:first-child { grid-column: auto; }
  .tke-footer-bottom { display: grid; margin-top: 34px; gap: 7px; }
  .alignwide, .alignfull { width: calc(100vw - 28px); }
  .wp-block-columns { flex-wrap: wrap !important; }
}

@media (max-width: 380px) {
  .tke-brand-text small { display: none; }
  .tke-header-actions { gap: 5px; }
  .tke-tool-actions { grid-template-columns: 1fr; }
  .tke-tool-actions [data-result-count] { grid-column: auto; }
  .tke-card-compact { grid-template-columns: 82px minmax(0, 1fr); gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Small structural helpers */
.tke-choice-wrap { flex-wrap: wrap; }
.tke-filter-panel-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tke-directory-shell { min-width: 0; }
.tke-quiz-stage { min-width: 0; }
@media (max-width: 900px) { .tke-filter-panel-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tke-filter-panel-compact { grid-template-columns: 1fr; } }
