/* Additions on top of the original site.css (kept byte-identical to the live build). */

/* Site-wide font: A2B Awesome (core_assets/software_assets/a2b_font_awesome; licence beside the font file).
   The clean twin of the possum headline font: same letter shapes, one flat colour. Replaced the pixel A2B Font
   on 2026-11-12 (Owen), which is why the pixel-font smoothing switches below are gone. */
@font-face {
  font-family: "A2B Awesome";
  src: url("/fonts/A2BAwesome-Regular.woff2") format("woff2"), url("/fonts/A2BAwesome-Regular.woff") format("woff");
  font-display: swap;
}
:root { --font-site: "A2B Awesome", "Trebuchet MS", "Segoe UI", sans-serif; }
body {
  font-kerning: none;
  font-variant-ligatures: none;
}

/* Text size (Owen, 2026-11-11: "a bit too small overall"). site.css sizes every font in rem, and every
   size in this file is rem too, so this one setting scales all text evenly while spacing stays the same.
   Base 20 px on computers/tablets (was the browser default 16 px), 18 px on phones so long words still fit.
   Percentages (not px) so a visitor's own browser text-size setting still applies on top. */
/* Raised 2026-11-12 (22 px), and again later that day (Owen: "too small, especially on desktop"):
   24 px on computers, 22 px on tablets, 20 px on phones. */
html { font-size: 150%; }
@media (max-width: 1040px) { html { font-size: 137.5%; } }
@media (max-width: 720px) { html { font-size: 125%; } }

/* ---------- A2B Awesome Possums: the headline font ----------
   Owen's possum font (core_assets/software_assets/a2b_font_awesome_possums; licence beside the font file).
   The colour version: mossy branches with little possums on them. It is drawn on a 192 px grid, so the possums
   only read at big sizes, and these sizes are in px on purpose (the one exception to this file's rem rule):
   the page's text-size setting must not shrink or blur them.

   THE RULE (2026-11-12, second pass): one possum headline per section, and nothing else.
     - the brand name at the top of the homepage (class="possum-title"): 96 px
     - the headline of every section and page (the h1/h2 in .hero-copy, .section-heading, .sell-card, .drop-card): 72 px
   The small label above a headline, card titles, and all body text stay in A2B Awesome.
   Keep headlines short (about 45 characters): at 72 px a line holds roughly 30. */
@font-face {
  font-family: "A2B Awesome Possums";
  src: url("/fonts/A2BAwesomePossums-Color.woff2") format("woff2"),
       url("/fonts/A2BAwesomePossums-Regular.woff2") format("woff2");
  font-display: block;
}
.possum-title,
.hero-copy h1,
.section-heading h1, .section-heading h2,
.sell-card h2 {
  font-family: "A2B Awesome Possums", "A2B Awesome", sans-serif;
  font-size: 72px;
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-kerning: none;
  font-variant-ligatures: none;
  color: #5b3d22;                 /* bark brown, for the moment before the colour font arrives */
  margin: 0 0 16px;
  text-wrap: balance;
  overflow-wrap: normal;
}
.possum-title { font-size: 96px; margin-bottom: 14px; }
.hero-copy h1 { font-size: 64px; }           /* shares the hero with the brand name, in a narrower column */
.section-heading { max-width: none; }
@media (max-width: 1040px) {
  .possum-title { font-size: 72px; }
  .hero-copy h1, .section-heading h1, .section-heading h2, .sell-card h2 { font-size: 56px; }
}
@media (max-width: 720px) {
  .possum-title { font-size: 56px; }
  .hero-copy h1, .section-heading h1, .section-heading h2, .sell-card h2 { font-size: 44px; }
}

/* Main reading text: 1rem, i.e. the base size above. */
.hero-lead { font-size: 1rem; line-height: 1.55; }

.lightbox[hidden] { display: none !important; }

