/*
Theme Name: EuroFinance Atlas
Author: Gabriel de Jesus
Description: Tema financeiro reutilizável, rápido e mobile-first, com identidade editável, leitura imersiva, navegação interna, anúncios compatíveis com Google Ad Manager, otimização segura e add-ons opcionais.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eurofinance-atlas
Tags: blog, news, one-column, two-columns, custom-colors, custom-logo, custom-menu, editor-style, accessibility-ready, translation-ready
*/

:root {
  --efa-accent: #1d4e6f;
  --efa-accent-dark: #143a53;
  --efa-ink: #263a46;
  --efa-text: #334754;
  --efa-muted: #607482;
  --efa-bg: #f7fafb;
  --efa-surface: #ffffff;
  --efa-line: #dbe6ec;
  --efa-soft: #eaf2f6;
  --efa-warm: #f6f0e4;
  --efa-danger: #9b402c;
  --efa-content-width: 760px;
  --efa-wide-width: 1180px;
  --efa-body-size: 18px;
  --efa-radius-sm: 10px;
  --efa-radius-md: 16px;
  --efa-radius-lg: 24px;
  --efa-shadow-sm: 0 8px 26px rgba(29, 78, 111, 0.06);
  --efa-shadow-md: 0 18px 48px rgba(29, 78, 111, 0.1);
  --efa-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--efa-bg);
  color: var(--efa-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--efa-body-size);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header.is-sticky {
  top: 32px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--efa-accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--efa-accent);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--efa-accent) 35%, transparent);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--efa-accent) 24%, white);
  color: var(--efa-ink);
}

.screen-reader-text {
  position: absolute !important;
  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 {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  margin: 0;
  clip: auto;
  border-radius: 8px;
  background: var(--efa-ink);
  color: #fff;
  font-weight: 700;
}

.efa-shell {
  width: min(calc(100% - 40px), var(--efa-wide-width));
  margin-inline: auto;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--efa-line);
  background: color-mix(in srgb, var(--efa-surface) 95%, transparent);
  backdrop-filter: blur(12px);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-branding {
  min-width: max-content;
  display: flex;
  align-items: center;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 34px;
}

.site-title {
  margin: 0;
  max-width: 260px;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
}

.site-title a {
  display: block;
  overflow: hidden;
  color: var(--efa-ink);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-title__mark {
  color: var(--efa-accent);
}

.site-description {
  margin: 0 0 0 10px;
  color: var(--efa-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.primary-navigation {
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: block;
  padding: 22px 0;
  color: var(--efa-ink);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--efa-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--efa-transition);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus::after,
.primary-navigation .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-tool,
.menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--efa-line);
  border-radius: 50%;
  background: var(--efa-surface);
  color: var(--efa-ink);
  cursor: pointer;
  transition: border-color var(--efa-transition), background var(--efa-transition), transform var(--efa-transition);
}

.header-tool:hover,
.header-tool:focus,
.menu-toggle:hover,
.menu-toggle:focus {
  border-color: var(--efa-accent);
  background: var(--efa-soft);
}

.header-tool:active,
.menu-toggle:active {
  transform: scale(0.96);
}

.header-tool svg,
.menu-toggle svg {
  width: 19px;
  height: 19px;
}

.menu-toggle {
  display: none;
}

.search-panel {
  display: none;
  padding: 14px 0 18px;
  border-top: 1px solid var(--efa-line);
  background: var(--efa-surface);
}

.search-panel.is-open {
  display: block;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin-inline: auto;
}

.search-field {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--efa-line);
  border-radius: 10px;
  background: #fff;
  color: var(--efa-ink);
}

.search-field:focus {
  border-color: var(--efa-accent);
  outline: 3px solid color-mix(in srgb, var(--efa-accent) 15%, transparent);
}

.search-submit,
.efa-button {
  min-height: 46px;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--efa-ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--efa-transition), transform var(--efa-transition);
}

