:root {
  --paper: #f3eee3;
  --paper-deep: #e7decc;
  --paper-light: #fffaf0;
  --ink: #13201c;
  --ink-soft: #394a43;
  --muted: #6c756e;
  --line: rgba(37, 54, 47, 0.2);
  --blue-ink: #0c2938;
  --pine: #264e42;
  --pine-deep: #17362e;
  --gold: #a57a35;
  --gold-soft: #d9bd78;
  --seal: #9b3029;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(36, 42, 35, 0.13);
  --header-height: 76px;
  --shell: min(1220px, calc(100vw - 64px));
  color-scheme: light;
  font-family:
    "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(243, 238, 227, 0.9), rgba(243, 238, 227, 0.9)),
    url("./assets/hanji-texture.png") center / 420px auto repeat;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand strong {
  word-break: keep-all;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-ink);
  transform: translateY(-180%);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(155, 48, 41, 0.38);
  outline-offset: 3px;
}

.section-shell,
.page-shell,
.header-inner,
.footer-inner {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(41, 58, 50, 0.13);
  background: rgba(249, 245, 236, 0.88);
  box-shadow: 0 8px 32px rgba(33, 42, 36, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 36, 30, 0.14);
}

.brand span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.brand strong {
  font-family: "Nanum Myeongjo", "Noto Serif KR", serif;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.primary-nav button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.primary-nav button:hover,
.primary-nav button.active {
  color: var(--pine-deep);
  background: rgba(38, 78, 66, 0.09);
}

.header-actions,
.account-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-button,
.logout-button,
.account-pill {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.75);
  font-size: 13px;
  font-weight: 800;
}

.login-button,
.logout-button {
  cursor: pointer;
}

.login-button {
  border-color: var(--pine);
  color: #fff;
  background: var(--pine);
}

.logout-button {
  padding-inline: 12px;
  color: var(--muted);
}

.account-pill {
  display: flex;
  max-width: 280px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.2;
}

.account-pill strong {
  max-width: 250px;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.account-pill small {
  margin-top: 2px;
  color: var(--gold);
  font-size: 10px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.74);
  cursor: pointer;
}

.menu-button i {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-menu,
.menu-backdrop {
  display: none;
}

.page-view {
  min-height: calc(100vh - var(--header-height));
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  isolation: isolate;
  background: #e9e4d8;
}

.hero-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(0.72) contrast(0.9);
  transform: scale(1.025);
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 239, 228, 0.97) 0%, rgba(244, 239, 228, 0.88) 37%, rgba(244, 239, 228, 0.32) 70%, rgba(244, 239, 228, 0.1) 100%),
    linear-gradient(0deg, rgba(243, 238, 227, 0.86) 0%, transparent 24%);
}

.hero-content {
  width: var(--shell);
  min-height: 690px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(460px, 0.82fr) minmax(330px, 0.55fr);
  align-items: center;
  gap: 7vw;
  padding: 74px 0 94px;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: "Nanum Myeongjo", "Noto Serif KR", serif;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.075em;
}

.hero-copy h1 em {
  color: var(--pine-deep);
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--pine-deep);
  box-shadow: 0 13px 30px rgba(23, 54, 46, 0.22);
}

.button.paper {
  border-color: rgba(33, 51, 43, 0.26);
  background: rgba(255, 253, 247, 0.74);
}

.button.light {
  color: var(--pine-deep);
  background: #f9f4e9;
}

.button.ink {
  color: #fff;
  background: var(--blue-ink);
}

.button.full {
  width: 100%;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--gold);
}

.flow-preview {
  position: relative;
  align-self: end;
  min-height: 228px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 18px;
  padding: 30px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  color: #f7f4e9;
  background:
    linear-gradient(145deg, rgba(16, 46, 39, 0.92), rgba(11, 33, 39, 0.86)),
    url("./assets/menu-hanji-02.png") center / cover;
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
}

.flow-preview::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(218, 190, 123, 0.2);
  pointer-events: none;
}

.preview-seal,
.large-seal {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff9ed;
  background: var(--seal);
  font-family: "Nanum Myeongjo", serif;
}

