/*
Theme Name: Infolexora
Theme URI: https://infolexora.com/
Author: Infolexora
Author URI: https://infolexora.com/
Description: A clean, professional, fully responsive informational blogging theme crafted for a synonyms and antonyms vocabulary website. Features a word-finder hero, A–Z browse strip, category tiles, AJAX post filtering and load-more, article templates with table of contents, styled synonym/antonym tables, dark mode, and zero plugin dependencies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infolexora
Tags: blog, education, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, responsive-layout, accessibility-ready
*/

/* ============================================================
   INFOLEXORA — Design system
   Fonts: Lora (serif, headings & dictionary words)
          Atkinson Hyperlegible (body, maximum readability)
   ============================================================ */

:root {
  --ix-bg: #fffdf7;
  --ix-cream: #faf4e8;
  --ix-surface: #ffffff;
  --ix-ink: #211c14;
  --ix-ink-soft: #4d4436;
  --ix-ink-faint: #5d6875;
  --ix-gold: #8a6208;
  --ix-gold-ink: #6e4e06;
  --ix-gold-soft: #f7ecd2;
  --ix-border: #e9ddc4;
  --ix-header-bg: rgba(255, 253, 247, 0.96);
  --ix-shadow: 0 2px 14px rgba(60, 45, 20, 0.08);
  --ix-radius: 12px;
  --ix-font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ix-font-sans: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --ix-maxw: 1200px;
  --ix-header-h: 72px;
}

[data-theme="dark"] {
  --ix-bg: #14110d;
  --ix-cream: #1a1611;
  --ix-surface: #201b14;
  --ix-ink: #f3ecdc;
  --ix-ink-soft: #d3c8b2;
  --ix-ink-faint: #b3a78f;
  --ix-gold: #d9ab3c;
  --ix-gold-ink: #eec25e;
  --ix-gold-soft: #2e2617;
  --ix-border: #3a3226;
  --ix-header-bg: rgba(20, 17, 13, 0.96);
  --ix-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ix-bg);
  color: var(--ix-ink);
  font-family: var(--ix-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ix-font-serif);
  line-height: 1.25;
  color: var(--ix-ink);
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--ix-gold-ink); text-decoration: none; }
[data-theme="dark"] a { color: var(--ix-gold-ink); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
blockquote {
  border-left: 4px solid var(--ix-gold);
  margin: 1.4em 0;
  padding: 0.6em 1.2em;
  background: var(--ix-gold-soft);
  border-radius: 0 var(--ix-radius) var(--ix-radius) 0;
  font-style: italic;
}
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
pre {
  background: var(--ix-cream);
  border: 1px solid var(--ix-border);
  border-radius: var(--ix-radius);
  padding: 1em 1.2em;
  overflow-x: auto;
}
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; }
th, td { border: 1px solid var(--ix-border); padding: 0.65em 0.9em; text-align: left; }
th { background: var(--ix-cream); font-family: var(--ix-font-serif); }

::selection { background: var(--ix-gold-soft); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--ix-ink); color: var(--ix-bg);
  padding: 0.7em 1.2em; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ix-gold); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--ix-maxw); margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 0; }
