/* Carbon theme tokens: Gray 100 (dark, default) and White (light). https://carbondesignsystem.com/elements/color/tokens */
:root {
    color-scheme: dark;
    --background: #161616;
    --layer-01: #262626;
    --layer-02: #393939;
    --layer-hover-01: #333333;
    --border-subtle: #393939;
    --border-strong: #6f6f6f;
    --text-primary: #f4f4f4;
    --text-secondary: #c6c6c6;
    --text-helper: #a8a8a8;
    --text-placeholder: #6f6f6f;
    --focus: #ffffff;

    /* accent: Carbon Blue */
    --accent: #78a9ff;          /* blue 40 */
    --accent-hover: #a6c8ff;    /* blue 30 */
    --accent-strong: #0f62fe;   /* blue 60 */
    --accent-strong-hover: #0353e9;
    --heat-1: #002d9c;
    --heat-2: #0043ce;
    --heat-3: #0f62fe;
    --heat-4: #78a9ff;

    --success: #42be65;
    --tag-bg: #393939;
    --tag-fg: #e0e0e0;
    --background-inverse: #f4f4f4;
    --text-inverse: #161616;
    --crt-lines: rgb(255 255 255 / 0.035);
    --crt-vignette: rgb(0 0 0 / 0.85);
    --frame-shadow: 0 2px 4px rgb(0 0 0 / 0.4), 0 16px 40px rgb(0 0 0 / 0.55);

    --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
    --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Carbon spacing scale */
    --sp-02: 0.25rem;
    --sp-03: 0.5rem;
    --sp-04: 0.75rem;
    --sp-05: 1rem;
    --sp-06: 1.5rem;
    --sp-07: 2rem;
    --sp-09: 3rem;
    --sp-10: 4rem;
    --sp-12: 6rem;

    --max-width: 66rem;
    --ease: cubic-bezier(0.2, 0, 0.38, 0.9); /* Carbon productive */
}

/* Carbon White theme */
:root[data-theme="light"] {
    color-scheme: light;
    --background: #ffffff;
    --layer-01: #f4f4f4;
    --layer-02: #e0e0e0;
    --layer-hover-01: #e8e8e8;
    --border-subtle: #c6c6c6;
    --border-strong: #8d8d8d;
    --text-primary: #161616;
    --text-secondary: #525252;
    --text-helper: #6f6f6f;
    --text-placeholder: #a8a8a8;
    --focus: #0f62fe;

    --accent: #0f62fe;          /* blue 60 */
    --accent-hover: #0043ce;    /* blue 70 */
    --accent-strong: #0f62fe;
    --accent-strong-hover: #0050e6;
    --heat-1: #d0e2ff;
    --heat-2: #a6c8ff;
    --heat-3: #4589ff;
    --heat-4: #0f62fe;

    --success: #24a148;
    --tag-bg: #e0e0e0;
    --tag-fg: #161616;
    --background-inverse: #393939;
    --text-inverse: #ffffff;
    --crt-lines: rgb(0 0 0 / 0.04);
    --crt-vignette: rgb(0 0 0 / 0.3);
    --frame-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 16px 40px rgb(0 0 0 / 0.22);
}

