@charset "UTF-8";

:root {
  --ink: #25262a;
  --muted: #73747c;
  --surface: #f5f5f7;
  --line: #e9e9ec;
  --mint: #dff1d9;
  --peach: #ffe2d0;
  --lilac: #ebe4fc;
  --blue: #3158d5;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: 28px; letter-spacing: -.8px; }
h2 { font-size: 23px; letter-spacing: -.5px; }
h3 { font-size: 16px; letter-spacing: -.2px; }
svg { display: block; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.wrap { width: calc(100% - 40px); max-width: 840px; margin-inline: auto; }
.site-header { position: relative; width: calc(100% - 40px); max-width: 1440px; margin-inline: auto; padding-top: 24px; padding-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-size: 22px; font-weight: 680; letter-spacing: -.85px; line-height: 1.25; }
.site-menu { position: relative; margin-right: -9px; z-index: 20; }
.site-menu > summary { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; border-radius: 50%; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:hover, .site-menu[open] > summary { background: var(--surface); }
.menu-icon path { transform-origin: 12px 12px; transition: transform .16s; }
.site-menu[open] .menu-icon path:first-child { transform: rotate(45deg) translateY(4px); }
.site-menu[open] .menu-icon path:last-child { transform: rotate(-45deg) translateY(-4px); }
.main-nav { position: absolute; top: 53px; right: 0; width: min(250px, calc(100vw - 40px)); display: flex; flex-direction: column; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid white; border-radius: 16px; box-shadow: 0 9px 30px #20202a12; }
.main-nav a { display: flex; align-items: center; min-height: 45px; padding: 11px 14px; font-size: 14px; border-radius: 9px; }
.main-nav a:hover { background: #e9e9ef; }
.main-nav a[aria-current] { background: var(--lilac); }
.main-nav a:last-child { border-top: 1px solid #fff; border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 3px; padding-top: 14px; }
main { min-height: calc(100svh - 240px); }
.home-page, .listing-page { padding-top: 24px; padding-bottom: 48px; }
.intro.prose { max-width: 690px; font-size: clamp(1rem, .5rem + 1.5vw, 1.75rem); line-height: 1.5; }
.intro > :first-child { margin-top: 0; }
.intro > :last-child { margin-bottom: 0; }
.home-page > .intro { margin-bottom: 32px; }
.page-heading > .intro { margin-top: 16px; }
.home-section + .home-section { margin-top: 43px; }
.section-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 17px; }
.section-heading h1, .section-heading h2 { font-size: 25px; letter-spacing: -.7px; }
.section-heading a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.section-count { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 25px; padding: 0 7px; background: var(--mint); font-size: 12px; font-weight: 600; line-height: 1; border-radius: 8px 10px 9px 7px; transform: rotate(-7deg); font-variant-numeric: tabular-nums; }
.section-count--peach { background: var(--peach); transform: rotate(6deg); }
.section-count--lilac { background: var(--lilac); transform: rotate(-5deg); }
.content-list { background: var(--surface); border-radius: var(--radius); }
.content-list:empty { display: none; }
.list-item { position: relative; }
.list-item + .list-item:before { content: ""; display: block; height: 1px; background: #fff; position: absolute; left: 23px; right: 23px; top: 0; }
.list-link { display: flex; align-items: center; padding: 20px 23px; min-height: 91px; border-radius: 12px; transition: background .15s; }
.list-item:first-child .list-link { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.list-item:last-child .list-link { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.list-link:hover { background: #ededf2; }
.row-copy { min-width: 0; overflow-wrap: anywhere; }
.row-copy p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.referral-list-item { border-radius: 12px; transition: background .15s; }
.referral-list-item:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.referral-list-item:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.referral-list-item:hover, .referral-list-item:focus-within { background: #ededf2; }
.referral-list-item .referral-link:hover { background: transparent; }
.referral-link { gap: 16px; }
.referral-link:after { content: ""; position: absolute; inset: 0; }
.referral-logo { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; }
.referral-logo img { display: block; width: 36px; height: 36px; object-fit: contain; }
.referral-list-item.has-tags .referral-link { padding-bottom: 0; min-height: 0; }
.referral-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; padding: 7px 23px 20px 79px; pointer-events: none; }
.referral-tag { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 30px; padding: 4px 10px; background: #fff; color: #62636c; font-size: 11px; border-radius: 20px; overflow-wrap: anywhere; pointer-events: auto; }
.referral-tag:hover { background: var(--lilac); color: var(--ink); }
.tag-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 23px; }
.tag-filter { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 40px; padding: 8px 15px; border-radius: 25px; background: var(--surface); font-size: 13px; overflow-wrap: anywhere; }
.tag-filter:hover { background: #ededf2; }
.tag-filter[aria-current] { background: var(--lilac); }
.guide-link { min-height: 73px; }
.guide-link h3 { font-weight: 500; line-height: 1.5; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 23px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: var(--ink); }
.page-heading { margin-bottom: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; min-height: 44px; border: 0; border-radius: 100px; font-size: 14px; font-weight: 550; line-height: 1.4; transition: background .16s, transform .16s; }
.button:active { transform: scale(.97); }
.button--dark, .button--blue { color: #fff; background: var(--ink); }
.button--dark:hover, .button--blue:hover { background: #414247; }
.button--white { background: #fff; color: var(--ink); }
.button--white:hover { background: var(--lilac); }
.button--light { background: var(--surface); }
.text-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--blue); }
.icon { flex-shrink: 0; width: 17px; height: 17px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.search-field { width: 100%; }
.search-field input, .category-field select { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); border: 1px solid #dddde3; border-radius: 10px; background: #fff; font-size: 16px; }
.search-field input::placeholder { color: var(--muted); }
.category-field { flex: 1; min-width: 0; }
.filter-form > .button { font-size: 13px; padding-inline: 23px; }
.group-heading { margin: 35px 0 17px; font-size: 21px; }
.empty-state { padding: 28px 0; color: var(--muted); font-size: 14px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; font-size: 12px; color: var(--muted); }
.pagination .button { font-size: 12px; padding-inline: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 30px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.detail-page, .article-page { padding-top: 17px; padding-bottom: 50px; }
.offer-header { margin-bottom: 25px; }
.offer-header h1 { font-size: 32px; letter-spacing: -.8px; }
.prose { line-height: 1.8; font-size: 15px; overflow-wrap: anywhere; }
.prose p { margin-bottom: 20px; }
.prose h2 { font-size: 22px; margin: 30px 0 13px; }
.prose h3 { font-size: 19px; margin: 24px 0 12px; }
.prose ul, .prose ol { padding-left: 23px; margin: 0 0 22px; }
.prose li { padding-left: 3px; margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #a8a8af; }
.prose a:hover { color: var(--blue); }
.prose strong { font-weight: 600; }
.referral-cover { margin-bottom: 30px; }
.referral-cover img { display: block; width: 100%; height: auto; border-radius: 12px; }
.referral-article > :first-child { margin-top: 0; }
.referral-article > :last-child { margin-bottom: 0; }
.referral-article :is(h4, h5, h6) { font-size: 17px; margin: 24px 0 12px; }
.referral-article figure { margin: 24px 0; }
.referral-article img, .referral-article video { display: block; max-width: 100%; height: auto; }
.referral-article iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.referral-article figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.referral-article blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--line); }
.referral-article blockquote footer { font-size: 13px; color: var(--muted); }
.referral-article pre { max-width: 100%; overflow-x: auto; margin: 24px 0; padding: 20px; background: var(--surface); border-radius: 10px; }
.referral-article hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.referral-article figure > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; list-style: none; padding: 0; }
.referral-article figure > ul > li { margin: 0; padding: 0; }
.referral-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.referral-article :is(th, td) { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.offer-action { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.offer-action small { font-size: 12px; color: var(--muted); }
.related-section { margin-top: 45px; }
.related-section > h2 { font-size: 23px; margin-bottom: 17px; }
.admin-code-panel { margin-top: 25px; position: relative; background: var(--surface); padding: 26px 23px; border-radius: var(--radius); }
.badge { display: inline-flex; font-size: 11px; font-weight: 550; padding: 4px 10px; border-radius: 8px; background: var(--peach); transform: rotate(-5deg); margin-bottom: 17px; }
.copy-code { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.copy-code code { min-width: 0; font: 550 20px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .015em; overflow-wrap: anywhere; }
.copy-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: white; color: var(--ink); transition: background .15s, transform .15s; }
.copy-button:hover { background: var(--lilac); }
.copy-button .check-icon { display: none; }
.copy-button.is-copied { background: var(--mint); transform: rotate(-5deg); }
.copy-button.is-copied .copy-icon { display: none; }
.copy-button.is-copied .check-icon { display: block; }
.admin-code-panel > .text-link { margin-top: 14px; }
.community-section { margin-top: 33px; scroll-margin-top: 20px; }
.community-section > h2 { margin-bottom: 18px; font-size: 22px; }
.community-code { padding: 23px; }
.community-code + .community-code { border-top: 1px solid white; }
.attribution { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.community-code .copy-code code { font-size: 18px; }
.community-code > .text-link { margin-top: 10px; }
.submission-details { margin-top: 27px; border-top: 1px solid var(--line); }
.submission-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 550; padding-block: 23px; }
.submission-details > summary::-webkit-details-marker { display: none; }
.submission-details > summary:after { content: "+"; font-size: 25px; font-weight: 300; line-height: 1; color: var(--muted); }
.submission-details[open] > summary:after { content: "−"; }
.submission-panel { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.submission-form { display: grid; gap: 21px; }
.form-page { padding-top: 24px; padding-bottom: 48px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field > label { font-size: 13px; font-weight: 550; }
.form-field label > span { color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #dddde3; padding: 11px 12px; min-height: 46px; border-radius: 9px; background: #fff; color: var(--ink); font-size: 16px; }
.form-field input::placeholder { color: #888992; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field > small { font-size: 11px; color: var(--muted); }
.form-row { display: grid; gap: 21px; }
.submission-form > .button { justify-self: start; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { padding: 19px; background: #fbe9e4; color: #87372a; border-radius: 11px; font-size: 13px; margin-bottom: 23px; }
.form-errors > p { font-weight: 600; }
.form-errors ul { margin-bottom: 0; padding-left: 18px; }
.form-errors a { text-decoration: underline; text-underline-offset: 3px; }
.success-message { display: flex; align-items: flex-start; gap: 12px; padding: 21px; border-radius: 12px; background: var(--mint); margin-bottom: 23px; }
.success-message h3 { font-size: 17px; margin-bottom: 4px; }
.success-message p { font-size: 13px; }
.success-message > .icon { margin-top: 2px; }
.notice { padding: 16px 20px; border-radius: 12px; background: #fff0db; font-size: 14px; }
.article-header { margin-bottom: 28px; }
.article-header h1 { font-size: 31px; line-height: 1.2; }
.article-meta { color: var(--muted); font-size: 11px; margin-top: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.error-page { padding-top: 45px; padding-bottom: 65px; }
.error-page .text-link { margin-top: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 12px); opacity: 0; visibility: hidden; padding: 12px 22px; background: var(--ink); color: #fff; border-radius: 100px; max-width: 90%; text-align: center; font-size: 13px; box-shadow: 0 4px 18px #0001; pointer-events: none; transition: transform .18s, opacity .18s; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; opacity: 1; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-160%); z-index: 20; padding: 11px 20px; border-radius: 9px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes copy-pop { 50% { transform: scale(1.2) rotate(-9deg); } }

@media (min-width: 600px) {
  .wrap { width: calc(100% - 72px); }
  .site-header { width: calc(100% - 72px); padding-top: 32px; padding-bottom: 28px; }
  .wordmark { font-size: 26px; letter-spacing: -1px; }
  .home-page, .listing-page { padding-top: 30px; padding-bottom: 65px; }
  .home-section + .home-section { margin-top: 48px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h1, .section-heading h2 { font-size: 28px; }
  .list-link { padding: 23px 30px; min-height: 97px; }
  .list-item + .list-item:before { left: 30px; right: 30px; }
  .row-copy h3 { font-size: 17px; }
  .row-copy p { font-size: 15px; }
  .referral-tags { padding-left: 86px; padding-right: 30px; padding-bottom: 23px; }
  .guide-link { min-height: 78px; }
  .guide-link h3 { font-size: 17px; }
  .site-footer { font-size: 12px; padding-block: 27px 35px; }
  .site-footer nav { gap: 25px; }
  .page-heading h1 { font-size: 32px; }
  .filter-form { flex-wrap: nowrap; margin-bottom: 30px; }
  .search-field { flex: 1; width: auto; }
  .category-field { flex: 0 1 200px; }
  .search-field input, .category-field select { font-size: 14px; }
  .detail-page, .article-page { padding-top: 22px; padding-bottom: 65px; }
  .detail-content, .article-content { max-width: 690px; }
  .offer-header h1 { font-size: 38px; line-height: 1.2; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .admin-code-panel { padding: 30px; }
  .copy-code code { font-size: 24px; }
  .submission-panel { padding: 30px; }
  .form-page { max-width: 690px; padding-top: 30px; padding-bottom: 65px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .article-header h1 { font-size: 38px; }
}
@media (min-width: 800px) {
  .row-copy { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 24px; width: 100%; }
  .row-copy p { margin-top: 0; }
  .referral-list-item { display: grid; grid-template-columns: minmax(0, 1fr) 140px; align-items: center; }
  .referral-list-item .referral-link { min-width: 0; padding-right: 0; }
  .referral-list-item.has-tags .referral-link { min-height: 97px; padding-bottom: 23px; }
  .referral-tags { justify-content: flex-end; padding: 0 30px 0 16px; }
}
@media (min-width: 1024px) {
  .site-header { width: calc(100% - 96px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
