/*
 * Page « Les degrés » — WP page 427.
 * Companion to Cadences / Harmonisation (recap visual language).
 * Scoped styling only: no changes to Gutenberg or TablePress 14 data.
 */
body.page-id-427 #page-427 {
  --mhg-degres-accent: #8C692A;
  --mhg-degres-accent-dark: #6F521F;
  --mhg-degres-paper: #FAF8F3;
  --mhg-degres-tint: #F3EEE4;
  --mhg-degres-ui: #F8F8F8;
  --mhg-degres-ink: #222222;
  --mhg-degres-copy: #444444;
  --mhg-degres-muted: #666666;
  --mhg-degres-border: #DDD7CC;
  color: var(--mhg-degres-ink);
}
body.page-id-427 #page-427,
body.page-id-427 #page-427 * {
  box-sizing: border-box;
}
body.page-id-427 #page-427 .page-header {
  margin-bottom: 24px;
}
body.page-id-427 #page-427 .entry-title {
  margin: 0;
  padding: clamp(22px, 4vw, 36px) clamp(25px, 4vw, 38px);
  border-bottom: 5px solid var(--mhg-degres-accent);
  background: var(--mhg-degres-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-427 #page-427 .entry-content {
  color: var(--mhg-degres-copy);
  font-size: 17px;
  line-height: 1.68;
  overflow-wrap: break-word;
}
/* The one-paragraph introduction is a prominent, calm entry point. */
body.page-id-427 #page-427 .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-degres-border);
  border-left: 5px solid var(--mhg-degres-accent);
  border-radius: 0 12px 12px 0;
  background: var(--mhg-degres-paper);
  color: var(--mhg-degres-ink);
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-reading > .wp-block-group__inner-container {
  min-width: 0;
  max-width: none;
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-reading p {
  margin: 0;
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
}
/* Separators become redundant between standalone cards. */
body.page-id-427 #page-427 .entry-content > hr.wp-block-separator {
  display: none;
}
/* Both existing Gutenberg pillar groups become matching lesson panels. */
body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-section-pilier {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 0 27px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--mhg-degres-border);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(34, 34, 34, .045);
}
body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-section-pilier:nth-of-type(even) {
  background: var(--mhg-degres-paper);
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-section-pilier > .wp-block-group__inner-container {
  max-width: none;
  min-width: 0;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier h2.wp-block-heading {
  margin: 0 0 23px;
  padding: 18px 42px 18px 22px;
  border: 0;
  border-bottom: 4px solid var(--mhg-degres-accent);
  background: var(--mhg-degres-ink);
  color: #FFFFFF;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.24;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  scroll-margin-top: 90px;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier p {
  max-width: 80ch;
  margin: 0 0 17px;
  line-height: 1.68;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier p:has(> table.tablepress) {
  max-width: none;
  width: 100%;
  min-width: 0;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier a {
  color: var(--mhg-degres-accent-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier strong {
  color: var(--mhg-degres-ink);
}
/* Example in C major, as a theory card rather than the legacy purple accent. */
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .mhg-section--theorie {
  --mhg-accent: 140, 105, 42;
  margin: 21px 0 23px;
  padding: 18px 20px;
  border: 1px solid var(--mhg-degres-border);
  border-left: 5px solid var(--mhg-degres-accent);
  border-radius: 0 10px 10px 0;
  background: var(--mhg-degres-tint);
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .mhg-section--theorie::before {
  content: none;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .mhg-section--theorie ul {
  margin: 0;
  padding-left: 20px;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .mhg-section--theorie li {
  margin: 0;
  line-height: 1.65;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .mhg-section--theorie li::marker {
  color: var(--mhg-degres-accent);
}
/* Existing practical / recap callouts, unchanged content. */
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .wp-block-group:is(.is-style-mhg-pedago-practice, .is-style-mhg-pedago-retain) {
  width: 100%;
  max-width: none;
  margin: 20px 0 0;
  padding: 19px 22px;
  border: 1px solid var(--mhg-degres-border);
  border-left: 5px solid var(--mhg-degres-accent);
  border-radius: 0 10px 10px 0;
  background: var(--mhg-degres-paper);
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .wp-block-group:is(.is-style-mhg-pedago-practice, .is-style-mhg-pedago-retain) p {
  max-width: none;
  margin: 0;
}
body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .wp-block-group.is-style-mhg-pedago-practice a {
  text-decoration-thickness: 1px;
}
/* TablePress #14: name / number association stays a seven-column native table. */
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 {
  width: 100%;
  max-width: 100%;
  margin: 23px 0 24px;
  border: 1px solid var(--mhg-degres-border);
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  font-size: .92rem;
  line-height: 1.45;
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 :is(th, td) {
  padding: 17px 11px;
  border-right: 1px solid var(--mhg-degres-border);
  border-bottom: 1px solid var(--mhg-degres-border);
  text-align: center;
  vertical-align: middle;
  overflow-wrap: normal;
  hyphens: auto;
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 tr > :last-child {
  border-right: 0;
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 thead th {
  background: var(--mhg-degres-ink);
  border-bottom: 4px solid var(--mhg-degres-accent);
  color: #FFFFFF;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: .015em;
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 tbody td {
  background: var(--mhg-degres-paper);
  color: var(--mhg-degres-ink);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.5;
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 thead :is(.column-1, .column-4, .column-5) {
  background: var(--mhg-degres-accent-dark);
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 tbody :is(.column-1, .column-4, .column-5) {
  background: var(--mhg-degres-tint);
}
body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 tbody tr:last-child td {
  border-bottom: 0;
}
/* Summary stands apart from the two sections; same dark vocabulary as Cadences. */
body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-pedago-retain {
  width: 100%;
  max-width: none;
  margin: 29px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--mhg-degres-accent);
  border-top: 5px solid var(--mhg-degres-accent);
  border-radius: 14px;
  background: var(--mhg-degres-ink);
  color: #FFFFFF;
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain h2.wp-block-heading {
  margin: 0 0 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--mhg-degres-accent);
  color: #FFFFFF;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain :is(p, li, strong) {
  color: #FFFFFF;
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain ul.wp-block-list {
  margin: 0 0 17px;
  padding-left: 1.55em;
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain li {
  margin: 8px 0;
}
body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain li::marker {
  color: #D8C5A6;
}
/* Reuse the native lesson navigation, emphasize the next learning step. */
body.page-id-427 #page-427 .cours-navigation.page-navigation {
  margin-top: 28px;
  padding-top: 19px;
  border-color: var(--mhg-degres-border);
}
body.page-id-427 #page-427 .cours-navigation.page-navigation .cours-nav-next a {
  border-color: var(--mhg-degres-accent);
  background: var(--mhg-degres-ink);
  color: #FFFFFF;
}
body.page-id-427 #page-427 .cours-navigation.page-navigation .cours-nav-next a::before {
  color: #E8DCCB;
}
body.page-id-427 #page-427 .cours-navigation.page-navigation .cours-nav-next a::after {
  background: var(--mhg-degres-accent);
}
body.page-id-427 #page-427 .entry-content a:focus-visible {
  outline: 3px solid var(--mhg-degres-accent);
  outline-offset: 3px;
}
@media (max-width: 780px) {
  body.page-id-427 #page-427 .entry-content {
    font-size: 16px;
    line-height: 1.65;
  }
  body.page-id-427 #page-427 .entry-title {
    padding: 21px 28px 21px 17px;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
  body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-reading,
  body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-section-pilier,
  body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-pedago-retain {
    padding: 17px;
  }
  body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier h2.wp-block-heading {
    padding: 16px 32px 16px 16px;
  }
  /* Preserve all seven columns: scroll within the table instead of overflowing the page. */
  body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    white-space: nowrap;
  }
  body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 :is(th, td) {
    padding: 13px 16px;
    white-space: nowrap;
    hyphens: none;
  }
}
@media (max-width: 490px) {
  body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier .wp-block-group:is(.is-style-mhg-pedago-practice, .is-style-mhg-pedago-retain) {
    padding: 16px;
  }
  body.page-id-427 #page-427 .cours-navigation.page-navigation {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-427 #page-427 .cours-navigation.page-navigation a {
    transition: none;
  }
}
@media print {
  body.page-id-427 #page-427 .entry-title,
  body.page-id-427 #page-427 .entry-content .is-style-mhg-section-pilier h2.wp-block-heading,
  body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain {
    background: #FFFFFF;
    color: #222222;
    clip-path: none;
  }
  body.page-id-427 #page-427 .entry-content > .is-style-mhg-pedago-retain :is(h2, p, li, strong) {
    color: #222222;
  }
  body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 {
    display: table;
    overflow: visible;
    white-space: normal;
    font-size: 8pt;
  }
  body.page-id-427 #page-427 .entry-content table.tablepress.tablepress-id-14 thead th {
    background: #FFFFFF;
    color: #222222;
  }
  body.page-id-427 #page-427 .entry-content > .wp-block-group.is-style-mhg-section-pilier {
    box-shadow: none;
  }
}
