/* Static content pages for search engines (tools/seo-pages.mjs). Uses the tokens and
   buttons of styles.css; only the page frame, tables and lists live here. */
.seo { background: var(--bg); color: var(--ink); }
.seo-wrap { max-width: 920px; margin: 0 auto; padding-inline: 16px; }
.seo-top {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, #3b2fc9 92%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); color: #fff;
}
.seo-bar { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.55rem; }
.seo-brand { display: flex; align-items: center; gap: 0.5rem; margin-right: auto; font-weight: 800; text-decoration: none; white-space: nowrap; }
.seo-brand img { border-radius: 9px; }
.seo-brand b { color: #fde68a; }
.seo-nav { display: flex; gap: 0.1rem; }
.seo-nav a { padding: 0.45rem 0.65rem; border-radius: 10px; color: rgb(255 255 255 / 0.85); font-weight: 600; text-decoration: none; }
.seo-nav a:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.seo-top .btn.primary { background: #fff; color: #4338ca; box-shadow: none; white-space: nowrap; }

.seo-main { padding-block: 1.2rem 3rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.kicker { margin: 1.4rem 0 0.3rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.seo h1 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.2; letter-spacing: -0.02em; }
.seo h1 small, .seo h2 small { font-size: 0.6em; font-weight: 600; color: var(--muted); }
.seo .lead { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.seo h2 { margin: 2rem 0 0.7rem; font-size: 1.3rem; }
.seo .muted { color: var(--muted); }
[lang="ko"] { word-break: keep-all; }

.words { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.words th { padding: 0.6rem 0.8rem; background: var(--surface-2); color: var(--muted); font-size: 0.78rem; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.words td { padding: 0.65rem 0.8rem; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.words small, .examples small { color: var(--muted); }
.w-ko { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

.examples { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.examples li { padding: 0.75rem 0.9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.55; }

.lesson-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.lesson-list a {
  display: flex; align-items: center; gap: 0.8rem; height: 100%; padding: 0.75rem 0.9rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease);
}
.lesson-list a:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.lesson-list .no { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.lesson-list small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.8rem; }

.seo-cta {
  display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--grad); color: #fff;
}
.seo-cta div { flex: 1; }
.seo-cta p { margin: 0.2rem 0 0; color: rgb(255 255 255 / 0.85); font-size: 0.92rem; }
.seo-cta .btn.primary { background: #fff; color: #4338ca; box-shadow: none; white-space: nowrap; }

.seo-foot { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; text-align: center; }
.seo-foot a { color: var(--ink-2); }

@media (max-width: 680px) {
  .seo-nav { display: none; }
  .lesson-list { grid-template-columns: 1fr; }
  .seo-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .words thead { display: none; }
  .words, .words tbody, .words tr, .words td { display: block; }
  .words tr { padding: 0.5rem 0; border-top: 1px solid var(--line); }
  .words tr:first-child { border-top: 0; }
  .words td { padding: 0.15rem 0.85rem; border: 0; }
}
