:root {
    --bg: #f0f0f0;
    --bg-white: #ffffff;
    --bg-nav: #dcdcdc;
    --text: #000000;
    --text-muted: #444444;
    --text-faint: #666666;
    --border: #999999;
    --border-dark: #666666;
    --link: #0000cc;
    --link-visited: #551a8b;
    --active-bg: #cccccc;

    --font-body: Verdana, Arial, Helvetica, sans-serif;
    --font-heading: "Times New Roman", Times, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 13px;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: bold;
}

a {
    color: var(--link);
}

a:visited {
    color: var(--link-visited);
}

/* Header */
.amts-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1rem;
}

.amts-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.amts-titles h1 {
    font-size: 22px;
    margin-bottom: 0.25rem;
}

.amts-motto {
    font-size: 13px;
    color: var(--text-muted);
}

.amts-back-link {
    flex-shrink: 0;
    font-size: 11px;
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 3px 8px;
    color: var(--text);
    white-space: nowrap;
}

.amts-back-link:hover {
    background: var(--active-bg);
    border-color: var(--border-dark);
}

.amts-back-link:visited {
    color: var(--text);
}

/* Tool content wrapper */
.tool-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    flex: 1;
    width: 100%;
}

.tool-content h1 {
    font-size: 18px;
    margin-bottom: 0.75rem;
}

.tool-content > p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    max-width: 70ch;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--bg-nav);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 11px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 11px;
}

.social-links a {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .amts-header-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
