/* Panda Pool Services resource guides — built from the core site palette */
:root {
  --navy: #0b1e3f;
  --navy-deep: #071630;
  --royal: #2563c4;
  --aqua: #3bb8e8;
  --aqua-soft: #7fd4f2;
  --foam: #f2fafd;
  --gold: #f5b93f;
  --gold-deep: #e29a1b;
  --ink: #0b1e3f;
  --muted: #5f718e;
  --display: "Lilita One", "Arial Black", sans-serif;
  --body: "Nunito Sans", "Segoe UI", sans-serif;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #eaf8ff; font-family: var(--body); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 99; padding: 10px 14px; background: var(--gold); color: var(--navy); font-weight: 800; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }

.guide-nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(18px, 4vw, 52px); background: var(--navy-deep); color: var(--foam); }
.guide-brand { display: flex; align-items: center; gap: 11px; color: var(--foam); text-decoration: none; }
.guide-brand img { width: 46px; height: 46px; object-fit: cover; background: #fff; border-radius: 50%; }
.guide-brand strong { display: block; font-family: var(--display); font-size: 1.1rem; letter-spacing: .2px; line-height: 1; }
.guide-brand span { display: block; color: var(--aqua-soft); font-size: .7rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.guide-nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; font-weight: 800; }
.guide-nav__links a { color: var(--foam); opacity: .9; text-decoration: none; }
.guide-nav__links a:hover, .guide-nav__links a:focus-visible { color: var(--gold); opacity: 1; }

.hero-guide { position: relative; min-height: min(620px, 84vh); isolation: isolate; display: grid; align-items: end; overflow: hidden; color: var(--foam); background: var(--navy-deep); }
.hero-guide__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-guide::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(7,22,48,.95) 0%, rgba(7,22,48,.76) 38%, rgba(7,22,48,.20) 74%, rgba(7,22,48,.12) 100%), linear-gradient(0deg, rgba(7,22,48,.72), transparent 56%); }
.hero-guide__content { width: min(100% - 40px, 1150px); margin: 0 auto; padding: 72px 0 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 26px; font-size: .83rem; font-weight: 800; }
.breadcrumbs a { color: var(--aqua-soft); }
.eyebrow { margin: 0 0 13px; color: var(--gold); font-size: .82rem; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.9rem, 7vw, 5.7rem); letter-spacing: .2px; text-shadow: 0 4px 24px rgba(0,0,0,.34); }
.hero-guide__summary { max-width: 660px; margin: 22px 0 30px; font-size: clamp(1.06rem, 2.1vw, 1.28rem); font-weight: 700; line-height: 1.55; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.btn { display: inline-block; border-radius: 999px; padding: 13px 24px; font-family: var(--display); font-size: 1.02rem; letter-spacing: .35px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 7px 24px rgba(245,185,63,.32); }
.btn--gold:hover { background: #ffd067; }
.btn--navy { background: var(--navy); color: var(--foam); }
.btn--navy:hover { background: #16386d; }

.page-shell { width: min(100% - 40px, 1060px); margin: 0 auto; }
.article { padding: 58px 0 0; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 30px; color: var(--muted); font-size: .88rem; font-weight: 800; }
.answer-box { margin: 0 0 42px; padding: 26px 28px; border: 1px solid rgba(37,99,196,.18); border-radius: var(--radius); background: linear-gradient(135deg, #f8fdff, #e4f7ff); box-shadow: 0 14px 35px rgba(7,22,48,.08); }
.answer-box h2 { margin: 0 0 9px; color: var(--royal); font-size: 1.45rem; }
.answer-box p { margin: 0; font-size: 1.05rem; font-weight: 700; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 6vw, 74px); }
.article-copy { min-width: 0; }
.article-copy h2 { margin: 48px 0 14px; font-size: clamp(1.9rem, 3.2vw, 2.75rem); color: var(--navy); }
.article-copy h2:first-child { margin-top: 0; }
.article-copy h3 { margin: 28px 0 10px; color: var(--royal); font-size: 1.35rem; }
.article-copy p { margin: 0 0 18px; }
.article-copy ul, .article-copy ol { margin: 0 0 23px; padding-left: 1.3rem; }
.article-copy li { margin-bottom: 9px; }
.article-copy strong { color: var(--navy); }
.article-copy a { color: #1555aa; font-weight: 800; }
.note { margin: 27px 0; padding: 18px 20px; border-left: 5px solid var(--gold); border-radius: 0 14px 14px 0; background: #fff9e9; color: #4a3714; }
.checklist { margin: 25px 0 30px; padding: 0; list-style: none; }
.checklist li { position: relative; margin-bottom: 11px; padding: 12px 16px 12px 47px; border: 1px solid #d9edf5; border-radius: 14px; background: #fff; }
.checklist li::before { position: absolute; top: 11px; left: 14px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--aqua); color: var(--navy); content: "✓"; font-weight: 900; }
.guide-aside { align-self: start; position: sticky; top: 24px; padding: 24px; border-radius: var(--radius); background: var(--navy); color: var(--foam); box-shadow: 0 16px 35px rgba(7,22,48,.22); }
.guide-aside h2 { margin: 0 0 14px; color: var(--aqua-soft); font-size: 1.55rem; }
.guide-aside p { margin: 0 0 17px; }
.guide-aside .small { color: rgba(242,250,253,.72); font-size: .83rem; line-height: 1.5; }
.guide-aside .btn { width: 100%; text-align: center; }

.faq-area { margin-top: 70px; padding: 56px 0 74px; border-top: 1px solid #cde8f2; }
.faq-area h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(2.1rem, 4vw, 3.2rem); }
.faq-intro { max-width: 730px; margin: 0 0 25px; color: var(--muted); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.faq details { padding: 0 20px; border: 1px solid #cfe9f4; border-radius: 16px; background: #fff; }
.faq summary { padding: 19px 28px 19px 0; position: relative; color: var(--navy); cursor: pointer; font-weight: 900; line-height: 1.38; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 17px; right: 0; color: var(--royal); content: "+"; font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 20px; color: #38516d; }

.related { padding: 62px 0 72px; background: var(--navy-deep); color: var(--foam); }
.related__inner { width: min(100% - 40px, 1060px); margin: 0 auto; }
.related h2 { margin: 0 0 22px; font-size: clamp(2rem, 4vw, 3.2rem); }
.related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related-card { display: flex; min-height: 185px; overflow: hidden; border: 1px solid rgba(127,212,242,.26); border-radius: var(--radius); background: rgba(242,250,253,.08); color: var(--foam); text-decoration: none; }
.related-card img { width: 38%; object-fit: cover; }
.related-card__body { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 22px; }
.related-card p { margin: 0 0 6px; color: var(--gold); font-weight: 900; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; }
.related-card h3 { margin: 0; font-size: 1.55rem; }
.related-card span { margin-top: 10px; color: var(--aqua-soft); font-size: .9rem; font-weight: 900; }

.guides-hero { background: radial-gradient(circle at 72% 18%, rgba(59,184,232,.32), transparent 27%), linear-gradient(150deg, var(--navy-deep), var(--royal)); }
.guides-hero::after { background: linear-gradient(0deg, rgba(7,22,48,.6), transparent 65%); }
.guides-hero__content { max-width: 1060px; }
.guide-hub { padding: 62px 0 74px; }
.hub-intro { max-width: 760px; margin: 0 0 40px; color: #38516d; font-size: 1.08rem; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.hub-card { overflow: hidden; border: 1px solid #d0e8f1; border-radius: var(--radius); background: #fff; box-shadow: 0 16px 35px rgba(7,22,48,.10); }
.hub-card img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; }
.hub-card__body { padding: 26px; }
.hub-card__body .eyebrow { margin-bottom: 9px; color: var(--royal); font-size: .72rem; letter-spacing: 2px; }
.hub-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 2rem; }
.hub-card p { margin: 0 0 20px; color: #3c5673; }

.footer { padding: 38px 20px 44px; background: #041024; color: var(--foam); text-align: center; }
.footer img { width: 52px; height: 52px; margin: 0 auto 13px; border-radius: 50%; background: #fff; }
.footer p { margin: 0; color: rgba(242,250,253,.72); font-size: .88rem; }
.footer a { color: var(--aqua-soft); font-weight: 800; }

@media (max-width: 800px) {
  .guide-nav { align-items: flex-start; }
  .guide-nav__links { justify-content: flex-end; gap: 8px 14px; text-align: right; }
  .article-grid { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
  .faq, .hub-grid, .related__grid { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  .guide-nav { padding: 11px 16px; }
  .guide-brand strong { font-size: .96rem; }
  .guide-nav__links { font-size: .79rem; }
  .hero-guide { min-height: 590px; }
  .hero-guide__content, .page-shell { width: min(100% - 32px, 1060px); }
  .hero-guide__content { padding: 58px 0 58px; }
  .answer-box { padding: 22px 20px; }
  .article { padding-top: 42px; }
  .article-copy h2 { margin-top: 38px; }
  .related-card { min-height: 0; }
  .related-card img { width: 34%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
