/**
 * Cercle — base stylesheet.
 *
 * The LIGHT-MODE counterpart of Peak UI (the dark design system every Peak
 * widget panel is built on): the same warm-neutral brand family (Carbon Black /
 * Graphite / Grey Olive / Parchment), hairline borders, monochrome selection
 * states, one meaning for the brand orange, 10px radii, uppercase eyebrows,
 * Lucide-only iconography. Turned inside out for a page: Parchment canvas,
 * near-white elevated surfaces, Carbon Black ink.
 *
 * Typography and brand colours are ultimately owned by the Peak panel (it
 * prints CSS variables onto body / headings / a / button in wp_head), so this
 * file only sets DEFAULTS that the panel can override, and never !important's
 * anything it might want to change. Content rhythm is scoped to the prose
 * containers so Elementor-built layouts are untouched.
 *
 * TABLE OF CONTENTS
 *   1. Design tokens
 *   2. Reset
 *   3. Base elements (type scale, links, forms, buttons)
 *   4. Prose rhythm (.entry-content, .comment-content …)
 *   5. WordPress core classes + blocks
 *   6. Header + navigation
 *   7. Page shells, archive headers, post cards
 *   8. Single post / page
 *   9. Pagination + post navigation
 *  10. Widgets + sidebar + footer
 *  11. Comments
 *  12. Search, 404, empty states
 *  13. Utilities + accessibility
 */

/* ============================================================
 * 1. Design tokens
 * ========================================================= */
:root {
  /* layout */
  --peak-container: 1300px;
  --peak-container-max: 100%;    /* share of the viewport the container may take (panel) */
  --peak-container-narrow: 760px;
  --peak-measure: 46rem;          /* readable prose measure (~736px) */
  --peak-sidebar-width: 300px;
  --peak-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --peak-flow: 1.35em;            /* vertical rhythm between prose blocks */
  --peak-header-h: 72px;

  /* surfaces — Peak UI, inverted for daylight */
  --peak-canvas: #f7f3f0;         /* Parchment — page canvas               */
  --peak-surface: #fcfbfa;        /* elevated: cards, dropdowns, header    */
  --peak-field: #ffffff;          /* inputs                                */
  --peak-inset: rgba(25, 25, 25, 0.045);   /* soft fill: hover pills, code   */
  --peak-inset-2: rgba(25, 25, 25, 0.08);  /* stronger fill                  */
  --peak-border: rgba(25, 25, 25, 0.1);    /* hairline                       */
  --peak-border-strong: rgba(25, 25, 25, 0.2);
  --peak-line: rgba(25, 25, 25, 0.07);     /* dividers                       */

  /* text */
  --peak-ink: #191919;            /* Carbon Black                          */
  --peak-text: var(--peak-ink);
  --peak-muted: #5f5d5a;          /* secondary                             */
  --peak-faint: #868583;          /* Grey Olive — labels, captions         */

  /* selection / accent — MONOCHROME (dark on light) */
  --peak-accent: var(--peak-ink);
  --peak-accent-fg: var(--peak-canvas);
  --peak-accent-soft: rgba(25, 25, 25, 0.08);
  --peak-ring: rgba(25, 25, 25, 0.35);
  --peak-focus: var(--peak-ink);

  /* brand orange — ONE meaning on the front: "featured / attention"
     (sticky badge, required marks, <mark>, text selection). */
  --peak-brand: #f5831f;
  --peak-brand-soft: rgba(245, 131, 31, 0.16);

  /* semantic */
  --peak-danger: #d9464f;
  --peak-ok: #2f9e63;
  --peak-warn: #c9931b;

  /* shape + motion */
  --peak-radius: 10px;
  --peak-radius-sm: 6px;
  --peak-radius-xs: 4px;
  --peak-radius-lg: 14px;
  --peak-radius-card: var(--peak-radius-lg);
  --peak-radius-input: var(--peak-radius);
  --peak-radius-pill: 9999px;
  --peak-h: 42px;                 /* control height */
  --peak-h-sm: 34px;
  --peak-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --peak-shadow-a: 0.07;          /* shadow strength; dark mode raises it     */
  --peak-shadow-card: 0 1px 2px rgba(25, 25, 25, 0.05);
  --peak-shadow-pop: 0 12px 32px rgba(25, 25, 25, 0.12), 0 1px 2px rgba(25, 25, 25, 0.08);

  /* type scale — Perfect Fourth (1.333), fluid at the display end */
  --peak-fs-base: 1rem;
  --peak-fs-small: 0.875rem;
  --peak-fs-caption: 0.75rem;
  --peak-fs-medium: 1.125rem;
  --peak-fs-h6: 1rem;
  --peak-fs-h5: 1.25rem;
  --peak-fs-h4: clamp(1.375rem, 1.2rem + 0.6vw, 1.777rem);
  --peak-fs-h3: clamp(1.75rem, 1.4rem + 1.2vw, 2.369rem);
  --peak-fs-h2: clamp(2.125rem, 1.6rem + 2vw, 3.157rem);
  --peak-fs-h1: clamp(2.625rem, 1.9rem + 3vw, 4.209rem);
  --peak-lh-heading: 1.1;
  --peak-lh-body: 1.65;
  --peak-lh-small: 1.45;

  /* legacy aliases (older rules / child themes) */
  --peak-surface-2: var(--peak-inset);
  --peak-bg-soft: var(--peak-inset);
  --peak-graphite: #44403b;
  --peak-smoke: var(--peak-muted);
  --peak-ash: var(--peak-faint);
}

/* ============================================================
 * 2. Reset
 * ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, pre, ul, ol {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--peak-header-h) + 1rem);
}

body {
  min-height: 100vh;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--peak-fs-base);
  line-height: var(--peak-lh-body);
  color: var(--peak-text);
  background: var(--peak-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
img {
  border: 0;
}
/* Inline images inside prose stay inline so alignment classes work. */
.entry-content img,
.comment-content img,
.widget img {
  display: inline-block;
  vertical-align: middle;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, td, th {
  overflow-wrap: break-word;
}
h1, h2, h3 {
  overflow-wrap: anywhere;
}
body {
  overflow-x: clip;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:target {
  scroll-margin-block: 5ex;
}

::selection {
  background: var(--peak-brand-soft);
  color: var(--peak-ink);
}

@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;
  }
}

/* ============================================================
 * 3. Base elements
 * ========================================================= */

/* Headings: medium weight, tight tracking — the Peak UI voice at page scale.
   The panel overrides per-element size/weight/tracking when the user sets one;
   view-specific classes (.page-title, .entry-title) still win by specificity. */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: var(--peak-lh-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--peak-fs-h1); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: var(--peak-fs-h2); letter-spacing: -0.03em; line-height: 1.08; }
h3 { font-size: var(--peak-fs-h3); letter-spacing: -0.025em; }
h4 { font-size: var(--peak-fs-h4); }
h5 { font-size: var(--peak-fs-h5); }
h6 { font-size: var(--peak-fs-h6); }
h4, h5, h6 {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Eyebrow — the panel's section-title voice (10–11px, uppercase, tracked). */
.peak-eyebrow,
.widget-title,
.wp-block-search__label,
.widget .wp-block-heading,
.comments-title,
.comment-reply-title,
.peak-share-label,
.footer-widgets .widget-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peak-faint);
  line-height: 1.4;
}

small,
.small {
  font-size: var(--peak-fs-small);
  line-height: var(--peak-lh-small);
}
.caption {
  font-size: var(--peak-fs-caption);
  line-height: var(--peak-lh-small);
  color: var(--peak-faint);
}

a {
  transition: color 0.15s var(--peak-ease), opacity 0.15s var(--peak-ease),
    background-color 0.15s var(--peak-ease), border-color 0.15s var(--peak-ease);
}
a:hover {
  opacity: 0.75;
}

/* Every default below that answers an interaction (focus, hover, checked)
   sits at ELEMENT specificity or none, through :where(). A theme default must
   lose to any widget's single class — `:focus-visible` at (0,1,0) used to tie
   with `.peak-form__input` and repaint its radius on keyboard focus. */
:where(:focus-visible) {
  outline: 1px solid var(--peak-focus);
  outline-offset: 2px;
  border-radius: var(--peak-radius-xs);
}

hr {
  border: 0;
  border-top: 1px solid var(--peak-line);
  margin: var(--peak-flow) 0;
}

mark,
ins {
  background: var(--peak-brand-soft);
  color: inherit;
  text-decoration: none;
  padding: 0.05em 0.25em;
  border-radius: var(--peak-radius-xs);
}
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 0.15em;
  cursor: help;
}
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8em;
  padding: 0.15em 0.45em;
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-bottom-width: 2px;
  border-radius: var(--peak-radius-xs);
}
code, samp, var, tt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
sup, sub {
  font-size: 0.75em;
  line-height: 0;
}
address {
  font-style: normal;
}
cite {
  font-style: italic;
  color: var(--peak-muted);
}
big { font-size: 1.25em; }
dfn { font-style: italic; }
del, s { color: var(--peak-muted); }

