/* ==========================================================================
   Political Dictionary — theme styles
   Light mode is the default. Dark mode is html[data-pd-theme="dark"], set by
   assets/js/theme.js from the reader's saved choice (or, with no saved choice,
   the OS preference). Every color lives in a token below so both modes stay in
   step; never hard-code a color in a component rule.
   ========================================================================== */

:root {
  /* palette — light */
  --pd-bg: #ffffff;
  --pd-panel: #faf9f7;         /* boxed cards, quick-definition */
  --pd-panel-2: #f2f0ec;       /* hover, chips, code */
  --pd-ink: #1d1a17;           /* body text */
  --pd-ink-bright: #121110;    /* headwords */
  --pd-ink-dim: #6b665f;       /* meta, labels */
  --pd-rule: #e6e1da;          /* hairlines */
  --pd-rule-strong: #1d1a17;   /* section rules, A–Z bar */
  --pd-accent: #b32317;        /* logo red — links, labels */
  --pd-accent-hover: #7f170e;
  --pd-blue: #004b91;          /* logo blue — used sparingly */
  --pd-focus: #004b91;
  --pd-ad-bg: #f7f6f3;

  /* type */
  --pd-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --pd-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* layout */
  --pd-max: 1120px;
  --pd-gutter: 24px;
  --pd-rail: 325px;
  --pd-gap: 48px;
}

html[data-pd-theme="dark"] {
  --pd-bg: #16181c;
  --pd-panel: #1e2126;
  --pd-panel-2: #262a30;
  --pd-ink: #d3d6db;
  --pd-ink-bright: #eef0f2;
  --pd-ink-dim: #9aa0a8;
  --pd-rule: #2b2f36;
  --pd-rule-strong: #c9ccd2;
  --pd-accent: #ef8377;
  --pd-accent-hover: #ffb0a6;
  --pd-blue: #6fb1ff;
  --pd-focus: #6fb1ff;
  --pd-ad-bg: #1b1e23;
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-family: var(--pd-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pd-accent); text-decoration: none; }
a:hover { color: var(--pd-accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--pd-focus); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--pd-ink-bright); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1em; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); word-wrap: normal !important;
}
.skip-link { left: 8px; top: 8px; background: var(--pd-bg); padding: 8px 12px; z-index: 1000; }
.skip-link:focus { position: absolute !important; width: auto; height: auto; clip: auto; clip-path: none; }

.pd-ui { font-family: var(--pd-sans); }
.pd-label {
  font-family: var(--pd-sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pd-ink-dim);
}
.pd-label--accent { color: var(--pd-accent); }
.pd-wrap { max-width: var(--pd-max); margin: 0 auto; padding: 0 var(--pd-gutter); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.pd-header { border-bottom: 1px solid var(--pd-rule); }
.pd-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0;
}
.pd-logo { display: inline-flex; align-items: center; line-height: 0; flex-shrink: 1; min-width: 0; }
.pd-logo img { height: 104px; width: auto; max-width: 100%; }
.pd-logo--text { font-family: var(--pd-serif); font-size: 26px; font-weight: 700; color: var(--pd-ink-bright); line-height: 1; }
html[data-pd-theme="dark"] .pd-logo img.pd-logo__light { filter: brightness(1.75) saturate(.85); }
html[data-pd-theme="dark"] .pd-logo img.pd-logo__light.has-dark-twin { display: none; }
.pd-logo img.pd-logo__dark { display: none; }
html[data-pd-theme="dark"] .pd-logo img.pd-logo__dark { display: inline; }

.pd-header__search { flex: 0 1 460px; margin-left: auto; }
@media (max-width: 1080px) { .pd-logo img { height: 84px; } }
.pd-header__tools { display: flex; align-items: center; gap: 8px; }
.pd-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--pd-rule); border-radius: 6px; background: transparent; color: var(--pd-ink); cursor: pointer;
}
.pd-iconbtn:hover { background: var(--pd-panel-2); color: var(--pd-ink-bright); text-decoration: none; }
.pd-iconbtn svg { width: 18px; height: 18px; }
.pd-theme-toggle .pd-icon-sun { display: none; }
html[data-pd-theme="dark"] .pd-theme-toggle .pd-icon-sun { display: block; }
html[data-pd-theme="dark"] .pd-theme-toggle .pd-icon-moon { display: none; }