.preview-seal {
  width: 54px;
  height: 54px;
  font-size: 28px;
}

.flow-preview small,
.flow-preview strong,
.flow-preview em {
  display: block;
  font-style: normal;
}

.flow-preview small {
  margin-bottom: 12px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.flow-preview strong {
  max-width: 280px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 25px;
  line-height: 1.48;
}

.flow-preview em {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.hero-mark {
  position: absolute;
  right: 3.5vw;
  bottom: 12px;
  color: rgba(30, 50, 41, 0.23);
  font-family: "Nanum Myeongjo", serif;
  font-size: 14px;
  letter-spacing: 0.36em;
}

.home-menu {
  padding-block: 100px 108px;
}

.section-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 42px;
}

.section-heading.centered {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.section-heading h2,
.page-heading h1,
.editorial h2,
.consulting-home h2,
.app-promo h2,
.account-home h2 {
  margin-bottom: 0;
  font-family: "Nanum Myeongjo", "Noto Serif KR", serif;
  font-weight: 650;
  letter-spacing: -0.05em;
}

.section-heading h2,
.editorial h2,
.consulting-home h2,
.app-promo h2,
.account-home h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.section-heading > p,
.page-heading > p {
  max-width: 470px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.75;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.menu-grid button {
  min-height: 166px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 15px;
  padding: 27px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.38);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.menu-grid button:hover {
  position: relative;
  z-index: 1;
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(34, 46, 38, 0.09);
}

.menu-grid b {
  color: var(--seal);
  font-family: "Nanum Myeongjo", serif;
  font-size: 27px;
  font-weight: 500;
}

.menu-grid span,
.mobile-menu span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 850;
}

.menu-grid small,
.mobile-menu small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
}

.three-readings {
  padding-block: 102px 112px;
  background:
    linear-gradient(rgba(17, 40, 34, 0.96), rgba(13, 32, 28, 0.96)),
    url("./assets/menu-hanji-03.png") center / cover;
  color: #f5f0e4;
}

.three-readings .section-heading > p {
  color: rgba(255, 255, 255, 0.58);
}

.reading-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.reading-paths article {
  min-height: 398px;
  padding: 38px;
  background: rgba(19, 43, 36, 0.88);
}

.reading-paths article.featured {
  background: rgba(249, 241, 224, 0.97);
  color: var(--ink);
}

.reading-paths article > span {
  color: var(--gold-soft);
  font-family: "Nanum Myeongjo", serif;
  font-size: 38px;
}

.reading-paths article > p {
  margin: 48px 0 8px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.reading-paths .featured > p {
  color: var(--seal);
}

.reading-paths h3 {
  min-height: 68px;
  margin-bottom: 25px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 25px;
  line-height: 1.38;
}

.reading-paths ul {
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 2;
}

.reading-paths .featured ul {
  color: var(--muted);
}

.reading-paths button,
.text-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.account-home {
  padding-block: 105px;
  color: #f9f5eb;
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 177, 116, 0.13), transparent 30%),
    linear-gradient(120deg, #173a32, #102b2a 62%, #0c2329);
}

.account-home-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) 1.32fr;
  align-items: center;
  gap: 72px;
}

.account-home h2 {
  margin-bottom: 18px;
}

.account-home p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.account-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.account-dashboard button {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 8px 16px;
  padding: 26px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
}

.account-dashboard button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.account-dashboard span {
  grid-column: 1 / -1;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
}

.account-dashboard strong {
  font-family: "Nanum Myeongjo", serif;
  font-size: 17px;
}

.account-dashboard i {
  font-style: normal;
}

.editorial {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 0.76fr 0.7fr;
  align-items: stretch;
  gap: 0;
  padding-block: 105px;
}

.editorial-art {
  min-height: 340px;
  overflow: hidden;
  background: var(--paper-deep);
}

.editorial-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.9);
}

.editorial-copy,
.news-brief {
  padding: 48px;
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 253, 247, 0.65);
}

.editorial-copy h2 {
  margin-bottom: 18px;
}

.editorial-copy > p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.8;
}