.search-submit:hover,
.search-submit:focus,
.efa-button:hover,
.efa-button:focus {
  background: var(--efa-accent-dark);
  color: #fff;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress__bar {
  width: 100%;
  height: 100%;
  background: var(--efa-accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* Homepage */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 58px;
  background:
    radial-gradient(circle at 83% 18%, color-mix(in srgb, var(--efa-accent) 18%, transparent), transparent 27%),
    linear-gradient(135deg, var(--efa-ink), color-mix(in srgb, var(--efa-ink) 86%, var(--efa-accent)));
  color: #fff;
}

.home-hero::after {
  content: "€";
  position: absolute;
  right: max(4vw, 20px);
  bottom: -105px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(280px, 34vw, 520px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.efa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: color-mix(in srgb, var(--efa-accent) 35%, white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.efa-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.home-hero h1 {
  max-width: 730px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6.2vw, 72px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-hero__description {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.65;
}

.topic-nav {
  padding: 21px 0;
  border-bottom: 1px solid var(--efa-line);
  background: var(--efa-surface);
}

.topic-nav__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-nav__inner::-webkit-scrollbar {
  display: none;
}

.topic-nav__label {
  flex: 0 0 auto;
  margin-right: 3px;
  color: var(--efa-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topic-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--efa-line);
  border-radius: 999px;
  background: var(--efa-bg);
  color: var(--efa-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.topic-chip:hover,
.topic-chip:focus {
  border-color: var(--efa-accent);
  background: var(--efa-soft);
}

.home-section,
.archive-section {
  padding: 64px 0;
}

.home-section + .home-section {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.archive-header h1 {
  margin: 0;
  color: var(--efa-ink);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 830;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-heading p,
.archive-description {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--efa-muted);
  font-size: 15px;
}

.section-heading__link {
  flex: 0 0 auto;
  color: var(--efa-accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--efa-line);
  border-radius: var(--efa-radius-md);
  background: var(--efa-surface);
  box-shadow: var(--efa-shadow-sm);
  transition: transform var(--efa-transition), border-color var(--efa-transition), box-shadow var(--efa-transition);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--efa-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--efa-transition);
}

.article-card:hover,
.article-card:focus-within {
  z-index: 1;
  border-color: color-mix(in srgb, var(--efa-accent) 38%, var(--efa-line));
  box-shadow: var(--efa-shadow-md);
  transform: translateY(-4px);
}

.article-card:hover::before,
.article-card:focus-within::before {
  transform: scaleX(1);
}

.article-card__category,
.entry-category {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--efa-soft);
  color: var(--efa-accent-dark);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.article-card h2 {
  margin: 0;
  color: var(--efa-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-card__excerpt {
  margin: 14px 0 18px;
  color: var(--efa-muted);
  font-size: 14px;
  line-height: 1.6;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--efa-muted);
  font-size: 12px;
  font-weight: 650;
}

.article-card__meta span + span::before,
.entry-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: color-mix(in srgb, var(--efa-muted) 55%, transparent);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 18px;
}

.article-card--lead {
  min-height: 410px;
  padding: 36px;
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--efa-accent) 12%, transparent), transparent 25%),
    var(--efa-surface);
}

.article-card--lead h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
}

.featured-grid__side {
  display: grid;
  gap: 18px;
}

.featured-grid__side .article-card {
  min-height: 196px;
}

/* Archive */
.archive-header {
  padding: 54px 0 30px;
}

.archive-header .efa-eyebrow {
  color: var(--efa-accent-dark);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 36px;
}

.page-numbers {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid var(--efa-line);
  border-radius: 9px;
  background: var(--efa-surface);
  color: var(--efa-ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
  border-color: var(--efa-ink);
  background: var(--efa-ink);
  color: #fff;
}

/* Article */
.single-main,
.page-main {
  padding: 58px 0 72px;
}

.article-shell,
.page-shell {
  width: min(calc(100% - 40px), var(--efa-content-width));
  margin-inline: auto;
}

.entry-header {
  margin-bottom: 32px;
}

.entry-title {
  margin: 0;
  color: var(--efa-ink);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 850;
  letter-spacing: -0.048em;
  line-height: 1.06;
  text-wrap: balance;
}

.page-main .entry-title {
  font-size: clamp(34px, 5vw, 50px);
}

.entry-deck {
  margin: 17px 0 0;
  color: var(--efa-muted);
  font-size: 19px;
  line-height: 1.6;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
  color: var(--efa-muted);
  font-size: 13px;
  font-weight: 650;
}

.entry-content {
  color: var(--efa-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--efa-body-size);
  line-height: 1.78;
  overflow-wrap: break-word;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--efa-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 830;
  letter-spacing: -0.028em;
  line-height: 1.18;
  text-wrap: balance;
}

.entry-content h2 {
  margin: 2.15em 0 0.72em;
  font-size: clamp(26px, 4vw, 34px);
}

.entry-content h3 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(22px, 3.2vw, 27px);
}

.entry-content h4 {
  margin: 1.7em 0 0.6em;
  font-size: 20px;
}

.entry-content a:not(.ps-question):not(.wp-block-button__link):not(.efa-inline-card) {
  color: var(--efa-accent-dark);
  font-weight: 700;
  text-decoration-color: color-mix(in srgb, var(--efa-accent) 45%, transparent);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.entry-content li {
  margin-bottom: 0.55em;
  padding-left: 0.22em;
}

.entry-content li::marker {
  color: var(--efa-accent);
  font-weight: 800;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border: 0;
  border-left: 4px solid var(--efa-accent);
  border-radius: 0 var(--efa-radius-sm) var(--efa-radius-sm) 0;
  background: var(--efa-soft);
  color: var(--efa-ink);
  font-size: 1.05em;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--efa-line);
}

.entry-content code,
.entry-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.entry-content pre {
  max-width: 100%;
  padding: 18px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--efa-ink);
  color: #eef7f2;
  font-size: 14px;
}

.entry-content .wp-block-details,
.entry-content details {
  margin: 12px 0;
  padding: 15px 17px;
  border: 1px solid var(--efa-line);
  border-radius: var(--efa-radius-sm);
  background: var(--efa-surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 5px 18px rgba(29, 78, 111, 0.035);
}

.entry-content details summary {
  color: var(--efa-ink);
  font-weight: 780;
  cursor: pointer;
}

.entry-content details[open] {
  border-color: color-mix(in srgb, var(--efa-accent) 35%, var(--efa-line));
}

.entry-content .alignwide {
  width: min(100vw - 40px, 980px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Animated emphasis. Never applies inside ads or interactive controls. */
.entry-content .efa-strong-reveal {
  position: relative;
  z-index: 0;
  color: var(--efa-ink);
  font-weight: 800;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.entry-content .efa-strong-reveal::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.12em;
  bottom: 0.04em;
  left: -0.12em;
  height: 0.68em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--efa-accent) 24%, white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-content .efa-strong-reveal.is-visible::before {
  transform: scaleX(1);
}

.entry-footer {
  margin-top: 34px;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-links a {
  padding: 7px 10px;
  border: 1px solid var(--efa-line);
  border-radius: 999px;
  background: var(--efa-surface);
  color: var(--efa-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Internal exploration */
.efa-inline-related {
  margin: 32px 0;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--efa-accent) 30%, var(--efa-line));
  border-radius: var(--efa-radius-md);
  background: linear-gradient(145deg, var(--efa-soft), var(--efa-surface));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.efa-inline-related__eyebrow {
  margin: 0 0 7px;
  color: var(--efa-accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.efa-inline-related h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.efa-inline-related__list {
  display: grid;
  gap: 8px;
}

.efa-inline-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--efa-line);
  border-radius: 9px;
  background: var(--efa-surface);
  color: var(--efa-ink) !important;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none !important;
}

.efa-inline-card::after {
  content: "→";
  flex: 0 0 auto;
  color: var(--efa-accent);
  font-size: 18px;
  transition: transform var(--efa-transition);
}

.efa-inline-card:hover,
.efa-inline-card:focus {
  border-color: var(--efa-accent);
}

.efa-inline-card:hover::after,
.efa-inline-card:focus::after {
  transform: translateX(3px);
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin: 42px 0 0;
  padding: 22px;
  border: 1px solid var(--efa-line);
  border-radius: var(--efa-radius-md);
  background: var(--efa-surface);
}

.author-box__avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--efa-ink);
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.author-box__label {
  margin: 0 0 2px;
  color: var(--efa-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-box__name {
  margin: 0;
  color: var(--efa-ink);
  font-size: 17px;
  font-weight: 800;
}

.author-box__bio {
  margin: 5px 0 0;
  color: var(--efa-muted);
  font-size: 13px;
  line-height: 1.55;
}

.related-section {
  width: min(calc(100% - 40px), var(--efa-content-width));
  margin: 52px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--efa-line);
  background: transparent;
}

.related-section > .efa-shell {
  width: 100%;
  max-width: none;
}

.related-section .section-heading {
  margin-bottom: 22px;
}

.related-section .section-heading h2 {
  font-size: clamp(27px, 3.4vw, 36px);
}

.related-section .posts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-section .article-card {
  min-height: 210px;
  box-shadow: none;
}

.post-navigation {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--efa-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.post-navigation a {
  height: 100%;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--efa-line);
  border-radius: 10px;
  background: var(--efa-surface);
  color: var(--efa-ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  text-decoration: none;
}

.post-navigation a:hover,
.post-navigation a:focus {
  border-color: var(--efa-accent);
}

/* Ad areas: no positioning, transformations or overlays. */
.efa-ad-slot {
  width: 100%;
  clear: both;
  position: relative;
  margin: 30px auto;
  text-align: center;
}

.efa-ad-slot--reserved {
  min-height: 250px;
}

.efa-ad-slot__label {
  display: block;
  margin: 0 0 7px;
  color: #7e8883;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.efa-ad-slot__content {
  width: 100%;
  min-width: 0;
}

.efa-ad-slot--home {
  grid-column: 1 / -1;
  margin-block: 16px;
}

/* Comments */
.comments-area {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--efa-line);
}

.comments-title,
.comment-reply-title {
  color: var(--efa-ink);
  font-size: 24px;
  line-height: 1.2;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-body {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--efa-line);
  border-radius: 10px;
  background: var(--efa-surface);
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--efa-line);
  border-radius: 8px;
  background: #fff;
}

/* Empty / 404 */
.empty-state {
  max-width: 660px;
  margin: 70px auto;
  padding: 40px;
  border: 1px solid var(--efa-line);
  border-radius: var(--efa-radius-lg);
  background: var(--efa-surface);
  text-align: center;
}

.empty-state__code {
  margin: 0;
  color: var(--efa-accent);
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
}

.empty-state h1 {
  margin: 14px 0 8px;
  color: var(--efa-ink);
  font-size: 34px;
  line-height: 1.15;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 54px 0 22px;
  background: var(--efa-ink);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, 0.7fr));
  gap: 46px;
}

.footer-brand .site-title a {
  color: #fff;
}

.footer-brand__text {
  max-width: 460px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-menu,
.footer-legal,
.site-footer .menu {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-legal a,
.site-footer .menu a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus,
.footer-legal a:hover,
.footer-legal a:focus,
.site-footer .menu a:hover,
.site-footer .menu a:focus {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

/* WordPress utility */
.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--efa-muted);
  font-size: 12px;
}

.bypostauthor {
  display: block;
}

.sticky {
  border-color: color-mix(in srgb, var(--efa-accent) 40%, var(--efa-line));
}

.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 1020px) {
  .primary-navigation ul {
    gap: 16px;
  }

  .site-description {
    display: none;
  }

  .posts-grid,
  .related-section .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body.admin-bar .site-header.is-sticky {
    top: 46px;
  }

  .efa-shell,
  .article-shell,
  .page-shell {
    width: min(calc(100% - 32px), var(--efa-wide-width));
  }

  .related-section {
    width: min(calc(100% - 32px), var(--efa-content-width));
    margin-top: 40px;
    padding-top: 26px;
  }

  .related-section .posts-grid {
    grid-template-columns: 1fr;
  }

  .related-section .article-card {
    min-height: 0;
  }

  .site-header__inner {
    min-height: 52px;
    gap: 9px;
  }

  .custom-logo {
    max-height: 27px;
  }

  .site-title {
    font-size: 19px;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 52px);
    padding: 10px 16px 18px;
    overflow-y: auto;
    border-bottom: 1px solid var(--efa-line);
    background: var(--efa-surface);
    box-shadow: 0 14px 30px rgba(29, 78, 111, 0.09);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 2px;
  }

  .primary-navigation a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--efa-line);
    font-size: 15px;
  }

  .primary-navigation a::after {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-tool,
  .menu-toggle {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .search-panel {
    padding: 11px 0 14px;
  }

  .home-hero {
    padding: 50px 0 43px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .home-hero__description {
    margin-top: 17px;
    font-size: 17px;
    line-height: 1.58;
  }

  .topic-nav {
    padding: 14px 0;
  }

  .home-section,
  .archive-section {
    padding: 45px 0;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading__link {
    display: none;
  }

  .single-main,
  .page-main {
    padding: 36px 0 52px;
  }

  .entry-header {
    margin-bottom: 25px;
  }

  .entry-title,
  .page-main .entry-title {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.08;
  }

  .entry-deck {
    font-size: 17px;
  }

  .entry-content {
    font-size: max(17px, calc(var(--efa-body-size) - 1px));
    line-height: 1.74;
  }

  .entry-content h2 {
    margin-top: 1.9em;
    font-size: clamp(24px, 7vw, 29px);
  }

  .entry-content h3 {
    font-size: clamp(21px, 6vw, 25px);
  }

  .efa-inline-related {
    margin-inline: -2px;
    padding: 16px;
  }

  .efa-ad-slot {
    margin-block: 25px;
  }

  .efa-ad-slot--reserved {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .efa-shell,
  .article-shell,
  .page-shell {
    width: min(calc(100% - 28px), var(--efa-wide-width));
  }

  .related-section {
    width: min(calc(100% - 28px), var(--efa-content-width));
  }

  .posts-grid,
  .related-section .posts-grid,
  .featured-grid__side {
    grid-template-columns: 1fr;
  }

  .article-card,
  .article-card--lead {
    min-height: 0;
    padding: 20px;
  }

  .article-card--lead h2 {
    font-size: 30px;
  }

  .article-card h2 {
    font-size: 21px;
  }

  .featured-grid__side .article-card {
    min-height: 0;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .entry-content .efa-strong-reveal::before {
    transform: scaleX(1);
  }
}

@media print {
  .site-header,
  .site-footer,
  .efa-ad-slot,
  .related-section,
  .post-navigation,
  .efa-inline-related {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-shell,
  .page-shell {
    width: 100%;
  }
}
