/*
 * Big 5 Capital: the corporate site.
 * Dark night and coal surfaces, ivory text, the logo's own gold as the one accent. Archivo (variable width) carries
 * the brand voice in expanded headlines; Source Serif 4 is kept for long-form lesson reading (school.css).
 * Plugin interfaces are never styled from here except the Contact Form 7 form on the theme's own Contact template.
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Corporate (dark) */
  --night: #0f0f0d;
  --coal: #171714;
  --graphite: #211f1b;
  --rule: #3a372f;
  --rule-soft: #2a2823;
  --ivory: #f1ece1;
  --stone: #aba597;
  --gold: #d89a1e;
  --gold-hi: #efbe5c;
  /* Crypto School (light) */
  --paper: #f3f4f0;
  --sheet: #ffffff;
  --ink: #1a1b17;
  --slate: #53564d;
  --hair: #d8dad1;
  --brass: #875b00;
  --acacia: #2e6b4e;
  --brick: #a3362a;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;

  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.65rem + 2.9vw, 4.25rem);
  --step-5: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: inherit;
}
p { text-wrap: pretty; }
a {
  color: var(--ivory);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--gold-hi); }
::selection { background: var(--gold); color: #17130a; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
#main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accessibility helpers */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #17130a;
  z-index: 1000;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: #17130a;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #17130a; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--small { min-height: 40px; padding: 0.5em 1em; font-size: 0.9375rem; }
.btn--gold { background: var(--gold); color: #17130a; }
.btn--gold:hover { background: var(--gold-hi); color: #17130a; }
.btn--line { background: transparent; border-color: rgba(241, 236, 225, 0.38); color: var(--ivory); }
.btn--line:hover { border-color: var(--ivory); color: var(--ivory); }
.btn--line-dark { background: transparent; border-color: rgba(26, 27, 23, 0.4); color: var(--ink); }
.btn--line-dark:hover { border-color: var(--ink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.text-link {
  display: inline-block;
  margin: 0 1.25rem 0.35rem 0;
  color: var(--ivory);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--gold-hi); text-decoration-thickness: 2px; }

.label { margin: 0 0 1rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em; }
.label--brass { color: var(--brass); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 0;
  font-size: var(--step--1);
  color: var(--stone);
}
.meta__cat {
  position: relative;
  z-index: 1;
  color: var(--gold-hi);
  font-weight: 600;
  text-decoration: none;
}
.meta__cat:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 13, 0.97);
  border-bottom: 1px solid var(--rule-soft);
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { display: block; width: auto; height: 40px; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; align-items: center; gap: clamp(1rem, 1.5vw, 1.75rem); margin: 0; padding: 0; list-style: none; }
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--stone);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__list a:hover { color: var(--ivory); }
.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--ivory); }
.site-nav__list a[aria-current="page"]::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
}
.site-nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__quiet { color: var(--stone); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.site-nav__quiet:hover { color: var(--ivory); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ivory);
  cursor: pointer;
}
.nav-toggle .icon { width: 18px; height: 18px; display: block; }
.nav-toggle__close { display: none; }

@media (max-width: 1079px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-header.is-open .nav-toggle__open { display: none; }
  .js .site-header.is-open .nav-toggle__close { display: inline; }
  .js .site-nav { display: none; }
  .js .site-header.is-open .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header));
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--night);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--rule-soft); }
  .site-nav__list a { display: block; padding: 0.9rem 0; color: var(--ivory); font-size: 1.0625rem; }
  .site-nav__list a[aria-current="page"]::after,
  .site-nav__list .current-menu-item > a::after,
  .site-nav__list .current_page_item > a::after { left: -12px; right: auto; top: 0.9rem; bottom: 0.9rem; width: 2px; height: auto; }
  .site-nav__actions { flex-direction: column; align-items: stretch; gap: 0.5rem; padding-top: 1rem; }
  .site-nav__quiet { padding: 0.75rem 0; font-size: 1.0625rem; }
  .no-js .site-header__bar { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .site-nav { width: 100%; }
}
@media (max-width: 600px) {
  :root { --header: 64px; }
  .brand__logo { height: 34px; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--coal { background: var(--coal); }
.section--rule { border-top: 1px solid var(--rule-soft); }
.section-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; font-size: var(--step-3); max-width: 18ch; }
.section-head p { margin: 0; color: var(--stone); max-width: 38rem; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; }
}
.section-foot { margin: clamp(32px, 4vw, 48px) 0 0; }