.news-brief {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 0;
  color: #fff;
  background: var(--blue-ink);
  text-align: left;
  cursor: pointer;
}

.news-brief small {
  color: var(--gold-soft);
  font-weight: 850;
}

.news-brief strong {
  margin: 22px 0 42px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 23px;
  line-height: 1.55;
}

.news-brief span {
  font-size: 12px;
  font-weight: 800;
}

.consulting-home {
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.72);
}

.consulting-home .section-shell {
  min-height: 250px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.large-seal {
  width: 72px;
  height: 72px;
  font-size: 38px;
}

.consulting-home h2 {
  margin-bottom: 12px;
}

.consulting-home p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.app-promo {
  min-height: 260px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-block: 50px;
}

.app-promo > img {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.app-promo h2 {
  margin-bottom: 12px;
  font-size: 31px;
}

.app-promo p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.store-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-links button {
  min-width: 225px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.5);
}

.page-view:not(.home-view) {
  padding: 70px 0 110px;
}

.page-shell {
  position: relative;
}

.page-heading {
  min-height: 150px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ink);
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 68px);
}

.page-heading > div > p:last-child {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.page-heading.with-art {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 40px;
  color: #fff;
  background: var(--pine-deep);
}

.page-heading.with-art > div {
  position: relative;
  z-index: 1;
}

.page-heading.with-art img {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
  opacity: 0.67;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}

.page-heading.with-art > div > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.feature-banner,
.web-payment-note,
.profile-strip,
.support-band {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 25px;
  margin: 26px 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.68);
}

.feature-banner > span,
.web-payment-note > span {
  min-width: 62px;
  padding: 9px 11px;
  color: #fff;
  background: var(--pine);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.08em;
}

.feature-banner strong,
.web-payment-note strong {
  display: block;
  margin-bottom: 4px;
}

.feature-banner p,
.web-payment-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-panel {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.48);
  text-align: center;
}

.empty-panel.compact {
  min-height: 250px;
  border: 0;
  background: transparent;
}

.empty-panel > span {
  display: block;
  margin-bottom: 20px;
  color: rgba(155, 48, 41, 0.64);
  font-family: "Nanum Myeongjo", serif;
  font-size: 46px;
}

.empty-panel h2,
.empty-panel h3 {
  margin-bottom: 10px;
  font-family: "Nanum Myeongjo", serif;
}

.empty-panel p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.78fr) minmax(420px, 1.22fr);
  gap: 26px;
  margin-top: 30px;
}

.paper-form,
.list-panel,
.topic-panel,
.month-flow,
.reading-workspace > aside,
.consulting-guide {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 16px 45px rgba(33, 42, 35, 0.05);
}

.paper-form {
  padding: 32px;
}

.form-title {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.form-title > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--seal);
  font-family: "Nanum Myeongjo", serif;
  font-size: 24px;
}

.form-title strong,
.form-title small {
  display: block;
}

.form-title strong {
  font-size: 18px;
}

.form-title small {
  margin-top: 5px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid label,
.paper-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.form-grid label.wide,
.paper-form > label,
.form-grid fieldset.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(44, 59, 51, 0.25);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.65;
}

fieldset {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 13px 11px;
  border: 1px solid rgba(44, 59, 51, 0.25);
  border-radius: 3px;
}

fieldset legend {
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
}

fieldset label,
.check-line {
  flex-direction: row !important;
  align-items: center;
  gap: 7px !important;
  white-space: nowrap;
}

fieldset input,
.check-line input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--pine);
}

fieldset label.female {
  color: var(--seal);
}

.check-line {
  min-height: 34px;
}