/* ---- Native form controls (Elementor styles its own; these are the theme's) */
input:where(:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"])),
input:where(.wp-block-search__input),
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: var(--peak-h);
  padding: 0.55em 0.9em;
  background: var(--peak-field);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-input);
  color: var(--peak-text);
  line-height: 1.4;
  box-shadow: var(--peak-shadow-card);
  transition: border-color 0.15s var(--peak-ease), box-shadow 0.15s var(--peak-ease);
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  min-height: 9em;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--peak-faint);
  opacity: 1;
}
input:where(:not([type="checkbox"]):not([type="radio"])):where(:hover),
textarea:where(:hover),
select:where(:hover) {
  border-color: var(--peak-border-strong);
}
input:where(:not([type="checkbox"]):not([type="radio"])):where(:focus),
textarea:where(:focus),
select:where(:focus) {
  outline: none;
  border-color: var(--peak-ink);
  box-shadow: 0 0 0 1px var(--peak-ink);
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
input[type="file"] {
  font-size: var(--peak-fs-small);
}

/* Select — Peak UI's custom chevron (Lucide chevron-down, inline SVG). */
select {
  padding-inline-end: 2.4em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23868583' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 16px 16px;
  cursor: pointer;
}
select[multiple] {
  background-image: none;
  padding-inline-end: 0.9em;
}

/* Checkbox + radio — Peak UI check (monochrome fill, Lucide check mark). */
input:where([type="checkbox"], [type="radio"]) {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0 0.5em 0 0;
  flex: 0 0 auto;
  vertical-align: -0.2em;
  display: inline-block;
  background: var(--peak-field);
  border: 1px solid var(--peak-border-strong);
  border-radius: var(--peak-radius-xs);
  cursor: pointer;
  transition: background-color 0.15s var(--peak-ease), border-color 0.15s var(--peak-ease);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}
input:where([type="radio"]) {
  border-radius: 50%;
}
input:where([type="checkbox"], [type="radio"]):where(:hover) {
  border-color: var(--peak-ink);
}
input:where([type="checkbox"], [type="radio"]):where(:checked) {
  background-color: var(--peak-accent);
  border-color: var(--peak-accent);
}
input:where([type="checkbox"]):where(:checked) {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
}
input:where([type="radio"]):where(:checked) {
  background-image: radial-gradient(circle, var(--peak-accent-fg) 0 3px, transparent 3.5px);
}
input:where([type="checkbox"], [type="radio"]):where(:focus-visible) {
  outline-offset: 2px;
}

label {
  font-size: var(--peak-fs-small);
  font-weight: 500;
  color: var(--peak-muted);
}
.required {
  color: var(--peak-brand);
  font-weight: 600;
}

/* ---- Buttons: pill, monochrome fill (ink on parchment) */
.button,
button:not([class]),
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link,
.wp-block-search__button,
.wp-element-button,
.comment-form .submit,
.post-password-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: var(--peak-h);
  padding: 0.6em 1.4em;
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
  border: 1px solid var(--peak-accent);
  border-radius: var(--peak-radius-pill);
  font-size: var(--peak-fs-small);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s var(--peak-ease), color 0.15s var(--peak-ease),
    border-color 0.15s var(--peak-ease), transform 0.12s var(--peak-ease), opacity 0.15s var(--peak-ease);
}
.button:hover,
button:not([class]):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover,
.wp-element-button:hover,
.comment-form .submit:hover {
  opacity: 1;
  background: #2b2b2a;
  border-color: #2b2b2a;
  color: var(--peak-accent-fg);
  transform: translateY(-1px);
}
.button:active,
button:not([class]):active,
input[type="submit"]:active,
.wp-block-button__link:active {
  transform: translateY(0);
}
/* Ghost / outline variant (also the block "Outline" style). */
.button.is-ghost,
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--peak-ink);
  border-color: var(--peak-border-strong);
}
.button.is-ghost:hover,
.is-style-outline .wp-block-button__link:hover {
  background: var(--peak-inset);
  color: var(--peak-ink);
  border-color: var(--peak-ink);
}
.button.is-small {
  min-height: var(--peak-h-sm);
  padding: 0.45em 1.05em;
  font-size: 0.8125rem;
}

/* Lucide icon slot (inline SVG printed by the theme). */
.peak-ico {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  color: inherit;
  vertical-align: -0.15em;
}
.peak-ico svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
 * 4. Prose rhythm — scoped so Elementor layouts are untouched
 * ========================================================= */
.entry-content,
.entry-summary,
.comment-content,
.archive-description,
.textwidget,
.widget_text {
  --prose: 1;
}

:is(.entry-content, .comment-content, .archive-description, .textwidget, .entry-summary) > * + * {
  margin-top: var(--peak-flow);
}
/* Clear floats so aligned images never spill out of the article. */
:is(.entry-content, .comment-content)::after {
  content: "";
  display: table;
  clear: both;
}

:is(.entry-content, .comment-content) :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  line-height: 1.15;
}
:is(.entry-content, .comment-content) :is(h1, h2, h3, h4, h5, h6) + * {
  margin-top: 0;
}
:is(.entry-content, .comment-content) > :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}
/* Comments carry user content: keep their headings on the small end. */
.comment-content h1 { font-size: var(--peak-fs-h4); }
.comment-content h2 { font-size: var(--peak-fs-h5); }
.comment-content :is(h3, h4, h5, h6) { font-size: var(--peak-fs-h6); }

:is(.entry-content, .comment-content) :is(ul, ol) {
  padding-inline-start: 1.5em;
}
:is(.entry-content, .comment-content) ul { list-style: disc; }
:is(.entry-content, .comment-content) ul ul { list-style: circle; }
:is(.entry-content, .comment-content) ul ul ul { list-style: square; }
:is(.entry-content, .comment-content) ol { list-style: decimal; }
:is(.entry-content, .comment-content) ol ol { list-style: lower-alpha; }
:is(.entry-content, .comment-content) ol ol ol { list-style: lower-roman; }
:is(.entry-content, .comment-content) li + li,
:is(.entry-content, .comment-content) li > :is(ul, ol) {
  margin-top: 0.35em;
}
:is(.entry-content, .comment-content) li::marker {
  color: var(--peak-faint);
}
:is(.entry-content, .comment-content) dt {
  font-weight: 600;
}
:is(.entry-content, .comment-content) dd {
  margin: 0.25em 0 0.9em;
  color: var(--peak-muted);
}

:is(.entry-content, .comment-content, .archive-description) a:not(.button):not(.wp-block-button__link):not(.more-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--peak-border-strong);
}
:is(.entry-content, .comment-content, .archive-description) a:not(.button):not(.wp-block-button__link):hover {
  opacity: 1;
  text-decoration-color: currentColor;
}

:is(.entry-content, .comment-content) blockquote {
  padding: 0.25em 0 0.25em 1.35em;
  border-inline-start: 2px solid var(--peak-ink);
  font-size: var(--peak-fs-medium);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--peak-text);
}
:is(.entry-content, .comment-content) blockquote > * + * {
  margin-top: 0.75em;
}
:is(.entry-content, .comment-content) blockquote cite,
:is(.entry-content, .comment-content) blockquote footer {
  display: block;
  margin-top: 0.75em;
  font-size: var(--peak-fs-small);
  font-style: normal;
  color: var(--peak-faint);
}

