/* WordPress-only layer on top of the docs design. */
body.admin-bar .site-bar, body.admin-bar .reader-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-bar, body.admin-bar .reader-bar { top: 0; position: relative; } }

/* header navigation */
.site-bar { gap: 20px; }
.site-bar-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav .current-menu-item > a, .site-nav .current-cat > a { background: var(--accent-soft); color: var(--accent); }

/* the docs glow was tuned for light mode; in dark it read as a bright blob behind the logo */
.site-logo-panel { background: radial-gradient(ellipse at center, color-mix(in srgb, #e2e8c4 75%, var(--bg)) 0, transparent 68%); }
:root[data-theme="dark"] .site-logo-panel { background: radial-gradient(ellipse at center, rgba(130, 194, 154, .16) 0, transparent 68%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-logo-panel { background: radial-gradient(ellipse at center, rgba(130, 194, 154, .16) 0, transparent 68%); } }
:root[data-theme="dark"] .site-browse-link { background: var(--accent); color: #07140d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-browse-link { background: var(--accent); color: #07140d; } }
.site-browse-link { transition: transform .2s var(--ease), filter .2s; }
.site-browse-link:hover { transform: translateY(-1px); filter: brightness(1.08); }

.site-hero-branded .lead { margin-left: 0; }

/* section filter */
.site-filter { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.site-filter button { min-height: 32px; padding: 4px 14px; border-radius: 999px; font-size: .8125rem; color: var(--ink-2); background: var(--surface); }
.site-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.win-grid { max-width: none; }

/* lead story: the same window, wider, with the words beside it */
.win-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.win-feature .win-bar { grid-column: 1 / -1; }
.win-feature .win-view { aspect-ratio: auto; min-height: 400px; border-right: 1px solid var(--line); }
.win-feature .win-info { align-content: center; gap: 12px; padding: clamp(22px, 3.4vw, 44px); border-top: 0; }
.win-feature .win-info h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.14; letter-spacing: -.035em; }
.win-feature .win-excerpt { font-size: 1.02rem; line-height: 1.6; -webkit-line-clamp: 5; }
.win-feature .win-open { font-size: .9rem; margin-top: 6px; }
.win-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 750; letter-spacing: .01em; }
.win-meta .sep { opacity: .6; }
.win-kicker { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* listing headers on section and search pages */
.site-listing-head { margin-bottom: clamp(24px, 4vw, 40px); }
.site-listing-head h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.site-listing-head .lead { margin: 12px 0 0; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: .875rem; font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* article */
.read-kicker { margin: 0 0 12px; }
.read-kicker a { color: inherit; text-decoration: none; }
.read-source { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
.read-source a { color: var(--accent); }
.read-next { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.read-next h2 { margin: 0 0 16px; font-size: 1.25rem; letter-spacing: -.02em; }
.read-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.read-next a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 650; letter-spacing: -.01em; line-height: 1.35; text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.read-next a:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.read-next time { flex: none; color: var(--ink-3); font-size: .78rem; font-weight: 500; }

/* footer */
.site-foot { gap: 6px 16px; padding-top: 28px; color: var(--ink-3); }
.site-foot small { font-size: 11px; }
.reader > .site-foot { background: var(--surface); }

/* the sandbox labels the mu-plugin prints */
.ywo-test-banner { padding: 6px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--ink-3); text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.ywo-test-footer { padding: 0 16px 22px; text-align: center; color: var(--ink-3); font-size: 11px; }
.ywo-test-footer a { color: inherit; }
body > .ywo-test-footer { background: inherit; }

@media (max-width: 980px) {
  .win-feature { display: flex; }
  .win-feature .win-view { aspect-ratio: 16 / 11; min-height: 0; border-right: 0; }
  .win-feature .win-info { border-top: 1px solid var(--line); padding: 18px; }
  .win-feature .win-info h2 { font-size: 1.4rem; }
}
@media (max-width: 860px) {
  /* Two rows: logo, sections and theme, then search. It scrolls away so the stories get the screen. */
  .site-bar { position: relative; flex-wrap: wrap; gap: 8px; }
  body.admin-bar .site-bar { top: 0; }
  .site-bar-left { flex: 1 1 100%; gap: 10px; padding-right: 44px; }
  .site-actions { display: contents; }
  .site-search { flex: 1 1 100%; }
  .site-search input { width: 100%; }
  .site-bar #theme-toggle { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(10px, env(safe-area-inset-top)); }
  .site .site-bar .brand b { display: none; }
  .site-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  .site-nav a { padding: 6px 9px; font-size: .8125rem; }
  .site-hero-branded { text-align: left; align-items: flex-start; }
  .site-logo-panel { align-self: center; width: min(70%, 280px); }
  .site-main { padding-top: 20px; }
  .read-next a { display: grid; gap: 4px; }
  .reader-bar .button span { display: none; }
  .reader-bar .button { padding: 6px 9px; }
}
@media (max-width: 500px) {
  .reader-bar .brand b { display: none; }
}
@media print {
  .ywo-test-banner, .ywo-test-footer, .site-foot, .read-next, .read-source, #wpadminbar { display: none !important; }
  html { margin-top: 0 !important; }
}
/* Consistent article flow: images sit between paragraphs rather than floating into headings. */
.reader.postid-150 .prose { display: flow-root; }
.reader.postid-150 .prose > .wp-block-image,
.reader.postid-150 .prose > figure.alignleft,
.reader.postid-150 .prose > figure.alignright {
  float: none !important;
  clear: both;
  display: block;
  width: auto !important;
  max-width: 100%;
  margin: 1.65em 0;
}
.reader.postid-150 .prose > .wp-block-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  border-radius: 10px;
}
.reader.postid-150 .prose .wp-block-image figcaption {
  margin: .65em 0 0;
  color: var(--ink-2);
  font-size: max(.75rem, .75em);
  line-height: 1.5;
  text-align: left;
}
.reader.postid-150 .prose > :is(h2, h3, h4, hr) { clear: both; }
.reader.postid-150 .prose h2 { margin: 2em 0 .65em; }
.reader.postid-150 .prose h3 { margin: 1.65em 0 .6em; }
.reader.postid-150 .prose > p:empty { display: none; }
.reader.postid-150 .prose > .wp-block-image:first-child { margin-top: 0; }
.reader.postid-150 .prose #works-cited + .table-wrap { background: var(--surface-2); }
.reader.postid-150 .prose #works-cited + .table-wrap td { padding: 1.15em 1.25em; line-height: 1.65; }
@media (max-width: 600px) {
  .reader.postid-150 .prose > .wp-block-image { margin: 1.35em 0; }
  .reader.postid-150 .prose h2 { margin-top: 1.7em; }
}

/* Older WordPress image blocks wrap their aligned figure in a div. */
.reader.postid-150 .prose > .wp-block-image > figure {
  float: none !important;
  clear: both;
  width: auto !important;
  max-width: 100%;
  margin: 0;
}

/* Site-wide image captions (2026-11-15). The theme dequeues global-styles, which is where core's
   small caption size lives, so captions were inheriting the full article font size. */
.prose figcaption,
.prose .wp-element-caption,
.prose .wp-caption-text {
  margin: .6em 0 0;
  color: var(--ink-3);
  font-size: .875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-wrap: pretty;
}

/* The Liberty Middle School lead photo uses a traditional centered news caption. */
.reader.postid-328 .prose .wp-block-image figcaption {
  font-style: italic;
  text-align: center;
}