@media (min-width: 981px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout--full { grid-template-columns: 1fr; }
}
.section { padding: 3rem 0; }
.section--band { background: var(--ix-surface); border-top: 1px solid var(--ix-border); border-bottom: 1px solid var(--ix-border); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.7rem); }
.section__link { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn, button.btn, input[type="submit"].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--ix-gold); color: #fff; border: 0; border-radius: 999px;
  padding: 0.75em 1.6em; font-family: var(--ix-font-sans); font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; transition: background 0.2s, transform 0.15s;
}
[data-theme="dark"] .btn { color: #1c160c; }
.btn:hover { background: var(--ix-gold-ink); text-decoration: none; color: #fff; }
[data-theme="dark"] .btn:hover { color: #1c160c; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent; color: var(--ix-gold-ink);
  border: 2px solid var(--ix-gold);
}
[data-theme="dark"] .btn--ghost { color: var(--ix-gold-ink); }
.btn--ghost:hover { background: var(--ix-gold-soft); color: var(--ix-gold-ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ix-ink); color: var(--ix-bg); font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.45em; padding-bottom: 0.45em; }
.topbar__date { opacity: 0.9; }
.topbar__social { display: flex; gap: 0.9em; list-style: none; margin: 0; padding: 0; }
.topbar__social a { color: var(--ix-bg); opacity: 0.85; font-weight: 700; font-size: 0.82rem; }
.topbar__social a:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--ix-header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ix-border);
  min-height: var(--ix-header-h);
  display: flex; align-items: center;
}
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
.site-brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; flex-shrink: 1; margin-right: auto; text-decoration: none; }
.site-brand:hover { text-decoration: none; }
.site-logo img, .custom-logo { max-height: 46px; width: auto; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--ix-gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.5rem;
}
[data-theme="dark"] .brand-mark { color: #1c160c; }
.site-title { font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.45rem; color: var(--ix-ink); line-height: 1.1; white-space: nowrap; }
.site-tagline { display: block; font-family: var(--ix-font-sans); font-size: 0.72rem; font-weight: 400; color: var(--ix-ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.6em 0.85em; border-radius: 8px;
  color: var(--ix-ink); font-weight: 700; font-size: 0.98rem;
}
.main-nav a:hover { background: var(--ix-gold-soft); text-decoration: none; color: var(--ix-gold-ink); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--ix-gold-ink); background: var(--ix-gold-soft); }
@media (min-width: 1061px) { .main-nav { display: block; } }

.header-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ix-border);
  background: var(--ix-surface); color: var(--ix-ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: background 0.2s;
}
.icon-btn:hover { background: var(--ix-gold-soft); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-toggle { display: inline-flex; }
@media (min-width: 1061px) { .menu-toggle { display: none; } }

/* Mobile nav panel */
.mobile-nav { display: none; border-top: 1px solid var(--ix-border); background: var(--ix-surface); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.6rem 20px 1rem; }
.mobile-nav a { display: block; padding: 0.7em 0.4em; border-bottom: 1px solid var(--ix-border); color: var(--ix-ink); font-weight: 700; }
.mobile-nav a:hover { color: var(--ix-gold-ink); text-decoration: none; }

/* Search overlay */
.search-overlay {
  display: none; position: fixed; inset: 0; z-index: 1500;
  background: rgba(20, 15, 8, 0.55); padding: 12vh 20px 20px;
}
.search-overlay.is-open { display: block; }
.search-overlay__box {
  max-width: 640px; margin: 0 auto; background: var(--ix-surface);
  border-radius: var(--ix-radius); padding: 1.8rem; box-shadow: var(--ix-shadow); position: relative;
}
.search-overlay__close { position: absolute; top: 0.7rem; right: 0.7rem; }
.search-form { display: flex; gap: 0.6rem; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; padding: 0.8em 1em; font-size: 1.05rem; font-family: var(--ix-font-sans);
  border: 2px solid var(--ix-border); border-radius: 10px; background: var(--ix-bg); color: var(--ix-ink);
}
.search-field:focus { border-color: var(--ix-gold); outline: none; }
.search-submit { flex-shrink: 0; }

/* ---------- Hero / Word Finder ---------- */
.hero { background: var(--ix-cream); border-bottom: 1px solid var(--ix-border); padding: 3rem 0; }
.hero__inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 981px) { .hero__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.hero__kicker { color: var(--ix-gold-ink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin: 0 0 0.5em; }
.hero__title { margin-top: 0; }
.hero__sub { color: var(--ix-ink-soft); font-size: 1.08rem; max-width: 34em; }

.word-finder { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 1.4rem; box-shadow: var(--ix-shadow); margin-top: 1.4rem; }
.wf-toggle { display: inline-flex; background: var(--ix-cream); border-radius: 999px; padding: 4px; margin-bottom: 0.9rem; }
.wf-toggle button {
  border: 0; background: transparent; color: var(--ix-ink-soft); font: 700 0.95rem var(--ix-font-sans);
  padding: 0.55em 1.3em; border-radius: 999px; cursor: pointer;
}
.wf-toggle button.is-active { background: var(--ix-gold); color: #fff; }
[data-theme="dark"] .wf-toggle button.is-active { color: #1c160c; }
.wf-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.wf-form .search-field { flex: 1; min-width: 200px; }
.wf-note { font-size: 0.86rem; color: var(--ix-ink-faint); margin: 0.7em 0 0; }
.wf-results { margin-top: 1rem; display: grid; gap: 0.6rem; }
.wf-result {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7em 1em; border: 1px solid var(--ix-border); border-radius: 10px; background: var(--ix-bg);
}
.wf-result__word { font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.1rem; }
.wf-result__meta { font-size: 0.85rem; color: var(--ix-ink-faint); }
.wf-empty { color: var(--ix-ink-soft); background: var(--ix-cream); border-radius: 10px; padding: 0.9em 1.1em; font-size: 0.95rem; }
.wf-loading { color: var(--ix-ink-faint); font-style: italic; }

.wotd { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); box-shadow: var(--ix-shadow); overflow: hidden; max-width: 560px; }
.wotd__label { background: var(--ix-gold); color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.55em 1.2rem; }
[data-theme="dark"] .wotd__label { color: #1c160c; }
.wotd__body { padding: 1.4rem; }
.wotd__word { font-family: var(--ix-font-serif); font-size: 2rem; margin: 0 0 0.15em; }
.wotd__word a { color: var(--ix-ink); }
.wotd__pron { color: var(--ix-gold-ink); font-weight: 700; margin: 0 0 0.6em; }
.wotd__def { color: var(--ix-ink-soft); margin-bottom: 1em; }
.wotd__link { font-weight: 700; }

/* ---------- A–Z strip ---------- */
.az-strip { background: var(--ix-surface); border-bottom: 1px solid var(--ix-border); }
.az-strip__inner { display: flex; flex-wrap: wrap; gap: 0.35rem; padding-top: 0.8rem; padding-bottom: 0.8rem; justify-content: center; }
.az-strip__link {
  min-width: 38px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ix-border); border-radius: 8px; background: var(--ix-bg);
  font-weight: 700; color: var(--ix-ink); font-size: 0.95rem; padding: 0 0.5em;
}
.az-strip__link:hover { background: var(--ix-gold); border-color: var(--ix-gold); color: #fff; text-decoration: none; }
[data-theme="dark"] .az-strip__link:hover { color: #1c160c; }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); } }
.cat-tile {
  background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius);
  padding: 1.3rem 1rem; text-align: center; color: var(--ix-ink); box-shadow: var(--ix-shadow);
  transition: transform 0.15s, border-color 0.2s; display: block;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--ix-gold); text-decoration: none; }
.cat-tile__icon { font-size: 1.7rem; display: block; margin-bottom: 0.4rem; }
.cat-tile__name { font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.02rem; display: block; }
.cat-tile__count { font-size: 0.82rem; color: var(--ix-ink-faint); }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.6rem; }
.chip {
  border: 2px solid var(--ix-border); background: var(--ix-surface); color: var(--ix-ink);
  border-radius: 999px; padding: 0.5em 1.15em; font: 700 0.92rem var(--ix-font-sans); cursor: pointer;
  min-height: 40px;
}
.chip:hover { border-color: var(--ix-gold); }
.chip.is-active { background: var(--ix-gold); border-color: var(--ix-gold); color: #fff; }
[data-theme="dark"] .chip.is-active { color: #1c160c; }

/* ---------- Post grid & cards ---------- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1061px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ix-shadow);
  transition: transform 0.15s;
}
.post-card:hover { transform: translateY(-3px); }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--ix-cream); overflow: hidden; position: relative; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__thumb--letter { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ix-gold-soft), var(--ix-cream)); }
.post-card__thumb--letter span { font-family: var(--ix-font-serif); font-size: 3.2rem; font-weight: 700; color: var(--ix-gold-ink); }
.post-card__body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ix-gold-ink); background: var(--ix-gold-soft); border-radius: 999px; padding: 0.3em 0.9em; margin-bottom: 0.7em;
}
.post-card__title { font-size: 1.22rem; margin: 0 0 0.45em; }
.post-card__title a { color: var(--ix-ink); }
.post-card__title a:hover { color: var(--ix-gold-ink); }
.post-card__excerpt { color: var(--ix-ink-soft); font-size: 0.95rem; flex: 1; }
.post-card__meta { display: flex; gap: 1em; font-size: 0.82rem; color: var(--ix-ink-faint); margin-top: 0.8em; }
.load-more-wrap { text-align: center; margin-top: 2rem; }
.grid-status { text-align: center; color: var(--ix-ink-faint); font-style: italic; padding: 1rem; }

/* ---------- Words table ---------- */
.words-table-wrap { overflow-x: auto; border: 1px solid var(--ix-border); border-radius: var(--ix-radius); background: var(--ix-surface); }
.words-table { margin: 0; }
.words-table th { background: var(--ix-ink); color: var(--ix-bg); font-family: var(--ix-font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.words-table td { vertical-align: top; }
.words-table .word { font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.words-table .word a { color: var(--ix-ink); }
@media (max-width: 640px) {
  .words-table thead { display: none; }
  .words-table, .words-table tbody, .words-table tr, .words-table td { display: block; width: 100%; }
  .words-table tr { border-bottom: 2px solid var(--ix-border); padding: 0.4rem 0; }
  .words-table td { border: 0; padding: 0.35em 1em; }
  .words-table td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ix-ink-faint); }
}

/* ---------- Sidebar / widgets ---------- */
.widget-area { display: grid; gap: 1.6rem; align-content: start; }
.widget { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 1.4rem; }
.widget__title, .widget-title { font-size: 1.15rem; margin: 0 0 0.9em; padding-bottom: 0.5em; border-bottom: 2px solid var(--ix-gold-soft); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45em 0; border-bottom: 1px dashed var(--ix-border); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ix-ink); font-weight: 600; }
.widget a:hover { color: var(--ix-gold-ink); }
.widget .post-date, .widget .count { color: var(--ix-ink-faint); font-size: 0.85rem; }
.tagcloud a {
  display: inline-block; border: 1px solid var(--ix-border); border-radius: 999px;
  padding: 0.3em 0.9em; margin: 0 0.35em 0.5em 0; font-size: 0.88rem !important; color: var(--ix-ink);
}
.tagcloud a:hover { background: var(--ix-gold-soft); border-color: var(--ix-gold); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ix-ink); color: var(--ix-bg); margin-top: 3rem; }
.footer-widgets { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
@media (min-width: 640px) { .footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 981px) { .footer-widgets { grid-template-columns: repeat(4, 1fr); } }
.footer-widgets .widget { background: transparent; border: 0; padding: 0; }
.footer-widgets .widget__title, .footer-widgets .widget-title { color: var(--ix-bg); border-bottom-color: rgba(255,255,255,0.18); }
.footer-widgets a { color: var(--ix-bg); opacity: 0.85; }
.footer-widgets a:hover { opacity: 1; color: var(--ix-bg); }
.footer-widgets li { border-bottom-color: rgba(255,255,255,0.12); }
.footer-brand { font-family: var(--ix-font-serif); font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5em; color: var(--ix-bg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 1.1rem 0; font-size: 0.88rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--ix-bg); opacity: 0.85; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.88rem; color: var(--ix-ink-faint); margin: 0 0 1.2rem; }
.breadcrumbs a { color: var(--ix-gold-ink); font-weight: 600; }
.breadcrumbs .sep { margin: 0 0.5em; }

/* ---------- Article ---------- */
.article { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: clamp(1.4rem, 4vw, 2.6rem); }
.article__title { margin-top: 0.2em; }
.standfirst { font-size: 1.18rem; color: var(--ix-ink-soft); border-left: 4px solid var(--ix-gold); padding-left: 1rem; margin: 1.2em 0 1.6em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 0.4em 1.2em; color: var(--ix-ink-faint); font-size: 0.9rem; margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--ix-border); }
.article__meta strong { color: var(--ix-ink-soft); font-weight: 700; }
.article__thumb { border-radius: var(--ix-radius); overflow: hidden; margin-bottom: 1.8rem; }

.entry-content { font-size: 18px; line-height: 1.78; color: var(--ix-ink); }
.entry-content > p { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 2.2em; padding-top: 0.4em; border-top: 2px solid var(--ix-gold-soft); scroll-margin-top: calc(var(--ix-header-h) + 20px); }
.entry-content h3 { margin-top: 1.8em; color: var(--ix-gold-ink); scroll-margin-top: calc(var(--ix-header-h) + 20px); }
.entry-content li { margin-bottom: 0.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--ix-border); border-radius: var(--ix-radius); }
.table-wrap table { margin: 0; }
.word-table td:first-child { font-family: var(--ix-font-serif); font-weight: 700; }

/* Info boxes */
.quick-answer, .pron-box {
  border: 1px solid var(--ix-border); border-left: 5px solid var(--ix-gold);
  background: var(--ix-cream); border-radius: 0 var(--ix-radius) var(--ix-radius) 0;
  padding: 1.1rem 1.3rem; margin: 1.6em 0;
}
.quick-answer__label, .pron-box__label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ix-gold-ink); margin: 0 0 0.4em;
}
.quick-answer p:last-child, .pron-box p:last-child { margin-bottom: 0; }
.pron-box .pron { font-family: var(--ix-font-serif); font-size: 1.25rem; font-weight: 700; }

