/*
 * SweetCutePets homepage components. They sit inside the SITE's page: they inherit its font, size and line height, and bring only the
 * SweetCutePets palette (orange #F46912, gold #FCB425, deep orange #B53D0A) for buttons, badges and cards. Nothing here styles the theme's
 * header, footer, menus or body: every rule is scoped under .scp-home-section / .scp-home-nav.
 * Contrast (WCAG AA): dark brown #2b1a0e on orange 5.5:1; #B53D0A on white 5.8:1; body ink #3a2416 on white 13:1.
 * Mobile first; 44px touch targets; visible focus; reduced motion respected.
 */
.scp-home-section, .scp-home-nav {
  --scp-orange:#F46912; --scp-orange-deep:#B53D0A; --scp-gold:#FCB425; --scp-ink:#3a2416; --scp-ink-soft:#6b5443; --scp-on-orange:#2b1a0e;
  --scp-cream:#FFF4E8; --scp-line:#F2D9C3; --scp-card:#fff;
  font: inherit; color: inherit; box-sizing: border-box;
}
.scp-home-section *, .scp-home-section *::before, .scp-home-section *::after, .scp-home-nav *, .scp-home-nav *::before, .scp-home-nav *::after { box-sizing: inherit; }
.scp-home-section { padding: 2rem 1rem; }
.scp-home-section[hidden] { display: none; }
.scp-home-inner { max-width: 72rem; margin: 0 auto; }
.scp-home-section.scp-wide { padding-left: 0; padding-right: 0; padding-top: .5rem; } /* a whole-page component lines up with the page's own title (layout.css gives it the width) */
.scp-home-section :focus-visible, .scp-home-nav :focus-visible { outline: 3px solid var(--scp-gold); outline-offset: 2px; box-shadow: 0 0 0 5px var(--scp-ink); }

/* headings and text: sized relative to the theme's own text */
.scp-home-title { margin: 0 0 .5rem; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; font-weight: 800; }
.scp-home-h2 { margin: 0; font-size: clamp(1.35rem, 3.2vw, 1.9rem); line-height: 1.2; font-weight: 800; }
.scp-home-h3 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.3; font-weight: 800; }
.scp-home-lead { margin: 0 0 1.25rem; max-width: 40rem; font-size: 1.15em; line-height: 1.5; }
.scp-home-sub { margin: .35rem 0 1rem; color: var(--scp-ink-soft); max-width: 46rem; }
.scp-home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; }
.scp-home-more { font-weight: 700; color: var(--scp-orange-deep); }
.scp-home-carousel { position: relative; }
.scp-home-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--scp-line); border-radius: 999px; background: var(--scp-card); color: var(--scp-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); cursor: pointer; }
.scp-home-arrow.is-prev { left: -.6rem; }
.scp-home-arrow.is-next { right: -.6rem; }
.scp-home-arrow[hidden] { display: none; }
.scp-home-arrow:hover:not(:disabled) { border-color: var(--scp-orange); color: var(--scp-orange-deep); }
.scp-home-arrow:disabled { opacity: .4; cursor: default; }
.scp-home-arrow:focus-visible, .scp-home-strip:focus-visible { outline: 3px solid var(--scp-orange-deep); outline-offset: 2px; }
.scp-home-icon { width: 1em; height: 1em; flex: none; }
.scp-home-where-toggle { display: none; } /* a design may show the place control as one button that opens the rest */
.scp-home-badge { display: inline-block; width: fit-content; padding: .05rem .6rem; border-radius: 999px; background: #e7f4ea; color: #1b5e2f; font-size: .78rem; font-weight: 800; }
.scp-home-place { display: flex; align-items: center; gap: .3rem; color: var(--scp-ink-soft); font-size: .88rem; }
.scp-home-view { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .92rem; color: var(--scp-orange-deep); }
.scp-home-status { margin: .25rem 0 .75rem; color: var(--scp-ink-soft); min-height: 1.4em; }

/* hero */
.scp-home-hero { background: var(--scp-cream); border-bottom: 1px solid var(--scp-line); padding: 2.5rem 1rem 2.25rem; }
.scp-home-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }

