/*
Theme Name: Brew Rank Lab
Theme URI: https://brewranklab.com/
Author: Brew Rank Lab
Description: Custom editorial ranking theme for brewranklab.com, designed around the beginner espresso machine money page.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: brewranklab
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  font-optical-sizing: auto;
  src: url("./assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/source-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/source-sans-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3eee5;
  --paper-deep: #e8e0d3;
  --card: #fffbf6;
  --ink: #1c1511;
  --ink-soft: #4d4038;
  --muted: #6b5d53;
  --espresso: #2f1c14;
  --header: #16110e;
  --header-text: #f3eee5;
  --copper: #8a3b1c;
  --copper-hover: #6c2c14;
  --rule: #d8ccbc;
  --rule-strong: #c3b5a2;
  --badge-bg: #3e4c38;
  --badge-budget: #5c3d1e;
  --badge-grinder: #3a3f4a;
  --badge-latte: #6a3c3c;
  --focus: #8a3b1c;
  --max: 1160px;
  --prose: 40.5rem;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(28, 21, 17, 0.08);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 122, 74, 0.08), transparent 50%),
    var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--copper);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--copper-hover);
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--espresso);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  max-width: 100%;
  min-width: 0;
}

/* Header */
.site-header {
  background: var(--header);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(243, 238, 229, 0.08);
}

.site-header a {
  color: var(--header-text);
  text-decoration: none;
}

.site-header a:hover {
  color: #fff;
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
}

.logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9b8a4;
  margin-top: 0.22rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(243, 238, 229, 0.28);
  color: var(--header-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  min-height: 44px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #c47a4a;
}

/* Footer */
.site-footer {
  background: var(--espresso);
  color: #eadfce;
  margin-top: 4.5rem;
  padding: 3rem 0 2rem;
}

.site-footer a {
  color: #f3eee5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.6rem;
}

.site-footer p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #d5c6b4;
}

.footer-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c47a4a;
  margin: 0 0 0.7rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-note {
  border-top: 1px solid rgba(243, 238, 229, 0.12);
  margin-top: 2rem;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  color: #b9aa99;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--espresso);
  color: #f7f1e8;
}

.btn-primary:hover {
  background: #1a0f0b;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  background: var(--card);
  color: var(--ink);
}

.btn-affiliate {
  background: var(--copper);
  color: #fffbf6;
}

.btn-affiliate:hover {
  background: var(--copper-hover);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-row + .caption,
.affiliate-note {
  display: block;
  margin-top: 0.45rem;
}

/* Disclosure + breadcrumbs */
.disclosure {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: rgba(255, 251, 246, 0.7);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1.1rem 0 0;
}

.disclosure strong {
  color: var(--ink);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  color: var(--rule-strong);
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--copper);
  text-decoration: underline;
}

/* Typography helpers */
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--copper);
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.7rem;
}

h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.55rem);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 0;
}

h3 {
  font-size: 1.28rem;
}

.lede,
.section-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

/* Figures */
figure {
  margin: 0;
}

.media {
  background: var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
}

.media img,
.media video {
  width: 100%;
  aspect-ratio: attr(width) / attr(height);
}

figcaption,
.caption {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.55rem;
  line-height: 1.5;
}

/* Home hero */
.hero {
  padding: 2.4rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero .lede {
  margin: 0 0 1.4rem;
  font-size: 1.18rem;
}

/* Featured money-page card */
.feature-band {
  padding: 0.5rem 0 2.5rem;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card .media {
  border-radius: 0;
  min-height: 100%;
}

.feature-card .media img {
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.feature-copy {
  padding: 1.7rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  margin-bottom: 0.6rem;
}

.feature-copy p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

/* Card grids */
.section {
  padding: 2.4rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 32rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

.card .media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.15rem;
  margin: 0;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card-type {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--copper);
}

/* Hub / category */
.hub-intro {
  padding: 0.3rem 0 1.6rem;
}

.hub-intro .lede {
  margin: 0.4rem 0 0;
}

/* Lab / trust */
.lab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.lab-panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
}

.lab-panel h2 {
  margin-bottom: 0.7rem;
}

.lab-panel p:last-child {
  margin-bottom: 0;
}

/* Article layout */
.article-shell {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
  padding-bottom: 3rem;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 0.4rem 0 1rem;
}

.toc h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--rule);
}

.toc a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0.38rem 0 0.38rem 0.9rem;
  min-height: auto;
}

.toc a:hover,
.toc a:focus {
  color: var(--copper);
}

.article-header {
  padding: 0.4rem 0 1.3rem;
}

.article-header .lede {
  font-size: 1.2rem;
  margin: 0.2rem 0 0;
  max-width: 42rem;
}

.article-shell,
.article-body,
.feature-card,
.product-hero,
.picks,
.pick,
.split-2 {
  min-width: 0;
}

.article-body {
  max-width: 48rem;
}

.article-body h2 {
  margin: 2.6rem 0 0.8rem;
  scroll-margin-top: calc(var(--header-h) + 0.8rem);
}

