/* YankeeDeal. iOS-inspired: light gray canvas, white rounded cards, system font, soft accents, no motion. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --fill: #e9e9ef;
  --line: #e1e1e8;
  --ink: #1c1c1e;
  --ink-2: #6e6e73;
  --accent: #0a62d6;      /* soft iOS-like blue for links and primary actions */
  --accent-soft: #e6f0fd;
  --red: #e5484d;         /* prices and "ends soon" */
  --green: #1f9d55;       /* free */
  --green-soft: #e6f6ec;
  --navy: #13294b;        /* brand */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1c1c1e; --fill: #2c2c2e; --line: #38383a; --ink: #f5f5f7; --ink-2: #a1a1a6;
    --accent: #4c9bff; --accent-soft: #10243f; --red: #ff6b6f; --green: #34c759; --green-soft: #0f2a18; --navy: #f5f5f7;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1c1c1e; --fill: #2c2c2e; --line: #38383a; --ink: #f5f5f7; --ink-2: #a1a1a6;
  --accent: #4c9bff; --accent-soft: #10243f; --red: #ff6b6f; --green: #34c759; --green-soft: #0f2a18; --navy: #f5f5f7;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.wrap { max-width: 1600px; margin: 0 auto; padding-left: max(clamp(16px, 3vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 3vw, 48px), env(safe-area-inset-right, 0px)); }