/* The in-page terminal stays dark in both themes */
.cli {
    --background: #161616;
    --layer-01: #262626;
    --layer-02: #393939;
    --border-subtle: #393939;
    --text-primary: #f4f4f4;
    --text-secondary: #c6c6c6;
    --text-helper: #a8a8a8;
    --accent: #78a9ff;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--background);
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Links that sit inside running text: same color as the text, dotted underline hint */
.quiet-link {
    color: inherit;
    text-decoration: underline dotted var(--text-placeholder);
    text-underline-offset: 0.2em;
    transition: color 110ms var(--ease);
}

.quiet-link:hover {
    color: var(--accent);
    text-decoration: underline solid var(--accent);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
}

code,
pre {
    font-family: var(--font-mono);
}

.muted {
    color: var(--text-helper);
}

.sep {
    color: var(--text-placeholder);
    padding: 0 var(--sp-02);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: var(--sp-04) var(--sp-05);
    background: var(--accent-strong);
    color: #fff;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Top bar (Carbon UI shell header, without the IBM shell) ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: var(--sp-06);
    height: 3rem;
    padding: 0 0 0 var(--sp-05);
    background: var(--background);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.brand {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.brand:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav a {
    display: flex;
    align-items: center;
    padding: 0 var(--sp-05);
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: inset 0 -2px 0 transparent;
    transition: box-shadow 110ms var(--ease), color 110ms var(--ease);
}

.nav a:hover {
    background: var(--layer-hover-01);
    color: var(--text-primary);
    text-decoration: none;
}

/* Carbon header: current item gets an accent underline */
.nav a[aria-current="true"] {
    color: var(--text-primary);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
    display: flex;
    align-self: stretch;
    margin-left: auto;
}

/* Carbon header global action: 48px square icon button */
.header-action {
    display: grid;
    place-items: center;
    width: 3rem;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: inset 0 -2px 0 transparent;
    transition: background 110ms var(--ease), color 110ms var(--ease), box-shadow 110ms var(--ease);
}

.header-action:hover {
    background: var(--layer-hover-01);
    color: var(--text-primary);
}

.header-action[aria-pressed="true"] {
    color: var(--accent);
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* Theme button shows the current theme: moon in dark, sun in light */
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

/* Carbon icon-button tooltip: inverse bubble, shown instantly on hover or keyboard focus */
.header-action {
    position: relative;
}

.header-action::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.25rem;
    padding: 0.125rem var(--sp-05);
    background: var(--background-inverse);
    color: var(--text-inverse);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.75rem;
    white-space: nowrap;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 110ms var(--ease), transform 110ms var(--ease);
}

.header-action:hover::after,
.header-action:focus-visible::after {
    opacity: 1;
    transform: none;
}

@media (hover: none) {
    .header-action:hover::after { opacity: 0; }
}


/* ---------- Layout ---------- */

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-05);
}

.section {
    padding: var(--sp-10) 0 0;
}

.section-title {
    margin: 0 0 var(--sp-06);
    padding-bottom: var(--sp-04);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.section-title .path {
    color: var(--accent);
    font-weight: 600;
}

.section-title .dollar {
    color: var(--text-placeholder);
}

.section-title .cmd {
    color: var(--text-secondary);
}

/* ---------- Hero ---------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-09);
    padding: var(--sp-12) 0 var(--sp-07);
}

.prompt {
    margin: 0 0 var(--sp-05);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    margin-left: 0.15em;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

h1 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-role {
    margin: var(--sp-05) 0 0;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
}

.hero-summary {
    max-width: 38rem;
    margin: var(--sp-06) 0 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.55;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-top: var(--sp-07);
}

/* Carbon buttons: 48px, square, label left / icon right */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-07);
    min-height: 3rem;
    padding: 0 var(--sp-05);
    border: 1px solid transparent;
    font-size: 0.875rem;
    transition: background 70ms var(--ease), color 70ms var(--ease);
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    min-width: 11rem;
    background: var(--accent-strong);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-strong-hover);
    color: #fff;
}

.btn--tertiary {
    min-width: 8rem;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn--tertiary:hover {
    background: var(--text-primary);
    color: var(--background);
}

.btn--ghost {
    color: var(--accent);
}

.btn--ghost:hover {
    background: var(--layer-hover-01);
    color: var(--accent-hover);
}

/* Hung like a picture: the box hugs the characters exactly, soft drop shadow.
   Dark theme shows the original on black; light theme shows the ramp-inverted copy on white. */
.portrait-panel {
    width: fit-content;
    margin: 0;
    box-shadow: var(--frame-shadow);
}

.portrait--dark {
    background: #000;
    color: #c6c6c6;
}

.portrait--light {
    display: none;
    background: #fff;
    color: #000;
    font-weight: 600; /* dark-on-light glyphs read thinner; compensate */
}

:root[data-theme="light"] .portrait--dark { display: none; }
:root[data-theme="light"] .portrait--light { display: block; }

.portrait {
    margin: 0;
    font-size: 5.6px;
    line-height: 1;
    letter-spacing: 0;
    user-select: none;
}

/* ---------- Tiles / table ---------- */

.tile {
    background: var(--layer-01);
    padding: var(--sp-05);
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-align: left;
}

.data-table th {
    height: 3rem;
    padding: 0 var(--sp-05);
    background: var(--layer-02);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.data-table td {
    height: 3rem;
    padding: var(--sp-04) var(--sp-05);
    background: var(--layer-01);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.data-table tr:hover td {
    background: var(--layer-hover-01);
}

.data-table td:first-child {
    color: var(--text-primary);
}

.data-table td:first-child,
.data-table td:nth-child(3),
.data-table td:nth-child(4) {
    white-space: nowrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-03);
    white-space: nowrap;
}

.status::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--text-placeholder);
}

