/* markmylife.com — one stylesheet for the whole marketing site. */

/* Hanken Grotesk (SIL OFL), self-hosted: one variable file for weights 300 to 600, Latin. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --teal: #5cc8d2;        /* brand teal, from the mml logo; decoration only */
  --teal-ink: #17707a;    /* text and buttons on white (AA contrast) */
  --teal-ink-hover: #0f5a62;
  --booklet-blue: #35b5dc; /* Looking Glass accent */
  --ink: #1f2a2d;
  --ink-soft: #52616a;
  --paper: #ffffff;
  --mist: #f3f7f8;
  --line: #dde7e9;
  --radius: 10px;
  --shadow: 0 18px 40px -18px rgba(20, 50, 60, 0.35), 0 2px 6px rgba(20, 50, 60, 0.08);
  --max: 1120px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-ink);
}

a:hover {
  color: var(--teal-ink-hover);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--paper);
  padding: 8px 12px;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo img {
  width: 112px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}

.site-nav .btn {
  color: #fff;
}

.site-nav .btn-ghost {
  color: var(--teal-ink);
}

@media (max-width: 480px) {
  .logo img {
    width: 84px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.875rem;
  }

  .site-nav .btn-sm {
    padding: 8px 14px;
  }
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-section {
  display: none;
}

@media (min-width: 860px) {
  .site-nav .nav-section {
    display: inline;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--teal-ink);
  background: var(--teal-ink);
  color: #fff;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--teal-ink-hover);
  border-color: var(--teal-ink-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--teal-ink);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--teal-ink-hover);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.925rem;
}

.btn .arrow {
  font-weight: 400;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
}

h2 {
  font-weight: 300;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}

h3 {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.9rem;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 14px 0 0;
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero .lede {
  margin: 20px 0 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* The designs as a template grid, as Canva shows its templates: each cover in a thin outline with rounded
   corners, four across (ten designs: 4, 4 and 2), three across on a phone (3, 3, 3 and 1, the last at the left). */
.hero-art {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  justify-self: center;
  width: min(100%, 600px);
  padding: 24px 0;
}

.hero-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hero-card:hover,
.hero-card:focus-visible {
  border-color: var(--teal-ink);
  transform: translateY(-2px);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 240 / 370;
  object-fit: cover;
  height: auto;
}

@media (max-width: 699px) {
  .hero-art {
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 420px);
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 80px 0 96px;
  }

  /* Text and template grid side by side, the grid nearly as wide as the text. */
  .hero .wrap {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-art {
    width: 100%;
    gap: 14px;
  }
}

/* ---------- Benefits ---------- */

.benefits {
  display: grid;
  gap: 20px;
}

.benefit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 4px solid var(--teal);
}

.benefit p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

@media (min-width: 700px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .benefits {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 60px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.steps p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .steps li {
    padding-left: 0;
    padding-top: 60px;
  }
}

/* ---------- Design showcase ---------- */

.showcase {
  display: grid;
  gap: 28px;
  align-items: end;
}

.showcase figure {
  margin: 0;
}

.showcase img {
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.showcase figcaption {
  margin-top: 14px;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.showcase figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 860px) {
  .showcase {
    /* A page, a two-page spread, a page: the same height at the booklet's proportions. */
    grid-template-columns: 1fr 2fr 1fr;
  }
}

.showcase-foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.showcase-foot p {
  margin: 0;
}

/* ---------- Design cards ---------- */

.design-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}

.design-name {
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.01em;
}

.design-desc {
  color: var(--ink-soft);
  margin: 8px 0 24px;
  max-width: 44em;
}

.designs-note {
  text-align: center;
  margin-top: 16px;
}

@media (min-width: 700px) {
  .design-card {
    padding: 36px;
  }
}

/* ---------- Story ---------- */

.story {
  max-width: 44em;
}


.story p:not(.eyebrow) {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.story h2 + p {
  margin-top: 18px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 48em;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 16px;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--teal-ink);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

/* ---------- Closing CTA ---------- */

.closing {
  text-align: center;
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.closing p {
  margin: 14px auto 28px;
  max-width: 32em;
  color: var(--ink-soft);
}

.closing .cta-row {
  justify-content: center;
}

/* ---------- Start page ---------- */

.start {
  padding: 64px 0 88px;
}

.start-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
}

.start-card h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}

.start-card .lede {
  margin: 14px 0 26px;
  font-size: 1.1rem;
}

.need {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}

.need h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.need ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.need p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.alt-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 8px;
}

.alt-body {
  margin: 8px 0 18px;
  color: var(--ink-soft);
}

.start-card .steps {
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.start-card .steps li {
  padding: 0 0 0 56px;
}

.start-card .help {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.order-form {
  margin: 0 0 22px;
}

.order-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-row input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
}

.order-row input:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal-ink);
}