.split { display: grid; gap: 1.25rem 4rem; }
.split__head { margin: 0; font-size: var(--step-3); max-width: 14ch; }
.split__body > :first-child { margin-top: 0; }
.split__body > :last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
.lead-text { font-size: var(--step-1); line-height: 1.6; color: var(--ivory); max-width: 40rem; }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: end; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.hero__title {
  margin: 0 0 0.5em;
  max-width: 12ch;
  font-size: var(--step-5);
  font-weight: 650;
  font-stretch: 122%;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero__lead { margin: 0; max-width: 36rem; font-size: var(--step-1); line-height: 1.55; color: var(--stone); }
.hero__note {
  margin: 2.5rem 0 0;
  max-width: 36rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--step--1);
  color: var(--stone);
}
.hero__media { margin: 0; }
.hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 60% 50%;
  animation: big5-reveal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (min-width: 960px) {
  .hero__media img { aspect-ratio: 4 / 5; }
}
.hero__media figcaption {
  margin-top: 0.85rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: var(--step--1);
  color: var(--stone);
  max-width: 30rem;
}
@keyframes big5-reveal {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Areas of work */
.areas { display: grid; gap: 0 2rem; }
@media (min-width: 600px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .areas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area { position: relative; padding: 1.75rem 1rem 2rem 0; border-top: 1px solid var(--rule); }
.area::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--gold); }
.area h2, .area h3 { margin: 0 0 0.6rem; font-size: var(--step-1); font-stretch: 108%; }
.area p { margin: 0 0 1rem; color: var(--stone); }

/* Crypto School panel (the school's light identity, shown inside the corporate pages) */
.school-panel { padding-block: clamp(64px, 9vw, 120px); background: var(--paper); color: var(--ink); }
.school-panel :focus-visible { outline-color: var(--brass); }
.school-panel h2 { margin: 0 0 1.25rem; font-size: var(--step-3); max-width: 18ch; }
.school-panel p { color: var(--slate); }
.school-panel .lead-text { color: var(--ink); }
.school-panel a:not(.btn) { color: var(--ink); text-decoration-color: var(--brass); }
.school-panel__grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .school-panel__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
}
.school-panel__small { margin-top: 1.5rem; font-size: var(--step--1); }