:is(.entry-content, .comment-content) :not(pre) > code {
  background: var(--peak-inset);
  border: 1px solid var(--peak-line);
  padding: 0.1em 0.4em;
  border-radius: var(--peak-radius-xs);
  font-size: 0.85em;
}
:is(.entry-content, .comment-content) pre {
  background: var(--peak-ink);
  color: var(--peak-canvas);
  padding: 1.1em 1.3em;
  border-radius: var(--peak-radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  tab-size: 2;
}
:is(.entry-content, .comment-content) pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

:is(.entry-content, .comment-content) img,
:is(.entry-content, .comment-content) video,
:is(.entry-content, .comment-content) iframe,
:is(.entry-content, .comment-content) figure > img {
  border-radius: var(--peak-radius);
}
:is(.entry-content, .comment-content) figure {
  max-width: 100%;
}
.entry-content > figure > a {
  display: block;
}
/* avatars / emoji / tiny inline images shouldn't get rounded corners */
:is(.entry-content, .comment-content) img.emoji,
:is(.entry-content, .comment-content) img.avatar {
  border-radius: 0;
  display: inline;
}
img.emoji {
  display: inline !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 0.07em !important;
  vertical-align: -0.1em !important;
}

/* Tables — hairline rows, soft header, tabular numbers. */
:is(.entry-content, .comment-content) table {
  font-size: var(--peak-fs-small);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius);
  border-spacing: 0;
  overflow: hidden;
  background: var(--peak-surface);
}
:is(.entry-content, .comment-content) :is(th, td) {
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--peak-line);
  border-inline-end: 1px solid var(--peak-line);
  text-align: start;
  vertical-align: top;
}
:is(.entry-content, .comment-content) :is(th, td):last-child {
  border-inline-end: 0;
}
:is(.entry-content, .comment-content) tr:last-child > :is(th, td) {
  border-bottom: 0;
}
:is(.entry-content, .comment-content) th {
  background: var(--peak-inset);
  font-weight: 600;
  color: var(--peak-muted);
  font-size: var(--peak-fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:is(.entry-content, .comment-content) tbody tr:hover > td {
  /* A hint of the ink token, so the row-hover survives the site going dark —
     a 2% black wash is invisible on a dark table. */
  background: color-mix(in srgb, var(--peak-ink) 4%, transparent);
}
:is(.entry-content, .comment-content) table caption {
  caption-side: bottom;
  padding: 0.6em 0;
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
}

/* Paragraph-level helpers WordPress emits */
:is(.entry-content, .comment-content) .has-drop-cap:not(:focus)::first-letter {
  font-weight: 500;
  font-size: 4.2em;
  line-height: 0.85;
  margin: 0.06em 0.12em 0 0;
}
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--peak-fs-small);
  font-weight: 500;
  text-decoration: none;
}
.more-link::after {
  content: "";
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>") center / contain no-repeat;
  transition: transform 0.2s var(--peak-ease);
}
.more-link:hover::after {
  transform: translateX(3px);
}

/* Paginated post links (<!--nextpage-->) */
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--peak-line);
  font-size: var(--peak-fs-small);
  color: var(--peak-faint);
}
.page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  height: 2.2em;
  padding: 0 0.6em;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-pill);
  text-decoration: none;
  color: var(--peak-text);
  background: var(--peak-surface);
}
.page-links .post-page-numbers:hover {
  opacity: 1;
  border-color: var(--peak-ink);
}
.page-links .post-page-numbers.current {
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
  border-color: var(--peak-accent);
}

/* Password-protected content form */
.post-password-form {
  padding: 1.5rem;
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-lg);
}
.post-password-form p + p {
  margin-top: 1rem;
}
.post-password-form label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
}
.post-password-form label input {
  flex: 1 1 200px;
  width: auto;
}
.post-password-form p:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.post-password-form p:last-child label {
  flex: 1 1 260px;
}

/* ============================================================
 * 5. WordPress core classes + blocks
 * ========================================================= */

/* WP 6.1 font-size presets → our scale (re-pointing the variables is enough;
   core's .has-*-font-size classes use them with !important). */
:root {
  --wp--preset--font-size--small: var(--peak-fs-small);
  --wp--preset--font-size--medium: var(--peak-fs-medium);
  --wp--preset--font-size--large: var(--peak-fs-h4);
  --wp--preset--font-size--x-large: var(--peak-fs-h3);
  --wp--preset--font-size--xx-large: var(--peak-fs-h2);
  --wp--preset--font-size--huge: var(--peak-fs-h1);
}
.has-large-font-size { line-height: 1.25; }
.has-x-large-font-size,
.has-xx-large-font-size,
.has-huge-font-size { line-height: var(--peak-lh-heading); letter-spacing: -0.02em; }
.has-xx-large-font-size { font-size: var(--peak-fs-h2); }

/* Alignment (classic + block) */
.alignleft {
  float: left;
  margin: 0.35em 1.75em 1em 0;
  max-width: 50%;
}
.alignright {
  float: right;
  margin: 0.35em 0 1em 1.75em;
  max-width: 50%;
}
.aligncenter {
  display: block;
  clear: both;
  margin-inline: auto;
  text-align: center;
}
.alignnone {
  display: block;
  clear: both;
}
.entry-content > .alignleft + *,
.entry-content > .alignright + * {
  margin-top: 0;
}
figure.alignleft,
figure.alignright {
  margin-top: 0.35em;
}
figure.alignleft img,
figure.alignright img {
  display: block;
}
@media (max-width: 600px) {
  .alignleft,
  .alignright {
    float: none;
    max-width: 100%;
    margin: var(--peak-flow) 0;
  }
}

.entry-content .alignwide {
  width: min(100%, 1140px);
  max-width: 1140px;
  margin-inline: auto;
}
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  margin-inline-end: calc(50% - 50vw);
}
.entry-content .alignfull img,
.entry-content .alignfull.wp-block-cover {
  border-radius: 0;
}

/* Captions — the caption tier of the scale. */
.wp-caption {
  max-width: 100%;
}
.wp-caption img {
  display: block;
  width: 100%;
  border-radius: var(--peak-radius);
}
.wp-caption-text,
figcaption,
.wp-element-caption,
.gallery-caption,
.blocks-gallery-caption {
  margin-top: 0.6em;
  font-size: var(--peak-fs-caption);
  line-height: var(--peak-lh-small);
  color: var(--peak-faint);
  text-align: start;
}
.aligncenter .wp-caption-text,
figure.aligncenter figcaption {
  text-align: center;
}

/* Classic [gallery] shortcode */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery-columns-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.gallery-columns-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.gallery-columns-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--peak-radius);
}
.gallery-item .gallery-icon img,
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--peak-radius);
  border: 0 !important;
  transition: transform 0.4s var(--peak-ease);
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-caption {
  display: block;
  padding: 0.4em 0.2em 0;
}
@media (max-width: 700px) {
  .gallery-columns-4, .gallery-columns-5, .gallery-columns-6,
  .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .gallery-columns-3, .gallery-columns-4, .gallery-columns-5, .gallery-columns-6,
  .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Required core classes — Theme Check expects these to exist. */
.sticky {
  display: block;
}
.bypostauthor {
  display: block;
}

/* ---- Blocks (the ones the unit test content exercises) */
.wp-block-buttons {
  gap: 0.6rem;
}
.wp-block-button__link {
  border-radius: var(--peak-radius-pill);
}
.wp-block-button.is-style-squared .wp-block-button__link {
  border-radius: var(--peak-radius-sm);
}
.wp-block-button__link.has-background:not(.has-text-color) {
  color: inherit;
}

.wp-block-quote,
.wp-block-quote.is-style-large,
.wp-block-quote.is-large {
  margin-inline: 0;
  padding: 0.25em 0 0.25em 1.35em;
  border-inline-start: 2px solid var(--peak-ink);
}
.wp-block-quote.is-style-large,
.wp-block-quote.is-large,
.wp-block-quote.is-style-plain {
  border: 0;
  padding-inline-start: 0;
}
.wp-block-quote.is-style-large p,
.wp-block-quote.is-large p {
  font-size: var(--peak-fs-h4);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-style: normal;
}
.wp-block-quote cite,
.wp-block-quote .wp-block-quote__citation {
  display: block;
  margin-top: 0.75em;
  font-size: var(--peak-fs-small);
  font-style: normal;
  color: var(--peak-faint);
}
.wp-block-quote.has-text-align-right {
  border-inline-start: 0;
  border-inline-end: 2px solid var(--peak-ink);
  padding: 0.25em 1.35em 0.25em 0;
}

.wp-block-pullquote {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--peak-ink);
  border-bottom: 1px solid var(--peak-ink);
  text-align: center;
}
.wp-block-pullquote blockquote {
  border: 0;
  padding: 0;
}
.wp-block-pullquote p {
  font-size: var(--peak-fs-h4);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.wp-block-pullquote cite {
  display: block;
  margin-top: 1em;
  font-size: var(--peak-fs-small);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--peak-faint);
}
.wp-block-pullquote.is-style-solid-color {
  background: var(--peak-ink);
  color: var(--peak-canvas);
  border: 0;
  border-radius: var(--peak-radius-lg);
}
.wp-block-pullquote.is-style-solid-color cite {
  /* An alpha of the block's OWN foreground, not the light canvas written out as
     a literal. The block is an inverted surface, so in dark mode its foreground
     is the dark ink and a baked light value would vanish. */
  color: color-mix(in srgb, currentColor 60%, transparent);
}

.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--peak-border-strong);
  margin-inline: auto;
  width: 100px;
}
.wp-block-separator.is-style-wide,
.wp-block-separator.alignwide,
.wp-block-separator.alignfull {
  width: 100%;
}
.wp-block-separator.is-style-dots {
  border: 0;
  width: auto;
  text-align: center;
  line-height: 1;
}
.wp-block-separator.is-style-dots::before {
  content: "···";
  font-size: 1.5rem;
  letter-spacing: 1.2em;
  padding-inline-start: 1.2em;
  color: var(--peak-faint);
}

.wp-block-code,
.wp-block-preformatted,
.wp-block-verse {
  white-space: pre-wrap;
}
.wp-block-code code {
  display: block;
}
.wp-block-preformatted,
.wp-block-verse {
  font-family: inherit;
  background: var(--peak-inset);
  color: var(--peak-text);
  border: 1px solid var(--peak-line);
}
.wp-block-verse {
  font-style: italic;
}

