/*
Theme Name: Editorial Minimal 4.2.2
Theme URI: https://lacorte.adv.br/
Description: Tema-filho editorial multi-site, inspirado na navegação e legibilidade do AkitaOnRails. Uma única base para publicações diferentes, com perfis visuais, cores, fontes e navegação configuráveis por site.
Author: Christiano Lacorte
Author URI: https://lacorte.adv.br/
Template: twentytwentyfive
Version: 4.2.2
Requires at least: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: editorial-minimal
*/

:root {
  --lc-paper: var(--wp--preset--color--paper, #faf7f0);
  --lc-paper-soft: var(--wp--preset--color--paper-soft, #f1ece0);
  --lc-paper-border: var(--wp--preset--color--paper-border, #e8e2d2);
  --lc-ink: var(--wp--preset--color--ink, #2a2622);
  --lc-heading: var(--wp--preset--color--heading, #1f2937);
  --lc-muted: var(--wp--preset--color--muted, #6b7280);
  --lc-accent: var(--wp--preset--color--accent, #b84a2f);
  --lc-accent-soft: var(--wp--preset--color--accent-soft, #f5e8e1);
  --lc-ui: var(--wp--preset--font-family--editorial-ui, "Source Sans 3", "Helvetica Neue", "Segoe UI", Arial, sans-serif);
  --lc-body: var(--wp--preset--font-family--editorial-body, "Source Serif 4", Charter, Georgia, Cambria, serif);
  --lc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --lc-nav-h: 64px;
  --lc-nav-max: 1440px;
  --lc-max: 1320px;
  --lc-reading: 68ch;
  --lc-radius: 6px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lc-paper);
  color: var(--lc-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
::selection { background: var(--lc-accent-soft); color: var(--lc-ink); }

/* Dark mode keeps the same warm-paper logic as the reference. */
html[data-editorial-theme="dark"] {
  --lc-paper: #1a1714;
  --lc-paper-soft: #23201c;
  --lc-paper-border: #38322c;
  --lc-ink: #e8e2d6;
  --lc-heading: #f4efe6;
  --lc-muted: #aaa197;
  --lc-accent: #df8068;
  --lc-accent-soft: #3c2923;
  color-scheme: dark;
}

/* ---------- Top navigation — refined from AkitaOnRails/Hextra ---------- */
.lc-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  min-height: var(--lc-nav-h);
  background: transparent;
}
.admin-bar .lc-site-header { top: 32px; }
.lc-header-blur {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--lc-paper) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--lc-paper-border) 72%, transparent);
  box-shadow: 0 2px 4px rgba(0,0,0,.018), 0 1px 0 rgba(0,0,0,.04);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
}
.lc-header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--lc-nav-max);
  min-height: var(--lc-nav-h);
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Two-tone publication wordmark. */
.lc-brand-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--lc-heading);
  text-decoration: none !important;
  white-space: nowrap;
}
.lc-wordmark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
  text-rendering: geometricPrecision;
}
.lc-brand--ui { font-family: var(--lc-ui); }
.lc-brand--body { font-family: var(--lc-body); letter-spacing: -.025em; }
.lc-brand--system { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.lc-wordmark--header { font-size: 1.18rem; }
.lc-wordmark--home { font-size: 1em; }
.lc-wordmark-primary { color: var(--lc-ink); }
.lc-wordmark-accent { color: var(--lc-accent); }
.lc-brand-link:hover .lc-wordmark-primary { color: color-mix(in srgb, var(--lc-ink) 78%, var(--lc-accent)); }
.lc-brand-link:focus-visible { border-radius: 4px; }

/* Topbar geometry: 4.0 search treatment + Hextra-style compact navigation. */
.lc-nav-area {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  min-width: 0;
  min-height: 40px;
}
.lc-primary-nav {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  font-family: var(--lc-ui);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
}
.lc-primary-nav-list,
.lc-category-submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lc-primary-nav-list {
  display: flex;
  align-items: center;
  gap: .125rem;
  min-height: 40px;
}
.lc-primary-nav-list > li {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0;
}
.lc-nav-link,
.lc-category-toggle {
  box-sizing: border-box;
  display: inline-flex;
  height: 40px;
  min-height: 40px;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  padding: .42rem .5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: inherit;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.lc-category-toggle > span,
.lc-nav-link { line-height: 1; }
.lc-nav-link:hover,
.lc-category-toggle:hover { color: var(--lc-heading); }
.lc-nav-link.is-current,
.lc-nav-link[aria-current="page"],
.lc-category-submenu a[aria-current="page"] { color: var(--lc-heading); font-weight: 700; }
.lc-nav-link:focus,
.lc-category-toggle:focus { outline: none; }
.lc-nav-link:focus-visible,
.lc-category-toggle:focus-visible {
  color: var(--lc-heading);
  background: var(--lc-paper-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lc-accent) 35%, transparent);
}
.lc-rss-item,
.lc-category-menu,
.lc-search-wrap { align-self: center; }
.lc-rss-link { line-height: 1 !important; }

/* Categories dropdown: compact list, but top-level button shares the exact link box. */
.lc-category-menu {
  position: relative;
  display: flex;
  height: 40px;
  min-height: 40px;
  align-items: center;
}
.lc-chevron {
  width: 12px;
  height: 12px;
  flex: none;
  display: block;
  transition: transform .18s ease;
}
.lc-category-menu.is-open .lc-chevron { transform: rotate(180deg); }
.lc-category-submenu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  width: max-content;
  min-width: 210px;
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(55vh, 360px);
  overflow: auto;
  padding: 4px 0;
  border: 1px solid var(--lc-paper-border);
  border-radius: 8px;
  background: var(--lc-paper);
  box-shadow: 0 12px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
}
.lc-category-menu.is-open .lc-category-submenu { display: block; }
.lc-category-submenu li { margin: 0 !important; padding: 0 !important; }
.lc-category-submenu a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: .42rem .75rem;
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .12s ease, background-color .12s ease;
}
.lc-category-submenu a:hover,
.lc-category-submenu a:focus-visible {
  color: var(--lc-heading);
  background: var(--lc-paper-soft);
  outline: none;
}

