/* AGX-03. A reading column within the existing Barbaro site frame. */
.agents-guide {
    max-width: 760px;
    margin-inline: auto;
    padding-top: 32px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
}

.agents-guide h1,
.agents-guide h2 {
    font-family: var(--font-brand);
    font-weight: 400;
    color: var(--rust);
    text-wrap: balance;
}

.agents-guide h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    margin-bottom: 16px;
}

.agents-guide h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.agents-guide p + p { margin-top: 12px; }
.agents-guide .guide-lead { font-size: 20px; line-height: 1.5; }
.guide-preview { color: var(--text-secondary); }

.agents-guide a,
.guide-footer a {
    color: var(--rust);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    overflow-wrap: anywhere;
}

.agents-guide a:hover,
.guide-footer a:hover { color: var(--rust-hover); text-decoration-thickness: 2px; }
.agents-guide a:active,
.guide-footer a:active { color: var(--ink); }
.agents-guide a:focus-visible,
.guide-footer a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; border-radius: 2px; }

.agents-guide .guide-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 11px 28px;
    margin: 24px 0 16px;
    border: 1px solid var(--rust);
    border-radius: 8px;
    background: var(--rust);
    color: var(--card-bg);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--transition-state), border-color var(--transition-state);
}

.agents-guide .guide-primary:hover { background: var(--rust-hover); border-color: var(--rust-hover); color: var(--card-bg); }
.agents-guide .guide-primary:active { background: var(--ink); border-color: var(--ink); color: var(--card-bg); }
.guide-search-note { color: var(--text-secondary); }

.agents-guide code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .9em;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    user-select: text;
}

.guide-example {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 24px;
    margin: 20px 0 14px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
}

.guide-example > code { min-width: 0; }
.guide-endpoint { font-size: 14px; color: var(--text-secondary); }
.agents-guide .guide-note { margin-top: 8px; font-size: 14px; color: var(--text-secondary); }
.guide-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--divider-light); }
.guide-tool { display: inline-block; padding: 3px 9px; background: var(--section-bg); border-radius: 4px; }
.guide-date { color: var(--text-secondary); font-size: 14px; }
.guide-tests dt { margin-top: 20px; margin-bottom: 4px; font-size: 18px; font-weight: 600; }
.guide-tests dd { margin: 0; }
.guide-support h2 { font-size: 24px; }
.guide-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.guide-footer a { font-size: 14px; }

@media (max-width: 640px) {
    .agents-guide { padding-top: 20px; }
    .agents-guide h2 { font-size: 24px; }
    .agents-guide .guide-lead { font-size: 18px; }
    .guide-example { padding: 18px; }
    .guide-section { margin-top: 28px; padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .agents-guide .guide-primary { transition: none; }
}

@media (forced-colors: active) {
    .agents-guide .guide-primary,
    .agents-guide .guide-primary:hover,
    .agents-guide .guide-primary:active { border-color: ButtonText; color: ButtonText; background: ButtonFace; }
    .agents-guide a, .guide-footer a { color: LinkText; }
    .guide-example, .guide-section { border-color: CanvasText; }
    .agents-guide a:focus-visible, .guide-footer a:focus-visible { outline: 2px solid Highlight !important; outline-offset: 4px; }
}

.guide-contents ul, .privacy-notice section ul { padding-left: 24px; }
.privacy-notice li + li { margin-top: 8px; }
.privacy-notice h2 { scroll-margin-top: 120px; }
