/* =====================================================================
   SOLAR HARBOUR – guides (guides.php and guide-*.php). Navy #18457b + gold #f8bc2d.
   Everything is scoped to .sh-gd so it can't affect other pages.
   ===================================================================== */
.sh-gd {
  --gd-navy: #18457b; --gd-navy-dk: #0e2c52; --gd-gold: #f8bc2d; --gd-gold-lt: #fff6dc;
  --gd-ink: #18457b; --gd-text: #2c4566; --gd-muted: #5b7396; --gd-tint: #eef2f8; --gd-line: #dde4ee;
  --gd-radius: 18px;
  color: var(--gd-ink); line-height: 1.65; overflow-x: clip;
}
/* Resets. ".sh-gd :where(...)" counts as one class: enough to beat the theme and Bootstrap
   (which indent lists and add margins to p, h1-h6, ul and address), but no more than the
   component classes below, which come later in this file and therefore win. */
.sh-gd, .sh-gd *, .sh-gd *::before, .sh-gd *::after { box-sizing: border-box; }
.sh-gd :where(h1, h2, h3, h4, p, ul, ol, li, table, figure, address, blockquote, dl, dd) { margin: 0; }
.sh-gd :where(ul, ol) { padding: 0; list-style: none; }
.sh-gd :where(a) { color: inherit; }
.sh-gd :where(summary) { display: block; }
.sh-gd :where(table) { border-collapse: collapse; }
.sh-gd__wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 575px) { .sh-gd__wrap { padding: 0 16px; } }

.sh-gd__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background-color .2s ease; }
.sh-gd__btn:hover { transform: translateY(-2px); text-decoration: none; }
.sh-gd__btn--gold { background: var(--gd-gold); color: var(--gd-navy); box-shadow: 0 10px 24px -12px rgba(248,188,45,.8); }
.sh-gd__btn--gold:hover { background: #ffc93f; color: var(--gd-navy); }
.sh-gd a:focus-visible, .sh-gd summary:focus-visible { outline: 3px solid var(--gd-gold); outline-offset: 3px; }

/* reading progress */
.sh-gd__progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 1000; pointer-events: none; }
.sh-gd__progress span { display: block; height: 100%; background: var(--gd-gold); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- banner ---------- */
.sh-gd__banner { position: relative; overflow: hidden; color: #fff; padding: clamp(44px, 6vw, 80px) 0 clamp(48px, 7vw, 88px);
  background: radial-gradient(120% 90% at 85% 10%, #22578f 0%, var(--gd-navy) 45%, var(--gd-navy-dk) 100%); }
.sh-gd__banner::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%); }
.sh-gd__sun { position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(248,188,45,.5) 0%, rgba(248,188,45,.16) 40%, rgba(248,188,45,0) 70%); }
.sh-gd__banner-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sh-gd__banner--hub .sh-gd__wrap { position: relative; }
.sh-gd__crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: rgba(255,255,255,.75); margin-bottom: 16px; }
.sh-gd__crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255,255,255,.45); }
.sh-gd__crumbs a { color: #fff; font-weight: 700; text-decoration: none; }
.sh-gd__crumbs a:hover { color: var(--gd-gold); }
.sh-gd__kicker { font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-gold); margin-bottom: 10px; }
.sh-gd__title { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; max-width: 22ch; }
.sh-gd__rule { display: block; width: 72px; height: 5px; border-radius: 3px; background: var(--gd-gold); margin: 20px 0; }
.sh-gd__lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: rgba(255,255,255,.88); max-width: 60ch; }
.sh-gd__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.72); }
.sh-gd__meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gd-gold); margin-right: 18px; vertical-align: middle; }

.sh-gd__facts { position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--gd-radius); padding: 22px 24px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sh-gd__facts-title { font-weight: 800; color: #fff; margin-bottom: 6px; }
.sh-gd__facts li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.sh-gd__facts b { display: block; font-size: 1.45rem; line-height: 1.2; color: var(--gd-gold); font-weight: 800; }
.sh-gd__facts li span { display: block; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.4; }
.sh-gd__facts-note { margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,.62); }