/* Search: deliberately restored to the 4.0 treatment. The shortcut is anchored
   to an internal field wrapper, so WordPress/browser form styles cannot move it. */
.lc-search-wrap {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 205px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  align-self: center;
  margin: 0;
}
.lc-nav-search {
  display: flex;
  align-items: center;
  align-self: center;
  width: 205px;
  height: 40px;
  min-height: 40px;
  margin: 0 !important;
}
.lc-nav-search__field {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 38px;
  min-height: 38px;
  margin: 0;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--lc-paper-border);
  border-radius: 6px;
  background: color-mix(in srgb, var(--lc-paper-soft) 54%, transparent);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lc-nav-search input[type="search"] {
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0 !important;
  padding: .5rem 3.1rem .5rem .8rem;
  border: 0 !important;
  border-radius: 0;
  outline: none !important;
  background: transparent !important;
  color: var(--lc-ink) !important;
  font-family: var(--lc-ui) !important;
  font-size: .86rem !important;
  font-style: normal;
  font-weight: 500;
  line-height: 1 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
.lc-nav-search input[type="search"]::placeholder { color: var(--lc-muted); opacity: .9; }
.lc-nav-search__field:focus-within {
  border-color: var(--lc-accent);
  background: color-mix(in srgb, var(--lc-paper) 96%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lc-accent) 14%, transparent);
}
.lc-search-shortcut {
  position: absolute;
  z-index: 2;
  right: .48rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .13rem .32rem;
  border: 1px solid var(--lc-paper-border);
  border-radius: 4px;
  background: var(--lc-paper);
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .64rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
  transition: opacity .12s ease;
}
.lc-nav-search:focus-within .lc-search-shortcut { opacity: 0; }

.lc-theme-toggle,
.lc-menu-toggle {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--lc-muted);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.lc-theme-toggle { display: inline-flex; }
.lc-menu-toggle { display: none; margin-left: auto; }
.lc-theme-toggle:hover,
.lc-menu-toggle:hover { color: var(--lc-heading); background: color-mix(in srgb, var(--lc-ink) 5%, transparent); }
.lc-theme-toggle:focus-visible,
.lc-menu-toggle:focus-visible {
  outline: none;
  color: var(--lc-heading);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lc-accent) 35%, transparent);
}
.lc-theme-toggle svg { width: 18px; height: 18px; }
.lc-menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1210px) and (min-width: 1051px) {
  .lc-header-inner { padding-inline: 20px; }
  .lc-nav-link,
  .lc-category-toggle { padding-inline: .42rem; }
  .lc-search-wrap,
  .lc-nav-search { width: 180px; }
  .lc-search-wrap { height: 40px; }
  .lc-nav-search { height: 40px; }
}

