/* ============================================================================
   compliance-page.css - European Compliance route
   ----------------------------------------------------------------------------
   Loaded after eugeny.css, common-home.css and inner-pages.css. Inherits the
   Common Ground world: ivory paper, ink blue, pale blue band, coral rules,
   Fraunces display against system UI, flat surfaces and hard edges.

   This route has its own rhythm: a two instrument hero plate, a dated law
   calendar, a role register, a pledge ledger where every promise carries its
   article, an ink data map, a rights grid and a primary source appendix.
   No gradients anywhere.
   ========================================================================== */

body.ip-compliance { background-color: var(--ch-ivory); }


/* ----------------------------------------------------------------------------
   01. Hero and the instrument plate
   ------------------------------------------------------------------------- */
.cp-hero { padding: clamp(30px, 4vw, 56px) 0 clamp(8px, 1.2vw, 16px); }

.cp-hero-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(26px, 4.4vw, 72px);
  align-items: end;
}

.cp-hero h1 {
  font-family: var(--ch-display);
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ch-ink);
  max-width: 13ch;
}

.cp-hero .ip-lede { max-width: 46ch; }

.cp-lex {
  border-top: 2px solid var(--ch-ink);
  min-width: 0;
}

.cp-lex-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.4em;
  gap: 2px 12px;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--ch-line);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ch-ease-soft);
}
.cp-lex-row:hover { border-bottom-color: var(--ch-orange); }
.cp-lex-row:focus-visible { outline-offset: 4px; }

.cp-lex-name {
  font-family: var(--ch-display);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ch-ink);
}
.cp-lex-ref {
  font-size: .82rem;
  line-height: 1.4;
  color: var(--ch-label);
  font-variant-numeric: tabular-nums;
}
.cp-lex-date {
  font-size: .82rem;
  line-height: 1.4;
  color: #8a3220;
  font-weight: 600;
}
.cp-lex-go {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 1.4em;
  height: 1.05em;
  color: var(--ch-orange);
  transition: translate .25s var(--ch-ease);
}
.cp-lex-row:hover .cp-lex-go { translate: 4px 0; }

.cp-lex-note {
  margin-top: 12px;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--ch-label);
  max-width: 52ch;
}
.cp-lex-note a {
  color: var(--ch-ink-2);
  text-underline-offset: .2em;
  text-decoration-thickness: .5px;
}
.cp-lex-note a:hover { color: #8a3220; }


/* ----------------------------------------------------------------------------
   02. The law calendar
   ------------------------------------------------------------------------- */
.cp-cal-sec { padding-top: clamp(30px, 3.6vw, 48px); }

.cp-cal {
  list-style: none;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  padding: 0;
  border-top: 2px solid var(--ch-ink);
}
.cp-cal > li {
  display: grid;
  grid-template-columns: clamp(96px, 12vw, 150px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(19px, 2.3vw, 28px) 0;
  border-bottom: 1px solid var(--ch-line);
  align-items: start;
}

.cp-cal-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--ch-display);
  font-variant-numeric: tabular-nums;
}
.cp-cal-day {
  font-size: clamp(1.1rem, 1.65vw, 1.38rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.012em;
  color: var(--ch-ink);
}
.cp-cal-year {
  font-family: var(--ch-ui);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: #8a3220;
}

.cp-cal h3 {
  font-family: var(--ch-display);
  font-size: clamp(1.22rem, 1.85vw, 1.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.008em;
  color: var(--ch-ink);
  max-width: 32ch;
}
.cp-cal p {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ch-body);
  max-width: 68ch;
}

.cp-src {
  display: inline-block;
  margin-top: 7px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ch-label);
  text-decoration: none;
  border-bottom: 1px solid var(--ch-line-2);
  padding-bottom: 1px;
  transition: border-color .2s var(--ch-ease-soft), color .2s var(--ch-ease-soft);
}
.cp-src:hover { color: #8a3220; border-bottom-color: var(--ch-orange); }

.cp-cal-note {
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ch-label);
  max-width: 70ch;
}
.cp-cal-note a { color: var(--ch-ink-2); text-underline-offset: .2em; }


