/* ===== adopt — public layout & components ===== */
/* Scoped under .adopt to avoid clashing with the active theme. */

.adopt{ font-family:'Assistant',system-ui,sans-serif; color:var(--ink); direction:rtl; text-align:right; }
.adopt *{ box-sizing:border-box; }
.adopt .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.adopt a{ color:inherit; text-decoration:none; }

/* ---------- header ---------- */
.adopt-header{
  position:sticky; top:0; z-index:50;
  background:rgba(251,247,240,.9); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.adopt-header .bar{ height:var(--header-h); display:flex; align-items:center; gap:18px; }
.adopt-logo{ display:flex; align-items:center; gap:9px; }
.adopt-logo .mark{
  width:38px;height:38px;border-radius:12px;background:var(--terra);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 3px 10px rgba(224,122,79,.35);
}
.adopt-logo .word{ font-weight:800;font-size:25px;letter-spacing:-.02em;color:var(--ink); }
.adopt-logo .word .dot{ color:var(--terra); }
.adopt-nav{ display:flex; gap:4; margin-inline-start:14px; flex:1; }
.adopt-nav a{
  padding:9px 15px;border-radius:99px;font-weight:700;font-size:15.5px;color:var(--ink-soft);
}
.adopt-nav a:hover{ color:var(--ink); }
.adopt-nav a.active{ background:var(--surface);color:var(--terra-dark);box-shadow:var(--sh-1); }
.adopt-header .actions{ display:flex; gap:10px; align-items:center; }
.adopt-burger{ display:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;width:42px;height:42px;align-items:center;justify-content:center; }

/* ---------- hero / home ---------- */
.adopt-hero{ padding:48px 0 36px; }
.adopt-hero-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.adopt-hero .photo{ aspect-ratio:4/5; border-radius:var(--r-xl); }
.adopt-hero h1{ font-size:clamp(38px,5vw,62px); font-weight:800; letter-spacing:-.02em; line-height:1.04; margin:14px 0 18px; }
.adopt-hero h1 .accent{ color:var(--terra); }
.adopt-hero p.lead{ font-size:19px; color:var(--ink-soft); line-height:1.6; max-width:34ch; }
.adopt-eyebrow-pill{
  display:inline-flex;align-items:center;gap:8px;background:var(--terra-soft);color:var(--terra-dark);
  font-weight:800;font-size:14px;padding:8px 16px;border-radius:var(--r-pill);
}

/* search box on hero */
.adopt-searchbox{ background:var(--surface); border-radius:var(--r-lg); box-shadow:var(--sh-2); padding:14px; margin-top:28px; }
.adopt-seg{ display:flex; gap:8px; margin-bottom:12px; }
.adopt-seg button{
  flex:1;border:none;background:var(--cream-2);color:var(--ink-soft);font-weight:700;font-size:15px;
  padding:13px;border-radius:var(--r-sm);display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.15s;
}
.adopt-seg button.active{ background:var(--terra);color:#fff;box-shadow:0 4px 12px rgba(224,122,79,.3); }
.adopt-searchbox .row2{ display:flex; gap:10px; }
.adopt-searchbox .select{ flex:1; }

.adopt-stats{ display:flex; gap:40px; margin-top:30px; }
.adopt-stats .stat .n{ font-size:30px; font-weight:800; color:var(--ink); }
.adopt-stats .stat .l{ font-size:14px; color:var(--ink-soft); }

/* floating badges over hero photo */
.adopt-hero .photo-wrap{ position:relative; }
.adopt-float{
  position:absolute;background:var(--surface);border-radius:var(--r);box-shadow:var(--sh-2);
  padding:12px 16px;display:flex;align-items:center;gap:10px;font-weight:700;
}
.adopt-float.tl{ top:18px; right:18px; }
.adopt-float.br{ bottom:18px; left:18px; }
.adopt-float .ic{ width:36px;height:36px;border-radius:50%;background:var(--olive-soft);color:var(--olive);display:flex;align-items:center;justify-content:center; }

/* ---------- section heads ---------- */
.adopt-sec{ padding:46px 0; }
.adopt-sechead{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:24px; gap:16px; }
.adopt-sechead h2{ font-size:32px; font-weight:800; letter-spacing:-.02em; }
.adopt-sechead p{ color:var(--ink-soft); margin-top:6px; }

/* ---------- how it works ---------- */
.adopt-steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.adopt-step{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--sh-1); }
.adopt-step .num{ width:42px;height:42px;border-radius:12px;background:var(--terra-soft);color:var(--terra-dark);font-weight:800;display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:14px; }
.adopt-step h3{ font-size:19px;margin-bottom:8px; }
.adopt-step p{ color:var(--ink-soft); line-height:1.55; }

/* ---------- animal grid + cards ---------- */
.adopt-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.adopt-card{
  background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--sh-1);border:1px solid var(--line);
  overflow:hidden;display:flex;flex-direction:column;transition:.18s;
}
.adopt-card:hover{ box-shadow:var(--sh-2); transform:translateY(-2px); }
.adopt-card .media{ position:relative; aspect-ratio:4/3; }
.adopt-card .media .ph{ width:100%;height:100%; }
.adopt-card .media img{ width:100%;height:100%;object-fit:cover; }
.adopt-card .media .status{ position:absolute; top:12px; right:12px; }
.adopt-card .media .type-ic{
  position:absolute;top:12px;left:12px;width:34px;height:34px;border-radius:50%;
  background:rgba(255,253,249,.9);color:var(--terra);display:flex;align-items:center;justify-content:center;box-shadow:var(--sh-1);
}
.adopt-card .body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:11px; flex:1; }
.adopt-card .head{ display:flex; align-items:baseline; justify-content:space-between; }
.adopt-card .head .name{ font-size:21px; font-weight:800; }
.adopt-card .head .added{ font-size:12.5px; color:var(--ink-faint); }
.adopt-card .breed{ color:var(--ink-soft); font-size:14.5px; margin-top:-4px; }
.adopt-card .meta{ display:flex; flex-wrap:wrap; gap:7px; }
.adopt-card .foot{ display:flex; gap:7px; flex-wrap:wrap; margin-top:auto; padding-top:4px; }