.paper-form > .button {
  margin-top: 24px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.form-foot > span {
  color: var(--muted);
  font-size: 12px;
}

.form-message {
  padding: 14px;
  margin: 18px 0 0;
  border-left: 3px solid var(--gold);
  color: var(--ink-soft);
  background: rgba(218, 190, 123, 0.13);
  font-size: 13px;
  line-height: 1.6;
}

.panel-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head small,
.panel-head h2 {
  display: block;
  margin: 0;
}

.panel-head small {
  margin-bottom: 4px;
  color: var(--gold);
  font-weight: 850;
}

.panel-head h2 {
  font-family: "Nanum Myeongjo", serif;
  font-size: 22px;
}

.panel-head button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.topic-panel {
  overflow: hidden;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

.topic-list li {
  min-height: 90px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px 21px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-list span {
  color: var(--seal);
  font-family: "Nanum Myeongjo", serif;
  font-size: 22px;
}

.topic-list b {
  font-size: 13px;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0;
  border-block: 1px solid var(--line);
}

.step-row span {
  padding: 15px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.step-row span.active {
  color: #fff;
  background: var(--pine);
}

.reading-workspace {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 26px;
}

.reading-workspace > aside {
  padding: 32px;
}

.reading-workspace > aside small {
  color: var(--gold);
  font-weight: 850;
}

.reading-workspace > aside h2 {
  margin: 14px 0;
  font-family: "Nanum Myeongjo", serif;
}

.reading-workspace > aside p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.round-seal {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--seal);
  font-family: "Nanum Myeongjo", serif;
  font-size: 23px;
}

.profile-strip small,
.profile-strip strong {
  display: block;
}

.profile-strip small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
}

.profile-strip strong {
  margin-top: 5px;
}

.profile-strip button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.flow-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 26px;
}

.today-flow {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17, 49, 42, 0.18), rgba(10, 32, 28, 0.92)),
    url("./assets/menu-hanji-01.png") center / cover;
}

.today-flow > p {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.today-flow h2 {
  font-family: "Nanum Myeongjo", serif;
  font-size: 28px;
  line-height: 1.45;
}

.today-flow > span {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 13px;
}

.month-flow {
  padding-bottom: 24px;
}

.month-flow .panel-head > span {
  color: var(--muted);
  font-size: 11px;
}

.accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 22px;
  gap: 8px;
}

.accordion-grid button {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
}

.accordion-grid button[aria-expanded="true"] {
  border-color: var(--pine);
  box-shadow: inset 3px 0 0 var(--pine);
}

.accordion-grid b {
  font-size: 13px;
}

.accordion-grid span {
  color: var(--muted);
  font-size: 11px;
}

.accordion-answer {
  padding: 22px;
  margin: 0 22px;
  color: #fff;
  background: var(--blue-ink);
}

.accordion-answer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.65;
}

.article-list {
  margin-top: 32px;
  border-top: 1px solid var(--ink);
}

.article-list article {
  min-height: 140px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 25px;
  padding: 27px 20px;
  border-bottom: 1px solid var(--line);
}

.article-list article > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.article-list h2 {
  margin-bottom: 8px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 22px;
}

.article-list p {
  margin: 0;
  color: var(--muted);
}

.article-list button {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.balance-grid article {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 253, 247, 0.82);
}

.balance-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.balance-grid strong {
  margin: 9px 0;
  color: var(--pine-deep);
  font-family: "Nanum Myeongjo", serif;
  font-size: 38px;
}

.balance-grid small {
  color: var(--gold);
}

.two-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.shop-filter,
.history-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 28px 0 18px;
}

.shop-filter button,
.history-tabs button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.shop-filter button.active,
.history-tabs button.active {
  border-color: var(--pine);
  color: #fff;
  background: var(--pine);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.76);
}

.product-grid article > small {
  color: var(--seal);
  font-weight: 850;
}

.product-grid h2 {
  margin: 18px 0 12px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 25px;
}

.product-grid p {
  flex: 1;
  color: var(--muted);
  line-height: 1.7;
}

.product-grid article > span {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
}

.product-grid button {
  min-height: 44px;
  border: 1px solid var(--pine);
  background: transparent;
  color: var(--pine);
  font-weight: 850;
  cursor: pointer;
}

.consulting-layout {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 26px;
  margin-top: 28px;
}

#consultingForm {
  display: flex;
  flex-direction: column;
}

#consultingForm .form-grid {
  flex: 1;
  grid-template-rows: auto auto minmax(190px, 1fr);
}

#consultingForm .form-grid > label.wide {
  min-height: 0;
}