@media (max-width: 1050px) {
  .lc-menu-toggle { display: inline-flex; }
  .lc-nav-area {
    position: fixed;
    z-index: 1001;
    inset: var(--lc-nav-h) 0 0 0;
    display: none;
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 1rem max(20px, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    background: var(--lc-paper);
    border-top: 1px solid var(--lc-paper-border);
  }
  body.editorial-menu-open { overflow: hidden; }
  body.editorial-menu-open .lc-nav-area { display: block; }
  .lc-primary-nav { display: block; font-size: 1rem; }
  .lc-primary-nav-list { display: block; width: min(100%, 680px); margin-inline: auto; }
  .lc-primary-nav-list > li { width: 100%; min-height: 48px; height: auto; display: block; }
  .lc-category-menu { height: auto; min-height: 48px; }
  .lc-nav-link,
  .lc-category-toggle {
    width: 100%;
    height: auto;
    min-height: 48px;
    justify-content: space-between;
    padding: .7rem .25rem;
    border-radius: 0;
    color: var(--lc-ink);
    font-size: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--lc-paper-border) 72%, transparent);
  }
  .lc-category-menu.is-open .lc-category-toggle { color: var(--lc-accent); }
  .lc-category-submenu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: .2rem 0 .45rem .8rem;
    border: 0;
    border-left: 1px solid var(--lc-paper-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .lc-category-submenu a {
    min-height: 40px;
    padding: .55rem .7rem;
    font-size: .94rem;
    white-space: normal;
  }
  .lc-search-wrap {
    width: min(100%, 680px);
    height: 42px;
    margin: 1rem auto 0;
  }
  .lc-nav-search { width: 100%; }
  .lc-nav-search,
  .lc-nav-search__field,
  .lc-nav-search input[type="search"] { height: 42px; }
  .lc-theme-toggle {
    display: flex;
    margin: .75rem auto 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .lc-site-header { top: 46px; }
  .lc-header-inner { min-height: 60px; padding-inline: 18px; }
  .lc-wordmark--header { font-size: 1.12rem; }
}

@media (max-width: 520px) {
  .lc-header-inner { gap: .65rem; }
  .lc-brand-link { max-width: calc(100vw - 88px); overflow: hidden; }
  .lc-wordmark { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .lc-search-shortcut { display: none; }
  .lc-nav-search input[type="search"] { padding-right: .8rem; }
}

/* ---------- Shared editorial shell ---------- */
.lc-main { padding-bottom: clamp(4rem, 8vw, 7rem); }
.lc-shell {
  max-width: var(--lc-max) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: start;
  column-gap: clamp(38px, 5vw, 72px);
  padding: clamp(2rem, 5vw, 4rem) clamp(20px, 3vw, 32px) 0;
}
.lc-shell-main { min-width: 0; max-width: 900px; }
.lc-side-toc {
  position: sticky;
  top: calc(var(--lc-nav-h) + 28px);
  align-self: start;
  padding-top: .25rem;
  font-family: var(--lc-ui);
  font-size: .8rem;
  line-height: 1.45;
}
.lc-side-toc.is-empty { display: none; }
.lc-toc-title {
  margin: 0 0 .7rem !important;
  color: var(--lc-heading);
  font-family: var(--lc-ui) !important;
  font-size: .79rem !important;
  font-weight: 700;
}
.lc-toc-list { margin: 0; padding: 0; list-style: none; }
.lc-toc-list li { margin: .18rem 0; }
.lc-toc-list li[data-level="3"] { padding-left: .75rem; }
.lc-toc-list a {
  display: block;
  padding: .25rem .35rem;
  border-radius: 3px;
  color: var(--lc-muted);
  text-decoration: none;
}
.lc-toc-list a:hover,
.lc-toc-list a.is-active { color: var(--lc-heading); background: var(--lc-paper-soft); }
.lc-back-top {
  display: inline-block;
  margin-top: .9rem;
  color: var(--lc-muted);
  font-size: .74rem;
  text-decoration: none;
}

/* Home intentionally has no TOC: the post index gets the full visual field. */
.lc-shell--index { display: block !important; max-width: 1080px !important; }
.lc-shell--index .lc-shell-main { max-width: 960px; margin-inline: auto; }

/* ---------- Home / indexes ---------- */
.lc-index-header { margin-bottom: 2.2rem !important; }
.lc-index-title {
  margin: 0 0 .35rem !important;
  color: var(--lc-heading);
  font-family: var(--lc-ui) !important;
  font-size: clamp(2rem, 4vw, 2.65rem) !important;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.lc-index-title a { color: inherit !important; text-decoration: none !important; }
.lc-index-title .lc-wordmark { letter-spacing: -.04em; }
.lc-index-note {
  margin: 0 !important;
  color: var(--lc-muted);
  font-size: 1rem !important;
}
.lc-index-note a { color: var(--lc-accent); }
.lc-index-query { margin: 0 !important; }
.lc-index-query .wp-block-post-template { gap: 0; }
.lc-post-entry {
  padding: 1.7rem 0 1.9rem;
  border-top: 1px solid var(--lc-paper-border);
}
.lc-post-entry:first-child { border-top: 0; padding-top: .2rem; }
.lc-post-entry-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.lc-post-copy { min-width: 0; }
.lc-post-date {
  margin: 0 0 .35rem !important;
  color: var(--lc-muted) !important;
  font-family: var(--lc-mono) !important;
  font-size: .72rem !important;
  line-height: 1.35;
}
.lc-post-entry .wp-block-post-title {
  margin: 0 0 .5rem !important;
  color: var(--lc-heading);
  font-family: var(--lc-ui) !important;
  font-size: clamp(1.28rem, 2.25vw, 1.56rem) !important;
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.24;
}
.lc-post-entry .wp-block-post-title a { color: inherit !important; text-decoration: none !important; }
.lc-post-entry .wp-block-post-title a:hover { color: var(--lc-accent) !important; }
.lc-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .55rem;
  margin: 0 0 .55rem !important;
  color: var(--lc-muted);
  font-family: var(--lc-ui) !important;
  font-size: .76rem !important;
}
.lc-post-terms a { color: var(--lc-accent) !important; text-decoration: none !important; }
.lc-post-entry .wp-block-post-excerpt {
  margin: 0 !important;
  color: var(--lc-ink) !important;
  font-family: var(--lc-body) !important;
  font-size: 1.03rem !important;
  line-height: 1.62 !important;
}
.lc-post-entry .wp-block-post-excerpt__excerpt { margin: 0 !important; }
.lc-post-thumb { margin: .15rem 0 0 !important; }
.lc-post-thumb:not(:has(img)) { display: none; }
.lc-post-thumb img {
  width: 176px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--lc-radius);
  box-shadow: 0 4px 18px rgba(42, 38, 34, .05);
}
.lc-post-entry-inner:not(:has(.lc-post-thumb img)) { grid-template-columns: 1fr; }

/* Pagination */
.lc-pagination {
  margin-top: 2rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--lc-paper-border);
  gap: .35rem;
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .82rem;
}
.lc-pagination a,
.lc-pagination .page-numbers {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  border-radius: 4px;
  color: var(--lc-muted);
  text-decoration: none;
}
.lc-pagination a:hover { background: var(--lc-paper-soft); color: var(--lc-heading); }
.lc-pagination .current { color: var(--lc-paper); background: var(--lc-accent); }