.wp-block-table {
  overflow-x: auto;
}
.wp-block-table table {
  border-radius: 0;
  border: 0;
  background: transparent;
}
.wp-block-table :is(th, td) {
  border-inline-end: 0;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td {
  background: var(--peak-inset);
}
.wp-block-table.is-style-stripes table {
  border: 0;
}
.wp-block-table figcaption {
  text-align: center;
}

.wp-block-image img {
  border-radius: var(--peak-radius);
}
.wp-block-image.is-style-rounded img {
  border-radius: var(--peak-radius-pill);
}
.wp-block-image .alignleft,
.wp-block-image .alignright {
  margin-top: 0.35em;
}

.wp-block-gallery.has-nested-images {
  gap: 0.75rem;
}
.wp-block-gallery figure img {
  border-radius: var(--peak-radius);
}
.wp-block-gallery figcaption.blocks-gallery-caption {
  flex-basis: 100%;
  text-align: center;
}

.wp-block-cover,
.wp-block-cover-image {
  border-radius: var(--peak-radius-lg);
  overflow: hidden;
}
.wp-block-cover .wp-block-cover__inner-container > * + * {
  margin-top: 1rem;
}

.wp-block-media-text {
  border-radius: var(--peak-radius-lg);
  overflow: hidden;
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
}
.wp-block-media-text .wp-block-media-text__content {
  padding: 2rem;
}
.wp-block-media-text .wp-block-media-text__content > * + * {
  margin-top: 1em;
}
.wp-block-media-text .wp-block-media-text__media img {
  border-radius: 0;
  height: 100%;
  object-fit: cover;
}

.wp-block-columns {
  gap: 2rem;
}
.wp-block-column > * + * {
  margin-top: var(--peak-flow);
}

.wp-block-group.has-background {
  padding: 2rem;
  border-radius: var(--peak-radius-lg);
}
.wp-block-group > * + *,
.wp-block-group__inner-container > * + * {
  margin-top: var(--peak-flow);
}

.wp-block-file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius);
  font-size: var(--peak-fs-small);
}
.wp-block-file > a:first-child {
  font-weight: 500;
  text-decoration: none !important;
}
.wp-block-file .wp-block-file__button {
  margin-inline-start: auto;
  min-height: var(--peak-h-sm);
  padding: 0.4em 1em;
  font-size: 0.8125rem;
}

.wp-block-audio audio,
.wp-block-video video {
  width: 100%;
  border-radius: var(--peak-radius);
}
.wp-block-embed iframe,
.wp-block-embed .wp-block-embed__wrapper {
  border-radius: var(--peak-radius);
  overflow: hidden;
  max-width: 100%;
}
.wp-block-embed figcaption {
  text-align: center;
}

.wp-block-social-links {
  gap: 0.5rem;
}
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link {
  background: var(--peak-ink);
  color: var(--peak-canvas);
}

.wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
  border: 0 !important;
  padding: 0 !important;
}
.wp-block-search__label {
  display: block;
  margin-bottom: 0.5rem;
}
.wp-block-search .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
}
.wp-block-search .wp-block-search__button {
  margin: 0;
  flex: 0 0 auto;
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
  border: 1px solid var(--peak-border) !important;
  border-radius: var(--peak-radius);
  background: var(--peak-field);
  padding: 4px !important;
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__input {
  border: 0;
  box-shadow: none;
  min-height: calc(var(--peak-h) - 10px);
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__button {
  min-height: calc(var(--peak-h) - 10px);
  border-radius: var(--peak-radius-sm);
}

/* List-ish blocks (also used as sidebar widgets) */
.wp-block-latest-posts,
.wp-block-latest-comments,
.wp-block-archives-list,
.wp-block-categories-list,
.wp-block-page-list,
.wp-block-rss {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wp-block-latest-posts__post-date,
.wp-block-latest-comments__comment-date,
.wp-block-rss__item-publish-date {
  display: block;
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
  margin-top: 0.15em;
}
.wp-block-latest-posts__post-excerpt,
.wp-block-latest-comments__comment-excerpt,
.wp-block-rss__item-excerpt {
  margin: 0.35em 0 0;
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.wp-block-latest-posts__featured-image img {
  border-radius: var(--peak-radius-sm);
}
.wp-block-latest-posts.is-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 1.25rem;
}
.wp-block-latest-posts.columns-2 { --cols: 2; }
.wp-block-latest-posts.columns-3 { --cols: 3; }
.wp-block-latest-posts.columns-4 { --cols: 4; }
.wp-block-latest-comments__comment-meta {
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.wp-block-latest-comments__comment-author,
.wp-block-latest-comments__comment-link {
  color: var(--peak-text);
  font-weight: 500;
  text-decoration: none;
}
.wp-block-latest-comments .avatar,
.wp-block-latest-comments__comment-avatar {
  border-radius: 50%;
}

.wp-block-calendar table,
.widget_calendar table {
  border: 0;
  font-size: var(--peak-fs-small);
  text-align: center;
}
.wp-block-calendar caption,
.widget_calendar caption {
  caption-side: top;
  padding: 0 0 0.6rem;
  font-weight: 600;
  text-align: start;
  color: var(--peak-text);
}
.wp-block-calendar th,
.widget_calendar th {
  padding: 0.4em 0;
  font-weight: 500;
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 0;
  background: none;
}
.wp-block-calendar td,
.widget_calendar td {
  padding: 0.35em 0;
  border: 0;
  color: var(--peak-muted);
}
.wp-block-calendar td a,
.widget_calendar td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
  font-weight: 500;
  text-decoration: none;
}
.wp-block-calendar td#today,
.widget_calendar td#today {
  font-weight: 600;
  color: var(--peak-ink);
}
.wp-calendar-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: var(--peak-fs-small);
}
.wp-calendar-nav a {
  text-decoration: none;
}

.wp-block-tag-cloud,
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.wp-block-tag-cloud a,
.tagcloud a,
.tag-links a,
.peak-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2em 0.8em;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-pill);
  background: var(--peak-surface);
  font-size: 0.8125rem !important;
  line-height: 1.2;
  color: var(--peak-text);
  text-decoration: none;
  transition: border-color 0.15s var(--peak-ease), background-color 0.15s var(--peak-ease);
}
.wp-block-tag-cloud a:hover,
.tagcloud a:hover,
.tag-links a:hover,
.peak-tag:hover {
  opacity: 1;
  border-color: var(--peak-ink);
  background: var(--peak-inset);
}
.wp-block-tag-cloud .tag-link-count {
  color: var(--peak-faint);
  margin-inline-start: 0.35em;
}

.wp-block-archives-dropdown select,
.wp-block-categories-dropdown select {
  margin-top: 0.25rem;
}

/* Text-alignment + colour helpers core emits */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }

/* ============================================================
 * 6. Header + navigation (the theme's own header; the Peak header
 *    builder replaces this whole block when it is in use)
 * ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--peak-canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--peak-line);
}
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
/* below 600px core's admin bar is position:absolute, so it scrolls away */
@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--peak-header-h);
  max-width: min(var(--peak-container), var(--peak-container-max));
  margin-inline: auto;
  padding: 0.75rem var(--peak-gutter);
}
.site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-branding a {
  display: inline-flex;
}
.site-branding img {
  max-height: 40px;
  width: auto;
}
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--peak-ink);
}
.site-title:hover {
  opacity: 1;
}
.site-title .site-name {
  line-height: 1;
}
.site-description {
  display: none;
}

/* Primary nav: pill hovers, monochrome current state, floating submenus. */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.site-nav-menu,
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li {
  position: relative;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 36px;
  padding: 0.35em 0.8em;
  border-radius: var(--peak-radius-pill);
  font-size: var(--peak-fs-small);
  font-weight: 500;
  color: var(--peak-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s var(--peak-ease), color 0.15s var(--peak-ease);
}
.site-nav a:hover,
.site-nav li:focus-within > a {
  opacity: 1;
  background: var(--peak-inset);
  color: var(--peak-ink);
}
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-parent > a {
  color: var(--peak-ink);
}
.site-nav .current-menu-item > a {
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
}
/* chevron for items with children (Lucide chevron-down, masked) */
.site-nav .menu-item-has-children > a::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") center / contain no-repeat;
  transition: transform 0.2s var(--peak-ease);
}
.site-nav .menu-item-has-children:hover > a::after,
.site-nav .menu-item-has-children:focus-within > a::after,
.site-nav .menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}
.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 220px;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius);
  box-shadow: var(--peak-shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--peak-ease), transform 0.15s var(--peak-ease), visibility 0s linear 0.15s;
}
.site-nav .sub-menu .sub-menu {
  top: -6px;
  left: calc(100% + 4px);
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu,
.site-nav li.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
/* keep a hover bridge so the menu doesn't close crossing the gap */
.site-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  inset: 100% 0 -8px;
}
.site-nav .sub-menu li {
  width: 100%;
}
.site-nav .sub-menu a {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 0.45em 0.7em;
  border-radius: var(--peak-radius-sm);
  font-weight: 400;
  white-space: normal;
}
.site-nav .sub-menu .menu-item-has-children > a::after {
  margin-inline-start: auto;
  transform: rotate(-90deg);
}
.site-nav .sub-menu .current-menu-item > a {
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
}
/* flush the last top-level items' dropdown to the right edge */
.site-nav > ul > li:nth-last-child(-n + 2) > .sub-menu {
  left: auto;
  right: 0;
}
.site-nav > ul > li:nth-last-child(-n + 2) .sub-menu .sub-menu {
  left: auto;
  right: calc(100% + 4px);
}

