/*
Theme Name: Power Sesugong
Theme URI: https://www.band.us/band/97480819/post
Author: Webmate
Description: 동영박사의 파워세수공 공식 콘텐츠 허브를 위한 클래식 워드프레스 테마입니다. (허버만랩 스타일 리뉴얼)
Version: 1.6.4
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: power-sesugong
*/

/* ==========================================================================
   00-foundation
   ========================================================================== */

/* ==========================================================================
   00 FOUNDATION  -  power-sesugong-theme / Huberman-style redesign
   Owner: area F. Tokens, reset/base, WordPress core compat, typography,
   layout primitives and the shared component contract (SPEC section 3).
   Other parts only USE these classes; they must not redefine them.

   Editor note: the theme stylesheet is also loaded by the block editor.
   - Structural body rules (margin, overflow) are limited to the front end via
     body:not(.wp-admin):not(.editor-styles-wrapper).
   - Element-level rules (a, img, headings, buttons, focus ring, box-sizing)
     are written as :where(body:not(.wp-admin)) <el> so they carry zero extra
     specificity, never leak into the wp-admin UI and never fight the editor
     canvas. Plain `body` and `:root` rules are kept because WordPress maps
     them onto .editor-styles-wrapper.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (exact names from SPEC section 1)
   -------------------------------------------------------------------------- */
:root {
  --ps-black: #000;
  --ps-white: #fff;
  --ps-gray-5: #f2f2f2;
  --ps-gray-10: #e5e5e5;
  --ps-field-border: #8a8a8a;     /* text-field resting border: 3.45:1 on white, 3.08:1 on gray-5 (WCAG 1.4.11) */
  --ps-gray-40: #999;
  --ps-gray-60: #666;
  --ps-gray-bg: #f8f8f8;
  --ps-blue: #00aeef;
  --ps-blue-dark: #007aa7;
  --ps-blue-10: #00aeef1a;
  --ps-purple: #7c4dff;
  --ps-purple-hover: #7045e6;
  --ps-purple-active: #5736b3;
  --ps-orange: #bf3820;
  --ps-orange-glow: #e87928;
  --ps-light-gray: #dfddd6;
  --ps-mid-gray: #302f2c;
  --ps-destructive: #d74843;
  --ps-focus: #2563eb;
  --ps-btn-bg: var(--ps-blue);
  --ps-radius-sm: 8px;
  --ps-radius-md: 16px;
  --ps-radius-pill: 99px;
  --ps-container: 1216px;
  --ps-gutter: 20px;
  --ps-section-y: 5rem;
  --ps-nav-h: 84px;
  --ps-shadow-menu: 0 0 #0000001a, 0 42px 42px #00000017, 0 94px 56px #0000000d, 0 166px 67px #00000003;
  --ps-font: "Pretendard Variable", Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;

  /* Additions used by the foundation itself (safe for other parts to read). */
  --ps-measure: 800px;            /* single reading column (SPEC section 6) */
  --ps-heading-ls: -0.035em;      /* Korean-adapted heading tracking (Huberman: -0.04em) */
  --ps-adminbar-h: 0px;           /* WordPress admin bar height, set on body.admin-bar below */

  /* Deprecated aliases for the pre-redesign tokens. New CSS must not use them;
     they only keep stale references from rendering as "unset". */
  --ps-navy: #000;
  --ps-navy-strong: #000;
  --ps-ink: #000;
  --ps-muted: var(--ps-gray-60);
  --ps-line: var(--ps-gray-10);
  --ps-surface: var(--ps-gray-bg);
  --ps-sky: var(--ps-gray-5);
  --ps-sky-strong: var(--ps-gray-10);
  --ps-radius: var(--ps-radius-md);
  --ps-radius-lg: var(--ps-radius-md);
}

@media screen and (max-width: 991px) {
  :root {
    --ps-nav-h: 56px;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --ps-section-y: 4rem;
  }
}

/* Admin bar: 32px on desktop, 46px at <=782px (it scrolls away at <=600px, which
   the header script already accounts for). Exposed as a variable for area A. */
body.admin-bar {
  --ps-adminbar-h: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    --ps-adminbar-h: 46px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* The scroll container is <html>; locking only <body> leaves the page scrollable. */
html.menu-open,
html.menu-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Typography on body is intentionally plain `body`: WordPress rewrites it to
   .editor-styles-wrapper so the editor canvas gets the same font and colour. */
body {
  color: var(--ps-black);
  background: var(--ps-white);
  font-family: var(--ps-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Front end only: never force layout onto the editor canvas. overflow-x:clip
   (viewport-propagated as hidden) stops full-bleed children from adding a
   horizontal scrollbar without breaking position:sticky. */
body:not(.wp-admin):not(.editor-styles-wrapper) {
  margin: 0;
  overflow-x: clip;
}

:where(body:not(.wp-admin)),
:where(body:not(.wp-admin)) *,
:where(body:not(.wp-admin)) *::before,
:where(body:not(.wp-admin)) *::after {
  box-sizing: border-box;
}

:where(body:not(.wp-admin)) a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

:where(body:not(.wp-admin)) img,
:where(body:not(.wp-admin)) video {
  max-width: 100%;
  height: auto;
}

/* middle (not block) closes the baseline gap under inline images but keeps
   images usable inside running text. */
:where(body:not(.wp-admin)) img {
  vertical-align: middle;
}

:where(body:not(.wp-admin)) iframe {
  max-width: 100%;
}

:where(body:not(.wp-admin)) h1,
:where(body:not(.wp-admin)) h2,
:where(body:not(.wp-admin)) h3,
:where(body:not(.wp-admin)) h4,
:where(body:not(.wp-admin)) h5,
:where(body:not(.wp-admin)) h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--ps-heading-ls);
  text-wrap: balance;
}

:where(body:not(.wp-admin)) h1 { font-size: 2.5rem; }
:where(body:not(.wp-admin)) h2 { font-size: 2rem; }
:where(body:not(.wp-admin)) h3 { font-size: 1.5rem; }
:where(body:not(.wp-admin)) h4 { font-size: 1.25rem; }
:where(body:not(.wp-admin)) h5 { font-size: 1.125rem; }
:where(body:not(.wp-admin)) h6 { font-size: 1rem; }

:where(body:not(.wp-admin)) p,
:where(body:not(.wp-admin)) figure,
:where(body:not(.wp-admin)) blockquote,
:where(body:not(.wp-admin)) pre,
:where(body:not(.wp-admin)) dl,
:where(body:not(.wp-admin)) dd {
  margin: 0;
}

:where(body:not(.wp-admin)) strong,
:where(body:not(.wp-admin)) b {
  font-weight: 700;
}

:where(body:not(.wp-admin)) table {
  border-collapse: collapse;
  border-spacing: 0;
}

:where(body:not(.wp-admin)) hr {
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--ps-gray-10);
}

:where(body:not(.wp-admin)) button,
:where(body:not(.wp-admin)) input,
:where(body:not(.wp-admin)) select,
:where(body:not(.wp-admin)) textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

:where(body:not(.wp-admin)) button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Keep the HTML `hidden` attribute authoritative over component display rules. */
:where(body:not(.wp-admin)) [hidden] {
  display: none !important;
}

/* Safety net for WordPress prose (Gutenberg / classic editor / comments).
   Zero specificity on purpose: the single-post and page parts override freely. */
:where(.entry-content, .comment-content) > :where(p, ul, ol, blockquote, pre, figure, table, dl) {
  margin-top: 0;
  margin-bottom: 1.25em;
}

:where(.entry-content, .comment-content) > :where(p, ul, ol, dl) {
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   3. WordPress core compatibility
   (alignment, captions, galleries, sticky/bypostauthor markers, a11y text)
   -------------------------------------------------------------------------- */
.alignleft {
  float: left;
  max-width: 50%;
  margin: 0.25em 1.5em 1em 0;
}

.alignright {
  float: right;
  max-width: 50%;
  margin: 0.25em 0 1em 1.5em;
}

.aligncenter {
  display: block;
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

figure.aligncenter,
.wp-caption.aligncenter {
  text-align: center;
}

.alignwide {
  clear: both;
  max-width: var(--ps-container);
}

.alignfull {
  clear: both;
  max-width: none;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5em;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin: 0;
}

.wp-caption-text,
.wp-caption .wp-caption-text,
.gallery-caption,
:where(body:not(.wp-admin)) figcaption {
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  line-height: 1.5;
}

.wp-caption-text,
.wp-caption .wp-caption-text,
.gallery-caption {
  margin: 0.5rem 0 0;
}

:where(body:not(.wp-admin)) figcaption {
  margin-top: 0.5rem;
}

/* Classic [gallery] (html5 gallery support emits dl.gallery-item > dt.gallery-icon). */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 1.5em;
}

.gallery-item {
  min-width: 0;
  margin: 0;
}

.gallery-icon {
  margin: 0;
}

.gallery-icon img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.gallery br {
  display: none;
}

.gallery-columns-1 { grid-template-columns: minmax(0, 1fr); }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-3 { grid-template-columns: repeat(3, 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)); }

/* Markers WordPress adds to sticky posts and post-author comments. They carry no
   visual change in this design; they are declared so themes checks and plugins
   can rely on them. */
.sticky {
  position: relative;
}

.bypostauthor {
  position: relative;
}

/* Screen-reader-only text. Becomes visible on focus (skip links). */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
  word-wrap: normal !important;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto !important;
  clip-path: none;
  color: var(--ps-black);
  background: var(--ps-white);
  border-radius: var(--ps-radius-sm);
  box-shadow: 0 0 0 2px var(--ps-focus), 0 12px 32px #00000026;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
}

/* Same hiding without the focus reveal, for non-interactive helper text. */
.ps-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Typography (Huberman scale, Korean-adapted)
   Huberman: Inter, heading weight 600, tracking -0.04em, line-height 1.0.
   Hangul fills the em box, so multi-line headings need line-height ~1.15 and a
   slightly looser tracking; lines break at word boundaries (keep-all) and are
   balanced. One-line UI text (buttons, chips) keeps Huberman's tight values.
   -------------------------------------------------------------------------- */