/* ---------- Article ---------- */
.lc-article { max-width: var(--lc-reading); margin-inline: auto; }
.lc-article-header { margin-bottom: clamp(2rem, 4vw, 3.4rem) !important; text-align: center; }
.lc-article-title {
  margin: 0 0 .8rem !important;
  color: var(--lc-heading);
  font-family: var(--lc-ui) !important;
  font-size: clamp(2.05rem, 5vw, 3.05rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.026em !important;
  line-height: 1.1 !important;
}
.lc-article-categories { margin: 0 0 .5rem !important; }
.lc-article-categories a {
  color: var(--lc-accent) !important;
  font-family: var(--lc-ui);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none !important;
}
.lc-article-deck {
  max-width: 60ch;
  margin: .85rem auto 0 !important;
  color: var(--lc-muted) !important;
  font-family: var(--lc-body) !important;
  font-size: clamp(1.08rem, 2vw, 1.22rem) !important;
  font-style: italic;
  line-height: 1.6 !important;
}
.lc-article-meta {
  justify-content: center;
  margin-top: .9rem !important;
  gap: .5rem;
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .78rem;
}
.lc-article-featured { margin: 0 auto clamp(2.4rem, 5vw, 3.8rem) !important; }
.lc-article-featured:not(:has(img)) { display: none; }
.lc-article-featured img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--lc-radius);
}
.lc-article-content {
  max-width: var(--lc-reading);
  margin-inline: auto;
  color: var(--lc-ink);
  font-family: var(--lc-body);
  font-size: clamp(1.12rem, 1.5vw, 1.19rem);
  line-height: 1.72;
  hyphens: auto;
}
.lc-article-content :where(p, li) { text-wrap: pretty; }
.lc-article-content > p { margin: 0 0 1.35em; }
.lc-article-content :where(h2,h3,h4,h5,h6) {
  scroll-margin-top: calc(var(--lc-nav-h) + 28px);
  color: var(--lc-heading);
  font-family: var(--lc-ui) !important;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.15;
  hyphens: none;
}
.lc-article-content h2 { margin: 2.2em 0 .7em; font-size: clamp(1.65rem, 3vw, 2rem); }
.lc-article-content h3 { margin: 1.9em 0 .65em; font-size: clamp(1.35rem, 2.5vw, 1.6rem); }
.lc-article-content a {
  color: var(--lc-accent);
  text-decoration-thickness: from-font;
  text-underline-offset: .12em;
  text-decoration-skip-ink: auto;
}
.lc-article-content blockquote {
  margin: 2rem 0;
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 3px solid var(--lc-accent);
  color: color-mix(in srgb, var(--lc-ink) 88%, var(--lc-muted));
  font-size: 1.06em;
  font-style: italic;
}
.lc-article-content :where(ul,ol) { margin-block: 1.25em; }
.lc-article-content li { margin-block: .4em; }
.lc-article-content :where(pre,code,kbd,samp) { hyphens: none; }
.lc-article-content pre,
.lc-article-content .wp-block-code {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--lc-paper-border);
  border-radius: 5px;
  background: var(--lc-paper-soft);
  font-size: .88em;
  line-height: 1.6;
}
.lc-article-content :where(code):not(pre code) {
  padding: .1em .3em;
  border-radius: 3px;
  background: var(--lc-paper-soft);
  font-size: .88em;
}

