/* shopbrowselinen.com: white page, serif headings, a dashed lineage line down the left margin. */
:root {
  --paper: #FFFFFF;
  --mist: #F3F6FA;
  --ink: #1A2230;
  --muted: #545E6E;
  --line: #E1E5EB;
  --twig: #B9C2CF;
  --blue: #1868D8;
  --blue-deep: #1255B4;
  --rose: #B8777A;
  --serif: "IBM Plex Serif", Georgia, serif;
  --sans: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 72px;           /* content offset to the right of the line */
  --spine: 8px;          /* line position from the shell edge */
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; }
h2 { font-size: clamp(28px, 3.1vw, 38px); line-height: 1.15; }
p { margin: 0 0 1em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { top: 12px; }

.shell { width: min(1160px, 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---------- header: one slim row ---------- */
.bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; gap: 36px; min-height: 68px; }
.bar-logo { display: block; flex: none; line-height: 0; }
.bar-logo img { height: 40px; width: auto; }
.bar-links { display: flex; gap: 26px; }
.bar-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.bar-links a:hover, .bar-links a[aria-current] { color: var(--ink); }
.bar-links a[aria-current] { box-shadow: inset 0 -2px 0 var(--rose); }
.bar-cta {
  margin-left: auto;
  flex: none;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.bar-cta:hover { background: var(--blue-deep); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn .ico { width: 16px; height: 16px; }

/* ---------- the lineage line ---------- */
.lin { position: relative; padding: 76px 0; }
.lin::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100% - min(1160px, 100% - 2 * var(--gut))) / 2 + var(--spine));
  border-left: 2px dashed var(--rose);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
  padding-left: var(--pad);
}
.txt { max-width: 34em; }
.txt h2 { margin-bottom: 18px; }
.txt p { color: var(--muted); }
.txt p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-left: var(--pad);
}
.hero-copy { padding-bottom: 72px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.07; max-width: 12.5em; margin-bottom: 20px; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.hero-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

.fan { position: relative; height: 412px; }
.fc {
  position: absolute;
  margin: 0;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(26, 34, 48, .08), 0 10px 28px rgba(26, 34, 48, .11);
}
.fc img { display: block; width: 100%; object-fit: cover; border-radius: 5px; filter: grayscale(.25); }
.fc figcaption { padding: 10px 4px 2px; }
.fc b { display: block; font: 500 15px/1.25 var(--serif); }
.fc span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.fc-main { left: 23%; top: 0; width: 45%; height: 340px; z-index: 4; }
.fc-main img { height: 210px; object-position: 50% 30%; filter: none; }
.fc-main b { font-size: 18px; }
.fc-l { left: 2%; top: 30px; width: 34%; z-index: 3; }
.fc-l img { height: 150px; }
.fc-r1 { left: 57%; top: 24px; width: 32%; z-index: 3; }
.fc-r1 img { height: 150px; }
.fc-r2 { left: 77%; top: 50px; width: 23%; z-index: 2; }
.fc-r2 img { height: 128px; }
/* line leaves the main card, runs left and drops onto the margin line */
.join {
  position: absolute;
  top: 340px;
  height: 40px;
  left: calc(-100% - 56px - var(--pad) + var(--spine) + 14px);
  right: 54.5%;
  border-right: 2px dashed var(--rose);
  border-bottom: 2px dashed var(--rose);
  border-bottom-right-radius: 14px;
}
.join::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 100%;
  width: 14px;
  height: 34px;
  border-left: 2px dashed var(--rose);
  border-top: 2px dashed var(--rose);
  border-top-left-radius: 14px;
  margin-top: -2px;
}

/* ---------- pedigree ---------- */
.tree { background: var(--mist); }
.ped {
  --cg: 36px;
  --nh: 56px;
  --rg: 14px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, var(--nh));
  column-gap: var(--cg);
  row-gap: var(--rg);
}
.pn {
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--nh);
  padding: 7px 10px 7px 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pn img { width: 40px; height: 40px; border-radius: 5px; object-fit: cover; flex: none; }