.ps-h1,
.ps-h3,
.ps-title,
.ps-h4,
.ps-h5,
.ps-h6,
.ps-h7,
.ps-display {
  margin-top: 0;
  margin-bottom: 0;
  color: inherit;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: var(--ps-heading-ls);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.ps-display {
  font-size: 5rem;
  line-height: 1.1;
}

.ps-h1 {
  margin-bottom: 0.25em;
  font-size: 4rem;
  line-height: 1.15;
}

.ps-h3,
.ps-title {
  margin-bottom: 0.25em;
  font-size: 3rem;
  line-height: 1.15;
}

.ps-h4 {
  font-size: 2.5rem;
  line-height: 1.15;
}

.ps-h5 {
  font-size: 2rem;
  line-height: 1.2;
}

.ps-h6 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.ps-h7 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.ps-lead {
  margin: 0 0 2em;
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.ps-p-small {
  font-size: 0.875rem;
  line-height: 1.55;
}

.ps-p-xs {
  font-size: 0.75rem;
  line-height: 1.5;
}

.ps-p-md {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
}

.ps-text-center {
  text-align: center;
}

.ps-text-muted {
  color: var(--ps-gray-60);
}

@media screen and (max-width: 991px) {
  .ps-display {
    font-size: 4rem;
  }
}

@media screen and (max-width: 767px) {
  .ps-display {
    font-size: 3.5rem;
  }

  .ps-h1 {
    font-size: 3.6rem;
  }

  .ps-h3,
  .ps-title {
    font-size: 2rem;
  }

  .ps-h4 {
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 479px) {
  .ps-display {
    font-size: 2.75rem;
  }

  .ps-h1 {
    font-size: 2.5rem;
  }

  .ps-h5 {
    font-size: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   5. Layout: container, sections, section head, eyebrow
   -------------------------------------------------------------------------- */
.ps-container {
  width: 100%;
  max-width: var(--ps-container);
  padding-right: var(--ps-gutter);
  padding-left: var(--ps-gutter);
  margin-right: auto;
  margin-left: auto;
}

/* Single reading column (SPEC section 6: ~800px of text). */
.ps-container--narrow {
  max-width: calc(var(--ps-measure) + 2 * var(--ps-gutter));
}

.ps-section {
  position: relative;
  padding-top: var(--ps-section-y);
  padding-bottom: var(--ps-section-y);
}

.ps-section--flush-top {
  padding-top: 0;
}

.ps-section--flush-bottom {
  padding-bottom: 0;
}

.ps-section--soft {
  background-color: var(--ps-gray-5);
}

.ps-section--dark {
  color: var(--ps-white);
  background-color: var(--ps-black);
}

.ps-section--blue {
  color: var(--ps-white);
  background-color: var(--ps-blue);
}

.ps-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 2rem;
}

.ps-section__head-copy {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 48rem;
}

.ps-section__head-copy > :last-child {
  margin-bottom: 0;
}

.ps-section__head > .ps-text-link,
.ps-section__head > .ps-button {
  flex: none;
}

.ps-section__head--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ps-section__head--center .ps-section__head-copy {
  flex: none;
  margin-right: auto;
  margin-left: auto;
}

.ps-eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--ps-gray-60);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ps-section--dark .ps-eyebrow,
.ps-section--blue .ps-eyebrow {
  color: #ffffffb3;
}

.ps-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ps-actions--center {
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .ps-section__head {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
  }

  .ps-section__head-copy {
    flex: none;
    max-width: 100%;
  }

  .ps-section__head--center {
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   6. Buttons  (Huberman .btn)
   -------------------------------------------------------------------------- */
.ps-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  max-width: 100%;
  padding: 14px 28px;
  margin: 0;
  color: var(--ps-white);
  background-color: var(--ps-btn-bg);
  border: 1px solid transparent;
  border-radius: var(--ps-radius-pill);
  box-shadow: inset 0 0 #0000;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s, box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ps-button:hover {
  color: var(--ps-white);
  box-shadow: inset 0 0 0 100px #00000026;
}

.ps-button:active {
  box-shadow: inset 0 0 0 100px #00000040;
}

.ps-button:focus-visible {
  color: var(--ps-white);
  outline: 3px solid var(--ps-focus);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 100px #00000026;
}

.ps-button svg {
  flex: none;
  width: 1.125em;
  height: 1.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-button[disabled],
.ps-button[aria-disabled="true"],
.ps-button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

@media screen and (max-width: 991px) {
  .ps-button {
    padding: 14px 24px;
  }
}

/* White button (also keeps the pre-redesign .ps-button--light working). */
.ps-button--light {
  color: #323a45;
  background-color: var(--ps-white);
}

.ps-button--light:hover,
.ps-button--light:focus-visible {
  color: #323a45;
}

/* Orange text on white: for the orange shop banner. Works alone or with --light. */
.ps-button--orange {
  color: var(--ps-orange);
  background-color: var(--ps-white);
}

.ps-button--orange:hover,
.ps-button--orange:focus-visible {
  color: var(--ps-orange);
}

.ps-button--black {
  color: var(--ps-white);
  background-color: var(--ps-black);
}

.ps-button--black:hover {
  background-color: #333;
  box-shadow: inset 0 0 #0000;
}

.ps-button--black:active {
  background-color: #666;
  box-shadow: inset 0 0 #0000;
}

/* Navigation CTA ("공식 쇼핑몰"). */
.ps-button--purple {
  padding: 11px 20px;
  background-color: var(--ps-purple);
  font-size: 0.875rem;
}

.ps-button--purple:hover {
  background-color: var(--ps-purple-hover);
  box-shadow: inset 0 0 #0000;
}

.ps-button--purple:active {
  background-color: var(--ps-purple-active);
  box-shadow: inset 0 0 #0000;
}

.ps-button--outline {
  color: var(--ps-black);
  background-color: transparent;
  border-color: var(--ps-gray-10);
}

.ps-button--outline:hover,
.ps-button--outline:focus-visible {
  color: var(--ps-black);
  border-color: var(--ps-black);
  box-shadow: inset 0 0 #0000;
}

.ps-button--outline:active {
  background-color: var(--ps-gray-5);
  box-shadow: inset 0 0 #0000;
}

/* White outline for dark / blue / orange backgrounds (Huberman .btn.cc-outline). */
.ps-button--outline-light {
  color: var(--ps-white);
  background-color: transparent;
  border-color: var(--ps-white);
}

.ps-button--outline-light:hover,
.ps-button--outline-light:focus-visible {
  color: var(--ps-white);
  background-color: #ffffff33;
  box-shadow: inset 0 0 #0000;
}

.ps-button--outline-light:active {
  background-color: #ffffff4d;
  box-shadow: inset 0 0 #0000;
}

.ps-button--small {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.ps-button--block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. Text link, chips / tags, label
   -------------------------------------------------------------------------- */
.ps-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--ps-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}

.ps-text-link:hover {
  color: var(--ps-blue);
}

.ps-text-link:active {
  color: var(--ps-blue-dark);
}

.ps-text-link svg {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.ps-text-link:hover svg {
  transform: translateX(2px);
}

/* Arrow supplied by CSS when the markup carries no icon. */
.ps-text-link:not(:has(svg))::after {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  content: "";
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}

.ps-text-link:not(:has(svg)):hover::after {
  transform: translateX(2px);
}

/* Opt out of the CSS arrow. */
.ps-text-link.ps-text-link--plain::after {
  display: none;
}

/* Chip (Huberman .chip-topics). .ps-tag and .ps-card__tag share the base. */
.ps-chip,
.ps-tag,
.ps-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  margin: 0;
  color: var(--ps-gray-60);
  background: transparent;
  border: 1px solid var(--ps-gray-10);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s;
}

.ps-chip:hover,
.ps-tag:hover {
  color: var(--ps-black);
  border-color: var(--ps-black);
}

.ps-chip:active,
.ps-tag:active {
  background-color: var(--ps-gray-5);
}

.ps-chip.is-current,
.ps-tag.is-current,
.ps-chip[aria-current],
.ps-tag[aria-current] {
  color: var(--ps-black);
  border-color: var(--ps-black);
  box-shadow: inset 0 0 0 1px var(--ps-black);
}

.ps-tag__count {
  color: var(--ps-gray-40);
  font-size: 0.6875rem;
  font-weight: 600;
}

.ps-chip.is-current .ps-tag__count,
.ps-tag.is-current .ps-tag__count {
  color: var(--ps-gray-60);
}

/* Plain wrapping row of chips. */
.ps-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Filled category label (Huberman .chip-category). */
.ps-label,
.ps-card__label {
  display: inline-block;
  padding: 5px 8px;
  color: var(--ps-mid-gray);
  background-color: var(--ps-light-gray);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   8. Cards (Huberman episode card) and grids
   -------------------------------------------------------------------------- */
.ps-card {
  display: block;
  min-width: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.ps-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56%;
  overflow: hidden;
  background-color: var(--ps-gray-5);
}

.ps-card__media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.ps-card__media img,
.ps-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.ps-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ps-gray-40);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: var(--ps-heading-ls);
}

/* Cards without a featured image fall back to the doctor's photo on the light
   panel. The photo has a white background, so multiply makes it vanish. */
.ps-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ps-gray-5);
}

.ps-card__fallback-label {
  position: relative;
  z-index: 1;
  padding-left: 8%;
  color: #000;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--ps-heading-ls);
}

.ps-card__fallback img {
  position: absolute;
  /* the shared .ps-card__media img rule pins inset:0, so release top/left */
  top: auto;
  left: auto;
  right: 6%;
  bottom: 0;
  width: auto;
  max-width: none;
  height: 92%;
  mix-blend-mode: multiply;
}

.ps-card__body {
  margin-top: 1em;
}

.ps-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 0.5rem;
}

/* Plain text items (date, topic name). Zero specificity so .ps-chip / .ps-label
   placed in the same row keep their own look. */
:where(.ps-card__meta) > :where(span, time, div, p),
.ps-card__date {
  color: var(--ps-gray-60);
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Category pill in the meta row (Huberman .chip-category); .is-featured inverts it. */
.ps-card__category {
  display: inline-block;
  padding: 5px 8px;
  color: var(--ps-mid-gray);
  background-color: var(--ps-light-gray);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ps-card__category.is-featured {
  color: var(--ps-white);
  background-color: var(--ps-black);
}

.ps-card__title {
  margin: 0;
  color: var(--ps-black);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--ps-heading-ls);
  word-break: keep-all;
  text-wrap: balance;
  transition: color 0.2s;
}

.ps-card__title a:hover {
  color: var(--ps-blue);
}

.ps-card__excerpt {
  display: -webkit-box;
  margin: 0.5rem 0 0;
  overflow: hidden;
  color: var(--ps-gray-60);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.ps-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.75rem;
}

/* Only the title reacts on hover (no card background, shadow or lift). */
a.ps-card:hover .ps-card__title,
a.ps-card:focus-visible .ps-card__title {
  color: var(--ps-blue);
}

/* h7-sized title (featured / column cards). */
.ps-card--compact .ps-card__title {
  font-size: 1.25rem;
  line-height: 1.35;
}

.ps-card--compact .ps-card__excerpt {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 24px;
}

.ps-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ps-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ps-grid > * {
  min-width: 0;
}

@media screen and (max-width: 991px) {
  .ps-grid,
  .ps-grid--3,
  .ps-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .ps-grid,
  .ps-grid--2,
  .ps-grid--3,
  .ps-grid--4 {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem 0;
  }
}

/* --------------------------------------------------------------------------
   9. Topic card + grid (Huberman .topic-card.cc-featured)
   -------------------------------------------------------------------------- */
.ps-topic-grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ps-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px 16px;
  height: 100%;
  min-width: 0;
  padding: 24px 12px;
  color: var(--ps-black);
  background-color: var(--ps-gray-5);
  text-align: center;
  transition: all 0.2s;
}

.ps-topic-card:hover {
  color: var(--ps-black);
  background-color: var(--ps-gray-10);
}

.ps-topic-card:active {
  background-color: #ccc;
}

.ps-topic-card__icon {
  display: block;
  flex: none;
  width: 56px;
  height: 56px;
  color: var(--ps-black);
}

.ps-topic-card__icon svg,
.ps-topic-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.ps-topic-card__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-topic-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.ps-topic-card__count {
  display: block;
  margin-top: 0.25rem;
  color: var(--ps-gray-60);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

@media screen and (max-width: 991px) {
  .ps-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .ps-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   10. Search pill (Huberman .fake-search-input-trigger + .fake-search-submit)
   `.ps-search` may be the <form> itself or a wrapper around it; the submit is
   positioned against it. The magnifier is a CSS icon unless the markup carries
   its own inline <svg>.
   -------------------------------------------------------------------------- */
.ps-search {
  position: relative;
  width: 100%;
  margin: 0;
}

.ps-search--narrow {
  max-width: 40rem;
  margin-right: auto;
  margin-left: auto;
}

.ps-search label:not(.screen-reader-text):not(.ps-sr-only) {
  display: block;
  margin: 0;
}

.ps-search input[type="search"],
.ps-search input[type="text"],
.ps-search .ps-search__input {
  display: block;
  width: 100%;
  height: 64px;
  padding: 18px 80px 18px 24px;
  margin: 0;
  color: var(--ps-black);
  background-color: var(--ps-white);
  border: 1px solid var(--ps-field-border);
  border-radius: 100px;
  box-shadow: none;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}

.ps-search input[type="search"]::placeholder,
.ps-search input[type="text"]::placeholder,
.ps-search .ps-search__input::placeholder {
  color: #0000008a;
  opacity: 1;
}

.ps-search input[type="search"]:focus-visible,
.ps-search input[type="text"]:focus-visible,
.ps-search .ps-search__input:focus-visible {
  outline: 2px solid var(--ps-focus);
  outline-offset: 2px;
}

.ps-search input[type="search"]::-webkit-search-cancel-button,
.ps-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.ps-search button[type="submit"],
.ps-search input[type="submit"],
.ps-search .ps-search__submit {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 56px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ps-gray-60);
  background-color: #0000000a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  border: 0;
  border-radius: 100px;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s;
}

.ps-search button[type="submit"]:hover,
.ps-search input[type="submit"]:hover,
.ps-search .ps-search__submit:hover {
  background-color: #0000001a;
}

.ps-search button[type="submit"]:focus-visible,
.ps-search input[type="submit"]:focus-visible,
.ps-search .ps-search__submit:focus-visible {
  outline: 2px solid var(--ps-focus);
  outline-offset: 0;
}

.ps-search button[type="submit"] svg,
.ps-search .ps-search__submit svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Magnifier for <input type=submit> (cannot hold an <svg>). */
.ps-search input[type="submit"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

/* Magnifier for <button> without its own icon. */
.ps-search button[type="submit"]:not(:has(svg)) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

@media screen and (max-width: 991px) {
  .ps-search input[type="search"],
  .ps-search input[type="text"],
  .ps-search .ps-search__input {
    height: 48px;
    padding: 12px 56px 12px 16px;
    font-size: 1rem;
  }

  .ps-search button[type="submit"],
  .ps-search input[type="submit"],
  .ps-search .ps-search__submit {
    width: 40px;
    height: 40px;
    background-size: 20px 20px;
  }

  .ps-search button[type="submit"] svg,
  .ps-search .ps-search__submit svg {
    width: 20px;
    height: 20px;
  }
}

/* --------------------------------------------------------------------------
   11. Empty state, check list
   -------------------------------------------------------------------------- */
.ps-empty {
  padding: 3rem 1.5rem;
  color: var(--ps-gray-60);
  background-color: var(--ps-gray-5);
  border-radius: var(--ps-radius-md);
  text-align: center;
}

.ps-empty h2,
.ps-empty h3 {
  margin: 0 0 0.5rem;
  color: var(--ps-black);
  font-size: 1.5rem;
  line-height: 1.3;
}

.ps-empty p {
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

.ps-empty__title {
  margin: 0 0 0.5rem;
  color: var(--ps-black);
  font-size: 1.5rem;
  line-height: 1.3;
}

.ps-empty__text {
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.6;
}

.ps-empty .ps-button,
.ps-empty .ps-text-link {
  margin-top: 1.5rem;
}

/* "No results" variant carries a search form below the message. */
.ps-empty .ps-search {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

@media screen and (max-width: 767px) {
  .ps-empty {
    padding: 2.5rem 1.25rem;
  }
}

.ps-check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.ps-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.ps-check-list li::before {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  content: "";
  background-color: var(--ps-black);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  border-radius: 50%;
}

.ps-section--dark .ps-check-list li::before,
.ps-section--blue .ps-check-list li::before {
  background-color: var(--ps-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   12. Accessibility: focus ring, reduced motion
   -------------------------------------------------------------------------- */
:where(body:not(.wp-admin)) :focus-visible {
  outline: 2px solid var(--ps-focus);
  outline-offset: 2px;
}

/* Programmatic focus targets (skip-link destination, dialogs) get no ring. */
:where(body:not(.wp-admin)) [tabindex="-1"]:focus {
  outline: 0;
}

/* #2563eb is weak on blue / black fills. Black fills: white ring (21:1).
   Blue (#00aeef) fills: black ring (8.3:1; white would be only 2.53:1). */
.ps-section--dark :focus-visible {
  outline-color: var(--ps-white);
}

.ps-section--blue :focus-visible,
.ps-hero-slide--band :focus-visible {
  outline-color: var(--ps-black);
}

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

  :where(body:not(.wp-admin)) *,
  :where(body:not(.wp-admin)) *::before,
  :where(body:not(.wp-admin)) *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ps-text-link:hover svg {
    transform: none;
  }

  .ps-text-link:not(:has(svg)):hover::after {
    transform: none;
  }
}

/* ==========================================================================
   10-chrome
   ========================================================================== */

/* ==========================================================================
   10-chrome.css  (area A: top notice, header, mobile panel, search dialog,
   footer, floating quick actions)

   Tokens come from 00-foundation.css (--ps-*). Shared components used by the
   markup (.ps-container, .ps-button + --purple/--outline, .ps-chip, .ps-h6,
   .ps-search) are styled there and are not redefined here.
   Breakpoints: 991px (nav switches to the panel) / 767px / 479px.
   ========================================================================== */

/* Scroll lock while the mobile panel or the search dialog is open. The scroll
   container is <html>, so <body> alone is not enough. */
html.menu-open,
html.menu-open body,
html.ps-search-open,
html.ps-search-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.screen-reader-text.ps-skip-link:focus,
.screen-reader-text.ps-skip-link:focus-visible {
  position: fixed !important;
  top: calc(var(--ps-adminbar-h, 0px) + 1rem);
  left: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: var(--ps-black);
  background: var(--ps-white);
  border-radius: 0.25rem;
  box-shadow: 0 0 0 2px var(--ps-focus);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: normal;
}

/* --------------------------------------------------------------------------
   Top notice (dismissible). Colours are variables so the contrast question
   (white on #00aeef) can be settled with a one-line change.
   -------------------------------------------------------------------------- */
.ps-top-banner {
  --ps-banner-bg: var(--ps-blue);
  --ps-banner-fg: var(--ps-white);
  --ps-banner-focus: var(--ps-black);

  position: relative;
  padding: 24px 0;
  overflow: hidden;
  color: var(--ps-banner-fg);
  background: var(--ps-banner-bg);
}

.ps-top-banner[hidden],
.ps-banner-dismissed .ps-top-banner {
  display: none;
}

.ps-top-banner__link {
  display: block;
  /* Room for the close button on both sides keeps the copy optically centred. */
  padding: 0 44px;
  color: inherit;
  text-align: center;
}

.ps-top-banner__link:focus-visible,
.ps-top-banner__close:focus-visible {
  outline: 2px solid var(--ps-banner-focus);
  outline-offset: 2px;
}

.ps-top-banner__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ps-top-banner__arrow {
  display: inline-flex;
  flex: none;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.ps-top-banner__arrow svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-top-banner__link:hover .ps-top-banner__arrow {
  transform: translateX(2px);
}

.ps-top-banner__sub {
  display: block;
  font-size: 0.875rem;
  line-height: 1.43;
}

.ps-top-banner__close {
  position: absolute;
  top: 50%;
  right: max(20px, calc((100% - var(--ps-container)) / 2 + 20px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-top: -16px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ps-top-banner__close[hidden] {
  display: none;
}

.ps-top-banner__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.ps-top-banner__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* --------------------------------------------------------------------------
   Header / primary navigation (desktop)
   Not sticky and white, like the reference. Do not add transform, filter or
   backdrop-filter here: the mobile panel is position: fixed inside it.
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 992;
  background: var(--ps-white);
}

.site-header__inner {
  --ps-nav-current: var(--ps-blue);

  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-height: var(--ps-nav-h, 84px);
}

.site-branding {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-branding .custom-logo-link {
  display: block;
}

.site-branding .custom-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 40px;
}

/* Text wordmark (used when no custom logo is set). */
.ps-wordmark {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.3em;
  color: var(--ps-blue);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.ps-wordmark:active {
  opacity: 0.8;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 0;
}

/* Mobile-panel-only elements are hidden on desktop. */
.ps-nav-search-pill,
.ps-nav-channels {
  display: none;
}

.menu-toggle {
  display: none;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-self: stretch;
  gap: 0 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.primary-menu a {
  display: flex;
  align-items: center;
  padding: 4px;
  color: var(--ps-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.primary-menu a:hover {
  color: var(--ps-blue);
}

.primary-menu a:active {
  color: var(--ps-blue-dark);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu a[aria-current="page"] {
  color: var(--ps-nav-current);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Sub menus (only when the admin builds a nested menu). */
.primary-menu .menu-item-has-children > a::after {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  content: "";
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 2;
  min-width: 13.5rem;
  padding: 8px;
  background: var(--ps-white);
  border-radius: var(--ps-radius-md);
  box-shadow: 0 2px 4px #0000000a, 0 8px 16px #00000014;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.primary-menu .sub-menu a {
  padding: 12px;
  border-radius: var(--ps-radius-sm);
}

.primary-menu .sub-menu a:hover {
  color: var(--ps-black);
  background: var(--ps-gray-5);
}

.ps-nav-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}

.ps-nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: var(--ps-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease;
}

.ps-nav-search:hover {
  color: var(--ps-blue);
}

.ps-nav-search:active {
  color: var(--ps-blue-dark);
}

.ps-nav-search svg,
.ps-nav-search-pill svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-nav-search svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Search dialog (full-viewport <dialog>; the sheet inside it is the visible
   panel, so a click on the dialog element itself is a click outside).
   -------------------------------------------------------------------------- */
.ps-search-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ps-black);
  background: transparent;
  border: 0;
}

/* Browsers without <dialog> support would otherwise print it inline. */
.ps-search-modal:not([open]) {
  display: none;
}

.ps-search-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.ps-search-modal__sheet {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ps-white);
  border-radius: 0 0 var(--ps-radius-md) var(--ps-radius-md);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.ps-search-modal[open] .ps-search-modal__sheet {
  animation: ps-search-sheet-in 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes ps-search-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ps-search-modal__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.ps-search-modal__brand .custom-logo-link {
  display: block;
}

.ps-search-modal__brand .custom-logo {
  width: auto;
  height: auto;
  max-height: 40px;
}

.ps-search-modal__close-form {
  margin: 0;
}

.ps-search-modal__close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px;
  color: var(--ps-black);
  background: transparent;
  border: 0;
  border-radius: var(--ps-radius-sm);
  cursor: pointer;
}

.ps-search-modal__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ps-search-modal__esc {
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.ps-search-modal__body {
  padding: 2.5rem 0 4rem;
}

.ps-search-modal__title {
  margin: 0 0 1.5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}

.ps-search-modal__form {
  max-width: 980px;
  margin: 0 auto;
}

.ps-search-modal__popular {
  max-width: 980px;
  padding-top: 2rem;
  margin: 2.5rem auto 0;
  border-top: 1px solid var(--ps-gray-10);
}

.ps-search-modal__label {
  margin: 0 0 1rem;
}

.ps-search-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  color: #0a0a0a;
  background: var(--ps-white);
  border-top: 1px solid var(--ps-gray-5);
}

.site-footer__section {
  padding: 5rem 0;
}

.site-footer__layout {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.site-footer__top {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.site-footer__sidebar {
  display: flex;
  flex: 0 0 22%;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: space-between;
  min-width: 11rem;
  padding-right: 2.5rem;
  row-gap: 3rem;
  border-right: 1px solid #0a0a0a1a;
}

.site-footer__explore {
  display: flex;
  flex-direction: column;
  row-gap: 1.1rem;
}

.site-footer__primary-link {
  display: inline;
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.site-footer__primary-link:hover {
  opacity: 0.7;
}

.site-footer__logo {
  width: 100%;
  max-width: 10.5rem;
}

.site-footer__logo .custom-logo-link {
  display: block;
}

.site-footer__logo .custom-logo {
  width: 100%;
  height: auto;
}

.site-footer .ps-wordmark {
  flex-direction: column;
  gap: 0.12em;
  font-size: 1.5rem;
  line-height: 1.15;
  white-space: normal;
}

.site-footer__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding-left: 3rem;
  row-gap: 2.5rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  width: 100%;
}

.site-footer__title {
  margin: 0 0 1.25rem;
  color: #0a0a0a;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__links a {
  display: inline;
  color: #0a0a0a8f;
  border-radius: 2px;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #0a0a0a;
}

.site-footer__links a:active {
  color: var(--ps-blue-dark);
}

.site-footer__contact-info li {
  line-height: 1.4;
}

.site-footer__meta-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #0a0a0a8f;
  font-size: 0.75rem;
}

.site-footer__contact-info a,
.site-footer__meta-value {
  color: #0a0a0a;
}

.site-footer__meta-value {
  display: block;
  line-height: 1.5;
}

.site-footer__contact-info a:hover {
  color: var(--ps-blue-dark);
}

/* The inquiry form was removed from the footer; the footer only carries a
   button to the contact page (the form lives there). */
.site-footer__contact-cta {
  margin-top: 1.25rem;
}

.site-footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem 1.5rem;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__legal-link {
  color: #0a0a0a99;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

.site-footer__legal-link:hover {
  color: #0a0a0ab3;
}

.site-footer__callout {
  padding: 16px;
  margin: 0;
  background: var(--ps-gray-5);
  border-radius: var(--ps-radius-sm);
  font-size: 0.875rem;
  line-height: 143%;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 1.5rem;
  border-top: 1px solid #0a0a0a1a;
}

.site-footer__copy {
  margin: 0;
  color: #000c;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Floating quick actions (kakao / contact / band / youtube)
   Outer button is neutral; channel colour lives on the icon disc only.
   -------------------------------------------------------------------------- */
.ps-floating-actions {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Only the buttons catch clicks; the gaps never block the page. */
  pointer-events: none;
}

.ps-floating-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 5px;
  pointer-events: auto;
  background: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ps-floating-action:hover,
.ps-floating-action:focus-visible {
  border-color: var(--ps-black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.ps-floating-action__icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--ps-white);
  border-radius: 50%;
  place-items: center;
}

.ps-floating-action__icon svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}

.ps-floating-action--kakao .ps-floating-action__icon {
  color: #251d1b;
  background: #fee500;
}

.ps-floating-action--kakao svg path {
  fill: currentColor;
}

.ps-floating-action--contact .ps-floating-action__icon {
  background: var(--ps-black);
}

.ps-floating-action--contact svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-floating-action--band .ps-floating-action__icon {
  background: #078742;
}

.ps-floating-action__icon--letter {
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.ps-floating-action--youtube .ps-floating-action__icon {
  background: #d80000;
}

.ps-floating-action--youtube .ps-floating-action__youtube-body {
  fill: var(--ps-white);
}

.ps-floating-action--youtube .ps-floating-action__youtube-play {
  fill: #d80000;
}

/* The label is the link's accessible name: it stays in the DOM and is only
   faded out visually. */
.ps-floating-action__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  padding: 9px 14px;
  color: var(--ps-black);
  background: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.ps-floating-action:hover .ps-floating-action__label,
.ps-floating-action:focus-visible .ps-floating-action__label {
  opacity: 1;
  transform: translate(0, -50%);
}

/* --------------------------------------------------------------------------
   Intermediate desktop widths: keep the bar on one line.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1199px) {
  .site-header__inner,
  .site-nav {
    gap: 1.5rem;
  }

  .primary-menu {
    column-gap: 16px;
  }

  .ps-wordmark {
    font-size: 1.125rem;
  }
}

@media screen and (max-width: 1120px) {
  /* Icon only: the text stays available to assistive technology. */
  .ps-nav-search__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ps-nav-actions {
    gap: 12px;
  }

  .ps-nav-search {
    padding: 8px;
  }
}

/* --------------------------------------------------------------------------
   <= 991px: hamburger + fixed panel. Without JavaScript (no .ps-js on <html>)
   the navigation simply stacks under the logo and stays usable.
   -------------------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-branding .custom-logo,
  .ps-search-modal__brand .custom-logo {
    max-height: 28px;
  }

  .site-nav {
    display: block;
    flex: 1 0 100%;
    padding: 8px 0 24px;
  }

  .site-nav > * {
    width: 100%;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .ps-nav-search-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 48px;
    padding: 12px 16px;
    margin-bottom: 8px;
    color: var(--ps-gray-60);
    border: 1px solid var(--ps-gray-10);
    border-radius: var(--ps-radius-pill);
    font-size: 1rem;
    line-height: 1.2;
  }

  .ps-nav-search-pill:hover {
    border-color: var(--ps-black);
  }

  .ps-nav-search-pill svg {
    width: 24px;
    height: 24px;
    color: var(--ps-black);
  }

  .primary-menu {
    display: block;
  }

  .primary-menu > li {
    display: block;
    border-bottom: 1px solid var(--ps-gray-5);
  }

  .primary-menu a {
    padding: 16px 0;
    font-size: 1rem;
    white-space: normal;
  }

  .primary-menu a:hover {
    color: var(--ps-black);
  }

  .primary-menu a:active {
    color: var(--ps-blue-dark);
  }

  .primary-menu .current-menu-item > a,
  .primary-menu .current_page_item > a,
  .primary-menu .current-menu-ancestor > a,
  .primary-menu a[aria-current="page"] {
    color: var(--ps-nav-current);
    text-decoration: none;
  }

  .primary-menu .menu-item-has-children > a::after {
    display: none;
  }

  .primary-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 16px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .primary-menu .sub-menu a {
    padding: 12px 0;
    border-radius: 0;
    color: var(--ps-gray-60);
  }

  .primary-menu .sub-menu a:hover {
    background: transparent;
  }

  .ps-nav-actions {
    display: block;
    margin-top: 24px;
  }

  .ps-nav-search {
    display: none;
  }

  .site-nav .ps-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
  }

  .ps-nav-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
  }

  .ps-search-modal__bar-inner {
    min-height: 56px;
  }

  .ps-search-modal__title {
    font-size: 2.2rem;
  }

  .ps-search-modal__body {
    padding: 1.5rem 0 3rem;
  }

  .ps-search-modal__esc {
    display: none;
  }

  /* ----- JS enabled: collapse into the toggle + panel -------------------- */
  .ps-js .site-header__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
  }

  .ps-js .menu-toggle {
    display: block;
    flex: none;
    width: 56px;
    height: 56px;
    padding: 0;
    margin-right: -16px;
    color: var(--ps-black);
    background: transparent;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
  }

  .ps-js .menu-toggle__bar,
  .ps-js .menu-toggle::before,
  .ps-js .menu-toggle::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    content: "";
    background: currentColor;
    border-radius: 99px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .ps-js .menu-toggle[aria-expanded="true"] .menu-toggle__bar {
    opacity: 0;
  }

  .ps-js .menu-toggle[aria-expanded="true"]::before {
    transform: translateY(7px) rotate(45deg);
  }

  .ps-js .menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .ps-js .site-nav {
    position: fixed;
    /* theme.js keeps --ps-nav-top at the header's real bottom edge (notice,
       admin bar and header height included); the literal is a fallback. */
    top: var(--ps-nav-top, 56px);
    right: 0;
    bottom: 0;
    left: 0;
    flex: none;
    padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--ps-white);
    box-shadow: var(--ps-shadow-menu);
    opacity: 0;
    /* visibility keeps the closed panel out of the tab order. */
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .ps-js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  /* ----- Footer ---------------------------------------------------------- */
  .site-footer__layout {
    row-gap: 2.5rem;
    max-width: 83%;
    margin-right: auto;
    margin-left: auto;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: stretch;
    row-gap: 2rem;
  }

  .site-footer__sidebar {
    flex-basis: auto;
    align-self: auto;
    justify-content: flex-start;
    min-width: 0;
    padding-right: 0;
    padding-bottom: 2rem;
    row-gap: 1.75rem;
    border-right: 0;
    border-bottom: 1px solid #0a0a0a1a;
  }

  .site-footer__logo {
    max-width: 9.5rem;
    margin-top: 0.25rem;
  }

  .site-footer__main {
    padding-left: 0;
    row-gap: 2rem;
  }

  .site-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .site-footer__links a:hover {
    color: var(--ps-black);
  }

  .site-footer__bottom {
    align-items: flex-start;
    row-gap: 1.25rem;
  }

  .site-footer__legal-link {
    white-space: normal;
  }

  /* Touch targets: 44px for the chrome controls that are smaller on desktop. */
  .ps-top-banner__close {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }

  .ps-search-modal__close {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* Logo: the hit area grows vertically without moving the layout. */
  .site-header .ps-wordmark,
  .site-header .custom-logo-link,
  .ps-search-modal__brand .ps-wordmark,
  .ps-search-modal__brand .custom-logo-link {
    position: relative;
  }

  .site-header .ps-wordmark::after,
  .site-header .custom-logo-link::after,
  .ps-search-modal__brand .ps-wordmark::after,
  .ps-search-modal__brand .custom-logo-link::after {
    content: "";
    position: absolute;
    inset: -14px 0;
  }
}

/* --------------------------------------------------------------------------
   <= 767px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .ps-top-banner {
    padding: 16px 0;
  }

  .ps-top-banner__link {
    padding: 0 40px 0 0;
    text-align: left;
  }

  .ps-top-banner__headline {
    justify-content: flex-start;
    font-size: 1.125rem;
    text-decoration: underline;
  }

  .ps-top-banner__sub {
    font-size: 0.75rem;
  }

  .ps-top-banner__arrow {
    display: none;
  }

  .ps-top-banner__close {
    top: 12px;
    right: 12px;
    margin-top: 0;
  }

  .ps-search-modal__sheet {
    height: 100%;
    border-radius: 0;
  }

  .ps-search-modal__title {
    font-size: 2.1rem;
  }

  .site-footer__section {
    /* Leaves room for the floating action row so it never covers the last line. */
    padding: 4rem 0 calc(3rem + 56px);
  }

  .site-footer__layout {
    row-gap: 2rem;
    max-width: none;
  }

  .site-footer__logo {
    max-width: 9rem;
    margin-top: 0;
  }

  .site-footer__sidebar {
    row-gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .site-footer__explore {
    row-gap: 0.9rem;
  }

  .site-footer__primary-link {
    padding: 0.15rem 0;
  }

  .site-footer__main {
    row-gap: 1.75rem;
  }

  .site-footer__columns {
    gap: 1.75rem 1.25rem;
  }

  .site-footer__links {
    gap: 0;
  }

  .site-footer__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer__legal-row {
    gap: 0 1rem;
  }

  .site-footer__legal-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .site-footer__bottom {
    padding-top: 1.25rem;
  }

  .site-footer__copy {
    font-size: 0.8125rem;
  }

  /* Quick actions become one compact row in the corner instead of a
     column down the screen edge; labels are visually hidden, not removed. */
  .ps-floating-actions {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    flex-direction: row;
    gap: 6px;
  }

  .ps-floating-action {
    width: 44px;
    height: 44px;
    padding: 4px;
  }

  .ps-floating-action__icon {
    width: 30px;
    height: 30px;
  }

  .ps-floating-action__icon svg {
    width: 17px;
    height: 17px;
  }

  .ps-floating-action__icon--letter {
    font-size: 16px;
  }

  .ps-floating-action__label,
  .ps-floating-action:hover .ps-floating-action__label,
  .ps-floating-action:focus-visible .ps-floating-action__label {
    top: auto;
    right: auto;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    box-shadow: none;
    opacity: 0;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   <= 479px
   -------------------------------------------------------------------------- */
@media screen and (max-width: 479px) {
  .ps-wordmark {
    font-size: 1rem;
  }

  .ps-top-banner__headline {
    font-size: 1rem;
  }

  .ps-search-modal__title {
    font-size: 1.8rem;
  }

  .site-footer .ps-wordmark {
    font-size: 1.375rem;
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-top-banner__arrow,
  .ps-top-banner__close,
  .ps-wordmark,
  .primary-menu a,
  .primary-menu .sub-menu,
  .ps-nav-search,
  .ps-js .menu-toggle__bar,
  .ps-js .menu-toggle::before,
  .ps-js .menu-toggle::after,
  .ps-js .site-nav,
  .site-footer__primary-link,
  .site-footer__links a,
  .ps-floating-action,
  .ps-floating-action__label {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .ps-search-modal[open] .ps-search-modal__sheet {
    animation: none;
  }

  .ps-top-banner__link:hover .ps-top-banner__arrow,
  .ps-floating-action:hover,
  .ps-floating-action:focus-visible {
    transform: none;
  }
}

/* ==========================================================================
   20-home
   ========================================================================== */

/* ==========================================================================
   20-home.css  --  Home page (area B)
   Owns: .ps-home-*, .ps-hero-slider*, .ps-hero-slide*
   Depends on 00-foundation tokens and shared components (.ps-container,
   .ps-section, .ps-h*, .ps-lead, .ps-button*, .ps-chip, .ps-card family,
   .ps-grid, .ps-topic-grid/.ps-topic-card, .ps-search, .ps-empty).
   Breakpoints: 991 / 767 / 479 (max-width).
   Integration knob (optional, set on :root):
     --ps-home-hero-pt   top gap above the hero slider (default 1.5rem; raise it
                         to nav height + 1.5rem if the header is overlaid)
   Contrast note: white text on blue #00aeef (BAND slide, .ps-section--blue) is
   only ~2.5:1; the shared --ps-blue token is the single place to change that.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared home helpers
   -------------------------------------------------------------------------- */
.ps-home-head {
  margin-bottom: 1.5rem;
}

.ps-home-head .ps-h5 {
  margin: 0 0 1rem;
}

.ps-home-head .ps-h5:last-child {
  margin-bottom: 0;
}

.ps-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ps-home-actions {
  display: flex;
  justify-content: center;
  margin: 3rem 0 0;
}

/* --------------------------------------------------------------------------
   1. Hero slider (native scroll-snap; JS only adds buttons/dots/keys)
   -------------------------------------------------------------------------- */
.ps-home-hero {
  position: relative;
  padding-top: var(--ps-home-hero-pt, 1.5rem);
}

.ps-hero-slider {
  --ps-hs-gap: 40px;
  --ps-hs-w: min(73.5rem, 95.5%);
  --ps-hs-h: 640px;
  --ps-hs-pad: 56px;

  position: relative;
}

.ps-hero-slider__track {
  display: flex;
  gap: var(--ps-hs-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Spacers let the first/last slide sit centred, so the neighbours peek in. */
.ps-hero-slider__track::before,
.ps-hero-slider__track::after {
  content: "";
  flex: 0 0 calc((100% - var(--ps-hs-w)) / 2 - var(--ps-hs-gap));
}

/* Scrollbar is only hidden once the buttons/dots exist to replace it. */
.ps-hero-slider.is-ready .ps-hero-slider__track {
  scrollbar-width: none;
}

.ps-hero-slider.is-ready .ps-hero-slider__track::-webkit-scrollbar {
  display: none;
}

.ps-hero-slide {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 var(--ps-hs-w);
  height: var(--ps-hs-h);
  padding: var(--ps-hs-pad);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ps-radius-md, 16px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* Shared slide typography -------------------------------------------------- */
.ps-hero-slide__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ps-hero-slide__eyebrow {
  margin: 0 0 0.75rem;
}

.ps-hero-slide .ps-hero-slide__title {
  margin: 0 0 0.5em;
  font-size: clamp(2.25rem, 5vw, 4rem);
  overflow-wrap: break-word;
}

.ps-hero-slide .ps-hero-slide__title--sub {
  font-size: clamp(2rem, 4vw, 3rem);
}

.ps-hero-slide__title strong {
  font-weight: inherit;
}

.ps-hero-slide__lead {
  max-width: 32rem;
  margin: 0 0 2em;
  font-size: 1.125rem;
  line-height: 1.65;
}

.ps-hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Slide 1: brand (gray-5, doctor photo multiplied onto the gray) ----------- */
.ps-hero-slide--brand {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: 40px;
  align-items: center;
  color: #000;
  background: var(--ps-gray-5);
}

/* The photo bleeds off the bottom/right edge of the slide. The PNG has a white
   background and no alpha, so multiply lets the slide's gray show through. */
.ps-hero-slide__photo {
  position: relative;
  align-self: stretch;
  margin: 0 calc(var(--ps-hs-pad) * -1) calc(var(--ps-hs-pad) * -1) 0;
}

.ps-hero-slide__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: 100% 100%;
  mix-blend-mode: multiply;
}

/* Slide 2: shop (orange + glow, white card) -------------------------------- */
.ps-hero-slide--shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: 56px;
  align-items: center;
  color: #fff;
  background-color: var(--ps-orange);
  background-image: radial-gradient(circle farthest-side at 50% 100%, var(--ps-orange-glow), #e8792800);
}

.ps-hero-slide__card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: var(--ps-radius-sm, 8px);
  box-shadow: 0 24px 56px #00000059, 0 60px 120px #00000040;
}

.ps-hero-slide__card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Slide 3: latest video (full-bleed thumbnail + bottom gradient) ------------ */
.ps-hero-slide--video {
  padding: 0;
  color: #fff;
  background: #000;
}

.ps-hero-slide__video-link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  padding: var(--ps-hs-pad);
  color: #fff;
  outline-offset: -4px;
}

.ps-hero-slide__media {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ps-hero-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00000040 0, #0000 35%, #000000e6 100%);
}

.ps-hero-slide__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  background: #ffffff2e;
  border-radius: var(--ps-radius-pill, 99px);
}

.ps-hero-slide--video .ps-hero-slide__title {
  position: relative;
  display: -webkit-box;
  max-width: 44rem;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ps-hero-slide__video-cta {
  position: relative;
  margin-top: 8px;
}

.ps-hero-slide__video-link:hover .ps-hero-slide__video-cta,
.ps-hero-slide__video-link:focus-visible .ps-hero-slide__video-cta {
  box-shadow: inset 0 0 0 100px #00000026;
}

/* Slide 4: BAND (blue + cover-style screenshot) ----------------------------- */
.ps-hero-slide--band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-items: center;
  color: #fff;
  background: var(--ps-blue);
}

.ps-hero-slide__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.ps-hero-slide__cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(var(--ps-hs-h) - var(--ps-hs-pad) * 2);
  border-radius: var(--ps-radius-sm, 8px);
  box-shadow: 0 24px 56px #00000040, 0 60px 120px #00000026;
}

/* White focus ring on the orange/black slides and the orange band (the dark
   section gets its ring from the shared .ps-section--dark rule; the blue
   section and the blue BAND slide use a black ring, see the focus section). */
.ps-hero-slide--shop :focus-visible,
.ps-hero-slide--video :focus-visible,
.ps-home-shop :focus-visible {
  outline-color: #fff;
}

/* Controls stay invisible (and out of the tab order) until the script has run;
   the row keeps its height so nothing below shifts when it appears. */
.ps-hero-slider__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--ps-hs-w);
  margin: 1.5rem auto 0;
  visibility: hidden;
}

.ps-hero-slider.is-ready .ps-hero-slider__nav {
  visibility: visible;
}

.ps-hero-slider__dots {
  display: flex;
  align-items: center;
}

/* 24px hit area, 8px visible dot (touch target size). */
.ps-hero-slider__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
}

.ps-hero-slider__dot::before {
  position: absolute;
  inset: 0;
  width: 8px;
  height: 8px;
  margin: auto;
  background: var(--ps-blue);
  border-radius: 50%;
  content: "";
  opacity: 0.5;
  transition: opacity 0.2s;
}

.ps-hero-slider__dot:hover::before {
  opacity: 0.85;
}

.ps-hero-slider__dot.is-active::before,
.ps-hero-slider__dot[aria-current="true"]::before {
  background: var(--ps-blue-dark);
  opacity: 1;
}

.ps-hero-slider__arrows {
  display: inline-flex;
  gap: 0.5rem;
}

.ps-hero-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #000;
  cursor: pointer;
  background: #0000001a;
  border: 0;
  border-radius: var(--ps-radius-pill, 100px);
  transition: background-color 0.2s;
}

.ps-hero-slider__arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .ps-hero-slider__arrow:hover {
    background: #0003;
  }
}

/* --------------------------------------------------------------------------
   2. Latest videos: first card wide (image 2fr / text 1fr), then two cards
   -------------------------------------------------------------------------- */
.ps-home-latest__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.ps-home-latest__grid > .ps-card:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .ps-home-latest__grid > .ps-card:first-child {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
  }

  .ps-home-latest__grid > .ps-card:first-child .ps-card__body {
    margin-top: 0;
  }

  .ps-home-latest__grid > .ps-card:first-child .ps-card__title {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }
}

/* --------------------------------------------------------------------------
   3. Columns: card titles use the smaller (h7) size
   -------------------------------------------------------------------------- */
.ps-home-columns .ps-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   4. Search + topic cards
   -------------------------------------------------------------------------- */
.ps-home-search .ps-container {
  text-align: center;
}

.ps-home-search__form {
  max-width: 37rem;
  margin: 0 auto 3rem;
  text-align: left;
}

/* Own line icons are tinted with the brand blue (shared card default is black). */
.ps-home-topics .ps-topic-card__icon {
  color: var(--ps-blue);
}

/* --------------------------------------------------------------------------
   5. About (black section, doctor photo in a light rounded panel)
   -------------------------------------------------------------------------- */
.ps-home-about {
  overflow: hidden;
}

.ps-home-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ps-home-about__copy {
  min-width: 0;
}

.ps-home-about .ps-lead {
  margin-bottom: 0;
}

/* The photo has a white background and no alpha: the panel is light gray and
   multiply makes the white disappear (never a white rectangle on black). */
.ps-home-about__portrait {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ps-gray-5);
  border-radius: var(--ps-radius-md, 16px);
}

.ps-home-about__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   6. Shop band (orange, shop card on the right)
   -------------------------------------------------------------------------- */
.ps-home-shop {
  position: relative;
  padding: 4.375rem 0;
  overflow: hidden;
  color: #fff;
  background-color: var(--ps-orange);
  background-image: radial-gradient(circle farthest-side at 50% 100%, var(--ps-orange-glow), #e8792800);
}

.ps-home-shop__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.ps-home-shop__copy {
  min-width: 0;
}

.ps-home-shop .ps-lead {
  max-width: 34rem;
}

.ps-home-shop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ps-home-shop__card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: var(--ps-radius-sm, 8px);
  box-shadow: 0 24px 56px #00000059, 0 60px 120px #00000040;
}

.ps-home-shop__card img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   7. Official channels (blue)
   -------------------------------------------------------------------------- */
.ps-home-channels__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.ps-home-channels__head .ps-lead {
  margin-bottom: 0;
}

.ps-home-channels__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ps-home-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  height: 100%;
  padding: 24px;
  color: #000;
  background: #fff;
  border-radius: var(--ps-radius-sm, 8px);
  transition: box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ps-home-channel:hover,
.ps-home-channel:focus-visible {
  box-shadow: 0 18px 40px #00000033;
}

.ps-home-channel__icon {
  display: flex;
  margin-bottom: 8px;
  color: var(--ps-blue);
}

.ps-home-channel__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.ps-home-channel__name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.ps-home-channel__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ps-gray-60);
}

.ps-home-channel__cta {
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ps-blue-dark);
}

.ps-home-channel__cta::after {
  margin-left: 6px;
  content: "\2192";
  content: "\2192" / "";
}

.ps-home-channel:hover .ps-home-channel__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   8. Reviews: intro on the left, review cards stacked on the right
   -------------------------------------------------------------------------- */
.ps-home-reviews__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 48px;
  align-items: start;
}

.ps-home-reviews__intro {
  min-width: 0;
  padding-top: 3rem;
}

.ps-home-reviews__intro .ps-lead {
  max-width: 28rem;
}

.ps-home-reviews__list {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.ps-home-reviews__list > * {
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .ps-hero-slider {
    --ps-hs-gap: 10px;
  }

  .ps-home-about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .ps-home-about__portrait {
    min-height: 420px;
  }

  .ps-home-shop__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .ps-home-shop__card {
    order: -1;
    max-width: 36rem;
  }

  .ps-home-latest__grid > .ps-card:first-child {
    margin-bottom: 12px;
  }

  .ps-home-reviews__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }

  .ps-home-reviews__intro {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .ps-hero-slider {
    --ps-hs-w: 92%;
    --ps-hs-pad: 24px;
  }

  .ps-home-hero {
    padding-top: var(--ps-home-hero-pt, 1rem);
  }

  .ps-hero-slide {
    height: auto;
    min-height: 544px;
  }

  .ps-hero-slide .ps-hero-slide__title,
  .ps-hero-slide .ps-hero-slide__title--sub {
    font-size: 2rem;
  }

  .ps-hero-slide__lead {
    margin-bottom: 1.5em;
    font-size: 1rem;
  }

  /* Text on top, visual underneath. */
  .ps-hero-slide--brand,
  .ps-hero-slide--shop,
  .ps-hero-slide--band {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    justify-content: space-between;
  }

  .ps-hero-slide--brand {
    justify-content: flex-start;
    gap: 12px;
  }

  .ps-hero-slide__photo {
    flex: 1 1 auto;
    min-height: 240px;
    margin: 0 calc(var(--ps-hs-pad) * -1) calc(var(--ps-hs-pad) * -1);
  }

  .ps-hero-slide__photo img {
    object-position: 50% 100%;
  }

  .ps-hero-slide__card {
    width: 100%;
  }

  .ps-hero-slide__cover {
    justify-content: center;
  }

  .ps-hero-slide__cover img {
    max-height: 260px;
  }

  .ps-hero-slide__video-link {
    gap: 12px;
  }

  .ps-hero-slider__arrows {
    display: none;
  }

  .ps-hero-slider__nav {
    justify-content: center;
    margin-top: 0.75rem;
  }

  /* Latest videos: single stacked column, no wide first card. */
  .ps-home-latest__grid {
    display: flex;
    flex-direction: column;
    gap: 52px;
  }

  .ps-home-latest__grid > .ps-card:first-child {
    margin-bottom: 0;
  }

  .ps-home-search .ps-container {
    text-align: left;
  }

  .ps-home-about__inner {
    gap: 2.5rem;
  }

  .ps-home-about__portrait {
    min-height: 380px;
  }

  .ps-home-channels__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ps-home-actions {
    margin-top: 2.5rem;
  }
}

@media (max-width: 479px) {
  .ps-home-shop {
    padding: 4rem 0;
  }

  .ps-home-about__portrait {
    min-height: 340px;
  }

  .ps-hero-slide__actions .ps-button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-hero-slider__dot::before,
  .ps-hero-slider__arrow,
  .ps-home-channel {
    transition: none;
  }
}

/* ==========================================================================
   30-archive
   ========================================================================== */

/* ==========================================================================
   30-archive.css  -  Area C: page hero, archives, cards, search, 404
   Owner: archive*.php, taxonomy-psg_video_tag.php, index.php, search.php,
          searchform.php (markup only), 404.php, template-parts/*, inc/template-tags.php
   Uses only the SPEC tokens (--ps-*). Shared components (.ps-container, .ps-section,
   .ps-h*, .ps-lead, .ps-button*, .ps-chip/.ps-tag, .ps-card*, .ps-grid*, .ps-search,
   .ps-empty, .ps-text-link) come from 00-foundation.css; this file only adds the
   archive-specific variants and the pieces area C owns outright.

   Breakpoints follow Huberman: 991px / 767px / 479px (max-width).
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Page hero  (Huberman .section-hero-gradient)
      Markup: power_sesugong_page_hero() - also used by single and page templates.
      The header is in normal flow here, so the 9rem top padding of the reference
      (which sits under an overlaid nav) becomes 4rem.
   -------------------------------------------------------------------------- */
.ps-page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  background-image: linear-gradient(27deg, #f4f5f6, #f4f5f600);
}

.ps-page-hero__inner {
  max-width: 50rem;
}

.ps-page-hero__eyebrow {
  margin: 0 0 1rem;
}

.ps-page-hero__title {
  margin: 0;
  overflow-wrap: anywhere;
}

.ps-page-hero__desc {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--ps-gray-60);
  overflow-wrap: anywhere;
}

/* Long titles (video titles, search phrases): one type step down. */
.ps-page-hero--long .ps-page-hero__title {
  font-size: 3rem;
}

@media screen and (max-width: 991px) {
  .ps-page-hero {
    padding: 3.5rem 0 2.5rem;
  }
}

@media screen and (max-width: 767px) {
  .ps-page-hero {
    padding: 2.5rem 0 2rem;
  }

  .ps-page-hero__eyebrow {
    margin-bottom: 0.75rem;
  }

  .ps-page-hero__desc {
    margin-top: 0.75rem;
  }

  .ps-page-hero--long .ps-page-hero__title {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 479px) {
  .ps-page-hero {
    padding: 2rem 0 1.75rem;
  }

  .ps-page-hero--long .ps-page-hero__title {
    font-size: 1.875rem;
  }
}


/* --------------------------------------------------------------------------
   2. Archive shell  (video / column / review / tag / search / generic)
      Hero -> filter chips -> toolbar -> card grid -> pagination.
      The hero's gradient ends at its bottom edge, so whatever follows it needs
      its own top space or the content looks glued to the hero.
   -------------------------------------------------------------------------- */
.ps-section.ps-archive,
.ps-page-hero + .ps-section {
  padding-top: 2.5rem;
}

@media (max-width: 767px) {
  .ps-section.ps-archive,
  .ps-page-hero + .ps-section {
    padding-top: 1.5rem;
  }
}

/* Bordered review cards need a tighter row gap than the open episode cards. */
.ps-archive .ps-grid--reviews {
  row-gap: 24px;
}

/* Dense Korean titles read better one step down: the .h7 title Huberman uses
   in its episode list (same values as foundation's .ps-card--compact). */
.ps-archive .ps-card__title {
  font-size: 1.25rem;
  line-height: 1.35;
}

.ps-archive .ps-card__excerpt {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Long unbroken Korean strings must never push the grid wider than the screen. */
.ps-card__title,
.ps-card__excerpt {
  overflow-wrap: anywhere;
}

.ps-archive__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 2.5rem;
}

.ps-tag-filter + .ps-archive__toolbar {
  margin-top: -1.25rem;
}

.ps-archive__note {
  max-width: 44rem;
  margin: 0;
  color: var(--ps-gray-60);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ps-archive__toolbar .ps-button {
  flex: none;
}

/* The review archive keeps the section head (title + disclaimer) above the grid. */
.ps-archive .ps-section__head {
  margin-bottom: 2rem;
}

.ps-archive .ps-section__head .ps-archive__note {
  margin-top: 0.75rem;
}

@media screen and (max-width: 767px) {
  .ps-archive .ps-grid--reviews {
    row-gap: 16px;
  }

  .ps-archive__toolbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .ps-tag-filter + .ps-archive__toolbar {
    margin-top: -0.75rem;
  }
}


/* --------------------------------------------------------------------------
   3. Tag / type filter chips  (.ps-tag-filter)
      Chips wrap onto several rows - never a horizontal scroller.
      Looks like the Huberman filter pills: grey pill, black when selected.
   -------------------------------------------------------------------------- */
.ps-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2.5rem;
}

.ps-tag-filter .ps-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--ps-radius-pill);
  background: var(--ps-gray-5);
  color: var(--ps-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ps-tag-filter .ps-tag:hover {
  border-color: var(--ps-black);
  color: var(--ps-black);
}

.ps-tag-filter .ps-tag:active {
  background: var(--ps-gray-10);
}

.ps-tag-filter .ps-tag.is-current {
  border-color: var(--ps-black);
  background: var(--ps-black);
  color: var(--ps-white);
}

.ps-tag-filter .ps-tag__count {
  margin: 0;
  color: var(--ps-gray-60);
  font-size: 0.75rem;
  font-weight: 600;
}

.ps-tag-filter .ps-tag.is-current .ps-tag__count {
  color: #ffffffb3;
}

@media screen and (max-width: 767px) {
  .ps-tag-filter {
    margin-bottom: 2rem;
  }

  .ps-tag-filter .ps-tag {
    padding: 8px 14px;
  }
}


/* --------------------------------------------------------------------------
   4. Card extras  (template-parts/card-video|column)
      The .ps-card base (media box, body, title, excerpt) is foundation.
      Here: the per-type tint of the kind label and the video play badge.
   -------------------------------------------------------------------------- */

/* Kind label (foundation .ps-card__label = Huberman .chip-category): soft tints per
   content type, taken from the Huberman category chips. */
.ps-card--video .ps-card__label {
  background: #f0f9ff;
  color: #0369a1;
}

.ps-card--column .ps-card__label {
  background: #e8f5e9;
  color: #1b5e20;
}

.ps-card .ps-card__label.is-featured {
  background: var(--ps-black);
  color: var(--ps-white);
}

/* Play badge on video thumbnails (decorative; the card link carries the label). */
.ps-card__play {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000b8;
  color: var(--ps-white);
  pointer-events: none;
  transition: background-color 0.2s;
}

.ps-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

a.ps-card:hover .ps-card__play,
a.ps-card:focus-visible .ps-card__play {
  background: var(--ps-blue);
}


/* --------------------------------------------------------------------------
   5. Review card  (.ps-review-card, template-parts/card-review)
      Huberman .testimonial-card: 1px #e5e5e5 border, 40px padding (24px on
      phones), person row at the bottom with a 44px round avatar.
      The "read more" link is stretched over the card; the BAND source link
      sits above it so both stay clickable.
   -------------------------------------------------------------------------- */
.ps-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px;
  border: 1px solid var(--ps-gray-10);
  border-radius: 0;
  background: var(--ps-white);
  transition: border-color 0.2s;
}

.ps-review-card:hover,
.ps-review-card:focus-within {
  border-color: var(--ps-gray-40);
}

.ps-review-card__quote {
  margin: 0;
  color: var(--ps-black);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.ps-review-card__quote p {
  display: -webkit-box;
  margin: 0 0 0.75em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
}

.ps-review-card__quote p:last-child {
  margin-bottom: 0;
}

.ps-review-card__more {
  align-self: flex-start;
  margin-top: 1.25rem;
}

.ps-review-card__more::after {
  content: "";
  position: absolute;
  inset: 0;
}

.ps-review-card:hover .ps-review-card__more {
  color: var(--ps-blue-dark);
}

.ps-review-card__person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 1.75rem;
}

.ps-review-card__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 100px;
  background: var(--ps-gray-5);
  color: var(--ps-gray-60);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.ps-review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-review-card__who {
  min-width: 0;
}

.ps-review-card__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ps-review-card__label {
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  line-height: 1.43;
}

.ps-review-card__source {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: var(--ps-gray-60);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.ps-review-card__source:hover {
  color: var(--ps-black);
}

@media screen and (max-width: 767px) {
  .ps-review-card {
    padding: 24px;
  }

  .ps-review-card__more {
    margin-top: 1rem;
  }

  .ps-review-card__person {
    padding-top: 1.5rem;
  }

  .ps-review-card__source {
    margin-left: 0;
    flex-basis: 100%;
  }
}


/* --------------------------------------------------------------------------
   6. Pagination  (power_sesugong_pagination)
      Desktop: prev / 1 ... window ... last / next.  Mobile (<= 767px): prev,
      "current / total", next.  Both variants are in the markup; one is hidden
      per breakpoint.  Current page: black pill with white text.
   -------------------------------------------------------------------------- */
.ps-pagination {
  margin-top: 4rem;
}

.ps-pagination__desktop,
.ps-pagination__mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ps-pagination__mobile {
  display: none;
}

.ps-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border-radius: var(--ps-radius-pill);
  color: var(--ps-gray-60);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.ps-pagination__page:hover {
  background: var(--ps-gray-5);
  color: var(--ps-black);
}

a.ps-pagination__page:active {
  background: var(--ps-gray-10);
}

.ps-pagination__page.is-current {
  background: var(--ps-black);
  color: var(--ps-white);
}

.ps-pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 44px;
  color: var(--ps-gray-40);
  font-weight: 600;
}

.ps-pagination__control {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ps-gray-5);
  color: var(--ps-black);
  transition: background-color 0.2s;
}

a.ps-pagination__control:hover {
  background: var(--ps-gray-10);
}

a.ps-pagination__control:active {
  background: var(--ps-gray-40);
}

.ps-pagination__control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-pagination__control--previous svg {
  transform: rotate(180deg);
}

.ps-pagination__control.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.ps-pagination__status {
  min-width: 5.5rem;
  color: var(--ps-gray-60);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.ps-pagination__status strong {
  color: var(--ps-black);
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .ps-pagination {
    margin-top: 3rem;
  }

  .ps-pagination__desktop {
    display: none;
  }

  .ps-pagination__mobile {
    display: flex;
    gap: 12px;
  }

  .ps-pagination__control {
    width: 44px;
    height: 44px;
  }
}


/* --------------------------------------------------------------------------
   7. Search page, empty state, topic shortcuts
   -------------------------------------------------------------------------- */
.ps-search-page__form {
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

/* Topic shortcuts under an empty search / on the 404 page.
   (.ps-empty p resets margins at higher specificity, so the title is doubled up.) */
.ps-search-suggest {
  margin-top: 1.5rem;
  text-align: center;
}

.ps-empty .ps-search-suggest {
  margin-top: 2rem;
}

.ps-search-suggest .ps-search-suggest__title {
  max-width: none;
  margin: 0 0 0.75rem;
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.43;
}

.ps-search-suggest__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media screen and (max-width: 767px) {
  .ps-search-page__form {
    margin-bottom: 1.25rem;
  }
}


/* --------------------------------------------------------------------------
   8. Shop / community CTA band  (power_sesugong_shop_cta)
      Orange banner like the Huberman book band: #bf3820 with a soft orange
      glow rising from the bottom centre, white text, .ps-button--orange plus
      .ps-button--outline-light (both from foundation).
      The glow is kept at ~70% so white body text stays readable on it.
   -------------------------------------------------------------------------- */
.ps-cta-wrap {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background-color: var(--ps-orange);
  background-image: radial-gradient(circle farthest-side at 50% 100%, #e87928b3, #e8792800);
  color: var(--ps-white);
}

.ps-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.ps-cta__content {
  flex: 1 1 28rem;
  max-width: 44rem;
}

.ps-cta .ps-cta__eyebrow {
  margin: 0 0 1rem;
  color: var(--ps-white);
}

.ps-cta .ps-cta__title {
  margin: 0 0 0.5em;
  color: var(--ps-white);
}

.ps-cta .ps-cta__lead {
  margin: 0;
  color: var(--ps-white);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.ps-cta__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 12px;
}

/* The default blue focus ring is invisible on orange. */
.ps-cta-wrap a:focus-visible {
  outline-color: var(--ps-white);
}

@media screen and (max-width: 767px) {
  .ps-cta-wrap {
    padding: 4rem 0;
  }

  .ps-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .ps-cta__content {
    flex-basis: auto;
  }

  .ps-cta__actions {
    width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .ps-cta__actions {
    flex-direction: column;
  }

  .ps-cta__actions .ps-button {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   9. 404  (404.php)
      Huberman scale: giant numeral 12rem on tablets, 6rem on phones.
   -------------------------------------------------------------------------- */
.ps-404 {
  padding: 6rem 0 7rem;
  background-image: linear-gradient(27deg, #f4f5f6, #f4f5f600);
  text-align: center;
}

.ps-404__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.ps-404__code {
  margin: 0 0 0.5rem;
  color: var(--ps-gray-10);
  font-size: 14rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  user-select: none;
}

.ps-404__title {
  margin: 0 0 0.75rem;
}

.ps-404 .ps-404__text {
  margin: 0 auto 2rem;
}

.ps-404__search {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.ps-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ps-404 .ps-search-suggest {
  margin-top: 3rem;
}

@media screen and (max-width: 991px) {
  .ps-404 {
    padding: 5rem 0 6rem;
  }

  .ps-404__code {
    font-size: 12rem;
  }
}

@media screen and (max-width: 767px) {
  .ps-404 {
    padding: 4rem 0 5rem;
  }

  .ps-404__code {
    font-size: 9rem;
  }

  .ps-404 .ps-404__text {
    margin-bottom: 1.5rem;
  }

  .ps-404 .ps-search-suggest {
    margin-top: 2.5rem;
  }
}

@media screen and (max-width: 479px) {
  .ps-404 {
    padding: 3rem 0 4rem;
  }

  .ps-404__code {
    font-size: 6rem;
  }

  .ps-404__actions .ps-button {
    width: 100%;
  }
}

/* ==========================================================================
   40-single
   ========================================================================== */

/* ==========================================================================
   40-single.css  -  Area D: single posts + prose
   Huberman-style episode page: gradient header, one big h1, meta chip row,
   16:9 radius-16 media, ~800px centred reading column.
   Depends on 00-foundation.css tokens (--ps-*) and .ps-h1 / .ps-lead / .ps-tag.
   Breakpoints: 991px / 767px / 479px (max-width).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header (section-hero-gradient) and reading column
   -------------------------------------------------------------------------- */

.ps-single {
  position: relative;
}

.ps-single-hero {
  /* One-line switch: Huberman's episode h1 uses the 3rem "h3" step. Set to
     4rem here to use the full .ps-h1 size instead (long Korean titles wrap to
     4+ lines at 4rem). */
  --ps-single-title-size: 3rem;
  position: relative;
  padding: 4rem 0 3rem;
  background-image: linear-gradient(27deg, #f4f5f6, #f4f5f600);
}

/* col-lg-8 / col-md-10 / col-sm-12 of the 12-col grid, as one rule. */
.ps-single-col {
  width: 100%;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.ps-single-hero .ps-single-col > :last-child {
  margin-bottom: 0;
}

/* Meta row: category-style chip + date (episode-chip-date-wrapper). */
.ps-single-meta {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 0.5rem;
  line-height: 1;
}

.ps-single-chip {
  display: inline-block;
  padding: 5px 8px;
  color: var(--ps-mid-gray);
  background-color: var(--ps-light-gray);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.ps-single-date {
  color: var(--ps-black);
  font-size: 1rem;
  line-height: 1;
}

.ps-single-hero .ps-single-title {
  margin: 0 0 1.25rem;
  color: var(--ps-black);
  font-size: var(--ps-single-title-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.ps-single-hero .ps-single-lead {
  margin: 0 0 1.5rem;
  color: var(--ps-black);
  font-size: 1.125rem;
  line-height: 1.6;
  word-break: keep-all;
  text-wrap: pretty;
}

/* Tag chips under the title (video). .ps-tag itself comes from foundation. */
.ps-single-tags {
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
  margin: 0 0 1.5rem;
}

/* --------------------------------------------------------------------------
   2. Media: featured image, branded cover fallback, YouTube embed
   -------------------------------------------------------------------------- */

.ps-single-media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0 0 1.5rem;
  background-color: var(--ps-gray-5);
  border-radius: var(--ps-radius-md);
  aspect-ratio: 16 / 9;
}

.ps-single-media .ps-single-thumbnail {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

a.ps-single-media:hover .ps-single-thumbnail {
  opacity: 0.92;
}

/* Fallback when a column has no featured image: gray panel + doctor photo.
   The photo has an opaque white background, so multiply drops the white. */
.ps-single-cover {
  display: flex;
  align-items: center;
  padding: clamp(20px, 5vw, 56px);
  isolation: isolate;
}

.ps-single-cover__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 55%;
}

.ps-single-cover__eyebrow {
  color: var(--ps-gray-60);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: 0.08em;
}

.ps-single-cover__label {
  color: var(--ps-black);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.ps-single-media .ps-single-cover__photo {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: auto;
  height: 92%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  mix-blend-mode: multiply;
}

/* Video detail */
.ps-video-single {
  margin: 0;
}

.ps-video-embed {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  background-color: var(--ps-black);
  border-radius: var(--ps-radius-md);
  aspect-ratio: 16 / 9;
}

.ps-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Platform link row (chip-platform) */
.ps-single-platforms {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
  margin: 0;
}

.ps-single-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  color: var(--ps-black);
  background-color: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ps-single-platform svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-single-platform svg:last-of-type {
  width: 14px;
  height: 14px;
  color: var(--ps-gray-60);
}

.ps-single-platform:hover {
  color: var(--ps-black);
  background-color: #0000000d;
  border-color: var(--ps-black);
}

.ps-single-platform:active {
  color: var(--ps-white);
  background-color: var(--ps-black);
}

.ps-single-platform:active svg:last-of-type {
  color: inherit;
}

/* --------------------------------------------------------------------------
   3. Body wrapper
   -------------------------------------------------------------------------- */

.ps-single-body {
  position: relative;
  overflow-x: clip;
  padding: 3rem 0;
}

/* --------------------------------------------------------------------------
   4. Prose: .entry-content (also used by page templates, so nothing here
      sets width, padding or margins on .entry-content itself)
   -------------------------------------------------------------------------- */

.entry-content {
  display: flow-root;
  color: var(--ps-black);
  font-size: 1.125rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

/* Paragraphs */
.entry-content p {
  margin: 0 0 1.4em;
  text-wrap: pretty;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
}

.entry-content mark {
  padding: 0.1em 0.25em;
  color: inherit;
  background-color: var(--ps-blue-10);
}

.entry-content small {
  font-size: 0.875rem;
}

.entry-content :is(sub, sup) {
  font-size: 0.75em;
  line-height: 0;
}

.entry-content abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.entry-content del {
  color: var(--ps-gray-60);
}

/* Headings: 600, -0.035em; h2 1.5rem, h3 1.25rem */
.entry-content :is(h1, h2, h3, h4, h5, h6) {
  margin: 2rem 0 0.75rem;
  color: var(--ps-black);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
  scroll-margin-top: calc(var(--ps-nav-h, 84px) + 1rem);
  word-break: keep-all;
  text-wrap: balance;
}

.entry-content h1 {
  margin-top: 3rem;
  font-size: 1.75rem;
}

.entry-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}

.entry-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.entry-content h4 {
  font-size: 1.125rem;
}

.entry-content :is(h5, h6) {
  font-size: 1rem;
}

.entry-content :is(h2, h3, h4) + :is(h3, h4, h5) {
  margin-top: 1rem;
}

/* Lists */
.entry-content :is(ul, ol) {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.entry-content ul {
  list-style: disc outside;
}

.entry-content ol {
  list-style: decimal outside;
}

.entry-content li {
  margin: 0 0 0.5em;
  padding-left: 0.15em;
  text-wrap: pretty;
}

.entry-content li:last-child {
  margin-bottom: 0;
}

.entry-content li::marker {
  color: var(--ps-gray-60);
}

.entry-content ol > li::marker {
  font-weight: 600;
}

.entry-content li > :is(ul, ol) {
  margin: 0.5em 0 0;
}

.entry-content li > p {
  margin-bottom: 0.5em;
}

.entry-content ul ul {
  list-style-type: circle;
}

.entry-content ul ul ul {
  list-style-type: square;
}

.entry-content dl {
  margin: 0 0 1.5em;
}

.entry-content dt {
  font-weight: 600;
}

.entry-content dd {
  margin: 0 0 0.75em;
  padding-left: 1em;
  color: var(--ps-gray-60);
}

/* Links: blue underline, blue-dark text (hover = Huberman inline-link) */
.entry-content a:not([class*="button"]):not(.btn),
.ps-source-list a {
  color: var(--ps-blue-dark);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ps-blue);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.entry-content a:not([class*="button"]):not(.btn):hover,
.ps-source-list a:hover {
  color: var(--ps-black);
  background-color: var(--ps-blue);
}

.entry-content a:not([class*="button"]):not(.btn):active,
.ps-source-list a:active {
  color: var(--ps-black);
  background-color: var(--ps-blue);
}

/* Image links get no underline (selectors repeat the link rule's :not() chain
   so they out-rank it). */
.entry-content a:not([class*="button"]):not(.btn):has(> img),
.entry-content a:not([class*="button"]):not(.btn):has(> figure) {
  border-bottom: 0;
}

.entry-content a:not([class*="button"]):not(.btn):has(> img):hover,
.entry-content a:not([class*="button"]):not(.btn):has(> figure):hover {
  background-color: transparent;
}

/* Blockquote: 2px black rule on the left */
.entry-content blockquote {
  margin: 2rem 0;
  padding: 0.125rem 0 0.125rem 1.25rem;
  color: var(--ps-black);
  border: 0;
  border-left: 2px solid var(--ps-black);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.entry-content blockquote p {
  margin: 0 0 0.75em;
}

.entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.entry-content blockquote :is(cite, footer) {
  display: block;
  margin-top: 0.75rem;
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.entry-content .wp-block-pullquote {
  margin: 2.5rem 0;
  padding: 2rem 0;
  text-align: center;
  border-top: 2px solid var(--ps-black);
  border-bottom: 2px solid var(--ps-black);
}

.entry-content .wp-block-pullquote blockquote {
  padding: 0;
  margin: 0;
  border: 0;
}

/* Horizontal rule / wp-block-separator */
.entry-content hr,
.entry-content hr.wp-block-separator:not(.is-style-dots) {
  width: auto;
  max-width: none;
  height: 0;
  margin: 3rem 0;
  color: var(--ps-gray-10);
  background: none;
  border: 0;
  border-top: 1px solid var(--ps-gray-10);
  opacity: 1;
}

.entry-content hr.wp-block-separator.is-style-dots {
  width: auto;
  max-width: none;
  height: auto;
  margin: 3rem 0;
  background: none;
  border: 0;
  text-align: center;
  line-height: 1;
  opacity: 1;
}

.entry-content hr.wp-block-separator.is-style-dots::before {
  content: "\00b7\00b7\00b7";
  padding-left: 0.75em;
  color: var(--ps-gray-40);
  font-size: 1.5rem;
  letter-spacing: 0.75em;
}

/* Images, figures, captions, alignment */
.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
}

.entry-content :is(figure, .wp-caption) {
  max-width: 100%;
  margin: 2rem 0;
}

.entry-content figure img,
.entry-content .wp-caption img,
.entry-content p > img,
.entry-content video {
  border-radius: var(--ps-radius-sm);
}

.entry-content :is(figcaption, .wp-caption-text, .wp-element-caption) {
  margin: 0.75rem 0 0;
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
}

.entry-content .wp-block-image img {
  display: block;
}

.entry-content .wp-block-image.aligncenter,
.entry-content .aligncenter {
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

.entry-content img.aligncenter {
  display: block;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.entry-content .wp-block-image.aligncenter {
  text-align: center;
}

.entry-content .wp-block-image.aligncenter img {
  margin-right: auto;
  margin-left: auto;
}

.entry-content .alignleft {
  float: left;
  max-width: 50%;
  margin: 0.5rem 1.5rem 1rem 0;
}

.entry-content .alignright {
  float: right;
  max-width: 50%;
  margin: 0.5rem 0 1rem 1.5rem;
}

.entry-content .has-text-align-center {
  text-align: center;
}

.entry-content .has-text-align-right {
  text-align: right;
}

.entry-content .has-text-align-left {
  text-align: left;
}

.entry-content .wp-block-gallery {
  margin: 2rem 0;
}

/* Embeds */
.entry-content iframe {
  max-width: 100%;
  border: 0;
}

.entry-content :is(iframe[src*="youtube"], iframe[src*="youtu.be"], iframe[src*="vimeo"]) {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ps-radius-md);
  aspect-ratio: 16 / 9;
}

.entry-content .wp-block-embed {
  margin: 2rem 0;
}

.entry-content .wp-block-embed__wrapper {
  overflow: hidden;
  border-radius: var(--ps-radius-md);
}

.entry-content audio {
  display: block;
  width: 100%;
  margin: 2rem 0;
}

/* Code */
.entry-content :is(code, kbd, samp, pre) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "D2Coding", "Liberation Mono", monospace;
}

.entry-content :not(pre) > code {
  padding: 0.15em 0.4em;
  background-color: var(--ps-gray-5);
  border-radius: 4px;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.entry-content kbd {
  padding: 0.1em 0.45em;
  background-color: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 0.875em;
}

.entry-content pre {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background-color: var(--ps-gray-5);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-sm);
  font-size: 0.875rem;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

.entry-content pre code {
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: inherit;
}

.entry-content :is(.wp-block-preformatted, .wp-block-verse) {
  margin: 2rem 0;
  font-family: inherit;
  white-space: pre-wrap;
}

/* Tables: 1px gray-10 frame, gray-5 header, horizontal scroll via CSS.
   display:block + width:max-content + max-width:100% makes the table box
   itself the scroll container (no wrapper element needed): it is as wide as
   its content up to the column, then scrolls sideways. */
.entry-content table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border: 1px solid var(--ps-gray-10);
  border-collapse: collapse;
  border-radius: var(--ps-radius-sm);
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.entry-content :is(th, td) {
  min-width: 5.5em;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--ps-gray-10);
  border-left: 1px solid var(--ps-gray-10);
}

.entry-content :is(th, td) :is(p, ul, ol) {
  margin-bottom: 0.5em;
}

.entry-content :is(th, td) > :last-child {
  margin-bottom: 0;
}

.entry-content th {
  color: var(--ps-black);
  background-color: var(--ps-gray-5);
  font-weight: 600;
}

/* Drop the doubled outer lines (the frame is on the table box). */
.entry-content table > :is(thead, tbody, tfoot):first-child > tr:first-child > :is(th, td) {
  border-top: 0;
}

.entry-content table tr > :first-child {
  border-left: 0;
}

.entry-content caption {
  padding: 0.75rem 1rem;
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  text-align: left;
  caption-side: bottom;
}

/* wp-block-table: the <figure> is the scroll box, the table keeps its frame. */
.entry-content .wp-block-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.entry-content .wp-block-table table {
  display: table;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ps-gray-10);
  border-collapse: separate;
  border-radius: var(--ps-radius-sm);
  border-spacing: 0;
}

.entry-content .wp-block-table :is(th, td) {
  padding: 0.75rem 1rem;
  border-width: 1px 0 0 1px;
  border-style: solid;
  border-color: var(--ps-gray-10);
}

.entry-content .wp-block-table table > :is(thead, tbody, tfoot):first-child > tr:first-child > :is(th, td) {
  border-top-width: 0;
}

.entry-content .wp-block-table tr > :first-child {
  border-left-width: 0;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) > td {
  background-color: var(--ps-gray-bg);
}

.entry-content .wp-block-table figcaption {
  margin-top: 0.75rem;
}

/* Disclosure blocks */
.entry-content details {
  margin: 0;
  border-bottom: 1px solid var(--ps-gray-10);
}

.entry-content details:first-of-type {
  margin-top: 1.5rem;
  border-top: 1px solid var(--ps-gray-10);
}

.entry-content details:last-of-type {
  margin-bottom: 1.5rem;
}

.entry-content summary {
  position: relative;
  padding: 1rem 2rem 1rem 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.entry-content summary::-webkit-details-marker {
  display: none;
}

.entry-content summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.entry-content details[open] > summary::after {
  content: "\2212";
}

.entry-content details[open] {
  padding-bottom: 1rem;
}

/* Block buttons keep the site button look (.ps-button). */
.entry-content .wp-block-buttons {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
  margin: 2rem 0;
}

.entry-content .wp-block-button__link {
  display: inline-block;
  padding: 14px 28px;
  color: var(--ps-white);
  background-color: var(--ps-btn-bg);
  border: 0;
  border-radius: var(--ps-radius-pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease, box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.entry-content .wp-block-button__link:hover {
  color: var(--ps-white);
  box-shadow: inset 0 0 0 100px #00000026;
}

.entry-content .is-style-outline > .wp-block-button__link {
  color: var(--ps-black);
  background-color: transparent;
  border: 1px solid var(--ps-gray-10);
}

.entry-content .is-style-outline > .wp-block-button__link:hover {
  color: var(--ps-black);
  border-color: var(--ps-black);
  box-shadow: none;
}

/* Wide / full alignment breaks out of the reading column on desktop only. */
@media (min-width: 992px) {
  .ps-single-body .entry-content :is(.alignwide, .alignfull) {
    width: min(1100px, calc(100vw - 40px));
    max-width: none;
    margin-right: 0;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   5. Notices and source list
   -------------------------------------------------------------------------- */

.ps-editorial-notice,
.ps-health-notice {
  padding: 16px 20px;
  background-color: var(--ps-gray-5);
  border-radius: var(--ps-radius-sm);
  font-size: 0.875rem;
  line-height: 1.65;
  word-break: keep-all;
}

.ps-editorial-notice strong,
.ps-health-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ps-black);
  font-size: 0.875rem;
  font-weight: 600;
}

.ps-editorial-notice {
  margin: 0 0 2.5rem;
  color: var(--ps-black);
}

.ps-health-notice {
  margin: 3rem 0 0;
  color: var(--ps-gray-60);
}

.ps-source-list + .ps-health-notice {
  margin-top: 1.5rem;
}

.ps-source-list {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ps-gray-10);
  word-break: keep-all;
}

.ps-source-list h2 {
  margin: 0 0 1rem;
  color: var(--ps-black);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.ps-source-list ol {
  margin: 0;
  padding-left: 1.5em;
  list-style: decimal outside;
}

.ps-source-list li {
  margin: 0 0 0.75rem;
  padding-left: 0.15em;
  color: var(--ps-gray-60);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ps-source-list li:last-child {
  margin-bottom: 0;
}

.ps-source-list li::marker {
  font-weight: 600;
}

.ps-source-list a {
  font-weight: 600;
}

.ps-source-list__type {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 2px 8px;
  color: var(--ps-gray-60);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 1px;
}

/* --------------------------------------------------------------------------
   6. Review detail
   -------------------------------------------------------------------------- */

.ps-review-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 2rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--ps-gray-10);
}

.ps-review-byline__avatar {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ps-black);
  background-color: var(--ps-gray-5);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}

.ps-review-byline__who {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ps-review-byline__who strong {
  color: var(--ps-black);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.ps-review-byline__source {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--ps-black);
  background-color: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ps-review-byline__source:hover {
  color: var(--ps-black);
  background-color: #0000000d;
  border-color: var(--ps-black);
}

.ps-review-byline__source svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Review text: the opening line carries a little more weight. */
.ps-single--review .entry-content {
  line-height: 1.8;
}

.ps-single--review .entry-content > p:first-child {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   7. Previous / next navigation (markup from power_sesugong_post_navigation)
      .ps-post-nav is also .ps-container; the grid keeps both the pair of
      links and the back link on the 800px reading column.
   -------------------------------------------------------------------------- */

.ps-post-nav {
  display: grid;
  grid-template-columns: minmax(0, 800px);
  justify-content: center;
  row-gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 5rem;
}

.ps-post-nav__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 2rem;
  border-top: 1px solid var(--ps-gray-10);
}

.ps-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 20px 24px;
  color: var(--ps-black);
  background-color: var(--ps-gray-5);
  border-radius: var(--ps-radius-sm);
  transition: background-color 0.2s ease;
}

.ps-post-nav__link:hover {
  color: var(--ps-black);
  background-color: var(--ps-gray-10);
}

.ps-post-nav__link--prev {
  grid-column: 1;
}

/* Explicit column so a missing "previous" still leaves "next" on the right. */
.ps-post-nav__link--next {
  grid-column: 2;
  text-align: right;
}

.ps-post-nav__label {
  color: var(--ps-gray-60);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.43;
}

.ps-post-nav__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ps-black);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  transition: color 0.2s ease;
}

.ps-post-nav__link:hover .ps-post-nav__title {
  color: var(--ps-blue-dark);
}

.ps-post-nav__back {
  justify-self: start;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .ps-single-hero {
    padding: 3rem 0 2.5rem;
  }

  .ps-single-col {
    max-width: 83.3333%;
  }

  .ps-single-body {
    padding: 2.5rem 0;
  }

  .ps-post-nav {
    grid-template-columns: minmax(0, 83.3333%);
    padding-bottom: 4rem;
  }
}

@media (max-width: 767px) {
  .ps-single-hero {
    --ps-single-title-size: 2rem;
    padding: 2.5rem 0 2rem;
  }

  .ps-single-col {
    max-width: 100%;
  }

  .ps-single-hero .ps-single-lead {
    font-size: 1rem;
  }

  .ps-single-body {
    padding: 2rem 0;
  }

  .ps-single-cover__text {
    max-width: 52%;
  }

  /* Prose */
  .entry-content {
    font-size: 1.0625rem;
  }

  .entry-content h1 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
  }

  .entry-content h2 {
    margin-top: 2.25rem;
    font-size: 1.375rem;
  }

  .entry-content h3 {
    margin-top: 1.75rem;
    font-size: 1.125rem;
  }

  .entry-content h4 {
    font-size: 1.0625rem;
  }

  .entry-content blockquote {
    padding-left: 1rem;
    font-size: 1.125rem;
  }

  .entry-content table,
  .entry-content .wp-block-table table {
    font-size: 0.875rem;
  }

  .entry-content :is(th, td),
  .entry-content .wp-block-table :is(th, td) {
    padding: 0.625rem 0.75rem;
  }

  .entry-content pre {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
  }

  .entry-content :is(.alignleft, .alignright) {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .entry-content hr,
  .entry-content hr.wp-block-separator:not(.is-style-dots),
  .entry-content hr.wp-block-separator.is-style-dots {
    margin: 2.5rem 0;
  }

  .ps-single--review .entry-content > p:first-child {
    font-size: 1.1875rem;
  }

  /* Notices / sources */
  .ps-editorial-notice,
  .ps-health-notice {
    padding: 14px 16px;
  }

  .ps-editorial-notice {
    margin-bottom: 2rem;
  }

  .ps-source-list h2 {
    font-size: 1.375rem;
  }

  .ps-source-list li {
    font-size: 0.9375rem;
  }

  /* Review byline: source pill drops under the name instead of squeezing it. */
  .ps-review-byline {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ps-review-byline__source {
    justify-content: center;
    width: 100%;
  }

  /* Prev / next stack */
  .ps-post-nav {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 3.5rem;
  }

  .ps-post-nav__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.5rem;
  }

  .ps-post-nav__link--prev,
  .ps-post-nav__link--next {
    grid-column: 1;
    text-align: left;
  }

  .ps-post-nav__link {
    padding: 16px 20px;
  }

  .ps-post-nav__title {
    font-size: 1rem;
  }
}

@media (max-width: 479px) {
  .ps-single-hero {
    --ps-single-title-size: 1.75rem;
    padding: 2rem 0 1.75rem;
  }

  .ps-single-meta {
    margin-bottom: 0.75rem;
  }

  .ps-single-hero .ps-single-title {
    margin-bottom: 1rem;
  }

  .ps-single-media,
  .ps-video-embed {
    margin-bottom: 1.25rem;
  }

  .ps-single-cover {
    padding: 16px;
  }

  .ps-single-cover__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }

  .ps-single-platform {
    padding: 8px 14px 8px 10px;
  }

  .ps-single-body {
    padding: 1.75rem 0;
  }

  .ps-post-nav {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-single-media .ps-single-thumbnail,
  .ps-single-platform,
  .ps-review-byline__source,
  .ps-post-nav__link,
  .ps-post-nav__title,
  .entry-content a,
  .entry-content .wp-block-button__link {
    transition: none;
  }
}

/* ==========================================================================
   50-pages
   ========================================================================== */

/* ==========================================================================
   50-pages.css  -  Area E: pages and forms
   Owner: page.php, templates/page-about|contact|product.php, inc/contact.php (markup)
   Uses only the SPEC tokens (--ps-*). Shared components (.ps-button, .ps-text-link,
   .ps-h*, .ps-section*, .ps-container) come from 00-foundation.css and are not redefined.

   The footer no longer carries a form (it links to the contact page), so these form
   selectors only serve the contact page. Nothing here assumes a fixed width.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Page shell and reading column (default page.php)
   -------------------------------------------------------------------------- */

/* Default pages: hero text and body share the same centred ~800px column
   (Huberman episode pages do the same with col-lg-8). Wide templates
   (about / product / contact) keep the hero on the container edge instead. */
.ps-staticpage--default .ps-page-hero__inner {
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.ps-reading {
  width: 100%;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
}

.ps-staticpage .entry-content {
  min-width: 0;
  overflow-wrap: break-word;
}

.ps-staticpage .entry-content > :first-child {
  margin-top: 0;
}

.ps-staticpage .entry-content > :last-child {
  margin-bottom: 0;
}

/* Safety-net prose. Zero-ish specificity (:where) so the .entry-content rules from
   40-single.css always win; these only apply if that file does not cover pages. */
:where(.ps-staticpage .entry-content) {
  font-size: 1.0625rem;
  line-height: 1.75;
}

:where(.ps-staticpage .entry-content) :is(h2, h3, h4) {
  margin: 2.5rem 0 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

:where(.ps-staticpage .entry-content) h2 {
  font-size: 1.5rem;
}

:where(.ps-staticpage .entry-content) h3 {
  font-size: 1.25rem;
}

:where(.ps-staticpage .entry-content) h4 {
  font-size: 1.0625rem;
}

:where(.ps-staticpage .entry-content) :is(p, ul, ol) {
  margin: 0 0 1.25em;
}

:where(.ps-staticpage .entry-content) :is(ul, ol) {
  padding-left: 1.4em;
}

:where(.ps-staticpage .entry-content) li {
  margin-bottom: 0.4em;
}

:where(.ps-staticpage .entry-content) a:not(.ps-button, .wp-block-button__link) {
  color: var(--ps-blue-dark);
  border-bottom: 1.5px solid var(--ps-blue);
}

:where(.ps-staticpage .entry-content) blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--ps-black);
}

:where(.ps-staticpage .entry-content) :is(img, figure) {
  border-radius: var(--ps-radius-md);
}

/* Button row used under the about copy. */
.ps-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.5rem;
}

/* Icons coming from power_sesugong_icon() carry only a viewBox; size them here as a
   zero-specificity fallback in case a component rule is missing. */
:where(.ps-staticpage .ps-button, .ps-staticpage .ps-text-link) svg {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* --------------------------------------------------------------------------
   2. About / doctor page
   -------------------------------------------------------------------------- */

.ps-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: start;
}

/* Light rounded panel. The doctor photo has an opaque white background, so it is
   multiplied onto the gray-5 panel: white becomes the panel colour, no box shows. */
.ps-about__portrait {
  position: sticky;
  top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 650 / 780;
  background: var(--ps-gray-5);
  border-radius: var(--ps-radius-md);
}

.ps-about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Default asset only (white background). A custom featured image is shown as is. */
.ps-about__img--cutout {
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: multiply;
}

.ps-about__body {
  min-width: 0;
}

.ps-about__body .entry-content > h2:first-child {
  margin-top: 0;
  font-size: 2rem;
  line-height: 1.15;
}


/* --------------------------------------------------------------------------
   3. Product page
   -------------------------------------------------------------------------- */

.ps-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ps-step {
  min-width: 0;
  padding: 32px 28px;
  margin: 0;
  background: var(--ps-gray-5);
  border-radius: var(--ps-radius-md);
}

.ps-step__num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--ps-white);
  background: var(--ps-black);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.ps-step h2 {
  margin: 0 0 0.5rem;
}

.ps-step p {
  margin: 0;
  color: var(--ps-gray-60);
  font-size: 1rem;
  line-height: 1.65;
}

.ps-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 4rem;
  align-items: start;
}

.ps-side-card {
  position: sticky;
  top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
  padding: 32px 28px;
  background: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-md);
}

.ps-side-card h2 {
  margin: 0 0 0.5rem;
}

.ps-side-card p {
  margin: 0 0 1.5rem;
  color: var(--ps-gray-60);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ps-side-card__actions {
  display: grid;
  gap: 10px;
}

.ps-side-card__actions .ps-button {
  width: 100%;
}


/* --------------------------------------------------------------------------
   4. Contact page
   -------------------------------------------------------------------------- */

.ps-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 4rem;
  align-items: start;
}

.ps-contact-card {
  min-width: 0;
  padding: 40px;
  background: var(--ps-white);
  border: 1px solid var(--ps-gray-10);
  border-radius: var(--ps-radius-md);
}

.ps-contact-card .ps-h5 {
  margin: 0 0 0.375em;
}

.ps-contact-card__lead {
  margin: 0 0 2rem;
  color: var(--ps-gray-60);
  font-size: 1rem;
  line-height: 1.65;
}

.ps-contact-info {
  position: sticky;
  top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
  min-width: 0;
}

.ps-contact-info .ps-h6 {
  margin: 0 0 1rem;
}

.ps-info-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ps-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin: 0;
  background: var(--ps-gray-5);
  border-radius: var(--ps-radius-md);
}

.ps-info-card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: none;
  align-items: center;
  justify-content: center;
  color: var(--ps-black);
  background: var(--ps-white);
  border-radius: 50%;
}

.ps-info-card__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ps-info-card__body {
  min-width: 0;
}

.ps-info-card__label {
  margin: 0 0 0.25rem;
  color: var(--ps-gray-60);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.ps-info-card__value {
  margin: 0;
  color: var(--ps-black);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.ps-info-card__value a {
  transition: color 0.2s;
}

.ps-info-card__value a:hover {
  color: var(--ps-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ps-info-card__value--text {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
}

.ps-info-card__line {
  display: block;
}

.ps-contact-info__note {
  margin: 1rem 0 0;
  color: var(--ps-gray-60);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Official channels row */
.ps-page-channels {
  border-top: 1px solid var(--ps-gray-5);
}

.ps-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ps-channel-card {
  display: block;
  min-width: 0;
  color: inherit;
}

.ps-channel-card__media {
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  background: var(--ps-gray-5);
  border-radius: var(--ps-radius-md);
}

.ps-channel-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}

/* White-background artwork: multiply onto the gray panel. The band screenshot is a
   UI image and stays as is. */
.ps-channel-card__media--shop img,
.ps-channel-card__media--doctor img {
  mix-blend-mode: multiply;
}

.ps-channel-card__media--doctor img {
  padding-bottom: 0;
  object-position: center bottom;
}

.ps-channel-card__body {
  margin-top: 1rem;
}

.ps-channel-card__title {
  margin: 0 0 0.375rem;
  transition: color 0.2s;
}

.ps-channel-card:hover .ps-channel-card__title {
  color: var(--ps-blue-dark);
}

.ps-channel-card__body p {
  margin: 0 0 0.75rem;
  color: var(--ps-gray-60);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   5. Contact form system (page + footer variants)
   -------------------------------------------------------------------------- */

.ps-contact-form-wrap {
  min-width: 0;
  /* html already gets scroll-padding-top for the admin bar from core. */
  scroll-margin-top: 24px;
}

.ps-contact-form {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 0;
}

.ps-form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.ps-form-field label {
  display: block;
  margin: 0;
  color: var(--ps-black);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.ps-form-required {
  margin-left: 0.125em;
  color: #c0332e;
  font-weight: 600;
}

.ps-form-field :is(input, textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  margin: 0;
  color: var(--ps-black);
  background: var(--ps-white);
  border: 1px solid var(--ps-field-border);
  border-radius: var(--ps-radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}

.ps-form-field :is(input, select) {
  height: 48px;
}

.ps-form-field textarea {
  min-height: 140px;
  line-height: 1.6;
  resize: vertical;
}

.ps-form-field :is(input, textarea)::placeholder {
  color: #0000008a;
  opacity: 1;
}

.ps-form-field :is(input, textarea, select):hover {
  border-color: var(--ps-gray-60);
}

.ps-form-field :is(input, textarea, select):focus {
  border-color: var(--ps-black);
}

.ps-form-field :is(input, textarea, select):focus-visible {
  outline: 2px solid var(--ps-blue);
  outline-offset: 2px;
}

/* Only after the visitor has interacted (separate rule: unsupported browsers drop it). */
.ps-form-field :is(input, textarea, select):user-invalid {
  border-color: var(--ps-destructive);
}

.ps-form-hint,
.ps-form-required-note,
.ps-contact-form__privacy {
  margin: 0;
  color: var(--ps-gray-60);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Optional consent checkbox row (not rendered by default; ready for use). */
.ps-form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ps-gray-60);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ps-form-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ps-black);
}

.ps-form-consent label {
  margin: 0;
}

.ps-contact-form__submit {
  min-width: 160px;
  margin-top: 4px;
  justify-self: start;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Result messages (Huberman form-error-message: red text on a light red box, radius 8). */
.ps-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 20px;
  border-radius: var(--ps-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.ps-form-notice__icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

.ps-form-notice__text {
  min-width: 0;
}

.ps-form-notice--error {
  color: #b91c1c;
  background: #fee6e6;
}

.ps-form-notice--error .ps-form-notice__icon {
  color: #dc2626;
}

.ps-form-notice--success {
  color: var(--ps-black);
  background: var(--ps-blue-10);
}

.ps-form-notice--success .ps-form-notice__icon {
  color: var(--ps-blue-dark);
}

/* Honeypot: must stay off-screen but focus-free (tabindex -1 in the markup). */
.ps-contact-form__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* --------------------------------------------------------------------------
   6. Motion preference
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ps-form-field :is(input, textarea, select),
  .ps-info-card__value a,
  .ps-channel-card__title {
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   7. Responsive (991 / 767 / 479, same breakpoints as the Huberman stylesheet)
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  .ps-about__grid,
  .ps-product-layout,
  .ps-contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .ps-about__portrait,
  .ps-side-card,
  .ps-contact-info {
    position: static;
  }

  .ps-about__portrait {
    width: 100%;
    max-width: 480px;
  }

  /* Steps become a vertical list: number on the left, copy on the right. */
  .ps-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ps-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    padding: 24px;
  }

  .ps-step__num {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .ps-step h2,
  .ps-step p {
    grid-column: 2;
  }

  .ps-step h2 {
    margin-bottom: 0.375rem;
  }

  .ps-channel-grid {
    gap: 16px;
  }

  /* Two columns; an odd last card (hours) spans the full row. */
  .ps-info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ps-info-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .ps-about__body .entry-content > h2:first-child {
    font-size: 1.625rem;
  }

  .ps-contact-card {
    padding: 24px;
  }

  .ps-contact-card__lead {
    margin-bottom: 1.5rem;
  }

  .ps-side-card {
    padding: 24px;
  }

  .ps-info-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-channel-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 479px) {
  .ps-contact-card {
    padding: 20px;
  }

  .ps-info-card {
    gap: 12px;
    padding: 16px;
  }

  .ps-info-card__value {
    font-size: 1.125rem;
  }

  .ps-info-card__value--text {
    font-size: 1rem;
  }

  .ps-step {
    column-gap: 16px;
    padding: 20px;
  }

  .ps-page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-page-actions .ps-button,
  .ps-contact-form__submit {
    width: 100%;
  }
}

