/* =====================================================================
   Extra styling for the per-product landing pages under /p/.
   Loads after styles.css and only adds what those pages need.
   ===================================================================== */

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:first-child { color: var(--ink); font-family: var(--display); }
.topbar a:hover { color: var(--accent); }

ul.what {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  max-width: 42rem;
}
ul.what li {
  position: relative;
  padding: .55rem 0 .55rem 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
ul.what li:last-child { border-bottom: 1px solid var(--line); }
ul.what li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: 1.05rem;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--accent);
}

.needs {
  margin-top: 1.6rem;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--accent-dim);
  background: var(--sunk);
  max-width: 42rem;
  color: var(--muted);
}
.needs strong { color: var(--ink); }

.buysection { background: var(--sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.buybox {
  margin-top: 1.4rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
  max-width: 30rem;
}
.buyprice {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
}
.buyprice small {
  display: block;
  margin-top: .5rem;
  font-family: var(--body);
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
}
.buybox .cta {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  font-size: 1.05rem;
  cursor: pointer;
}
.buybox .cta[disabled] { opacity: .6; cursor: wait; }
.buynote {
  margin-top: .9rem;
  margin-bottom: 0;
  font-size: .85rem;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .buybox { padding: 1.2rem; }
  .buyprice { font-size: 1.8rem; }
}

/* The table of embed snippets on /embed. */
table.embeds { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .9rem; }
table.embeds th { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
table.embeds td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.embeds td:first-child { white-space: nowrap; }
table.embeds small { color: var(--muted); }
table.embeds code { display: block; overflow-x: auto; padding: .5rem .6rem; font-size: .8rem; }
@media (max-width: 40rem) { table.embeds, table.embeds tr, table.embeds td, table.embeds th { display: block; } table.embeds th { display: none; } table.embeds td:first-child { border: 0; padding-bottom: 0; font-weight: 600; } }
