:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f6470;
  --paper: #f7f8fb;
  --warm: #eef3fb;
  --line: #dbe1ea;
  --soft-line: #e8edf5;
  --accent-teal: #071a3d;
  --accent-amber: #a51c30;
  --blue-soft: #eef3fb;
  --orange-soft: #fff0f3;
  --teal: var(--accent-teal);
  --teal-deep: #03122f;
  --crimson: #a51c30;
  --gold: #2f5f9f;
  --white: #ffffff;
  --rule: #f5f7ff;
  --shadow: 0 12px 34px rgba(7, 26, 61, 0.10);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.64;
}

body p,
body li,
body blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.lm-shell-header,
.lm-shell-header *,
.lm-footer,
.lm-footer *,
.button,
.tool-button,
.contents-eyebrow,
.contents-list a {
  text-align: initial;
  hyphens: manual;
}

button,
input {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-amber));
}

.hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  border-top: 8px solid var(--accent-amber);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-amber));
  opacity: 0.82;
}

.hero-inner,
.layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  padding: 56px 0 44px;
}

.hero-copy {
  max-width: 1000px;
}

.hero h1 {
  margin: 0;
  max-width: 1000px;
  color: var(--accent-teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-page-title-size, 4.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--lm-page-title-line, 1);
}

.hero-copy > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--accent-teal);
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent-amber);
  background: var(--accent-amber);
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-stats div {
  min-height: 84px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--accent-teal);
  font-size: 1.85rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.tool-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.tool-button {
  min-height: 40px;
  padding: 0 14px;
}

.tool-button:hover,
.icon-button:hover {
  color: var(--accent-teal);
  background: var(--blue-soft);
}

.icon-button {
  width: 38px;
  height: 38px;
  font-size: 1.45rem;
  line-height: 1;
}

.layout {
  display: block;
  padding: 54px 0 90px;
}

.layout.has-contents {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 900px);
  gap: 32px;
  align-items: start;
  justify-content: center;
}

.contents-rail {
  position: sticky;
  top: 86px;
  min-width: 0;
}

.contents-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(22, 22, 22, 0.04);
}

.contents-eyebrow {
  margin: 0 0 12px;
  color: var(--accent-amber);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contents-list {
  display: grid;
  gap: 4px;
}

.contents-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.28;
  text-decoration: none;
}

.contents-list a:hover {
  color: var(--accent-teal);
  background: var(--blue-soft);
}

.study-copy {
  min-width: 0;
  max-width: 900px;
  margin: 0;
}

.study-copy > *:first-child {
  margin-top: 0;
}

.study-copy h1,
.study-copy h2,
.study-copy h3,
.study-copy h4 {
  color: var(--ink);
  letter-spacing: 0;
}

.study-copy h1 {
  margin: 0 0 26px;
  max-width: 900px;
  color: var(--accent-teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-page-title-size, 4.8rem);
  line-height: var(--lm-page-title-line, 1);
}

.study-copy h2 {
  scroll-margin-top: 96px;
  margin: 58px 0 22px;
  padding: 24px 28px;
  border-left: 6px solid var(--accent-amber);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff0f3, rgba(255, 240, 243, 0));
  color: var(--accent-teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-content-heading-size, 2.15rem);
  line-height: 1.08;
}

.study-copy h3 {
  margin: 32px 0 10px;
  color: var(--accent-teal);
  font-size: 1.08rem;
  line-height: 1.2;
}

.study-copy h4 {
  margin: 24px 0 8px;
  color: var(--accent-teal);
  font-size: 1rem;
}

.study-copy p,
.study-copy li,
.study-copy blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.study-copy p {
  margin: 0 0 18px;
  font-size: 1rem;
}

.study-copy ul,
.study-copy ol {
  margin: 0 0 20px 1.25rem;
  padding: 0;
}

.study-copy li {
  margin: 8px 0;
  padding-left: 4px;
}

.study-copy strong {
  color: var(--accent-teal);
  font-weight: 900;
}

.study-copy em {
  color: var(--accent-amber);
  font-style: normal;
  font-weight: 800;
}

.study-copy blockquote {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(7, 26, 61, 0.18);
  border-left: 5px solid var(--accent-teal);
  border-radius: 8px;
  background: var(--rule);
  color: #17243c;
}

.study-copy blockquote.rule {
  border-left-color: var(--accent-amber);
  background: var(--orange-soft);
}

.study-copy .visual-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr) minmax(180px, 0.72fr);
  gap: 16px;
  align-items: start;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(22, 22, 22, 0.04);
}

.study-copy .visual-band img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--white);
}

.study-copy .mini-rule {
  margin: 18px 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.study-copy .anchor-why {
  margin: -8px 0 20px;
  padding-left: 18px;
  border-left: 3px solid var(--soft-line);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.study-copy .anchor-why strong {
  color: var(--accent-amber);
}

.rule-family-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 34px;
}

.rule-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-amber);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(22, 22, 22, 0.04);
}

.rule-card h3 {
  margin: 0 0 10px;
  color: var(--accent-teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.16;
}

.rule-card p {
  margin: 0 0 10px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.rule-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.loading {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .layout.has-contents {
    grid-template-columns: 1fr;
  }

  .contents-rail {
    position: static;
  }

  .contents-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-copy .visual-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 360px;
  }

  .hero-inner,
  .layout {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    padding: 46px 0 30px;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats div {
    min-height: 72px;
    padding: 12px 10px;
  }

  .hero-stats strong {
    font-size: 1.35rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
  }

  .tool-button {
    flex: 1;
  }

  .layout {
    padding: 44px 0 74px;
  }

  .rule-family-grid {
    grid-template-columns: 1fr;
  }

  .study-copy h2 {
    padding: 20px;
  }

  .study-copy p,
  .study-copy li,
  .study-copy blockquote {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
  }
}

@media (max-width: 430px) {
  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

@media print {
  body {
    background: white;
  }

  .progress,
  .lm-shell-header,
  .lm-footer,
  .hero,
  .contents-rail {
    display: none !important;
  }

  .layout {
    display: block;
    width: auto;
    padding: 0;
  }

  .study-copy h2,
  .study-copy blockquote,
  .study-copy .mini-rule,
  .study-copy .visual-band {
    break-inside: avoid;
  }
}
