/* Page 358 only. Existing Gutenberg groups, media and study controls stay intact. */
body.page-id-358 #page-358 {
  --penta-gold: #8C692A;
  --penta-gold-dark: #6F521F;
  --penta-ink: #222222;
  --penta-copy: #444444;
  --penta-muted: #666666;
  --penta-white: #FFFFFF;
  --penta-paper: #FAF8F3;
  --penta-tint: #F3EEE4;
  --penta-ui: #F8F8F8;
  --penta-border: #DDD7CC;
  color: var(--penta-copy);
}
body.page-id-358 #page-358,
body.page-id-358 #page-358 * {
  box-sizing: border-box;
}
/* Keep the single native WordPress H1; no generated heading or content filter. */
body.page-id-358 #page-358 > .page-header {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
}
body.page-id-358 #page-358 > .page-header > .entry-title {
  margin: 0;
  padding: clamp(16px, 3vw, 28px) clamp(18px, 3vw, 30px);
  border-bottom: 5px solid var(--penta-gold);
  background: var(--penta-ink);
  color: var(--penta-white);
  font-size: clamp(1.65rem, 3.3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
body.page-id-358 #page-358 > .page-header > .entry-title::after {
  content: none;
}
body.page-id-358 #page-358 .entry-content {
  container: penta-lesson / inline-size;
  color: var(--penta-copy);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
body.page-id-358 #page-358 .entry-content > .wp-block-group {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 0 28px;
  padding: clamp(14px, 2.5vw, 28px);
  border: 1px solid var(--penta-border);
  border-radius: 12px;
  background: var(--penta-white);
}
body.page-id-358 #page-358 .entry-content > .is-style-mhg-reading {
  border-left: 5px solid var(--penta-gold);
  background: var(--penta-paper);
}
body.page-id-358 #page-358 .entry-content > .is-style-mhg-section-pilier.penta-section-tinted {
  background: var(--penta-paper);
}
body.page-id-358 #page-358 .entry-content > .penta-intro {
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  background: none;
}
body.page-id-358 #page-358 .entry-content .wp-block-group__inner-container {
  min-width: 0;
  max-width: none;
}
body.page-id-358 #page-358 .entry-content > hr.wp-block-separator {
  display: none;
}
body.page-id-358 #page-358 .entry-content h2.wp-block-heading {
  margin: 0 0 22px;
  padding: 17px 32px 17px 18px;
  border: 0;
  border-bottom: 4px solid var(--penta-gold);
  background: var(--penta-ink);
  color: var(--penta-white);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.3;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
body.page-id-358 #page-358 .entry-content h3.wp-block-heading {
  color: var(--penta-ink);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.4;
}
body.page-id-358 #page-358 .entry-content p {
  margin: 0 0 17px;
  line-height: 1.7;
}
body.page-id-358 #page-358 .entry-content p:last-child {
  margin-bottom: 0;
}
body.page-id-358 #page-358 .entry-content strong {
  color: var(--penta-ink);
}
body.page-id-358 #page-358 .entry-content h2.wp-block-heading strong {
  color: inherit;
}
body.page-id-358 #page-358 .entry-content a {
  color: var(--penta-gold-dark);
  text-decoration: underline;
  text-underline-offset: .18em;
}
body.page-id-358 #page-358 .entry-content a:hover {
  text-decoration-thickness: 2px;
}
/* The construction formula remains explicit wherever the theory is placed. */
body.page-id-358 #page-358 .entry-content .penta-formula {
  padding: 15px 17px;
  border: 1px solid var(--penta-border);
  border-left: 3px solid var(--penta-gold);
  background: var(--penta-tint);
}
body.page-id-358 #page-358 .entry-content .penta-formula > strong {
  color: var(--penta-gold-dark);
}
/* Native group/list navigation before the five unchanged position anchors. */
body.page-id-358 #page-358 .entry-content .penta-position-nav {
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--penta-border);
  border-radius: 8px;
  background: var(--penta-tint);
}
body.page-id-358 #page-358 .entry-content .penta-position-nav ul.wp-block-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-id-358 #page-358 .entry-content .penta-position-nav li {
  min-width: 0;
  margin: 0;
}
body.page-id-358 #page-358 .entry-content .penta-position-nav a {
  display: flex;
  min-height: 44px;
  padding: 8px 4px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--penta-gold);
  border-radius: 6px;
  background: var(--penta-white);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
