/* GrailStitch utilities: a hand-built static replacement for the Tailwind CDN. Only the classes the site uses. */
*,::before,::after{box-sizing:border-box;border:0 solid currentColor}
html{line-height:1.5;-webkit-text-size-adjust:100%;scroll-behavior:auto}
body,h1,h2,h3,p,ul,figure{margin:0}
ul{padding:0;list-style:none}
h1,h2,h3{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
img,svg{display:block;max-width:100%}
img{height:auto}
button{font:inherit;color:inherit;background:none;padding:0;cursor:pointer}
body{font-family:"Hanken Grotesk",system-ui,sans-serif}
.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.font-sans{font-family:"Hanken Grotesk",system-ui,sans-serif}
.font-serif{font-family:Fraunces,Georgia,serif}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}
.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}
.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}
.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}
.space-y-2>:not([hidden])~:not([hidden]){margin-top:.5rem}
.space-y-6>:not([hidden])~:not([hidden]){margin-top:1.5rem}
.sticky{position:sticky}.top-0{top:0}.z-50{z-index:50}
.mx-auto{margin-inline:auto}
.my-6{margin-block:1.5rem}.my-8{margin-block:2rem}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}
.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}
.p-3{padding:.75rem}.p-5{padding:1.25rem}
.px-4{padding-inline:1rem}
.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.py-8{padding-block:2rem}.py-10{padding-block:2.5rem}
.pt-12{padding-top:3rem}.pb-8{padding-bottom:2rem}
.w-10{width:2.5rem}.h-10{height:2.5rem}.w-full{width:100%}.h-auto{height:auto}
.max-w-6xl{max-width:72rem}.max-w-prose{max-width:65ch}.max-w-sm{max-width:24rem}
.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}
.rounded-full{border-radius:9999px}
.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}
.text-center{text-align:center}
.font-medium{font-weight:500}.font-bold{font-weight:700}.italic{font-style:italic}
.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}
.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}
.hover\:underline:hover{text-decoration-line:underline}
.\!mb-1{margin-bottom:.25rem!important}.\!mb-4{margin-bottom:1rem!important}
.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.\!text-base{font-size:1rem!important;line-height:1.5rem!important}
.\!leading-relaxed{line-height:1.625!important}
@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}}
@media (min-width:1024px){.lg\:flex{display:flex}.lg\:grid-cols-\[1fr_300px\]{grid-template-columns:1fr 300px}.lg\:sticky{position:sticky}.lg\:top-24{top:6rem}}

