.gd-hero, .gd-layout {
  --gd-ink: #20464a;
  --gd-teal: #275c5c;
  max-width: 850px;
  margin-inline: auto;
}
.deck-intro.gd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 4vw, 44px);
  text-align: left;
  padding: 10px 0 18px;
  margin-block: 0;
}
.gd-hero .gd-hero-copy { min-width: 0; }
.gd-hero h1 { margin: .25rem 0 .45rem; font-size: clamp(2.15rem, 6.4vw, 3.8rem); }
.gd-hero .gd-hero-copy > p:last-child { margin: 0; max-width: 34em; font-size: 1rem; line-height: 1.5; }
.gd-hero .eyebrow { margin: 0; color: #275c5c; }
.deck-intro.gd-hero img.deck-art { width: clamp(62px, 15vw, 105px); height: auto; max-height: none; margin: 0; transform: rotate(3deg); }
.gd-layout { display: grid; gap: 12px; }
.gd-layout > * { width: 100%; min-width: 0; }
.gd-core {
  padding: clamp(16px, 3.2vw, 30px);
  border: 1px solid #b2c9c3;
  border-radius: 14px;
  background: #e4efea;
  color: #173c40;
}
.gd-core h2 { margin: 0 0 7px; font-size: clamp(1.55rem, 4.7vw, 2.2rem); }
.gd-core > p, .gd-switch > p { margin: 0 0 14px; line-height: 1.5; }
.gd-core > .button, .gd-switch .button, .gd-conversation .button { --accent: #275c5c; min-height: 46px; }
.gd-core > .button:not(.secondary), .gd-conversation .button:not(.secondary) { background: #275c5c; color: white; }
.gd-panel { color: var(--gd-ink); background: #fffef9; border: 1px solid #c5d3ce; border-radius: 11px; }
.gd-panel > summary {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 13px 15px; cursor: pointer; list-style: none; min-height: 56px;
}
.gd-panel > summary::-webkit-details-marker { display: none; }
.gd-panel > summary strong, .gd-panel > summary small { display: block; }
.gd-panel > summary strong { color: #233f46; font-size: 1rem; line-height: 1.35; }
.gd-panel > summary small { margin-top: 2px; font-weight: 400; font-size: .84rem; color: #405c60; line-height: 1.5; }
.gd-count { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; color: #345b58; font-weight: 650; font-size: .88rem; }
.gd-count::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg); }
.gd-panel[open] > summary .gd-count::after { transform: translateY(2px) rotate(225deg); }
.gd-core-list { background: transparent; border: 0; border-top: 1px solid #b4c9c1; border-radius: 0; margin-top: 16px; }
.gd-core-list > summary { padding: 10px 0 0; min-height: 44px; }
.gd-core-list[open] > summary { padding-bottom: 8px; }
.gd-questions, .gd-case-list { list-style: none; margin: 0; padding: 0 15px 6px; }
.gd-core-list .gd-questions { padding-inline: 0; }
.gd-questions li, .gd-case-list li { border-top: 1px solid #d8e1db; }
.gd-questions button, .gd-case-list button { background: transparent; text-align: left; padding: 12px 0; width: 100%; min-height: 48px; font-size: .94rem; line-height: 1.45; color: #1b4249; display: grid; align-items: baseline; grid-template-columns: 2ch minmax(0, 1fr) auto; gap: 10px; }
.gd-case-list button { grid-template-columns: minmax(0, 1fr) auto; }
.gd-questions small { font-size: .8em; color: #47615f; }
.gd-custom .defense-selection { padding: 0 15px 15px; margin: 0; }
.gd-layout .defense-reading-entry, .gd-layout .defense-resume { margin-block: 0; }
.gd-layout .defense-overall, .gd-layout .learning-path { margin-block: 6px; }
.gd-layout .defense-reading-entry { margin-top: 8px; }
.gd-feedback-action { margin-top: 14px; }
.gd-feedback-action p { color: #4a6269; font-size: .82rem; margin: 5px 0 0; }
.gd-dialog {
  --accent: #275c5c;
  color: #203e46; background: #fbfaf6; border: 1px solid #b5cac4; border-radius: 16px;
  width: min(620px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: clamp(17px, 4vw, 30px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 12px 55px #132f3857;
}
.gd-dialog::backdrop { background: #132c36ad; }
html:has(.gd-dialog[open]) { overflow: hidden; }
.gd-dialog h2 { font-size: clamp(1.65rem, 5.1vw, 2.2rem); margin-bottom: 12px; }
.gd-dialog h3 { font-size: 1.04rem; margin: 15px 0 8px; line-height: 1.45; }
.gd-dialog .eyebrow { color: #406762; margin: 8px 0 5px; font-size: .75rem; }
.gd-back, .gd-replay > button { min-height: 44px; border: 0; padding: 6px 0; color: #245d5e; background: transparent; text-decoration: underline; text-underline-offset: 3px; text-align: left; font-size: .9rem; font-weight: 600; }
.gd-scene, .gd-your-words, .gd-coaching p { font-size: 1rem; line-height: 1.55; margin: 0 0 12px; }
.gd-your-words { color: #455c61; font-size: .92rem; }
.gd-your-words strong { margin-right: 3px; }
.gd-quote { margin: 10px 0 14px; padding: 12px 14px; border-inline-start: 4px solid #5c8380; border-radius: 0 8px 8px 0; background: #e3eee9; }
.gd-quote strong { font-size: .8rem; color: #355c58; }
.gd-quote p { margin: 3px 0 0; font: 500 1.14rem/1.5 Georgia, serif; color: #173d42; }
.gd-choices { display: grid; gap: 8px; }
.gd-choices button { width: 100%; min-height: 48px; font-size: 1rem; text-align: left; color: #1e4147; line-height: 1.5; padding: 12px 14px; background: white; border: 1px solid #90aca6; border-radius: 8px; }
.gd-choices button:hover, .gd-choices button:focus-visible { background: #edf5ef; border-color: #2b605f; }
.gd-coaching { border-top: 1px solid #c5d3ce; }
.gd-original { margin-bottom: 15px; }
.gd-original summary { min-height: 44px; line-height: 1.5; padding: 9px 0; color: #245d5e; }
.gd-replay, .gd-switch-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.gd-replay { margin-top: 5px; }
@media (max-width: 600px) {
  .gd-core > .button, .gd-conversation .gd-body > .button, .gd-switch-actions > .button, .gd-feedback-action .button { width: 100%; }
  .gd-switch-actions { display: grid; }
  .gd-layout .defense-resume { display: grid; justify-content: stretch; gap: 8px; }
}
@supports not (height: 100dvh) {
  .gd-dialog { max-height: 90vh; }
}
.gd-panel > summary::after, .gd-panel[open] > summary::after { content: none; }
.gd-core > p { margin: 10px 0 0; }
@media (max-width: 740px) {
  #main:has(> .gd-hero) { padding-top: 12px; }
  #main:has(> .gd-hero) > .crumb { margin-bottom: 8px; }
  .deck-intro.gd-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 3px 0 14px; }
  .deck-intro.gd-hero > .gd-hero-copy { display: contents; }
  .deck-intro.gd-hero .eyebrow { grid-column: 1; grid-row: 1; margin: 0; align-self: end; }
  .deck-intro.gd-hero h1 { grid-column: 1; grid-row: 2; align-self: start; margin: 1px 0; font-size: clamp(1.85rem, 6.4vw, 2.5rem); }
  .deck-intro.gd-hero > img.deck-art { grid-column: 2; grid-row: 1 / 3; width: clamp(48px, 14vw, 64px); }
  .deck-intro.gd-hero .gd-hero-copy > p:last-child { grid-column: 1 / -1; margin: 4px 0 0; font-size: .94rem; }
}
