/* Pawthority - the seven service hubs (/dog-grooming/ and the rest), built by
 * generate-service-hubs.js. Loaded after css/site.css and css/home.css.
 *
 * home.css gives these pages the homepage's hero, its search and .section, .wrap and
 * .btn; this file holds the rest of the layout, from the user's Direction A demo for
 * these pages. Nothing is hidden until scroll and nothing animates in.
 *
 * One rule to a line, in the order of the page.
 */

/* -- Per-service photo position, as on the borough pages (css/borough.css) -- */
.dog-day-care-page .hero-photo img{object-position:40% center}
.pet-boarding-page .hero-photo img{object-position:40% 10%}
.vet-page .hero-photo img{object-position:60% center}

/* -- Sections -- */
.band{background:var(--mist)}
.section h2{font-size:clamp(1.9rem,4vw,2.6rem);max-width:24ch}
.sub{margin-top:.6rem;color:var(--ink-2);max-width:62ch}

/* -- The guide, with "On this page" beside it from 980px -- */
.art{display:grid;gap:2rem;margin-top:1.75rem}
@media (min-width:980px){.art{grid-template-columns:15rem minmax(0,1fr);gap:4rem}}
.toc{align-self:start}
@media (min-width:980px){.toc{position:sticky;top:1.5rem}}
@media (max-width:979px){.toc{display:none}}
.toc p{font-weight:700;font-size:.95rem;margin-bottom:.5rem}
.toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.toc a{display:block;padding:.35rem 0 .35rem .9rem;margin-left:-2px;border-left:2px solid transparent;text-decoration:none;color:var(--ink-2);font-size:.95rem}
.toc a:hover{color:var(--teal-d);border-left-color:var(--teal)}
.prose{max-width:66ch}
.prose h3{font-size:clamp(1.3rem,2.2vw,1.55rem);margin-top:2rem;scroll-margin-top:1.5rem}
.prose h3:first-child{margin-top:0}
.prose p{margin-top:.6rem;color:var(--ink-2);line-height:1.75}

/* -- A price table in the guide (dog walking), styled as the borough pages' (css/borough.css) -- */
.ptable{width:100%;margin-top:1.25rem;border-collapse:separate;border-spacing:0;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 18px 40px -30px rgba(8,59,54,.45)}
.ptable th,.ptable td{padding:.9rem 1.15rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:baseline;font-weight:500}
.ptable td{text-align:right;font-family:var(--serif);font-weight:600;font-size:1.08rem;font-variant-numeric:lining-nums}
.ptable thead th{padding-top:1.1rem;font:700 .86rem/1.4 var(--sans);color:var(--muted)}
.ptable thead th:last-child{text-align:right}
.ptable tbody tr:last-child th,.ptable tbody tr:last-child td{border-bottom:0}
.prose .ptable + p{margin-top:1.25rem}

/* -- The borough list -- */
.blist{list-style:none;margin:1.5rem 0 0;padding:0;columns:4 10rem;column-gap:1.5rem}
.blist li{break-inside:avoid;border-bottom:1px solid var(--line)}
.blist a{display:block;padding:.65rem 0;text-decoration:none;font-weight:500}
.blist a:hover{color:var(--teal-d);text-decoration:underline;text-underline-offset:3px}

/* -- The FAQ -- */
.faq{display:grid;gap:.6rem;max-width:52rem;margin-top:1.5rem}
.faq details{border:1px solid var(--line);border-radius:12px;background:#fff}
.faq details[open],.faq details:hover{border-color:#A9C2BC}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.15rem;font-weight:600;border-radius:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary svg{flex:none}
.faq details[open] summary svg{transform:rotate(45deg)}
.faq details p{padding:0 1.15rem 1.15rem;color:var(--ink-2)}
.faq details p a{color:var(--teal-d);font-weight:600;text-underline-offset:3px}

/* -- Other services -- */
.svcs{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:.75rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:600px){.svcs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){.svcs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.svc{display:block;height:100%;padding:1.1rem 1.2rem;border:1px solid var(--line);border-radius:12px;background:#fff;text-decoration:none;color:inherit;transition:border-color .2s}
.svc:hover{border-color:var(--teal)}
.svc b{display:block;font-family:var(--serif);font-size:1.2rem;font-weight:600}
.svc span{display:block;margin-top:.2rem;color:var(--ink-2);font-size:.95rem}
.svc:hover b{text-decoration:underline;text-underline-offset:3px}

/* -- The closing band -- */
.close .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.25rem 2rem}
.close h2{font-size:clamp(1.7rem,3.4vw,2.2rem);max-width:none}
.close p{margin-top:.4rem;color:var(--ink-2)}

@media (prefers-reduced-motion:reduce){.svc{transition:none}}