/* ---------- body ---------- */
.sh-gd__body { background: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.sh-gd__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sh-gd__toc { position: sticky; top: 110px; padding: 20px; border-radius: 14px; background: var(--gd-tint); border: 1px solid var(--gd-line); }
.sh-gd__toc-title { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-muted); margin-bottom: 8px; }
.sh-gd__toc li a { display: block; padding: 7px 0 7px 12px; border-left: 3px solid transparent; color: var(--gd-text); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.sh-gd__toc li a:hover { color: var(--gd-navy); border-left-color: var(--gd-line); }
.sh-gd__toc li a[aria-current] { color: var(--gd-navy); font-weight: 800; border-left-color: var(--gd-gold); }
.sh-gd__toc-cta { margin-top: 16px; width: 100%; }

.sh-gd__doc { max-width: 780px; color: var(--gd-text); font-size: 1.05rem; }
.sh-gd__sec { scroll-margin-top: 110px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--gd-line); }
.sh-gd__sec:last-of-type { border-bottom: 0; }
.sh-gd__sec > h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; font-weight: 800; color: var(--gd-navy); margin-bottom: 14px; }
.sh-gd__sec h3 { font-size: 1.15rem; font-weight: 800; color: var(--gd-navy); margin: 26px 0 8px; }
.sh-gd__sec p + p, .sh-gd__sec p + .sh-gd__list, .sh-gd__sec .sh-gd__list + p, .sh-gd__sec .sh-gd__table-wrap + p, .sh-gd__sec p + .sh-gd__table-wrap, .sh-gd__sec p + .sh-gd__callout, .sh-gd__sec .sh-gd__callout + p, .sh-gd__sec p + .sh-gd__formula, .sh-gd__sec .sh-gd__formula + p, .sh-gd__sec .sh-gd__split + p, .sh-gd__sec .sh-gd__steps + .sh-gd__cta, .sh-gd__sec .sh-gd__list + .sh-gd__cta, .sh-gd__sec p + .sh-gd__split { margin-top: 14px; }
.sh-gd__doc a { color: var(--gd-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gd-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sh-gd__doc a:hover { text-decoration-color: var(--gd-navy); }
.sh-gd__doc strong, .sh-gd__doc b { color: var(--gd-navy); }
.sh-gd__lede { font-size: 1.16rem; color: var(--gd-ink); font-weight: 500; }
.sh-gd__small { font-size: .88rem; color: var(--gd-muted); }

.sh-gd__list li { position: relative; padding-left: 26px; margin-top: 10px; }
.sh-gd__list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--gd-gold); }
.sh-gd__list--yes li::before, .sh-gd__list--no li::before { width: 18px; height: 18px; left: 0; top: .28em; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.sh-gd__list--yes li::before { background-color: #e3f5ea; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2317643a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sh-gd__list--no li::before { background-color: #f1f3f7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%235b6476' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sh-gd__list--yes li, .sh-gd__list--no li { padding-left: 30px; }

.sh-gd__steps { counter-reset: gd; }
.sh-gd__steps li { position: relative; counter-increment: gd; padding: 14px 0 14px 52px; border-top: 1px solid var(--gd-line); }
.sh-gd__steps li:first-child { border-top: 0; }
.sh-gd__steps li::before { content: counter(gd); position: absolute; left: 0; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gd-gold); color: var(--gd-navy); font-weight: 900; }
.sh-gd__steps b { display: block; font-size: 1.06rem; }

.sh-gd__callout { padding: 16px 20px; border-radius: 12px; background: var(--gd-gold-lt); border-left: 5px solid var(--gd-gold); color: var(--gd-ink); }
.sh-gd__formula { padding: 16px 20px; border-radius: 12px; background: var(--gd-navy); color: #fff; font-weight: 600; line-height: 1.8; }
.sh-gd__formula span { display: inline-block; padding: 1px 10px; margin: 2px 0; border-radius: 999px; background: rgba(255,255,255,.12); }
.sh-gd__formula b { color: var(--gd-gold); white-space: nowrap; }

.sh-gd__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gd-line); border-radius: 12px; }
.sh-gd__table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 520px; }
.sh-gd__table caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 800; color: var(--gd-navy); background: var(--gd-tint); border-bottom: 1px solid var(--gd-line); }
.sh-gd__table th, .sh-gd__table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--gd-line); vertical-align: top; }
.sh-gd__table thead th { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gd-muted); font-weight: 800; background: #fff; }
.sh-gd__table tbody tr:last-child td { border-bottom: 0; }
.sh-gd__table--num td:not(:first-child) { white-space: nowrap; }
.sh-gd__table tr.is-hl td { background: var(--gd-gold-lt); font-weight: 700; color: var(--gd-ink); }

