/* Shared chrome for all tool pages.
   Tool pages link to this as ../tool-base.css
   and to the site theme as ../../theme.css       */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
}

.tool-header {
    background: var(--color-accent);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.tool-back {
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    white-space: nowrap;
}

.tool-back:hover {
    opacity: 1;
    text-decoration: underline;
}

.tool-header h1 {
    color: white;
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}