/*
 * Harmonisation de la gamme majeure — page WordPress 66.
 * Recap / Cadences visual language; scope deliberately limited to this page.
 * The historical TablePress #8 data and Gutenberg blocks remain unchanged.
 */
body.page-id-66 #page-66 {
  --mhg-harm-accent: #8C692A;
  --mhg-harm-accent-dark: #6F521F;
  --mhg-harm-paper: #FAF8F3;
  --mhg-harm-tint: #F3EEE4;
  --mhg-harm-ui: #F8F8F8;
  --mhg-harm-ink: #222222;
  --mhg-harm-copy: #444444;
  --mhg-harm-muted: #666666;
  --mhg-harm-border: #DDD7CC;
  color: var(--mhg-harm-ink);
}
body.page-id-66 #page-66,
body.page-id-66 #page-66 * {
  box-sizing: border-box;
}
body.page-id-66 #page-66 .page-header {
  margin-bottom: 24px;
}
body.page-id-66 #page-66 .entry-title {
  margin: 0;
  padding: clamp(22px, 4vw, 36px) clamp(25px, 4vw, 38px);
  border-bottom: 5px solid var(--mhg-harm-accent);
  background: var(--mhg-harm-ink);
  color: #FFFFFF;
  font-size: clamp(1.65rem, 3.3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
body.page-id-66 #page-66 .entry-content {
  color: var(--mhg-harm-copy);
  font-size: 17px;
  line-height: 1.68;
  overflow-wrap: break-word;
}
body.page-id-66 #page-66 .entry-content > .wp-block-group.is-style-mhg-reading {
  width: 100%;
  max-width: none;
  margin: 0 0 26px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--mhg-harm-border);
  border-left: 5px solid var(--mhg-harm-accent);
  border-radius: 0 12px 12px 0;
  background: var(--mhg-harm-paper);
  color: var(--mhg-harm-ink);
}
body.page-id-66 #page-66 .entry-content > .is-style-mhg-reading .wp-block-group__inner-container {
  min-width: 0;
  max-width: none;
}
body.page-id-66 #page-66 .entry-content > .is-style-mhg-reading p {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  font-weight: 600;
  line-height: 1.58;
}
/* Content group remains native Gutenberg, only visually framed. */
body.page-id-66 #page-66 .entry-content > .wp-block-group.is-style-mhg-section-pilier {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--mhg-harm-border);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(34, 34, 34, .045);
}
body.page-id-66 #page-66 .entry-content > .is-style-mhg-section-pilier > .wp-block-group__inner-container {
  max-width: none;
  min-width: 0;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier h2.wp-block-heading {
  margin: 0 0 24px;
  padding: 18px 42px 18px 22px;
  border: 0;
  border-bottom: 4px solid var(--mhg-harm-accent);
  background: var(--mhg-harm-ink);
  color: #FFFFFF;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier p {
  max-width: 80ch;
  margin: 0 0 17px;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier strong {
  color: var(--mhg-harm-ink);
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier a {
  color: var(--mhg-harm-accent-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}
body.page-id-66 #page-66 .entry-content a:focus-visible,
body.page-id-66 #page-66 .cours-navigation a:focus-visible {
  outline: 3px solid var(--mhg-harm-accent);
  outline-offset: 3px;
}
/* Four chord components: short aligned cards (root, third, fifth, seventh). */
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier > .wp-block-group__inner-container > ul.wp-block-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier > .wp-block-group__inner-container > ul.wp-block-list li {
  min-width: 0;
  margin: 0;
  padding: 15px 12px;
  border: 1px solid var(--mhg-harm-border);
  border-top: 4px solid var(--mhg-harm-accent);
  border-radius: 9px;
  background: var(--mhg-harm-paper);
  color: var(--mhg-harm-ink);
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
}
/* Two worked-out degrees: numbered calculation steps. */
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier ol.wp-block-list {
  counter-reset: mhg-harm-step;
  margin: 16px 0 23px;
  padding: 0;
  list-style: none;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier ol.wp-block-list > li {
  position: relative;
  min-height: 47px;
  margin: 0;
  padding: 12px 12px 12px 54px;
  border-bottom: 1px solid var(--mhg-harm-border);
  counter-increment: mhg-harm-step;
  line-height: 1.6;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier ol.wp-block-list > li::before {
  content: counter(mhg-harm-step);
  position: absolute;
  top: 12px;
  left: 5px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--mhg-harm-accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: .85rem;
  line-height: 1;
}
/* Reminder with links: small course-recap-like pedagogical callout. */
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote {
  max-width: none;
  margin: 22px 0 26px;
  padding: 20px 24px;
  border: 1px solid var(--mhg-harm-border);
  border-left: 5px solid var(--mhg-harm-accent);
  border-radius: 0 11px 11px 0;
  background: var(--mhg-harm-tint);
  color: var(--mhg-harm-copy);
  font-style: normal;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote p {
  max-width: none;
  margin: 0;
}
/* TablePress historical table #8: retain all 7 degrees, 4 constituent rows,
   chord labels, jazz notation and general rule. */
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 {
  width: 100%;
  max-width: 100%;
  margin: 24px 0 25px;
  border: 1px solid var(--mhg-harm-border);
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  font-size: .92rem;
  line-height: 1.5;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 :is(th, td) {
  padding: 11px 12px;
  border-bottom: 1px solid var(--mhg-harm-border);
  border-right: 1px solid var(--mhg-harm-border);
  vertical-align: middle;
  text-align: center;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tr > :last-child {
  border-right: 0;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 thead th {
  border-bottom: 3px solid var(--mhg-harm-accent);
  background: var(--mhg-harm-ink);
  color: #FFFFFF;
  font-weight: 800;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tbody tr:nth-child(even) td {
  background: var(--mhg-harm-paper);
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tbody tr > td:first-child {
  background: var(--mhg-harm-tint);
  color: var(--mhg-harm-ink);
  text-align: left;
  font-weight: 750;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tbody tr.row-6 td {
  background: var(--mhg-harm-tint);
  color: var(--mhg-harm-accent-dark);
  font-weight: 800;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tbody tr.row-6 td:first-child {
  color: var(--mhg-harm-ink);
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tfoot th {
  border-top: 2px solid var(--mhg-harm-accent);
  border-bottom: 0;
  background: var(--mhg-harm-accent-dark);
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.4;
}
body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tfoot th:first-child {
  text-align: left;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote:has(> h5.wp-block-heading) {
  margin: 28px 0 5px;
  padding: 23px 26px;
  border: 1px solid var(--mhg-harm-accent);
  border-top: 5px solid var(--mhg-harm-accent);
  border-radius: 12px;
  background: var(--mhg-harm-ink);
  color: #FFFFFF;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote > h5.wp-block-heading {
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--mhg-harm-accent);
  color: #FFFFFF;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote:has(> h5.wp-block-heading) li {
  margin: 9px 0;
  color: #FFFFFF;
  line-height: 1.55;
}
body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote:has(> h5.wp-block-heading) li::marker {
  color: #D8C5A6;
}
/* Keep legacy page navigation; emphasize the next page in the learning sequence. */
body.page-id-66 #page-66 .cours-navigation.page-navigation {
  margin-top: 28px;
  padding-top: 19px;
  border-color: var(--mhg-harm-border);
}
body.page-id-66 #page-66 .cours-navigation.page-navigation .cours-nav-next a {
  border-color: var(--mhg-harm-accent);
  background: var(--mhg-harm-ink);
  color: #FFFFFF;
}
body.page-id-66 #page-66 .cours-navigation.page-navigation .cours-nav-next a::before {
  color: #E8DCCB;
}
body.page-id-66 #page-66 .cours-navigation.page-navigation .cours-nav-next a::after {
  background: var(--mhg-harm-accent);
}
@media (max-width: 900px) {
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier > .wp-block-group__inner-container > ul.wp-block-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 780px) {
  body.page-id-66 #page-66 .entry-content {
    font-size: 16px;
    line-height: 1.65;
  }
  body.page-id-66 #page-66 .entry-title {
    padding: 21px 28px 21px 17px;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
  body.page-id-66 #page-66 .entry-content > .wp-block-group.is-style-mhg-reading,
  body.page-id-66 #page-66 .entry-content > .wp-block-group.is-style-mhg-section-pilier {
    padding: 17px;
  }
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier h2.wp-block-heading {
    padding: 16px 32px 16px 16px;
  }
  /* Scroll only the table, never the lesson cards or the whole page.
     The original HTML table and all seven degrees remain present. */
  body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    white-space: nowrap;
    font-size: .85rem;
  }
  body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 :is(th, td) {
    padding: 10px 12px;
    white-space: nowrap;
  }
}
@media (max-width: 490px) {
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier > .wp-block-group__inner-container > ul.wp-block-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier ol.wp-block-list > li {
    padding-left: 45px;
  }
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote {
    padding: 16px;
  }
  body.page-id-66 #page-66 .cours-navigation.page-navigation {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-66 #page-66 .cours-navigation.page-navigation a {
    transition: none;
  }
}
@media print {
  body.page-id-66 #page-66 .entry-title,
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier h2.wp-block-heading,
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote:has(> h5.wp-block-heading) {
    clip-path: none;
    background: #FFFFFF;
    color: #222222;
  }
  body.page-id-66 #page-66 .entry-content .is-style-mhg-section-pilier blockquote.wp-block-quote:has(> h5.wp-block-heading) :is(h5, li) {
    color: #222222;
  }
  body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 {
    display: table;
    white-space: normal;
    overflow: visible;
    font-size: 8pt;
  }
  body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 thead th,
  body.page-id-66 #page-66 .entry-content table.tablepress.tablepress-id-8 tfoot th {
    background: #FFFFFF;
    color: #222222;
  }
  body.page-id-66 #page-66 .entry-content > .wp-block-group.is-style-mhg-section-pilier {
    box-shadow: none;
  }
}
