:root {
  --bg: #fff7fb;
  --card: #ffffff;
  --ink: #3b1d3a;
  --muted: #7d5d7a;
  --pink: #ff5c8a;
  --pink-dark: #c9295e;
  --pink-deeper: #b3204f;
  --gold: #ffc542;
  --line: #f3d9e5;
  --soft: #fff0f6;
  --font-title: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--pink-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; }
h1, h2 { font-family: var(--font-title); }
h2 { font-size: 36px; margin: 0 0 16px; }
h3 { font-size: 22px; margin: 32px 0 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: var(--radius); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.brand-mark { width: 32px; height: 32px; }
.nav { display: flex; gap: 16px; font-size: 16px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--pink-dark); }

/* hero = the test itself */
.hero { padding: 24px 0 48px; }
.hero h1 { margin: 0; font-size: 48px; text-align: center; }
.lede { max-width: 70ch; margin: 8px auto 24px; text-align: center; color: var(--muted); font-size: 18px; }
.tool-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.engage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.pill {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.pill:hover { border-color: var(--pink); background: var(--soft); }
.dq-opt:hover { border-color: var(--pink); background: var(--soft); }
.dq-opt:active { border-color: var(--pink-dark); background: var(--soft); color: var(--pink-deeper); }
.pill[aria-pressed="true"], .pill[data-gf-liked] { background: var(--soft); border-color: var(--pink); color: var(--pink-dark); }
.engage-msg { font-size: 14px; color: var(--muted); }

/* the seven types: numbered two-column list */
.types { padding: 48px 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { max-width: 70ch; color: var(--muted); margin: 0 0 32px; }
.type-list { display: grid; gap: 28px 64px; margin: 0; }
.type-row dt { font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.type-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--pink-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
}
.type-row dd { margin: 4px 0 0 40px; }
.type-row dt a { color: var(--ink); text-decoration-color: var(--pink); text-underline-offset: 4px; }
.type-row dt a:hover { color: var(--pink-dark); }
.type-row em { display: block; font-style: normal; font-weight: 700; color: var(--pink-dark); font-size: 14px; }
.types-more { margin: 32px 0 0; font-weight: 700; }

/* long-form copy */
.prose { padding-top: 48px; padding-bottom: 16px; }
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; max-width: 920px; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }

/* FAQ: flat question list in a two-column grid */
.faq { padding: 48px 0; }
.faq-list { display: grid; gap: 8px 48px; }
.faq-item h3 { margin: 16px 0 4px; font-family: var(--font-body); font-size: 18px; }
.faq-item p { margin: 0; }

/* comments */
.comments { padding: 48px 0 64px; background: var(--card); border-top: 1px solid var(--line); }
.comments h2 { font-size: 28px; }
.count { color: var(--muted); font-size: 18px; }
.comment-form { display: grid; gap: 12px; max-width: 640px; margin-bottom: 32px; }
.comment-form label { display: grid; gap: 4px; font-weight: 700; font-size: 16px; }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
}
.comment-replying { display: none; margin: 0; font-size: 14px; }
.comment-form[data-gf-replying] .comment-replying { display: block; }
.comment-msg, .comment-note { margin: 0; font-size: 14px; color: var(--muted); }
.comment-list { max-width: 720px; }
.comment-empty { display: none; color: var(--muted); }
.comment-list[data-gf-empty] .comment-empty { display: block; }
.comment-list[data-gf-off] .comment-empty { display: none; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 16px; }
.comment-head time { color: var(--muted); font-size: 14px; }
.comment-owner { display: none; padding: 0 8px; border-radius: 999px; background: var(--pink-dark); color: #fff; font-size: 12px; font-weight: 700; }
.comment[data-gf-owner] > .comment-head .comment-owner { display: inline-block; }
.comment-text { margin: 4px 0; }
.comment-to { color: var(--pink-dark); font-weight: 700; }
.comment-replies { margin-left: 24px; }
.link-btn { padding: 4px 0; border: 0; background: none; color: var(--pink-dark); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* buttons */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--pink-dark);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--pink-deeper); color: #fff; }

/* type result pages */
.hero-kicker { margin: 0 0 4px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-dark); }
.result-page .prose { padding-bottom: 48px; }
.type-figure { margin: 32px 0 0; }
.type-figure img { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.other-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.other-list a { display: block; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; }
.other-list a:hover { border-color: var(--pink); }
.other-list strong { display: block; font-family: var(--font-title); font-size: 20px; }
.other-list span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* inner pages */
.page .prose { padding-top: 32px; padding-bottom: 48px; }
.page h1 { font-size: 48px; margin: 0 0 24px; }
.page-cta { margin-top: 32px; }

/* footer */
.foot { padding: 32px 0 48px; color: var(--muted); font-size: 16px; }
.foot-in > p { max-width: 70ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; }
.foot-small { font-size: 14px; }

@media (min-width: 760px) {
  .type-list, .faq-list { grid-template-columns: 1fr 1fr; }
  .other-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h2 { font-size: 28px; }
  .hero { padding-top: 16px; }
  .hero h1, .page h1 { font-size: 30px; }
  .lede { font-size: 16px; margin-bottom: 16px; }
  .tool-card { padding: 16px; border-radius: var(--radius); }
  .nav { gap: 12px; font-size: 14px; }
  .brand { font-size: 18px; }
  .btn, .comment-form .btn { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1, .page h1 { font-size: 26px; letter-spacing: -0.01em; }
  .lede { font-size: 14px; line-height: 1.45; margin: 6px auto 12px; }
  .tool-card { padding-top: 14px; }
  .top-in { min-height: 56px; }
  .nav { gap: 10px; font-size: 13px; }
  .type-row dd { margin-left: 32px; }
}