/* buttons */
.scp-home-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: .55rem 1.25rem; border: 2px solid var(--scp-orange); border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.2; }
.scp-home-btn.is-primary { background: var(--scp-orange); color: var(--scp-on-orange); }
.scp-home-btn.is-secondary { background: #fff; border-color: var(--scp-orange-deep); color: var(--scp-orange-deep); }
.scp-home-btn.is-quiet { background: transparent; border-color: var(--scp-line); color: inherit; }
.scp-home-btn[disabled] { opacity: .6; cursor: progress; }

/* where: place control */
.scp-home-where { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .25rem 0 .75rem; }
.scp-home-where input[type="search"] { min-height: 44px; min-width: 14rem; flex: 1 1 14rem; max-width: 24rem; padding: .4rem .75rem; border: 2px solid var(--scp-line); border-radius: 10px; font: inherit; background: #fff; color: var(--scp-ink); }
.scp-home-where .scp-home-current { font-weight: 700; }
.scp-home-places { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }

/* chips */
.scp-home-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .25rem 0 .75rem; }
.scp-home-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .25rem .9rem; border: 2px solid var(--scp-line); border-radius: 999px; background: #fff; color: var(--scp-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.scp-home-chip span { color: var(--scp-ink-soft); font-weight: 600; }
.scp-home-chip.is-on, .scp-home-chip[aria-pressed="true"] { border-color: var(--scp-orange-deep); background: var(--scp-cream); }

/* cards */
.scp-home-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.scp-home-grid.is-four { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.scp-home-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 16rem); gap: 1rem; overflow-x: auto; padding: .25rem .1rem 1rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.scp-home-strip > * { scroll-snap-align: start; }
.scp-home-card { display: flex; flex-direction: column; background: var(--scp-card); color: var(--scp-ink); border: 1px solid var(--scp-line); border-radius: 14px; overflow: hidden; }
.scp-home-card.is-plain { padding: 1rem; }
.scp-home-cardlink { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.scp-home-cardlink:hover .scp-home-cardtitle { text-decoration: underline; }
.scp-home-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--scp-cream); }
.scp-home-nophoto { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; background: var(--scp-cream); color: var(--scp-orange); font-size: 2.5rem; }
.scp-home-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem 1rem; }
.scp-home-cardtitle { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.scp-home-excerpt, .scp-home-meta { color: var(--scp-ink-soft); font-size: .92rem; line-height: 1.4; }
.scp-home-kicker { color: var(--scp-orange-deep); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.scp-home-labels { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.scp-home-label { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 800; border: 1px solid var(--scp-line); background: #fff; color: var(--scp-ink); }
.scp-home-label.is-featured { background: var(--scp-gold); border-color: var(--scp-gold); color: var(--scp-on-orange); }
.scp-home-label.is-verified { background: #e7f4ea; border-color: #b9dfc1; color: #1b5e2f; }
.scp-home-label.is-recommended { background: var(--scp-orange-deep); border-color: var(--scp-orange-deep); color: #fff; }
.scp-home-empty { grid-column: 1 / -1; padding: 1.25rem; border: 2px dashed var(--scp-line); border-radius: 14px; background: #fff; color: var(--scp-ink); }
.scp-home-empty p { margin: 0 0 .75rem; }
.scp-home-strip .scp-home-empty { grid-column: auto; min-width: min(30rem, 86vw); }

/* skeletons: the right size from the first paint, so nothing jumps when the data arrives */
.scp-home-card.is-skeleton { min-height: 17rem; padding-bottom: 1rem; }
.scp-home-card.is-skeleton .scp-home-thumb { background: var(--scp-line); }
.scp-home-line { display: block; height: .8rem; margin: .8rem 1rem 0; border-radius: 6px; background: var(--scp-line); }
.scp-home-line.is-short { width: 55%; }
@media (prefers-reduced-motion: no-preference) {
  .scp-home-card.is-skeleton { animation: scp-home-pulse 1.4s ease-in-out infinite; }
  @keyframes scp-home-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
  .scp-home-btn, .scp-home-chip { transition: filter .15s; }
  .scp-home-btn:hover { filter: brightness(.94); }
}

/* the Pet Life hub's articles use the same grid as the site's category pages: one column, two from 640px, three from 1000px */
.scp-home-life.scp-wide .scp-home-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .scp-home-life.scp-wide .scp-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .scp-home-life.scp-wide .scp-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the platform links as a navigation */
.scp-home-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; list-style: none; margin: 0; padding: 0; }
.scp-home-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 999px; color: inherit; font-weight: 700; text-decoration: none; }
.scp-home-nav a:hover { background: var(--scp-cream); }
.scp-home-nav a.scp-home-btn.is-primary { color: var(--scp-on-orange); }

@media (min-width: 48em) {
  .scp-home-section { padding: 2.75rem 1.5rem; }
  .scp-home-hero { padding: 3.5rem 1.5rem 3rem; }
  .scp-home-strip { grid-auto-columns: minmax(14rem, 17rem); }
}
@media (max-width: 30em) {
  .scp-home-actions .scp-home-btn { flex: 1 1 100%; }
  .scp-home-where input[type="search"] { max-width: none; }
}