#consultingForm .form-grid > label.wide textarea {
  flex: 1;
}

.consulting-guide {
  padding: 34px;
}

.consulting-guide h2 {
  margin-top: 25px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 28px;
}

.consulting-guide > p {
  color: var(--muted);
  line-height: 1.75;
}

.consulting-guide dl {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.consulting-guide dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.consulting-guide dt {
  color: var(--muted);
  font-size: 12px;
}

.consulting-guide dd {
  margin: 0;
  font-size: 13px;
  font-weight: 850;
}

.consulting-history {
  margin-top: 26px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-grid article {
  min-height: 220px;
  padding: 30px;
  background: rgba(255, 253, 247, 0.78);
}

.service-grid span {
  color: var(--seal);
  font-family: "Nanum Myeongjo", serif;
}

.service-grid h2 {
  margin: 18px 0 10px;
  font-family: "Nanum Myeongjo", serif;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.service-grid a {
  color: var(--pine);
  font-size: 12px;
  font-weight: 850;
}

.support-band {
  justify-content: space-between;
  padding: 34px;
  margin-top: 26px;
  color: #fff;
  background: var(--pine-deep);
}

.support-band small {
  color: var(--gold-soft);
  font-weight: 850;
}

.support-band h2 {
  margin: 7px 0;
  font-family: "Nanum Myeongjo", serif;
}

.support-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  background: #0d211d;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 50px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: #fff;
}

.footer-brand span {
  margin-top: 3px;
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 20px;
}

.site-footer nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  cursor: pointer;
}

.site-footer p,
.site-footer small {
  margin: 0;
  font-size: 11px;
}

.site-footer small {
  justify-self: end;
}

.modal {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(10, 25, 21, 0.68);
  backdrop-filter: blur(7px);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  padding: 42px;
  border: 1px solid rgba(161, 122, 54, 0.36);
  background:
    linear-gradient(rgba(255, 251, 241, 0.96), rgba(255, 251, 241, 0.96)),
    url("./assets/hanji-texture.png") center / 400px auto;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.28);
}

.modal-card h2 {
  margin-bottom: 12px;
  font-family: "Nanum Myeongjo", serif;
  font-size: 30px;
}

.modal-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.75;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.modal-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: #fff;
  background: var(--seal);
  font-family: "Nanum Myeongjo", serif;
  font-size: 24px;
}

