:root {
  --ink: #191714;
  --muted: #6f6a62;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8cd;
  --accent: #b23b2d;
  --accent-dark: #74251e;
  --olive: #5f6b47;
  --blue: #34566d;
  --dark: #171717;
  --shadow: 0 22px 60px rgba(31, 26, 20, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bilingual pigment knowledge base */
.pigment-page {
  --pigment-cream: #f1ece3;
  --pigment-ink: #171512;
  --pigment-copper: #9f4938;
  background: #f7f4ee;
}

.pigment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(58px, 8vw, 116px) clamp(18px, 5vw, 72px);
  color: #f7f2e8;
  background:
    radial-gradient(circle at 76% 16%, rgba(177, 77, 57, 0.2), transparent 30%),
    linear-gradient(135deg, #151412 0%, #24211d 58%, #171512 100%);
}

.pigment-hero-copy {
  max-width: 820px;
}

.pigment-hero .eyebrow {
  color: #d9957d;
}

.pigment-hero h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(46px, 6.7vw, 88px);
  font-weight: 500;
  line-height: 1.04;
}

.pigment-hero .lead {
  max-width: 720px;
  color: #d7d0c5;
  font-size: clamp(17px, 2vw, 21px);
}

.pigment-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.pigment-hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: white;
}

.pigment-hero-panel {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.pigment-spectrum {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  height: 112px;
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 6px;
}

.pigment-spectrum span {
  background: var(--tone);
}

.pigment-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}

.pigment-hero-stats div {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 14px;
}

.pigment-hero-stats dt {
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.pigment-hero-stats dd {
  margin: 8px 0 0;
  color: #bdb5a9;
  font-size: 12px;
}

.pigment-hero-panel > p {
  margin: 0;
  color: #c8c0b5;
  font-size: 14px;
}

.pigment-method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #efe9de;
}

.pigment-method p {
  margin: 0;
  padding: 24px clamp(16px, 3vw, 38px);
  color: #514b43;
  font-size: 13px;
}

.pigment-method p + p {
  border-left: 1px solid #d8d0c3;
}

.pigment-browser {
  padding: clamp(56px, 7vw, 94px) clamp(18px, 5vw, 72px);
}

.pigment-browser-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.pigment-browser-heading h2,
.pigment-guide h2,
.pigment-source-note h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 500;
}

#resultSummary {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pigment-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) repeat(5, minmax(124px, 0.7fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 16px 42px rgba(31, 26, 20, 0.06);
}

.pigment-toolbar label {
  display: grid;
  gap: 7px;
}

