/*
* Base styles for design system
* Tokens: foundation/variables.css (loaded before components, see _stylesheets.html.twig)
*/

/*******************************
 * INLINE TEXT ELEMENTS
 * Styles for inline text elements like abbr, b, cite, code, etc.
 *******************************/

/* Base styles for all inline elements */
abbr, b, cite, code, data, del, dfn, em, i, ins, kbd, mark, q, s, samp, small, span, strong, sub, sup, time, u, var {
    display: inline;
    line-height: inherit;
}

/* Abbreviation */
abbr {
    text-decoration: none;
    cursor: help;
    border-bottom: var(--jena-border-width-sm) dashed var(--jena-color-text-primary-default);
}

abbr[title] {
    position: relative;
}

abbr[title]:hover::after,
abbr[title]:focus::after {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 10;
    padding: var(--jena-space-xs) var(--jena-space-sm);
    font-size: var(--jena-font-size-sm);
    color: var(--jena-color-text-primary-default);
    white-space: nowrap;
    content: attr(title);
    border: var(--jena-border-width-sm) solid var(--jena-color-text-primary-default);
    box-shadow: none;
}

/* Bold text */
b, strong {
    position: relative;
    display: inline-block;
    font-weight: var(--jena-font-weight-bold);
}

/* Citation */
cite {
    font-style: normal;
    font-weight: var(--jena-font-weight-normal);
    border-bottom: var(--jena-border-width-sm) dotted var(--jena-color-bg-brand-secondary);
}

/* Emphasis */
em {
    position: relative;
    display: inline-block;
    font-style: italic;
    font-weight: var(--jena-font-weight-normal);
}

/* Italic */
i {
    font-style: italic;
    color: var(--jena-color-text-primary-default);
}

/* Strikethrough */
s {
    text-decoration: line-through;
    text-decoration-thickness: var(--jena-underline-thickness);
    text-decoration-color: var(--jena-color-bg-brand-secondary);
}

/* Small text */
small {
    font-size: var(--jena-font-size-sm);
    color: var(--jena-color-text-primary-muted);
}

/* Span - no specific styling, just a container */
span {
    /* No specific styling */
}

/* Monospace / Preformatted */
pre {
    max-width: 100%;
    padding: var(--jena-space-md);
    margin: var(--jena-space-md) 0;
    overflow-x: auto;
    font-family: var(--jena-font-family-mono), monospace;
    white-space: pre-wrap;
    background-color: var(--jena-color-bg-surface-muted);
    border: var(--jena-border-width-sm) solid var(--jena-color-text-primary-default);
    border-radius: var(--jena-border-radius-sm);
    box-shadow: none;
}

/* Code elements */
pre code {
    padding: 0;
    font-size: 1em;
    background-color: transparent;
    border: none;
}

pre p {
    margin: 0;
    font-family: var(--jena-font-family-mono), monospace;
    white-space: pre-wrap;
}

