/* ------------------------------------------------------------------ *
 *  Daycry Auth — documentation polish on top of the Furo theme.
 * ------------------------------------------------------------------ */

/* Code blocks: rounded, subtle border, comfortable spacing. */
div.highlight,
.highlight pre {
    border-radius: 10px;
}

.highlight pre {
    padding: 1rem 1.1rem;
    font-size: 0.86rem;
    line-height: 1.55;
    border: 1px solid var(--color-background-border);
    overflow-x: auto;
}

/* A faint top accent so blocks feel like "cards". */
div.highlight {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Inline code: brand-tinted chip. */
code.literal,
.rst-content code:not(.xref) {
    border-radius: 6px;
    padding: 0.12em 0.4em;
    font-size: 0.86em;
}

/* Copy button: keep it tucked in the corner, reveal on hover. */
.highlight button.copybtn {
    top: 0.45rem;
    right: 0.45rem;
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.15s ease-in-out;
}

div.highlight:hover button.copybtn {
    opacity: 0.65;
}

div.highlight button.copybtn:hover {
    opacity: 1;
}

/* Tables: tidy borders, shaded header, comfortable cells. */
table.docutils {
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
    display: table;
}

table.docutils th {
    background: var(--color-background-secondary);
    font-weight: 600;
}

table.docutils th,
table.docutils td {
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--color-background-border);
    vertical-align: top;
}

table.docutils tbody tr:nth-child(even) {
    background: var(--color-background-secondary);
}

/* Headings: a touch more breathing room and a brand-coloured h2 rule. */
.rst-content h2,
article h2 {
    margin-top: 2rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-background-border);
}

/* Logo sizing in the sidebar. */
.sidebar-logo {
    max-width: 80%;
    margin: 0.5rem auto;
}

/* Admonitions: slightly rounder. */
.admonition,
div.admonition {
    border-radius: 10px;
}

/* Make blockquotes (used for notes/tips in the prose) more distinct. */
blockquote {
    border-left: 3px solid var(--color-brand-primary);
    background: var(--color-background-secondary);
    border-radius: 0 8px 8px 0;
    padding: 0.4rem 1rem;
}