/* Search form (shared by header, hero, sidebar, 404) */
.pd-search { display: flex; border: 1.5px solid var(--pd-rule-strong); border-radius: 6px; background: var(--pd-bg); overflow: hidden; }
.pd-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--pd-ink); font-family: var(--pd-serif); font-size: 16px; height: 42px; padding: 0 14px; outline: none; -webkit-appearance: none; appearance: none;
}
.pd-search input::placeholder { color: var(--pd-ink-dim); opacity: 1; }
.pd-search button {
  border: 0; background: var(--pd-rule-strong); color: var(--pd-bg); font-family: var(--pd-sans); font-size: 13px; font-weight: 600; padding: 0 16px; cursor: pointer;
}
.pd-search button:hover { background: var(--pd-accent); color: #fff; }
.pd-search--hero { border-width: 2px; }
.pd-search--hero input[type="search"] { height: 56px; font-size: 19px; padding: 0 20px; }
.pd-search--hero button { font-size: 15px; padding: 0 28px; }

/* --------------------------------------------------------------------------
   A–Z bar
   -------------------------------------------------------------------------- */
.pd-letters { border-top: 1px solid var(--pd-rule-strong); border-bottom: 1px solid var(--pd-rule-strong); }
.pd-letters__list {
  list-style: none; margin: 0; padding: 4px 0; display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.pd-letters__list::-webkit-scrollbar { display: none; }
.pd-letters__list a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 4px; font-family: var(--pd-sans); font-size: 15px; font-weight: 600; color: var(--pd-ink);
}
.pd-letters__list a:hover { background: var(--pd-panel-2); color: var(--pd-accent); text-decoration: none; }
.pd-letters__list a.is-current { background: var(--pd-rule-strong); color: var(--pd-bg); }
.pd-letters__list a.is-empty { color: var(--pd-ink-dim); }
.pd-letters--hero { margin-top: 8px; }

/* --------------------------------------------------------------------------
   Front-page hero
   -------------------------------------------------------------------------- */
.pd-hero { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 34px var(--pd-gutter) 26px; text-align: center; }
.pd-hero__inner { display: contents; }
.pd-hero__tagline { margin: 4px 0 0; font-size: 20px; font-style: italic; color: var(--pd-ink-dim); }
.pd-hero .pd-search { width: 100%; max-width: 760px; margin-top: 6px; }
.pd-hero__popular { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }

/* --------------------------------------------------------------------------
   Layout: content + rail
   -------------------------------------------------------------------------- */
.pd-main { display: flex; gap: var(--pd-gap); padding: 32px 0 0; align-items: flex-start; }
.pd-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.pd-rail { flex: 0 0 var(--pd-rail); width: var(--pd-rail); align-self: stretch; }
.pd-sidebar { display: flex; flex-direction: column; gap: 28px; height: 100%; }
.pd-mv-anchor { display: block; height: 0; margin: -28px 0 0; }
.pd-sidebar .mv-ad-box { flex-shrink: 0; }
.pd-sidebar .widget { margin: 0; }
.pd-sidebar .widget-title, .pd-sidebar h3 { font-family: var(--pd-sans); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pd-ink-dim); padding-bottom: 8px; border-bottom: 2px solid var(--pd-rule-strong); margin-bottom: 4px; }
.pd-sidebar ul { list-style: none; margin: 0; padding: 0; }
.pd-sidebar li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--pd-rule); font-size: 17px; color: var(--pd-ink); }
.pd-sidebar li a:hover { color: var(--pd-accent); text-decoration: none; }
.pd-sidebar .tagcloud a { display: inline-block; font-size: 14px !important; padding: 5px 10px; margin: 0 6px 6px 0; border: 1px solid var(--pd-rule); border-radius: 999px; }
.pd-sidebar .tagcloud a:hover { background: var(--pd-panel-2); text-decoration: none; }

