:root {
  color-scheme: dark;
  --peak-paper: #131915;
  --peak-panel: #1c2520;
  --peak-field: #151e18;
  --peak-selected: #2b3b30;
  --peak-line: #3c4940;
  --peak-ink: #eeeae0;
  --peak-muted: #b8bdb0;
  --peak-green: #e3eade;
  --peak-accent: #e5ba79;
  --peak-action: #d9b478;
  --peak-action-ink: #202119;
  --peak-serif: "Noto Serif KR", "Noto Serif CJK KR", AppleMyungjo, Batang, 바탕, serif;
  --peak-sans: "SUIT Variable", "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ymc-font-ui: var(--peak-sans);
  --ymc-font-title: var(--peak-sans);
}
body.taehak-unified {
  margin: 0;
  background: var(--peak-paper) !important;
  color: var(--peak-ink) !important;
  font: 1rem/1.6 var(--peak-sans) !important;
  word-break: keep-all;
}
.taehak-member a { color: inherit; text-underline-offset: .21em; }
.taehak-member :focus-visible, .taehak-review :focus-visible { outline: 2px solid var(--peak-accent); outline-offset: 4px; }
.taehak-member button, .taehak-member input, .taehak-member select, .taehak-member textarea { font: inherit; }
.taehak-member [hidden] { display: none !important; }
.taehak-skip { position: fixed; inset: -4rem auto auto 1rem; z-index: 10; background: var(--peak-panel); padding: .5rem 1rem; }
.taehak-skip:focus { top: .5rem; }