/* ----------------------------------------------------------------------------
   03. Roles, on the pale blue band
   ------------------------------------------------------------------------- */
.cp-roles-sec {
  background: var(--ch-band);
  padding: clamp(34px, 4.2vw, 58px) 0;
}
.cp-roles-sec .ip-sec-head { border-bottom-color: rgba(27, 47, 92, .3); }
.cp-roles-sec .ip-sec-head h2 { color: var(--ch-band-ink); }
.cp-roles-sec .ip-stand { color: #22364e; }

/* This page has no kicker, so the head sits as two bottom aligned columns. */
@media (min-width: 1021px) {
  .ip-compliance .ip-sec-head h2,
  .ip-compliance .ip-sec-head .ip-stand { grid-row: 1; }
}

.cp-scope {
  margin-top: clamp(16px, 2vw, 22px);
  font-size: .9rem;
  line-height: 1.58;
  color: #22364e;
  max-width: 92ch;
}
.cp-scope a { color: var(--ch-band-ink); text-underline-offset: .2em; }

.cp-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(18px, 2.2vw, 26px);
  background: rgba(27, 47, 92, .28);
  border: 1px solid rgba(27, 47, 92, .28);
}
.cp-role {
  background: var(--ch-band);
  padding: clamp(17px, 2.1vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cp-role-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8a3220;
}
.cp-role h3 {
  font-family: var(--ch-display);
  font-size: clamp(1.2rem, 1.8vw, 1.46rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ch-band-ink);
}
.cp-role p {
  font-size: .95rem;
  line-height: 1.56;
  color: #22364e;
  max-width: 58ch;
}
.cp-role .cp-src { color: #2b3f60; border-bottom-color: rgba(27, 47, 92, .4); }
.cp-role .cp-src:hover { color: #8a3220; border-bottom-color: #8a3220; }

.cp-note {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  gap: clamp(12px, 2.6vw, 40px);
  margin-top: clamp(18px, 2.2vw, 26px);
  padding-top: 16px;
  border-top: 1px solid rgba(27, 47, 92, .3);
}
.cp-note h3 {
  font-family: var(--ch-display);
  font-size: clamp(1.1rem, 1.5vw, 1.26rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ch-band-ink);
  max-width: 18ch;
}
.cp-note p {
  font-size: .92rem;
  line-height: 1.56;
  color: #22364e;
  max-width: 76ch;
}


/* ----------------------------------------------------------------------------
   04. The pledge ledger
   ------------------------------------------------------------------------- */
.cp-pledges {
  list-style: none;
  margin: clamp(22px, 2.8vw, 34px) 0 0;
  padding: 0;
  border-top: 2px solid var(--ch-ink);
}
.cp-pledge {
  display: grid;
  grid-template-columns: clamp(38px, 4.4vw, 58px) minmax(0, 1fr) clamp(148px, 16vw, 210px);
  gap: clamp(12px, 2.4vw, 32px);
  padding: clamp(18px, 2.3vw, 28px) 0;
  border-bottom: 1px solid var(--ch-line);
  align-items: start;
}
.cp-pledge-num {
  padding-top: .38em;
  font-family: var(--ch-display);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #8a3220;
  font-variant-numeric: tabular-nums;
}
.cp-pledge h3 {
  font-family: var(--ch-display);
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ch-ink);
  max-width: 26ch;
}
.cp-pledge-body p {
  margin-top: 7px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ch-body);
  max-width: 70ch;
}
.cp-pledge-body a {
  color: var(--ch-ink);
  text-underline-offset: .22em;
}
.cp-pledge-body a:hover { color: #8a3220; }

.cp-duty {
  border-left: 1px solid var(--ch-line);
  padding-left: clamp(10px, 1.4vw, 16px);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cp-duty span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ch-label);
}
.cp-duty a {
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ch-ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--ch-line-2);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s var(--ch-ease-soft), border-color .2s var(--ch-ease-soft);
  font-variant-numeric: tabular-nums;
}
.cp-duty a:hover { color: #8a3220; border-bottom-color: var(--ch-orange); }


/* ----------------------------------------------------------------------------
   05. The data map, on ink
   ------------------------------------------------------------------------- */
.cp-map-band {
  background: var(--ch-ink);
  color: #efe9da;
  padding: clamp(36px, 4.6vw, 64px) 0;
}
.cp-map-band ::selection { background: #f4eee1; color: var(--ch-ink); }
.cp-map-band :focus-visible { outline-color: #f4eee1; }
.cp-map-band a:hover { color: #fdf8ea; }
.cp-map-band .ch-dot { color: var(--ip-accent-on-ink); }
.cp-map-head {
  display: grid;
  grid-template-columns: minmax(0, .46fr) minmax(0, .54fr);
  gap: clamp(14px, 3vw, 48px);
  align-items: end;
  padding-bottom: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid rgba(247, 242, 228, .3);
}
.cp-map-head h2 {
  font-family: var(--ch-display);
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.014em;
  color: #fdf8ea;
  max-width: 16ch;
}
.cp-map-head p {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.56;
  color: #dbe2ea;
  max-width: 48ch;
}

.cp-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(18px, 2.2vw, 26px);
  background: rgba(247, 242, 228, .26);
  border: 1px solid rgba(247, 242, 228, .26);
}
.cp-map-col {
  background: var(--ch-ink);
  padding: clamp(17px, 2.1vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cp-map-key {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ip-accent-on-ink);
}
.cp-map-col h3 {
  font-family: var(--ch-display);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fdf8ea;
}
.cp-map-col p {
  font-size: .93rem;
  line-height: 1.56;
  color: #dbe2ea;
  max-width: 40ch;
}
.cp-map-col a { color: #f2ecdd; text-underline-offset: .2em; }

.cp-map-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 228, .18);
}
.cp-map-foot p {
  font-size: .86rem;
  line-height: 1.5;
  color: #cfd9e3;
  max-width: 62ch;
}
.cp-map-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.cp-map-links .ch-link { font-size: .86rem; }


/* ----------------------------------------------------------------------------
   06. Rights
   ------------------------------------------------------------------------- */
.cp-rights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--ch-line);
  border: 1px solid var(--ch-line);
}
.cp-right {
  background: var(--ch-ivory);
  padding: clamp(13px, 1.7vw, 19px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cp-right h3 {
  font-family: var(--ch-ui);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ch-ink);
}
.cp-right a {
  align-self: flex-start;
  font-size: .76rem;
  font-weight: 600;
  color: #8a3220;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  font-variant-numeric: tabular-nums;
}
.cp-right a:hover { border-bottom-color: #8a3220; }

.cp-rights-note {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ch-body);
  max-width: 88ch;
}
.cp-rights-note a { color: var(--ch-ink); text-underline-offset: .2em; }


/* ----------------------------------------------------------------------------
   07. Coda
   ------------------------------------------------------------------------- */
.cp-coda {
  background: var(--ch-band);
  padding: clamp(34px, 4.4vw, 60px) 0;
}
.cp-coda-grid {
  display: grid;
  grid-template-columns: minmax(0, .56fr) minmax(0, .44fr);
  gap: clamp(18px, 3.6vw, 56px);
  align-items: end;
}
.cp-coda h2 {
  font-family: var(--ch-display);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.014em;
  color: var(--ch-band-ink);
  max-width: 21ch;
}
.cp-coda p {
  font-size: clamp(.98rem, 1.05vw, 1.06rem);
  line-height: 1.6;
  color: #22364e;
  max-width: 44ch;
}
.cp-coda-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 16px;
}
.cp-coda-links .ch-link { font-size: .9rem; }


/* ----------------------------------------------------------------------------
   08. Primary sources
   ------------------------------------------------------------------------- */
.cp-sources {
  background: var(--ch-ivory-2);
  border-top: 1px solid var(--ch-line-2);
  padding: clamp(28px, 3.6vw, 46px) 0 clamp(30px, 4vw, 52px);
}
.cp-sources-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ch-line-2);
}
.cp-sources-head h2 {
  font-family: var(--ch-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ch-ink);
}
.cp-sources-head p {
  font-size: .78rem;
  color: var(--ch-label);
  font-variant-numeric: tabular-nums;
}
.cp-source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-source {
  display: grid;
  grid-template-columns: clamp(34px, 4vw, 52px) minmax(0, 1fr);
  gap: clamp(10px, 2vw, 22px);
  padding: 12px 0;
  border-bottom: 1px solid var(--ch-line);
}
.cp-source-num {
  padding-top: .2em;
  font-family: var(--ch-display);
  font-size: .78rem;
  font-weight: 600;
  color: #8a3220;
  font-variant-numeric: tabular-nums;
}
.cp-source h3 {
  font-family: var(--ch-ui);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ch-ink);
}
.cp-source p {
  margin-top: 2px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ch-body);
  max-width: 92ch;
}
.cp-source a {
  color: var(--ch-ink-2);
  text-decoration-thickness: .5px;
  text-underline-offset: .2em;
}
.cp-source a:hover { color: #8a3220; }


/* ----------------------------------------------------------------------------
   09. Motion, one authored entrance and the calendar settling
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cp-hero-copy > * { animation: ip-rise .75s var(--ch-ease) both; }
  .cp-hero-copy h1 { animation-delay: .04s; }
  .cp-hero-copy .ip-lede { animation-delay: .12s; }
  .cp-hero-copy .ch-cta-row { animation-delay: .2s; }
  .cp-lex { animation: ip-rise .8s var(--ch-ease) .1s both; }

  .cp-cal > li {
    animation: ip-settle .6s var(--ch-ease) both;
    animation-timeline: view();
    animation-range: entry 2% cover 18%;
  }
}

@supports not (animation-timeline: view()) {
  .cp-cal > li { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hero-copy > *,
  .cp-lex,
  .cp-cal > li { animation: none !important; }
  .cp-lex-row:hover .cp-lex-go { translate: none; }
}


/* ----------------------------------------------------------------------------
   10. Responsive, 360 to 1440
   ------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .cp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
  .cp-hero h1 { max-width: 16ch; font-size: clamp(2.4rem, 7vw, 3.5rem); }
  .cp-lex { max-width: 34rem; }
  .cp-coda-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }

  .cp-pledge { grid-template-columns: 40px minmax(0, 1fr); }
  .cp-duty {
    grid-column: 2;
    border-left: 0;
    border-top: 1px solid var(--ch-line);
    padding: 8px 0 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
  }
}

@media (max-width: 860px) {
  .cp-roles { grid-template-columns: minmax(0, 1fr); }
  .cp-note { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cp-map-head { grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
  .cp-map { grid-template-columns: minmax(0, 1fr); }
  .cp-rights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .cp-cal > li { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .cp-cal-date { flex-direction: row; align-items: baseline; gap: 8px; }
  .cp-cal-year { font-size: .7rem; }
  .cp-pledge { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .cp-pledge-num { font-size: .78rem; }
  .cp-duty { grid-column: 1 / -1; padding-left: 0; }
  .cp-map-foot { display: block; }
  .cp-map-links { margin-top: 10px; }
  .cp-sources-head { display: block; }
  .cp-sources-head p { margin-top: 4px; }
}

@media (max-width: 520px) {
  .cp-rights { grid-template-columns: minmax(0, 1fr); }
  .cp-hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .cp-coda-links { display: grid; gap: 10px; }
}


/* ----------------------------------------------------------------------------
   11. Print: the page reads as a document
   ------------------------------------------------------------------------- */
@media print {
  .ch-nav,
  .ch-foot,
  .ch-skip,
  .ip-next,
  .cp-hero .ch-cta-row { display: none; }

  body.ip-compliance { background: #fff; color: #000; }
  .cp-roles-sec,
  .cp-coda { background: #fff; }
  .cp-map-band { background: #fff; color: #000; padding: 18px 0; }
  .cp-map-head h2,
  .cp-map-col h3 { color: #000; }
  .cp-map-head p,
  .cp-map-col p,
  .cp-map-foot p { color: #222; }
  .cp-map,
  .cp-map-col { background: #fff; border-color: #999; }
  .cp-map-key { color: #7a2a1a; }
  .cp-map-links .ch-link { color: #000; border-bottom-color: #000; }
  .cp-map-links .ch-ic { color: #000; }
  .cp-pledge,
  .cp-source,
  .cp-cal > li { break-inside: avoid; }
}