/* Boxes */
.pd-box { background: var(--pd-panel); border: 1px solid var(--pd-rule); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.pd-box--strong { border-color: var(--pd-rule-strong); background: var(--pd-bg); }
.pd-box p { margin: 0; font-size: 15px; line-height: 1.5; }
.pd-box .pd-more { font-family: var(--pd-sans); font-size: 13px; font-weight: 600; }

.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 2px solid var(--pd-rule-strong); border-radius: 6px; background: transparent; color: var(--pd-ink-bright); font-family: var(--pd-sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.pd-btn:hover { background: var(--pd-panel-2); text-decoration: none; color: var(--pd-ink-bright); }
.pd-btn svg { width: 18px; height: 18px; }
.pd-btn--block { width: 100%; }

/* Section heads */
.pd-section { display: flex; flex-direction: column; gap: 12px; }
.pd-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 6px; border-bottom: 2px solid var(--pd-rule-strong); }
.pd-section__head h2 { font-size: 24px; }
.pd-section__note { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-section__more { font-family: var(--pd-sans); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Word of the Day */
.pd-wotd { border: 1px solid var(--pd-rule); background: var(--pd-panel); padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; }
.pd-wotd__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pd-wotd__date { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-wotd__term { font-size: 42px; font-weight: 700; line-height: 1.05; color: var(--pd-ink-bright); letter-spacing: -0.01em; }
.pd-wotd__term:hover { color: var(--pd-accent); text-decoration: none; }
.pd-wotd__gloss { margin: 0; font-size: 20px; line-height: 1.5; }
.pd-wotd__links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-family: var(--pd-sans); font-size: 14px; margin-top: 4px; }
.pd-wotd__links a { font-weight: 600; }
.pd-wotd__links a.is-dim { color: var(--pd-ink-dim); font-weight: 400; }
.pd-wotd--mini { padding: 18px 20px; gap: 6px; }
.pd-wotd--mini .pd-wotd__term { font-size: 26px; }
.pd-wotd--mini .pd-wotd__gloss { font-size: 15px; }

/* Trending list */
.pd-trending { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.pd-trending__item { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pd-rule); font-size: 19px; }
.pd-trending__rank { font-family: var(--pd-sans); font-size: 13px; font-weight: 700; color: var(--pd-accent); width: 22px; flex-shrink: 0; }
.pd-trending__item a { color: var(--pd-ink); }
.pd-trending__item a:hover { color: var(--pd-accent); text-decoration: none; }
.pd-trending--single { grid-template-columns: 1fr; }
.pd-trending--single .pd-trending__item { font-size: 17px; padding: 8px 0; }

/* Entry rows (recently added, archives, search) */
.pd-rows { display: flex; flex-direction: column; }
.pd-row { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--pd-rule); }
.pd-row:last-child { border-bottom: 0; }
.pd-row__aside { width: 110px; flex-shrink: 0; font-family: var(--pd-sans); font-size: 12px; color: var(--pd-ink-dim); padding-top: 6px; }
.pd-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-row__title { font-size: 22px; font-weight: 600; color: var(--pd-ink-bright); }
.pd-row__title:hover { color: var(--pd-accent); text-decoration: none; }
.pd-row__gloss { margin: 0; font-size: 17px; line-height: 1.5; color: var(--pd-ink); }
.pd-rows--compact .pd-row { padding: 10px 0; }
.pd-rows--compact .pd-row__title { font-size: 19px; }
.pd-rows--compact .pd-row__gloss { font-size: 15px; color: var(--pd-ink-dim); }

/* Cards (keep reading, games) */
.pd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--pd-panel); border: 1px solid var(--pd-rule); color: var(--pd-ink); }
.pd-card:hover { border-color: var(--pd-rule-strong); text-decoration: none; color: var(--pd-ink); }
.pd-card__title { font-size: 19px; font-weight: 600; color: var(--pd-ink-bright); line-height: 1.2; }
.pd-card__gloss { font-size: 14px; line-height: 1.4; color: var(--pd-ink-dim); }

/* Chips (topics, related terms) */
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { display: inline-block; padding: 7px 12px; border: 1px solid var(--pd-rule); border-radius: 999px; background: var(--pd-bg); font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink); }
.pd-chip:hover { background: var(--pd-panel-2); text-decoration: none; color: var(--pd-ink-bright); }
.pd-chip__count { color: var(--pd-ink-dim); margin-left: 4px; }

/* --------------------------------------------------------------------------
   Entry (single)
   -------------------------------------------------------------------------- */