.sh-gd__split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sh-gd__split > div { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--gd-line); }
.sh-gd__split-yes { background: #f6fbf8; }
.sh-gd__split-no { background: #f8f9fb; }
.sh-gd__split h3 { margin-top: 0 !important; }

.sh-gd__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 22px 24px; border-radius: var(--gd-radius); background: var(--gd-navy); color: #fff; }
.sh-gd__cta b { display: block; color: #fff !important; font-size: 1.15rem; }
.sh-gd__cta span { display: block; color: rgba(255,255,255,.82); font-size: .98rem; }
.sh-gd__doc .sh-gd__cta a.sh-gd__btn { color: var(--gd-navy); text-decoration: none; }

.sh-gd__qa { border-bottom: 1px solid var(--gd-line); }
.sh-gd__qa:first-of-type { border-top: 1px solid var(--gd-line); }
.sh-gd__qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.sh-gd__qa summary::-webkit-details-marker { display: none; }
.sh-gd__qa summary h3 { margin: 0 !important; font-size: 1.06rem; }
.sh-gd__qa-ico { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--gd-gold-lt); }
.sh-gd__qa-ico::before, .sh-gd__qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; border-radius: 2px; background: var(--gd-navy); }
.sh-gd__qa-ico::after { transform: rotate(90deg); transition: transform .25s ease; }
.sh-gd__qa[open] .sh-gd__qa-ico { background: var(--gd-gold); }
.sh-gd__qa[open] .sh-gd__qa-ico::after { transform: rotate(0); }
.sh-gd__qa-a { padding-bottom: 18px; color: var(--gd-text); }
.sh-gd__disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--gd-line); font-size: .86rem; color: var(--gd-muted); }

/* ---------- more guides / hub ---------- */
.sh-gd__more { background: var(--gd-tint); padding: clamp(48px, 7vw, 88px) 0; }
.sh-gd__h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--gd-navy); margin-bottom: 24px; }
.sh-gd__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sh-gd__card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--gd-line); border-top: 5px solid var(--gd-gold); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.sh-gd__card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(24,69,123,.55); text-decoration: none; }
.sh-gd__card--page { border-top-color: var(--gd-navy); }
.sh-gd__card-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--gd-gold-lt); color: #7a5600; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sh-gd__card--page .sh-gd__card-tag { background: var(--gd-tint); color: var(--gd-navy); }
.sh-gd__card b { font-size: 1.12rem; line-height: 1.3; color: var(--gd-navy); }
.sh-gd__card > span:not(.sh-gd__card-tag) { color: var(--gd-muted); font-size: .96rem; line-height: 1.5; }
.sh-gd__card-go { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 800; color: var(--gd-navy); }
.sh-gd__card-go::after { content: " \2192"; }
.sh-gd__more--hub { background: #fff; }
.sh-gd__hub-links { margin-top: 28px; color: var(--gd-muted); }
.sh-gd__hub-links a { color: var(--gd-navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gd-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .sh-gd__banner-grid, .sh-gd__layout { grid-template-columns: 1fr; }
  .sh-gd__toc { position: static; }
  .sh-gd__toc-cta { display: none; }
}
@media (max-width: 640px) {
  .sh-gd__split { grid-template-columns: 1fr; }
  .sh-gd__cta .sh-gd__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-gd *, .sh-gd *::before, .sh-gd *::after { animation: none !important; transition: none !important; }
}
@media print {
  .sh-gd__progress, .sh-gd__toc, .sh-gd__more, .sh-gd__cta { display: none !important; }
  .sh-gd__layout { grid-template-columns: 1fr; }
}