.ladder { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.ladder__item {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  align-items: center;
  margin-inline: -0.75rem;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.15s ease;
}
.ladder__item:hover { background: var(--sheet); }
.ladder__num {
  font-size: 1.3rem;
  font-weight: 600;
  font-stretch: 125%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #7d8075;
}
.ladder__item.is-free .ladder__num { color: var(--brass); }
.ladder__body { display: flex; flex-direction: column; min-width: 0; }
.school-panel .ladder__title { color: var(--ink); font-weight: 600; font-stretch: 104%; text-decoration: none; }
.ladder__title::after { content: ""; position: absolute; inset: 0; }
.ladder__item:hover .ladder__title { text-decoration: underline; text-decoration-color: var(--brass); }
.ladder__meta { display: flex; flex-wrap: wrap; gap: 0 0.9rem; margin-top: 2px; font-size: var(--step--1); color: var(--slate); }
.tag {
  padding: 0.3em 0.65em;
  border: 1px solid var(--hair);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--slate);
  white-space: nowrap;
}
.tag--free { border-color: rgba(46, 107, 78, 0.35); background: #eef5f0; color: var(--acacia); }
@media (max-width: 599px) {
  .ladder__item { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ladder__item .tag { grid-column: 2; justify-self: start; }
}

/* Cards (articles) */
.cards { display: grid; gap: clamp(28px, 3vw, 40px); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.card__media { display: block; order: -1; margin-bottom: 0.5rem; }
.card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__title { margin: 0; font-size: var(--step-1); font-stretch: 104%; line-height: 1.25; }
.card__title a { color: var(--ivory); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--gold); }
.card__excerpt { margin: 0; color: var(--stone); font-size: 0.975rem; }

/* Why Big 5 Capital, principles */
.why { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.why__media { margin: 0; }
.why__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 50%; }
.why__text h2 { margin: 0 0 1rem; font-size: var(--step-3); }
.why__text p { color: var(--stone); max-width: 38rem; }
.principles { margin: 2rem 0 0; }
.split__body .principles, .principles--wide { margin-top: 0; }
.principles > div { display: grid; gap: 0.25rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.principles > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 600px) { .principles > div { grid-template-columns: 11rem minmax(0, 1fr); } }
@media (min-width: 600px) { .principles--wide > div { grid-template-columns: 16rem minmax(0, 1fr); } }
.principles dt { font-weight: 600; color: var(--ivory); }
.principles dd { margin: 0; color: var(--stone); }

/* Legal entry point and link lists */
.legal-strip { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .legal-strip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.legal-strip h2 { margin: 0 0 1rem; font-size: var(--step-3); }
.legal-strip p { color: var(--stone); max-width: 34rem; margin: 0 0 1.75rem; }
.link-list { display: grid; gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-list--single { grid-template-columns: minmax(0, 1fr) !important; }
.link-list li { border-top: 1px solid var(--rule); }
.link-list a { display: block; padding: 0.85rem 0; color: var(--ivory); font-weight: 500; text-decoration: none; }
.link-list a:hover { color: var(--gold-hi); }

/* Closing call to action */
.closing { padding-block: clamp(72px, 10vw, 140px); background: var(--coal); border-top: 1px solid var(--rule-soft); }
.closing__inner > :last-child { margin-bottom: 0; }
.closing h2 { margin: 0 0 0.5em; max-width: 16ch; font-size: var(--step-4); font-stretch: 118%; }
.closing p { margin: 0; max-width: 38rem; font-size: var(--step-1); color: var(--stone); }
.closing__email { margin-top: 1.75rem !important; font-size: var(--step-0) !important; }
.closing__note { margin-top: 2rem !important; font-size: var(--step--1) !important; }

/* Page headers and reading pages */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 4.5vw, 60px); border-bottom: 1px solid var(--rule-soft); }
.page-hero--feature { padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero__title { margin: 0; max-width: 20ch; font-size: var(--step-4); font-stretch: 116%; }
.page-hero__title--article { max-width: none; width: 100%; font-size: var(--step-3); font-stretch: 108%; }
.page-hero__lead { margin: 1.25rem 0 0; max-width: 44rem; font-size: var(--step-1); color: var(--stone); }
.crumb { margin: 0 0 1rem; font-size: var(--step--1); }
.crumb a { color: var(--gold-hi); }

.page-body { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 112px); }
.page-body--aside { display: flex; flex-direction: column; gap: 3rem; }
.page-body--aside .prose { order: -1; }
@media (min-width: 960px) {
  .page-body--aside { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .page-body--aside .prose { order: 0; }
  .doc-nav { position: sticky; top: calc(var(--header) + 32px); }
}
.doc-nav { font-size: 0.9375rem; }
.doc-nav__title { margin: 0 0 0.75rem; font-size: var(--step--1); font-weight: 600; font-stretch: 100%; letter-spacing: 0.01em; color: var(--stone); }
.doc-nav ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.doc-nav a { display: block; margin-left: -1px; padding: 0.45rem 0 0.45rem 1rem; border-left: 2px solid transparent; color: var(--stone); text-decoration: none; }
.doc-nav a:hover { color: var(--ivory); }
.doc-nav a[aria-current="page"] { color: var(--ivory); font-weight: 600; border-left-color: var(--gold); }

.prose { max-width: 44rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: var(--step-2); }
.prose h3 { margin: 1.8em 0 0.5em; font-size: var(--step-1); font-stretch: 106%; }
.prose h4 { margin: 1.6em 0 0.4em; font-size: var(--step-0); font-stretch: 104%; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 650; color: #fff; }
.prose blockquote { margin: 1.6em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 2px solid var(--gold); font-size: var(--step-1); color: var(--ivory); }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--rule); }
.prose table { display: block; width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { color: var(--ivory); font-weight: 600; }
.prose code { padding: 0.1em 0.35em; background: var(--graphite); border-radius: 2px; font-size: 0.9em; }
.prose figure { margin: 1.75em 0; }
.prose figcaption, .wp-caption-text { margin-top: 0.5rem; font-size: var(--step--1); color: var(--stone); }
.prose .wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; padding: 0.7em 1.35em; border-radius: 2px; background: var(--gold); color: #17130a; font-weight: 600; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--gold-hi); color: #17130a; }

/* WordPress content classes */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption, .sticky, .bypostauthor { display: block; }

/* Articles */
.article__head .meta { margin-bottom: 1rem; }
.article__media { margin-top: clamp(24px, 4vw, 48px); margin-bottom: 0; }
.article__media img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article__body { width: 100%; max-width: none; margin-block: clamp(32px, 5vw, 64px); }
.article__body > .wp-block-group:first-child { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--coal); border-left: 2px solid var(--gold); }
.article__body > .wp-block-group:first-child > .wp-block-group { margin: 0 0 0.75rem; }
.article__body > .wp-block-group:first-child > .wp-block-group p { margin: 0; }
.article__body figure img[alt*="market analysis banner"] {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain !important;
}
.notice { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--coal); border-left: 2px solid var(--gold); font-size: 0.9375rem; color: var(--stone); }
.notice p { margin: 0 0 0.5em; }
.notice p:last-child { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tags a { padding: 0.3em 0.7em; border: 1px solid var(--rule); border-radius: 2px; color: var(--stone); font-size: var(--step--1); text-decoration: none; }
.tags a:hover { color: var(--ivory); border-color: var(--stone); }
.post-nav { max-width: 44rem; margin-bottom: clamp(48px, 6vw, 80px); }
.post-nav .nav-links { display: grid; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .post-nav .nav-links { grid-template-columns: 1fr 1fr; } .post-nav .nav-next { text-align: right; } }
.post-nav a { display: block; color: var(--ivory); text-decoration: none; }
.post-nav a:hover .post-nav__title { text-decoration: underline; text-decoration-color: var(--gold); }
.post-nav__label { display: block; margin-bottom: 0.25rem; font-size: var(--step--1); color: var(--stone); }
.post-nav__title { font-weight: 600; }

/* Lists of posts */
.empty-state { max-width: 38rem; color: var(--stone); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(40px, 5vw, 64px); }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--rule);
  color: var(--ivory);
  text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--stone); }
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 600; }
.pagination .page-numbers.dots { border-color: transparent; }

