.shared-header,
.shared-footer {
    border-color: #e5e7eb;
    background: #ffffff;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 16px;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 1000;
}

.skip-link:focus {
    transform: translateY(12px);
}

.shared-header {
    border-bottom: 1px solid #e5e7eb;
}

.shared-header-inner,
.shared-footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 24px;
}

.shared-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shared-brand {
    display: inline-flex;
    align-items: center;
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shared-brand-logo {
    display: block;
    width: auto;
    height: 28px;
}

.shared-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shared-nav a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.shared-nav a:hover,
.shared-nav a:focus-visible,
.shared-nav a[aria-current="page"] {
    color: #111827;
}

.shared-footer {
    border-top: 1px solid #e5e7eb;
}

.shared-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
}

.shared-footer-brand {
    display: inline-flex;
    align-items: center;
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.shared-footer-logo {
    display: block;
    width: auto;
    height: 24px;
}

.shared-footer-meta,
.shared-footer-copy {
    color: #6b7280;
    font-size: 0.82rem;
}

.shared-footer-meta a {
    color: #374151;
    text-decoration: none;
}

.shared-footer-meta a:hover {
    color: #111827;
}

.shared-footer-meta a:focus-visible,
.shared-brand:focus-visible {
    color: #111827;
}

.shared-footer-meta .sep {
    color: #d1d5db;
}

@media (max-width: 767px) {
    .shared-header-inner,
    .shared-footer-inner {
        padding: 12px 16px;
    }

    .shared-nav {
        gap: 12px;
    }

    .shared-nav a {
        font-size: 0.82rem;
    }

    .shared-brand-logo {
        height: 24px;
    }

    .shared-footer-logo {
        height: 22px;
    }

    .shared-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
