/* Mobile and tablet layouts follow the site's original monochrome identity. */
.library-filter > summary, .mobile-nav-contact { display: none; }
.library-filter { display: contents; }
.library-filter-links { display: contents; }
.toc-disclosure > summary { display: none; }
.toc-summary-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 400; }
.toc-summary-meta svg { transition: transform .2s; }
.toc-disclosure[open] .toc-summary-meta svg { transform: rotate(180deg); }
@media (max-width: 900px) {
  html { scroll-padding-top: 92px; }
  body { -webkit-text-size-adjust: 100%; }
  .site-header { height: 72px; background: #fff; backdrop-filter: none; }
  .header-inner { gap: 16px; }
  .header-actions { gap: 6px; }
  .icon-button { width: 46px; height: 46px; flex-shrink: 0; }
  .mobile-toggle { border: 1px solid var(--line); border-radius: 8px; }
  .mobile-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
  body.mobile-menu-open { position: fixed; top: var(--menu-scroll-top); width: 100%; overflow: hidden; }
  .header-inner #navigation.is-open {
    position: fixed; top: 72px; bottom: 0; left: 0; right: 0;
    height: calc(100vh - 72px); height: calc(100dvh - 72px); max-height: none;
    padding: 16px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background: #fff; box-shadow: none; border: 0; justify-content: flex-start;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .header-inner #navigation > a, .header-inner #navigation .nav-dropdown-trigger {
    min-height: 62px; padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: 20px; font-weight: 500; white-space: normal; line-height: 1.45;
  }
  .header-inner #navigation > a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
  .header-inner #navigation .mobile-nav-contact { display: flex; align-items: center; justify-content: space-between; }
  .nav-dropdown-panel { margin: 12px 0; padding: 6px; background: var(--surface); }
  .header-inner #navigation .nav-all-posts { min-height: 64px; font-size: 16px; }
  .nav-all-posts small { font-size: 13px; }
  .header-inner #navigation .nav-category-grid a { font-size: 14px; padding: 12px; min-height: 48px; }
  .nav-category-grid small { font-size: 12px; }
  .header-inner #navigation .nav-category-grid { gap: 4px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px 32px; }
  .hero-copy { padding: 0; }
  .hero-copy .eyebrow { display: flex; flex-wrap: nowrap; font-size: 11px; letter-spacing: .6px; line-height: 1.7; }
  .status-dot { flex-shrink: 0; }
  .hero h1 { font-size: clamp(34px, 6.2vw, 52px); letter-spacing: -.045em; line-height: 1.16; margin-block: 20px; }
  .hero-intro { font-size: 18px; }
  .hero-description { font-size: 17px; line-height: 1.8; max-width: 620px; margin-bottom: 22px; }
  .hero-actions { gap: 12px 24px; }
  .hero-actions .button, .hero-actions .text-link { font-size: 15px; min-height: 48px; }
  .hero-footnote { font-size: 12px; max-width: none; margin-top: 18px; }
  .hero-visual { width: 100%; min-width: 0; }
  .portrait-frame { height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }
  .portrait-frame > img { object-position: center; }
  .hero-visual figcaption { font-size: 12px; line-height: 1.7; margin-top: 10px; }
  .hero-visual figcaption span { display: inline; color: #6d6d6d; }
  .about-preview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-label { flex-direction: row; align-items: center; justify-content: space-between; }
  .academy-band { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .library, .library-main, .reading-content, .contact-layout > div { min-width: 0; }
  .library-sidebar:has(.library-filter) { display: block; overflow: visible; padding: 0; }
  .library-filter { display: block; width: 100%; border: 1px solid #dedede; border-radius: 10px; background: #fff; }
  .library-filter > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; min-height: 54px; padding: 14px 16px; cursor: pointer; font-size: 15px; line-height: 1.5; }
  .library-filter > summary::-webkit-details-marker { display: none; }
  .library-filter > summary::after { content: '+'; font-size: 24px; line-height: 1; }
  .library-filter[open] > summary::after { content: '−'; }
  .library-filter-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px 10px; }
  .library-filter-links > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
  .library-filter-links > a span { color: var(--muted); font-size: 12px; }
  .library-filter-links > a.selected { background: var(--ink); color: #fff; }
  .library-filter-links > a.selected span { color: #ddd; }
  .library-filter-links > a:hover { background: #f2f2f2; color: #222; }
  .library-filter-links > .sidebar-note { display: none; }
  .library-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breadcrumb { flex-wrap: wrap; gap: 6px 10px; line-height: 1.6; font-size: 12px; }
  .breadcrumb a { padding-block: 5px; }
  .breadcrumb > * { min-width: 0; overflow-wrap: anywhere; }
  .detail-header h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.25; letter-spacing: -.035em; }
  .author-line { gap: 10px; }
  .author-line > div { font-size: 14px; }
  .author-line > div span { font-size: 12px; }
  .author-line img { width: 42px; height: 42px; }
  .author-line .share-button { min-height: 44px; padding: 8px 12px; font-size: 14px; gap: 8px; border: 1px solid var(--line); border-radius: 8px; }
  .detail-cover img { aspect-ratio: auto; border-radius: 8px; }
  .toc-desktop-label { display: none; }
  .toc:has(.toc-disclosure) { padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
  .toc-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; list-style: none; cursor: pointer; line-height: 1.5; min-height: 56px; font-size: 16px; }
  .toc-disclosure > summary::-webkit-details-marker { display: none; }
  .toc-disclosure nav { margin: 0 16px 16px; max-height: 50dvh; overscroll-behavior: contain; }
  .toc-disclosure nav a, .toc-disclosure nav a.toc-level-3 { font-size: 14px; min-height: 44px; padding-block: 11px; line-height: 1.6; }
  .reading-layout { gap: 28px; }
  .prose { font-size: 17px; line-height: 1.85; }
  .prose h2 { font-size: 28px; line-height: 1.35; }
  .prose h3 { font-size: 23px; line-height: 1.4; }
  .prose iframe, .prose video { max-width: 100%; }
  .prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .prose pre, .prose table { overscroll-behavior-x: contain; }
  .search-dialog { width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); padding: 22px; border-radius: 12px; }
  .dialog-input input, .library-search input, .ads-form input { font-size: 16px; }
  .dialog-input .button, .library-search .button { min-height: 46px; font-size: 14px; }
  .search-dialog p { font-size: 14px; line-height: 2; }
  .search-dialog p a { display: inline-block; padding-block: 6px; }
  body:has(.search-dialog[open]) { overflow: hidden; }
  .toast { max-width: calc(100vw - 32px); width: max-content; bottom: max(20px, env(safe-area-inset-bottom)); font-size: 14px; white-space: normal; text-align: center; }
  .ads-hero { grid-template-columns: minmax(0, 1fr); }
  .ads-layout { display: block; }
  .ads-side { position: static; margin-bottom: 28px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
  .ads-side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ads-side nav a { display: flex; align-items: center; min-height: 44px; padding: 6px; font-size: 14px; }
  .ads-side > .button, .ads-side > .text-link { display: none; }
  .ads-contact { grid-template-columns: minmax(0, 1fr); }
  .ads-portrait { max-width: 560px; width: 100%; justify-self: center; }
  .ads-body p, .ads-body .ads-accordion-answer > p, .ads-body > ul { font-size: 16px; line-height: 1.85; }
  .ads-body .ads-accordion > summary h3 { font-size: 16px; }
  .ads-form label { font-size: 14px; }
  .ads-form .button { min-height: 50px; font-size: 16px; }
  .ads-form .ads-privacy { font-size: 13px; }
}
@media (max-width: 650px) {
  .wrap, .header-inner { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .header-cta { display: none; }
  .wordmark img { width: 142px; }
  .hero h1 { font-size: clamp(29px, 8.6vw, 44px); }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: .4px; }
  .hero-description { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .hero-actions .button { padding-inline: 14px; gap: 12px; }
  .hero-actions .text-link { font-size: 14px; gap: 8px; }
  .hero-footnote { font-size: 12px; line-height: 1.65; gap: 3px; }
  .small-line { width: 18px; margin-right: 4px; }
  .portrait-frame { aspect-ratio: 16 / 10; }
  .hero-visual figcaption span { display: block; }
  .expertise-strip { padding-block: 14px; }
  .expertise-strip > .wrap { flex-wrap: wrap; gap: 6px 18px; overflow: visible; }
  .expertise-strip span { flex-basis: 100%; max-width: none; font-size: 11px; margin-bottom: 4px; }
  .expertise-strip a { font-size: 14px; min-height: 36px; display: inline-flex; align-items: center; }
  .journal-section, .about-preview, .faq { padding-block: 44px; }
  .section-heading h2, .services-section .section-heading h2, .about-preview h2, .academy-band h2, .faq h2, .process h2, .related h2 { font-size: 30px; letter-spacing: -.035em; line-height: 1.25; }
  .eyebrow, .section-heading .eyebrow, .about-preview .eyebrow, .academy-band .eyebrow, .faq .eyebrow { font-size: 11px; line-height: 1.7; letter-spacing: 1px; }
  .section-heading > .text-link, .text-link { min-height: 44px; font-size: 14px; }
  .topic-pills { gap: 8px; margin-inline: -20px; padding: 2px 20px 10px; scroll-padding-inline: 20px; }
  .topic-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; font-size: 14px; border-radius: 24px; }
  .cards-grid, .library-cards { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .card-image { border-radius: 9px; }
  .card-body h3 { font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
  .card-body p { font-size: 16px; line-height: 1.75; }
  .card-meta, .card-bottom { font-size: 12px; }
  .card-bottom { padding-top: 12px; }
  .services-section { padding-block: 40px; }
  .services-section .section-heading p { font-size: 16px; line-height: 1.75; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-card:nth-child(n) { border: 1px solid #e3e3e3; border-radius: 10px; padding: 22px; background: #fff; }
  .service-top { margin-bottom: 16px; }
  .service-card h3, .service-card h2 { font-size: 22px; min-height: 0; margin-bottom: 8px; }
  .service-card p { font-size: 16px; min-height: 0; margin-bottom: 12px; line-height: 1.7; }
  .service-link { font-size: 14px; padding-top: 6px; }
  .about-preview p, .academy-band p, .faq details p { font-size: 16px; line-height: 1.8; }
  .about-brand-mark { width: 36px; height: 36px; }
  .academy-band { padding: 26px 22px; border-radius: 10px; }
  .academy-topics a { min-height: 58px; font-size: 18px; }
  .faq summary { font-size: 16px; min-height: 64px; }
  .footer-top { display: block; }
  .footer-top h2 { font-size: 30px; line-height: 1.3; }
  .footer-top .eyebrow { font-size: 11px; line-height: 1.7; }
  .footer-circle { margin-top: 22px; width: 54px; height: 54px; border-radius: 8px; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
  .footer-nav > .wordmark { grid-column: 1 / -1; padding-block: 8px; }
  .footer-nav p { grid-column: 1 / -1; margin: 0 0 16px; font-size: 13px; color: #bbb; }
  .footer-nav > a:not(.wordmark) { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  .footer-bottom { font-size: 12px; gap: 8px 16px; color: #b6b6b6; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .footer-bottom > a { min-height: 44px; display: flex; align-items: center; }
  .page-intro { padding-block: 30px; }
  .page-intro h1, .contact-layout h1 { font-size: clamp(32px, 9vw, 42px); letter-spacing: -.04em; line-height: 1.2; }
  .page-intro > p, .contact-layout > div > p { font-size: 16px; line-height: 1.8; }
  .page-intro > .eyebrow, .detail-header .eyebrow { font-size: 11px; }
  .library-search { padding: 6px 6px 6px 12px; border-radius: 9px; }
  .library-search .button { padding-inline: 14px; }
  .library-search > .icon { width: 18px; }
  .page-intro > .search-feedback { font-size: 12px; }
  .results-label { gap: 12px; font-size: 13px; align-items: center; }
  .results-label > span:last-child { flex-shrink: 0; font-size: 12px; }
  .pagination { gap: 8px; margin-top: 32px; }
  .pagination a { width: 46px; height: 46px; font-size: 15px; border-radius: 8px; }
  .detail-header { padding-block: 24px; }
  .detail-header h1 { font-size: clamp(28px, 7.8vw, 36px); line-height: 1.28; }
  .author-line .share-button { margin-left: auto; }
  .reading-layout { padding-block: 24px 40px; }
  .prose h2 { font-size: 26px; margin-top: 34px; }
  .prose h3 { font-size: 22px; }
  .prose blockquote { padding: 18px; }
  .author-box { padding: 20px 16px; gap: 12px; }
  .author-box img { flex-shrink: 0; }
  .author-box p { font-size: 14px; line-height: 1.75; }
  .update-note { font-size: 12px; }
  .course-section-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .course-section-links .button { min-height: 50px; font-size: 15px; justify-content: space-between; }
  .course-group-heading > p, .course-card-body p { font-size: 16px; line-height: 1.8; }
  .course-group .course-grid, .course-group .course-grid.course-grid-pair { grid-template-columns: minmax(0, 1fr); }
  .course-card { border-radius: 10px; }
  .course-card-body h3 { font-size: 22px; }
  .course-card-body .text-link { font-size: 14px; }
  .contact-layout { padding-block: 34px 44px; }
  .contact-layout .button { width: 100%; min-height: 52px; font-size: 15px; }
  .contact-note { padding: 24px; border-radius: 10px; }
  .contact-note p { font-size: 16px; }
  .note-topics span { font-size: 12px; padding: 8px 10px; }
  .ads-hero h1 { font-size: 34px; line-height: 1.2; }
  .ads-intro { font-size: 16px; }
  .ads-hero .hero-actions { display: flex; flex-direction: column; align-items: stretch; }
  .ads-hero .hero-actions > * { justify-content: center; min-height: 50px; font-size: 15px; }
  .ads-contact { width: calc(100% - 40px); padding: 22px; border-radius: 10px; }
  .ads-contact > div > p { font-size: 16px; }
  .ads-body .ads-accordion > summary { padding: 18px 16px; }
  .ads-body .ads-accordion-answer { padding: 18px 16px; }
  .ads-body > h2 { scroll-margin-top: 90px; }
  .search-dialog { margin-top: 88px; padding: 18px; }
  .dialog-input { padding-left: 10px; gap: 8px; }
  .dialog-input > .icon { display: none; }
}
@media (max-width: 370px) {
  .wrap, .header-inner { width: calc(100% - 32px); }
  .wordmark img { width: 130px; }
  .header-actions { gap: 2px; }
  .hero-actions { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero-actions .text-link { justify-content: center; }
  .hero-footnote .small-line { display: none; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: 0; }
  .library-filter-links, .nav-category-grid { grid-template-columns: minmax(0, 1fr); }
  .author-line .share-button { padding: 8px; }
  .results-label { flex-wrap: wrap; }
}
@media (min-width: 901px) {
  .library-filter-links > a { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 10px 12px; margin-left: -12px; border-radius: 4px; }
  .library-filter-links > a span { color: #8a8a8a; font-size: 12px; }
  .library-filter-links > a.selected { background: #f4f4f4; color: #242424; font-weight: 500; }
  .library-filter-links > a:hover { background: #f8f8f8; }
}
@media (max-width: 370px) {
  .topic-pills { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}
