.kc-guides-app {
  --navy-950: #07162d;
  --navy-900: #0b1f3b;
  --navy-800: #132b4d;
  --navy-700: #1a3a63;
  --gold-500: #d3b16c;
  --gold-400: #e0c78d;
  --ivory-100: #f8f5ee;
  --ivory-200: #eee8dc;
  --ink-900: #14223a;
  --ink-700: #435067;
  --ink-500: #626c80;
  --white: #ffffff;
  --shadow-panel: 0 28px 70px rgba(3, 14, 30, 0.25);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.kc-guides-app,
.kc-guides-app * {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.kc-guides-app {
  margin: 0;
  color: var(--ink-900);
  background: var(--ivory-100);
  font-family: var(--sans);
  line-height: 1.7;
}

.kc-guides-app button,
.kc-guides-app a {
  -webkit-tap-highlight-color: transparent;
}

.kc-guides-app button {
  font: inherit;
}

.kc-guides-app a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    340px
    575px
    530px
    minmax(0, 1fr);
  align-items: stretch;
  color: var(--white);
  background:
    radial-gradient(circle at 43% 27%, rgba(33, 75, 119, 0.9), transparent 36%),
    linear-gradient(118deg, #07172f 0%, #0c2544 46%, #06152c 100%);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 5;
  grid-column: 2;
  align-self: center;
  padding: 70px 16px 70px 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-400);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.eyebrow.dark {
  color: #806126;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(3rem, 4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.07em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 28px 0 24px;
  background: var(--gold-500);
}

.hero-intro {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.77);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 2;
}

.beginner-link {
  width: min(260px, 100%);
  margin-top: 38px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(211, 177, 108, 0.68);
  border-radius: 10px;
  color: var(--gold-400);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.beginner-link strong,
.beginner-link small {
  display: block;
}

.beginner-link strong {
  font-family: var(--serif);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
}

.beginner-link small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
}

.beginner-link:hover,
.beginner-link:focus-visible {
  color: var(--navy-950);
  background: var(--gold-400);
  transform: translateY(-2px);
}

.beginner-link:hover small,
.beginner-link:focus-visible small {
  color: rgba(7, 22, 45, 0.7);
}

.portrait-column {
  position: relative;
  grid-column: 3;
  min-width: 0;
}

.portrait-stage {
  position: relative;
  height: 760px;
  min-height: 760px;
  overflow: hidden;
}

.portrait-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 23, 47, 0.92) 0%, transparent 28%),
    linear-gradient(0deg, rgba(7, 22, 45, 0.42) 0%, transparent 28%);
}

.portrait-stage picture,
.portrait-stage img {
  display: block;
  width: 100%;
  height: 100%;
}

.portrait-stage img {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.02);
}