.pn span { min-width: 0; line-height: 1.2; }
.pn b { display: block; font: 500 14.5px/1.2 var(--serif); }
.pn i { display: block; font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-you { grid-column: 1; grid-row: 1 / 5; }
.ped .pn-m { grid-column: 2; grid-row: 1 / 3; }
.ped .pn-f { grid-column: 2; grid-row: 3 / 5; }
.ped .pn-g { grid-column: 3; }
/* lines between generations */
.pn-you::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--spine) + 2px - var(--pad));
  width: calc(var(--pad) - var(--spine) - 2px);
  border-top: 2px dashed var(--rose);
}
.pn-you::after, .pn-m::after, .pn-f::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: calc(var(--cg) / 2 + 1px);
  border-top: 1.5px solid var(--twig);
}
.pn-m::before, .pn-f::before, .pn-g::before {
  content: "";
  position: absolute;
  left: calc(var(--cg) / -2 - 1px);
  width: calc(var(--cg) / 2 + 1px);
  border-left: 1.5px solid var(--twig);
}
.pn-m::before, .pn-g.up::before { top: 50%; border-top: 1.5px solid var(--twig); border-top-left-radius: 8px; }
.pn-f::before, .pn-g.dn::before { bottom: 50%; border-bottom: 1.5px solid var(--twig); border-bottom-left-radius: 8px; }
.pn-m::before, .pn-f::before { height: calc(var(--nh) + var(--rg) / 2); }
.pn-g::before { height: calc(var(--nh) / 2 + var(--rg) / 2); }

/* ---------- three-way branch ---------- */
.branch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 40px;
}
.branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--spine) + 2px - var(--pad));
  right: calc((100% - 40px) / 3 - 16px);
  border-top: 2px dashed var(--rose);
  border-top-right-radius: 12px;
  border-right: 2px dashed var(--rose);
  height: 14px;
}
.br { position: relative; }
.br::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 14px;
  height: 34px;
  border-left: 2px dashed var(--rose);
}
.br:last-child::before { display: none; }
.br h3 { display: flex; align-items: center; gap: 9px; font: 600 16px/1.3 var(--sans); }
.br h3 .ico { width: 20px; height: 20px; stroke-width: 1.4; color: var(--blue); }
.br-when { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); }
.br ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.br li { padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 14.5px; }