.status--live::before {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.role {
    margin-top: var(--sp-07);
}

.role-title {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
}

.role-meta {
    margin: var(--sp-02) 0 0;
    color: var(--text-helper);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.impact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: var(--sp-06);
}

.tile--stat {
    display: flex;
    flex-direction: column;
    gap: var(--sp-03);
    padding: var(--sp-06) var(--sp-05);
}

.stat {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 2.625rem;
    font-weight: 500;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.highlights {
    margin: var(--sp-06) 0 0;
    padding: 0;
    list-style: none;
}

.highlights li {
    position: relative;
    padding: var(--sp-03) 0 var(--sp-03) var(--sp-06);
    color: var(--text-secondary);
}

.highlights li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

.more {
    margin-top: var(--sp-03);
}

.more summary {
    width: fit-content;
    padding: var(--sp-03) 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    cursor: pointer;
}

.more .highlights {
    margin-top: 0;
}

/* ---------- Projects ---------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
}

.tile--project {
    display: flex;
    flex-direction: column;
    gap: var(--sp-04);
    padding: var(--sp-06) var(--sp-05);
    transition: background 110ms var(--ease);
}

.tile--project:hover {
    background: var(--layer-hover-01);
}


.tile-kind {
    margin: 0;
    color: var(--text-helper);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tile--project h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
}

.tile--project h3 a {
    color: var(--text-primary);
}

.tile--project h3 a::after {
    content: " ↗";
    color: var(--accent);
}

.tile--project p {
    margin: 0;
    color: var(--text-secondary);
}


.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-03);
    margin: auto 0 0;
    padding: var(--sp-03) 0 0;
    list-style: none;
}

/* Carbon tag (gray) */
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 var(--sp-03);
    border-radius: 1rem;
    background: var(--tag-bg);
    color: var(--tag-fg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.repo-list {
    margin: var(--sp-05) 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.repo-list li {
    padding: var(--sp-02) 0;
}

.repo-list a {
    font-family: var(--font-mono);
}

/* ---------- Stack ---------- */

.stack {
    margin: 0;
}

.stack-row {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--sp-05);
    padding: var(--sp-05) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.stack-row dt {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.stack-row dd {
    margin: 0;
}

.stack-row .tags {
    padding: 0;
}

/* ---------- Education ---------- */

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--sp-05);
    padding: var(--sp-05) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.when {
    color: var(--text-helper);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.timeline p {
    margin: var(--sp-03) 0 0;
    color: var(--text-secondary);
}

/* ---------- Activity heatmap ---------- */

.activity {
    padding: var(--sp-05);
}

.gh-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 10px);
    grid-auto-columns: 10px;
    gap: 3px;
    min-height: calc(7 * 10px + 6 * 3px);
    overflow-x: auto;
    padding-bottom: var(--sp-02);
}

.gh-cell,
.sq {
    width: 10px;
    height: 10px;
    background: var(--layer-02);
}

.l1 { background: var(--heat-1); }
.l2 { background: var(--heat-2); }
.l3 { background: var(--heat-3); }
.l4 { background: var(--heat-4); }

.gh-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--sp-03);
    margin-top: var(--sp-04);
    color: var(--text-helper);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.gh-scale {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ---------- CLI ---------- */

.cli {
    background: #0b0b0b;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.cli-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 2rem;
    padding: 0 var(--sp-04);
    background: var(--layer-01);
    border-bottom: 1px solid var(--border-subtle);
}

.cli-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--layer-02);
}

.cli-bar em {
    margin: 0 auto;
    padding-right: 3rem;
    color: var(--text-helper);
    font-size: 0.75rem;
    font-style: normal;
}

.cli-history {
    max-height: 22rem;
    min-height: 10rem;
    padding: var(--sp-05) var(--sp-05) 0;
    overflow-y: auto;
    color: var(--text-secondary);
}

.cli-history > div {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.cli-out {
    margin-bottom: var(--sp-03);
}

.cli-err {
    color: #ff8389; /* red 40 */
}

.cli-input-row {
    display: flex;
    align-items: center;
    gap: var(--sp-03);
    padding: var(--sp-03) var(--sp-05) var(--sp-05);
    cursor: text;
}

.cli-prompt {
    color: var(--accent);
    white-space: nowrap;
}

.cli-input {
    flex: 1;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font: inherit;
    caret-color: var(--accent);
}

.cli-input:focus {
    outline: none;
}

.cli:focus-within {
    border-color: var(--accent);
}

/* ---------- Contact / footer ---------- */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-07);
}