.face-map {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.face-hotspot {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 180ms ease,
    fill 180ms ease,
    stroke 180ms ease,
    filter 180ms ease;
}

.face-dimmer,
.face-spotlight {
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.face-dimmer {
  fill: rgba(4, 20, 44, 0.32);
}

.face-dimmer.is-active {
  opacity: 1;
}

.face-spotlight {
  fill: rgba(241, 216, 184, 0.07);
  filter:
    blur(9px)
    drop-shadow(0 0 16px rgba(235, 207, 171, 0.18));
}

.face-spotlight.is-active {
  opacity: 1;
}

.face-spotlight.is-keyboard-focus {
  fill: rgba(245, 224, 196, 0.12);
  filter:
    blur(8px)
    drop-shadow(0 0 20px rgba(241, 216, 184, 0.28));
}

.face-hotspot:hover,
.face-hotspot:focus-visible,
.face-hotspot.is-preview,
.face-hotspot.is-pinned {
  opacity: 0;
  fill: transparent;
  stroke: transparent;
  filter: none;
  outline: none;
}

.face-hotspot:focus-visible {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  filter: none;
}

.portrait-instruction {
  position: absolute;
  z-index: 8;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(4, 18, 37, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cursor-mark {
  color: var(--gold-400);
}

.mobile-area-controls {
  display: none;
}

.explorer-panel {
  position: relative;
  z-index: 10;
  grid-column: 4;
  align-self: center;
  min-height: 610px;
  margin: 28px 40px 28px -18px;
  padding: 26px 34px 32px;
  color: var(--ink-900);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.99), rgba(247, 243, 234, 0.98));
  border: 1px solid rgba(211, 177, 108, 0.28);
  border-radius: 20px;
  box-shadow: var(--shadow-panel);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ddd5c6;
}

.mode-tabs button {
  position: relative;
  padding: 14px 8px 16px;
  border: 0;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.mode-tabs button::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.mode-tabs button[aria-selected="true"] {
  color: var(--ink-900);
  font-weight: 700;
}

.mode-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.mode-tabs button:focus-visible,
.filter-chips button:focus-visible,
.topic-card:focus-visible,
.clear-selection:focus-visible,
.mobile-area-controls button:focus-visible {
  outline: 3px solid rgba(19, 58, 99, 0.35);
  outline-offset: 2px;
}

.explorer-content {
  padding-top: 24px;
}

.panel-kicker {
  margin: 0 0 6px;
  color: #806126;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.panel-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.explorer-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.clear-selection {
  min-height: 40px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #9d7b39;
  color: #7f6129;
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  white-space: nowrap;
}

.panel-description {
  min-height: 3.2em;
  margin: 10px 0 18px;
  color: var(--ink-700);
  font-size: 0.9rem;
}

.filter-chips-shell,
.mobile-area-shell {
  position: relative;
  min-width: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  overflow: visible;
}

.filter-chips::-webkit-scrollbar,
.mobile-area-controls::-webkit-scrollbar {
  display: none;
}

.filter-chips button,
.mobile-area-controls button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #d9d0c0;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 0.78rem;
}

.scroll-next {
  position: absolute;
  z-index: 3;
  right: 3px;
  top: 50%;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(211, 177, 108, 0.74);
  border-radius: 50%;
  color: var(--navy-900);
  background: linear-gradient(90deg, rgba(248, 245, 238, 0.82), var(--gold-400));
  box-shadow: -12px 0 20px rgba(248, 245, 238, 0.98);
  cursor: pointer;
  transform: translateY(-50%);
}

.scroll-next:not([hidden]) {
  display: grid;
}

.scroll-next[hidden] {
  display: none;
}

.filter-scroll-next,
.mobile-area-next {
  display: none;
}

.filter-chips button:hover,
.filter-chips button.is-active,
.mobile-area-controls button.is-active {
  border-color: var(--gold-500);
  color: var(--navy-900);
  background: #f1e5c8;
}

.topic-results {
  display: grid;
  gap: 10px;
  min-height: 358px;
  align-content: start;
  max-height: none;
  overflow: visible;
}

.topic-card {
  width: 100%;
  min-height: 82px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  text-align: left;
  border: 1px solid #dcd4c8;
  border-radius: 10px;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.63);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.topic-results.is-hover-preview .topic-card {
  height: 82px;
}

.topic-results.is-hover-preview .topic-card > span:first-child {
  min-width: 0;
}

.topic-results.is-hover-preview .topic-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-card:hover {
  border-color: var(--gold-500);
  box-shadow: 0 10px 24px rgba(18, 35, 60, 0.08);
  transform: translateY(-2px);
}

.topic-card strong,
.topic-card small {
  display: block;
}

.topic-card strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

.topic-card small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.topic-card-arrow {
  color: #ae8131;
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.topic-card:hover .topic-card-arrow {
  transform: translateX(3px);
}

.empty-results {
  padding: 30px 18px;
  color: var(--ink-500);
  text-align: center;
  border: 1px dashed #d9d0c0;
  border-radius: 10px;
}

.guide-index {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 110px;
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--ink-700);
}

.index-status {
  min-width: 126px;
  padding: 12px 18px;
  text-align: center;
  border-left: 1px solid var(--gold-500);
}

.index-status strong,
.index-status span {
  display: block;
}

.index-status strong {
  color: var(--navy-800);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}

.index-status span {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 0.8rem;
}

.guide-directory {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}

.guide-topic-nav {
  position: sticky;
  top: 88px;
  border-top: 1px solid rgba(177, 151, 101, 0.46);
}

.guide-topic-nav-button {
  position: relative;
  width: 100%;
  min-height: 82px;
  padding: 15px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink-700);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(177, 151, 101, 0.28);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.guide-topic-nav-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--gold-500);
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.guide-topic-nav-button:hover,
.guide-topic-nav-button:focus-visible,
.guide-topic-nav-button.is-active {
  color: var(--navy-900);
  background: linear-gradient(90deg, rgba(211, 177, 108, 0.12), transparent 82%);
}

.guide-topic-nav-button.is-active::before {
  transform: scaleY(1);
}

.guide-topic-nav-button:focus-visible {
  outline: 2px solid rgba(19, 58, 99, 0.38);
  outline-offset: -2px;
}

.guide-nav-chapter {
  color: #9b7228;
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.guide-nav-copy {
  min-width: 0;
}

.guide-nav-copy strong,
.guide-nav-copy small {
  display: block;
}

.guide-nav-copy strong {
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.guide-nav-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-topic-panels {
  min-width: 0;
  min-height: 720px;
}

.guide-topic-panel {
  scroll-margin-top: 88px;
}

.guide-topic-panel:focus {
  outline: none;
}

.js-ready .guide-topic-panel:not(.is-active) {
  display: none;
}

.mobile-topic-toggle {
  display: none;
}

.guide-topic-panel.is-targeted .guide-topic-content {
  box-shadow: 0 0 0 2px rgba(199, 150, 57, 0.2);
}

.guide-topic-content {
  padding: 34px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(177, 151, 101, 0.32);
  border-radius: 2px;
}

.js-ready .guide-topic-panel.is-active .guide-topic-content {
  animation: guide-content-in 180ms ease both;
}

@keyframes guide-content-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.guide-topic-header {
  padding-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid rgba(177, 151, 101, 0.36);
}

.guide-topic-header h3,
.guide-topic-header p,
.guide-topic-total strong,
.guide-topic-total small {
  display: block;
}

.guide-topic-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.guide-topic-header p {
  margin: 9px 0 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.guide-topic-total {
  min-width: 66px;
  padding-left: 18px;
  text-align: right;
  border-left: 1px solid rgba(177, 151, 101, 0.42);
}

.guide-topic-total strong {
  color: var(--navy-800);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

.guide-topic-total small {
  margin-top: 6px;
  color: #8c7855;
  font-size: 0.68rem;
}

.guide-pillar {
  position: relative;
  min-height: 116px;
  margin-top: 28px;
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  color: var(--navy-900);
  background: linear-gradient(100deg, rgba(211, 177, 108, 0.16), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(177, 151, 101, 0.38);
  border-left: 3px solid var(--gold-500);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.guide-pillar:hover,
.guide-pillar:focus-visible {
  background: linear-gradient(100deg, rgba(211, 177, 108, 0.24), rgba(255, 255, 255, 0.84));
  border-color: rgba(177, 135, 58, 0.72);
  border-left-color: #b7832c;
}

.guide-pillar:focus-visible,
.guide-cluster:focus-visible {
  outline: 3px solid rgba(19, 58, 99, 0.28);
  outline-offset: 3px;
}

.guide-pillar strong {
  display: block;
}

.guide-pillar strong {
  max-width: 680px;
  margin-top: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.65;
}

.guide-cluster-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.guide-cluster:hover .guide-cluster-arrow,
.guide-cluster:focus-visible .guide-cluster-arrow {
  transform: translateX(4px);
}

.guide-pillar.is-pending {
  color: var(--navy-900);
  background: rgba(211, 177, 108, 0.1);
}

.cluster-sections {
  margin-top: 34px;
  display: grid;
  gap: 34px;
}

.cluster-section-heading {
  padding-bottom: 10px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(177, 151, 101, 0.42);
}

.cluster-section-heading strong {
  display: block;
}

.cluster-section-heading strong {
  margin-top: 0;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.04rem;
}

.cluster-section-heading > span:last-child {
  color: #8c7855;
  font-size: 0.7rem;
}

.cluster-list {
  display: grid;
  grid-template-columns: 1fr;
}

.guide-cluster {
  min-height: 96px;
  padding: 16px 10px;
  display: grid;
  grid-template-columns: 32px minmax(0, 760px) 1fr;
  align-items: center;
  gap: 16px;
  color: var(--navy-900);
  border-bottom: 1px solid rgba(177, 151, 101, 0.24);
  text-decoration: none;
  transition: background 180ms ease;
}

.guide-cluster:hover,
.guide-cluster:focus-visible {
  background: linear-gradient(90deg, rgba(211, 177, 108, 0.09), transparent);
}

.guide-cluster-index {
  color: #a17a34;
  font-family: var(--serif);
  font-size: 0.62rem;
}

.guide-cluster-copy {
  min-width: 0;
}

.guide-cluster-copy strong,
.guide-cluster-copy span {
  display: block;
}

.guide-cluster-copy strong {
  margin-top: 0;
  font-size: 0.91rem;
  line-height: 1.55;
}

.guide-cluster-copy span {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 0.76rem;
  line-height: 1.55;
}

.guide-cluster-arrow {
  justify-self: end;
  color: #a77a2f;
}

.selection-context {
  position: sticky;
  z-index: 6;
  top: 12px;
  min-height: 58px;
  margin: 0 0 16px;
  padding: 10px 14px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
  background: rgba(11, 31, 59, 0.96);
  border: 1px solid rgba(211, 177, 108, 0.58);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(7, 22, 45, 0.16);
  backdrop-filter: blur(12px);
}

.selection-context[hidden] {
  display: none;
}

.selection-context small,
.selection-context strong {
  display: block;
}

.selection-context small {
  color: var(--gold-400);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.selection-context strong {
  margin-top: 1px;
  font-family: var(--serif);
  font-size: 0.98rem;
}

.selection-context a {
  min-height: 40px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(224, 199, 141, 0.54);
  border-radius: 999px;
  color: var(--gold-400);
  text-decoration: none;
  font-size: 0.78rem;
  white-space: nowrap;
}

.selection-context a:hover,
.selection-context a:focus-visible {
  color: var(--navy-950);
  background: var(--gold-400);
  outline: none;
}

.noscript-note {
  padding: 12px 16px;
  color: #624d25;
  background: #f3e8ce;
  border-radius: 8px;
}

@media (max-width: 1500px) {
  .hero {
    grid-template-columns: minmax(220px, 0.72fr) minmax(410px, 1.15fr) minmax(400px, 0.98fr);
  }

  .hero-copy,
  .portrait-column,
  .explorer-panel {
    grid-column: auto;
  }

  .hero-copy {
    padding-left: max(40px, calc((100vw - 1380px) / 2));
  }

  .explorer-panel {
    margin-right: max(40px, calc((100vw - 1380px) / 2));
  }
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(190px, 0.55fr) minmax(360px, 1fr) minmax(360px, 0.88fr);
  }

  .hero-copy {
    padding-left: 32px;
  }

  .explorer-panel {
    margin-right: 28px;
    padding: 24px;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    grid-template-areas:
      "copy panel"
      "portrait panel";
    padding: 42px 28px 54px;
    gap: 24px;
  }

  .hero-copy {
    grid-area: copy;
    align-self: end;
    padding: 10px 0 0;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .hero h1::after {
    margin: 18px 0;
  }

  .hero-intro {
    max-width: 330px;
  }

  .beginner-link {
    margin-top: 24px;
  }

  .portrait-column {
    grid-area: portrait;
  }

  .portrait-stage {
    height: 470px;
    min-height: 470px;
    border-radius: 16px;
  }

  .explorer-panel {
    grid-area: panel;
    align-self: stretch;
    min-height: auto;
    margin: 0;
  }

  .portrait-instruction {
    bottom: 16px;
  }
}

@media (max-width: 920px) {
  .guide-directory {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  .guide-topic-nav-button {
    min-height: 76px;
    padding-inline: 7px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .guide-nav-copy strong {
    font-size: 0.92rem;
  }

  .guide-nav-copy small {
    font-size: 0.68rem;
  }

  .guide-topic-content {
    padding: 28px;
  }

  .cluster-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    width: min(100% - 32px, 1380px);
    min-height: 64px;
    gap: 10px;
  }

  .brand span {
    font-size: 1.04rem;
  }

  .header-cta {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .mobile-nav {
    width: min(100% - 32px, 720px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 38px 20px 46px;
  }

  .hero-copy {
    order: 1;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-intro {
    font-family: var(--sans);
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .beginner-link {
    width: 100%;
  }

  .portrait-column {
    order: 2;
  }

  .portrait-stage {
    aspect-ratio: 1195 / 1316;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .portrait-stage::after {
    background: linear-gradient(0deg, rgba(7, 22, 45, 0.3), transparent 32%);
  }

  .portrait-instruction {
    display: none;
  }

  .mobile-area-shell {
    margin-top: 14px;
  }

  .mobile-area-controls {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 48px 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-area-controls button,
  .filter-chips button {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 0.82rem;
  }

  .mobile-area-controls button {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .mobile-area-controls button.is-active {
    color: var(--navy-950);
    background: var(--gold-400);
  }

  .mobile-area-next:not([hidden]),
  .filter-scroll-next:not([hidden]) {
    display: grid;
  }

  .mobile-area-next {
    background: var(--gold-400);
    box-shadow: -14px 0 18px rgba(7, 22, 45, 0.96);
  }

  .explorer-panel {
    order: 3;
    padding: 18px;
    border-radius: 14px;
  }

  .mode-tabs button {
    font-size: 0.9rem;
  }

  .panel-description {
    min-height: 0;
  }

  .filter-chips {
    flex-wrap: nowrap;
    padding-right: 48px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .topic-results {
    min-height: 0;
    max-height: none;
  }

  .guide-index {
    width: min(100% - 32px, 1040px);
    padding: 66px 0 74px;
  }

  .section-heading {
    align-items: start;
  }

  .index-status {
    min-width: 92px;
    padding: 8px 10px;
  }

  .index-status strong {
    font-size: 2rem;
  }

  .guide-directory {
    display: block;
  }

  .guide-topic-nav {
    display: none;
  }

  .guide-topic-panels {
    min-height: 0;
    border-top: 1px solid rgba(177, 151, 101, 0.42);
  }

  .guide-topic-panel {
    display: block;
    border-bottom: 1px solid rgba(177, 151, 101, 0.3);
  }

  .js-ready .guide-topic-panel:not(.is-active) {
    display: block;
  }

  .mobile-topic-toggle {
    width: 100%;
    min-height: 92px;
    padding: 17px 4px;
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    align-items: center;
    gap: 10px;
    text-align: left;
    color: var(--navy-900);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .mobile-topic-toggle:focus-visible {
    outline: 2px solid rgba(19, 58, 99, 0.42);
    outline-offset: -2px;
  }

  .mobile-topic-arrow {
    color: #a77a2f;
    transition: transform 180ms ease;
  }

  .guide-topic-panel.is-active .mobile-topic-arrow {
    transform: rotate(180deg);
  }

  .js-ready .guide-topic-panel:not(.is-active) .guide-topic-content {
    display: none;
  }

  .guide-topic-content {
    padding: 20px 14px 28px;
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    border-top: 1px solid rgba(177, 151, 101, 0.28);
  }

  .guide-topic-panel.is-targeted .guide-topic-content {
    box-shadow: inset 3px 0 rgba(199, 150, 57, 0.58);
  }

  .guide-topic-header {
    display: none;
  }

  .guide-pillar {
    min-height: 104px;
    margin-top: 0;
    padding: 24px 22px;
  }

  .guide-pillar strong {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .cluster-sections {
    margin-top: 28px;
    gap: 28px;
  }

  .cluster-list {
    grid-template-columns: 1fr;
  }

  .guide-cluster {
    min-height: 0;
    padding: 17px 4px;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 9px;
  }

  .guide-cluster-copy strong {
    font-size: 0.88rem;
  }

  .selection-context {
    top: 8px;
    gap: 10px;
    padding: 9px 10px 9px 12px;
  }

  .selection-context strong {
    font-size: 0.88rem;
  }

  .selection-context a {
    min-height: 44px;
    padding-inline: 11px;
    font-size: 0.74rem;
  }

  .clear-selection {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-guides-app,
  .kc-guides-app *,
  .kc-guides-app *::before,
  .kc-guides-app *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* WordPress production isolation */
body.page-id-1089 {
  background: #f8f5ee;
}

.kc-guides-app {
  width: 100%;
  overflow: clip;
}

.kc-guides-app .hero,
.kc-guides-app .guide-index {
  max-width: none;
}