.pigment-toolbar label > span {
  color: #756e65;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pigment-toolbar input,
.pigment-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d8d1c6;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.pigment-toolbar input:focus,
.pigment-toolbar select:focus {
  outline: 2px solid rgba(178, 59, 45, 0.22);
  border-color: var(--accent);
}

.pigment-reset {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d8d1c6;
  border-radius: 5px;
  background: #f3eee6;
  color: #534b42;
  font-weight: 800;
  cursor: pointer;
}

.pigment-family-filters {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.pigment-family {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #d8d1c6;
  border-radius: 999px;
  background: transparent;
  color: #514b43;
  cursor: pointer;
}

.pigment-family.active {
  border-color: #27231f;
  background: #27231f;
  color: white;
}

.pigment-family small {
  opacity: 0.64;
}

.family-dot {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: #77736c;
}

.family-yellow { background: #d5ad25; }.family-orange { background: #d77724; }
.family-red { background: #a83b32; }.family-violet { background: #6d4f82; }
.family-blue { background: #315f88; }.family-green { background: #4f7056; }
.family-brown { background: #765440; }.family-black { background: #292826; }
.family-white { background: #e8e3d9; }.family-misc { background: #77736c; }

.pigment-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.pigment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pigment-table th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  background: #eee8de;
  color: #655e55;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

.pigment-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #ece7df;
  vertical-align: middle;
}

.pigment-table tr:last-child td {
  border-bottom: 0;
}

.pigment-table tbody tr:hover {
  background: #faf7f1;
}

.pigment-table td > strong,
.pigment-table td > span,
.pigment-table td > small,
.pigment-table td > code {
  display: block;
}

.pigment-table td > strong {
  color: #26211c;
  font-size: 14px;
}

.pigment-table td > span:not(.pigment-swatch):not(.hazard-badge):not(.translation-badge) {
  color: #6d665d;
}

.pigment-table td > small {
  margin-top: 3px;
  color: #91897e;
  font-size: 10px;
}

.pigment-table code {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.pigment-swatch,
.detail-swatch {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 50%;
  background: var(--swatch);
}

.pigment-swatch {
  width: 30px;
  height: 30px;
}

.translation-badge {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 7px;
  padding: 2px 6px;
  border: 1px solid #d9d0c3;
  border-radius: 3px;
  color: #786f63;
  font-size: 9px;
}

.translation-badge.reviewed {
  border-color: #b8c7b4;
  background: #edf3eb;
  color: #436049;
}

.record-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.record-badges .translation-badge {
  margin-top: 0;
}

.review-badge {
  display: inline-flex;
  width: fit-content;
  padding: 2px 6px;
  border: 1px solid #d7d0c5;
  border-radius: 3px;
  background: #f2eee7;
  color: #756d63;
  font-size: 9px;
}

.review-badge.deep {
  border-color: #9fb7c3;
  background: #e8f1f4;
  color: #315c70;
  font-weight: 800;
}

.hazard-badge {
  display: inline-flex !important;
  width: fit-content;
  max-width: 190px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.hazard-a { background: #e8f0e5; color: #3e6044; }
.hazard-b { background: #f5edcf; color: #735b18; }
.hazard-c { background: #f5dfd5; color: #8a402d; }
.hazard-d { background: #5c211e; color: white; }
.hazard-unknown { background: #ece9e4; color: #716b64; }

.pigment-detail-button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d4ccc0;
  border-radius: 4px;
  background: white;
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.pigment-detail-button:hover {
  border-color: var(--accent);
}

.pigment-empty {
  padding: 60px 24px;
  color: var(--muted);
  text-align: center;
}

.pigment-more {
  display: flex;
  margin: 22px auto 0;
}

.pigment-guide,
.pigment-source-note {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 7vw, 96px);
  padding: clamp(56px, 7vw, 94px) clamp(18px, 5vw, 72px);
}

.pigment-guide {
  color: #f4eee5;
  background: #1d1b18;
}

.pigment-guide .eyebrow {
  color: #d9957d;
}

.pigment-guide-grid {
  display: grid;
  gap: 0;
}

.pigment-guide-grid article {
  display: grid;
  grid-template-columns: 52px minmax(150px, 0.45fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.guide-number {
  color: #d9957d;
  font-family: Georgia, serif;
}

.pigment-guide-grid h3 {
  margin: 0;
  font-size: 16px;
}

.pigment-guide-grid p {
  margin: 0;
  color: #bdb5a9;
  font-size: 14px;
}

.pigment-source-note {
  border-bottom: 1px solid var(--line);
  background: #ece6dc;
}

.pigment-source-note p {
  color: #4f4942;
}

.pigment-source-note a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pigment-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: #fbf8f2;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.4);
}

.pigment-dialog::backdrop {
  background: rgba(17, 15, 12, 0.72);
  backdrop-filter: blur(3px);
}

.pigment-dialog-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  left: calc(100% - 52px);
  width: 38px;
  height: 38px;
  margin: 12px 12px -50px 0;
  border: 1px solid #d6cfc4;
  border-radius: 50%;
  background: rgba(251, 248, 242, 0.92);
  color: #342e29;
  font-size: 25px;
  cursor: pointer;
}

.detail-header {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  padding: 52px clamp(22px, 5vw, 58px) 34px;
  color: white;
  background: #211e1a;
}

.detail-swatch {
  width: 76px;
  height: 76px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.09);
}

.detail-header h2 {
  margin: 4px 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 500;
}

.detail-header p {
  margin: 0;
  color: #bdb5aa;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.detail-gallery figure {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(190px, 1.1fr);
  min-height: 220px;
  margin: 0;
  background: #f8f4ed;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  background: #e8e2d8;
}

.detail-gallery figcaption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 22px;
}

.detail-gallery figcaption span {
  color: #746c62;
  font-size: 12px;
}

.detail-gallery figcaption small {
  margin-top: 8px;
  color: #8a8176;
  font-size: 10px;
  line-height: 1.5;
}

.detail-gallery a,
.detail-reviewed-sources a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-gallery > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 18px;
  background: #eee8de;
  color: #756d63;
  font-size: 10px;
}

.detail-review-summary,
.detail-review-note {
  padding: 32px clamp(22px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.detail-review-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 5vw, 60px);
  background: #f1ebe1;
}

.detail-review-summary h3 {
  max-width: 700px;
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 500;
  line-height: 1.45;
}

.detail-review-summary aside {
  align-self: end;
  padding-left: 18px;
  border-left: 3px solid #b05b45;
}

.detail-review-summary aside p,
.detail-review-note p {
  margin-bottom: 0;
  color: #665f56;
  font-size: 13px;
}

.detail-review-note {
  background: #f5f0e7;
}

.detail-review-note h3 {
  margin: 0;
  font-size: 21px;
}

.detail-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.detail-practice-grid article {
  min-height: 160px;
  padding: 26px clamp(22px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-practice-grid article:nth-child(even) {
  border-right: 0;
}

.detail-practice-grid article.wide {
  grid-column: 1 / -1;
  min-height: 0;
  border-right: 0;
  border-bottom: 0;
  background: #f8f4ed;
}

.detail-practice-grid :is(p, ul) {
  margin-bottom: 0;
  color: #5f584f;
  font-size: 13px;
  line-height: 1.75;
}

.detail-practice-grid ul {
  padding-left: 1.2em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.detail-block {
  min-height: 150px;
  padding: 26px clamp(22px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.detail-block:nth-child(even) {
  border-right: 0;
}

.detail-label {
  margin-bottom: 12px;
  color: #594f45;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.detail-label span {
  color: #9a9186;
  font-weight: 500;
}

.detail-primary {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
}

.detail-secondary {
  color: #6c645b;
  font-size: 13px;
}

.detail-block small {
  display: block;
  margin-top: 10px;
  color: #938a7f;
}

.detail-hazard,
.detail-course-tags,
.detail-source,
.detail-operations,
.detail-reviewed-sources {
  padding: 28px clamp(22px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.detail-operations {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  gap: 36px;
  background: #23201c;
  color: white;
}

.detail-operations .detail-label {
  color: #dfd4c7;
}

.detail-operations h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 24px;
  font-weight: 500;
}

.detail-operations ol {
  margin: 0;
  padding-left: 1.5em;
  color: #ddd5ca;
  font-size: 13px;
}

.detail-operations li + li {
  margin-top: 10px;
}

.detail-operations .operation-safety {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #f0d5c9;
  font-size: 12px;
}

.detail-reviewed-sources {
  background: #f8f4ed;
}

.detail-reviewed-sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-reviewed-sources a {
  padding: 7px 10px;
  border: 1px solid #d8cfc2;
  border-radius: 4px;
  background: white;
  font-size: 11px;
  font-weight: 800;
}

.detail-reviewed-sources small {
  display: block;
  margin-top: 13px;
  color: #81786e;
}

.detail-hazard > p:last-child {
  margin: 14px 0 0;
  color: #6f665c;
  font-size: 12px;
}

.detail-course-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-course-tags div span {
  padding: 5px 9px;
  border: 1px solid #d7cfc3;
  border-radius: 999px;
  color: #594f45;
  font-size: 11px;
}

.detail-source {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-bottom: 0;
  background: #efe9df;
  font-size: 11px;
}

.detail-source a {
  color: var(--accent-dark);
  font-weight: 800;
}

.detail-source span {
  margin-left: auto;
  color: #7a7268;
}

@media (max-width: 1080px) {
  .pigment-toolbar {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .pigment-search {
    grid-column: span 3;
  }

  .pigment-reset {
    grid-column: span 1;
  }
}

@media (max-width: 800px) {
  .pigment-hero,
  .pigment-guide,
  .pigment-source-note {
    grid-template-columns: 1fr;
  }

  .pigment-hero {
    min-height: 0;
  }

  .pigment-method {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .pigment-method p + p {
    border-top: 1px solid #d8d0c3;
    border-left: 0;
  }

  .pigment-browser-heading {
    display: block;
  }

  #resultSummary {
    margin-top: 16px;
  }

  .pigment-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pigment-search {
    grid-column: 1 / -1;
  }

  .pigment-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .pigment-table,
  .pigment-table tbody,
  .pigment-table tr,
  .pigment-table td {
    display: block;
    width: 100%;
  }

  .pigment-table thead {
    display: none;
  }

  .pigment-table tr {
    display: grid;
    grid-template-columns: 54px 0.7fr 1.5fr;
    gap: 0;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
  }

  .pigment-table td {
    min-width: 0;
    padding: 12px;
    border-bottom: 1px solid #ece7df;
  }

  .pigment-table td:nth-child(1),
  .pigment-table td:nth-child(2),
  .pigment-table td:nth-child(3) {
    grid-row: 1;
  }

  .pigment-table td:nth-child(4),
  .pigment-table td:nth-child(5),
  .pigment-table td:nth-child(6) {
    position: relative;
    padding-top: 30px;
  }

  .pigment-table td:nth-child(4)::before,
  .pigment-table td:nth-child(5)::before,
  .pigment-table td:nth-child(6)::before {
    content: attr(data-label);
    position: absolute;
    top: 10px;
    color: #948b80;
    font-size: 9px;
  }

  .pigment-table td:nth-child(4) { grid-column: 1 / 2; }
  .pigment-table td:nth-child(5) { grid-column: 2 / 3; }
  .pigment-table td:nth-child(6) { grid-column: 3 / 4; }
  .pigment-table td:nth-child(7) { grid-column: 1 / -1; text-align: right; }

  .detail-gallery,
  .detail-review-summary,
  .detail-operations {
    grid-template-columns: 1fr;
  }

  .detail-gallery figure {
    grid-template-columns: minmax(140px, 0.8fr) minmax(150px, 1.2fr);
  }

  .detail-operations .operation-safety {
    grid-column: auto;
  }

  .pigment-guide-grid article {
    grid-template-columns: 36px 1fr;
  }

  .pigment-guide-grid p {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .pigment-hero-stats {
    grid-template-columns: 1fr;
  }

  .pigment-spectrum {
    height: 74px;
  }

  .pigment-toolbar {
    grid-template-columns: 1fr;
  }

  .pigment-search,
  .pigment-reset {
    grid-column: auto;
  }

  .pigment-table tr {
    grid-template-columns: 48px 0.7fr 1.5fr;
  }

  .detail-header {
    grid-template-columns: 54px 1fr;
    gap: 16px;
  }

  .detail-swatch {
    width: 52px;
    height: 52px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery figure,
  .detail-practice-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery img {
    min-height: 190px;
    max-height: 260px;
  }

  .detail-practice-grid article,
  .detail-practice-grid article:nth-child(even) {
    border-right: 0;
  }

  .detail-practice-grid article.wide {
    grid-column: auto;
  }

  .detail-block,
  .detail-block:nth-child(even) {
    border-right: 0;
  }

  .detail-source span {
    width: 100%;
    margin-left: 0;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(25, 23, 20, 0.09);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand span {
  display: none;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #38332d;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  background: #eee7dd;
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-size: 22px;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: min(760px, calc(100vh - 76px));
}

.page-hero.compact {
  display: block;
  min-height: 0;
  max-width: 980px;
  padding-bottom: 24px;
}

.hero-copy,
.page-hero > div:first-child {
  max-width: 820px;
}

.hero-copy h1 {
  font-size: clamp(40px, 4.8vw, 58px);
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: #4b463f;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: var(--panel);
  color: var(--accent-dark);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(38px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-intro p:last-child {
  color: #4c463f;
  font-size: 18px;
}

.feature-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.gallery-card,
.course-card,
.article-card,
.product-card,
.contact-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(31, 26, 20, 0.06);
}

.feature-card,
.gallery-card {
  overflow: hidden;
}

.feature-card img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.feature-card span,
.feature-card h3,
.feature-card p,
.gallery-card h2,
.gallery-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.feature-card span {
  display: block;
  margin-top: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.feature-card p,
.gallery-card p,
.course-card p,
.article-card p,
.product-card p {
  color: var(--muted);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.stats-band div {
  min-height: 150px;
  padding: 30px;
  background: #eee7dd;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-size: 46px;
  line-height: 1;
}

.stats-band span {
  margin-top: 12px;
  color: var(--muted);
}

.dark-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--dark);
  color: white;
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  padding: 24px;
}

.course-card.large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: center;
}

.course-card.large img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.course-card span {
  color: var(--olive);
  font-weight: 800;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.tools {
  display: flex;
  align-items: end;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.tools label {
  display: grid;
  gap: 6px;
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tools input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font: inherit;
}

.chip {
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
}

.article-card,
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 20px;
}

.article-card time,
.product-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.article-card h2,
.product-card h2 {
  margin: 10px 0;
  font-size: 22px;
}

.article-card .text-link,
.product-card .text-link {
  margin-top: auto;
}

.product-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.daily-hero {
  max-width: 1040px;
}

.daily-list {
  padding-top: 18px;
}

.daily-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.daily-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.daily-card div {
  padding: clamp(22px, 4vw, 46px);
}

.daily-card time,
.daily-card span {
  display: inline-block;
  margin: 0 10px 12px 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.daily-card h2 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
}

.daily-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.daily-article {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 72px) clamp(18px, 5vw, 64px);
}

.daily-article-header {
  max-width: 940px;
}

.daily-artwork {
  margin: 38px 0;
}

.daily-artwork img {
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 8px;
  background: #eee7dd;
  box-shadow: var(--shadow);
}

.daily-artwork figcaption {
  max-width: 840px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.daily-section,
.daily-practice,
.daily-source {
  max-width: 900px;
  margin-top: 34px;
}

.daily-section p,
.daily-practice li,
.daily-source p {
  color: #403b35;
  font-size: 18px;
}

.daily-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.daily-skill-grid article,
.daily-practice,
.daily-source {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.daily-skill-grid span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.daily-skill-grid h2 {
  margin: 10px 0;
  font-size: 24px;
}

.daily-skill-grid p {
  margin: 0;
  color: var(--muted);
}

.daily-source a {
  color: var(--accent-dark);
  font-weight: 900;
}

.contact-card {
  padding: 28px;
}

.contact-grid article {
  padding: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.content-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 64px);
}

.content-page h1 {
  max-width: 900px;
  font-size: clamp(34px, 4.8vw, 58px);
}

.content-meta {
  color: var(--muted);
  font-weight: 800;
}

.wp-content {
  display: flow-root;
  margin-top: 32px;
  color: #2f2b26;
  font-size: 17px;
}

.wp-content :is(h1, h2, h3, h4) {
  margin-top: 36px;
}

.wp-content p {
  margin-bottom: 18px;
}

.wp-content a {
  color: var(--accent-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wp-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(31, 26, 20, 0.1);
}

.detail-intro {
  max-width: 820px;
  margin: 0 0 28px;
  color: #4c463f;
  font-size: 18px;
}

.detail-copy {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.detail-copy h3 {
  margin: 18px 0 0;
  font-size: 24px;
}

.detail-copy p {
  margin: 0;
  color: #4a443e;
}

.artwork-grid,
.course-image-grid {
  display: grid;
  gap: 12px;
}

.artwork-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.gallery-detail.content-page {
  max-width: 1500px;
}

.gallery-detail .wp-content {
  margin-top: 24px;
}

.course-image-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-detail .wp-content figure,
.course-detail .wp-content figure {
  margin: 0;
}

.gallery-detail .wp-content img,
.course-detail .wp-content img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.gallery-detail .wp-content img {
  aspect-ratio: 1 / 1;
}

.course-detail .wp-content img {
  aspect-ratio: 4 / 3;
}

.course-image-grid figure:first-child {
  grid-column: 1 / -1;
}

.course-detail.content-page {
  max-width: 1360px;
}

.course-detail.content-page h1 {
  max-width: 1080px;
}

.course-landing {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.course-landing-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 3.2vw, 44px);
}

.course-landing-copy p:not(.eyebrow) {
  color: #4b463f;
  font-size: 18px;
}

.course-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.course-landing-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #eee7dd;
}

.course-landing-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.course-highlight-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(31, 26, 20, 0.05);
}

.course-highlight-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-weight: 900;
}

.course-highlight-grid p {
  margin: 0;
  color: var(--muted);
}

.course-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.course-note-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f1ea;
}

.course-note-grid h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.course-note-grid p {
  margin: 0;
  color: #4b463f;
}

.contact-hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.9fr);
  min-height: min(740px, calc(100vh - 76px));
}

.contact-hero h1 {
  font-size: clamp(42px, 5.4vw, 78px);
}

.contact-visual {
  margin: 0;
}

.contact-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-card.highlight {
  background: var(--dark);
  color: white;
}

.contact-card.highlight p {
  color: rgba(255, 255, 255, 0.76);
}

.wp-content figure {
  margin: 24px 0;
}

.wp-content figure img {
  margin-bottom: 8px;
}

.wp-content figcaption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.wp-content ul,
.wp-content ol {
  padding-left: 1.4em;
}

.wp-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.wp-content :is(td, th) {
  padding: 10px;
  border: 1px solid var(--line);
}

.missing-image-note {
  display: block;
  max-width: 360px;
  margin: 16px auto;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .hero,
  .page-hero,
  .split-intro,
  .dark-panel,
  .course-card.large,
  .contact-hero,
  .daily-card,
  .course-landing {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid,
  .course-list,
  .card-list,
  .product-list,
  .contact-grid,
  .stats-band,
  .daily-skill-grid,
  .course-image-grid,
  .course-highlight-grid,
  .course-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artwork-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .course-card.large {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    width: 100%;
    justify-content: stretch;
  }

  .nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a {
    background: white;
  }

  .brand img {
    width: 72px;
  }

  h1 {
    font-size: 40px;
  }

  .hero,
  .page-hero {
    min-height: 0;
  }

  .feature-grid,
  .gallery-grid,
  .course-list,
  .card-list,
  .product-list,
  .contact-grid,
  .stats-band,
  .artwork-grid,
  .daily-skill-grid,
  .course-image-grid,
  .course-highlight-grid,
  .course-note-grid {
    grid-template-columns: 1fr;
  }

  .course-card.large {
    grid-column: span 1;
  }

  .daily-card img {
    min-height: 240px;
  }

  .tools {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
/* Course map: a public-facing catalog rather than a file listing. */
.course-map-page { background: #f7f4ef; color: #171614; }
.course-map-page main { position: relative; isolation: isolate; }
.course-map-page main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(980px, 78vw, 1240px);
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(247,244,239,.88) 0%, rgba(247,244,239,.68) 46%, rgba(247,244,239,.84) 100%),
    linear-gradient(180deg, rgba(247,244,239,.68) 0%, rgba(247,244,239,.54) 52%, rgba(247,244,239,.90) 100%),
    url("./assets/course-map-impasto-bg-v1.png?v=20260810-bg1");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(.88) contrast(.95);
  opacity: .94;
}
.course-map-page main > * { position: relative; z-index: 1; }
.course-map-page .site-header { background: rgba(247,244,239,.92); }
.course-map-hero { max-width: 1240px; margin: 0 auto; padding: 110px 32px 72px; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.7fr); gap: 56px; align-items: end; }
.course-map-hero-copy h1 { max-width: none; margin: 22px 0 28px; font-size: clamp(3.2rem, 6.2vw, 6.25rem); line-height: 1.02; letter-spacing: -.065em; }
.course-map-title-line { display: block; white-space: nowrap; }
.course-map-intro-title-line { display: block; white-space: nowrap; }
.course-map-hero-copy h1 em { color: #b6402f; font-style: normal; }
.course-map-lead { max-width: 660px; color: #6d675e; font-size: 1.08rem; line-height: 1.9; }
.course-map-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.course-map-hero-note { border-left: 1px solid #cfc8bd; padding: 0 0 6px 28px; max-width: 330px; justify-self: end; }
.course-map-note-label { color: #b6402f; font-size: .72rem; letter-spacing: .2em; font-weight: 700; }
.course-map-hero-note p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; line-height: 1.32; margin: 16px 0 34px; }
.course-map-mini-stats { display: flex; gap: 18px; color: #888078; font-size: .76rem; line-height: 1.5; }
.course-map-mini-stats span { display: grid; gap: 2px; }
.course-map-mini-stats strong { color: #171614; font-size: 1.1rem; }
.course-map-intro { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); gap: 56px; align-items: end; padding-top: 40px; padding-bottom: 48px; border-top: 1px solid #ded8ce; }
.course-map-intro h2, .course-map-toolbar h2 { font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -.04em; margin: 12px 0 0; }
.course-map-intro > p { max-width: 610px; margin: 0; color: #6d675e; line-height: 1.9; }
.course-map-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-top: 64px; padding-bottom: 30px; }
.course-search { display: flex; align-items: center; gap: 10px; width: min(360px,100%); border-bottom: 1px solid #bcb4a9; padding: 8px 0; color: #8d857c; }
.course-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #171614; font: inherit; }
.course-group-switcher { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 34px; }
.course-group-switcher button { appearance: none; border: 1px solid #d6cfc5; background: transparent; border-radius: 999px; padding: 10px 16px; cursor: pointer; color: #6c665e; font: inherit; transition: .2s ease; }
.course-group-switcher button:hover, .course-group-switcher button.is-active { background: #171614; color: #fff; border-color: #171614; }
.course-groups { display: grid; gap: 80px; }
.course-group { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 42px; align-items: start; padding: 22px 0 76px; border-top: 1px solid #d8d1c7; }
.course-group-cover { position: sticky; top: 100px; aspect-ratio: 16/10; overflow: hidden; background: #ddd4c6; }
.course-group-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.course-group:hover .course-group-cover img { transform: scale(1.03); }
.course-group-cover-overlay { position: absolute; inset: auto 0 0; padding: 52px 22px 18px; display: flex; justify-content: space-between; align-items: end; color: #fff; background: linear-gradient(transparent, rgba(15,13,11,.75)); }
.course-group-cover-overlay span { font-size: .72rem; letter-spacing: .16em; }
.course-group-cover-overlay small { font-size: .68rem; letter-spacing: .08em; opacity: .78; }
.course-group-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.course-group-heading h2 { font-size: clamp(2rem,4vw,4rem); line-height: 1; letter-spacing: -.05em; margin: 10px 0 0; }
.course-total { color: #a09589; font-size: .78rem; white-space: nowrap; }
.course-total strong { color: #b6402f; font-size: 1.2rem; margin-right: 3px; }
.course-group-intro { margin: 25px 0 9px; font-size: 1.08rem; line-height: 1.75; }
.course-group-promise { color: #877f76; line-height: 1.7; margin: 0 0 30px; }
.stage-list { display: grid; gap: 10px; }
.stage-panel { border-top: 1px solid #d8d1c7; }
.stage-panel:last-child { border-bottom: 1px solid #d8d1c7; }
.stage-panel summary { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 15px; align-items: center; list-style: none; cursor: pointer; padding: 18px 0; }
.stage-panel summary::-webkit-details-marker { display: none; }
.stage-index { color: #b6402f; font-family: Georgia, serif; font-size: 1.05rem; }
.stage-summary-copy { display: grid; gap: 4px; }
.stage-summary-copy strong { font-size: 1.08rem; }
.stage-summary-copy small { color: #92897f; }
.stage-count { color: #958b80; font-size: .78rem; white-space: nowrap; }
.stage-count b { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid #cfc7bc; border-radius: 50%; margin-left: 10px; font-weight: 400; font-size: 1rem; transition: transform .2s ease; }
.stage-panel[open] .stage-count b { transform: rotate(45deg); }
.stage-panel-body { padding: 3px 0 26px 59px; }
.stage-overview { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; padding: 8px 0 24px; }
.stage-overview img { width: 150px; height: 108px; object-fit: cover; background: #e6dfd6; }
.stage-overview h3 { margin: 0 0 7px; font-size: 1.05rem; }
.stage-overview p { margin: 0; color: #777067; font-size: .86rem; line-height: 1.7; }
.stage-overview .stage-bridge { margin-top: 9px; color: #4d4943; }
.lesson-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.lesson-card { background: rgba(255,255,255,.52); padding: 17px 17px 15px; min-height: 190px; display: flex; flex-direction: column; transition: background .2s ease, transform .2s ease; }
.lesson-card:hover { background: #fff; transform: translateY(-2px); }
.lesson-card[hidden] { display: none; }
.lesson-card-top { display: flex; justify-content: space-between; align-items: center; color: #9c9184; font-size: .68rem; letter-spacing: .08em; }
.lesson-no { color: #b6402f; font-family: Georgia, serif; font-size: .92rem; }
.lesson-kind { border: 1px solid #ddd6cc; border-radius: 999px; padding: 3px 7px; }
.lesson-card h4 { margin: 13px 0 9px; line-height: 1.3; font-size: .98rem; }
.lesson-card p { color: #827a71; font-size: .77rem; line-height: 1.65; margin: 0 0 14px; flex: 1; }
.lesson-open { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer; color: #b6402f; font: inherit; font-size: .76rem; text-align: left; }
.lesson-open span { display: inline-block; transition: transform .2s ease; }
.lesson-open:hover span { transform: translate(3px,-3px); }
.course-map-cta { background: #171614; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 48px; margin-top: 12px; margin-bottom: 80px; }
.course-map-cta h2 { font-size: clamp(2rem,4vw,3.6rem); letter-spacing: -.05em; line-height: 1; margin: 12px 0 17px; }
.course-map-cta p:not(.eyebrow) { max-width: 650px; margin: 0; color: #c8c0b7; line-height: 1.75; }
.course-map-cta .button { flex: 0 0 auto; }
.course-modal { position: fixed; inset: 0; z-index: 50; display: none; }
.course-modal[aria-hidden="false"] { display: block; }
.course-modal-backdrop { position: absolute; inset: 0; background: rgba(18,16,14,.64); backdrop-filter: blur(4px); }
.course-modal-dialog { position: relative; width: min(880px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: 16px auto; padding: clamp(24px,4vw,48px); background: #f7f4ef; color: #171614; }
.course-modal-close { position: absolute; right: 18px; top: 14px; width: 34px; height: 34px; border: 1px solid #cfc7bc; border-radius: 50%; background: transparent; color: #171614; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-kicker { color: #b6402f; font-size: .73rem; letter-spacing: .13em; text-transform: uppercase; }
.course-modal h2 { max-width: 680px; font-size: clamp(2rem,5vw,4rem); line-height: 1; letter-spacing: -.06em; margin: 14px 0 18px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #8c8278; font-size: .73rem; margin-bottom: 28px; }
.modal-meta span { border: 1px solid #d4ccc1; border-radius: 999px; padding: 5px 8px; }
.modal-layout { display: grid; grid-template-columns: minmax(200px,.75fr) minmax(0,1.25fr); gap: 30px; }
.modal-layout > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e7e0d7; }
.modal-layout h3 { font-size: .92rem; margin: 0 0 7px; }
.modal-layout p { color: #6d675e; font-size: .88rem; line-height: 1.75; margin: 0 0 18px; }
.modal-note { border-left: 2px solid #b6402f; padding: 8px 0 8px 12px; color: #8a8178; font-size: .76rem; line-height: 1.65; margin: 8px 0 22px; }
.modal-open { overflow: hidden; }
@media (max-width: 900px) {
  .course-map-page main::before { height: 1500px; }
  .course-map-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; }
  .course-map-hero-note { justify-self: start; max-width: 470px; }
  .course-map-intro { grid-template-columns: 1fr; gap: 22px; }
  .course-map-title-line, .course-map-intro-title-line { white-space: normal; }
  .course-group { grid-template-columns: 1fr; gap: 28px; }
  .course-group-cover { position: relative; top: auto; aspect-ratio: 16/8; }
}
@media (max-width: 640px) {
  .course-map-page main::before { height: 1720px; }
  .course-map-hero, .course-map-intro, .course-map-toolbar, .course-group-switcher, .course-groups, .course-map-cta { margin-left: 18px; margin-right: 18px; }
  .course-map-hero { padding-left: 0; padding-right: 0; }
  .course-map-title-line, .course-map-intro-title-line { white-space: nowrap; }
  .course-map-hero-copy h1 { font-size: clamp(2.35rem, 13vw, 4.7rem); }
  .course-map-toolbar { display: block; }
  .course-search { margin-top: 24px; width: 100%; }
  .course-group { padding-bottom: 45px; }
  .course-group-heading { align-items: start; display: block; }
  .course-total { display: block; margin-top: 12px; }
  .stage-panel summary { grid-template-columns: 32px minmax(0,1fr) auto; gap: 9px; }
  .stage-panel-body { padding-left: 0; }
  .stage-overview { grid-template-columns: 1fr; }
  .stage-overview img { width: 100%; height: 180px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .course-map-cta { display: block; padding: 30px 24px; }
  .course-map-cta .button { margin-top: 24px; }
  .modal-layout { grid-template-columns: 1fr; }
}

/* OUART learning assistant: a lightweight, knowledge-base-driven entry point. */
.ouart-assistant-widget {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  font-family: inherit;
}
.ouart-assistant-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(260px, calc(100vw - 44px));
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: #171614;
  color: #fffaf2;
  box-shadow: 0 18px 44px rgba(31,27,21,.24);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 16px 8px 8px;
}
.ouart-assistant-trigger img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #000; }
.ouart-assistant-panel {
  position: absolute;
  left: 0;
  bottom: 68px;
  display: grid;
  grid-template-rows: auto auto minmax(180px,1fr) auto auto;
  width: min(420px, calc(100vw - 44px));
  max-height: min(650px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #d7cec2;
  border-radius: 10px;
  background: #fffaf2;
  box-shadow: 0 24px 70px rgba(31,27,21,.24);
}
.ouart-assistant-panel[hidden] { display: none; }
.ouart-assistant-panel header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #e0d8ce; padding:14px 16px; }
.ouart-assistant-panel header span { display:block; color:#b6402f; font-size:11px; font-weight:800; letter-spacing:.14em; }
.ouart-assistant-panel header strong { display:block; margin-top:4px; color:#171614; font-size:17px; }
.ouart-assistant-panel header button { width:34px; height:34px; border:1px solid #d7cec2; border-radius:999px; background:transparent; color:#171614; cursor:pointer; font:inherit; font-size:22px; line-height:1; }
.ouart-assistant-suggestions, .ouart-agent-full-suggestions { display:flex; flex-wrap:wrap; gap:8px; padding:12px 16px; }
.ouart-assistant-suggestions button, .ouart-agent-full-suggestions button { border:1px solid #d7cec2; border-radius:999px; background:#fff; color:#4e4841; cursor:pointer; font:inherit; font-size:13px; padding:8px 10px; }
.ouart-assistant-suggestions button:hover, .ouart-agent-full-suggestions button:hover { border-color:#b6402f; color:#b6402f; }
.ouart-assistant-messages, .ouart-agent-full-messages { min-height:180px; overflow:auto; border-top:1px solid rgba(31,27,21,.08); border-bottom:1px solid rgba(31,27,21,.08); background:#fffdfa; padding:14px; }
.ouart-message { max-width:92%; margin-bottom:10px; border-radius:8px; padding:12px 13px; }
.ouart-message.user { margin-left:auto; border:1px solid #b6402f; background:#fff3e8; color:#2b211b; font-weight:700; }
.ouart-message.agent { margin-right:auto; border:1px solid #e0d8ce; background:#fff; }
.ouart-message h3 { margin:0 0 8px; font-size:18px; }
.ouart-message p, .ouart-message li { color:#4c4943; font-size:14px; line-height:1.65; }
.ouart-message p { margin:0 0 8px; }
.ouart-message ul { margin:8px 0 0; padding-left:1.15em; }
.ouart-answer-meta { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.ouart-answer-meta span { border:1px solid #e0d8ce; border-radius:999px; color:#9a8c7d; font-size:11px; padding:3px 7px; }
.ouart-answer-template, .ouart-answer-collect { margin:10px 0; border-left:2px solid #b6402f; background:#fff8ef; padding:8px 10px; }
.ouart-answer-template p { margin:0 0 5px; }
.ouart-answer-template p:last-child { margin-bottom:0; }
.ouart-answer-collect strong { display:block; margin-bottom:4px; color:#6b5548; font-size:12px; }
.ouart-answer-caution, .ouart-answer-related { color:#8b6d5d !important; font-size:12px !important; }
.ouart-answer-links, .ouart-answer-followups { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.ouart-answer-links a, .ouart-answer-followups button { border:1px solid #d7cec2; border-radius:999px; background:#fff; color:#b6402f; cursor:pointer; font:inherit; font-size:12px; padding:5px 8px; text-decoration:none; }
.ouart-answer-followups button:hover, .ouart-answer-links a:hover { background:#b6402f; color:#fff; }
.ouart-assistant-form, .ouart-agent-full-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:12px 14px 8px; }
.ouart-assistant-form textarea, .ouart-agent-full-form textarea { width:100%; min-height:56px; resize:vertical; border:1px solid #d7cec2; border-radius:8px; background:#fff; color:#171614; font:inherit; font-size:14px; line-height:1.5; padding:10px; }
.ouart-assistant-form button { align-self:stretch; border:0; border-radius:8px; background:#171614; color:#fff; cursor:pointer; font:inherit; font-weight:700; padding:0 14px; }
.ouart-assistant-note { margin:0; color:#776e65; font-size:12px; line-height:1.5; padding:0 14px 12px; }
.ouart-assistant-note a { color:#b6402f; margin-left:5px; }

.ouart-agent-page { background:#f7f4ef; color:#171614; }
.ouart-agent-shell { max-width:1240px; margin:0 auto; padding:96px 32px 80px; display:grid; grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr); gap:56px; align-items:start; }
.ouart-agent-intro { position:sticky; top:110px; }
.ouart-agent-intro h1 { margin:16px 0 22px; font-size:clamp(3rem,6vw,5.8rem); line-height:.98; letter-spacing:-.07em; }
.ouart-agent-intro h1 em { color:#b6402f; font-style:normal; }
.ouart-agent-intro > p:not(.eyebrow) { max-width:440px; color:#6d675e; font-size:1.05rem; line-height:1.85; }
.ouart-agent-capabilities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:36px; }
.ouart-agent-capabilities article { border-top:1px solid #d7cec2; padding-top:11px; }
.ouart-agent-capabilities span { display:block; color:#b6402f; font-size:.72rem; letter-spacing:.12em; }
.ouart-agent-capabilities strong { display:block; margin-top:6px; font-size:.9rem; line-height:1.55; }
.ouart-agent-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.ouart-agent-links a { border-bottom:1px solid #b6402f; color:#b6402f; font-size:.86rem; padding-bottom:2px; text-decoration:none; }
.ouart-agent-console { border:1px solid #d7cec2; border-radius:10px; background:#fffaf2; box-shadow:0 20px 60px rgba(31,27,21,.10); overflow:hidden; }
.ouart-agent-toolbar { display:flex; align-items:end; justify-content:space-between; gap:20px; padding:24px 26px 18px; }
.ouart-agent-toolbar h2 { margin:8px 0 0; font-size:clamp(2rem,4vw,3.5rem); line-height:1; letter-spacing:-.05em; }
.ouart-agent-toolbar > button { border:1px solid #d7cec2; border-radius:999px; background:#fff; color:#6d675e; cursor:pointer; font:inherit; padding:8px 12px; }
.ouart-agent-full-messages { min-height:470px; max-height:620px; padding:18px; }
.ouart-agent-full-form { padding:16px 18px 10px; }
.ouart-agent-full-form button { align-self:stretch; min-width:92px; }
.ouart-agent-disclaimer { margin:0; border-top:1px solid #e0d8ce; color:#786f66; font-size:.8rem; line-height:1.6; padding:12px 18px 16px; }

@media (max-width: 900px) {
  .ouart-agent-shell { grid-template-columns:1fr; gap:34px; padding-top:64px; }
  .ouart-agent-intro { position:static; }
  .ouart-agent-intro h1 { font-size:clamp(3rem,12vw,5rem); }
}
@media (max-width: 560px) {
  .ouart-assistant-widget { left:14px; right:14px; bottom:14px; }
  .ouart-assistant-trigger { max-width:100%; }
  .ouart-assistant-panel { left:0; right:0; bottom:66px; width:auto; max-height:calc(100vh - 96px); }
  .ouart-assistant-messages { max-height:calc(100vh - 290px); }
  .ouart-assistant-form, .ouart-agent-full-form { grid-template-columns:1fr; }
  .ouart-assistant-form button, .ouart-agent-full-form button { min-height:44px; }
  .ouart-agent-shell { margin:0 18px; padding-left:0; padding-right:0; }
  .ouart-agent-capabilities { grid-template-columns:1fr; }
  .ouart-agent-toolbar { align-items:start; flex-direction:column; }
  .ouart-agent-full-messages { min-height:360px; }
}