/* meta pill with icon */
.adopt-mpill{ display:inline-flex;align-items:center;gap:6px;background:var(--cream-2);color:var(--ink-soft);font-size:13px;font-weight:700;padding:6px 11px;border-radius:var(--r-pill); }
.adopt-mpill svg{ color:var(--gold); }

/* ---------- search page layout ---------- */
.adopt-search-layout{ display:grid; grid-template-columns:1fr 300px; gap:28px; align-items:start; padding:34px 0 60px; }
.adopt-filters{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; box-shadow:var(--sh-1); position:sticky; top:88px; }
.adopt-filters h3{ display:flex; align-items:center; gap:8px; font-size:18px; margin-bottom:6px; }
.adopt-fgroup{ padding:16px 0; border-bottom:1px solid var(--line); }
.adopt-fgroup:last-child{ border-bottom:none; }
.adopt-fgroup .ftitle{ font-size:13px; font-weight:800; color:var(--ink-faint); letter-spacing:.04em; margin-bottom:10px; }
.adopt-segbtns{ display:flex; gap:7px; flex-wrap:wrap; }
.adopt-segbtns button{
  border:1.5px solid var(--line-strong); background:var(--surface); color:var(--ink-soft);
  font-weight:700; font-size:13.5px; padding:8px 14px; border-radius:var(--r-pill); transition:.14s;
}
.adopt-segbtns button.active{ border-color:var(--terra); color:var(--terra-dark); background:var(--terra-soft); }
.adopt-check{ display:flex; align-items:center; gap:9px; padding:6px 0; font-weight:600; font-size:14.5px; cursor:pointer; }
.adopt-check input{ width:18px; height:18px; accent-color:var(--terra); }

.adopt-results-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:14px; }
.adopt-results-head .count b{ font-size:24px; }
.adopt-viewtoggle{ display:flex; gap:4px; background:var(--cream-2); border-radius:var(--r-sm); padding:4px; }
.adopt-viewtoggle button{ border:none; background:none; width:36px; height:34px; border-radius:8px; color:var(--ink-soft); display:flex; align-items:center; justify-content:center; }
.adopt-viewtoggle button.active{ background:var(--surface); color:var(--terra); box-shadow:var(--sh-1); }
.adopt-chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.adopt-chip{ display:inline-flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--line-strong); padding:6px 12px; border-radius:var(--r-pill); font-size:13px; font-weight:700; }
.adopt-chip button{ border:none; background:none; color:var(--ink-faint); display:flex; }

