/* LessonStride: review cards, notebook rules and highlighter marks. */
:root {
  --ph-ink: var(--wp--preset--color--text);
  --ph-paper: var(--wp--preset--color--surface);
  --ph-canvas: var(--wp--preset--color--background);
  --ph-accent: var(--wp--preset--color--primary);
  --ph-muted: var(--wp--preset--color--muted);
  --ph-line: var(--wp--preset--color--line);
  --ph-soft: var(--wp--preset--color--soft);
  --ls-highlight: var(--wp--preset--color--highlight);
  --ls-gutter: var(--wp--preset--spacing--gutter);
}
.ph-dark {
  --wp--preset--color--background: #13152a;
  --wp--preset--color--surface: #20233f;
  --wp--preset--color--text: #f2f3ff;
  --wp--preset--color--muted: #bdc3dd;
  --wp--preset--color--primary: #b9c1ff;
  --wp--preset--color--line: #494f74;
  --wp--preset--color--soft: #2c3155;
  --wp--preset--color--on-primary: #1c1f3a;
}
body { background: var(--ph-canvas); color: var(--ph-ink); }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--ph-accent); }
:where(button, input, textarea, select) { font: inherit; }
:where(button, summary) { cursor: pointer; }
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--ph-accent);
  outline-offset: 4px;
}
:where(h1, h2, h3, p, li, dd, a) { overflow-wrap: anywhere; }
:where(img, video, iframe, svg) { max-width: 100%; }
img { height: auto; }
.ph-shell { width: min(calc(100% - 2 * var(--ls-gutter)), 1280px); margin-inline: auto; }
.is-flush > .wp-block-post-content { width: min(calc(100% - 2 * var(--ls-gutter)), 760px); }
.wp-site-blocks main.ph-main { padding-block: 0 var(--wp--preset--spacing--xl); }
.ph-main > .ph-shell { padding-top: var(--wp--preset--spacing--section); }
.ph-header { position: relative; z-index: 30; background: var(--ph-paper); border-top: 5px solid var(--ph-accent); border-bottom: 1px solid var(--ph-line); }
.ph-header-inner { width: min(calc(100% - 2 * var(--ls-gutter)), 1280px); margin-inline: auto; min-height: 112px; gap: 24px; padding-block: 20px; }
.ph-brand { flex-shrink: 0; gap: 12px; }
.ph-brand .wp-block-site-logo { line-height: 1; }
.ph-brand .custom-logo { width: 48px; height: 48px; object-fit: contain; }
.ph-brand-copy { margin: 0; }
.ph-brand .wp-block-site-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; margin: 0; }
.ph-brand .wp-block-site-title a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ph-brand-note { font-size: 13px; color: var(--ph-muted); margin: 7px 0 0; line-height: 1.4; }
.ph-header .aen-primary-navigation { margin-left: auto; font-size: 15px; font-weight: 650; }
.ph-header .wp-block-navigation__container { gap: clamp(12px, 1.5vw, 24px); }
.ph-header .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 44px; }
.ph-header .aen-menu-brand, .ph-header .aen-menu-meta { display: none; }
.ph-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 0 !important; }
.ph-controls button, .ph-controls summary { width: 44px; height: 44px; padding: 10px; display: grid; place-items: center; border: 1px solid var(--ph-line); border-radius: 4px; background: var(--ph-paper); color: var(--ph-ink); list-style: none; }
.ph-controls .ph-header-search summary { background: var(--ph-accent); color: var(--wp--preset--color--on-primary); border-color: var(--ph-accent); }
.ph-header-search summary::-webkit-details-marker { display: none; }
.ph-search-panel { position: absolute; right: var(--ls-gutter); top: calc(100% + 8px); width: min(420px, calc(100vw - 40px)); padding: 24px; background: var(--ph-paper); border: 1px solid var(--ph-line); box-shadow: 0 8px 24px color-mix(in srgb, var(--ph-ink) 12%, transparent); }
.ph-search-panel label { display: block; margin-bottom: 12px; font-weight: 700; }
.wp-block-search { max-width: 100%; }
.wp-block-search__inside-wrapper { gap: 8px; min-width: 0; }
.wp-block-search__input { min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--ph-muted); border-radius: 4px; background: var(--ph-paper); color: var(--ph-ink); }
.wp-block-search__button { min-height: 44px; min-width: 44px; margin-left: 0; padding: 12px 16px; border: 0; border-radius: 4px; background: var(--ph-accent); color: var(--wp--preset--color--on-primary); font-weight: 700; }
.ls-intro { position: relative; padding: clamp(32px, 5vw, 72px) 0; border-bottom: 2px solid var(--ph-ink); margin-bottom: var(--wp--preset--spacing--section); }
.ls-intro h1 { max-width: 900px; margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; text-wrap: balance; }
.ls-intro mark { color: var(--wp--preset--color--highlight-ink); background: var(--ls-highlight); padding: 0 .09em .06em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ls-intro p { max-width: 620px; margin: 24px 0 0; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.6; color: var(--ph-muted); }
.ls-section-title { display: flex; align-items: center; gap: 16px; font-size: 24px; letter-spacing: -.025em; margin: 0 0 24px; }
.ls-section-title::after { content: ""; height: 5px; background: var(--ls-highlight); flex: 1; }
.ph-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) 280px !important; gap: 36px; align-items: start; }
.ph-layout > * { min-width: 0; margin: 0 !important; }
.ph-reading, .ph-query, .wp-block-post-template > li { min-width: 0; }
.ph-query .wp-block-post-template { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; }
.ph-query .wp-block-post-template > li { margin: 0; list-style: none; }
.ls-review-card { display: flex; flex-direction: column; height: 100%; min-width: 0; padding: 0 0 24px; background: var(--ph-paper); border: 1px solid var(--ph-line); border-radius: 6px; overflow: hidden; }
.ls-review-card > .wp-block-post-featured-image { margin: 0 0 24px; }
.ls-review-card .wp-block-post-featured-image :is(a, img), .ls-review-card .aen-no-image { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.ls-review-card > :not(.wp-block-post-featured-image) { margin-left: 24px; margin-right: 24px; }
.aen-no-image, .ph-cover-empty { position: relative; display: block; width: 100%; aspect-ratio: 8 / 5; background: var(--ph-soft) url("lesson-stride-placeholder.svg") center / cover no-repeat; }
.aen-no-image-symbol, .ph-cover-empty svg { display: none; }
.ph-category-row { margin-top: 0; margin-bottom: 12px; line-height: 1.4; }
.ph-category, .ls-review-card .wp-block-post-terms a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 8px 0; border-bottom: 3px solid var(--ls-highlight); color: var(--ph-accent); font-size: 14px; font-weight: 750; text-decoration: none; }
.ph-category-row .ph-category ~ .ph-category, .ls-review-card .wp-block-post-terms a ~ a, .ls-review-card .wp-block-post-terms__separator, .ph-single .wp-block-post-terms a ~ a, .ph-single .wp-block-post-terms__separator { display: none; }
.ls-review-card .wp-block-post-title { font-size: clamp(23px, 2vw, 28px); font-weight: 750; line-height: 1.25; letter-spacing: -.035em; margin-top: 0; margin-bottom: 16px; }
.ls-review-card .wp-block-post-title a { display: -webkit-box; min-height: 44px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-decoration: none; }
.ls-review-card .wp-block-post-excerpt { margin-top: 0; margin-bottom: 0; font-size: 16px; line-height: 1.65; color: var(--ph-muted); }
.ls-review-card .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; }
.ls-review-card .wp-block-post-excerpt__more-text { margin: 12px 0 0; }
.ls-review-card .wp-block-post-excerpt__more-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ph-accent); font-weight: 700; text-decoration: underline; }
.ph-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ph-muted); }
.ls-review-card > .ph-meta { margin-top: auto; padding-top: 20px; }
.ph-author { display: inline-flex; align-items: center; gap: 8px; }
.ph-author img { width: 28px; height: 28px; border-radius: 50%; }
.ls-home .ph-query .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
.ls-home .wp-block-post-template > li:first-child .ls-review-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 24px; padding: 24px; border-top: 4px solid var(--ph-accent); }
.ls-home .wp-block-post-template > li:first-child .ls-review-card > :not(.wp-block-post-featured-image) { grid-column: 2; margin-inline: 0; }
.ls-home .wp-block-post-template > li:first-child .wp-block-post-featured-image { grid-column: 1; grid-row: 1 / 5; height: 100%; margin: 0; }
.ls-home .wp-block-post-template > li:first-child .wp-block-post-title { font-size: clamp(28px, 2.7vw, 36px); }
.ls-home .wp-block-post-template > li:first-child .wp-block-post-featured-image :is(a, img), .ls-home .wp-block-post-template > li:first-child .aen-no-image { aspect-ratio: auto; height: 100%; min-height: 320px; }
.ph-sidebar { display: grid; gap: 28px; }
.ph-widget { min-width: 0; padding: 24px; border: 1px solid var(--ph-line); background: var(--ph-paper); border-radius: 6px; }
.ph-widget h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.03em; margin: 0 0 16px; }
.ph-widget p { margin-block: 0; font-size: 16px; line-height: 1.65; }
.ls-study-note { border-top: 5px solid var(--ls-highlight); background: var(--ph-soft); }
.ls-study-note ul { padding-left: 20px; margin-bottom: 0; }
.ls-study-note li { padding-block: 6px; font-size: 16px; line-height: 1.55; }
.ph-widget .wp-block-latest-posts { list-style: none; padding: 0; margin: 0; }
.ph-widget .wp-block-latest-posts li { border-bottom: 1px solid var(--ph-line); padding-block: 14px; margin: 0; font-size: 16px; line-height: 1.5; font-weight: 650; }
.ph-widget .wp-block-latest-posts li:last-child { border: 0; padding-bottom: 0; }
.ph-widget .wp-block-latest-posts a { display: inline-block; min-height: 44px; text-decoration: none; }
.ph-breadcrumb { width: min(calc(100% - 2 * var(--ls-gutter)), 1280px); margin-inline: auto; padding-block: 16px; border-bottom: 1px solid var(--ph-line); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ph-muted); }
.ph-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.ph-breadcrumb > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-archive-title { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 5px solid var(--ls-highlight); }
.ph-archive-title h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.12; letter-spacing: -.04em; margin: 0; }
.ph-archive-title p { color: var(--ph-muted); }
.ph-sheet { min-width: 0; padding: clamp(24px, 3vw, 48px); background: var(--ph-paper); border: 1px solid var(--ph-line); border-top: 5px solid var(--ph-accent); border-radius: 6px; }
.ph-sheet .wp-block-post-title { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.15; letter-spacing: -.04em; margin: 16px 0 24px; }
.ph-single > .ph-meta { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--ph-line); }
.wp-block-post-content { min-width: 0; max-width: 72ch; margin-inline: auto; line-height: 1.8; overflow-wrap: anywhere; }
.wp-block-post-content > * { max-width: 100%; }
.wp-block-post-content :where(p, li, a, td, th, code) { overflow-wrap: anywhere; }
.wp-block-post-content h2 { font-size: clamp(25px, 2.6vw, 32px); line-height: 1.25; margin-block: 40px 16px; letter-spacing: -.025em; }
.wp-block-post-content h3 { font-size: 23px; line-height: 1.35; }
.wp-block-post-content a { color: var(--ph-accent); text-decoration: underline; }
.wp-block-post-content :where(figure, blockquote) { margin-inline: 0; }
.wp-block-post-content :where(pre, .wp-block-code) { overflow-x: auto; padding: 20px; background: var(--ph-soft); white-space: pre; }
.wp-block-post-content :where(.wp-block-table, table) { max-width: 100%; overflow-x: auto; }
.wp-block-post-content table { display: block; width: 100%; border-collapse: collapse; }
.wp-block-post-content :where(th, td) { padding: 12px; border: 1px solid var(--ph-line); }
.wp-block-post-content :where(blockquote, .wp-block-pullquote) { padding: 20px 24px; border-left: 5px solid var(--ls-highlight); background: var(--ph-soft); }
.wp-block-post-content :where(.toc, #toc_container, .ez-toc-container, #ez-toc-container) { max-width: 100%; width: auto; overflow-wrap: anywhere; }
.ph-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-block: 1px solid var(--ph-line); padding-block: 24px; margin-block: 40px; font-weight: 650; }
.ph-adjacent a { display: inline-block; min-height: 44px; }
.ph-adjacent > :last-child { text-align: right; }
.wp-block-comments { margin-top: 36px; }
body.single-post .comment-respond,
body.single-post .comment-form,
body.single-post .comment-form > p,
body.single-post .comment-form :is(textarea, input:not([type=checkbox]):not([type=radio]), button[type=submit]) {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}
.wp-block-comments input:not([type=checkbox]), .wp-block-comments textarea, .ph-demo-comment input:not([type=checkbox]), .ph-demo-comment textarea { width: 100%; max-width: 100%; padding: 12px; border: 1px solid var(--ph-muted); border-radius: 4px; background: var(--ph-paper); color: var(--ph-ink); }
.wp-block-comments label { display: inline-block; margin-bottom: 8px; }
.ph-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ph-query .wp-block-query-pagination { gap: 8px; margin-top: 32px; flex-wrap: wrap; font-size: 16px; }
.ph-query .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ph-query :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) { display: inline-flex; min-width: 44px; min-height: 44px; padding: 8px 14px; align-items: center; justify-content: center; border: 1px solid var(--ph-line); background: var(--ph-paper); border-radius: 4px; text-decoration: none; margin: 0; }
.ph-query .page-numbers.current { background: var(--ph-accent); color: var(--wp--preset--color--on-primary); }
.ph-footer { padding-block: 48px 24px; background: var(--ph-ink); color: var(--ph-paper); }
.ls-footer-brand { width: min(calc(100% - 2 * var(--ls-gutter)), 1280px); margin-inline: auto; border-bottom: 1px solid color-mix(in srgb, var(--ph-paper) 30%, transparent); padding-bottom: 32px; }
.ls-footer-brand .wp-block-site-title { margin: 0 0 16px; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.04em; }
.ls-footer-brand a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.ls-footer-brand p { max-width: 540px; margin: 0; font-size: 18px; line-height: 1.6; }
.ph-footer-inner { width: min(calc(100% - 2 * var(--ls-gutter)), 1280px); margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.ph-footer-inner p { margin: 0; }
.ph-footer-inner a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.ph-footer a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--ls-highlight); }
.ph-footer a:focus-visible { outline-color: currentColor; }
.aen-back-to-top { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ph-paper); color: var(--ph-ink); border: 1px solid var(--ph-muted); border-radius: 4px; z-index: 25; }
.aen-back-to-top[hidden] { display: none; }
.ph-error { padding: 64px 0 !important; min-height: 60vh; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ph-error .ph-error-code { font-size: clamp(96px, 16vw, 180px); line-height: 1; letter-spacing: -.07em; color: var(--ph-accent); margin: 0; }
.ph-error h2 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.ph-error p { max-width: 500px; margin: 0; }
.ph-error .wp-block-search { width: min(440px, 100%); }
.ph-error .wp-block-search__label { display: block; text-align: left; font-weight: 650; margin-bottom: 8px; }
@media (max-width: 1180px) {
  .ph-header-inner { flex-wrap: wrap !important; gap: 16px; }
  .ph-header .aen-primary-navigation { order: 3; width: 100%; margin-left: 0; }
  .ph-header .wp-block-navigation__container { justify-content: flex-start; gap: 24px; }
  .ph-controls { margin-left: auto !important; }
  .ph-layout { grid-template-columns: minmax(0, 1fr) 250px !important; gap: 24px; }
  .ph-widget { padding: 20px; }
}
@media (max-width: 900px) {
  .ph-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 36px; }
  .ph-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .ph-header-inner { flex-wrap: nowrap !important; min-height: 88px; gap: 10px; padding-block: 16px; }
  .ph-brand { gap: 8px; min-width: 0; }
  .ph-brand .custom-logo { width: 36px; height: 36px; }
  .ph-brand .wp-block-site-title { font-size: 24px; }
  .ph-brand-note { display: none; }
  .ph-controls { order: 2; }
  .ph-controls .ph-theme-toggle { display: none; }
  .ph-header .aen-primary-navigation { order: 3; width: auto; flex-shrink: 0; margin: 0; }
  .ph-header .wp-block-navigation__responsive-container-open { display: flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .ph-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .ph-header .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; background: var(--ph-paper) !important; color: var(--ph-ink) !important; padding: 24px; overflow-y: auto; }
  .ph-header .wp-block-navigation__responsive-dialog { width: 100%; }
  .ph-header .wp-block-navigation__responsive-container-close { top: 0; right: 0; min-width: 44px; min-height: 44px; }
  .ph-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0; align-items: stretch; }
  .ph-header .is-menu-open .aen-menu-brand { display: block; padding: 4px 52px 28px 0; }
  .aen-menu-home { display: block; font-size: 25px; font-weight: 800; text-decoration: none; }
  .aen-menu-logo, .aen-menu-heading { display: none; }
  .ph-header .is-menu-open .wp-block-navigation__container { width: 100%; align-items: stretch; gap: 0; }
  .ph-header .is-menu-open .wp-block-navigation-item { width: 100%; border-top: 1px solid var(--ph-line); }
  .ph-header .is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 16px 0; font-size: 18px; white-space: normal; }
  .ls-intro { padding-block: 32px; }
  .ls-intro p { margin-top: 20px; }
  .ph-main > .ph-shell { padding-top: 24px; }
  .ph-query .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
  .ls-home .wp-block-post-template > li:first-child .ls-review-card { display: flex; padding: 0 0 24px; }
  .ls-home .wp-block-post-template > li:first-child .ls-review-card > :not(.wp-block-post-featured-image) { margin-inline: 20px; }
  .ls-home .wp-block-post-template > li:first-child .wp-block-post-featured-image { margin-bottom: 24px; height: auto; }
  .ls-home .wp-block-post-template > li:first-child .wp-block-post-title { font-size: 28px; }
  .ls-home .wp-block-post-template > li:first-child .wp-block-post-featured-image :is(a, img), .ls-home .wp-block-post-template > li:first-child .aen-no-image { aspect-ratio: 8 / 5; height: auto; min-height: 0; }
  .ls-review-card > :not(.wp-block-post-featured-image) { margin-inline: 20px; }
  .ph-sidebar { grid-template-columns: minmax(0, 1fr); }
  .ph-sheet { padding: 24px 20px; }
  .ph-sheet .wp-block-post-title { font-size: 32px; }
  .wp-block-post-content { font-size: 17px; }
  .ph-form-row, .ph-adjacent { grid-template-columns: minmax(0, 1fr); }
  .ph-adjacent > :last-child { text-align: left; }
  .ph-footer { padding-block: 32px 20px; }
  .ph-footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ls-footer-brand p { font-size: 17px; }
}
@media (max-width: 360px) {
  .ph-brand .custom-logo { width: 28px; height: 28px; }
  .ph-brand .wp-block-site-title { font-size: 21px; }
  .ph-header-inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
