/* EasyCompare tutorial page (/tutorial) */
.et-page { padding: clamp(28px, 4vw, 52px) 0 clamp(64px, 8vw, 110px); }
.et { display: grid; grid-template-columns: 236px minmax(0, 860px); gap: 64px; justify-content: center; }
.et-main { min-width: 0; color: var(--hm-ink-soft); font-size: 17.5px; line-height: 1.78; }

/* Contents */
.et-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; padding: 4px 4px 24px 0; }
.et-toc__title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hm-ink-faint); }
.et-toc__part { margin: 18px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-brand); }
.et-toc__part:first-of-type { margin-top: 0; }
.et-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--hm-line); }
.et-toc a { display: block; margin-left: -1px; padding: 4px 0 4px 14px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--hm-ink-soft); text-decoration: none; transition: color 0.12s ease, border-color 0.12s ease; }
.et-toc a:hover { color: var(--hm-ink); }
.et-toc a.is-active { border-left-color: var(--hm-brand); color: var(--hm-ink); font-weight: 600; }

/* Hero */
.et-hero { margin-bottom: 56px; }
.et-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-brand); }
.et-hero h1 { margin: 0 0 20px; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.12; font-weight: 760; letter-spacing: -0.03em; color: var(--hm-ink); }
.et-lede { margin: 0 0 20px; font-size: 20px; line-height: 1.65; color: var(--hm-ink-soft); }
.et-asof { margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--hm-bg-alt); font-size: 14.5px; line-height: 1.65; color: var(--hm-ink-faint); }

/* Parts and sections */
.et-part { margin: 72px 0 8px; padding-top: 20px; border-top: 1px solid var(--hm-line); font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--hm-brand); }
.et-section { margin-bottom: 64px; scroll-margin-top: 92px; }
.et-section h2 { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 18px; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.22; font-weight: 740; letter-spacing: -0.02em; color: var(--hm-ink); }
.et-num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hm-brand-wash); color: var(--hm-brand); font-size: 14.5px; font-weight: 750; transform: translateY(-4px); }
.et-section h3 { margin: 36px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--hm-ink); }
.et-section p { margin: 0 0 18px; }
.et-main strong { color: var(--hm-ink); font-weight: 650; }
.et-main a:not(.et-try):not(.et-shot__link):not(.hm-nav-cta) { color: var(--hm-brand-dark); text-underline-offset: 3px; }

.et-pro { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f3e8ff; color: #7c3aed; font-size: 11.5px; font-weight: 750; letter-spacing: 0.02em; vertical-align: 3px; }
.et-section h2 .et-pro { align-self: center; transform: translateY(-2px); }

.et-list { margin: 0 0 20px; padding-left: 22px; }
.et-list li { margin-bottom: 10px; padding-left: 4px; }

.et-principles { margin: 24px 0 28px; padding: 0; list-style: none; counter-reset: pr; display: grid; gap: 10px; }
.et-principles li { counter-increment: pr; position: relative; padding: 14px 18px 14px 56px; border-radius: 14px; background: var(--hm-surface); box-shadow: var(--hm-shadow-sm); font-size: 16.5px; line-height: 1.6; }
.et-principles li::before { content: counter(pr); position: absolute; left: 18px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hm-brand); color: #fff; font-size: 13px; font-weight: 750; }
.et-principles a { font-size: 14px; white-space: nowrap; }

.et-note { margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--hm-brand-wash); box-shadow: inset 0 0 0 1px #d5defc; font-size: 16px; line-height: 1.65; }
.et-note p:last-child { margin-bottom: 0; }
.et-note__title { margin: 0 0 6px !important; font-size: 12.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-brand); }

.et-try { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; padding: 10px 17px; border-radius: 11px; background: var(--hm-ink); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background 0.12s ease; }
.et-try::after { content: '→'; transition: transform 0.12s ease; }
.et-try:hover { background: #1f2a3d; }
.et-try:hover::after { transform: translateX(3px); }

/* Screenshots */
.et-shot { margin: 26px 0 28px; }
.et-shot__link { display: block; border-radius: 14px; overflow: hidden; background: var(--hm-surface); box-shadow: 0 0 0 1px var(--hm-line), var(--hm-shadow-sm); cursor: zoom-in; transition: box-shadow 0.15s ease; }
.et-shot__link:hover { box-shadow: 0 0 0 1px var(--hm-line), var(--hm-shadow-md); }
.et-shot img { display: block; width: 100%; height: auto; }
.et-shot figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--hm-ink-faint); }
.et-shot--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.et-shot--pair figcaption { grid-column: 1 / -1; margin-top: 0; }

.et-mark { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 8px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: 11.5px; font-weight: 750; line-height: 1; vertical-align: 2px; }
.et-marked { margin: 0 0 20px; padding: 0; list-style: none; }
.et-marked li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.et-marked li .et-mark { position: absolute; left: 0; top: 5px; margin: 0; }

/* Data tables */
.et-figure { margin: 24px 0 28px; overflow-x: auto; }
.et-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.et-table th { padding: 9px 12px; border-bottom: 1.5px solid var(--hm-line); font-size: 12.5px; font-weight: 650; text-align: right; color: var(--hm-ink-faint); white-space: nowrap; }
.et-table td { padding: 9px 12px; border-bottom: 1px solid var(--hm-line-soft); text-align: right; color: var(--hm-ink-soft); white-space: nowrap; }
.et-table th:first-child, .et-table td:first-child { padding-left: 0; text-align: left; }
.et-table td:first-child { font-weight: 600; color: var(--hm-ink); }
.et-table tr.is-bench td { background: #f5f8ff; }
.et-table td.is-good { color: #18794e; font-weight: 650; }
.et-table td.is-bad { color: #c2410c; }
.et-table .et-rank { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 5px; border-radius: 6px; background: var(--hm-line-soft); font-size: 11.5px; font-weight: 650; text-align: center; color: var(--hm-ink-faint); }
.et-table .et-rank.is-first { background: #dcfce7; color: #166534; }
.et-table .et-rank.is-last { background: #ffedd5; color: #9a3412; }
.et-caption { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.6; color: var(--hm-ink-faint); }

/* Routines */
.et-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.et-card { display: flex; flex-direction: column; padding: 22px; border-radius: 16px; background: var(--hm-surface); box-shadow: var(--hm-shadow-sm), 0 0 0 1px var(--hm-line-soft); }
.et-card h3 { margin: 0 0 8px !important; font-size: 17px !important; }
.et-card p { flex: 1; font-size: 15.5px; line-height: 1.65; }
.et-card .et-try { align-self: flex-start; }

/* Glossary */
.et-glossary { display: grid; grid-template-columns: 170px 1fr; gap: 12px 24px; margin: 0; font-size: 16px; }
.et-glossary dt { font-weight: 650; color: var(--hm-ink); }
.et-glossary dd { margin: 0; }

.et-end { margin-top: 48px; padding: 32px; border-radius: 20px; background: var(--hm-surface); box-shadow: var(--hm-shadow-md); text-align: center; }
.et-end p { margin: 0 0 16px; }

@media (max-width: 1180px) {
  .et { grid-template-columns: minmax(0, 860px); }
  .et-toc { display: none; }
}

@media (max-width: 680px) {
  .et-main { font-size: 16.5px; }
  .et-lede { font-size: 18px; }
  .et-shot--pair, .et-cards { grid-template-columns: 1fr; }
  .et-glossary { grid-template-columns: 1fr; gap: 2px; }
  .et-glossary dd { margin-bottom: 12px; }
  .et-principles li { padding-left: 50px; }
}