.adopt-empty{ text-align:center; padding:70px 20px; color:var(--ink-soft); }

/* ---------- profile (single animal) ---------- */
.adopt-profile{ display:grid; grid-template-columns:1fr 380px; gap:32px; align-items:start; padding:30px 0 70px; }
.adopt-gallery .main{ aspect-ratio:4/3; border-radius:var(--r-lg); overflow:hidden; }
.adopt-gallery .main img{ width:100%;height:100%;object-fit:cover; }
.adopt-gallery .thumbs{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:10px; }
.adopt-gallery .thumbs .ph,.adopt-gallery .thumbs img{ aspect-ratio:1; border-radius:var(--r-sm); cursor:pointer; object-fit:cover; width:100%; }
.adopt-gallery .thumbs .active{ outline:2px solid var(--terra); }
.adopt-attrs{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:22px 0; }
.adopt-attr{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:14px 16px; }
.adopt-attr .k{ font-size:13px; color:var(--ink-faint); font-weight:700; }
.adopt-attr .v{ font-size:17px; font-weight:800; margin-top:3px; }
.adopt-badges{ display:flex; gap:9px; flex-wrap:wrap; margin:18px 0; }

.adopt-contact-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-2); padding:22px; position:sticky; top:88px; }
.adopt-contact-card .publisher{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.adopt-contact-card .stack{ display:flex; flex-direction:column; gap:10px; }

.adopt-disclaimer{ background:var(--gold-soft); border:1px solid #ecdcb8; border-radius:var(--r); padding:16px 18px; display:flex; gap:12px; margin:20px 0; }
.adopt-disclaimer .ic{ color:var(--gold); flex-shrink:0; }
.adopt-disclaimer .t{ font-size:13.5px; color:#7a6a45; line-height:1.55; }
.adopt-disclaimer b{ color:#5e5132; }

.adopt-checklist{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; margin-top:20px; }
.adopt-checklist h3{ font-size:18px; margin-bottom:14px; }
.adopt-checklist li{ list-style:none; display:flex; align-items:center; gap:10px; padding:8px 0; font-weight:600; }
.adopt-checklist li .ic{ width:26px;height:26px;border-radius:50%;background:var(--olive-soft);color:var(--olive);display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.adopt-checklist ul{ margin:0; padding:0; }

/* ---------- stepper / upload form ---------- */
.adopt-form-wrap{ max-width:760px; margin:0 auto; padding:34px 0 70px; }
.adopt-stepper{ display:flex; gap:8px; margin-bottom:30px; }
.adopt-stepper .step{ flex:1; text-align:center; }
.adopt-stepper .step .bar{ height:6px; border-radius:99px; background:var(--line); margin-bottom:8px; }
.adopt-stepper .step.done .bar,.adopt-stepper .step.active .bar{ background:var(--terra); }
.adopt-stepper .step .lab{ font-size:13px; font-weight:700; color:var(--ink-faint); }
.adopt-stepper .step.active .lab,.adopt-stepper .step.done .lab{ color:var(--terra-dark); }
.adopt-panel{ display:none; }
.adopt-panel.active{ display:block; animation:fadeUp .25s ease; }
.adopt-formgrid{ display:grid; grid-template-columns:1fr 1fr; gap:16px 20px; }
.adopt-formgrid .full{ grid-column:1/-1; }
.adopt-checkgrid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.adopt-form-nav{ display:flex; justify-content:space-between; margin-top:26px; gap:12px; }
.adopt-photo-drop{ border:2px dashed var(--line-strong); border-radius:var(--r-lg); padding:34px; text-align:center; color:var(--ink-soft); background:var(--surface-2); cursor:pointer; }
.adopt-photo-drop:hover{ border-color:var(--terra); }
.adopt-photo-preview{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:14px; }
.adopt-photo-preview img{ aspect-ratio:1; object-fit:cover; border-radius:var(--r-sm); }

/* ---------- alerts ---------- */
.adopt-alert{ border-radius:var(--r); padding:14px 18px; margin-bottom:18px; font-weight:600; }
.adopt-alert.err{ background:var(--terra-soft); color:var(--terra-dark); }
.adopt-alert.ok{ background:var(--olive-soft); color:var(--olive); }

/* ---------- articles ---------- */
.adopt-article-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-1); }
.adopt-article-card .media{ aspect-ratio:16/9; }
.adopt-article-card .body{ padding:18px; }
.adopt-article-card h3{ font-size:19px; margin:8px 0; line-height:1.3; }
.adopt-article-card p{ color:var(--ink-soft); font-size:14.5px; line-height:1.55; }

/* ---------- org cards & dashboard ---------- */
.adopt-org-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:22px; box-shadow:var(--sh-1); }
.adopt-org-card .top{ display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.adopt-org-card .logo{ width:54px;height:54px;border-radius:14px;background:var(--cream-2);display:flex;align-items:center;justify-content:center;color:var(--gold); }
.adopt-dash-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:24px 0; }
.adopt-metric{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; box-shadow:var(--sh-1); }
.adopt-metric .n{ font-size:34px; font-weight:800; }
.adopt-metric .l{ color:var(--ink-soft); font-size:14px; margin-top:2px; }

/* ---------- footer ---------- */
.adopt-footer{ background:var(--ink); color:#cfc7ba; padding:48px 0 30px; margin-top:40px; }
.adopt-footer .cols{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px; }
.adopt-footer h4{ color:#fff; font-size:16px; margin-bottom:14px; }
.adopt-footer a{ display:block; padding:5px 0; color:#cfc7ba; font-size:14.5px; }
.adopt-footer a:hover{ color:#fff; }
.adopt-footer .legal{ border-top:1px solid rgba(255,255,255,.1); margin-top:34px; padding-top:20px; font-size:13px; color:#9a9082; line-height:1.6; }

/* ---------- responsive ---------- */
@media(max-width:980px){
  .adopt-hero-grid{ grid-template-columns:1fr; }
  .adopt-hero .photo-wrap{ order:-1; }
  .adopt-search-layout{ grid-template-columns:1fr; }
  .adopt-filters{ position:static; }
  .adopt-profile{ grid-template-columns:1fr; }
  .adopt-contact-card{ position:static; }
  .adopt-grid,.adopt-steps{ grid-template-columns:repeat(2,1fr); }
  .adopt-dash-grid{ grid-template-columns:repeat(2,1fr); }
  .adopt-footer .cols{ grid-template-columns:1fr 1fr; }
}
@media(max-width:640px){
  .adopt-nav{ display:none; }
  .adopt-burger{ display:flex; }
  .adopt-header.open .adopt-nav{ display:flex; position:absolute; top:var(--header-h); right:0; left:0; flex-direction:column; background:var(--cream); padding:14px; border-bottom:1px solid var(--line); }
  .adopt-grid,.adopt-steps,.adopt-formgrid,.adopt-checkgrid,.adopt-attrs,.adopt-dash-grid{ grid-template-columns:1fr; }
  .adopt-hero h1{ font-size:38px; }
  .adopt-stats{ gap:24px; }
  .adopt-footer .cols{ grid-template-columns:1fr; }
  .adopt-header .actions .btn-line{ display:none; }
}

/* ===== v1.1 — articles, hub, shop, share ===== */

/* 3-col grid helper */
.adopt-grid-3{ grid-template-columns:repeat(3,1fr); }

/* category chips + pager */
.adopt-cats{ display:flex; gap:8px; flex-wrap:wrap; }
.adopt-catchip{ border:1.5px solid var(--line-strong); background:var(--surface); color:var(--ink-soft); font-weight:700; font-size:14px; padding:8px 16px; border-radius:var(--r-pill); }
.adopt-catchip.active,.adopt-catchip:hover{ border-color:var(--terra); color:var(--terra-dark); background:var(--terra-soft); }
.adopt-pager{ display:flex; gap:8px; justify-content:center; margin-top:34px; }
.adopt-page{ min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border-radius:12px; border:1px solid var(--line-strong); background:var(--surface); font-weight:700; }
.adopt-page.active{ background:var(--terra); color:#fff; border-color:var(--terra); }

/* single article */
.adopt-breadcrumbs{ font-size:13.5px; color:var(--ink-faint); display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.adopt-breadcrumbs a{ color:var(--ink-soft); }
.adopt-breadcrumbs a:hover{ color:var(--terra-dark); }
.adopt-breadcrumbs .sep{ color:var(--ink-faint); }
.adopt-article-meta{ display:flex; gap:8px; align-items:center; color:var(--ink-soft); font-size:14.5px; font-weight:600; }
.adopt-article-meta .sep{ color:var(--ink-faint); }
.adopt-article-hero{ aspect-ratio:16/8; border-radius:var(--r-xl); }
.adopt-article-body{ padding:30px 0 10px; font-size:18px; line-height:1.8; color:var(--ink); }
.adopt-article-body h2{ font-size:28px; margin:32px 0 12px; }
.adopt-article-body h3{ font-size:22px; margin:26px 0 10px; }
.adopt-article-body p{ margin:0 0 18px; }
.adopt-article-body img{ border-radius:var(--r-lg); margin:18px 0; }
.adopt-article-body ul,.adopt-article-body ol{ padding-inline-start:22px; margin:0 0 18px; line-height:1.9; }
.adopt-article-body blockquote{ border-inline-start:4px solid var(--terra); background:var(--terra-soft); padding:14px 20px; border-radius:0 var(--r) var(--r) 0; margin:22px 0; }
.adopt-article-body a{ color:var(--terra-dark); text-decoration:underline; }
.adopt-article-foot{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-top:24px; }
.adopt-tags{ display:flex; gap:7px; flex-wrap:wrap; }

/* share */
.adopt-share{ display:flex; align-items:center; gap:9px; }
.adopt-share-label{ display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:14px; color:var(--ink-soft); }
.adopt-share-btn{ width:38px; height:38px; border-radius:50%; border:none; display:inline-flex; align-items:center; justify-content:center; font-weight:800; color:#fff; cursor:pointer; transition:.15s; }
.adopt-share-btn.fb{ background:#1877F2; }
.adopt-share-btn.wa{ background:#1FAE54; }
.adopt-share-btn.tw{ background:#111; }
.adopt-share-btn.link{ background:var(--cream-2); color:var(--ink-soft); }
.adopt-share-btn.link.copied{ background:var(--olive); color:#fff; }
.adopt-share-btn:hover{ transform:translateY(-2px); }

/* adoption hub */
.adopt-hub-hero{ background:linear-gradient(180deg,var(--terra-soft),var(--cream)); padding:54px 0 40px; }
.adopt-hub-hero h1{ font-size:clamp(32px,5vw,52px); margin:14px 0 14px; line-height:1.08; }
.adopt-hub-hero .lead{ font-size:19px; color:var(--ink-soft); line-height:1.7; max-width:60ch; }
.adopt-hub{ padding:36px 0 60px; }
.adopt-hub-body{ max-width:780px; margin:0 auto; font-size:18px; line-height:1.85; }
.adopt-hub-body h2{ font-size:30px; margin:34px 0 12px; }
.adopt-hub-body p{ margin:0 0 18px; color:var(--ink); }
.adopt-hub-cta{ padding:26px; margin:30px 0; background:var(--terra-soft); border:none; }
.adopt-hub-cta h3{ font-size:22px; }

/* FAQ */
.adopt-faq{ margin:14px 0 24px; }
.adopt-faq-item{ border:1px solid var(--line); border-radius:var(--r); padding:4px 18px; margin-bottom:10px; background:var(--surface); }
.adopt-faq-item summary{ cursor:pointer; font-weight:700; font-size:17px; padding:14px 0; list-style:none; }
.adopt-faq-item summary::-webkit-details-marker{ display:none; }
.adopt-faq-item summary::after{ content:'+'; float:left; color:var(--terra); font-weight:800; font-size:22px; line-height:1; }
.adopt-faq-item[open] summary::after{ content:'–'; }
.adopt-faq-item .a{ padding:0 0 16px; color:var(--ink-soft); line-height:1.7; font-size:16px; }

/* products */
.adopt-product-card .media{ aspect-ratio:1; display:block; }
.adopt-product-card .price{ font-weight:800; color:var(--terra-dark); font-size:19px; }
.adopt-product-card .head .name{ font-size:17px; font-weight:700; }

@media(max-width:980px){
  .adopt-grid-3{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:640px){
  .adopt-grid-3{ grid-template-columns:1fr; }
  .adopt-article-foot{ flex-direction:column; align-items:flex-start; }
}
