/* =========================================================
   DEVELOPER SUPPORT STORY
   ========================================================= */

.dev-support {
    max-width: 980px;
    margin: 0 auto;
    padding: 7rem 2rem 8rem;
}


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

.dev-support-hero {
    max-width: 760px;
    margin-bottom: 6rem;
}

.dev-support-hero h1 {
    margin: 0 0 1.75rem;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.dev-support-hero p {
    max-width: 620px;
    margin: 0;

    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}


/* --------------------------
   Story sections
   -------------------------- */

.dev-support-section {
    max-width: 820px;
}

.section-copy {
    max-width: 620px;
    margin-bottom: 2rem;
}

.section-copy h2 {
    margin: 0 0 1rem;

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.section-copy p {
    margin: 0;

    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}


/* --------------------------
   Code example
   -------------------------- */

.code-example {
    max-width: 720px;
}

.code-window {
    overflow: hidden;

    background: #20232a;
    border-radius: 8px;
}

.code-window-bar {
    display: flex;
    gap: 7px;
    align-items: center;

    height: 38px;
    padding: 0 14px;

    background: #292d35;
}

.code-window-bar span {
    width: 8px;
    height: 8px;

    border: 1px solid #777;
    border-radius: 50%;
}

.code-window pre {
    margin: 0;
    padding: 1.75rem 2rem 2rem;
    overflow-x: auto;
}

.code-window code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    color: #f2f2f2;
}


/* --------------------------
   Example context
   -------------------------- */

.example-context {
    max-width: 620px;
    margin-top: 1.5rem;
}

.example-context p {
    margin: 0 0 0.75rem;

    font-size: 0.9rem;
    line-height: 1.75;
    color: #555;
}

.dev-support-link {
    display: inline-block;

    font-size: 0.85rem;
    color: #242220;
    text-decoration: none;
    border-bottom: 1px solid #bbb;

    transition: border-color 0.2s ease;
}

.dev-support-link:hover {
    border-color: #242220;
}

/* =========================================================
   EXPLAIN THE SYSTEM
   ========================================================= */

.explain-section {
    margin-top: 8rem;
}


/* Request / response
   -------------------------- */

.claim-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;

    max-width: 580px;
    margin: 1rem 0 3.5rem;
}

.claim-example {
    padding: 1rem 1.15rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.claim-label {
    display: block;
    margin-bottom: 0.5rem;

    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #777;
}

.claim-example code {
    font-family: 'Courier New', monospace;
    font-size: 0.76rem;
    line-height: 1.55;
    color: #242220;
}


/* Inline technical terms
   -------------------------- */

.inline-code {
    padding: 0.1rem 0.3rem;

    font-family: 'Courier New', monospace;
    font-size: 0.85em;

    background: #f3f3f1;
    border-radius: 3px;
}


/* Solution
   -------------------------- */

.claim-solution {
    max-width: 620px;
    margin-top: 2.5rem;
}

.claim-solution pre {
    margin: 0;
    padding: 1.4rem 1.5rem;

    overflow-x: auto;

    background: #f5f5f3;
    border-radius: 6px;
}

.claim-solution pre code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.75;
    color: #242220;
}

.claim-solution p {
    max-width: 560px;
    margin: 1rem 0 0;

    font-size: 0.85rem;
    line-height: 1.7;
    color: #777;
}

.example-note {
    max-width: 560px;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    line-height: 1.6;
    color: #8a8681;
}

/* =========================================================
   PRODUCT FEEDBACK
   ========================================================= */

.product-feedback-section {
    margin-top: 8rem;
}

.reproduction-example {
    max-width: 480px;
    margin: 1.5rem 0 3rem;
}

.rule-example {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.rule-field {
    padding: 1rem 1.15rem;
}

.rule-field span {
    display: block;
    margin-bottom: 0.5rem;

    font-size: 0.68rem;
    font-weight: 500;
    color: #777;
}

.rule-field code {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #242220;
}

.rule-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.7rem 1.15rem;

    border-top: 1px solid #e5e5e5;

    font-size: 0.75rem;
    color: #777;
}

.error-mark {
    font-size: 1rem;
    line-height: 1.2;
}

.error-message {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.error-message strong {
    font-weight: 500;
    color: #555;
}

.error-message code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #555;
}