/* Contact and support */
.contact { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; } }
.contact h2 { margin: 0 0 0.75rem; font-size: var(--step-2); }
.contact p { color: var(--stone); }
.contact__email { margin: 1.5rem 0 2rem; font-size: var(--step-2); font-stretch: 110%; font-weight: 600; }
.contact__email a { color: var(--ivory); text-decoration-color: var(--gold); }
.contact__form { padding: clamp(24px, 4vw, 40px); background: var(--coal); border: 1px solid var(--rule-soft); }
.contact__note { margin: 1.25rem 0 0; font-size: var(--step--1); }
.support-grid { display: grid; gap: 0 2.5rem; }
@media (min-width: 720px) { .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.support-item { padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--rule); }
.support-item h3 { margin: 0 0 0.5rem; font-size: var(--step-1); font-stretch: 106%; }
.support-item p { margin: 0 0 1rem; color: var(--stone); }

/* Forms the theme owns: the contact form, search and comments */
.wpcf7 form { display: grid; gap: 0 1rem; }
@media (min-width: 600px) {
  .wpcf7 form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wpcf7 form > * { grid-column: 1 / -1; }
  .wpcf7 form > .column.one-second { grid-column: auto; }
}
.wpcf7 p { margin: 0 0 1.1rem; }
.wpcf7 label { display: block; margin-right: 0 !important; }
.field-label { display: block; margin-bottom: 0.4rem; font-size: var(--step--1); font-weight: 600; color: var(--ivory); }
.field-label__req { font-weight: 400; color: var(--stone); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea, .wpcf7 select,
.search-form input[type="search"],
.comments input[type="text"], .comments input[type="email"], .comments input[type="url"], .comments textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: var(--night);
  color: var(--ivory);
  border: 1px solid #6b675e;
  border-radius: 2px;
  font: inherit;
  line-height: 1.4;
}
.wpcf7 textarea, .comments textarea { min-height: 9rem; resize: vertical; }
.wpcf7 ::placeholder, .search-form ::placeholder, .comments ::placeholder { color: #8f8a7d; opacity: 1; }
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible, .search-form input:focus-visible, .comments input:focus-visible, .comments textarea:focus-visible { border-color: var(--gold); }
.wpcf7 input[type="submit"] {
  min-height: 48px;
  padding: 0.7em 1.6em;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: #17130a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--gold-hi); }
.wpcf7 .wpcf7-not-valid { border-color: #e07a63; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 0.35rem; color: #f0a493; font-size: var(--step--1); }
.wpcf7 form .wpcf7-response-output { margin: 0.5rem 0 0; padding: 0.85rem 1rem; border: 1px solid var(--rule); color: var(--ivory); }
.wpcf7 form.sent .wpcf7-response-output { border-color: #4d8f67; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #e07a63; }

.search-form { max-width: 34rem; margin-top: 1.75rem; }
.search-form label { display: block; margin-bottom: 0.4rem; font-size: var(--step--1); color: var(--stone); }
.search-form__row { display: flex; gap: 0.5rem; }
.search-form__row input { flex: 1; min-width: 0; }

.comments { max-width: 44rem; margin-bottom: clamp(48px, 6vw, 80px); padding-top: 2rem; border-top: 1px solid var(--rule); }
.comments__title { font-size: var(--step-2); margin: 0 0 1.5rem; }
.comments__list, .comments__list .children { margin: 0; padding: 0; list-style: none; }
.comments__list .children { padding-left: 1.5rem; }
.comments__list .comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--rule-soft); }
.comments__list .comment-meta { font-size: var(--step--1); color: var(--stone); }
.comments__list .avatar { float: left; margin-right: 0.75rem; border-radius: 50%; }
.comment-form label { display: block; margin-bottom: 0.4rem; font-size: var(--step--1); font-weight: 600; }
.comment-form p { margin: 0 0 1rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Footer */
.site-footer { padding-top: clamp(56px, 7vw, 88px); background: var(--night); border-top: 1px solid var(--rule-soft); color: var(--stone); font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; } }
.site-footer__brand .brand__logo { height: 36px; }
.site-footer__brand p { max-width: 22rem; margin: 1.25rem 0 0; }
.site-footer__email { color: var(--ivory); }
.site-footer__heading { margin: 0 0 1rem; font-size: var(--step--1); font-weight: 600; font-stretch: 100%; letter-spacing: 0.01em; color: var(--ivory); }
.site-footer ul { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.site-footer__col a { display: inline-block; padding: 0.15rem 0; color: var(--stone); text-decoration: none; }
.site-footer__col a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--step--1);
}
.site-footer__notice, .site-footer__copy { margin: 0; }
.site-footer__notice { max-width: 46rem; }

/* Motion and print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .skip-link, .actions, .lesson-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero, .section, .section--coal, .closing { background: #fff !important; color: #000 !important; padding-block: 1rem !important; }
}