.contact-links {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.contact-links li {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: var(--sp-04);
    padding: var(--sp-03) 0;
    border-bottom: 1px solid var(--border-subtle);
    overflow-wrap: anywhere;
}

.contact-links code {
    color: var(--text-primary);
    overflow-wrap: normal;
}

.contact-side p {
    margin: 0 0 var(--sp-05);
    color: var(--text-secondary);
}

.contact-side .muted {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.footer {
    max-width: var(--max-width);
    margin: var(--sp-12) auto 0;
    padding: var(--sp-06) var(--sp-05) var(--sp-09);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.footer p {
    margin: 0 0 var(--sp-03);
}

.footer .clock-time {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.footer .ok {
    color: var(--success);
}

/* ---------- Optional CRT overlay ---------- */

:root[data-crt="on"] body::before,
:root[data-crt="on"] body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

:root[data-crt="on"] body::before {
    background: repeating-linear-gradient(to bottom, var(--crt-lines) 0 1px, transparent 1px 3px);
}

:root[data-crt="on"] body::after {
    box-shadow: inset 0 0 120px var(--crt-vignette);
}

:root[data-crt="on"] h1,
:root[data-crt="on"] .stat,
:root[data-crt="on"] .section-title .path {
    text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cursor { animation: none; }
    * { transition: none !important; }
}

/* ---------- Responsive ---------- */

/* Narrow screens: nav drops to a second, horizontally scrollable row */
@media (max-width: 860px) {
    html { scroll-padding-top: 6.5rem; }

    .topbar {
        flex-wrap: wrap;
        height: auto;
        row-gap: 0;
    }

    .brand,
    .header-actions {
        height: 3rem;
        display: flex;
        align-items: center;
    }

    .header-action {
        height: 100%;
    }

    .nav {
        order: 3;
        flex: 1 0 100%;
        height: 2.5rem;
        margin-left: calc(-1 * var(--sp-05));
        border-top: 1px solid var(--border-subtle);
    }
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: var(--sp-09);
    }

    .portrait-panel {
        order: -1;
        justify-self: start;
    }

    /* 100 columns × 0.6em must fit inside the page gutters */
    .portrait {
        font-size: min(5.6px, calc((100vw - 2rem) / 60));
    }

    .tiles,
    .contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .stack-row,
    .timeline li {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-03);
    }
}

@media (max-width: 560px) {
    .topbar { gap: var(--sp-03); }
    .contact-links li { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .impact { grid-template-columns: minmax(0, 1fr); }
    .col-optional { display: none; }
    .data-table th, .data-table td { padding-left: var(--sp-03); padding-right: var(--sp-03); }
    .btn { flex: 1 1 100%; }
    .section { padding-top: var(--sp-09); }
}

/* ---------- Print: the page doubles as a CV ---------- */

@media print {
    :root {
        --background: #fff;
        --layer-01: #fff;
        --layer-02: #f4f4f4;
        --text-primary: #161616;
        --text-secondary: #393939;
        --text-helper: #525252;
        --accent: #0f62fe;
        --border-subtle: #c6c6c6;
    }

    .topbar, .portrait-panel, .actions, #activity, #terminal, .skip-link, .more summary {
        display: none !important;
    }

    .more > :not(summary) { display: block; }
    .section { padding-top: var(--sp-06); break-inside: avoid-page; }
    .hero { padding: 0; }
    .tag { border: 1px solid var(--border-subtle); color: var(--text-primary); }
    a[href^="http"]::after { content: none; }
}
