h2,
header {
    border-bottom: 1px solid var(--border);
}
.footer-col ul a:hover,
.logo-main span,
a,
nav a.active,
nav a:hover {
    color: var(--primary);
}
nav,
pre {
    overflow-x: auto;
}
img,
pre,
video {
    max-width: 100%;
}
footer,
h2 {
    border-top: 1px solid var(--border);
}
.header-inner,
.logo-wrapper,
body,
nav {
    display: flex;
}
.footer-col ul a,
nav a {
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
:root {
    --bg-main: #ffffff;
    --bg-offset: #f9fafb;
    --bg-apple-grey: #f5f5f7;
    --bg-apple-glass: rgba(245, 245, 247, 0.85);
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border: #e5e7eb;
    --code-bg: #1f2937;
    --max-width: 900px;
    --sh-bg: #0d1117;
    --sh-header: #161b22;
    --sh-border: #30363d;
    --sh-gutter-txt: #484f58;
    --sh-txt: #c9d1d9;
    --sh-active-bg: rgba(56, 139, 253, 0.1);
    --sh-active-bar: #58a6ff;
    --sh-hover-bg: rgba(255, 255, 255, 0.03);
    --sh-font: 14px;
    --sh-lh: 1.7;
    --sh-v-padding: 10px;
    --sh-accent: #58a6ff;
}
strong {
    color: #000;
    font-weight: bolder;
}
.logo-main,
body {
    color: var(--text-main);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        sans-serif;
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    flex-direction: column;
    min-height: 100vh;
}
img,
video {
    height: auto;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
main.container {
    flex: 1;
    padding: 2rem 20px;
}
header {
    background-color: var(--bg-apple-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo-wrapper {
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
    flex-shrink: 0;
}
.btn,
.hub-card,
.hub-card-desc,
.hub-card-title,
span.sh-code-snippet.is-inline {
    text-decoration: none !important;
}
.logo-main {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}
.btn,
.logo-sub {
    font-weight: 600;
}
.logo-sub,
nav a {
    color: var(--text-muted);
}
.footer-col h4,
.logo-sub,
.sh-lang-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-col h4,
h1,
h2,
h3 {
    color: var(--text-main);
    font-weight: 700;
}
.logo-sub {
    font-size: 0.75rem;
    margin-top: 2px;
}
nav {
    gap: 1.5rem;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
nav::-webkit-scrollbar {
    display: none;
}
nav a {
    font-weight: 500;
}
h1,
h2,
h3 {
    letter-spacing: -0.025em;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 0;
}
h2 {
    font-size: 1.75rem;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}
p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--bg-offset);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--border);
    color: #db2777;
    word-wrap: break-word;
}
pre {
    background: var(--code-bg);
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.footer-col ul a,
footer {
    color: var(--text-muted);
}
pre code {
    background: 0 0;
    border: none;
    color: inherit;
    padding: 0;
    word-wrap: normal;
}
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-hover);
}
footer {
    background-color: var(--bg-apple-grey);
    padding: 4rem 0 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}
.footer-col.brand-col .logo-wrapper {
    display: flex;
    margin-bottom: 1.25rem;
}
.footer-col.brand-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
    .btn,
    nav {
        width: 100%;
    }
    .btn,
    .logo-wrapper {
        margin-bottom: 0.75rem;
    }
    .header-inner {
        display: block;
        height: auto;
        padding-top: 1.25rem;
        padding-bottom: 0;
    }
    nav {
        gap: 1.2rem;
        border-top: 1px solid var(--border);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    h1 {
        font-size: 2rem;
    }
    .btn {
        display: block;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.sh-container {
    background: #000 !important;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    overflow: hidden;
    font-family: "Fira Code", "Cascadia Code", monospace;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}
.sh-header {
    background: var(--sh-header);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--sh-border);
}
.sh-lang-label {
    color: #8b949e;
    font-size: 10px;
    font-weight: 800;
}
.sh-viewport {
    background: var(--sh-bg);
    overflow: auto;
    outline: 0;
}
.sh-content-grid {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    min-width: max-content;
}
.sh-line-row {
    display: flex;
    position: relative;
    cursor: pointer;
    transition: background 0.1s;
}
.sh-line-row:hover {
    background: var(--sh-hover-bg);
}
.sh-line-row.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sh-accent);
    z-index: 10;
}
.sh-line-row.is-active {
    background: var(--sh-active-bg);
}
.sh-gutter-cell {
    width: 55px;
    text-align: right;
    padding-right: 20px;
    color: var(--sh-gutter-txt);
    user-select: none;
    border-right: 1px solid var(--sh-border);
    font-size: 13px;
    line-height: 1.7;
}
.sh-code-cell {
    margin: 0;
    padding: 0 24px;
    background: 0 0 !important;
    border: none !important;
}
.sh-code-snippet {
    background: #0d1117 !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    display: inline-block !important;
    margin: 4px 0 !important;
    font-family: "Fira Code", monospace;
    font-size: 13px !important;
    line-height: 1.4 !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid #30363d !important;
    vertical-align: middle;
    transition:
        transform 0.2s,
        border-color 0.2s;
}
.sh-code-snippet:hover {
    transform: translateY(-3px) !important;
    border-color: var(--sh-accent) !important;
}
span.sh-code-snippet.is-inline {
    display: inline-flex !important;
    vertical-align: middle !important;
    align-items: center !important;
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 4px !important;
    padding: 0 6px !important;
    height: 1.45em !important;
    margin: 0 2px !important;
    box-shadow: none !important;
    transform: none !important;
}
span.sh-code-snippet.is-inline code.sh-raw-line,
span.sh-code-snippet.is-inline code.sh-raw-line span {
    padding: 0 !important;
    border: none !important;
    background: 0 0 !important;
}
span.sh-code-snippet.is-inline code.sh-raw-line {
    font-weight: 800 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    color: #d4d4d8 !important;
    font-family: "Fira Code", monospace !important;
    display: inline-block !important;
}
.sh-raw-line {
    display: block;
    white-space: pre;
    font-size: var(--sh-font);
    line-height: var(--sh-lh);
    background: 0 0 !important;
    color: #d4d4d8;
    padding: 1px 4px;
}
.sh-tk-com {
    color: #8b949e !important;
    font-style: italic;
}
.sh-tk-key {
    color: #ff7b72 !important;
    font-weight: 600;
}
.sh-tk-str {
    color: #a5d6ff !important;
}
.sh-tk-var {
    color: #79c0ff !important;
}
.sh-tk-num {
    color: #b5cea8 !important;
}
.sh-tk-op {
    color: #d4d4d8 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
}
.sh-code-snippet .sh-raw-line .sh-tk-op {
    background: rgba(110, 120, 140, 0.2) !important;
}
span.sh-code-snippet.is-inline .sh-raw-line .sh-tk-op {
    background: 0 0 !important;
}
.sh-copy-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: 0.2s;
    opacity: 0.7;
}
.sh-copy-btn:hover {
    background: var(--sh-accent);
    border-color: var(--sh-accent);
    color: #fff;
    opacity: 1;
}
.accent-red {
    --sh-accent: #ef4444 !important;
}
.accent-indigo {
    --sh-accent: #6366f1 !important;
}
.accent-blue {
    --sh-accent: #2563eb !important;
}
.accent-purple {
    --sh-accent: #8b5cf6 !important;
}
.hub-unified-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 2rem !important;
}
.hub-card {
    --accent-color: #4b5563;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem !important;
    background: #fff !important;
    border: 1px solid #b7b8ba !important;
    border-radius: 8px !important;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
.hub-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent-color) !important;
}
.hub-card-title {
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    display: block !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
    color: var(--accent-color) !important;
    transition: filter 0.2s !important;
}
.hub-card:hover .hub-card-title {
    filter: brightness(1.1) !important;
}
.hub-card-desc {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
}
 .accent-red {
    --accent-color: #ef4444 !important;
}
.accent-indigo {
    --accent-color: #6366f1 !important;
}
.accent-blue {
    --accent-color: #2563eb !important;
}
.accent-purple {
    --accent-color: #8b5cf6 !important;
}
.accent-green {
    --sh-accent: #059669 !important;
    --accent-color: #059669 !important;
}
p {
    color: black;
}