body.taehak-unified :is(h1, h2, h3, button, input, select, textarea) { font-family: var(--peak-sans) !important; }
body.taehak-unified :is(button, input, select, textarea, table) { font-variant-numeric: tabular-nums; }
body.taehak-unified > .taehak-top { position: sticky; top: 0; z-index: 20; display: block; padding: 0; background: var(--peak-paper) !important; color: var(--peak-green); border-bottom: 1px solid var(--peak-line) !important; box-shadow: none !important; backdrop-filter: none; }
.taehak-top-inner, .taehak-content { width: min(100% - 2.5rem, 71rem); margin-inline: auto; }
.taehak-top-inner { min-height: 4.7rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.65rem, 2vw, 1.5rem); }
body.taehak-unified .taehak-top .taehak-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 800 28px/1 "Taehak Noto Serif Wordmark", "Noto Serif KR", "Nanum Myeongjo", Batang, serif !important; letter-spacing: -.045em; white-space: nowrap; }
body.taehak-unified .taehak-top .taehak-brand > span { font: inherit !important; letter-spacing: inherit !important; }
.taehak-brand img { flex: none; object-fit: contain; border-radius: 50%; }
body.taehak-unified .taehak-top .taehak-nav {
  position: relative;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: clamp(.15rem, 1.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}
.taehak-top .taehak-menu { position: relative; }
.taehak-top .taehak-menu summary {
  display: flex;
  box-sizing: border-box;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .3rem .6rem;
  list-style: none;
  color: var(--peak-green);
  font: 700 15px/1.4 var(--peak-sans) !important;
  white-space: nowrap;
  cursor: pointer;
}
.taehak-top .taehak-menu summary::-webkit-details-marker { display: none; }
.taehak-top .taehak-menu summary::after {
  content: "";
  width: .34rem;
  height: .34rem;
  margin-block-start: -.18rem;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.taehak-top .taehak-menu[open] summary::after { transform: rotate(225deg); margin-block-start: .2rem; }
.taehak-top .taehak-menu:has([aria-current="page"]) summary,
.taehak-top .taehak-menu[open] summary,
.taehak-top .taehak-menu summary:hover { color: var(--peak-accent); }
body.taehak-unified .taehak-top .taehak-menu-links {
  position: absolute;
  z-index: 1;
  inset-block-start: calc(100% + .28rem);
  inset-inline-end: 0;
  box-sizing: border-box;
  width: max-content;
  min-width: 12rem;
  max-height: min(28rem, calc(100dvh - 8rem));
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: .25rem .65rem;
  list-style: none;
  border: 1px solid var(--peak-line);
  border-block-start-color: var(--peak-action);
  background: var(--peak-panel);
  box-shadow: 0 .55rem 1.25rem #080c0a8c;
}
.taehak-top .taehak-menu-links li + li { border-top: 1px solid var(--peak-line); }
body.taehak-unified .taehak-top a, body.taehak-unified .taehak-top .taehak-session button { color: var(--peak-green) !important; text-decoration: none; }
body.taehak-unified .taehak-top .taehak-menu-links a {
  display: flex;
  box-sizing: border-box;
  min-height: 2.75rem;
  align-items: center;
  padding: .4rem .5rem;
  font: 620 .9rem/1.4 var(--peak-sans) !important;
}
body.taehak-unified .taehak-top .taehak-menu-links a:hover { background: var(--peak-field); }
body.taehak-unified .taehak-top :is(a, button):is(:hover, [aria-current="page"]) { color: var(--peak-accent) !important; }
.taehak-top :is(a, button, summary):focus-visible { outline: 2px solid var(--peak-accent); outline-offset: -2px; }
.taehak-top .taehak-session { justify-self: end; }
.taehak-top .taehak-session > div { display: flex; align-items: center; gap: .35rem; }
.taehak-top .taehak-session [hidden] { display: none !important; }
.taehak-top .taehak-session form { margin: 0; padding: 0; }
body.taehak-unified .taehak-top .taehak-session :is(a, button) {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: .3rem .65rem;
  border: 1px solid var(--peak-line);
  border-radius: .24rem;
  background: transparent;
  font: 700 .875rem/1.4 var(--peak-sans) !important;
  white-space: nowrap;
  cursor: pointer;
}
.taehak-top .taehak-session :is(a, button):is(:hover, [aria-current="page"]) { border-color: var(--peak-accent); }
.taehak-content { padding-block: clamp(1.3rem, 4vw, 3.15rem) 3.5rem; }
/* Login and member profile share the same restrained academy palette. */
.taehak-auth-main {
  box-sizing: border-box;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100svh - 4.7rem);
  padding: clamp(2rem, 6vh, 5rem) 1.25rem;
  background: radial-gradient(ellipse at 50% 25%, #2b3b304f, transparent 65%);
}
.taehak-auth-card,
.taehak-account-panel {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #465346;
  border-radius: 1.25rem;
  background: var(--peak-panel);
  box-shadow: 0 1.25rem 3.5rem #070c0833;
}
.taehak-auth-card { max-width: 29rem; padding: clamp(1.5rem, 5vw, 2.5rem); }
.taehak-signup-card { max-width: 36rem; }
.taehak-auth-heading { margin-bottom: 1.8rem; text-align: center; }
.taehak-auth-brand { display: block; width: 6rem; height: 6rem; margin: 0 auto 1.2rem; object-fit: contain; border-radius: 50%; }
.taehak-auth-emblem {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.2rem;
  border: 1px solid #b891574d;
  border-radius: 1rem;
  color: var(--peak-accent);
  background: #d9b4780a;
}
.taehak-auth-eyebrow,
.taehak-account-eyebrow {
  margin: 0 0 .65rem;
  color: var(--peak-accent);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .035em;
}
.taehak-auth-card h1,
.taehak-account-heading h1 {
  margin: 0;
  color: var(--peak-ink);
  font-size: clamp(1.75rem, 5vw, 2.05rem);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.045em;
}
.taehak-auth-intro,
.taehak-account-intro { margin: .65rem 0 0; color: var(--peak-muted); font-size: .9375rem; line-height: 1.7; }
.taehak-auth-form { display: grid; gap: 1.25rem; margin: 0; }
.taehak-auth-fields { display: grid; min-width: 0; margin: 0; padding: 0; gap: 1.25rem; border: 0; }
.taehak-auth-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.taehak-auth-field { min-width: 0; }
.taehak-auth-field label { display: block; margin-bottom: .55rem; color: var(--peak-ink); font-size: .9375rem; font-weight: 650; }
.taehak-auth-field-help { margin: .5rem 0 0; color: var(--peak-muted); font-size: .8125rem; line-height: 1.6; }
.taehak-auth-field input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  margin: 0;
  padding: .8rem 1rem;
  border: 1px solid #526052;
  border-radius: .65rem;
  background: var(--peak-field);
  color: var(--peak-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.taehak-auth-field input::placeholder { color: #9aa598; opacity: 1; }
.taehak-auth-field input:hover { border-color: #77836f; }
.taehak-auth-field input:focus-visible { outline: 0; border-color: var(--peak-accent); box-shadow: 0 0 0 3px #d9b47824; }
.taehak-auth-field input[aria-invalid="true"] { border-color: #c98777; }
.taehak-auth-field .taehak-auth-code-input { font-variant-numeric: tabular-nums; letter-spacing: .15em; }
.taehak-auth-field input:disabled { opacity: .65; cursor: not-allowed; }
.taehak-auth-submit {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  margin: .35rem 0 0;
  padding: .8rem 1rem;
  border: 1px solid var(--peak-action);
  border-radius: .65rem;
  background: var(--peak-action);
  color: var(--peak-action-ink);
  font-size: 1rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.taehak-auth-submit:hover { background: #e8c58e; border-color: #e8c58e; }
.taehak-auth-submit:active { background: #cda66a; }
.taehak-auth-submit[aria-disabled="true"] { cursor: progress; opacity: .8; }
.taehak-auth-submit:disabled { cursor: not-allowed; opacity: .55; }
.taehak-auth-link-button { color: var(--peak-action-ink) !important; text-decoration: none; }
.taehak-auth-error { margin: -.3rem 0 1.3rem; padding: .85rem 1rem; border: 1px solid #98645580; border-radius: .65rem; background: #59372e38; color: #f1c2b4; font-size: .875rem; line-height: 1.65; }
.taehak-auth-notice { margin: -.3rem 0 1.3rem; padding: .85rem 1rem; border: 1px solid #b8915766; border-radius: .65rem; background: #d9b4780a; color: var(--peak-ink); font-size: .875rem; line-height: 1.65; }
.taehak-auth-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1rem .6rem; margin: 1rem 0 0; color: var(--peak-muted); font-size: .875rem; }
.taehak-auth-switch a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--peak-accent); font-weight: 650; text-decoration: none; }
.taehak-auth-switch a:hover { text-decoration: underline; }
.taehak-auth-code-status { margin: 0; padding: 1.15rem 1rem; border: 1px solid var(--peak-line); border-radius: .75rem; background: var(--peak-field); text-align: center; }
.taehak-auth-code-status dt { color: var(--peak-muted); font-size: .875rem; }
.taehak-auth-code-status dd { margin: .45rem 0 0; color: var(--peak-ink); line-height: 1.5; }
.taehak-auth-code-status code { color: var(--peak-accent); font: 700 1.9rem/1.5 var(--peak-sans); font-variant-numeric: tabular-nums; letter-spacing: .2em; }
.taehak-auth-share { margin: .75rem 0 1.7rem; color: var(--peak-muted); font-size: .8125rem; line-height: 1.7; text-align: center; }
.taehak-auth-share a { color: var(--peak-accent); text-underline-offset: .2em; }
.taehak-auth-recovery { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.25rem; margin-top: 1rem; font-size: .875rem; }
.taehak-auth-recovery a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--peak-muted); }
.taehak-auth-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .1rem .6rem; margin-top: 1.6rem; padding-top: 1.05rem; border-top: 1px solid var(--peak-line); font-size: .875rem; }
.taehak-auth-footer span { color: var(--peak-muted); }
.taehak-auth-footer a { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--peak-accent); font-weight: 600; text-decoration: none; }
.taehak-auth-footer a:hover { text-decoration: underline; }

.taehak-account-panel { max-width: 45rem; margin: clamp(.25rem, 2vh, 1.5rem) auto 0; padding: clamp(1.4rem, 4vw, 2.5rem); }
.taehak-account-heading { margin-bottom: 1.9rem; }
.taehak-account-eyebrow { letter-spacing: .12em; font-size: .75rem; }
.taehak-account-profile { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; padding: 1.4rem; border: 1px solid var(--peak-line); border-radius: .9rem; background: var(--peak-field); }
.taehak-account-avatar { display: grid; place-items: center; flex: 0 0 4.25rem; width: 4.25rem; height: 4.25rem; border: 1px solid #d9b47855; border-radius: 1.1rem; background: #d9b47814; color: var(--peak-accent); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.taehak-account-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; min-width: 0; }
.taehak-account-identity h2 { min-width: 0; margin: 0; color: var(--peak-ink); font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.taehak-account-role { display: inline-flex; align-items: center; min-height: 1.65rem; padding: .05rem .6rem; border: 1px solid #6c7b644f; border-radius: 2rem; background: #32403080; color: #d2dfc7; font-size: .8125rem; font-weight: 550; white-space: nowrap; }
.taehak-account-details { flex-basis: 100%; margin: .15rem 0 0; font-size: .875rem; }
.taehak-account-details > div { display: flex; flex-wrap: wrap; gap: .15rem .65rem; }
.taehak-account-details dt { color: var(--peak-muted); }
.taehak-account-details dd { min-width: 0; margin: 0; color: var(--peak-ink); overflow-wrap: anywhere; }
.taehak-account-section-title { margin: 0 0 .8rem; color: var(--peak-muted); font-size: .875rem; font-weight: 650; }
.taehak-account-links { display: grid; gap: .65rem; }
.taehak-account-link { display: flex; box-sizing: border-box; align-items: center; gap: 1rem; min-height: 5rem; padding: 1rem 1.1rem; border: 1px solid var(--peak-line); border-radius: .75rem; background: transparent; text-decoration: none; transition: background .15s, border-color .15s; }
.taehak-account-link:hover { border-color: #7b876c; background: #27342a; }
.taehak-account-link-icon { box-sizing: content-box; flex-shrink: 0; width: 1.25rem; height: 1.25rem; padding: .65rem; border-radius: .65rem; background: #d9b4780d; color: var(--peak-accent); }
.taehak-account-link-text { display: grid; gap: .2rem; min-width: 0; }
.taehak-account-link-label { color: var(--peak-ink); font-size: 1rem; font-weight: 650; line-height: 1.45; }
.taehak-account-link-description { color: var(--peak-muted); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; }
.taehak-account-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.7rem; padding-top: 1.35rem; border-top: 1px solid var(--peak-line); }
.taehak-account-actions form { margin: 0; }
.taehak-account-logout { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 2.8rem; padding: .65rem 1.15rem; border: 1px solid #66735e; border-radius: .6rem; background: transparent; color: var(--peak-ink); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.taehak-account-logout:hover { border-color: var(--peak-accent); color: var(--peak-accent); background: #d9b47808; }
.taehak-account-delete { display: inline-flex; min-height: 2.8rem; align-items: center; padding-inline: .25rem; color: #cdaea1 !important; font-size: .875rem; text-decoration: none; }
.taehak-account-delete:hover { color: #efc1b0 !important; text-decoration: underline; }
@media (max-width: 480px) {
  .taehak-auth-main { min-height: calc(100svh - 7rem); align-content: start; padding: 1.5rem .9rem 2.5rem; }
  .taehak-auth-card { padding: 1.65rem 1.25rem; border-radius: 1rem; }
  .taehak-auth-field-row { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .taehak-account-panel { padding: 1.35rem 1.1rem; border-radius: 1rem; }
  .taehak-account-heading { margin-bottom: 1.4rem; }
  .taehak-account-profile { gap: .85rem; padding: 1.05rem .9rem; }
  .taehak-account-avatar { flex-basis: 3.25rem; width: 3.25rem; height: 3.25rem; border-radius: .85rem; font-size: 1.45rem; }
  .taehak-account-link { gap: .75rem; padding: .85rem .8rem; }
  .taehak-account-link-icon { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .taehak-auth-card *, .taehak-account-panel * { transition: none !important; }
}

.taehak-official-news { min-inline-size: 0; }
.taehak-official-news-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .9rem; color: var(--peak-muted); font-size: .8rem; }
.taehak-official-news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--peak-line); }
.taehak-official-news-list li { border-bottom: 1px solid var(--peak-line); }
.taehak-official-news-list a {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto;
  gap: .6rem 1rem;
  align-items: baseline;
  padding: .8rem clamp(.55rem, 2vw, 1rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.taehak-official-news-list a:hover { background: var(--peak-selected); }
.taehak-official-news-list a:hover .taehak-official-news-title { text-decoration: underline; }
.taehak-official-news-list a:focus-visible { outline-offset: -2px; }
.taehak-official-news-category { color: var(--peak-accent); font-size: .875rem; }
.taehak-official-news-list time { color: var(--peak-muted); font-size: .75rem; white-space: nowrap; }
.taehak-official-news-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-block-start: 1rem; }
.taehak-official-news-pages > :is(a, span) {
  display: grid;
  place-items: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  border: 1px solid var(--peak-line);
  border-radius: .5rem;
  text-decoration: none;
}
.taehak-official-news-pages a:hover, .taehak-official-news-pages [aria-current] { background: var(--peak-selected); }
.taehak-official-news-pages [aria-current] { border-color: var(--peak-accent); color: var(--peak-accent); font-weight: 700; }
.taehak-news-empty { padding: .8rem; color: var(--peak-muted); }

.taehak-intro {
  background: var(--peak-panel);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(22rem, 34vw, 29rem);
  border-block: 1px solid var(--peak-line);
  overflow: hidden;
}
.taehak-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #131915e8 12%, #131915a8 44%, #13191534 78%);
  pointer-events: none;
}
.taehak-intro-text { position: relative; z-index: 1; box-sizing: border-box; width: min(100%, 35rem); padding: clamp(1rem, 4vw, 3rem); text-align: center; }
.taehak-campus { margin: 0 0 .65rem; color: var(--peak-accent); font-size: .84rem; font-weight: 750; letter-spacing: .045em; }
.taehak-home-lead #home-title { margin: 0; color: var(--peak-green); font: 800 clamp(1.25rem, 5.5vw, 2.5rem)/1.2 var(--peak-sans); letter-spacing: -.067em; white-space: nowrap; }
.taehak-home-search { display: flex; gap: .3rem; margin: 1.3rem 0 0; }
.taehak-home-search :is(input, select, button) {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: .45rem .55rem;
  border: 1px solid var(--peak-line);
  border-radius: .26rem;
  background: var(--peak-field);
  color: var(--peak-ink);
  font-size: .9rem;
}
.taehak-home-search input { flex: 1; min-width: 0; }
.taehak-home-search input::placeholder { color: var(--peak-muted); }
.taehak-home-search button {
  border-color: var(--peak-action);
  background: var(--peak-action);
  color: var(--peak-action-ink);
  font-weight: 750;
  cursor: pointer;
}
@media (max-width: 560px) {
  .taehak-home-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .taehak-home-search select { min-width: 0; }
}
.taehak-hero-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }

.taehak-tools { margin-block: 1.6rem 2rem; }
.taehak-primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--peak-line); }
.taehak-primary a, .taehak-primary .taehak-preview-disabled { display: block; padding: .85rem 1rem; color: var(--peak-green); text-decoration: none; }
.taehak-primary > * + * { border-inline-start: 1px solid var(--peak-line); }
.taehak-primary a:hover { background: var(--peak-selected); }
.taehak-primary strong, .taehak-primary span { display: block; }
.taehak-primary strong { font-size: 1rem; font-weight: 770; }
.taehak-primary span { margin-top: .25rem; color: var(--peak-muted); font-size: .86rem; }

.taehak-home-news {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .15rem clamp(.35rem, 1.8vw, .9rem);
  min-width: 0;
  margin-block: -1rem 2rem;
  padding-inline: .6rem;
  border-block: 1px solid var(--peak-line);
}
body.taehak-unified .taehak-home-news a { color: var(--peak-ink); text-decoration: none; }
body.taehak-unified .taehak-home-news .taehak-home-news-label { color: var(--peak-accent); font-weight: 700; }
.taehak-home-news-label, .taehak-home-news-controls { white-space: nowrap; }
.taehak-home-news-items { position: relative; height: 2.75rem; min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.taehak-home-news-items li { position: absolute; inset: 0; }
.taehak-home-news-items a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 2.75rem; }
.taehak-home-news-controls {
  display: inline-flex;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--peak-line);
  border-radius: .55rem;
  background: var(--peak-field);
}
.taehak-home-news [hidden] { display: none !important; }
body.taehak-unified .taehak-home-news button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 2.25rem;
  min-block-size: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--peak-muted);
  line-height: 1;
  cursor: pointer;
}
body.taehak-unified .taehak-home-news button:not([hidden]) + button { border-inline-start: 1px solid var(--peak-line); }
@font-face {
  font-family: "Taehak News Symbols";
  src: url("/_lab/assets/taehak-news-symbols.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
  unicode-range: U+23F8, U+25B6, U+FE0E;
}
.taehak-home-news-icon {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  font: 400 1rem/1 "Taehak News Symbols", "Noto Sans Symbols 2", "Segoe UI Symbol", "Apple Symbols", sans-serif;
  font-variant-emoji: text;
}
/* The pause glyph has a shorter ink height than the triangle in symbol fonts. */
.taehak-home-news-icon[data-news-icon="pause"] { font-size: 1.25rem; }
.taehak-home-news-icon[data-news-icon="play"] { transform: translateX(.0625rem); }
.taehak-home-news-icon[data-news-icon="next"] { display: inline-flex; align-items: center; justify-content: center; gap: .125rem; }
.taehak-home-news-icon[data-news-icon="next"]::after { content: ""; inline-size: .125rem; block-size: .75rem; border-radius: 1px; background: currentColor; }
body.taehak-unified .taehak-home-news :is(a, button):hover { color: var(--peak-accent); text-decoration: underline; }
body.taehak-unified .taehak-home-news button:hover { background: var(--peak-selected); text-decoration: none; }
.taehak-home-news :is(a, button):focus-visible { outline: 2px solid var(--peak-accent); outline-offset: -2px; }
.taehak-home-news-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (pointer: coarse), (max-width: 560px) {
  body.taehak-unified .taehak-home-news button { inline-size: 2.75rem; min-block-size: 2.75rem; }
}
@media (max-width: 560px) {
  .taehak-home-news { padding-inline: .35rem; font-size: .85rem; }
}

.taehak-home-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.3rem, 3.25vw, 2.5rem); }
.taehak-home-tiers > section { scroll-margin-top: 7.75rem; }
.taehak-home-tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-block: .8rem .6rem;
  border-top: 2px solid var(--peak-action);
}
.taehak-home-tier-head h2 { margin: 0; color: var(--peak-green); font-size: 1.24rem; }
.taehak-home-tier-filter { display: flex; align-items: center; gap: .35rem; margin: 0; }
.taehak-home-tier-filter :is(select, button) {
  min-height: 2.75rem;
  border: 1px solid var(--peak-line);
  border-radius: .3rem;
  padding: .3rem .65rem;
  background: var(--peak-field);
  color: var(--peak-green);
  font-size: .875rem;
  cursor: pointer;
}
:is(.taehak-home-search, .taehak-home-tier-filter) select {
  appearance: none;
  padding-inline-end: 1.85rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right .86rem center, right .56rem center;
  background-size: .32rem .32rem;
  background-repeat: no-repeat;
  cursor: pointer;
}
.taehak-home-tier-filter :is(select, button):hover { border-color: var(--peak-accent); }
.taehak-home-tier-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.taehak-home-tiers :is(ol, ul) { margin: 0; padding: 0; list-style: none; }
.taehak-home-tier-list > li { padding-block: .28rem .85rem; border-top: 1px solid var(--peak-line); }
.taehak-home-tier-deck { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .65rem; }
.taehak-home-tier-position { color: var(--peak-accent); font-size: .85rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.taehak-home-tier-deck h3 { margin: 0; font-size: .98rem; line-height: 1.45; }
.taehak-home-tier-formation { color: var(--peak-accent); font-size: .76rem; white-space: nowrap; }
.taehak-home-tier-deck small { margin-inline-start: auto; color: var(--peak-muted); font-size: .76rem; }
.taehak-home-tier-deck a { display: inline-flex; min-height: 2.75rem; align-items: center; text-decoration: none; }
.taehak-home-tier-deck a:hover { text-decoration: underline; color: var(--peak-accent); }
.taehak-home-tier-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
.taehak-home-tier-member {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  min-width: 0;
  padding: .45rem .5rem;
  background: var(--peak-field);
  border: 1px solid var(--peak-line);
  border-radius: .2rem;
}
.taehak-home-tier-general { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.taehak-home-tier-general strong { font-size: .86rem; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.taehak-home-portrait { display: block; flex: none; object-fit: cover; object-position: center 28%; border-radius: .14rem; background: var(--peak-panel); }
.taehak-home-tactics { display: grid; gap: .28rem; min-width: 0; }
.taehak-home-tactics li { display: flex; align-items: flex-start; gap: .26rem; font-size: .795rem; line-height: 1.35; overflow-wrap: anywhere; }
.taehak-home-tactics li > span { min-width: 0; }
.taehak-home-tactics img { flex: none; object-fit: cover; border-radius: .15rem; }
.taehak-home-tier-unlock { color: var(--peak-muted); }
body.taehak-unified .taehak-home-tier-member .taehak-effect-trigger{display:flex;gap:.26rem;min-inline-size:0;min-block-size:0;padding:0;border:0;background:transparent;font:inherit;text-align:start;text-decoration:none}
body.taehak-unified .taehak-home-tactics .taehak-effect-trigger{align-items:flex-start}
.taehak-home-tier-member .taehak-effect-trigger:is(:hover,:focus-visible){outline:1px solid var(--peak-accent);outline-offset:3px}
.taehak-home-tier-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  border-block: 1px solid var(--peak-line);
  color: var(--peak-accent) !important;
  font-size: .9rem;
  font-weight: 720;
  text-decoration: none;
}
.taehak-home-tier-link:hover { background: var(--peak-panel); }
@media (max-width: 960px) {
  .taehak-home-tiers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .taehak-home-tier-members { grid-template-columns: minmax(0, 1fr); }
  .taehak-home-tier-member { grid-template-columns: minmax(7.6rem, .75fr) minmax(0, 1fr); gap: .65rem; }
  .taehak-home-tier-general { flex-direction: row; gap: .55rem; }
  .taehak-home-tier-general strong { text-align: start; }
}

.taehak-preview-note { margin: 0; padding: .65rem 1.2rem; background: var(--peak-field); color: var(--peak-muted); text-align: center; font: 600 .78rem/1.4 var(--peak-sans); }
.taehak-review-top.taehak-top { position: relative !important; background: var(--peak-panel) !important; color: var(--peak-green) !important; padding: 0; }
.taehak-review-top :is(.taehak-brand, .taehak-nav a, .taehak-mobile a) { color: var(--peak-green) !important; }
.taehak-review-top .taehak-nav { background: transparent !important; box-shadow: none !important; }
.taehak-review-top .taehak-mobile nav { background: var(--peak-panel) !important; }
body.murim-theme:has(.auth.card) { background: var(--peak-paper) !important; color: var(--peak-ink) !important; }
body.murim-theme .auth.card { background: var(--peak-panel) !important; color: var(--peak-ink) !important; border-color: var(--peak-line); }
.murim-theme .auth.card :is(h1, h2, label) { color: var(--peak-ink) !important; }
.murim-theme .auth.card .muted, .murim-theme .auth.card input::placeholder { color: var(--peak-muted) !important; }
.murim-theme .auth.card input { background: var(--peak-field) !important; color: var(--peak-ink) !important; border-color: #77877b; }
.murim-theme .auth.card button.primary { background: var(--peak-action) !important; color: var(--peak-action-ink) !important; }
.murim-theme .auth.card a { color: var(--peak-accent) !important; }
.murim-theme .auth.card .flash.error { background: #482923; color: #ffd0c6 !important; }
[data-taehak-loading] > img { border-radius: 50%; }
.taehak-preview-disabled { cursor: default; }
@media (max-width: 740px) {
  .taehak-top-inner, .taehak-content { width: min(100% - 2rem, 71rem); }
  .taehak-top-inner { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .45rem; }
  body.taehak-unified .taehak-top .taehak-brand { grid-area: 1 / 1; gap: .42rem; font-size: clamp(19px, 5.75vw, 22.5px) !important; }
  .taehak-top .taehak-brand img { width: 32px; height: 32px; }
  .taehak-top .taehak-session { grid-area: 1 / 2; padding-block: .37rem; }
  body.taehak-unified .taehak-top .taehak-session :is(a, button) { padding-inline: .42rem; }
  body.taehak-unified .taehak-top .taehak-nav { grid-area: 2 / 1 / 3 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--peak-line) !important; }
  .taehak-top .taehak-menu { position: static; }
  .taehak-top .taehak-menu summary { gap: .33rem; padding-inline: .15rem; font-size: 14px !important; }
  body.taehak-unified .taehak-top .taehak-menu-links { inset-inline: 0; width: auto; min-width: 0; }
  .taehak-intro { display: block; min-height: 0; }
  .taehak-intro::after { content: none; }
  .taehak-intro-text { margin-inline: auto; }
  .taehak-hero-art { position: static; width: 100%; height: clamp(6rem, 31vw, 13rem); border-block-start: 1px solid var(--peak-line); }
  .taehak-primary a, .taehak-primary .taehak-preview-disabled { padding: .72rem .6rem; }
  .taehak-primary strong { font-size: .87rem; }
  .taehak-primary span { font-size: .76rem; }
}
@media (max-width: 425px) {
  .taehak-official-news-list a { grid-template-columns: 1fr; gap: .2rem; }
  .taehak-intro-text { padding: 1.15rem .7rem; }
  .taehak-campus { margin-bottom: .6rem; font-size: .74rem; }
  .taehak-home-tier-deck { column-gap: .45rem; }
}

/* Shared look and behavior for existing card details and the restored effects. */
body.taehak-unified .taehak-effect-trigger {
  color: var(--peak-accent);
  cursor: pointer;
}
body.taehak-unified .taehak-effect-trigger {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  max-inline-size: 100%;
  min-block-size: 2rem;
  padding: .16em .35em;
  border: 1px solid transparent;
  border-radius: .2rem;
  background: transparent;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-decoration-color: #a88a5a;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
body.taehak-unified .taehak-effect-trigger:hover { background: var(--peak-selected); border-color: var(--peak-line); }
body.taehak-unified .taehak-effect-dialog {
  color-scheme: dark;
  color: var(--peak-ink);
  background: var(--peak-panel);
  border: 1px solid var(--peak-line);
  box-shadow: 0 20px 70px #000a;
  font: 1rem/1.6 var(--peak-sans);
}
.taehak-effect-dialog {
  --effect-border: var(--peak-line);
  box-sizing: border-box;
  width: min(49rem, 100% - 2rem);
  max-height: min(44rem, 88dvh);
  padding: 0;
  border-radius: .5rem;
  overflow: auto;
  overscroll-behavior: contain;
}
body.taehak-unified .taehak-effect-dialog { border: 2px solid var(--effect-border); }
.taehak-effect-dialog[data-effect-mode="preview"] {
  position: fixed;
  inset: var(--effect-preview-top) auto var(--effect-preview-bottom) var(--effect-preview-left);
  z-index: 30;
  width: min(30rem, 100% - 24px);
  max-height: min(28rem, var(--effect-preview-height));
  margin: 0;
}
.taehak-effect-dialog[data-effect-accent="gold"] { --effect-border: #cba35c; }
.taehak-effect-dialog[data-effect-accent="purple"] { --effect-border: #a67bd3; }
.taehak-effect-dialog[data-effect-accent="gear-normal"] { --effect-border: #b48ae8; }
.taehak-effect-dialog[data-effect-accent="gear-exclusive"] { --effect-border: #f49b54; }
.taehak-effect-dialog[data-effect-faction="wei"] { --effect-border: #5b9de8; }
.taehak-effect-dialog[data-effect-faction="shu"] { --effect-border: #51b075; }
.taehak-effect-dialog[data-effect-faction="wu"] { --effect-border: #e16666; }
.taehak-effect-dialog[data-effect-faction="qun"] { --effect-border: #a67bd3; }
.taehak-effect-dialog[data-effect-faction="neutral"] { --effect-border: var(--peak-line); }
body.taehak-unified .taehak-effect-dialog:focus-visible { outline: none; }
.taehak-effect-dialog::backdrop { background: #050a07cc; }
.taehak-effect-nested {
  --effect-border: var(--peak-line);
  position: fixed;
  z-index: 100;
  left: var(--nested-left, 12px);
  top: var(--nested-top, 12px);
  box-sizing: border-box;
  width: min(360px, 100vw - 24px);
  max-height: min(28rem, var(--nested-max-height, 80dvh));
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  border: 2px solid var(--effect-border);
  border-radius: .65rem;
  color: var(--peak-ink);
  background: var(--peak-field);
  box-shadow: 0 12px 38px #0009;
  font: .86rem/1.6 var(--peak-sans);
}
.taehak-effect-nested[hidden] { display: none; }
.taehak-effect-nested[data-effect-accent="gold"] { --effect-border: #cba35c; }
.taehak-effect-nested[data-effect-accent="purple"] { --effect-border: #a67bd3; }
.taehak-effect-nested[data-effect-accent="gear-normal"] { --effect-border: #b48ae8; }
.taehak-effect-nested[data-effect-accent="gear-exclusive"] { --effect-border: #f49b54; }
.taehak-effect-nested[data-effect-faction="wei"] { --effect-border: #5b9de8; }
.taehak-effect-nested[data-effect-faction="shu"] { --effect-border: #51b075; }
.taehak-effect-nested[data-effect-faction="wu"] { --effect-border: #e16666; }
.taehak-effect-nested[data-effect-faction="qun"] { --effect-border: #a67bd3; }
.taehak-effect-nested[data-effect-faction="neutral"] { --effect-border: var(--peak-line); }
/* Gold general popups retain their rarity border independently of faction. */
.taehak-effect-dialog[data-effect-kind="general"][data-effect-accent="gold"],
.taehak-effect-nested[data-effect-kind="general"][data-effect-accent="gold"] { --effect-border: #cba35c; }
.taehak-effect-dialog[data-effect-kind="general"][data-effect-accent="turquoise"],
.taehak-effect-nested[data-effect-kind="general"][data-effect-accent="turquoise"] { --effect-border: #56b4a8; }
.taehak-effect-nested__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .65rem .8rem; border-bottom: 1px solid var(--peak-line); background: var(--peak-field); }
.taehak-effect-nested .taehak-effect-nested__title { margin: 0; color: var(--peak-ink); font-size: .98rem; line-height: 1.4; }
.taehak-effect-nested__close { flex: none; min-height: 2rem; padding: .25rem .55rem; font: inherit; font-size: .78rem; }
.taehak-effect-nested__body { padding: .7rem .8rem .9rem; overflow-wrap: anywhere; }
.taehak-effect-nested__body h3, .taehak-effect-nested__body h4 { margin: .6rem 0 .3rem; color: var(--peak-accent); font-size: .84rem; }
.taehak-effect-nested__body p { margin: .35rem 0 .6rem; }
.taehak-effect-nested__body section + section { margin-block-start: .7rem; padding-block-start: .4rem; border-block-start: 1px solid var(--peak-line); }
.taehak-effect-dialog__head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 1.55rem);
  background: var(--peak-panel);
  background: color-mix(in srgb, var(--effect-border) 8%, var(--peak-panel));
  border-block-end: 1px solid var(--peak-line);
}
.taehak-effect-dialog h2 { margin: 0; font-size: clamp(1.15rem, 5vw, 1.55rem); color: var(--peak-green); }
.taehak-effect-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; min-width: 0; }
.taehak-effect-heading-name { display: flex; align-items: baseline; gap: .5rem; min-inline-size: 0; max-inline-size: 100%; }
.taehak-effect-heading-name h2 { min-inline-size: 0; overflow-wrap: anywhere; }
.taehak-effect-header-tier:not([hidden]) {
  display: inline-block;
  flex: none;
  padding: .16rem .45rem;
  border: 1px solid var(--peak-line);
  border-radius: .35rem;
  background: var(--peak-selected);
  color: var(--peak-green);
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.25;
  white-space: nowrap;
}
.taehak-effect-header-tier[data-tier="OP"] { border-color: var(--peak-action); background: var(--peak-action); color: var(--peak-action-ink); }
.taehak-effect-header-tier[data-tier="1"] { border-color: var(--peak-action); color: var(--peak-accent); }
.taehak-effect-header-tier[data-tier="3"] { background: var(--peak-field); color: var(--peak-muted); }
.taehak-effect-header-meta { margin: 0; color: var(--peak-muted); font-size: .84rem; overflow-wrap: anywhere; }
.taehak-effect-dialog__close {
  flex: none;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: .4rem .78rem;
  border: 1px solid var(--peak-line);
  border-radius: .25rem;
  color: var(--peak-green);
  background: var(--peak-field);
  font: inherit;
  cursor: pointer;
}
.taehak-effect-dialog__body { padding: 1rem clamp(1rem, 4vw, 1.55rem) 1.5rem; }
.taehak-effect-dialog__body p { margin: .2rem 0 .7rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.taehak-effect-dialog__body :is(.taehak-effect-meta, .taehak-effect-status) { color: var(--peak-muted); }
.taehak-effect-dialog__body h3 { margin: .9rem 0 .3rem; color: var(--peak-accent); font-size: .94rem; }
.taehak-effect-dialog__body section + section { border-block-start: 1px solid var(--peak-line); margin-block-start: .75rem; padding-block-start: .4rem; }
.taehak-effect-card.has-portrait { display: grid; grid-template-columns: minmax(7.5rem, .36fr) minmax(0, 1fr); gap: clamp(.75rem, 3vw, 1.55rem); align-items: start; }
.taehak-effect-portrait { --portrait-accent: var(--peak-line); box-sizing: border-box; min-width: 0; margin: 0; padding: 0; border: 2px solid var(--portrait-accent); border-radius: .65rem; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--portrait-accent) 12%, transparent), transparent 75%); }
.taehak-effect-portrait[data-faction="wei"] { --portrait-accent: #5b9de8; }
.taehak-effect-portrait[data-faction="shu"] { --portrait-accent: #51b075; }
.taehak-effect-portrait[data-faction="wu"] { --portrait-accent: #e16666; }
.taehak-effect-portrait[data-faction="qun"] { --portrait-accent: #a67bd3; }
.taehak-effect-portrait img { display: block; width: auto; max-width: 100%; height: auto; object-fit: scale-down; border-radius: .5rem; mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 92%, transparent), linear-gradient(to right, transparent, #000 3%, #000 97%, transparent); mask-composite: intersect; }
.taehak-effect-detail { min-width: 0; }
.taehak-effect-detail > section:first-child h3 { margin-block-start: 0; }
.taehak-effect-nested .taehak-effect-nested-card.has-portrait { grid-template-columns: min(5.5rem, 28%) minmax(0, 1fr); gap: .75rem; }
.taehak-effect-dialog .effect-color-power { color: #f58b8b; }
.taehak-effect-dialog .effect-color-strategy { color: #7cb6ff; }
.taehak-effect-dialog .effect-color-defense { color: #b7c0cc; }
.taehak-effect-dialog .effect-color-initiative { color: #f1cf6a; }
.taehak-effect-dialog .effect-color-healing { color: #7dd39b; }
.taehak-effect-dialog .effect-color-debuff { color: #c29af5; }
.taehak-effect-dialog .effect-color-penetration { color: #f291c1; }
.taehak-effect-dialog .effect-color-insight { color: #7dd3fc; }
.taehak-effect-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.taehak-effect-selection { min-block-size: 2.75rem; padding: .35rem .65rem; border: 1px solid var(--peak-line); background: var(--peak-field); color: var(--peak-accent); border-radius: .25rem; cursor: pointer; }
body.taehak-unified:has(.taehak-effect-dialog:modal) { overflow: hidden; }

.taehak-card-insights { border-block-start: 1px solid var(--peak-line); margin-block-start: 1.2rem; padding-block-start: .3rem; min-width: 0; }
.taehak-insight-disclosure { margin-block: .65rem; border: 1px solid var(--peak-line); border-radius: .55rem; padding-inline: .85rem; background: var(--peak-field); }
.taehak-insight-disclosure > .taehak-insight-disclosure__summary { min-block-size: 2.75rem; box-sizing: border-box; padding-block: .65rem; color: var(--peak-accent); font-size: .94rem; font-weight: 650; cursor: pointer; }
.taehak-insight-disclosure > .taehak-insight-disclosure__summary::marker { color: var(--peak-accent); font-size: .8em; }
.taehak-insight-disclosure > .taehak-insight-disclosure__summary:focus-visible { outline: 2px solid var(--peak-accent); outline-offset: 2px; border-radius: .25rem; }
.taehak-insight-disclosure[open] { padding-block-end: .65rem; }
.taehak-insight-disclosure[open] > .taehak-insight-disclosure__summary { border-block-end: 1px solid var(--peak-line); margin-block-end: .4rem; }
.taehak-insight-list { list-style: none; margin: .4rem 0; padding: 0; }
.taehak-insight-list > li { padding-block: .45rem; min-width: 0; overflow-wrap: anywhere; }
.taehak-insight-list > li + li { border-block-start: 1px solid var(--peak-line); }
.taehak-insight-list a { color: var(--peak-accent); text-underline-offset: .2em; }
.taehak-effect-dialog__body .taehak-insight-muted { color: var(--peak-muted); font-size: .82rem; margin-block: .2rem; }
.taehak-insight-badge { display: inline-block; max-inline-size: 100%; box-sizing: border-box; margin: .25rem .4rem; border: 1px solid var(--peak-line); border-radius: .2rem; padding: .1rem .4rem; color: var(--peak-green); font-size: .76rem; }
.taehak-fate-disclosure { margin-block-start: .95rem; }
.taehak-fate-disclosure > summary { -webkit-tap-highlight-color: color-mix(in srgb, var(--peak-accent) 18%, transparent); }
.taehak-fate-disclosure > summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.taehak-fate-list { display: grid; gap: .55rem; list-style: none; margin: .65rem 0 .1rem; padding: 0; }
.taehak-fate-list > li { min-inline-size: 0; padding: .65rem .75rem; border: 1px solid var(--peak-line); border-radius: .4rem; background: var(--peak-panel); overflow-wrap: anywhere; }
.taehak-fate-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; line-height: 1.4; }
.taehak-fate-heading strong { color: var(--peak-accent); }
.taehak-fate-heading .taehak-insight-badge { margin: 0; }
.taehak-fate-required { margin-inline-start: auto; color: var(--peak-muted); font-size: .8rem; white-space: nowrap; }
.taehak-fate-list .taehak-fate-members { margin: .3rem 0 .45rem; color: var(--peak-muted); font-size: .86rem; }
.taehak-fate-list .taehak-fate-effect { margin: 0; font-size: .92rem; }
.taehak-insight-loadout { margin-block: 1rem; min-inline-size: 0; }
.taehak-insight-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem; padding: .3rem; border: 1px solid var(--peak-line); border-radius: .65rem; background: var(--peak-field); }
.taehak-insight-tabs--single { grid-template-columns: minmax(6rem, max-content); }
.taehak-insight-tabs .taehak-insight-tab { display: flex; align-items: center; justify-content: center; min-inline-size: 0; min-block-size: 2.75rem; padding: .5rem .125rem; border: 1px solid transparent; border-radius: .4rem; background: transparent; color: var(--peak-muted); font: 600 clamp(.76rem, 3vw, .86rem)/1.4 var(--peak-sans); text-align: center; white-space: nowrap; word-break: keep-all; cursor: pointer; }
.taehak-insight-tab:hover { color: var(--peak-accent); background: var(--peak-panel); }
.taehak-insight-tab[aria-selected="true"] { border-color: var(--peak-line); background: var(--peak-selected); color: var(--peak-accent); }
.taehak-insight-tab:focus-visible { outline: 2px solid var(--peak-accent); outline-offset: -2px; }
.taehak-effect-dialog__body .taehak-insight-tabpanel { margin: .6rem 0 0; padding: .2rem .3rem; border: 0; min-inline-size: 0; }
.taehak-insight-tabpanel[hidden] { display: none !important; }
.taehak-insight-chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: .35rem 0 0; padding: 0; }
.taehak-insight-chips > li { display: flex; min-inline-size: 0; max-inline-size: 100%; }
.taehak-insight-chips .taehak-insight-chip { display: inline-flex; align-items: center; box-sizing: border-box; min-block-size: 2.75rem; max-inline-size: 100%; padding: .4rem .7rem; border: 1px solid var(--peak-line); border-radius: .45rem; background: var(--peak-field); color: var(--peak-green); font: inherit; font-size: .87rem; line-height: 1.45; text-align: start; overflow-wrap: anywhere; }
.taehak-insight-chips button.taehak-insight-chip { color: var(--peak-accent); cursor: pointer; }
.taehak-insight-chips button.taehak-insight-chip:hover { border-color: var(--peak-accent); background: var(--peak-selected); }
.taehak-insight-chips button.taehak-insight-chip:focus-visible { outline: 2px solid var(--peak-accent); outline-offset: 2px; }
.taehak-insight-replacements .taehak-insight-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.taehak-insight-replacements .taehak-insight-list > li { padding: 0; border: 0; }

@media (max-width: 640px) {
  body.taehak-unified .taehak-effect-dialog:modal {
    position: fixed !important;
    inset: auto 0 0 !important;
    margin: 0 !important;
    inline-size: 100% !important;
    max-inline-size: none !important;
    max-block-size: 84dvh !important;
    border-radius: .75rem .75rem 0 0 !important;
  }
  .taehak-effect-dialog__body { padding-block-end: max(1.45rem, env(safe-area-inset-bottom)); }
  .taehak-effect-dialog__head { gap: .55rem; }
  .taehak-effect-card.has-portrait { grid-template-columns: min(7rem, 29%) minmax(0, 1fr); gap: .7rem; }
  body.taehak-unified .taehak-effect-trigger { min-block-size: 2.25rem; }
}

.taehak-metrics { max-inline-size: 62rem; margin-inline: auto; }
.taehak-metrics .taehak-metrics-back {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  margin-block-end: .5rem;
  color: var(--peak-accent);
  font-size: .875rem;
  font-weight: 650;
  text-underline-offset: .23em;
}
body.taehak-unified .taehak-metrics .taehak-metrics-header { margin-block-end: 1rem; }
.taehak-metrics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.taehak-metrics-kpis > div,
.taehak-metrics-panel,
.taehak-metrics-notice {
  box-sizing: border-box;
  min-inline-size: 0;
  padding: 1rem;
  border: 1px solid var(--peak-line);
  border-radius: .7rem;
  background: var(--peak-panel);
}
.taehak-metrics-kpis dt { color: var(--peak-muted); font-size: .875rem; font-weight: 650; }
.taehak-metrics-kpis dd {
  margin: .25rem 0 0;
  color: var(--peak-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.taehak-metrics-kpis > div:first-child dd { color: var(--peak-accent); }
.taehak-metrics-kpis .taehak-metrics-unit,
.taehak-metrics-kpis .taehak-metrics-kpi-note { color: var(--peak-muted); font-size: .875rem; font-weight: 500; }
.taehak-metrics-panel, .taehak-metrics-notice { margin: 1rem 0 0; padding: clamp(.75rem, 2.5vw, 1.4rem); }
.taehak-metrics-panel h2 { margin: 0; color: var(--peak-ink); font-size: 1.125rem; font-weight: 750; }
.taehak-metrics-notice { color: var(--peak-muted); }
.taehak-metrics-notice p { margin: 0; }
.taehak-metrics-notice a { display: inline-block; margin-block-start: .45rem; color: var(--peak-accent); text-underline-offset: .2em; }
.taehak-metrics-chart {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .45rem .65rem;
  margin-block-start: 2.45rem;
  color: var(--peak-muted);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.taehak-metrics-axis { display: flex; flex-direction: column; align-items: end; justify-content: space-between; line-height: 1; }
.taehak-metrics-bars, .taehak-metrics-ticks {
  display: grid;
  grid-template-columns: repeat(var(--metrics-buckets), minmax(0, 1fr));
  min-inline-size: 0;
}
.taehak-metrics .taehak-metrics-bars {
  position: relative;
  block-size: clamp(7.5rem, 24vw, 12rem);
  margin: 0;
  padding: 0;
  border-block-start: 1px solid var(--peak-line);
  background: repeating-linear-gradient(to top, var(--peak-line) 0 1px, transparent 1px 25%);
  list-style: none;
}
.taehak-metrics-bucket { display: grid; min-inline-size: 0; align-items: end; justify-items: center; }
.taehak-metrics .taehak-metrics-bucket:focus-visible { z-index: 1; outline-offset: -1px; }
.taehak-metrics-bar {
  display: block;
  inline-size: min(73%, 2.25rem);
  block-size: var(--metrics-height);
  border-radius: .18rem .18rem 0 0;
  background: var(--peak-action);
}
.taehak-metrics-tooltip {
  position: absolute;
  z-index: 2;
  inset-block-end: calc(100% + .45rem);
  inset-inline-start: 50%;
  padding: .22rem .55rem;
  transform: translateX(-50%);
  border: 1px solid var(--peak-line);
  border-radius: .38rem;
  background: var(--peak-field);
  color: var(--peak-ink);
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
}
.taehak-metrics-bucket:focus .taehak-metrics-tooltip { visibility: visible; }
@media (hover: hover) {
  .taehak-metrics-bucket:hover .taehak-metrics-tooltip { z-index: 3; visibility: visible; }
  .taehak-metrics-bucket:hover .taehak-metrics-bar { background: var(--peak-accent); }
}
.taehak-metrics-ticks { grid-column: 2; }
.taehak-metrics-ticks > span { justify-self: center; white-space: nowrap; }
.taehak-metrics-ticks > span:first-child { justify-self: start; }
.taehak-metrics-ticks > span:last-child { justify-self: end; }
.taehak-metrics-table-wrap { margin-block-start: .7rem; overflow-x: auto; }
.taehak-metrics-table { inline-size: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.taehak-metrics-table :is(th, td) { padding: .55rem clamp(.28rem, 1.5vw, .75rem); border-block-end: 1px solid var(--peak-line); }
.taehak-metrics-table thead { background: var(--peak-field); color: var(--peak-muted); }
.taehak-metrics-table th { font-weight: 650; line-height: 1.4; word-break: keep-all; }
.taehak-metrics-table :is(th, td) { text-align: end; }
.taehak-metrics-table th:first-child { text-align: start; overflow-wrap: anywhere; }
.taehak-metrics-table td { white-space: nowrap; }
.taehak-metrics-rank { display: inline-block; min-inline-size: 2.3em; margin-inline-end: .4em; color: var(--peak-accent); font-size: .82rem; }
.taehak-metrics-table tbody tr:last-child > * { border-block-end: 0; }

@media (max-width: 56rem) {
  .taehak-metrics-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .taehak-metrics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taehak-metrics-kpis > div { padding: .75rem; }
  body.taehak-unified .taehak-metrics .taehak-metrics-header .taehak-metrics-periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inline-size: 100%;
  }
  body.taehak-unified .taehak-metrics-periods > .taehak-segment { justify-self: stretch; }
  .taehak-metrics-wide-tick { display: none; }
}

/* Native collections and set editing */
.taehak-content:has(> :is(.member-collections, #arenaSetForm)) > h1,
.guide-summary h1 {
  color: var(--peak-ink, #eeeae0);
  font-family: var(--peak-serif, 'Batang', '바탕', serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 0 0 1.1rem;
}

.taehak-content .member-collections {
  --mc-ink: var(--peak-ink, #eeeae0);
  --mc-muted: var(--peak-muted, #b8bdb0);
  --mc-paper: var(--peak-panel, #1c2520);
  --mc-line: var(--peak-line, #3c4940);
  --mc-action: var(--peak-action, #d9b478);
  gap: 1.05rem;
}

.taehak-content .member-collections :is(.mc-card, .mc-roster, .mc-settings, form, .mc-member) {
  border-radius: .55rem;
  padding: clamp(.8rem, 2vw, 1.15rem);
}

.taehak-content .member-collections .mc-card {
  align-content: start;
  box-shadow: 0 1px 2px #0003;
}

.taehak-content .member-collections :is(.mc-roster, .mc-member) {
  background: var(--peak-paper, #131915);
}

.taehak-content .member-collections :is(h2, h3),
.taehak-content #arenaSetForm :is(h2, h3) {
  color: var(--peak-green, #e3eade);
  line-height: 1.4;
  font-family: var(--peak-serif, 'Batang', '바탕', serif);
}

.taehak-content .member-collections :is(button, select, summary, .mc-button),
.taehak-content #arenaSetForm :is(button, select),
.taehak-content .arena-editor-links a {
  min-block-size: 44px;
}

.taehak-content .member-collections input:not([type=checkbox]),
.taehak-content .member-collections select,
.taehak-content #arenaSetForm :is(input:not([type=hidden]), select) {
  min-block-size: 44px;
  background: var(--peak-field, #151e18);
  font-size: 1rem;
}

.taehak-content .member-collections :is(button, .mc-button) {
  background: var(--peak-field, #151e18);
  color: var(--peak-ink, #eeeae0);
}

.taehak-content .member-collections button[aria-pressed=true] {
  background: var(--peak-selected, #2b3b30);
  border-color: var(--peak-accent, #e5ba79);
  color: var(--peak-ink, #eeeae0);
  font-weight: 650;
}

.taehak-content .member-collections .mc-primary,
.taehak-content #arenaSetForm :is(#arena-editor-save, #arena-editor-retry),
main > form[action='/_lab/catalog'] button,
.taehak-arena-page button,
.rd-page .rd-form button {
  background: var(--peak-action, #d9b478);
  border-color: var(--peak-action, #d9b478);
  color: var(--peak-action-ink, #202119);
  font-weight: 650;
}

.taehak-content .member-collections .mc-notice { color: var(--peak-ink, #eeeae0); }
.taehak-content .member-collections :is(.mc-actions .mc-delete, .mc-notice[data-error=true], .mc-stat-sum[data-error=true], [data-member-error]) {
  color: var(--peak-accent, #e5ba79);
}

.taehak-content .member-collections .mc-button,
.taehak-content .arena-editor-links a {
  display: inline-flex;
  align-items: center;
}

.taehak-content .member-collections .mc-settings > summary {
  display: list-item;
  padding-block: .55rem;
  cursor: pointer;
  font-weight: 650;
}

.taehak-content .member-collections :is(.mc-roster-cards button, .mc-selected button) {
  white-space: normal;
  line-height: 1.35;
}

.taehak-content .member-collections .mc-formation-board [data-filled=true],
.taehak-content #arenaSetForm .formation-position.has-general {
  background: var(--peak-selected, #2b3b30);
  color: var(--peak-green, #e3eade);
  border-color: var(--peak-line, #3c4940);
}

.taehak-content #arenaSetForm {
  color: var(--peak-ink, #eeeae0);
}

.taehak-content #arenaSetForm :is(input, select, .arena-edit-deck, .arena-member, .formation-board, .formation-position) {
  border-color: var(--peak-line, #3c4940);
}

.taehak-content #arenaSetForm .arena-edit-deck {
  background: var(--peak-panel, #1c2520);
  padding: clamp(.85rem, 3vw, 1.35rem);
}

.taehak-content #arenaSetForm :is(.arena-member, .formation-board) {
  background: var(--peak-paper, #131915);
}

.taehak-content #arenaSetForm small:not(:empty),
.taehak-content #arenaSetForm .formation-effects {
  color: var(--peak-muted, #b8bdb0);
}

.taehak-content #arenaSetForm .arena-draft-warnings {
  background: var(--peak-selected, #2b3b30);
  color: var(--peak-accent, #e5ba79);
  border-color: var(--peak-accent, #e5ba79);
}

/* Season guide, ranked cards, and card search */
.guide-summary {
  max-width: 68rem;
  margin-inline: auto;
}

.guide-summary :target { scroll-margin-block-start: 8rem; }
.guide-summary :is(p, a, li) { overflow-wrap: anywhere; }
.guide-summary p { margin-block: .5rem; }
.guide-summary :is(a, h2, h3) { color: var(--peak-green); }
.guide-summary.guide-article h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.guide-summary h2 { font-size: clamp(1.28rem, 2.5vw, 1.65rem); }
.guide-summary h3 { font-size: 1.12rem; }
.guide-summary :is(h2, h3) {
  margin: 0 0 .5rem;
  font-family: var(--peak-serif);
  line-height: 1.35;
}
.guide-summary.guide-article .guide-titlebar { margin-block-end: 1.15rem; }
.guide-summary.guide-article .guide-overview { color: var(--peak-muted); max-width: 65ch; margin-block: .45rem 0; }

.guide-summary :is(.guide-controls, .guide-links, .guide-source-links) {
  display: flex;
  gap: .45rem .6rem;
  flex-wrap: wrap;
  align-items: center;
}
.guide-summary .guide-controls { margin-block: .65rem 1rem; }
.guide-summary :is(.guide-controls a, .guide-summary-link) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .25rem .65rem;
  box-sizing: border-box;
  border: 1px solid var(--peak-line);
  border-radius: .4rem;
  background: var(--peak-field);
  color: var(--peak-accent);
  text-decoration: none;
}
.guide-summary .guide-source-links { gap: .15rem 1rem; }
.guide-summary .guide-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--peak-accent);
  font-size: .88rem;
  text-underline-offset: .18em;
}
.guide-summary time { color: var(--peak-muted); }
.guide-summary .guide-korean-notice {
  margin-block: .65rem 1rem;
  padding: .55rem .8rem;
  border-inline-start: 2px solid var(--peak-line);
  background: var(--peak-field);
}
.guide-summary .guide-korean-notice p { margin-block: .25rem; }

.guide-summary :is(.guide-scenario-summary, .guide-summary-card) {
  min-width: 0;
  padding: clamp(.95rem, 2.75vw, 1.5rem);
  border: 1px solid var(--peak-line);
  border-radius: .65rem;
  background: var(--peak-panel);
}
.guide-summary .guide-scenario-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
}
.guide-summary .guide-tags-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .65rem 0 1rem;
  padding: 0;
  list-style: none;
}
.guide-summary .guide-tags-summary li {
  padding: .12rem .4rem;
  border: 1px solid var(--peak-line);
  border-radius: .25rem;
  color: var(--peak-muted);
  font-size: .84rem;
}
.guide-summary .guide-map-summary { min-width: 0; margin: 0; }
.guide-summary .guide-map-summary img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 29rem;
  object-fit: contain;
  border-radius: .45rem;
  background: var(--peak-paper);
}
.guide-summary .guide-map-summary span {
  display: inline-block;
  margin-block-start: .35rem;
  color: var(--peak-accent);
  font-size: .88rem;
}
.guide-summary :is(.guide-steps-summary, .guide-summary-card ul) { margin: .45rem 0 0; padding-inline-start: 1.4rem; }
.guide-summary :is(.guide-steps-summary, .guide-summary-card ul) li + li { margin-block-start: .45rem; }
.guide-summary .guide-heading-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  margin-block: clamp(1.3rem, 3vw, 2rem) .75rem;
}
.guide-summary .guide-heading-summary h2 { margin: 0; }
.guide-summary .guide-cards-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.guide-summary.guide-article { max-width: 52rem; }
.guide-summary.guide-article > section {
  margin-block: 1.15rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--peak-line);
  border-radius: 0;
  background: transparent;
}
.guide-summary .guide-checkpoints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1rem;
  margin-block: .7rem;
  padding: 0;
  list-style: none;
}
.guide-summary .guide-checkpoints li { min-width: 0; padding-block: .55rem; border-top: 1px solid var(--peak-line); }
.guide-summary .guide-checkpoints :is(h3, p) { margin-block: .15rem; }

@media (hover: hover) and (pointer: fine) {
  .guide-summary :is(.guide-controls a, .guide-summary-link):hover { color: var(--peak-accent); background: var(--peak-selected); }
}
@media (max-width: 44rem) {
  .guide-summary :is(.guide-scenario-summary, .guide-cards-summary) { grid-template-columns: minmax(0, 1fr); }
  .guide-summary.guide-article .guide-titlebar { margin-block-end: .9rem; }
}
@media (max-width: 27rem) {
  .guide-summary .guide-checkpoints { grid-template-columns: minmax(0, 1fr); }
  .guide-summary .guide-source-links a { min-height: 2.5rem; }
}

body:has(> main > form[action='/_lab/catalog']) {
  margin: 0;
  color: var(--peak-ink, #eeeae0);
  background: var(--peak-paper, #131915);
  font: 1rem/1.65 var(--peak-sans, 'Malgun Gothic', sans-serif);
}

main:has(> form[action='/_lab/catalog']) {
  max-inline-size: 67rem;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}

main:has(> form[action='/_lab/catalog']) h1 {
  color: var(--peak-green, #e3eade);
  font-family: var(--peak-serif, 'Batang', '바탕', serif);
  line-height: 1.25;
}

main > form[action='/_lab/catalog'] {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) auto;
  align-items: end;
  gap: .6rem;
  padding: .95rem;
  background: var(--peak-panel, #1c2520);
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: .55rem;
}

main > form[action='/_lab/catalog'] label { display: grid; min-inline-size: 0; }
main > form[action='/_lab/catalog'] :where(select, button, input:not([type=hidden])) {
  box-sizing: border-box;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: .4rem;
  color: var(--peak-ink, #eeeae0);
  background: var(--peak-field, #151e18);
  font: inherit;
}

main > form[action='/_lab/catalog'] button { cursor: pointer; }

main:has(> form[action='/_lab/catalog']) a { color: var(--peak-green, #e3eade); }

/* Standalone Arena, its rankings, sets, and battle details */
.arena-hub-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 36rem);
  box-sizing: border-box;
  margin-block: .65rem 1.2rem;
  padding: .24rem;
  gap: .24rem;
  border: 1px solid var(--peak-line);
  border-radius: .55rem;
  background: var(--peak-field);
}
.arena-hub-tabs > a {
  display: grid;
  place-items: center;
  min-block-size: 2.75rem;
  padding: .25rem .4rem;
  border-bottom: 2px solid transparent;
  border-radius: .35rem;
  color: var(--peak-muted);
  text-align: center;
  text-decoration: none;
  font-weight: 650;
}
.arena-hub-tabs > a[aria-current=page] {
  border-color: var(--peak-accent);
  background: var(--peak-selected);
  color: var(--peak-accent);
}
@media (hover: hover) and (pointer: fine) {
  .arena-hub-tabs > a:hover { background: var(--peak-selected); color: var(--peak-accent); }
}
body.taehak-arena-page {
  margin: 0;
  background: var(--peak-paper, #131915);
  color: var(--peak-ink, #eeeae0);
  font: 1rem/1.65 var(--peak-sans, 'Malgun Gothic', sans-serif);
}

.taehak-arena-page > main {
  box-sizing: border-box;
  max-inline-size: 66rem;
  padding: clamp(1rem, 3.75vw, 2.6rem);
  overflow-wrap: anywhere;
}

.taehak-arena-page :is(h1, h2, h3) {
  margin: 0 0 .65rem;
  color: var(--peak-green, #e3eade);
  font-family: var(--peak-serif, 'Batang', '바탕', serif);
  line-height: 1.3;
}

.taehak-arena-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.taehak-arena-page h2 { font-size: clamp(1.15rem, 2.75vw, 1.48rem); }
.taehak-arena-page a { color: var(--peak-green, #e3eade); text-underline-offset: .19em; }
.taehak-arena-page > main > nav:not(.arena-hub-tabs) { gap: .45rem; margin-block: .75rem 1rem; }

.taehak-arena-page > main > nav:not(.arena-hub-tabs) a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding: .35rem .75rem;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: .45rem;
  background: var(--peak-panel, #1c2520);
  text-decoration: none;
}

.taehak-arena-page > main > section {
  padding: clamp(.85rem, 2.6vw, 1.35rem);
  border-color: var(--peak-line, #3c4940);
  border-radius: .65rem;
  background: var(--peak-panel, #1c2520);
  box-shadow: 0 1px 2px #0003;
}

.taehak-arena-page > main > section > :is(ol, ul) {
  margin-block: .5rem 0;
  padding-inline-start: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.taehak-arena-page > main > section > ul a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
}

.taehak-arena-page :is(button, select, summary) {
  min-block-size: 44px;
  font: inherit;
}

.taehak-arena-page :where(button, select) {
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: .4rem .7rem;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: .4rem;
  background: var(--peak-field, #151e18);
  color: var(--peak-ink, #eeeae0);
}

.taehak-arena-page button:disabled { cursor: wait; opacity: .64; }
.taehak-arena-page form:not([data-arena-battle]) label { min-inline-size: 0; }
.taehak-arena-page form:not([method]) { display: flex; align-items: end; flex-wrap: wrap; gap: .5rem; }
.taehak-arena-page form > p:has(select[name^='slot_']) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
}
.taehak-arena-page form > p:has(select[name^='slot_']) label { display: grid; gap: .2rem; }
.taehak-arena-page :is([data-arena-message], [role=alert]) { color: var(--peak-accent, #e5ba79); }

.taehak-arena-page [data-arena-pairing] > details {
  margin-top: .6rem;
  padding-inline: .7rem;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: .45rem;
  background: var(--peak-paper, #131915);
}

.taehak-arena-page [data-arena-pairing] summary {
  box-sizing: border-box;
  padding-block: .6rem;
  color: var(--peak-green, #e3eade);
  cursor: pointer;
  font-weight: 650;
}

.taehak-arena-page .arena-result-decks { margin: .05rem 0 .75rem; }
.taehak-arena-page [data-arena-result-deck] { background: var(--peak-panel, #1c2520); border-color: var(--peak-line, #3c4940); }
.taehak-arena-page [data-arena-result-deck] :is(td, th) { border-color: var(--peak-line, #3c4940); }
.taehak-arena-page [data-arena-result-formation] { color: var(--peak-muted, #b8bdb0); }

/* Recommendation cards use the same surfaces and control states. */
body.rd-page { background: var(--peak-paper, #131915); color: var(--peak-ink, #eeeae0); }
.rd-page .rd-bar { background: var(--peak-field, #151e18); border-color: var(--peak-line, #3c4940); color: var(--peak-ink, #eeeae0); }
.rd-page .rd-content :is(h1, h2, h3) { font-family: var(--peak-serif, 'Batang', '바탕', serif); }
.rd-page .rd-content a { color: var(--peak-green, #e3eade); }
.rd-page .rd-content .rd-switch [aria-current=page] { color: var(--peak-accent, #e5ba79); }
.rd-page :is(.rd-card, .rd-form) { background: var(--peak-panel, #1c2520); border-color: var(--peak-line, #3c4940); }
.rd-page .rd-form select { background: var(--peak-field, #151e18); }
.rd-page :is(.rd-numbers, .rd-card .rd-meta, .rd-card dd) { color: var(--peak-muted, #b8bdb0); }
.rd-page :is(.rd-slots li, .rd-map th) { background: var(--peak-paper, #131915); }
.rd-page .rd-slots strong { color: var(--peak-ink, #eeeae0); }
.rd-page :is(.rd-card details, .rd-map td, .rd-map th) { border-color: var(--peak-line, #3c4940); }
.rd-page .rd-alert { background: var(--peak-selected, #2b3b30); border-color: var(--peak-accent, #e5ba79); }
.rd-page .rd-switch a { display: inline-flex; align-items: center; min-block-size: 44px; }

/* Form outlines identify the darker field surface at low magnification. */
.taehak-content .member-collections :is(input, select),
.taehak-content #arenaSetForm :is(input, select),
.taehak-arena-page select,
main > form[action='/_lab/catalog'] :is(input, select),
.rd-page .rd-form select {
  border-color: #6d7b6f;
}

body:is(.taehak-arena-page, .rd-page),
body:has(> main > form[action='/_lab/catalog']),
.taehak-content :is(.member-collections, #arenaSetForm) {
  color-scheme: dark;
}

/* Visible keyboard focus across the scoped layouts. */
.taehak-content :is(.member-collections, #arenaSetForm, .arena-editor-links, .guide-summary) :focus-visible,
.taehak-arena-page > main :focus-visible,
main:has(> form[action='/_lab/catalog']) :focus-visible,
.rd-page .rd-content :focus-visible {
  outline: 2px solid var(--peak-accent, #e5ba79);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .taehak-arena-page > main > nav a:hover { border-color: var(--peak-green, #e3eade); }
  .rd-page .rd-form button:hover { background: var(--peak-accent, #e5ba79); }
}

@media (max-width: 46rem) {
  main > form[action='/_lab/catalog'] { grid-template-columns: minmax(0, 1fr) auto; }
  main > form[action='/_lab/catalog'] label:first-child { grid-column: 1 / -1; }
  .taehak-arena-page .arena-result-decks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 26rem) {
  .taehak-content .member-collections .mc-field-grid,
  .taehak-content #arenaSetForm .arena-editor-settings,
  .taehak-arena-page form > p:has(select[name^='slot_']) { grid-template-columns: minmax(0, 1fr); }
  .taehak-content .member-collections .mc-toolbar > label { flex: 1 1 100%; }
}

/* Private simulation archives use the same surfaces as the simulator. */
body.taehak-archive-page {
  margin: 0;
  color: var(--peak-ink, #eeeae0);
  background: var(--peak-paper, #131915);
  font: 1rem/1.6 var(--peak-sans, system-ui, sans-serif);
}
.taehak-archive-page > main {
  box-sizing: border-box;
  width: min(calc(100% - 2.5rem), 71rem);
  margin-inline: auto;
  padding-block: clamp(1.3rem, 4vw, 3.15rem) 4rem;
  overflow-wrap: anywhere;
}
.taehak-archive-page > main *, .taehak-archive-page > main *::before, .taehak-archive-page > main *::after { box-sizing: border-box; }
.taehak-archive-page h1 { margin: 0 0 1.1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; line-height: 1.3; }
.taehak-archive-page h2 { margin: .4rem 0; font-size: clamp(1.15rem, 3vw, 1.45rem); line-height: 1.45; }
.taehak-archive-page p { margin: .5rem 0; }
.taehak-archive-page a { color: var(--peak-green); text-underline-offset: .2em; }
.taehak-archive-page .archive-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.taehak-archive-page .archive-toolbar p { color: var(--peak-muted); font-size: .9rem; }
.taehak-archive-page .archive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 1px solid var(--peak-line);
  border-radius: .5rem;
  color: var(--peak-green);
  background: var(--peak-field);
  font: 600 .875rem/1.4 var(--peak-sans);
  text-decoration: none;
  cursor: pointer;
}
.taehak-archive-page .archive-button:hover { border-color: var(--peak-accent); color: var(--peak-accent); }
.taehak-archive-page .archive-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.taehak-archive-page .archive-records > li { min-width: 0; margin: 0; padding: 0; }
.taehak-archive-page .archive-record {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.2rem;
  border: 1px solid var(--peak-line);
  border-radius: .85rem;
  background: var(--peak-panel);
  text-decoration: none;
}
.taehak-archive-page .archive-record:hover { border-color: #9b865e; background: #233027; }
.taehak-archive-page .archive-record-label { color: var(--peak-accent); font-size: .78rem; font-weight: 650; }
.taehak-archive-page .archive-record > strong { margin-block: .45rem .35rem; color: var(--peak-ink); font-size: 1.12rem; }
.taehak-archive-page time { display: block; color: var(--peak-muted); font-size: .82rem; }
.taehak-archive-page .archive-record-open { align-self: stretch; display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--peak-line); color: var(--peak-green); font-size: .84rem; }
.taehak-archive-page .archive-pagination { display: flex; justify-content: end; gap: .5rem; margin-top: 1.2rem; }
.taehak-archive-page .archive-pagination:empty { display: none; }
.taehak-archive-page .archive-empty { padding: 2.5rem 1.2rem; border: 1px dashed var(--peak-line); border-radius: .85rem; text-align: center; }
.taehak-archive-page .archive-empty > strong { color: var(--peak-green); }
.taehak-archive-page .archive-empty > p { color: var(--peak-muted); font-size: .9rem; }
.taehak-archive-page .archive-back { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; margin-bottom: .4rem; color: var(--peak-muted); text-decoration: none; font-size: .9rem; }
.taehak-archive-page .archive-detail-panel { margin: 0 0 1rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--peak-line); border-radius: 1rem; background: var(--peak-panel); }
.taehak-archive-page .archive-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.35rem 0; }
.taehak-archive-page .archive-score-grid > div { --archive-outcome: #b8bdb0; min-width: 0; padding: 1rem .55rem; border: 1px solid var(--peak-line); border-top: 2px solid var(--archive-outcome); border-radius: .6rem; background: var(--peak-field); text-align: center; }
.taehak-archive-page .archive-score-grid [data-outcome=win] { --archive-outcome: #8fbdab; }
.taehak-archive-page .archive-score-grid [data-outcome=loss] { --archive-outcome: #e2a389; }
.taehak-archive-page .archive-score-grid dt { color: var(--peak-muted); font-size: .85rem; }
.taehak-archive-page .archive-score-grid dd { margin: .15rem 0 0; color: var(--peak-ink); font-size: .875rem; font-variant-numeric: tabular-nums; }
.taehak-archive-page .archive-score-grid dd:first-of-type { color: var(--archive-outcome); font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 750; }
.taehak-archive-page .archive-score-grid dd > small { margin-left: .15rem; font-size: .6em; font-weight: 500; }
.taehak-archive-page :is(.archive-note, .archive-seed) { color: var(--peak-muted); font-size: .85rem; }
.taehak-archive-page .archive-replay { margin-top: 1rem; padding-inline: 1rem; border: 1px solid var(--peak-line); border-radius: .65rem; background: var(--peak-field); }
.taehak-archive-page .archive-replay > summary { min-height: 3.25rem; padding-block: .75rem; color: var(--peak-green); font-weight: 650; cursor: pointer; }
.taehak-archive-page .archive-log { margin: .5rem 0 1rem; padding-inline-start: 1.5rem; font-size: .9rem; }
.taehak-archive-page .archive-log li { margin-block: .45rem; }
.taehak-archive-page .archive-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1rem; }
.taehak-archive-page .archive-actions form { margin: 0; }
.taehak-archive-page .archive-delete { color: #e3a48f; background: transparent; }
.taehak-archive-page > main :focus-visible { outline: 2px solid var(--peak-accent); outline-offset: 3px; }
@media (max-width: 34rem) {
  .taehak-archive-page > main { width: calc(100% - 1.5rem); }
  .taehak-archive-page .archive-score-grid { gap: .4rem; }
  .taehak-archive-page .archive-score-grid > div { padding-inline: .2rem; }
  .taehak-archive-page .archive-score-grid dt { font-size: .76rem; }
}

/* Shared page heading and navigation contract. Keep feature state in its own client.
 * Explicit dimensions keep archived pages with a 17px root aligned with 16px native pages. */
body.taehak-unified main:has(.taehak-page-header),
main.simulator-page {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1136px);
  max-width: none;
  min-inline-size: 0;
}

body.taehak-unified main:has(.taehak-page-header) {
  margin: 0 auto;
  padding: 32px 0 48px;
}

body.taehak-unified .guide-summary:has(> .taehak-page-header) {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.taehak-unified .taehak-page-header {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: block;
  min-inline-size: 0;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: 14px;
  background: var(--peak-panel, #1c2520);
  color: var(--peak-ink, #eeeae0);
  box-shadow: none;
  overflow: visible;
}

body.taehak-unified .taehak-page-header:has(.taehak-card-suggestions:not([hidden])) { z-index: 5; }
body.taehak-unified .taehak-page-header [hidden] { display: none !important; }

body.taehak-unified .taehak-page-header .taehak-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.taehak-unified .taehak-page-header .taehak-page-copy { flex: 1 1 288px; min-width: 0; }
body.taehak-unified .taehak-page-header .taehak-page-title {
  margin: 0;
  padding: 0;
  color: var(--peak-ink, #eeeae0);
  font-size: 32px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

body.taehak-unified .taehak-page-header .taehak-page-description {
  max-width: 75ch;
  margin: 8px 0 0;
  padding: 0;
  color: var(--peak-muted, #b8bdb0);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.taehak-unified .taehak-page-header .taehak-page-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.taehak-unified .taehak-page-header .taehak-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-block-start: 1px solid var(--peak-line, #3c4940);
  background: transparent;
}

body.taehak-unified .taehak-page-header .taehak-page-controls + .taehak-page-controls {
  margin-top: 12px;
  padding-top: 0;
  border-top: 0;
}

body.taehak-unified .taehak-page-header .taehak-segments {
  display: inline-flex;
  box-sizing: border-box;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: 10px;
  background: var(--peak-field, #151e18);
}

body.taehak-unified .taehak-page-header .taehak-segments.taehak-seasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 0 1 280px;
  width: 280px;
}

body.taehak-unified .taehak-page-header .taehak-segment {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 6.4px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 6.4px;
  background: transparent;
  color: var(--peak-muted, #b8bdb0);
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.taehak-unified .taehak-page-header .taehak-seasons .taehak-segment { padding-inline: 6.4px; white-space: nowrap; }
body.taehak-unified .taehak-page-header .taehak-segment:hover:not(:disabled) {
  background: var(--peak-selected, #2b3b30);
  color: var(--peak-ink, #eeeae0);
}
body.taehak-unified .taehak-page-header .taehak-segment:is([aria-current="page"], [aria-pressed="true"], [aria-selected="true"], .on, .active) {
  border-color: var(--peak-action, #d9b478);
  background: var(--peak-action, #d9b478);
  color: var(--peak-action-ink, #202119);
  box-shadow: none;
  font-weight: 750;
}

body.taehak-unified .taehak-page-header :is(button, select):disabled { opacity: .55; cursor: default; }
body.taehak-unified .taehak-page-header :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--peak-accent, #e5ba79);
  outline-offset: 2px;
}

body.taehak-unified .taehak-page-header .taehak-page-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.taehak-unified .taehak-page-header .taehak-page-search > :is(label, .taehak-card-search, input[type="search"]) {
  flex: 1 1 0;
  min-width: 0;
}

body.taehak-unified .taehak-page-header .taehak-page-search :is(input[type="search"], select) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--peak-line, #3c4940);
  border-radius: 8px;
  background: var(--peak-field, #151e18);
  color: var(--peak-ink, #eeeae0);
  font-size: 16px;
  line-height: 1.4;
}

body.taehak-unified .taehak-page-header .taehak-page-search input[type="search"]::placeholder { color: var(--peak-muted, #b8bdb0); }
body.taehak-unified .taehak-page-header .taehak-page-search > button,
body.taehak-unified .taehak-page-header .taehak-page-actions :is(a, button) {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--peak-action, #d9b478);
  border-radius: 8px;
  background: var(--peak-action, #d9b478);
  color: var(--peak-action-ink, #202119);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

body.taehak-unified .taehak-page-header .taehak-page-actions :is(a, button) {
  background: transparent;
  color: var(--peak-accent, #e5ba79);
}

@media (max-width: 42rem) {
  body.taehak-unified main:has(.taehak-page-header),
  main.simulator-page { width: calc(100% - 24px); }
  body.taehak-unified main:has(.taehak-page-header) { padding-top: 16px; }
  body.taehak-unified .taehak-page-header { margin-bottom: 16px; padding: 16px; border-radius: 12px; }
  body.taehak-unified .taehak-page-header .taehak-page-title { font-size: 28px; }
  body.taehak-unified .taehak-page-header .taehak-page-controls { gap: 10px; }
  body.taehak-unified .taehak-page-header .taehak-segments.taehak-seasons { flex-basis: 100%; width: 100%; }
  body.taehak-unified .taehak-page-header .taehak-segment { padding-inline: 10.4px; }
  body.taehak-unified .taehak-page-header .taehak-seasons .taehak-segment { padding-inline: 4px; }
  body.taehak-unified .taehak-page-header .taehak-simulation-nav { flex-wrap: nowrap; gap: 2px; }
  body.taehak-unified .taehak-page-header .taehak-simulation-nav .taehak-segment {
    padding-inline: clamp(.25rem, 1.4vw, .65rem);
    font-size: clamp(.75rem, 3.1vw, .875rem);
    white-space: nowrap;
  }
  body.taehak-unified .taehak-page-header .taehak-page-search { position: relative; }
  body.taehak-unified .taehak-page-header .taehak-page-search .taehak-card-search { position: static; }
  body.taehak-unified .taehak-page-header .taehak-page-search .taehak-card-suggestions { inset-inline: 0; }
}