.order-row .btn {
  flex: 0 0 auto;
  min-height: 48px;
}

.order-note,
.keep {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.keep {
  margin: 0;
}

.find-order {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin: 0 0 30px;
}

.find-order summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  min-height: 44px;
}

.find-order ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.find-order li,
.find-order p {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--ink-soft);
}

.disclaimer {
  margin: 24px 0 0;
  font-size: 0.8rem;
  max-width: 60em;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 80px;
}

.legal .wrap {
  max-width: 46em;
}

.legal h1 {
  font-size: clamp(2rem, 4.6vw, 2.8rem);
}

.legal .lede {
  margin: 18px 0 10px;
}

.toc {
  margin: 28px 0 40px;
  padding: 18px 22px;
  background: var(--mist);
  border-radius: var(--radius);
}

.toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 1;
  font-size: 0.95rem;
}

.toc li {
  margin: 4px 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.legal section {
  padding: 0;
  margin-top: 36px;
  scroll-margin-top: 20px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.legal h3 {
  margin: 20px 0 6px;
}

.legal p,
.legal li {
  color: var(--ink);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li {
  margin: 8px 0;
}

@media (min-width: 700px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}


/* ---------- Design pages, guides and reviews ---------- */

.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 18px; }
.crumbs a { color: var(--ink-soft); }

.design-page { padding: 40px 0 72px; }
.design-page h1, .guide h1 { max-width: 22ch; }
.design-page .lede { max-width: 60ch; }

.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 0 10px; }
.buy-row .price { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }
.buy-row .price strong { font-size: 1.7rem; color: var(--ink); font-weight: 600; }

.price-inline { font-size: 1rem; color: var(--ink-soft); }
.price-inline strong { color: var(--ink); font-size: 1.25rem; }

.design-shots { margin-top: 36px; }

.detail { margin-top: 48px; max-width: 760px; }
.detail h2 { margin-bottom: 14px; }
.detail h3 { margin: 26px 0 8px; font-size: 1.1rem; }

.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li { position: relative; padding: 0 0 12px 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.5em; width: 9px; height: 15px;
  border: solid var(--teal-ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-60%) rotate(40deg);
}
.checklist.numbered { counter-reset: n; }
.checklist.numbered li::before {
  counter-increment: n; content: counter(n); border: 0; transform: none; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--mist); color: var(--teal-ink);
  font-weight: 600; font-size: 0.85rem; text-align: center; line-height: 22px; left: 0;
}