/* Header utility cluster (search + menu toggle) */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}
.peak-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--peak-radius-pill);
  background: transparent;
  color: var(--peak-ink);
  cursor: pointer;
  transition: background-color 0.15s var(--peak-ease), border-color 0.15s var(--peak-ease);
}
.peak-iconbtn:hover {
  background: var(--peak-inset);
}
.peak-iconbtn svg {
  width: 20px;
  height: 20px;
}
.site-header-actions {
  gap: 0.5rem;
}
.header-search {
  width: 190px;
  transition: width 0.25s var(--peak-ease);
}
.header-search:focus-within {
  width: 250px;
}
@media (max-width: 1280px) {
  .header-search {
    width: 150px;
  }
  .header-search:focus-within {
    width: 220px;
  }
}
.site-nav-menu > li > a {
  padding-inline: 0.65em;
}
.header-search .search-form .search-field {
  min-height: 36px;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
  font-size: var(--peak-fs-small);
  background: var(--peak-inset);
  border-color: transparent;
  box-shadow: none;
}
.header-search .search-form .search-field:hover {
  border-color: var(--peak-border-strong);
}
.header-search .search-form .search-field:focus {
  background: var(--peak-field);
  border-color: var(--peak-ink);
  box-shadow: 0 0 0 1px var(--peak-ink);
}
.header-search .search-form .search-submit {
  width: 28px;
  height: 28px;
  right: 4px;
  opacity: 0;
  transition: opacity 0.15s var(--peak-ease);
}
.header-search .search-form:focus-within .search-submit,
.header-search .search-form .search-field:not(:placeholder-shown) ~ .search-submit {
  opacity: 1;
}
.header-cta {
  flex: 0 0 auto;
}
.site-nav-search {
  display: none;
}
.menu-toggle {
  display: none;
}
.menu-toggle .ico-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .ico-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .ico-close {
  display: block;
}
/* submenu toggle button (inserted by cercle.js on small screens) */
.sub-menu-toggle {
  display: none;
}

/* ---- Mobile navigation */
@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--peak-header-h));
    overflow-y: auto;
    padding: 0.75rem var(--peak-gutter) 1.25rem;
    background: var(--peak-surface);
    border-bottom: 1px solid var(--peak-border);
    box-shadow: var(--peak-shadow-pop);
    display: none;
  }
  .site-nav.is-open {
    display: block;
  }
  .header-search {
    display: none;
  }
  .site-nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0.75rem;
  }
  .site-nav-search .search-form {
    flex: 1 1 auto;
  }
  .site-nav-search .header-cta-mobile {
    display: none;
  }
  @media (max-width: 420px) {
    .site-nav-search .header-cta-mobile {
      display: inline-flex;
    }
  }
  .header-cta {
    min-height: 34px;
  }
  .site-nav-menu,
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .site-nav a {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0.5em 0.9em;
    font-size: 1rem;
    white-space: normal;
    border-radius: var(--peak-radius-sm);
  }
  .site-nav .menu-item-has-children > a::after,
  .site-nav .menu-item-has-children > a::before {
    display: none;
  }
  .sub-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--peak-radius-sm);
    background: transparent;
    color: var(--peak-muted);
  }
  .sub-menu-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s var(--peak-ease);
  }
  .sub-menu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
  .site-nav .sub-menu,
  .site-nav .sub-menu .sub-menu {
    position: static;
    flex: 1 1 100%;
    min-width: 0;
    padding: 0 0 0.25rem 1rem;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .site-nav li.is-open > .sub-menu {
    display: flex;
  }
  .site-nav .sub-menu a {
    border-inline-start: 1px solid var(--peak-line);
    border-radius: 0 var(--peak-radius-sm) var(--peak-radius-sm) 0;
  }
  .site-nav .sub-menu .menu-item-has-children > a::after {
    display: none;
  }
  body.nav-open {
    overflow: hidden;
  }
}

/* ============================================================
 * 7. Page shell, archive headers, post cards
 * ========================================================= */
/* <main> is a full-bleed band and takes no width of its own. The panel's
   Container Width belongs to the column INSIDE it — .content-area — which is
   why a document built in Peak Builder (or Elementor) replaces that column and
   runs edge to edge, with its own Sections deciding where their content sits. */
.site-main {
  width: 100%;
}

/* The content column: this is what Container Width sizes. */
.content-area {
  width: 100%;
  max-width: min(var(--peak-container), var(--peak-container-max));
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--peak-gutter);
}

/* Two-column layout when a view has an active content sidebar. The pair has to
   be centred as a pair, so here the width lives on <main> as padding — the band
   still spans the viewport, the columns inside it sit on the container grid. */
.has-sidebar .site-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--peak-sidebar-width);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  padding-inline: max(
    var(--peak-gutter),
    calc((100% - min(var(--peak-container), var(--peak-container-max))) / 2)
  );
}
.has-sidebar .content-area {
  max-width: none;
  margin-inline: 0;
  padding: 0;
}
.has-sidebar.sidebar-left .site-main {
  grid-template-columns: var(--peak-sidebar-width) minmax(0, 1fr);
}
.has-sidebar.sidebar-left #secondary {
  order: -1;
}
@media (max-width: 900px) {
  .has-sidebar .site-main,
  .has-sidebar.sidebar-left .site-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .has-sidebar.sidebar-left #secondary {
    order: 0;
  }
}

/* A page Peak builds — a Peak template, or a post built in Peak Builder
   (body.peak-built, set by the plugin) — is the document's, edge to edge. The
   Container Width and Side Gutter above shape THIS theme's column; on a built
   page they are the defaults of the builder's layout boxes instead. */
.peak-built .site-main,
.peak-built .content-area {
  max-width: none;
  padding: 0;
}
.peak-built.has-sidebar .site-main {
  display: block;
}

/* A Single template sits in <main> as the page, as wide as the band; with a
   sidebar it spans both columns rather than taking the content's cell. */
.has-sidebar .site-main > .peak-template--single {
  grid-column: 1 / -1;
}

/* Archive / blog header */
.page-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--peak-line);
}
.page-header .peak-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}
.page-title {
  font-size: var(--peak-fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.page-title span {
  color: var(--peak-faint);
}
.archive-description {
  max-width: var(--peak-measure);
  margin-top: 1rem;
  color: var(--peak-muted);
}
.archive-description > * + * {
  margin-top: 0.75em;
}

/* Post lists */
.posts-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.content-area,
#secondary,
.entry-summary-card,
.entry-summary-card .entry-details,
.entry-single,
.entry-page {
  min-width: 0;
}
/* Column count comes from the panel as a data attribute, not an inline style:
   ThemeForest forbids hardcoded CSS in the markup, and the value is always 1-4. */
.posts-list[data-columns="1"] { --peak-cols: 1; }
.posts-list[data-columns="2"] { --peak-cols: 2; }
.posts-list[data-columns="3"] { --peak-cols: 3; }
.posts-list[data-columns="4"] { --peak-cols: 4; }
.posts-list.layout-grid {
  grid-template-columns: repeat(var(--peak-cols, 3), minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.posts-list.layout-masonry {
  display: block;
  column-count: var(--peak-cols, 3);
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
}
.posts-list.layout-masonry > .entry {
  break-inside: avoid;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px) {
  .posts-list.layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-list.layout-masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .posts-list.layout-grid { grid-template-columns: minmax(0, 1fr); }
  .posts-list.layout-masonry { column-count: 1; }
}

/* The card: elevated surface, hairline border, 14px radius. */
.entry-summary-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-card);
  box-shadow: var(--peak-shadow-card);
  overflow: hidden;
  transition: border-color 0.2s var(--peak-ease), box-shadow 0.2s var(--peak-ease), transform 0.2s var(--peak-ease);
}
.entry-summary-card:hover {
  border-color: var(--peak-border-strong);
  /* A shadow is always cast in the page's darkest colour, never in the ink —
     which is nearly white once the site is dark. */
  box-shadow: 0 10px 30px rgba(0, 0, 0, var(--peak-shadow-a, 0.07)), var(--peak-shadow-card);
}
.entry-summary-card .entry-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--peak-inset);
  aspect-ratio: 16 / 10;
}
.entry-summary-card .entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--peak-ease);
}
.entry-summary-card:hover .entry-thumb img {
  transform: scale(1.035);
}
.entry-summary-card .entry-details {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.entry-summary-card .entry-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}
.entry-summary-card .entry-title {
  font-size: var(--peak-fs-h5);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}