.pd-crumbs { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-crumbs a { color: var(--pd-ink-dim); }
.pd-entry { display: flex; flex-direction: column; gap: 28px; }
.pd-entry__header { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--pd-rule-strong); }
.pd-entry__title { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.015em; }
.pd-entry__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-entry__meta em { font-family: var(--pd-serif); font-size: 15px; }
.pd-entry__lede { display: flex; gap: 24px; align-items: flex-start; }
.pd-quickdef { flex: 1 1 auto; padding: 20px 24px; background: var(--pd-panel); border-left: 4px solid var(--pd-accent); display: flex; flex-direction: column; gap: 6px; }
.pd-quickdef p { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--pd-ink-bright); }
.pd-quickdef p a { color: inherit; text-decoration: underline; text-decoration-color: var(--pd-rule-strong); }
.pd-share { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; position: relative; }
.pd-share--plugin { padding-top: 2px; align-items: center; }
.pd-edit-link { font-family: var(--pd-sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pd-edit-link a { color: var(--pd-ink-dim); }
.pd-edit-link a:hover { color: var(--pd-accent); }
.pd-share__toast { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--pd-rule-strong); color: var(--pd-bg); font-family: var(--pd-sans); font-size: 12px; font-weight: 600; }
.pd-share button { position: relative; }
.pd-share a, .pd-share button {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--pd-rule); border-radius: 50%; background: var(--pd-bg); color: var(--pd-ink); cursor: pointer; padding: 0;
}
.pd-share a:hover, .pd-share button:hover { background: var(--pd-panel-2); text-decoration: none; }
.pd-share svg { width: 17px; height: 17px; }
.pd-share .is-done { border-color: var(--pd-accent); color: var(--pd-accent); }

.pd-entry__content { font-size: 19px; line-height: 1.65; }
.pd-entry__content > p, .pd-entry__content > ul, .pd-entry__content > ol, .pd-entry__content > blockquote { margin: 0 0 20px; }
.pd-entry__content > :last-child { margin-bottom: 0; }
.pd-entry__content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--pd-rule); color: var(--pd-ink-dim); font-style: italic; }
.pd-entry__content figure { margin: 0 0 20px; }
.pd-entry__content figcaption { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-entry__content iframe, .pd-entry__content video { max-width: 100%; }
.pd-entry__content .wp-block-embed__wrapper { position: relative; }
.pd-entry__content h2 { font-size: 26px; margin: 28px 0 10px; }
.pd-entry__content h3 { font-size: 21px; margin: 24px 0 8px; }
.pd-entry__content strong { color: var(--pd-ink-bright); }
.pd-entry__content img { border-radius: 4px; }

.pd-entry__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }

/* Alphabetical prev/next */
.pd-prevnext { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--pd-rule); border-bottom: 1px solid var(--pd-rule); font-family: var(--pd-sans); }
.pd-prevnext a { display: flex; flex-direction: column; gap: 3px; color: var(--pd-ink-bright); min-width: 0; }
.pd-prevnext a:hover { text-decoration: none; color: var(--pd-accent); }
.pd-prevnext__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pd-ink-dim); }
.pd-prevnext__term { font-family: var(--pd-serif); font-size: 19px; font-weight: 600; }
.pd-prevnext__next { align-items: flex-end; text-align: right; }
.pd-prevnext__all { align-items: center; text-align: center; }

/* --------------------------------------------------------------------------
   Archives, search, pages
   -------------------------------------------------------------------------- */
.pd-archive__header { display: flex; flex-direction: column; gap: 8px; padding-bottom: 16px; border-bottom: 2px solid var(--pd-rule-strong); }
.pd-archive__title { font-size: 40px; line-height: 1.05; }
.pd-archive__title .pd-letter { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-right: 12px; border: 2px solid var(--pd-rule-strong); border-radius: 6px; font-family: var(--pd-sans); font-size: 30px; vertical-align: middle; }
.pd-archive__desc { font-size: 17px; color: var(--pd-ink-dim); margin: 0; }
.pd-archive__count { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-index { columns: 2; column-gap: 40px; list-style: none; margin: 0; padding: 0; }
.pd-index li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--pd-rule); font-size: 18px; }
.pd-index li a { color: var(--pd-ink); }
.pd-index li a:hover { color: var(--pd-accent); text-decoration: none; }
.pd-pagination { display: flex; justify-content: center; gap: 6px; font-family: var(--pd-sans); font-size: 14px; }
.pd-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--pd-rule); border-radius: 6px; color: var(--pd-ink); }
.pd-pagination .page-numbers.current { background: var(--pd-rule-strong); color: var(--pd-bg); border-color: var(--pd-rule-strong); }
.pd-pagination a.page-numbers:hover { background: var(--pd-panel-2); text-decoration: none; }
.pd-page__title { font-size: 40px; line-height: 1.05; padding-bottom: 16px; border-bottom: 1px solid var(--pd-rule-strong); }
.pd-page .pd-entry__content { font-size: 18px; }
.pd-didyoumean { margin: 0; font-size: 20px; }
.pd-didyoumean a { font-weight: 600; }
.pd-nothing { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--pd-panel); border: 1px solid var(--pd-rule); }
.pd-nothing p { margin: 0; }