.reviews { margin-top: 56px; }
.review-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 20px; }
.review {
  margin: 0; padding: 22px 22px 18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review blockquote { margin: 0 0 14px; }
.review blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.review figcaption { font-size: 0.92rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 2px; }
.review figcaption strong { color: var(--ink); }
.section-mist { background: var(--mist); padding: 64px 0; }
.section-mist .review { background: #fff; }

.related { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.related a:hover { background: var(--mist); }
.related strong { display: block; color: var(--teal-ink); }
.related span { font-size: 0.92rem; color: var(--ink-soft); }

.guide { padding: 40px 0 72px; }
.guide .wrap > * { max-width: 760px; }
.guide h2 { margin-top: 44px; }
.steps-list { padding-left: 0; list-style: none; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 6px 46px; margin-top: 22px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--mist); color: var(--teal-ink); font-weight: 600; text-align: center; line-height: 32px;
}
.steps-list h3 { margin: 0 0 4px; font-size: 1.1rem; }
.steps-list p { margin: 0; }
.template {
  margin: 16px 0; padding: 20px 24px; border-left: 4px solid var(--teal); background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.template p { margin: 0 0 12px; }
.template p:last-child { margin-bottom: 0; }
.callout { margin-top: 48px; padding: 26px 28px; background: var(--mist); border-radius: var(--radius); max-width: 760px; }
.callout h2 { margin: 0 0 8px; font-size: 1.35rem; }
.callout p { margin: 0; }

/* Thick double quotation marks around each review (brand teal). */
.review { position: relative; padding: 84px 30px 78px; }
.review::before,
.review::after {
  content: ""; position: absolute; width: 84px; height: 84px; background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235cc8d2' d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E");
}
.review::before { top: 4px; left: 6px; transform: rotate(180deg); }
.review::after { bottom: 4px; right: 6px; }
.review blockquote p { font-size: 1.05rem; }
.review figcaption { margin-top: 4px; }


/* ---------- Back to top ---------- */
.to-top {
  /* Above the help chat's button, which sits at the same corner (bottom 16px, 48px tall). */
  position: fixed; right: 20px; bottom: 80px; z-index: 20; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-ink); color: #fff; box-shadow: 0 8px 20px -6px rgba(20, 50, 60, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s, background 0.15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-ink-hover); color: #fff; }
.to-top:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .to-top { transition: none; }
}
@media print { .to-top { display: none; } }


/* Easier to tap: text links and header links get a 44 px tall target. */
.text-link, .site-nav a:not(.btn):not(.nav-section), .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* The extra menu links stay hidden on phones (rule above in this file) and show from 860 px. */
@media (min-width: 860px) { .site-nav .nav-section { display: inline-flex; align-items: center; min-height: 44px; } }
.crumbs a { display: inline-block; padding: 8px 0; }

/* Photo restore section */
.restore-fig { max-width: 880px; margin: 0 auto; }
.restore-fig img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); }
.restore-fig figcaption { margin-top: 10px; font-size: .8rem; color: #6b6f75; text-align: center; }
.restore-text { max-width: 640px; margin: 22px auto 0; text-align: center; }

/* ---------- Compare page (/compare/, built by site/compare-page.mjs) ---------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare-page { padding: 40px 0 72px; }
.compare-page section { padding: 36px 0 0; }
.compare-page h2 { margin-bottom: 18px; }

/* The filter bar: one row of dropdowns across the top (as a store's), sticky while the cards scroll.
   On a phone the row scrolls sideways and a list opens full width under it (its box is the bar, outside the row's scroll). */
.filterbar { position: sticky; top: 0; z-index: 3; margin: 0 -20px; padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.filterrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
/* A fade at the right edge says the row scrolls (an overlay: a mask on the row would hide the lists that open from it). */
.filterbar::after { content: ""; position: absolute; top: 10px; bottom: 10px; right: 0; width: 36px; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--paper)); pointer-events: none; }
.filterrow::-webkit-scrollbar { display: none; }
.fdrop { flex: none; }
.fdrop summary { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 8px 10px 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.95rem; font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; }
.fdrop summary::-webkit-details-marker { display: none; }
.fdrop summary:hover { border-color: var(--teal-ink); }
.fdrop summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.fdrop.is-set summary { border-color: var(--teal-ink); background: var(--teal-ink); color: #fff; }
.fdrop .fvalue { font-weight: 400; }
.fdrop .fchev { flex: none; transform-origin: 50% 50%; transition: transform 0.15s; }
.fdrop[open] .fchev { transform: rotate(180deg); }
.fpanel { position: absolute; left: 20px; right: 20px; top: calc(100% - 4px); z-index: 4; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
/* A sample swatch of a color family: up to three overlapping dots, on the option, the button and the pill. */
.dots { display: inline-flex; flex: none; align-items: center; }
.dots .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.dots .dot + .dot { margin-left: -5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), -1.5px 0 0 0 #fff; }
.fdots { display: inline-flex; gap: 2px; margin-left: 2px; }
.fdots:empty { display: none; }
.fdots .dots .dot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7); }
.fdrop.is-set .fdots .dots .dot + .dot { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), -1.5px 0 0 0 var(--teal-ink); }
.cmp-pill .dots { margin-right: -2px; }
.fnote { margin: 6px 10px 4px; max-width: 30ch; font-size: 0.85rem; line-height: 1.4; color: var(--muted, #5b6770); }
.fopt:hover { background: var(--mist); }
.fopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal-ink); }
.fopt .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
@media (min-width: 760px) {
  .filterrow { overflow: visible; gap: 8px; }
  .filterbar::after { display: none; }
  .fdrop summary { gap: 4px; padding: 8px 14px; }
  .fdrop { position: relative; }
  .fpanel { left: 0; right: auto; top: calc(100% + 6px); min-width: 240px; }
}
/* The chosen filters as pills, each with an x that takes it off. */
.cmp-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.cmp-pills[hidden] { display: none; }
.cmp-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 14px; border: 1.5px solid var(--teal-ink); border-radius: 999px; background: var(--mist); color: var(--teal-ink); font: 600 0.9rem var(--font); cursor: pointer; }
.cmp-pill:hover { background: #fff; }
.cmp-pill:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.cmp-pill svg { flex: none; }
.cmp-countbar { display: flex; align-items: center; gap: 16px; margin: 14px 0 12px; }
.cmp-clear { min-height: 44px; border: 0; background: none; padding: 0; font: 600 0.95rem var(--font); color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cmp-count { margin: 0; font-weight: 600; }

.cmp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .cmp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cmp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cmp-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cmp-card[hidden] { display: none; }
.cmp-card img { border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 8px; }
.cmp-card h3 a { color: var(--ink); text-decoration: none; }
.cmp-card p { margin: 0; }
.cmp-card .cmp-add { margin-top: auto; align-self: start; }
.cmp-card .cmp-add[aria-pressed="true"] { background: var(--mist); }
.swatch-row { display: flex; gap: 5px; margin: 4px 0 8px; }
.swatch-row i, .swatches i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* Side by side: three columns on wider screens, two on a phone (the third is hidden). */
.cmp-cells { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmp-col-3 { display: none; }
@media (min-width: 760px) { .cmp-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cmp-col-3 { display: block; } }
.cmp-picks { position: sticky; top: 0; z-index: 2; padding: 10px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.cmp-pick select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: 600 0.95rem var(--font); color: var(--ink); }
.cmp-designs { padding: 20px 0 8px; }
.cmp-designs .cmp-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cmp-designs .cmp-col-3 { display: none; }
@media (min-width: 760px) { .cmp-designs .cmp-col-3 { display: flex; } }
.cmp-designs img { width: 100%; max-width: 200px; border-radius: 6px; box-shadow: var(--shadow); }
.cmp-designs h3 a { color: var(--ink); text-decoration: none; }
.cmp-designs p { margin: 0; }
.cmp-section { margin: 32px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 1.25rem; font-weight: 300; }
.cmp-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cmp-label { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.cmp-row .cmp-col { font-size: 0.95rem; line-height: 1.45; }
.cmp-big { display: block; font-size: 2rem; font-weight: 300; line-height: 1.1; }
.cmp-yes { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-ink); font-weight: 600; }
.cmp-no { color: #8a959b; }
.cmp-choice { color: var(--ink); }
.cmp-line { display: block; }
.cmp-palettes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmp-palettes li { display: flex; align-items: center; gap: 8px; }
.swatches { display: inline-flex; gap: 3px; }
.cmp-all { margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cmp-all summary { min-height: 48px; padding: 12px 16px; font-weight: 600; cursor: pointer; }
.table-scroll { overflow-x: auto; padding: 0 16px 16px; }
.table-scroll table { border-collapse: collapse; min-width: 760px; font-size: 0.9rem; }
.table-scroll th, .table-scroll td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll thead th { font-weight: 600; }
.table-scroll tbody th { font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