/* Table of contents */
.toc { background: var(--ix-cream); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 1.1rem 1.3rem; font-size: 0.95rem; }
.toc__title { font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.05rem; margin: 0 0 0.6em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 0.35em; }
.toc a { color: var(--ix-ink-soft); }
.toc a:hover { color: var(--ix-gold-ink); }
.toc--sidebar { position: sticky; top: calc(var(--ix-header-h) + 20px); margin-bottom: 1.6rem; }
.toc--inline { margin: 1.4em 0; }
.toc--inline summary { cursor: pointer; font-weight: 700; font-family: var(--ix-font-serif); font-size: 1.05rem; }
@media (min-width: 981px) { .toc--inline { display: none; } }
@media (max-width: 980px) { .toc--sidebar { display: none; } }

/* Example sentences & FAQ */
.example-list { counter-reset: ex; list-style: none; padding: 0; }
.example-list li { counter-increment: ex; position: relative; padding: 0.7em 1em 0.7em 3.2em; background: var(--ix-bg); border: 1px solid var(--ix-border); border-radius: 10px; margin-bottom: 0.7em; }
.example-list li::before {
  content: counter(ex); position: absolute; left: 0.9em; top: 0.75em;
  width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ix-gold-soft); color: var(--ix-gold-ink);
  font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center;
}
.faq-list details { border: 1px solid var(--ix-border); border-radius: 10px; margin-bottom: 0.7em; background: var(--ix-bg); }
.faq-list summary { cursor: pointer; padding: 0.85em 1.1em; font-weight: 700; font-family: var(--ix-font-serif); }
.faq-list .faq-a { padding: 0 1.1em 1em; color: var(--ix-ink-soft); }