.entry-summary-card .entry-title a {
  text-decoration: none;
}
.entry-summary-card .entry-title a:hover {
  opacity: 1;
  color: var(--peak-muted);
}
/* stretched link: the whole card is clickable, inner links still work */
.entry-summary-card .entry-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.entry-summary-card .entry-meta a,
.entry-summary-card .entry-more,
.entry-summary-card .entry-thumb {
  position: relative;
  z-index: 2;
}
.entry-summary-card .entry-summary {
  color: var(--peak-muted);
  font-size: var(--peak-fs-small);
  line-height: 1.6;
}
.entry-summary-card .entry-summary p {
  margin: 0;
}
.entry-summary-card .entry-more {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Meta line: small, faint, dot-separated */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-size: var(--peak-fs-caption);
  line-height: 1.4;
  color: var(--peak-faint);
}
.entry-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.entry-meta > * + *::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.entry-meta a {
  text-decoration: none;
  color: var(--peak-muted);
}
.entry-meta a:hover {
  opacity: 1;
  color: var(--peak-ink);
}
.entry-meta .cat-links {
  display: inline;
}
.entry-meta .cat-links::before {
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 0.6rem;
}

/* Badges: sticky = brand orange (the one meaning), format = monochrome */
.peak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  height: 22px;
  padding: 0 0.6em;
  border-radius: var(--peak-radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--peak-inset);
  color: var(--peak-muted);
  white-space: nowrap;
}
.peak-badge svg {
  width: 12px;
  height: 12px;
}
.peak-badge.is-brand {
  background: var(--peak-brand-soft);
  color: #b85c0c;
}
.entry-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Horizontal card in the list layout when the post has an image */
.posts-list.layout-list .entry-summary-card.has-post-thumbnail {
  flex-direction: row;
}
.posts-list.layout-list .entry-summary-card.has-post-thumbnail .entry-thumb {
  flex: 0 0 42%;
  max-width: 42%;
  aspect-ratio: auto;
  min-height: 240px;
}
.posts-list.layout-list .entry-summary-card.has-post-thumbnail .entry-details {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.posts-list.layout-list .entry-summary-card .entry-title {
  font-size: var(--peak-fs-h4);
}
.posts-list.layout-list .entry-summary-card .entry-summary {
  font-size: var(--peak-fs-base);
}
@media (max-width: 700px) {
  .posts-list.layout-list .entry-summary-card.has-post-thumbnail {
    flex-direction: column;
  }
  .posts-list.layout-list .entry-summary-card.has-post-thumbnail .entry-thumb {
    flex: 0 0 auto;
    max-width: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* Sticky post: inverted card — the brand accent lives in the badge. */
/* The featured card is an INVERTED surface: it paints itself with the ink token
   and its text with the canvas one. Everything inside it must therefore express
   secondary colours as an ALPHA OF currentColor rather than as a literal — a
   baked light value is invisible once the site itself goes dark and "inverted"
   comes to mean light. */
.posts-list .entry-summary-card.sticky {
  background: var(--peak-ink);
  border-color: var(--peak-ink);
  color: var(--peak-canvas);
}
.posts-list .entry-summary-card.sticky .entry-title,
.posts-list .entry-summary-card.sticky .entry-title a {
  color: var(--peak-canvas);
}
.posts-list .entry-summary-card.sticky .entry-summary,
.posts-list .entry-summary-card.sticky .entry-meta,
.posts-list .entry-summary-card.sticky .entry-meta a {
  color: color-mix(in srgb, currentColor 70%, transparent);
}
.posts-list .entry-summary-card.sticky .entry-meta a:hover,
.posts-list .entry-summary-card.sticky .entry-title a:hover {
  color: var(--peak-canvas);
}
.posts-list .entry-summary-card.sticky .peak-badge:not(.is-brand) {
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: color-mix(in srgb, currentColor 85%, transparent);
}
.posts-list .entry-summary-card.sticky .entry-more {
  color: var(--peak-canvas);
}
.posts-list .entry-summary-card.sticky .entry-thumb {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

/* Post formats: light touches on the card */
.entry-summary-card.format-quote .entry-summary,
.entry-summary-card.format-status .entry-summary {
  font-size: var(--peak-fs-medium);
  color: var(--peak-text);
  letter-spacing: -0.01em;
}
.entry-summary-card.format-aside .entry-title,
.entry-summary-card.format-status .entry-title {
  font-size: var(--peak-fs-h6);
}

/* ============================================================
 * 8. Single post / page
 * ========================================================= */
.entry-single,
.entry-page,
.comments-area,
.post-navigation,
.entry-404,
.entry-none {
  margin-inline: auto;
}
/* Full Width page template: the content area keeps the gutter but drops the
   width cap, so wide and full aligned blocks can use the whole container. */
.content-area.is-full-width {
  max-width: none;
}
.content-area.is-full-width > .entry-page {
  max-width: none;
}

.entry-single.width-narrow { max-width: var(--peak-container-narrow); }
.entry-single.width-contained { max-width: var(--peak-container); }
.entry-single.width-full { max-width: none; }

/* Readable measure: text blocks sit at --peak-measure and centre inside the
   article, while wide / full blocks and the featured image break out. */
.entry-single .peak-breadcrumb,
.entry-single .entry-header,
.entry-single .entry-content > :not(.alignwide):not(.alignfull),
.entry-single .entry-footer,
.entry-single .peak-share,
.entry-single .peak-author-box,
.entry-page .entry-header,
.entry-page .entry-content > :not(.alignwide):not(.alignfull),
.no-sidebar .comments-area,
.no-sidebar .post-navigation,
.entry-404,
.entry-none {
  max-width: var(--peak-measure);
  margin-inline: auto;
}
.entry-single.width-full .entry-content > :not(.alignwide):not(.alignfull),
.entry-page.is-wide .entry-content > :not(.alignwide):not(.alignfull) {
  max-width: none;
}
/* prose blocks keep their vertical rhythm even with margin-inline auto */
.entry-single .entry-content > * + *,
.entry-page .entry-content > * + * {
  margin-top: var(--peak-flow);
}
.entry-single .entry-content > .alignwide,
.entry-page .entry-content > .alignwide {
  max-width: min(100%, 1140px);
}

.entry-single .entry-header,
.entry-page .entry-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.entry-single .entry-title,
.entry-page .entry-title {
  font-size: var(--peak-fs-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  margin: 0;
}
.entry-page .entry-title {
  font-size: var(--peak-fs-h2);
}
.entry-single .entry-header .entry-meta {
  font-size: var(--peak-fs-small);
}
.entry-single .entry-header .entry-meta .byline a,
.entry-single .entry-header .entry-meta .byline {
  color: var(--peak-text);
  font-weight: 500;
}

/* Featured image — breaks to the article's full width */
.entry-single .entry-thumb {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--peak-radius-lg);
  background: var(--peak-inset);
}
.entry-single .entry-thumb img {
  width: 100%;
  display: block;
}
.entry-single .entry-thumb figcaption {
  text-align: center;
  padding: 0 1rem;
}

.entry-single .entry-content,
.entry-page .entry-content {
  font-size: var(--peak-fs-medium);
  line-height: 1.7;
}
.entry-single .entry-content :is(h2, h3),
.entry-page .entry-content :is(h2, h3) {
  margin-top: 1.5em;
}

/* Footer of the post: tags + share */
.entry-single .entry-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--peak-line);
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.entry-footer .tag-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.entry-footer .tag-links::before {
  content: attr(data-label);
}
.entry-footer .cat-links a {
  text-decoration: none;
}

/* Breadcrumb — small, faint, Lucide chevron separators */
.peak-breadcrumb {
  font-size: var(--peak-fs-caption);
  line-height: 1.4;
  color: var(--peak-faint);
  margin-bottom: 1.25rem;
}
.peak-breadcrumb .peak-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.peak-breadcrumb a {
  text-decoration: none;
  color: var(--peak-muted);
}
.peak-breadcrumb a:hover {
  opacity: 1;
  color: var(--peak-ink);
}
.peak-breadcrumb .sep {
  width: 12px;
  height: 12px;
  margin: 0 0.15em;
  font-size: 0;
  background: currentColor;
  opacity: 0.5;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m9 18 6-6-6-6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m9 18 6-6-6-6'/></svg>") center / contain no-repeat;
}
.peak-breadcrumb [aria-current="page"] {
  color: var(--peak-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 32ch;
}

/* Share row */
.peak-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.peak-share-label {
  margin-inline-end: 0.5rem;
}
.peak-share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: var(--peak-h-sm);
  padding: 0.35em 0.95em;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-pill);
  background: var(--peak-surface);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}
.peak-share-link:hover {
  opacity: 1;
  border-color: var(--peak-ink);
}

/* Author box */
.peak-author-box {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-lg);
  background: var(--peak-surface);
}
.peak-author-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
}
.peak-author-name {
  margin: 0 0 0.35rem;
  font-size: var(--peak-fs-h6);
  font-weight: 600;
}
.peak-author-bio {
  margin: 0;
  color: var(--peak-muted);
  font-size: var(--peak-fs-small);
}