/* ---------- photo + 2x2 ---------- */
.guide .row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.guide-photo { margin: 0; }
.guide-photo img { display: block; width: 100%; border-radius: 8px; }
.guide-txt { max-width: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 36px 0 40px; }
.guide-txt h2 { margin-bottom: 8px; }
.lede { font-size: 18px; margin-bottom: 30px !important; }
.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.qi { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.q h3 { margin: 12px 0 6px; font: 600 16.5px/1.3 var(--sans); }
.q p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- ethnicity ranges ---------- */
.ranges { margin: 0; display: grid; gap: 22px; padding: 30px 32px; border: 1px solid var(--line); border-radius: 10px; }
.rg { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; align-items: center; gap: 16px; font-size: 14.5px; }
.rg-bar { position: relative; height: 10px; background: #EDF0F4; border-radius: 5px; }
.rg-bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--blue); }
.rg:nth-child(2) .rg-bar i { background: var(--rose); }
.rg:nth-child(3) .rg-bar i { background: var(--twig); }
.rg-v { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ranges figcaption { font-size: 13px; color: var(--muted); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; border-top: 2px dashed var(--rose); }
.ticks b { color: var(--ink); font-weight: 600; }

/* ---------- compare ---------- */
.compare .row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "table text"; }
.compare .txt { grid-area: text; }
.compare .table-wrap { grid-area: table; }
.compare blockquote { margin: 0 0 18px; padding-top: 18px; border-top: 2px solid var(--rose); width: fit-content; max-width: 100%; font: 400 21px/1.45 var(--serif); color: var(--ink); }
.small { font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th { font: 500 16px/1.3 var(--serif); text-align: left; padding: 0 14px 12px; border-bottom: 1px solid var(--ink); }
tbody th { text-align: left; font-weight: 600; padding: 14px 14px 14px 0; vertical-align: top; white-space: nowrap; }
tbody td { padding: 14px; vertical-align: top; color: var(--muted); }
tbody tr { border-bottom: 1px solid var(--line); }

/* ---------- blog (WordPress partial) ---------- */
.hblog .row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "list text"; }
.hblog .txt { grid-area: text; }
.hb-list { grid-area: list; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hb-item { position: relative; }
.hb-item::before { content: ""; position: absolute; top: 50%; left: calc(var(--spine) + 2px - var(--pad)); width: calc(var(--pad) - var(--spine) - 2px); border-top: 2px dashed var(--rose); }
.hb-item a { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: inherit; text-decoration: none; }
.hb-item a:hover .hb-title { text-decoration: underline; text-underline-offset: 3px; }
.hb-fig img { display: block; width: 132px; height: 92px; object-fit: cover; border-radius: 6px; }
.hb-label { display: block; font-size: 13px; color: var(--muted); }
.hb-title { display: block; margin: 2px 0 4px; font: 500 18px/1.3 var(--serif); }
.hb-time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.hb-all { display: inline-block; margin-top: 6px; font-weight: 600; }

/* ---------- faq ---------- */
.faq .row { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-weight: 500;
  font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; border-top: 1.5px solid var(--ink); }
.faq summary::after { transform: rotate(90deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; max-width: 62ch; }

/* ---------- closing: the line ends in a dot ---------- */
.end { padding: 92px 0 104px; }
.end::before { bottom: auto; height: 100px; }
.end::after {
  content: "";
  position: absolute;
  top: 98px;
  left: calc((100% - min(1160px, 100% - 2 * var(--gut))) / 2 + var(--spine) - 4px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
}
.end-inner { padding-left: var(--pad); }
.end h2 { max-width: 18em; margin-bottom: 14px; }
.end p { color: var(--muted); max-width: 36em; }
.end .btn { margin-top: 8px; }
.end-note { margin-top: 14px; font-size: 13.5px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-logo img { height: 36px; width: auto; display: block; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0 0 6px; max-width: 75ch; }
.foot-legal a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .row, .guide .row, .faq .row { gap: 44px; }
  .ped { --cg: 28px; }
  .pn i { display: none; }
}

@media (max-width: 900px) {
  :root { --pad: 34px; --spine: 6px; }
  .bar-links { gap: 18px; }
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding-bottom: 0; }
  .fan { height: 330px; max-width: 520px; }
  .fc-main { height: 270px; }
  .fc-main img { height: 160px; }
  .fc-l img, .fc-r1 img { height: 118px; }
  .fc-r2 img { height: 100px; }
  .join { top: 270px; height: 30px; left: calc(var(--spine) + 14px - var(--pad)); }
  .join::after { height: 32px; }
  .lin { padding: 56px 0; }
  .row, .guide .row, .faq .row, .compare .row, .hblog .row { grid-template-columns: minmax(0, 1fr); gap: 32px; grid-template-areas: none; }
  .compare .txt, .compare .table-wrap, .hblog .txt, .hb-list { grid-area: auto; }
  .tree .txt, .paths .txt, .eth .txt { order: -1; }
  .guide-txt { padding: 28px 0 32px; }
  .end { padding: 64px 0 80px; }
  .end::before { height: 72px; }
  .end::after { top: 70px; }
}

@media (max-width: 640px) {
  :root { --gut: 16px; --pad: 30px; }
  body { font-size: 16.5px; }
  .bar-row { gap: 16px; min-height: 60px; }
  .bar-logo img { height: 34px; }
  .bar-links { display: none; }
  .bar-cta { padding: 9px 14px; font-size: 14.5px; }
  .hero-sub { font-size: 17.5px; }
  .fan { height: 290px; }
  .fc { padding: 6px; }
  .fc-main { height: 232px; width: 48%; left: 21%; }
  .fc-main img { height: 150px; }
  .fc-main span { display: none; }
  .fc-main b { font-size: 15px; }
  .fc b { font-size: 13px; }
  .fc-l { width: 36%; left: 0; }
  .fc-r1 { left: 58%; width: 34%; }
  .fc-r2 { display: none; }
  .fc-l img, .fc-r1 img { height: 96px; }
  .join { top: 232px; height: 28px; right: 55%; }
  .join::after { height: 32px; }

  .ped { --cg: 18px; --nh: 58px; --rg: 10px; }
  .pn { flex-direction: column; justify-content: center; gap: 3px; padding: 5px 4px; text-align: center; }
  .pn img { width: 28px; height: 28px; }
  .pn b { font-size: 12px; }

  .branch { grid-template-columns: 1fr; gap: 22px; padding-top: 0; }
  .branch::before { display: none; }
  .br::before, .br:last-child::before { display: block; top: 11px; left: calc(var(--spine) + 2px - var(--pad)); width: calc(var(--pad) - var(--spine) - 8px); height: 0; border-left: 0; border-top: 2px dashed var(--rose); }
  .br ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .br li { padding: 6px 10px; font-size: 14px; }

  .quad { grid-template-columns: 1fr; gap: 24px; }
  .ranges { padding: 20px; }
  .rg { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .rg-bar { grid-column: 1 / -1; grid-row: 2; }

  table, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tbody tr { padding: 12px 0; }
  tbody th { padding: 0 0 4px; white-space: normal; }
  tbody td { padding: 2px 0; }
  tbody td::before { font-weight: 600; color: var(--ink); }
  tbody td:nth-of-type(1)::before { content: "DNA test: "; }
  tbody td:nth-of-type(2)::before { content: "Records: "; }

  .hb-item a { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .hb-fig img { width: 92px; height: 72px; }
  .hb-title { font-size: 16px; }
  .hb-ex { display: none; }

  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (max-width: 640px) { .fc-l figcaption { display: none; } }