.main { padding-block: 1rem 3rem; min-height: 60vh; }
.sitebar { text-align: center; padding: .5rem 1rem; font-size: .9rem; background: #fff4d6; color: #7a5200; }

/* Header: translucent bar like iOS */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(242, 242, 247, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .masthead { background: rgba(0, 0, 0, .8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .masthead { background: rgba(0, 0, 0, .8); } }
.masthead__row { display: flex; align-items: center; gap: .75rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__bg { fill: #13294b; }
.brand__y { fill: #ffffff; }
.brand__dot { fill: #e5484d; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.brand__name b { color: #e5484d; font-weight: 700; }
.search { flex: 1; display: flex; min-width: 0; max-width: 520px; margin-left: auto; background: var(--fill); border-radius: 12px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem .9rem; font: inherit; font-size: 1rem; color: var(--ink); }
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; padding: 0 .8rem; color: var(--ink-2); cursor: pointer; }
.search svg, .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.icon-btn { flex: none; margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.search + .icon-btn { margin-left: 0; }
.sections__row { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .6rem; }
.sections__row::-webkit-scrollbar { display: none; }
.sections a { flex: none; padding: .4rem .85rem; border-radius: 999px; background: var(--card); color: var(--ink); font-size: .92rem; font-weight: 600; box-shadow: var(--shadow); }
.sections a:hover { text-decoration: none; }
.sections a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 1rem/1 var(--font); padding: .8rem 1.2rem; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn--primary, .btn--navy { background: var(--accent); color: #ffffff; }
.btn--red { background: var(--accent); color: #ffffff; }
.btn--tint { background: var(--accent-soft); color: var(--accent); padding: .55rem .9rem; }
.btn--ghost { background: var(--fill); color: var(--ink); }
.btn--big { width: 100%; padding: 1rem; font-size: 1.05rem; border-radius: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }

.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; background: var(--card); }
.flash--success { color: var(--green); }
.flash--error { color: var(--red); }

/* Home intro */
.intro { padding: 1.5rem 0 .5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.intro__main { min-width: 0; }
.intro h1 { max-width: 18ch; }
.intro__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 .5rem; }
.intro__tag { font-weight: 700; margin: 0 0 1.25rem; }
.placepick { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; background: var(--card); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.placepick .field { flex: 1 1 200px; }
.search--home { margin: .75rem 0 0; max-width: none; }

/* Forms */
label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--fill); border: 0; border-radius: 10px; padding: .7rem .8rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input[type="checkbox"] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; }

/* Sections and grid */
.block { margin-block: 2rem; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.block__head h2 { margin: 0; }
.block__head a { font-weight: 600; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.seg, .tabs { display: flex; gap: 2px; padding: 2px; background: var(--fill); border-radius: 10px; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; width: fit-content; }
.seg a, .tabs a { flex: none; padding: .45rem .95rem; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.seg a:hover, .tabs a:hover { text-decoration: none; }
.seg a[aria-current="page"], .tabs a[aria-current="page"] { background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* Cards */
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--fill); display: grid; place-items: center; max-width: 100%; overflow: hidden; flex: none; border-radius: var(--radius) var(--radius) 0 0; }
/* The image is locked inside its frame: it can never grow past it or sit on top of the text below. */
.card__media img, .deal__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; box-sizing: border-box; object-fit: contain; padding: .5rem; }
.card__media--wide { aspect-ratio: 16 / 9; }
.card__media--wide img { object-fit: cover; padding: 0; }
.card__noimg { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--ink-2); opacity: .5; }
.card__noimg--big { font-size: 5rem; }
.badge { z-index: 1; position: absolute; top: .55rem; left: .55rem; font: 700 .78rem/1 var(--font); padding: .35rem .55rem; border-radius: 8px; }
.badge--off { background: var(--red); color: #ffffff; }
.badge--free { background: var(--green); color: #ffffff; left: auto; right: .55rem; }
.badge--inline { position: static; }
.evdate { z-index: 1; position: absolute; top: .55rem; left: .55rem; background: rgba(255, 255, 255, .94); color: #1c1c1e; border-radius: 10px; padding: .3rem .5rem; text-align: center; font: 700 1.15rem/1 var(--font); min-width: 44px; }
.evdate b { display: block; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: #e5484d; margin-bottom: 2px; }
.card__body { position: relative; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem .95rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .78rem; margin: 0; }
.card__store { font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; }
.tag { display: inline-block; font-size: .75rem; padding: .18rem .5rem; border-radius: 6px; background: var(--fill); color: var(--ink-2); }
a.tag:hover { text-decoration: none; color: var(--ink); }
.tag--time { background: #fdecec; color: var(--red); }
.tag--code { background: var(--green-soft); color: var(--green); }
.card__title { font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.card__title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evwhere { margin: 0; font-size: .85rem; color: var(--ink-2); }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: auto; font-variant-numeric: tabular-nums; }
.price__now { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.price__now--sm { font-size: .95rem; }
.price__now--free { color: var(--green); }
.price__was { color: var(--ink-2); font-size: .9rem; }
.price--big .price__now { font-size: 2rem; }

/* Coupons with one-tap copy */
.coupons { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.coupon-row { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.coupon-row:last-child { border-bottom: 0; }
.coupon-row__info { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.coupon-row__info a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coupon-row code, .coupon code { font: 700 1rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--green); background: var(--green-soft); padding: .45rem .6rem; border-radius: 8px; white-space: nowrap; }
.coupon { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* Explore chips (internal links) */
.explore { margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { padding: .5rem .9rem; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.chips a:hover { text-decoration: none; color: var(--accent); }

/* Listing pages */
.crumbs { font-size: .85rem; color: var(--ink-2); margin: .5rem 0 1rem; }
.crumbs a { color: var(--ink-2); }
.pagehead { margin-bottom: 1rem; }
.pagehead--row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.h1like { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; padding: 1rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .75rem; }
.filters .field { flex: 1 1 140px; }
.count { margin: .5rem 0 1rem; font-size: .9rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.empty { text-align: center; padding: 2.5rem 1rem; background: var(--card); border-radius: var(--radius); }
.empty p { color: var(--ink-2); max-width: 50ch; margin: 0 auto; }
.statelist { list-style: none; padding: 1rem; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .4rem 1rem; background: var(--card); border-radius: var(--radius); }
.statelist a { color: var(--ink); font-size: .95rem; }
.bigsearch { display: flex; gap: .5rem; margin-bottom: 1rem; }
.bigsearch input { flex: 1; min-width: 0; }

/* Detail pages */
.deal { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.deal__media { position: relative; background: var(--fill); border-radius: var(--radius-sm); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; max-width: 100%; min-width: 0; }
.deal__media--wide { aspect-ratio: 16 / 9; }
.deal__media--wide img { object-fit: cover; padding: 0; }
.deal__info { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.deal__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.evfacts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; }
.evfacts dt { font-weight: 600; color: var(--ink-2); font-size: .85rem; padding-top: .15rem; }
.evfacts dd { margin: 0; }
.fineprint { font-size: .82rem; margin: 0; }
.share { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.prose { max-width: 80ch; overflow-wrap: anywhere; background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; }
.pricechart { margin: 0; background: var(--card); border-radius: var(--radius); padding: 1rem; }
.pricechart svg { width: 100%; max-width: 520px; height: auto; }
.pricechart__axis { stroke: var(--line); stroke-width: 1; }
.pricechart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }

/* Info pages and forms */
.narrow { max-width: 880px; margin: 0 auto; }
.card-form { background: var(--card); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.legal { max-width: 920px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: 1.5rem; }
.legal h2 { margin-top: 1.75rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }

/* Footer */
.footer { padding-block: 2rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.footer__simple { display: flex; flex-direction: column; gap: .5rem; }
.footer__brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0; }
.footer__brand b { color: #e5484d; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .92rem; }
.footer__base { font-size: .8rem; }

/* Cookie choice sheet */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); box-shadow: 0 -4px 24px rgba(0, 0, 0, .12); border-radius: 18px 18px 0 0;
  padding: 1rem max(16px, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.consent p { margin: 0; max-width: 70ch; font-size: .9rem; }
.consent__btns { display: flex; gap: .5rem; }

@media (max-width: 1440px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .deal { grid-template-columns: 1fr; }
  .masthead__row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .card__body { padding: .65rem .7rem .8rem; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .placepick .btn { width: 100%; }
  .coupon-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Free membership (name + email) */
.joinbox h1 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.joinform { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; }
.joinform__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.joinform__row .field { flex: 1 1 150px; min-width: 0; }
.joinform__row .field--grow { flex: 2 1 220px; }
.joinform input[type="text"], .joinform input[type="email"] { width: 100%; box-sizing: border-box; }
.joinform .btn { align-self: flex-start; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { margin-top: .2rem; flex: none; }
.joincta { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.joincta h2 { margin: 0 0 .25rem; }
.joincta p { margin: 0; }
.flash--ok { background: var(--green-soft); color: var(--ink); }
.langbtn { flex: none; height: 38px; padding: 0 .8rem; border-radius: 999px; border: 0; background: var(--fill); color: var(--ink); font: 700 .85rem/1 var(--font); cursor: pointer; }
.masthead__row .langbtn { margin-left: auto; }
.masthead__row .langbtn + .icon-btn { margin-left: 0; }
.citylist { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Neighbors' Marketplace */
.card__media--square, .deal__media--square { aspect-ratio: 1 / 1; }
.card__media--square img, .deal__media--square img { object-fit: cover; padding: 0; }
.badge--sell { background: var(--accent); color: #ffffff; }
.badge--free { background: var(--green); color: #ffffff; }
.mcard .badge--free { left: .55rem; right: auto; }
.badge--trade { background: #8e44ad; color: #ffffff; }
.badge--wanted { background: #f59e0b; color: #1c1c1e; }
.mcard .card__body { gap: .25rem; }
.gallery { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--fill); cursor: pointer; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview { display: flex; gap: .5rem; flex-wrap: wrap; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.photo-preview p { flex-basis: 100%; margin: 0; }
.typepick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.typepick legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.typepick__opt { display: flex; align-items: center; gap: .5rem; background: var(--fill); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; font-weight: 600; }
.typepick__opt:has(input:checked) { background: var(--accent-soft); color: var(--accent); }
.joinform textarea, .joinform select, .joinform input[type="file"] { width: 100%; box-sizing: border-box; }
.safety { background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 1.5rem; box-shadow: var(--shadow); }
.safety h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.safety p, .safety li { color: var(--ink-2); font-size: .92rem; }
.safety ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.report { margin-top: .5rem; color: var(--ink-2); font-size: .9rem; }
.report summary { cursor: pointer; }
.report form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
form.inline { display: inline; margin: 0; }
.btn--danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.editbox { margin-top: 1rem; }
.editbox summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.prose--plain { background: transparent; padding: 0; max-width: none; }
.pager { display: flex; gap: .75rem; align-items: center; justify-content: center; margin: 1.25rem 0; }
@media (max-width: 760px) { .typepick { grid-template-columns: 1fr; } }

/* Marketplace: example cards and how-it-works */
.mcard--example { color: inherit; text-decoration: none; position: relative; }
.mcard--example:hover { text-decoration: none; transform: translateY(-1px); }
.mcard--example .card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard--example .card__media { display: grid; place-items: center; }
.example-icon { font-size: clamp(3rem, 9vw, 4.5rem); line-height: 1; }
.badge--example { left: auto; right: .55rem; background: rgba(28, 28, 30, .78); color: #ffffff; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }
.examples .grid { margin-top: .5rem; }
.howto { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.howto li { background: var(--card); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; }
.card-form .howto li { background: var(--fill); box-shadow: none; }
.howto__n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #ffffff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.howto span:not(.howto__n) { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }
.ex-bg--sell { background: #e8eefb; } .ex-bg--free { background: #e6f6ec; } .ex-bg--trade { background: #f1e8fb; } .ex-bg--wanted { background: #fdf1dc; }
:root[data-theme="dark"] .ex-bg--sell, :root[data-theme="dark"] .ex-bg--free, :root[data-theme="dark"] .ex-bg--trade, :root[data-theme="dark"] .ex-bg--wanted { background: var(--fill); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ex-bg--sell, :root:not([data-theme="light"]) .ex-bg--free, :root:not([data-theme="light"]) .ex-bg--trade, :root:not([data-theme="light"]) .ex-bg--wanted { background: var(--fill); } }

/* Home: quick tiles that fill the right side of the intro */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick__tile { display: flex; flex-direction: column; justify-content: space-between; gap: .4rem; min-height: 128px; padding: 1rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.quick__tile:hover { text-decoration: none; transform: translateY(-1px); }
.quick__icon { font-size: 2rem; line-height: 1; }
.quick__label { font-weight: 700; font-size: 1.05rem; }
.quick__sub { color: var(--ink-2); font-size: .85rem; }
.quick__tile--accent { background: var(--accent); color: #ffffff; }
.quick__tile--accent .quick__sub { color: rgba(255, 255, 255, .85); }
@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick__tile { min-height: 104px; }
}