/* Inside a sidebar layout the content column fills its track. */
.has-sidebar .entry-single,
.has-sidebar .entry-page,
.has-sidebar .comments-area,
.has-sidebar .post-navigation {
  max-width: none;
  margin-inline: 0;
}
.has-sidebar .entry-single .entry-content > :not(.alignwide):not(.alignfull),
.has-sidebar .entry-page .entry-content > :not(.alignwide):not(.alignfull),
.has-sidebar .entry-single .peak-breadcrumb,
.has-sidebar .entry-single .entry-header,
.has-sidebar .entry-single .entry-footer,
.has-sidebar .entry-single .peak-share,
.has-sidebar .entry-single .peak-author-box,
.has-sidebar .entry-page .entry-header {
  max-width: none;
  margin-inline: 0;
}
.has-sidebar .entry-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

/* ============================================================
 * 9. Pagination + post navigation
 * ========================================================= */
.pagination,
.comments-pagination,
.posts-navigation {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.pagination .nav-links,
.comments-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.9em;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-pill);
  background: var(--peak-surface);
  font-size: var(--peak-fs-small);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: var(--peak-text);
  transition: border-color 0.15s var(--peak-ease), background-color 0.15s var(--peak-ease);
}
a.page-numbers:hover {
  opacity: 1;
  border-color: var(--peak-ink);
}
.page-numbers.current {
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
  border-color: var(--peak-accent);
}
.page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--peak-faint);
  min-width: 1.5em;
  padding: 0;
}
.page-numbers.prev,
.page-numbers.next {
  gap: 0.3em;
}
.screen-reader-text + .page-numbers,
.pagination .nav-links > .screen-reader-text {
  order: -1;
}

/* Prev / next (posts-navigation + post-navigation): two cards */
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.post-navigation {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.posts-navigation .nav-previous,
.posts-navigation .nav-next,
.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}
.posts-navigation .nav-next,
.post-navigation .nav-next {
  grid-column: 2;
  text-align: end;
}
.posts-navigation a,
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius);
  background: var(--peak-surface);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.15s var(--peak-ease), transform 0.15s var(--peak-ease);
}
.posts-navigation a:hover,
.post-navigation a:hover {
  opacity: 1;
  border-color: var(--peak-ink);
  transform: translateY(-1px);
}
.post-navigation .nav-subtitle,
.posts-navigation .nav-subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peak-faint);
}
.post-navigation .nav-title {
  font-size: var(--peak-fs-small);
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .posts-navigation .nav-links,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
  .posts-navigation .nav-next,
  .post-navigation .nav-next {
    grid-column: auto;
    text-align: start;
  }
}

/* ============================================================
 * 10. Widgets, sidebar, footer
 * ========================================================= */
.widget-area .widget {
  margin-bottom: 2.5rem;
}
.widget-area .widget:last-child {
  margin-bottom: 0;
}
.widget-title,
.widget .wp-block-heading {
  margin: 0 0 0.9rem;
}
.widget .wp-block-group {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.widget .wp-block-group__inner-container > * + *,
.widget .wp-block-group > * + * {
  margin-top: 0;
}

.widget ul,
.widget ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--peak-line);
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.widget li:last-child {
  border-bottom: 0;
}
.widget li a {
  color: var(--peak-text);
  text-decoration: none;
}
.widget li a:hover {
  opacity: 1;
  color: var(--peak-muted);
}
.widget li .post-date,
.widget li .rss-date {
  display: block;
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
}
.widget .children,
.widget .sub-menu {
  margin: 0.4rem 0 -0.5rem 0.9rem;
  padding-inline-start: 0.6rem;
  border-inline-start: 1px solid var(--peak-line);
}
.widget .children li:last-child,
.widget .sub-menu li:last-child {
  border-bottom: 0;
}
.widget select {
  margin-top: 0.25rem;
}
.widget_rss li {
  color: var(--peak-text);
}
.widget_rss .rsswidget {
  font-weight: 500;
}
.widget_rss .rssSummary {
  margin-top: 0.3rem;
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.widget_rss .widget-title img {
  display: inline;
  vertical-align: middle;
  margin-inline-end: 0.35em;
}
.widget_recent_comments .recentcomments,
.widget_recent_comments .comment-author-link {
  color: var(--peak-text);
}
.widget_media_image img,
.widget_media_gallery img {
  border-radius: var(--peak-radius);
}
.widget .textwidget > * + * {
  margin-top: 0.75em;
}
.widget_search form,
.widget .search-form {
  margin: 0;
}

/* Sidebar: a quiet stack, separated from the content by a hairline */
.sidebar {
  position: sticky;
  top: calc(var(--peak-header-h) + 2rem);
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid var(--peak-line);
  }
}

/* Footer (the theme's own; the Peak footer builder replaces it) */
.footer-widgets {
  max-width: var(--peak-container);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: clamp(2.5rem, 5vw, 4rem) var(--peak-gutter) 0;
  border-top: 1px solid var(--peak-line);
  display: grid;
  grid-template-columns: repeat(var(--peak-footer-cols, 4), minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
/* Same reason as .posts-list above: the active column count arrives as an
   attribute, and these four rules turn it into the custom property. */
.footer-widgets[data-columns="1"] { --peak-footer-cols: 1; }
.footer-widgets[data-columns="2"] { --peak-footer-cols: 2; }
.footer-widgets[data-columns="3"] { --peak-footer-cols: 3; }
.footer-widgets[data-columns="4"] { --peak-footer-cols: 4; }
.footer-widgets .widget {
  margin-bottom: 1.5rem;
}
.footer-widgets .widget li {
  border: 0;
  padding: 0.25rem 0;
}
@media (max-width: 900px) {
  .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-widgets { grid-template-columns: 1fr; }
}

.site-footer {
  max-width: var(--peak-container);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0 var(--peak-gutter) 2rem;
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.footer-widgets + .site-footer {
  margin-top: 1.5rem;
}
.site-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--peak-line);
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 22rem;
}
.site-footer-brand .site-title {
  font-size: 1.125rem;
}
.site-footer-brand .custom-logo {
  max-height: 36px;
  width: auto;
}
.site-footer-tagline {
  margin: 0;
  color: var(--peak-muted);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35em 0.8em;
  border-radius: var(--peak-radius-pill);
  text-decoration: none;
  font-weight: 500;
  color: var(--peak-muted);
}
.footer-nav a:hover {
  opacity: 1;
  background: var(--peak-inset);
  color: var(--peak-ink);
}
.footer-nav .current-menu-item > a {
  color: var(--peak-ink);
}
.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--peak-line);
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
}
.site-credit,
.site-powered {
  margin: 0;
}
.site-credit a,
.site-powered a {
  text-decoration: none;
  color: var(--peak-muted);
}
.site-credit a:hover,
.site-powered a:hover {
  opacity: 1;
  color: var(--peak-ink);
}
@media (max-width: 700px) {
  .site-footer-inner {
    flex-direction: column;
  }
}

/* Grouped footer menu: top-level items become column headings and their
   children the links under them. A flat menu keeps the pill row above. */
.footer-nav.is-grouped {
  flex: 1 1 auto;
}
.footer-nav.is-grouped > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 2.5rem;
  justify-items: start;
}
.footer-nav.is-grouped > ul > li {
  display: block;
  min-width: 0;
}
.footer-nav.is-grouped > ul > li > a {
  min-height: 0;
  padding: 0 0 0.6rem;
  border-radius: 0;
  font-size: var(--peak-fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peak-faint);
}
.footer-nav.is-grouped > ul > li > a:hover {
  background: transparent;
  color: var(--peak-ink);
}
.footer-nav.is-grouped .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav.is-grouped .sub-menu a {
  min-height: 30px;
  padding: 0.2em 0;
  border-radius: 0;
  font-weight: 400;
}
.footer-nav.is-grouped .sub-menu a:hover {
  background: transparent;
  color: var(--peak-ink);
}
@media (max-width: 560px) {
  .footer-nav.is-grouped > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Legal links in the bottom bar */
.footer-legal a {
  text-decoration: none;
  color: var(--peak-muted);
}
.footer-legal a:hover {
  color: var(--peak-ink);
}

/* Back to top — floating, bottom right, revealed once the page is scrolled */
.peak-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-pill);
  background: var(--peak-surface);
  color: var(--peak-ink);
  box-shadow: var(--peak-shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--peak-ease), transform 0.2s var(--peak-ease),
    visibility 0s linear 0.2s, background-color 0.15s var(--peak-ease);
}
.peak-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.peak-to-top:hover {
  background: var(--peak-inset);
  border-color: var(--peak-border-strong);
}
.peak-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
 * 11. Comments
 * ========================================================= */