/* Comments (usually closed on this site) */
.pd-comments { display: flex; flex-direction: column; gap: 16px; }
.pd-comments ol { list-style: none; margin: 0; padding: 0; }
.pd-comments .comment { padding: 14px 0; border-bottom: 1px solid var(--pd-rule); }
.pd-comments .comment-meta { font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-comments textarea, .pd-comments input[type="text"], .pd-comments input[type="email"], .pd-comments input[type="url"] { width: 100%; border: 1px solid var(--pd-rule-strong); border-radius: 6px; padding: 10px; font-family: var(--pd-serif); font-size: 16px; background: var(--pd-bg); color: var(--pd-ink); }
.pd-comments input[type="submit"] { border: 0; border-radius: 6px; background: var(--pd-rule-strong); color: var(--pd-bg); font-family: var(--pd-sans); font-weight: 600; padding: 12px 20px; cursor: pointer; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.pd-footer { margin-top: 56px; border-top: 1px solid var(--pd-rule-strong); }
.pd-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 26px 0 40px; font-family: var(--pd-sans); font-size: 13px; color: var(--pd-ink-dim); }
.pd-footer a { color: var(--pd-ink-dim); }
.pd-footer a:hover { color: var(--pd-accent); }
.pd-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* --------------------------------------------------------------------------
   Ads: no slots are drawn — Mediavine's script wrapper places them. These
   rules only keep the rail wide enough (325px) and give the wrapper a stable
   content container (.mv-content-wrapper on the entry body).
   -------------------------------------------------------------------------- */
.pd-sidebar > .widget_media_image img { display: block; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --pd-gap: 36px; }
  .pd-header__search { flex-basis: 360px; }
}
@media (max-width: 920px) {
  .pd-main { flex-direction: column; }
  .pd-rail { width: 100%; flex-basis: auto; align-self: auto; }
  .pd-sidebar { height: auto; }
  .pd-trending { grid-template-columns: 1fr; }
  .pd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-header__search { display: none; }
  .pd-header__mobile-search { display: block; padding: 0 0 14px; }
}
@media (min-width: 921px) { .pd-header__mobile-search { display: none; } }
@media (max-width: 640px) {
  body { font-size: 17px; }
  .pd-hero { padding: 22px var(--pd-gutter) 18px; }
  .pd-hero .pd-search--hero input[type="search"] { height: 50px; font-size: 17px; padding: 0 14px; }
  .pd-hero .pd-search--hero button { padding: 0 16px; font-size: 14px; }
  .pd-letters__list { justify-content: flex-start; padding-left: 0; }
  .pd-letters__list a { width: 44px; height: 44px; }
  .pd-wotd { padding: 20px; }
  .pd-wotd__term { font-size: 32px; }
  .pd-wotd__gloss { font-size: 17px; }
  .pd-entry__title { font-size: 38px; }
  .pd-entry__content { font-size: 18px; }
  .pd-entry__lede { flex-direction: column; }
  .pd-share { flex-direction: row; }
  .pd-quickdef p { font-size: 19px; }
  .pd-cards, .pd-cards--2 { grid-template-columns: 1fr; }
  .pd-row { flex-direction: column; gap: 2px; padding: 14px 0; }
  .pd-row__aside { width: auto; padding-top: 0; }
  .pd-index { columns: 1; }
  .pd-prevnext__all { display: none; }
  .pd-archive__title { font-size: 32px; }
  .pd-logo img { height: 64px; }
  .pd-header__bar { gap: 12px; padding: 12px 0; }
  .pd-header__tools { flex-shrink: 0; }
}

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

/* Print: drop chrome */
@media print { .pd-header, .pd-sidebar, .pd-footer, .pd-share, .pd-letters { display: none !important; } }
