/* The one header and footer every page shares (site/header.html, site/footer.html).
   Own class names (sh-, sf-) and no <header>/<nav>/<footer> tags, so no page's own CSS reaches them. */
.sh, .sf { --c-ink: #0b1f24; --c-mute: #6b7280; --c-line: #e5e7eb; --c-teal: #0f766e; --c-bg: rgba(255,255,255,.9);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.sh *, .sf * { box-sizing: border-box; margin: 0; padding: 0; }

.sh { position: sticky; top: 0; z-index: 200; background: var(--c-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--c-line); }
.sh-fixed .sh { position: fixed; left: 0; right: 0; }
.sh-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; white-space: nowrap; }
.sh-brand img { height: 30px; width: auto; display: block; }
.sh-brand span { color: var(--c-mute); font-weight: 500; }

.sh-links { display: flex; align-items: center; gap: 4px; }
.sh-links > a, .sh-more summary { font-size: .86rem; font-weight: 500; color: #4b5563; text-decoration: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.sh-links > a:hover, .sh-more summary:hover { color: var(--c-ink); background: #f3f4f6; }
.sh a[aria-current="page"] { color: var(--c-ink); font-weight: 600; }
.sh .sh-cta, .sh-panel .sh-cta { background: var(--c-ink); color: #fff !important; padding: 9px 16px; border-radius: 999px; margin-left: 6px; font-weight: 600; }
.sh .sh-cta:hover { background: #1f3a40; }

.sh details > summary { list-style: none; }
.sh details > summary::-webkit-details-marker { display: none; }
.sh-more { position: relative; }
.sh-more summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sh-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.1); padding: 8px; display: grid; }
.sh-drop a, .sh-panel a { font-size: .9rem; color: #374151; text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.sh-drop a:hover, .sh-panel a:hover { background: #f3f4f6; color: var(--c-ink); }

.sh-menu { display: none; }
.sh-menu summary { padding: 8px; cursor: pointer; color: var(--c-ink); display: grid; }
.sh-panel { position: fixed; left: 0; right: 0; top: 60px; max-height: calc(100vh - 60px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: 0 16px 32px rgba(0,0,0,.08); padding: 12px 16px 20px; display: grid; }
.sh-panel .sh-cta { margin: 10px 0 0; text-align: center; }

@media (max-width: 1080px) {
  .sh-links { display: none; }
  .sh-menu { display: block; }
}

.sf { background: #f9fafb; border-top: 1px solid var(--c-line); color: var(--c-mute); font-size: .88rem; }
.sf-in { max-width: 1240px; margin: 0 auto; padding: 56px 20px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.sf-about p { margin-top: 14px; line-height: 1.6; max-width: 340px; }
.sf-help a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.sf-col { display: grid; align-content: start; gap: 9px; }
.sf h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-ink); margin-bottom: 4px; }
.sf a { color: var(--c-mute); text-decoration: none; }
.sf a:hover { color: var(--c-ink); }
.sf-bottom { max-width: 1240px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.sf-bottom a { margin-left: 14px; }
@media (max-width: 760px) { .sf-in { grid-template-columns: 1fr 1fr; } .sf-about { grid-column: 1 / -1; } }