.comments-area {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--peak-line);
}
.comments-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.comments-title .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.5em;
  border-radius: var(--peak-radius-pill);
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
  font-size: 0.6875rem;
  letter-spacing: 0;
}
.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list > li + li {
  margin-top: 0;
}
.comment-list .children {
  margin-inline-start: clamp(1rem, 4vw, 3.25rem);
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--peak-line);
}
@media (max-width: 600px) {
  .comment-list .children {
    margin-inline-start: 0.75rem;
    padding-inline-start: 0.75rem;
  }
  .comment-list .children .children .children {
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}
.comment-body {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-areas: "avatar meta" "avatar content" "avatar actions";
  column-gap: 0.9rem;
  row-gap: 0.35rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--peak-line);
}
.comment-list > li:first-child > .comment-body {
  border-top: 0;
  padding-top: 0;
}
.comment-avatar,
.comment-author .avatar {
  grid-area: avatar;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  background: var(--peak-inset);
}
.comment-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  min-width: 0;
}
.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--peak-fs-small);
}
.comment-author .fn {
  font-style: normal;
  overflow-wrap: anywhere;
}
.comment-author .fn a {
  text-decoration: none;
}
.comment-author .says {
  display: none;
}
.comment-metadata {
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.comment-metadata a {
  text-decoration: none;
  color: inherit;
}
.comment-metadata .edit-link a {
  color: var(--peak-muted);
}
.comment-metadata::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.bypostauthor > .comment-body .comment-author::after {
  content: attr(data-author-label);
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 0.5em;
  border-radius: var(--peak-radius-pill);
  background: var(--peak-accent);
  color: var(--peak-accent-fg);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.comment-awaiting-moderation {
  grid-column: 2;
  font-size: var(--peak-fs-caption);
  color: var(--peak-warn);
}
.comment-content {
  grid-area: content;
  font-size: var(--peak-fs-small);
  line-height: 1.65;
  min-width: 0;
}
.comment-content > * + * {
  margin-top: 0.85em;
}
.comment-content table {
  font-size: var(--peak-fs-caption);
}
.comment-actions,
.comment-body > .reply {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.comment-reply-link,
.comment-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 28px;
  padding: 0.25em 0.75em;
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-pill);
  background: var(--peak-surface);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--peak-text);
}
.comment-reply-link:hover,
.comment-edit-link:hover {
  opacity: 1;
  border-color: var(--peak-ink);
}
.comment-reply-link svg,
.comment-edit-link svg {
  width: 12px;
  height: 12px;
}

/* Pingbacks / trackbacks: one quiet line */
.comment-list .pingback .comment-body,
.comment-list .trackback .comment-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 0;
  font-size: var(--peak-fs-small);
  color: var(--peak-muted);
}
.comment-list .pingback .comment-body a,
.comment-list .trackback .comment-body a {
  color: var(--peak-text);
  text-decoration: none;
  font-weight: 500;
}
.comment-list .pingback .edit-link,
.comment-list .trackback .edit-link {
  font-size: var(--peak-fs-caption);
}

.no-comments {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--peak-border-strong);
  border-radius: var(--peak-radius);
  color: var(--peak-muted);
  font-size: var(--peak-fs-small);
}

/* Reply form */
.comment-respond {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-lg);
}
.comment-list .comment-respond {
  margin: 1rem 0 1.5rem;
}
.comment-reply-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.comment-reply-title small {
  font-size: inherit;
  letter-spacing: inherit;
}
.comment-reply-title small a {
  text-decoration: none;
  color: var(--peak-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.comment-form > p {
  margin: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.comment-form .comment-form-author,
.comment-form .comment-form-email {
  grid-column: auto;
}
.comment-form .comment-notes,
.comment-form .logged-in-as {
  display: block;
  font-size: var(--peak-fs-caption);
  color: var(--peak-faint);
}
.comment-form .logged-in-as a {
  color: var(--peak-muted);
}
.comment-form .comment-form-cookies-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}
.comment-form .comment-form-cookies-consent input {
  margin-top: 0.15em;
}
.comment-form .comment-form-cookies-consent label {
  font-weight: 400;
  font-size: var(--peak-fs-caption);
  color: var(--peak-muted);
  line-height: 1.5;
}
.comment-form .form-submit {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}
.comment-form textarea {
  min-height: 9em;
}
@media (max-width: 600px) {
  .comment-form {
    grid-template-columns: 1fr;
  }
  .comment-form .comment-form-author,
  .comment-form .comment-form-email {
    grid-column: 1 / -1;
  }
}

/* ============================================================
 * 12. Search, 404, empty states
 * ========================================================= */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
}
.search-form .search-label {
  position: absolute;
  left: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--peak-faint);
  pointer-events: none;
}
.search-form .search-label svg {
  width: 16px;
  height: 16px;
}
.search-form .search-field {
  padding-inline-start: 2.5em;
  padding-inline-end: 3em;
  border-radius: var(--peak-radius-pill);
}
.search-form .search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
}
.search-form .search-submit svg {
  width: 14px;
  height: 14px;
}

.entry-404,
.entry-none {
  text-align: center;
  padding: clamp(2rem, 8vw, 6rem) 0;
}
.entry-404 .entry-header,
.entry-none .entry-header {
  margin-bottom: 1.25rem;
}
.entry-404 .peak-eyebrow,
.entry-none .peak-eyebrow {
  display: block;
  margin-bottom: 1rem;
}
.entry-404 .entry-title,
.entry-none .entry-title {
  font-size: var(--peak-fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.entry-404 .entry-content,
.entry-none .entry-content {
  color: var(--peak-muted);
  max-width: 34rem;
  margin-inline: auto;
}
.entry-404 .entry-content > * + *,
.entry-none .entry-content > * + * {
  margin-top: 1.5rem;
}
.entry-404 .search-form,
.entry-none .search-form {
  max-width: 26rem;
  margin-inline: auto;
}
.entry-404 .entry-actions,
.entry-none .entry-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ============================================================
 * 13. Utilities + accessibility
 * ========================================================= */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  padding: 12px 20px;
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  background: var(--peak-ink);
  color: var(--peak-canvas);
  border-radius: var(--peak-radius);
  font-size: var(--peak-fs-small);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--peak-shadow-pop);
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--peak-ink);
  color: var(--peak-canvas);
  border-radius: var(--peak-radius);
  text-decoration: none;
  box-shadow: var(--peak-shadow-pop);
}
.says,
.screen-reader-only {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.clearfix::after,
.clear::after {
  content: "";
  display: table;
  clear: both;
}
.clear {
  clear: both;
}

/* ============================================================
 * 14. Template extras (markup introduced with the redesign)
 * ========================================================= */
.page-title .peak-eyebrow,
.page-header .page-title > .peak-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--peak-faint);
}
.page-links-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peak-faint);
  margin-inline-end: 0.35rem;
}
.ping-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peak-faint);
}
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.entry-page .entry-thumb {
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
  border-radius: var(--peak-radius-lg);
  background: var(--peak-inset);
}
.entry-page .entry-thumb img {
  width: 100%;
  display: block;
}
.entry-single .entry-header .entry-badges,
.entry-single .entry-header .peak-badge {
  margin-bottom: -0.25rem;
}
.comment-form .comment-form-comment textarea {
  min-height: 8.5em;
}
.comment-list .comment-respond .comment-reply-title {
  margin-top: 0;
}
/* the header's search link is a plain icon on wide screens, hidden when the
   nav is collapsed to give the hamburger the space */
@media (max-width: 420px) {
  .header-cta {
    display: none;
  }
}
.entry-footer .tag-links::before {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peak-faint);
  align-self: center;
  margin-inline-end: 0.35rem;
}

/* =========================================================
 * 15. Theme block styles
 * Registered in inc/class-cercle-setup.php. The same three rules are
 * mirrored in editor-style.css so the editor shows what the front will.
 * ========================================================= */
.wp-block-group.is-style-cercle-panel {
  background: var(--peak-surface);
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.wp-block-image.is-style-cercle-framed img {
  border: 1px solid var(--peak-border);
  border-radius: var(--peak-radius);
  padding: 6px;
  background: var(--peak-surface);
}

.wp-block-quote.is-style-cercle-featured {
  border-inline-start: 2px solid var(--peak-brand);
  background: var(--peak-brand-soft);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 0 var(--peak-radius) var(--peak-radius) 0;
}
.wp-block-quote.is-style-cercle-featured cite {
  color: var(--peak-muted);
}