body.page-id-358 #page-358 .entry-content .penta-position-nav a:hover {
  background: var(--penta-gold-dark);
  color: var(--penta-white);
}
/* Give the diagrams the available mobile width without a second outer frame. */
body.page-id-358 #page-358 .entry-content > .penta-positions {
  padding: 0;
  border: 0;
  background: none;
}
body.page-id-358 #page-358 .entry-content .penta-positions h2.wp-block-heading {
  margin-bottom: 12px;
  padding: 10px 24px 10px 14px;
}
/* A position is the same set of notes in another fretboard area. One visual treatment. */
body.page-id-358 #page-358 .entry-content h3[id^="position-"] {
  max-width: 516px;
  margin: 32px auto 12px;
  padding: 11px 16px;
  border-left: 5px solid var(--penta-gold);
  background: var(--penta-tint);
  scroll-margin-top: 110px;
}
body.page-id-358 #page-358 .entry-content figure.wp-block-image {
  width: 100%;
  max-width: 516px;
  margin: 20px auto 28px;
  padding: clamp(8px, 1.4vw, 16px);
  border: 1px solid var(--penta-border);
  border-radius: 8px;
  background: var(--penta-white);
}
body.page-id-358 #page-358 .entry-content .wp-block-image img {
  display: block;
  width: auto;
  /* All six existing sources are 482px wide; also cap WordPress auto-size images. */
  max-width: min(100%, 482px);
  height: auto;
  margin: 0 auto;
}
/* Group wrappers work with both historical inner containers and current blocks. */
body.page-id-358 #page-358 .entry-content .penta-position-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--penta-border);
  border-radius: 8px;
  background: var(--penta-white);
}
body.page-id-358 #page-358 .entry-content .penta-position-nav + .penta-position-card {
  margin-top: 0;
}
body.page-id-358 #page-358 .entry-content .penta-position-card h3[id^="position-"] {
  max-width: none;
  margin: 0;
  border-radius: 7px 7px 0 0;
  padding: 8px 12px;
}
body.page-id-358 #page-358 .entry-content .penta-position-card figure.wp-block-image {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0 0 7px 7px;
}
body.page-id-358 #page-358 .entry-content .penta-position-reminder {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--penta-gold);
  background: var(--penta-tint);
}
/* The same five native groups form rows without changing their document order. */
body.page-id-358 #page-358 .entry-content .penta-positions,
body.page-id-358 #page-358 .entry-content .penta-positions > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(var(--penta-position-columns, 1), minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
body.page-id-358 #page-358 .entry-content .penta-positions > *,
body.page-id-358 #page-358 .entry-content .penta-positions > .wp-block-group__inner-container > * {
  min-width: 0;
  margin: 0;
}
body.page-id-358 #page-358 .entry-content .penta-positions > :not(.penta-position-card),
body.page-id-358 #page-358 .entry-content .penta-positions > .wp-block-group__inner-container > :not(.penta-position-card) {
  grid-column: 1 / -1;
  max-width: none;
}
@container penta-lesson (min-width: 680px) {
  body.page-id-358 #page-358 .entry-content .penta-positions {
    --penta-position-columns: 2;
  }
}
@container penta-lesson (min-width: 1000px) {
  body.page-id-358 #page-358 .entry-content .penta-positions {
    --penta-position-columns: 3;
  }
}
body.page-id-358 #page-358 .entry-content .mhg-section {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--penta-border);
  border-radius: 8px;
  background: var(--penta-ui);
}
body.page-id-358 #page-358 .entry-content .mhg-section::before {
  content: none;
}
body.page-id-358 #page-358 .entry-content .mhg-section :is(ul, ol).wp-block-list {
  margin: 0;
  padding-left: 1.65em;
}
body.page-id-358 #page-358 .entry-content .mhg-section li {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--penta-border);
  border-radius: 6px;
  background: var(--penta-white);
  line-height: 1.6;
}
body.page-id-358 #page-358 .entry-content .mhg-section li:last-child {
  margin-bottom: 0;
}
body.page-id-358 #page-358 .entry-content .mhg-section li::marker {
  color: var(--penta-gold-dark);
  font-weight: 800;
}
body.page-id-358 #page-358 .entry-content .wp-block-group:is(.is-style-mhg-pedago-retain, .is-style-mhg-pedago-practice, .is-style-mhg-pedago-goal) {
  max-width: none;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--penta-border);
  border-left: 5px solid var(--penta-gold);
  border-radius: 0 8px 8px 0;
  background: var(--penta-tint);
}
body.page-id-358 #page-358 .entry-content .is-style-mhg-pedago-goal > .wp-block-group__inner-container > h3,
body.page-id-358 #page-358 .entry-content .is-style-mhg-pedago-retain h3,
body.page-id-358 #page-358 .entry-content .is-style-mhg-pedago-practice h3 {
  margin: 0 0 10px;
}
body.page-id-358 #page-358 .entry-content .wp-block-file {
  padding: 16px;
  border: 1px solid var(--penta-border);
  border-radius: 8px;
  background: var(--penta-ui);
  font-size: 1rem;
}
body.page-id-358 #page-358 .entry-content .wp-block-file > a:first-of-type {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 12px;
}
body.page-id-358 #page-358 .entry-content .penta-download .wp-block-file {
  margin: 0;
}
/* Editorial resource cards keep one real action link in each native column. */
body.page-id-358 #page-358 .entry-content .penta-card-grid.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
  gap: 18px;
  margin: 20px 0 0;
}
body.page-id-358 #page-358 .entry-content .penta-card-grid > .wp-block-column {
  min-width: 0;
  margin: 0;
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0 20px 20px;
  border: 1px solid var(--penta-border);
  border-radius: 8px;
  background: var(--penta-white);
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card > .wp-block-group__inner-container {
  display: flex;
  flex: 1;
  flex-direction: column;
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card::before {
  content: "";
  display: block;
  height: 10px;
  margin: 0 -20px 18px;
  flex-shrink: 0;
  border-radius: 7px 7px 0 0;
  background: repeating-linear-gradient(90deg, var(--penta-ink) 0, var(--penta-ink) calc(20% - 1px), var(--penta-gold) calc(20% - 1px), var(--penta-gold) 20%);
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card:is(:hover, :focus-within) {
  border-color: var(--penta-gold);
  box-shadow: inset 0 0 0 1px var(--penta-gold);
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card p {
  margin: 0 0 14px;
  color: var(--penta-copy);
  font-size: 1rem;
  line-height: 1.6;
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card .penta-card-kicker {
  margin: 0 0 8px;
  color: var(--penta-gold-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card h3 {
  margin: 0 0 12px;
  color: var(--penta-ink);
  font-size: 1.2rem;
  line-height: 1.35;
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card :is(h3, .penta-card-kicker) strong {
  color: inherit;
}
body.page-id-358 #page-358 .entry-content .penta-discovery-card .penta-card-action {
  margin: auto 0 0;
  padding-top: 8px;
}
body.page-id-358 #page-358 .entry-content .penta-card-action a {
  display: flex;
  min-height: 44px;
  padding: 8px 0;
  align-items: center;
  font-weight: 700;
  line-height: 1.4;
}
body.page-id-358 #page-358 .entry-content > .penta-free-resources {
  background: var(--penta-paper);
}
body.page-id-358 #page-358 .entry-content .penta-resource-card {
  padding: 0 16px 16px;
  background: var(--penta-ui);
}
body.page-id-358 #page-358 .entry-content .penta-resource-card::before {
  height: 4px;
  margin: 0 -16px 14px;
  background: var(--penta-gold);
}
body.page-id-358 #page-358 .entry-content .penta-resource-card h3 {
  font-size: 1.05rem;
}
body.page-id-358 #page-358 .entry-content :is(.wp-block-button__link, .wp-block-file__button, .mhg-open-study-overlay) {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--penta-gold);
  border-radius: 6px;
  background: var(--penta-ink);
  color: var(--penta-white);
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
body.page-id-358 #page-358 .entry-content .mhg-open-study-overlay {
  margin-top: 14px;
}
body.page-id-358 #page-358 .entry-content :is(.wp-block-button__link, .wp-block-file__button, .mhg-open-study-overlay):hover {
  background: var(--penta-gold-dark);
  color: var(--penta-white);
}
/* A discreet download and the existing study action replace the PDF panel. */
body.page-id-358 #page-358 .entry-content > .penta-download-compact.mhg-pdf-download-only {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  scroll-margin-top: 110px;
}
body.page-id-358 #page-358 .entry-content .penta-download-compact p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}
body.page-id-358 #page-358 .entry-content .penta-download-compact a[download],
body.page-id-358 #page-358 .entry-content .penta-download-compact .mhg-open-study-overlay {
  width: auto;
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 8px 0;
  align-items: center;
}
body.page-id-358 #page-358 .entry-content .penta-download-compact a[download] {
  font-weight: 600;
}
body.page-id-358 #page-358 .entry-content .penta-download-compact .mhg-open-study-overlay {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--penta-muted);
  font-size: .95rem;
  font-weight: 500;
  justify-content: flex-start;
  text-align: left;
  text-shadow: none;
  text-decoration: underline;
  text-underline-offset: .18em;
  transform: none;
  transition: none;
}
body.page-id-358 #page-358 .entry-content .penta-download-compact .mhg-open-study-overlay:hover {
  background: none;
  color: var(--penta-gold-dark);
}
body.page-id-358 #page-358 .entry-content :is(a, button):focus-visible {
  outline: 3px solid var(--penta-gold);
  outline-offset: 4px;
}
@media (max-width: 767px) {
  body.page-id-358 #page-358 > .page-header > .entry-title {
    padding: 16px 25px 16px 16px;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
  body.page-id-358 #page-358 .entry-content {
    font-size: 16px;
  }
  body.page-id-358 #page-358 .entry-content .mhg-section {
    padding: 12px;
  }
  body.page-id-358 #page-358 .entry-content .mhg-section li {
    padding: 10px;
  }
}
@media print {
  body.page-id-358 #page-358 > .page-header > .entry-title,
  body.page-id-358 #page-358 .entry-content h2.wp-block-heading {
    background: var(--penta-white);
    color: var(--penta-ink);
    clip-path: none;
  }
  body.page-id-358 #page-358 .entry-content figure.wp-block-image {
    break-inside: avoid;
  }
}