.tags { margin: 2em 0 0; font-size: 0.92rem; }
.tags a { display: inline-block; background: var(--ix-cream); border: 1px solid var(--ix-border); border-radius: 999px; padding: 0.3em 0.95em; margin: 0 0.4em 0.5em 0; color: var(--ix-ink-soft); font-weight: 600; }
.tags a:hover { border-color: var(--ix-gold); color: var(--ix-gold-ink); text-decoration: none; }

.post-nav { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2.2rem 0 0; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 1rem 1.2rem; background: var(--ix-surface); color: var(--ix-ink); }
.post-nav a:hover { border-color: var(--ix-gold); text-decoration: none; }
.post-nav .nav-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ix-ink-faint); font-weight: 700; margin-bottom: 0.3em; }
.post-nav .nav-title { font-family: var(--ix-font-serif); font-weight: 700; }
.post-nav .next { text-align: right; }

.author-box { display: flex; gap: 1.1rem; background: var(--ix-cream); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 1.3rem; margin: 2rem 0 0; align-items: flex-start; }
.author-box .avatar { border-radius: 50%; flex-shrink: 0; }
.author-box__name { font-family: var(--ix-font-serif); font-weight: 700; font-size: 1.1rem; margin: 0 0 0.3em; }
.author-box__bio { color: var(--ix-ink-soft); font-size: 0.95rem; margin: 0; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: 1.2rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1061px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Category archive ---------- */
.cat-hero { background: var(--ix-cream); border-bottom: 1px solid var(--ix-border); padding: 2.4rem 0; margin-bottom: 2rem; }
.cat-hero h1 { margin: 0 0 0.3em; }
.cat-hero__desc { color: var(--ix-ink-soft); max-width: 44em; margin-bottom: 0.6em; }
.cat-hero__count { color: var(--ix-ink-faint); font-size: 0.92rem; font-weight: 700; }
.explore-cats { margin: 3rem 0 0; }

/* ---------- Pagination ---------- */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 2.4rem 0 0; }
.page-numbers {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ix-border); border-radius: 10px; background: var(--ix-surface);
  color: var(--ix-ink); font-weight: 700; padding: 0 0.8em;
}
a.page-numbers:hover { border-color: var(--ix-gold); color: var(--ix-gold-ink); text-decoration: none; }
.page-numbers.current { background: var(--ix-gold); border-color: var(--ix-gold); color: #fff; }
[data-theme="dark"] .page-numbers.current { color: #1c160c; }

/* ---------- Search results ---------- */
.search-head { background: var(--ix-cream); border-bottom: 1px solid var(--ix-border); padding: 2.2rem 0; margin-bottom: 2rem; }
.search-head h1 { margin: 0 0 0.3em; font-size: clamp(1.5rem, 3vw, 2rem); }
.search-head .query { color: var(--ix-gold-ink); }
mark { background: var(--ix-gold-soft); color: var(--ix-ink); padding: 0.05em 0.2em; border-radius: 4px; }
.no-results { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 2.2rem; text-align: center; }
.no-results h2 { margin-top: 0; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 2.5rem; background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: 1.6rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--ix-border); padding: 1.1rem 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-meta { font-size: 0.88rem; color: var(--ix-ink-faint); margin-bottom: 0.4em; }
.comment-form label { display: block; font-weight: 700; margin: 0.8em 0 0.3em; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 0.7em 0.9em; border: 2px solid var(--ix-border); border-radius: 10px;
  background: var(--ix-bg); color: var(--ix-ink); font-family: var(--ix-font-sans); font-size: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ix-gold); outline: none; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 4rem 0; }
.error-404__code { font-family: var(--ix-font-serif); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--ix-gold); line-height: 1; margin: 0; }

/* ---------- Page (static) ---------- */
.page-article { background: var(--ix-surface); border: 1px solid var(--ix-border); border-radius: var(--ix-radius); padding: clamp(1.4rem, 4vw, 2.6rem); }
.page-article .entry-content { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; display: none;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ix-border);
  background: var(--ix-surface); color: var(--ix-ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--ix-shadow);
}
.to-top.is-visible { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Responsive fixes ---------- */
@media (max-width: 1060px) {
  .site-tagline { display: none; }
}
@media (max-width: 640px) {
  .site-title { font-size: 1.2rem; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.25rem; }
  .section { padding: 2.2rem 0; }
  .hero { padding: 2.2rem 0; }
  .entry-content { font-size: 17px; }
  .topbar__social { display: none; }
  .wf-form .btn { width: 100%; }
  .author-box { flex-direction: column; }
}

/* Screen-reader text (WP core classes) */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.88rem; color: var(--ix-ink-faint); text-align: center; }

/* ---------- Article columns (TOC rail) ---------- */
.article-columns { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.6rem; }
@media (min-width: 981px) {
  .article-columns { grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
}