/* Site components */
.font-serif{font-weight:500!important}
h1.font-serif{font-size:clamp(2.1rem,5vw,3.25rem)!important;line-height:1.12!important}
h2.font-serif.text-3xl{font-size:2rem;line-height:1.15}
a[aria-label="GrailStitch home"]{font-size:1.6rem!important;line-height:1;padding-bottom:2px;border-bottom:2px dashed var(--accent)}
.hero{background:#14161a;color:#f2efe8}
.hero p{color:#c9c6bf}
.hero h1.font-serif{font-size:clamp(2.6rem,6.5vw,4.5rem)!important;line-height:1.05!important;letter-spacing:-.015em}
.btn-hero{display:inline-block;background:#e59aa3;color:#14161a;font-weight:600;padding:.85rem 1.5rem}
.btn-hero:hover{filter:brightness(1.08)}
.hero a:focus-visible{outline-color:#e59aa3}
.stitch-frame{border:2px dashed #e59aa3;padding:12px}
.tile{display:block;padding:1.1rem 1.25rem;border:1px solid var(--line);background:var(--surface);transition:border-color .2s}
.tile:hover{border-color:var(--accent)}
.tile-n{display:block;font-family:Fraunces,Georgia,serif;font-size:2rem;line-height:1;color:var(--accent)}
.tile-d{display:block;margin-top:.4rem;font-size:.9rem;color:var(--muted)}

/* Mobile */
.grid>*{min-width:0}
@media (max-width:767px){
header.sticky>div{flex-wrap:wrap;gap:.5rem 1rem}
header.sticky nav{order:3;flex:1 1 100%}
header.sticky nav ul{justify-content:flex-start;gap:1.5rem}
a[aria-label="GrailStitch home"]{font-size:1.6rem!important}
.ad[style*="728px"]{height:100px!important}
.ad[style*="336px"]{height:250px!important}
h2.font-serif.text-3xl{font-size:1.7rem}
}

/* Long-form text pages */
.prose-gs p,.prose-gs li{font-size:1.125rem;line-height:1.75}
.prose-gs p{margin:0 0 1.25rem}
.prose-gs h2{font-family:Fraunces,Georgia,serif;font-size:1.65rem;font-weight:500;line-height:1.25;margin:2.25rem 0 .9rem}
.prose-gs ul{margin:0 0 1.25rem 1.25rem;list-style:disc}
.prose-gs a:not(.btn):not(.pick-cta){color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.callout{border-inline-start:4px solid var(--accent)}

/* Anchor links: keep headings clear of the sticky header */
html{scroll-padding-top:5.5rem}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* Product callout (CTA card) */
.pick{display:grid;grid-template-columns:210px 1fr;margin:2.5rem 0;border:1px solid var(--line);background:var(--surface);box-shadow:0 14px 34px -22px rgba(0,0,0,.45);overflow:hidden}
.pick-media{position:relative;min-height:220px;background:var(--line)}
.pick-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pick-media svg{position:absolute;inset:0;margin:auto;width:56px;height:56px;color:var(--muted)}
.pick-badge{position:absolute;top:.75rem;left:.75rem;background:var(--accent);color:var(--accent-ink);font-size:.75rem;font-weight:700;padding:.3rem .65rem}
.pick-body{padding:1.5rem 1.6rem}
.pick .pick-kicker{margin:0 0 .35rem;font-size:.85rem;line-height:1.2;font-weight:600;color:var(--accent)}
.pick .pick-title{margin:0 0 .6rem;font-family:Fraunces,Georgia,serif;font-weight:500;font-size:1.45rem;line-height:1.25}
.pick .pick-desc{margin:0 0 1.2rem;font-size:1rem;line-height:1.6;color:var(--muted)}
.pick .pick-note{margin:.7rem 0 0;font-size:.8rem;line-height:1.4;color:var(--muted)}
.pick-cta{display:inline-flex;align-items:center;gap:.6rem;background:var(--accent);color:var(--accent-ink)!important;font-weight:700;font-size:1rem;padding:.9rem 1.5rem;text-decoration:none!important;transition:transform .15s,box-shadow .15s}
.pick-cta:hover{transform:translateY(-2px);box-shadow:0 10px 20px -10px rgba(0,0,0,.55)}
.pick-cta svg{transition:transform .15s}.pick-cta:hover svg{transform:translateX(3px)}
@media (max-width:640px){.pick{grid-template-columns:1fr}.pick-media{min-height:200px}.pick-cta{display:flex;justify-content:center;width:100%}}

/* Styled Collector Reference Tables (Desktop & Mobile) */
article table,
main table {
  display: table !important;
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 2.25rem 0 !important;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1.5px solid #78716c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

article th,
article td,
main th,
main td {
  border: 1px solid #a8a29e !important;
  padding: 0.85rem 0.9rem !important;
  text-align: left;
  vertical-align: middle;
}

article th,
main th {
  background-color: rgba(120, 113, 108, 0.18) !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: normal !important;
}

article tr:nth-child(even) td,
main tr:nth-child(even) td {
  background-color: rgba(120, 113, 108, 0.06);
}

article tbody tr:hover td,
main tbody tr:hover td {
  background-color: rgba(180, 83, 9, 0.08);
  transition: background-color 0.2s ease;
}

/* Mobile Card Layout (No horizontal scroll) */
@media (max-width: 768px) {
  article table,
  article thead,
  article tbody,
  article th,
  article td,
  article tr,
  main table,
  main thead,
  main tbody,
  main th,
  main td,
  main tr {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  article thead,
  main thead {
    display: none !important;
  }

  article table,
  main table {
    border: none !important;
    box-shadow: none !important;
  }

  article tr,
  main tr {
    margin-bottom: 1.25rem;
    border: 1.5px solid #78716c !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  article td,
  main td {
    border: none !important;
    border-bottom: 1px solid rgba(168, 162, 158, 0.4) !important;
    padding: 0.65rem 0.9rem !important;
    font-size: 0.92rem;
  }

  article td:first-child,
  main td:first-child {
    background-color: rgba(120, 113, 108, 0.18) !important;
    font-weight: 700;
    font-size: 1rem;
  }

  article td:last-child,
  main td:last-child {
    border-bottom: none !important;
    font-weight: 600;
  }
}

/* Pagination */
.pager{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;align-items:center;margin-top:2.5rem}
.pager a,.pager span{min-width:2.5rem;height:2.5rem;display:inline-flex;align-items:center;justify-content:center;padding:0 .9rem;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:.95rem}
.pager a:hover{border-color:var(--accent)}
.pager [aria-current="page"]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.pager .gap{border:0;background:none;min-width:auto;padding:0 .2rem}

/* Mobile table cards: show the column name above each value */
@media (max-width: 768px) {
  article td[data-label]::before,
  main td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
    margin-bottom: .15rem;
  }
  article td:first-child[data-label]::before,
  main td:first-child[data-label]::before { display: none; }
}