/* Images inside article content remain entirely Gutenberg-native. */
.lc-article-content .wp-block-image { margin-block: 2rem; }
.lc-article-content .wp-block-image img { max-width: 100%; height: auto; border-radius: 3px; }
.lc-article-content .wp-block-image figcaption,
.lc-article-content .wp-block-gallery figcaption {
  margin-top: .5rem;
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .75rem;
  line-height: 1.45;
  text-align: center;
}
.lc-article-content .alignwide {
  width: min(92vw, 960px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.lc-article-content .alignfull {
  width: min(100vw, 1180px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.lc-article-footer {
  max-width: var(--lc-reading);
  margin: 3.4rem auto 0 !important;
  padding-top: 1rem;
  border-top: 1px solid var(--lc-paper-border);
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .78rem;
}
.lc-article-footer a { color: var(--lc-muted); }

/* ---------- Generic pages / search / taxonomies ---------- */
.lc-page { max-width: var(--lc-reading); margin-inline: auto; }
.lc-page-title,
.lc-tax-title,
.lc-search-title {
  margin: 0 0 1.4rem !important;
  color: var(--lc-heading);
  font-family: var(--lc-ui) !important;
  font-size: clamp(2rem, 4.5vw, 2.65rem) !important;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.lc-page-content { font-family: var(--lc-body); font-size: 1.12rem; line-height: 1.72; }
.lc-page-content :where(h2,h3,h4) { scroll-margin-top: calc(var(--lc-nav-h) + 24px); font-family: var(--lc-ui); color: var(--lc-heading); }
.lc-page-content h2 { margin-top: 2.1em; }
.lc-page-content a { color: var(--lc-accent); }

.lc-search-form { max-width: 620px; margin: 0 0 2.2rem !important; }
.lc-search-form .wp-block-search__inside-wrapper {
  border: 1px solid var(--lc-paper-border);
  border-radius: 6px;
  background: var(--lc-paper-soft);
}
.lc-search-form .wp-block-search__input {
  padding: .7rem .8rem;
  border: 0;
  background: transparent;
  color: var(--lc-ink);
  font-family: var(--lc-ui);
  font-size: 1rem;
}
.lc-search-form .wp-block-search__button {
  margin: 4px;
  border: 0;
  border-radius: 4px;
  background: var(--lc-heading);
  color: var(--lc-paper);
}

/* Dynamic chronological archive shortcode. */
.lc-archive-intro { margin-bottom: 2rem; color: var(--lc-muted); }
.lc-archive-group { margin: 2.1rem 0 0; scroll-margin-top: calc(var(--lc-nav-h) + 24px); }
.lc-archive-group h2 {
  margin: 0 0 .65rem;
  color: var(--lc-heading);
  font-family: var(--lc-ui);
  font-size: 1.18rem;
}
.lc-archive-list { margin: 0; padding: 0; list-style: none; }
.lc-archive-list li {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 1rem;
  padding: .48rem 0;
  border-top: 1px solid color-mix(in srgb, var(--lc-paper-border) 70%, transparent);
}
.lc-archive-date { color: var(--lc-muted); font-family: var(--lc-mono); font-size: .72rem; }
.lc-archive-list a { color: var(--lc-ink); text-decoration: none; }
.lc-archive-list a:hover { color: var(--lc-accent); }

/* ---------- Footer ---------- */
.lc-footer {
  border-top: 1px solid var(--lc-paper-border);
  background: var(--lc-paper);
}
.lc-footer-inner {
  max-width: var(--lc-max) !important;
  min-height: 92px;
  gap: 1.2rem;
  padding: 1.4rem clamp(20px, 3vw, 32px);
  color: var(--lc-muted);
  font-family: var(--lc-ui);
  font-size: .76rem;
}
.lc-footer a { color: var(--lc-muted); text-decoration: none; }
.lc-footer a:hover { color: var(--lc-accent); }

/* ---------- Accessibility ---------- */
:where(a,button,input,textarea,select):focus-visible {
  outline: 2px solid var(--lc-accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lc-shell { grid-template-columns: 1fr; }
  .lc-side-toc { display: none !important; }
  .lc-shell-main { max-width: 900px; margin-inline: auto; }
}

@media (max-width: 820px) {
  .lc-shell { padding-top: 2.25rem; }
  .lc-post-entry-inner { grid-template-columns: minmax(0,1fr) 145px; gap: 20px; }
  .lc-post-thumb img { width: 145px; }
}

@media (max-width: 620px) {
  .lc-shell { padding-inline: 20px; padding-top: 2rem; }
  .lc-index-header { margin-bottom: 1.5rem !important; }
  .lc-index-title { font-size: 1.85rem !important; }
  .lc-index-note { font-size: .95rem !important; }
  .lc-post-entry { padding: 1.45rem 0 1.6rem; }
  .lc-post-entry-inner { display: flex !important; flex-direction: column-reverse; gap: .9rem; }
  .lc-post-thumb { width: 100%; }
  .lc-post-thumb img { width: 100%; aspect-ratio: 16/9; }
  .lc-post-entry .wp-block-post-title { font-size: 1.32rem !important; }
  .lc-post-entry .wp-block-post-excerpt { font-size: 1rem !important; }
  .lc-article-header { margin-bottom: 2rem !important; }
  .lc-article-title { font-size: clamp(2rem, 10vw, 2.5rem) !important; }
  .lc-article-content { font-size: 1.08rem; line-height: 1.7; }
  .lc-article-featured { margin-bottom: 2.2rem !important; }
  .lc-article-content .alignwide,
  .lc-article-content .alignfull { width: calc(100vw - 24px); }
  .lc-pagination { justify-content: space-between !important; }
  .lc-pagination .wp-block-query-pagination-numbers { display: none; }
  .lc-archive-list li { grid-template-columns: 62px minmax(0,1fr); gap: .75rem; }
  .lc-footer-inner { flex-direction: column; align-items: flex-start !important; min-height: 0; }
}


/* Menu icon state. */
.lc-menu-icon { width: 22px; height: 22px; }
.lc-menu-icon--close { display: none; }
.lc-menu-toggle.is-open .lc-menu-icon--open { display: none; }
.lc-menu-toggle.is-open .lc-menu-icon--close { display: block; }

/* 4.2 footer wordmark and final responsive details. */
.lc-footer-inner { display: flex; align-items: center; justify-content: space-between; }
.lc-footer-identity { display: grid; gap: .42rem; }
.lc-footer-identity p { margin: 0; }
.lc-footer-brand { display: inline-flex; width: max-content; color: var(--lc-heading); text-decoration: none !important; }
.lc-wordmark--footer { font-size: .98rem; }
.lc-footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.lc-footer-nav a { display: inline-flex; min-height: 34px; align-items: center; }
@media (max-width: 1050px) {
  .admin-bar .lc-nav-area { inset-block-start: calc(var(--lc-nav-h) + 32px); }
}
@media (max-width: 782px) {
  .admin-bar .lc-nav-area { inset-block-start: calc(var(--lc-nav-h) + 46px); }
}
@media (max-width: 620px) {
  .lc-wordmark--header { font-size: 1.08rem; }
  .lc-footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
