/* =========================================
   Legacy Styles (formerly basic.css)
   Preserved for sub-page print layouts
   ========================================= */

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #222;
    margin: 0px;
    line-height: 1.6;
}

h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 0px;
}

h2 {
    margin-bottom: 0px;
}

p {
    /*max-width: 700px;*/
    text-align: center;
    margin: 4px auto;
}

a {
    display: block;
    text-align: center;
    margin-top: 4px;
    font-size: 18px;
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.width30 {
    width: 30%;
}

.width50 {
    width: 50%;
}

.width70 {
    width: 70%;
}

.width100 {
    margin-left: 40px;
    width: 100%;
}

.tinynote {
    text-align: center;
    font-size: smaller;
}

.bordered {
    border: 1px solid black;
    margin-left: 10px;
    margin-right: 10px;
}

@media print {
    .no-print {
        display: none !important;
    }
}

.center-underline,
.modern-ui .center-underline {
    text-align: center;
    text-decoration: underline;
}

/* =========================================
   Modern UI Styles (formerly embedded in index.html)
   Scoped to .modern-ui to prevent leakage to legacy pages
   ========================================= */

:root {
    --bg: #fff;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --card: #f8fafc;
    --accent: #0ea5e9;
}

.modern-ui * {
    box-sizing: border-box;
}

/* Scoped global overwrites */
html.modern-ui,
body.modern-ui {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
}

.modern-ui a {
    color: inherit;
    text-decoration: none;
    /* Reset basic.css 'block' display if needed, though flex/grid usually handles it. 
       basic.css sets a { display: block; text-align: center; ... }. 
       index.html usage is mostly flex items or block items. 
       We should explicitly reset common properties from basic.css if they interfere. */
    display: inline;
    /* Default reset, though flex items ignore this */
    text-align: left;
    /* Reset */
    margin-top: 0;
    font-size: inherit;
}

.modern-ui a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}

.modern-ui h2 {
    font-size: 1.1rem;
    margin: 0 0 .6rem 0;
    color: #0b1324;
    text-align: left;
    /* Reset basic.css inheritance? basic.css doesn't align h2, inherits left usually. */
}

/* Component classes (Safe to utilize globally as subpages don't use them, 
   but keeping grouped for clarity) */

.container {
    max-width: 980px;
    margin: auto;
    padding: 24px;
}

header {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.title {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    margin: 0;
}

.sub {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.grid {
    display: grid;
    gap: 12px;
}

@media(min-width: 720px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media(min-width: 560px) {
    .list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 900px) {
    .list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Increased specificity to override .modern-ui a */
.modern-ui .item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* Ensure no underline */
    color: inherit;
    /* Ensure color */
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: transform .06s ease, box-shadow .06s ease;
}

.item:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 4px 12px rgba(2, 6, 23, .06);
}

/* Override basic.css print styles for modern UI if needed */
@media print {
    .modern-ui .item:hover {
        box-shadow: none;
        transform: none;
    }

    .modern-ui a {
        text-decoration: none;
    }
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
    flex-shrink: 0;
    display: inline-block;
}

/* Belt Colors */
.white .dot {
    background: #fff;
}

.orange .dot {
    background: #fb923c;
}

.yellow .dot {
    background: #fde047;
}

.green .dot {
    background: #22c55e;
}

.blue .dot {
    background: #3b82f6;
}

.red .dot {
    background: #ef4444;
}

.black .dot {
    background: #111827;
}

.stripe {
    background: linear-gradient(90deg, transparent 0 45%, #111827 45% 55%, transparent 55% 100%), var(--line);
}

footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: .9rem;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

nav.breadcrumbs {
    font-size: .9rem;
    color: var(--muted);
    margin: .2rem 0 1rem;
}

nav.breadcrumbs a {
    border-bottom: 1px dotted var(--line);
    display: inline;
    /* Reset basic.css */
}