.article-body h3 {
  margin: 1.5rem 0 0.5rem;
  scroll-margin-top: calc(var(--header-h) + 0.8rem);
}

.article-body p,
.article-body ul,
.article-body ol {
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
}

.article-body li + li {
  margin-top: 0.3rem;
}

.article-body figure {
  margin: 1.1rem 0 1.4rem;
}

.article-body .media {
  border-radius: var(--radius);
}

/* Quick picks */
.picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.pick {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  min-height: 100%;
}

.pick img {
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  align-self: stretch;
}

.pick-copy {
  padding: 0.9rem 1rem 1rem;
}

.pick-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--badge-bg);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  margin-bottom: 0.45rem;
}

.pick-label.budget { background: var(--badge-budget); }
.pick-label.grinder { background: var(--badge-grinder); }
.pick-label.latte { background: var(--badge-latte); }

.pick h3 {
  font-size: 1.12rem;
  margin: 0 0 0.3rem;
}

.pick p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pick a {
  font-weight: 700;
  text-decoration: none;
}

.pick a:hover {
  text-decoration: underline;
}

/* Comparison table */
.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 46rem;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.table-wrap thead th {
  background: #efe7db;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody th {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--card);
  position: sticky;
  left: 0;
  min-width: 10.5rem;
}

/* Specs / pros */
.spec-grid,
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.note,
.pros,
.cons {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.note {
  margin: 1rem 0;
}

.note strong,
.pros strong,
.cons strong {
  display: block;
  margin-bottom: 0.3rem;
}

.pros { border-left: 3px solid var(--badge-bg); }
.cons { border-left: 3px solid var(--copper); }

.qa {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}

.qa h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

.qa p:last-child {
  margin-bottom: 0;
}

/* Video slot */
.video-slot .media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--espresso);
}

.video-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.video-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(22, 17, 14, 0.86);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-width: 3.2rem;
  min-height: 3.2rem;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.transcript {
  margin-top: 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  padding: 0.2rem 0.9rem 0.7rem;
}

.transcript summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Product section */
.product {
  padding-top: 0.4rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1.3rem;
  align-items: start;
  margin: 0.6rem 0 1rem;
}

.price {
  font-weight: 700;
  color: var(--ink);
  margin: 0.2rem 0 0.8rem;
}

/* Cost cards */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.cost-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.05rem;
}

.cost-card span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.cost-card strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  display: block;
  margin-bottom: 0.3rem;
}

.cost-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Categories band */
.cat-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cat-tile {
  background: var(--espresso);
  color: #f3eee5;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.4rem;
  text-decoration: none;
  display: block;
  min-height: 10rem;
}

.cat-tile:hover {
  color: #fff;
}

.cat-tile h2 {
  color: inherit;
  margin-bottom: 0.45rem;
}

.cat-tile p {
  margin: 0;
  color: #d8cbb9;
}

/* Related */
.related {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 1.0625rem; }
  .wrap,
  .header-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .nav-toggle { display: inline-flex; align-items: center; }

  .site-nav {
    position: relative;
  }

  .site-nav ul {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    background: #1d1713;
    border: 1px solid rgba(243, 238, 229, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 16rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-toggle-input:checked ~ ul,
  .site-nav ul:focus-within {
    display: flex;
  }

  .site-nav a {
    padding: 0.35rem 0.7rem;
    width: 100%;
  }

  .hero-grid,
  .feature-card,
  .lab-grid,
  .article-shell,
  .product-hero,
  .pick,
  .footer-grid,
  .card-grid,
  .card-grid.two,
  .picks,
  .split-2,
  .spec-grid,
  .cost-grid,
  .cat-band {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    padding: 0;
    margin: 0 0 1.2rem;
  }

  .toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 0;
    gap: 0 0.6rem;
  }

  .toc a {
    padding-left: 0;
    border-bottom: 1px solid var(--rule);
  }

  .hero { padding-top: 1.4rem; }
  .hero .lede { font-size: 1.08rem; }
  .feature-copy { padding: 1.2rem; }
  .section { padding: 1.7rem 0; }
  .site-footer { margin-top: 3rem; }
  .pick img { aspect-ratio: 16 / 9; max-height: 200px; width: 100%; }
}

@media (max-width: 520px) {
  .toc ol { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
}

/* WordPress compatibility */
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a {
  box-shadow: inset 0 -2px 0 #c47a4a;
}

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

body.admin-bar .toc {
  top: calc(var(--header-h) + 32px + 1rem);
}

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

  body.admin-bar .toc {
    top: calc(var(--header-h) + 46px + 1rem);
  }
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  position: absolute;
  word-wrap: normal !important;
}

.simple-page {
  padding: 1.5rem 0 3rem;
}

.simple-page .page-body {
  max-width: 42rem;
}

.card.is-section-link .card-type::after {
  content: " · In the beginner guide";
  letter-spacing: 0.04em;
  font-weight: 600;
}

.table-hint {
  display: none;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

@media (max-width: 860px) {
  .table-hint {
    display: block;
  }
}
