/* ---- Brand (matching student CERN pages) ---- */
        :root {
            --brand-jade:   #042C1B;
            --brand-amber:  #D8A100;
            --brand-blue:   #0F3888;
            --brand-pink:   #4B0C1F;
            --brand-green:  #015234;
            --charcoal:     #2C2C2C;
        }

        body { font-family: 'Quicksand', sans-serif; }
        h1, h2, h3, h4, h5, h6 { font-family: 'Prompt', sans-serif; }

        main {
            padding-top: 0;
        }

        a {
            color: var(--brand-blue);
            text-decoration-color: var(--brand-green);
            text-underline-offset: 3px;
        }
        a:hover {
            color: var(--brand-pink);
            text-decoration-color: var(--brand-pink);
        }

        /* ---- Layout ---- */
        .selector-container {
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
            max-width: 100%;
            overflow: hidden;
        }

        .file-selector {
            flex: 0 0 280px;
        }

        .content-display {
            flex: 1;
            min-height: 200px;
            min-width: 0;
            overflow-x: hidden;
        }

        /* ---- Pico classless overrides for radio list ---- */
        #file-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #file-list li {
            list-style: none;
            margin: 0 0 0.4rem 0;
            padding: 0.4rem 0.6rem;
            border: 1px solid var(--pico-muted-border-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: background-color 0.15s, border-color 0.15s;
            cursor: pointer;
        }

        #file-list li:hover {
            background-color: var(--pico-card-background-color);
        }

        #file-list li.selected {
            border-color: var(--pico-primary);
            background-color: var(--pico-card-background-color);
        }

        #file-list li label {
            display: inline;
            font-size: 0.9rem;
            cursor: pointer;
            margin: 0;
            padding: 0;
        }

        #file-list li input[type="radio"] {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border: 2.5px solid var(--pico-muted-border-color);
            border-radius: 50%;
            margin: 0;
            flex-shrink: 0;
            cursor: pointer;
            transition: border-color 0.15s, background-color 0.15s;
            position: relative;
        }

        #file-list li input[type="radio"]:checked {
            border-color: var(--pico-primary);
            background-color: var(--pico-primary);
            box-shadow: inset 0 0 0 3px #fff;
        }

        #file-list li input[type="radio"]:focus-visible {
            outline: 2px solid var(--brand-blue);
            outline-offset: 2px;
        }

        /* ---- Initial state ---- */
        .initially-hidden {
            display: none;
        }

        .initially-hidden.visible {
            display: block;
        }

        #getting-started-intro {
            font-size: 0.95rem;
            color: var(--brand-jade);
            font-weight: 500;
            margin-top: 0;
            margin-bottom: 0.5rem;
        }

        #getting-started-intro.hidden {
            display: none;
        }

        /* ---- Getting Started button ---- */
        .getting-started-btn {
            width: 100%;
            font-size: 0.9rem;
            padding: 0.5rem 1rem;
            margin: 0 0 0.8rem 0;
            background: #04773b;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-family: 'Quicksand', sans-serif;
            font-weight: 600;
            transition: background-color 0.15s;
        }

        .getting-started-btn:hover {
            background: #035f2f;
        }

        /* ---- Fieldset override ---- */
        .file-selector fieldset {
            border: none;
            padding: 0;
            margin: 0;
        }

        .file-selector legend {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

        /* ---- Buttons ---- */
        .button-row {
            display: flex;
            gap: 0.6rem;
            margin-top: 0.8rem;
            flex-wrap: wrap;
        }

        .button-row button {
            font-size: 0.95rem;
            padding: 0.5rem 1.2rem;
            margin: 0;
            width: auto;
            background-color: #04773b;
            border-color: #04773b;
        }

        .button-row button:hover {
            background-color: #035f2f;
            border-color: #035f2f;
        }

        /* ---- Guidance note ---- */
        .guidance-note {
            font-size: 0.85rem;
            color: var(--pico-muted-color);
            font-style: italic;
            margin-top: 0.5rem;
            padding: 0.35rem 0.6rem;
        }

        .guidance-note.hidden {
            display: none;
        }

        /* ---- Content area ---- */
        .content-placeholder {
            border: 2px dashed var(--pico-muted-border-color);
            border-radius: 6px;
            padding: 2rem 1.5rem;
            text-align: center;
            color: var(--pico-muted-color);
            font-style: italic;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.3rem;
        }

        #md-content {
            display: none;
            padding: 1.2rem 1.5rem;
            border: 1px solid var(--pico-muted-border-color);
            border-top: 1px solid #4f772d;
            border-left: 1px solid #4f772d;
            border-radius: 6px;
            font-family: 'Zilla Slab', serif;
            font-size: 1.05rem;
            font-weight: 600;
            line-height: 1.7;
            color: var(--charcoal);
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        #md-content h1, #md-content h2, #md-content h3,
        #md-content h4, #md-content h5, #md-content h6 {
            font-family: 'Radio Canada Big', sans-serif;
        }

        #md-content h1 {
            font-size: 1.4rem;
            font-weight: 600;
            color: #212529;
        }

        #md-content h2 {
            font-size: 1.2rem;
            font-weight: 600;
            color: #540d6e;
        }

        #md-content h3 {
            font-size: 1.05rem;
            font-weight: 500;
            color: #0d47a1;
        }

        #md-content h4 {
            font-weight: 300;
            font-size: 0.95rem;
            color: var(--charcoal);
        }

        #md-content h5, #md-content h6 {
            font-weight: 300;
            font-size: 0.85rem;
            color: var(--charcoal);
        }

        #md-content a {
            color: #0353a4;
        }

        #md-content code {
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.88rem;
            font-weight: 700;
        }

        #md-content pre {
            font-family: 'Courier New', Courier, monospace;
            background: #f5f5f5;
            padding: 1rem;
            border-radius: 4px;
            overflow-x: auto;
            font-weight: 700;
        }

        #md-content.active {
            display: block;
        }

        #md-content h1, #md-content h2, #md-content h3,
        #md-content h4, #md-content h5, #md-content h6 {
            margin-top: 1.2rem;
            margin-bottom: 0.4rem;
        }

        #md-content h1:first-child {
            margin-top: 0;
        }

        #md-content p {
            margin-top: 0.3rem;
            margin-bottom: 0.5rem;
        }

        #md-content ol > li {
            font-weight: bold;
            color: #2a7221;
        }

        #md-content ol > li > *:not(:first-child):not(ol) {
            font-weight: 600;
            color: var(--charcoal);
        }

        /* ---- Section headings ---- */
        .section-label {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--pico-muted-color);
            margin-bottom: 0.6rem;
        }

        /* ---- Error display ---- */
        .error-display {
            display: none;
            border: 2px solid #c0392b;
            background-color: #fdf0ef;
            border-radius: 6px;
            padding: 1rem 1.2rem;
            color: #922;
            font-size: 0.85rem;
        }

        .error-display.active {
            display: block;
        }

        .error-display strong {
            display: block;
            margin-bottom: 0.3rem;
        }

        .error-display code {
            font-size: 0.8rem;
            background: #f9dbd8;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
        }

        .error-display .error-hint {
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: #666;
        }

        /* ---- Breadcrumb (matching cern site) ---- */
        header {
            margin-bottom: 0;
            padding-bottom: 0;
        }

        header h1 {
            margin-bottom: 0.25rem;
        }

        .title-rule {
            border: none;
            height: 3px;
            background: linear-gradient(90deg, var(--brand-amber) 0%, var(--brand-jade) 100%);
            margin-top: 0;
            margin-bottom: 1.5rem;
        }

        .readme-crumbs {
            display: inline-block;
            margin-left: 3rem;
            list-style: none;
            padding: 0;
        }

        .readme-crumbs li {
            display: inline;
            list-style: none;
        }

        .readme-crumbs li + li::before {
            content: " / ";
            color: var(--pico-muted-color);
        }

        /* ---- Responsive ---- */
        #md-content pre {
            max-width: 100%;
            overflow-x: auto;
        }

        @media (max-width: 768px) {
            .selector-container {
                flex-direction: column;
            }

            .file-selector {
                flex: none;
                width: 100%;
            }

            .content-display {
                width: 100%;
            }

            #md-content {
                padding: 1rem;
            }

            #md-content code {
                word-break: break-all;
            }

            header h1 {
                font-size: 1.3rem;
            }

            .readme-crumbs {
                margin-left: 0;
            }

            .button-row {
                flex-direction: column;
            }

            .button-row button {
                width: 100%;
            }
        }