.provider-grid {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.provider-grid button {
  min-height: 50px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 850;
  cursor: pointer;
}

.provider-grid button:hover {
  border-color: var(--pine);
  color: var(--pine);
}

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 40px, 1040px);
  }

  .primary-nav button {
    padding-inline: 10px;
    font-size: 13px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .primary-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr 0.62fr;
    gap: 34px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial {
    grid-template-columns: 0.7fr 1fr;
  }

  .news-brief {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
    --shell: calc(100% - 32px);
  }

  .header-inner {
    min-height: var(--header-height);
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 18px;
  }

  .login-button,
  .logout-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .menu-button {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, calc(100vw - 34px));
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background:
      linear-gradient(rgba(248, 243, 233, 0.97), rgba(248, 243, 233, 0.97)),
      url("./assets/hanji-texture.png") center / 400px auto;
    box-shadow: -24px 0 70px rgba(13, 30, 25, 0.23);
  }

  .menu-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(10, 24, 20, 0.56);
  }

  .mobile-menu-head {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    font-family: "Nanum Myeongjo", serif;
    font-size: 20px;
    font-weight: 800;
  }

  .mobile-menu-head button {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 32px;
  }

  .mobile-menu nav button {
    min-height: 74px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  .mobile-menu nav b {
    color: var(--seal);
    font-family: "Nanum Myeongjo", serif;
    font-size: 24px;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(244, 239, 228, 0.96) 0%, rgba(244, 239, 228, 0.8) 62%, rgba(244, 239, 228, 0.52) 100%);
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 32px;
    padding-block: 66px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 12vw, 66px);
  }

  .flow-preview {
    align-self: auto;
    width: min(100%, 520px);
    min-height: 190px;
    margin: 0;
  }

  .section-heading,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .reading-paths {
    grid-template-columns: 1fr;
  }

  .reading-paths article {
    min-height: 310px;
  }

  .reading-paths article > p {
    margin-top: 26px;
  }

  .account-home-inner,
  .split-layout,
  .reading-workspace,
  .flow-layout,
  .consulting-layout {
    grid-template-columns: 1fr;
  }

  .editorial {
    grid-template-columns: 1fr 1fr;
  }

  .consulting-home .section-shell,
  .app-promo {
    grid-template-columns: auto 1fr;
    padding-block: 42px;
  }

  .consulting-home .button,
  .app-promo .store-links {
    grid-column: 1 / -1;
  }

  .store-links {
    flex-direction: row;
  }

  .store-links button {
    min-width: 0;
    flex: 1;
  }

  .balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer small {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .brand small,
  .account-box .logout-button {
    display: none;
  }

  .account-pill {
    max-width: min(210px, 48vw);
    min-height: 38px;
    padding-inline: 10px;
  }

  .account-pill strong {
    max-width: 100%;
    font-size: 11px;
  }

  .header-inner {
    gap: 8px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    min-height: 720px;
    padding-block: 54px;
  }

  .hero-copy h1 {
    margin-bottom: 20px;
    font-size: 45px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .hero-points {
    gap: 8px 13px;
  }

  .flow-preview {
    min-height: 170px;
    grid-template-columns: 46px 1fr;
    padding: 23px;
  }

  .preview-seal {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  .flow-preview strong {
    font-size: 20px;
  }

  .home-menu,
  .three-readings,
  .account-home,
  .editorial {
    padding-block: 72px;
  }

  .section-heading h2,
  .editorial h2,
  .consulting-home h2,
  .app-promo h2,
  .account-home h2 {
    font-size: 32px;
  }

  .menu-grid,
  .account-dashboard,
  .topic-list,
  .accordion-grid,
  .product-grid,
  .service-grid,
  .two-panels {
    grid-template-columns: 1fr;
  }

  .menu-grid button {
    min-height: 128px;
  }

  .reading-paths article {
    padding: 30px;
  }

  .account-home-inner {
    gap: 38px;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial-art {
    min-height: 260px;
  }

  .editorial-copy,
  .news-brief {
    padding: 34px 28px;
  }

  .consulting-home .section-shell,
  .app-promo {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .app-promo > img {
    width: 74px;
    height: 74px;
  }

  .store-links {
    flex-direction: column;
  }

  .page-view:not(.home-view) {
    padding: 48px 0 80px;
  }

  .page-heading {
    min-height: 130px;
  }

  .page-heading h1 {
    font-size: 43px;
  }

  .page-heading.with-art {
    min-height: 280px;
    padding: 30px 24px;
  }

  .page-heading.with-art img {
    width: 74%;
    opacity: 0.42;
  }

  .paper-form {
    padding: 23px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label,
  .form-grid fieldset {
    grid-column: 1;
  }

  .form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .form-foot .button {
    width: 100%;
  }

  .step-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-strip {
    grid-template-columns: auto 1fr;
  }

  .profile-strip button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .balance-grid {
    grid-template-columns: 1fr;
  }

  .article-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .support-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-card {
    padding: 34px 24px 26px;
  }
}

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

/* 실제 서비스 자료와 상호작용하는 웹 전용 화면 */
.result-panel {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: var(--shadow);
}

.data-list {
  display: grid;
  gap: 12px;
}

.data-card,
.article-row {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.78);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.data-card:hover,
.data-card:focus-visible,
.article-row:hover,
.article-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(38, 78, 66, 0.52);
  background: var(--paper-light);
  outline: none;
}

.data-card small,
.article-row small,
.meta-line,
.chart-detail-head small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.data-card strong,
.article-row strong {
  font-size: 18px;
}

.data-card span,
.data-card p,
.article-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-row {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
}

.article-row > span {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-size: 22px;
}

.article-row i {
  color: var(--pine);
  font-style: normal;
  font-weight: 800;
}

.saved-chart-row,
.rights-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.saved-chart-row:last-child,
.rights-row:last-child {
  border-bottom: 0;
}

.saved-chart-row > button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.saved-chart-row > button small,
.rights-row small {
  color: var(--muted);
}

.saved-chart-row > button strong,
.rights-row strong {
  font-size: 17px;
}

.saved-chart-row > div {
  display: flex;
  gap: 7px;
}

.saved-chart-row > div button,
.history-card > div button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.chart-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.chart-detail-head h2 {
  margin: 5px 0 0;
  font-size: 30px;
}

.chart-detail-head > span {
  color: var(--muted);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.pillar-grid > div {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(243, 238, 227, 0.65);
}

.pillar-grid strong {
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 28px;
}

.pillar-grid small,
.pillar-grid span,
.daewoon-row small {
  color: var(--muted);
}

.daewoon-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(62px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.daewoon-row > span {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 62px;
  padding: 11px 8px;
  border-radius: 10px;
  background: rgba(38, 78, 66, 0.08);
}

.topic-list button {
  width: 100%;
  display: contents;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reading-result p,
.reading-detail section p,
.content-modal-body p,
.consulting-detail section p,
.support-detail section p {
  color: var(--ink-soft);
  line-height: 1.9;
}

.reading-result h2 {
  margin-top: 7px;
  font-size: clamp(26px, 4vw, 38px);
}

.stacked-control {
  display: grid;
  gap: 8px;
  margin: 22px 0 12px;
}

.stacked-control span {
  font-size: 13px;
  font-weight: 800;
}

.stacked-control select,
.profile-strip select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-light);
}

.accordion-answer small {
  display: block;
  margin: 6px 0 15px;
  color: var(--gold);
}

.rights-row b {
  color: var(--pine);
  font-size: 17px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.8);
}

.history-card.processing {
  border-color: rgba(165, 122, 53, 0.55);
}

.history-card > button {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.history-card > button p {
  margin: 0;
  color: var(--muted);
}

.history-card > button span {
  width: max-content;
  padding: 4px 9px;
  color: var(--pine);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(38, 78, 66, 0.1);
}

.history-card > div {
  display: flex;
  gap: 7px;
}

.reading-detail section,
.followup-answer,
.consulting-detail section,
.support-detail section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.reading-detail section small,
.consulting-detail section small,
.support-detail section small {
  color: var(--gold);
  font-weight: 800;
}

.followup-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.followup-form label {
  display: grid;
  gap: 8px;
}

.followup-form textarea {
  min-height: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-light);
  resize: vertical;
}

.content-card {
  width: min(780px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  overflow: auto;
}

.content-modal-body {
  margin: 22px 0;
  text-align: left;
}

.content-image {
  width: 100%;
  max-height: 480px;
  margin-bottom: 22px;
  object-fit: contain;
  border-radius: 14px;
}

.consulting-copy {
  white-space: normal;
  line-height: 1.85;
}

.consulting-copy.font-nanumgothic,
.consulting-copy.font-나눔고딕 {
  font-family: "Nanum Gothic", "Apple SD Gothic Neo", sans-serif;
}

.consulting-copy.font-nanumbrush,
.consulting-copy.font-나눔붓글씨 {
  font-family: "Nanum Brush Script", "Nanum Pen Script", cursive;
}

.consulting-detail dl {
  display: grid;
  gap: 8px;
}

.consulting-detail dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
}

.consulting-detail dt {
  color: var(--muted);
}

.form-message[data-kind="error"] {
  color: var(--seal);
}

.form-message[data-kind="success"] {
  color: var(--pine);
}

.feature-banner[role="button"] {
  cursor: pointer;
}

@media (max-width: 760px) {
  .article-row,
  .saved-chart-row,
  .history-card {
    grid-template-columns: 1fr;
  }

  .article-row > span,
  .article-row i {
    display: none;
  }

  .saved-chart-row > div,
  .history-card > div {
    justify-content: flex-start;
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-detail-head {
    flex-direction: column;
  }

  .profile-strip select {
    grid-column: 1 / -1;
    width: 100%;
  }
}