/* --------------------------
   Interactive rule solution
   -------------------------- */

.rule-reveal {
    margin-top: 1rem;
}


/* Button */

.rule-reveal-button {
    display: inline-block;

    padding: 0.6rem 0.9rem;

    background: #242220;
    border: 1px solid #242220;
    border-radius: 4px;

    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.rule-reveal-button:hover {
    background: transparent;
    color: #242220;
}

.rule-reveal-button:focus-visible {
    outline: 2px solid #242220;
    outline-offset: 3px;
}


/* Revealed solution */

.rule-solution {
    margin-top: 1.25rem;
    padding: 1.1rem 1.2rem;

    background: #f5f5f3;
    border-radius: 5px;
}


/* Before / after rule name */

.rule-name-change {
    display: flex;
    align-items: center;
    gap: 1rem;

    margin-bottom: 0.75rem;
}

.rule-name-change code {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
}

.rule-name-before {
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #aaa;
}

.rule-name-after {
    color: #242220;
    font-weight: 500;
}


/* Success */

.rule-success {
    display: flex;
    align-items: center;
    gap: 0.4rem;

    margin-bottom: 0.7rem;

    font-size: 0.75rem;
    font-weight: 500;
    color: #444;
}


/* Explanation */

.rule-solution p {
    margin: 0;

    font-size: 0.72rem;
    line-height: 1.6;
    color: #777;
}

.rule-solution p code {
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #555;
}

.closing-section {
    margin-top: 8rem;
    margin-bottom: 3.5rem;
}

.story-note {
    max-width: 620px;
    margin: 0 0 4rem;
    padding-top: 1.25rem;

    border-top: 1px solid #e5e5e5;
}

.story-note p {
    margin: 0 0 0.4rem;

    font-size: 0.7rem;
    line-height: 1.6;
    color: #8a8681;
}

.story-note p:last-child {
    margin-bottom: 0;
}

/* --------------------------
   Other problems
   -------------------------- */

/* Other problems */

.other-problems {
    max-width: 580px;
    margin-top: 4rem;
    margin-bottom: 0;
}

.other-problems-title {
    margin: 0 0 1.25rem;

    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #999;
}

.problem-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
}

.problem-links a {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #777;

    text-decoration: none;
    border-bottom: 1px solid #ccc;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.problem-links a:visited {
    color: #777;
}

.problem-links a:hover {
    color: #242220;
    border-bottom-color: #242220;
}

.problem-links a:focus-visible {
    outline: 2px solid #242220;
    outline-offset: 3px;
}

/* Historical note */

.story-note {
    max-width: 620px;

    /* creates separation from the links */
    margin: 4rem 0 4rem;

    padding-top: 1.25rem;
    border-top: 1px solid #e5e5e5;
}

.story-note p {
    margin: 0 0 0.4rem;

    font-size: 0.7rem;
    line-height: 1.6;
    color: #8a8681;
}

.story-note p:last-child {
    margin-bottom: 0;
}

/** override **/
.story-back {
    margin-top: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .dev-support {
        padding: 5rem 2rem 7rem;
    }

    .dev-support-hero {
        margin-bottom: 7rem;
    }
}


@media (max-width: 700px) {

    .dev-support {
        padding: 4rem 1.5rem 6rem;
    }

    .dev-support-hero {
        margin-bottom: 5.5rem;
    }

    .dev-support-hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
        line-height: 1;
    }

    .section-copy h2 {
        font-size: 1.7rem;
    }

    .code-window pre {
        padding: 1.5rem;
    }

    .code-window code {
        font-size: 0.75rem;
    }

    .explain-section {
        margin-top: 6rem;
    }

    .claim-comparison {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .claim-example {
        padding: 1.1rem 1.2rem;
    }

    .claim-example code {
        font-size: 0.76rem;
    }

    .claim-solution pre {
        padding: 1.25rem;
    }

    .product-feedback-section {
        margin-top: 6rem;
    }

    .reproduction-example {
        max-width: 100%;
    }

    .closing-section {
        margin-top: 6rem;
        margin-bottom: 3rem;
    }

    .story-note {
        margin-bottom: 3.5rem;
    }

    .other-problems {
        margin-top: 3.5rem;
    }

    .story-note {
        margin: 3rem 0 3.5rem;
    }
}