/* ---------- Photo drop page ---------- */
html { min-height: 100%; }
body { min-height: 100vh; }
.drop-shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 48px; }
/* Big, readable text: this page is used by seniors on phones. Sizes sit on the 16 px font grid. */
.drop-card p, .drop-card label, .drop-card .drop-small, .drop-status { font-size: 1rem; line-height: 1.5; font-weight: 400; }
.drop-card .eyebrow { font-size: 1rem; }
.drop-card h1 { font-size: 2rem; }
.drop-card .button { font-size: 1rem; padding: 14px 22px; }
.drop-card {
  margin-top: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--paper); box-shadow: var(--shadow);
}
.drop-card h1 { margin: 6px 0 10px; line-height: 1.15; }
.drop-card p { color: var(--muted); line-height: 1.55; }
.drop-field { display: grid; gap: 8px; margin: 18px 0; }
.drop-field label { font-weight: 700; }
.drop-field input[type="text"], .drop-field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper-strong); color: var(--ink); font-size: 1.05rem;
}
.drop-field input.code-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.drop-picker {
  display: grid; place-items: center; gap: 6px; padding: 30px 18px; text-align: center;
  border: 2px dashed rgba(163, 81, 47, .45); border-radius: var(--radius-lg); background: var(--paper-strong);
  cursor: pointer;
}
.drop-picker strong { font-size: 1.15rem; color: var(--accent-deep); }
.drop-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 14px; }
.drop-thumbs figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--accent-soft); }
.drop-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.drop-thumbs figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2px 4px; font-size: .72rem; text-align: center;
  background: rgba(32, 24, 20, .7); color: #fff;
}
.drop-thumbs figure.is-done figcaption { background: rgba(80, 110, 60, .85); }
.drop-thumbs figure.is-error figcaption { background: rgba(150, 40, 30, .9); }
.drop-status { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--ink); }
.drop-status.is-error { background: #f4d4cc; }
.drop-status.is-ok { background: #dfe6d3; }
.drop-progress { height: 10px; margin-top: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.drop-progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.drop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.drop-actions .button[disabled] { opacity: .5; cursor: not-allowed; }
.drop-small { font-size: .9rem; }
.footer-link { color: inherit; opacity: .7; }

/* Pricing agent link (drop page) + attached price note */
.helper-card, .price-note {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
  margin: 18px 0 4px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-strong);
}
.helper-card > div, .price-note > div { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.helper-card strong, .price-note strong { font-size: 1.05rem; color: var(--accent-deep); }
.price-note { background: #e6ecda; border-color: #c6d1b0; }

/* ---------- Pricing agent (/agent) ---------- */
.chat-log { display: grid; gap: 12px; margin: 18px 0 8px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; font-size: 1rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me { justify-self: end; background: var(--accent-soft); color: var(--ink); border-bottom-right-radius: 6px; }
.msg.helper { justify-self: start; background: var(--paper-strong); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 6px; }
.msg.helper.is-thinking { color: var(--muted); font-style: italic; }
.msg img { display: block; max-width: 160px; border-radius: 10px; margin-bottom: 6px; }
.chat-box { display: grid; gap: 10px; margin-top: 12px; }
.chat-box textarea {
  width: 100%; min-height: 84px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper-strong); color: var(--ink); font-size: 1.05rem; font-family: inherit; resize: vertical;
}
.chat-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chat-photo-btn { position: relative; overflow: hidden; }
.chat-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-pending { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-pending img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.note-card { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--radius-lg); background: #e6ecda; border: 1px solid #c6d1b0; }
.note-card h2 { margin: 0; font-size: 1.2rem; color: var(--accent-deep); }
.note-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 1rem; }
.note-card dt { font-weight: 700; }
.note-card dd { margin: 0; }

/* ---------- Shop ---------- */
.site-nav a[aria-current="page"] { background: var(--accent-soft); }
.shop-terms { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.shop-empty { font-size: 1rem; color: var(--muted); padding: 24px 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.shop-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-strong); box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.shop-card:hover { transform: translateY(-3px); }
.shop-card.is-sold { opacity: .6; }
.shop-photo { position: relative; aspect-ratio: 1; background: var(--accent-soft); }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.shop-card-body strong { font-size: 1rem; line-height: 1.3; }
.shop-price { font-size: 1rem; font-weight: 700; color: var(--accent-deep); }
.shop-meta { font-size: 1rem; color: var(--muted); }
.shop-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  color: #fff; background: var(--sage); vertical-align: middle;
}
.shop-photo .shop-badge { position: absolute; top: 10px; left: 10px; }
.shop-badge.is-sold { background: var(--accent-deep); }
.item-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.item-photos { display: grid; gap: 12px; }
.item-photos img { width: 100%; border-radius: var(--radius-lg); background: var(--accent-soft); }
.item-info h1 { margin: 6px 0 8px; font-size: 2rem; line-height: 1.2; }
.item-price { margin: 0 0 8px; font-size: 2rem; font-weight: 700; color: var(--accent-deep); }
.item-desc p { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.item-back { margin: 18px 0 0; }
.inquiry-form { display: grid; gap: 14px; max-width: 620px; }
.inquiry-form label { display: grid; gap: 6px; font-size: 1rem; font-weight: 700; }
.inquiry-form input, .inquiry-form textarea {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-strong);
  color: var(--ink); font-size: 1rem; font-weight: 400;
}
.inquiry-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-form .button { justify-self: start; font-size: 1rem; }
.home-shop-cta { margin-top: 18px; }

/* ---------- The Possum Marketplace ---------- */
.market-lead { max-width: 760px; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.market-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.market-steps article {
  display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper-strong);
}
.market-steps strong { font-size: 1rem; }
.market-steps span { font-size: 1rem; line-height: 1.45; color: var(--muted); }
.market-steps .market-step-n {
  display: inline-grid; place-items: center; width: 2em; height: 2em; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
}
.market-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.market-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.market-chip {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong);
  color: var(--ink); font-size: 1rem; cursor: pointer;
}
.market-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.market-count { font-size: 1rem; color: var(--muted); }
.market-crumb { font-size: 1rem; color: var(--muted); margin: 0 0 14px; }
.market-crumb a { color: var(--accent-deep); }
.market-preview { margin-top: 14px; }
.sell-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sell-card h2 { margin: 6px 0 10px; }
.sell-card p { font-size: 1rem; line-height: 1.6; }
.sell-contact {
  display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper-strong);
}
.sell-email { font-size: 1rem; font-weight: 700; color: var(--accent-deep); word-break: break-all; }
.sell-contact .button { justify-self: start; font-size: 1rem; }
.item-info .button { margin-top: 6px; font-size: 1rem; }
@media (max-width: 760px) {
  .market-steps, .sell-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .item-layout { grid-template-columns: 1fr; } }

/* ---------- Client status page (/my) ---------- */
.my-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px; }
.my-tile { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-strong); }
.my-tile span { font-size: .9rem; color: var(--muted); }
.my-tile strong { font-size: 1.5rem; color: var(--accent-deep); }
.my-balance { grid-column: 1 / -1; margin: 4px 0 0; font-weight: 700; color: var(--ink) !important; }
.my-items { display: grid; gap: 10px; margin: 16px 0; }
.my-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.my-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.my-item-head a, .my-item-head strong { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.my-item p { margin: 6px 0 0; }
.my-state { font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.my-state.is-for-sale, .my-state.is-pickup-being-arranged { background: #dfe6d3; }
.my-state.is-sold { background: var(--accent-deep); color: #fff; }
@media (max-width: 520px) { .my-summary { grid-template-columns: 1fr; } }

/* Homepage: 7 service cards and 5 price cards leave one alone on the last row; let it span the row. */
.service-grid > .service-card:last-child { grid-column: 1 / -1; }


/* ---------- Homepage: bigger tech projects (added 2026-11-12) ---------- */
/* Pricing: four hourly cards on the first row, then Selling help and Bigger tech projects side by side. */
@media (min-width: 1041px) { .pricing-grid > .price-card-wide { grid-column: span 2; } }
.price-terms { margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 8px; line-height: 1.5; color: var(--muted); font-size: .95rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.project-card { background: var(--paper-strong); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px;
  display: grid; gap: 8px; align-content: start; }
.project-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.2; color: var(--accent-deep); }
.project-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }
@media (max-width: 1040px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- Homepage: partners (added 2026-11-12) ----------
   One card per partner. auto-fit means a third or fourth card just takes its place. */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-top: 16px; }
.partner-card { background: var(--paper-strong); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.partner-logo { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 22px rgba(77, 48, 28, .16); }
.partner-initials { display: grid; place-items: center; background: var(--accent); color: #fff7ef; font-weight: 700; font-size: 2.2rem; letter-spacing: .02em; }
.partner-body { display: grid; gap: 8px; min-width: 0; }
.partner-kind { margin: 0; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.partner-body h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.partner-body p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .97rem; }
.partner-body p a { color: var(--accent-deep); font-weight: 700; }
.partner-link { justify-self: start; font-weight: 700; color: var(--accent-deep); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .partner-card { grid-template-columns: 1fr; }
  .partner-logo { width: 5.5rem; height: 5.5rem; }
}

/* Cloudflare "I'm human" check under the code field (/drop, /agent) */
.human-box { margin: 14px 0 4px; min-height: 65px; }

/* Possum headline on the single-card pages (/drop, /agent, /my): placed last so it wins over the older
   .drop-card h1 rules further up. */
.drop-card > h1 {
  font-family: "A2B Awesome Possums", "A2B Awesome", sans-serif; font-weight: 400; letter-spacing: 0; font-kerning: none;
  color: #5b3d22; text-wrap: balance; font-size: 56px; line-height: 1.04; margin: 6px 0 14px;
}
@media (max-width: 1040px) { .drop-card > h1 { font-size: 48px; } }
@media (max-width: 720px) { .drop-card > h1 { font-size: 44px; } }

/* Bigger text needs a little more room on wide screens (was 1200 px). */
@media (min-width: 1041px) { .site-shell { width: min(1360px, calc(100% - 40px)); } }

/* Phones: with the bigger text the header is tall, so it scrolls away with the page instead of staying pinned
   over a third of the screen. */
@media (max-width: 720px) { .site-header { position: static; } }

/* =====================================================================================================
   2026-11-12 (third pass): the site split into pages (Home, Services & Pricing, Contact, Marketplace),
   one contact form, and the Marketplace polish (search, sort, photo gallery, ribbons, page transitions).
   ===================================================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-deep); text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }

/* Pages cross-fade into each other where the browser supports it; everywhere else they just load. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Sections ease in as they scroll into view (assets/app.js adds .reveal only when motion is welcome). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Footer menu */
.site-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center; }
.site-footer-nav a { color: inherit; font-weight: 700; text-decoration: none; }
.site-footer-nav a:hover { text-decoration: underline; }

/* Home: the eight "what we do" tiles, each a link into the Services page */
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.mini-card {
  display: grid; gap: 6px; align-content: start; padding: 18px 20px; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-strong);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.mini-card strong { font-size: 1.05rem; line-height: 1.2; color: var(--accent-deep); }
.mini-card span { font-size: .92rem; line-height: 1.45; color: var(--muted); }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
@media (max-width: 1040px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mini-grid { grid-template-columns: 1fr; } }

/* Closing "send us a message" band */
.cta-band { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.cta-band > div { flex: 1 1 420px; min-width: 0; display: grid; gap: 6px; }
.cta-band h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.cta-band p { margin: 0; color: var(--muted); line-height: 1.55; }
.cta-band .button { font-size: 1rem; }

/* Services page: jump links under the headline */
.page-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.page-jump a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong);
  color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem;
}
.page-jump a:hover { border-color: var(--accent); color: var(--accent-deep); }
.service-card[id], #projects, #pricing, #service-area, #faq { scroll-margin-top: calc(var(--header-offset, 0px) + 16px); }
.service-card:target { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.contact-form {
  max-width: none; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-xl);
  background: var(--paper); box-shadow: var(--shadow);
}
.inquiry-form select {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-strong);
  color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; width: 100%;
}
.inquiry-form textarea { font-family: inherit; resize: vertical; }
.inquiry-form input:focus, .inquiry-form textarea:focus, .inquiry-form select:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-side { display: grid; gap: 14px; }
.contact-side .contact-card { display: grid; gap: 8px; }
.contact-side .contact-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.contact-side .contact-card p { margin: 0; line-height: 1.55; }
.reason-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reason-list button {
  width: 100%; text-align: left; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--paper-strong); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.reason-list button:hover { border-color: var(--accent); transform: translateX(3px); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .contact-layout, .faq-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form { padding: 18px; } }

/* Marketplace: search + sort row */
.market-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.market-tools[hidden] { display: none; }
.market-search { flex: 1 1 320px; min-width: 0; }
.market-search input, .market-sort select {
  width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-strong);
  color: var(--ink); font: inherit; font-size: 1rem;
}
.market-sort { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.market-sort select { width: auto; }
.market-search input:focus, .market-sort select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Cards: lift, photo eases in a touch, ribbons */
.shop-card { transition: transform .18s ease, box-shadow .18s ease; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(77, 48, 28, .18); }
.shop-photo { overflow: hidden; }
.shop-photo img { transition: transform .35s ease; }
.shop-card:hover .shop-photo img { transform: scale(1.04); }
.shop-badge.is-new { background: var(--accent); }
.shop-badge.is-pending { background: var(--sage); }
@media (prefers-reduced-motion: reduce) {
  .shop-card, .shop-photo img, .mini-card, .reason-list button { transition: none; }
  .shop-card:hover, .mini-card:hover { transform: none; }
  .shop-card:hover .shop-photo img { transform: none; }
}

/* Item page: photo gallery. The track is ordinary sideways scrolling with snap points, so swiping works on every
   phone and tablet without any script; the script only adds arrows, thumbnails and the enlarged view. */
.gallery { position: relative; min-width: 0; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg); background: var(--accent-soft); scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 0; border: 0; background: none; cursor: zoom-in;
  display: grid; place-items: center; aspect-ratio: 1; min-width: 0;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
.gallery-arrow {
  position: absolute; top: calc(50% - 1.4rem); width: 2.8rem; height: 2.8rem; display: grid; place-items: center; padding: 0 0 .15em;
  border: 0; border-radius: 999px; background: rgba(255, 250, 243, .92); color: var(--ink); font-size: 1.8rem; line-height: 1;
  box-shadow: 0 6px 18px rgba(32, 24, 20, .22); cursor: pointer;
}
.gallery-arrow.is-prev { left: 10px; }
.gallery-arrow.is-next { right: 10px; }
.gallery-dots { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; }
.gallery-dots button {
  flex: 0 0 4.2rem; height: 4.2rem; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: var(--accent-soft); cursor: pointer; opacity: .7;
}
.gallery-dots button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery-dots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.item-info { position: sticky; top: calc(var(--header-offset, 0px) + 16px); }
@media (max-width: 760px) { .item-info { position: static; } }

.zoom-box { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto 1fr; background: rgba(24, 18, 14, .96); }
.zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #fff7ef; font-size: .9rem; }
.zoom-hint { opacity: .75; }
.zoom-bar button {
  padding: 8px 18px; border: 0; border-radius: 999px; background: #fff7ef; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.zoom-stage { overflow: auto; display: grid; place-items: center; min-height: 0; overscroll-behavior: contain; }
.zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.zoom-stage.is-zoomed { place-items: start; }
.zoom-stage.is-zoomed img { max-width: none; max-height: none; width: 220%; cursor: zoom-out; }
@media (min-width: 900px) { .zoom-stage.is-zoomed img { width: 160%; } }
@media (max-width: 720px) { .zoom-hint { display: none; } }

/* Links inside running text follow the site colours instead of the browser's blue. */
.market-lead a, .shop-terms a, .contact-card p a, .faq-item p a, .service-card li a { color: var(--accent-deep); font-weight: 700; }

/* Homepage logo card: the picture is square and must stay square (a fixed height on the tag once squashed it),
   and it is larger than the original 240 px. */
.crest-card img { width: min(340px, 84%); height: auto; aspect-ratio: 1 / 1; object-fit: contain; align-self: center; }
.brand img { object-fit: contain; }

.partner-body .partner-note { font-size: .85rem; margin-top: -4px; }

/* Upload page: the name field, and the agreed-price card (2026-11-13) */
.drop-field input[type="text"].is-missing { outline: 3px solid #b3402e; outline-offset: 1px; }
.price-note > div > span { display: block; }
.price-note .link-button { align-self: flex-start; font-size: .95rem; }

/* Forms: a small note under a field (2026-11-16) */
.inquiry-form .field-note { font-size: .9rem; font-weight: 400; color: var(--muted); }

/* Messages: our agent's replies, kept only in this browser (assets/inbox.js, 2026-11-16) */
.ap-inbox-btn { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border: 0; border-radius: 999px; background: var(--wood, #543924); color: #fbf3e4; font: inherit; font-weight: 700;
  box-shadow: 0 8px 22px rgba(40, 26, 17, .28); cursor: pointer; }
.ap-inbox-btn .n { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #2a562c; font-size: .85rem; text-align: center; }
.ap-inbox-btn .n[hidden] { display: none; }
.ap-inbox { position: fixed; right: 16px; bottom: 76px; z-index: 41; width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 560px);
  overflow: auto; padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 18px 48px rgba(40, 26, 17, .28); }
.ap-inbox[hidden] { display: none; }
.ap-inbox h2 { margin: 0 0 4px; font-size: 1.15rem; }
.ap-inbox .ap-inbox-note { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.ap-inbox article { padding: 12px 14px; margin-top: 10px; border-radius: 16px; background: var(--tile, #f6f2ea); }
.ap-inbox article strong { display: block; }
.ap-inbox article time { font-size: .82rem; color: var(--muted); }
.ap-inbox article p { margin: 8px 0 0; white-space: pre-wrap; line-height: 1.5; font-size: .98rem; }
.ap-inbox .ap-inbox-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ap-inbox .link-button { font-size: .92rem; }
@media print { .ap-inbox-btn, .ap-inbox { display: none; } }
