:root {
    --purple: #5f2c64;
    --purple-dark: #45204a;
    --green: #4f8a35;
    --navy: #18365e;
    --gold: #efb83f;
    --ink: #25262a;
    --muted: #666b72;
    --paper: #ffffff;
    --bg: #eef0f2;
    --line: #d8dade;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
a { color: #1c5a96; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid #ddd; }
.masthead { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: min(330px, 68vw); height: auto; display: block; }
.strapline { color: var(--purple); font-size: 17px; font-style: italic; white-space: nowrap; }
.nav-bar { background: var(--purple); border-bottom: 5px solid var(--green); }
.nav-inner { display: flex; gap: 0; }
.nav-inner a { color: #fff; text-decoration: none; padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.22); font-weight: bold; }
.nav-inner a:hover { background: var(--purple-dark); }
.main-content { padding: 30px 0 52px; min-height: 62vh; }
.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #fff 63%, #f3eee7 100%);
    border: 1px solid var(--line);
    padding: 34px 38px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: bold; color: var(--green); }
h1 { margin: 4px 0 12px; font-size: 34px; line-height: 1.15; color: var(--navy); }
.hero-lead { font-size: 18px; max-width: 650px; margin: 0; }
.giraffe-card { height: 190px; position: relative; justify-self: center; width: 120px; }
.giraffe-neck { position: absolute; width: 37px; height: 148px; background: #f3bd3f; border: 3px solid #8c581f; left: 41px; bottom: 0; border-radius: 18px 18px 7px 7px; }
.giraffe-head { position: absolute; width: 74px; height: 52px; background: #f3bd3f; border: 3px solid #8c581f; left: 22px; top: 3px; border-radius: 48% 48% 42% 42%; }
.giraffe-head:before, .giraffe-head:after { content: ''; position: absolute; width: 10px; height: 19px; background: #8c581f; top: -16px; border-radius: 8px; }
.giraffe-head:before { left: 14px; transform: rotate(-11deg); }
.giraffe-head:after { right: 14px; transform: rotate(11deg); }
.spot { position: absolute; background: #88501e; border-radius: 50%; z-index: 2; }
.s1 { width: 13px; height: 16px; left: 50px; top: 65px; }
.s2 { width: 11px; height: 12px; left: 69px; top: 93px; }
.s3 { width: 14px; height: 15px; left: 48px; top: 118px; }
.s4 { width: 10px; height: 13px; left: 67px; top: 145px; }
.notice { margin: 22px 0; padding: 14px 18px; border: 1px solid #dec880; background: #fff7d9; }
.panel, .mini-panel { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.panel { padding: 28px 32px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 4px solid var(--purple); padding-bottom: 10px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; color: var(--navy); }
.legacy-badge { background: #e8e8e8; border: 1px solid #bbb; padding: 4px 8px; font: bold 11px/1 Arial; letter-spacing: .08em; }
.lookup-form label { display: block; font-weight: bold; margin-bottom: 7px; }
.lookup-row { display: flex; gap: 10px; }
.lookup-row input { flex: 1; min-width: 0; font-size: 18px; padding: 12px 14px; border: 1px solid #8d9197; }
button, .button-link, .statement-button { display: inline-block; border: 0; background: var(--green); color: #fff; font-weight: bold; padding: 12px 18px; text-decoration: none; cursor: pointer; }
button:hover, .button-link:hover, .statement-button:hover { background: #3e712a; }
.hint, .small { font-size: 13px; color: var(--muted); }
.three-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.mini-panel { padding: 20px; }
.mini-panel h3 { color: var(--purple); margin-top: 0; }
.status { display: inline-block; font-size: 13px; font-weight: bold; padding: 6px 10px; margin-bottom: 8px; }
.status-ok { color: #285d26; background: #e5f4e2; border: 1px solid #aad0a6; }
.status-error { color: #812d2d; background: #f9e4e4; border: 1px solid #e5adad; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
address { font-style: normal; font-size: 16px; }
.account-meta { display: grid; grid-template-columns: 150px 1fr; margin: 0; align-content: start; }
.account-meta dt, .account-meta dd { padding: 8px 0; border-bottom: 1px solid #e2e2e2; margin: 0; }
.account-meta dt { color: var(--muted); }
.account-meta dd { font-weight: bold; }
.section-title { color: var(--navy); border-bottom: 3px solid var(--purple); padding-bottom: 8px; margin-top: 32px; }
.statement-list { border: 1px solid var(--line); }
.statement-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.statement-row:last-child { border-bottom: 0; }
.statement-row strong { display: block; }
.statement-row span { color: var(--muted); font-size: 13px; }
.unavailable { border: 1px solid #ccc; background: #f3f3f3; padding: 8px 10px; white-space: nowrap; }
.archive-footnote { margin-top: 22px; padding: 14px; background: #f5f5f5; border-left: 4px solid var(--navy); }
.prose h2 { color: var(--purple); margin-top: 28px; }
.not-found { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 28px; background: #fff; border: 1px solid var(--line); padding: 40px; }
.nf-giraffe { font-size: 120px; text-align: center; }
.site-footer { background: #26282b; color: #eee; border-top: 6px solid var(--purple); padding: 28px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-right { text-align: right; }
.legacy-console { border-top: 8px solid #333; background: #f4f1e9; font-family: 'Courier New', monospace; }
.console-title { background: #272727; color: #f2f2f2; padding: 12px 14px; font-weight: bold; letter-spacing: .05em; }
.console-warning { margin: 14px 0; color: #8b2222; font-weight: bold; }
.console-table { width: 100%; border-collapse: collapse; background: #fff; }
.console-table th, .console-table td { border: 1px solid #aaa; padding: 10px; text-align: left; }
.console-table th { background: #ddd8ca; }
.green-dot { color: #238323; }
.console-log { background: #1d211e; color: #bde9bd; padding: 16px; margin-top: 18px; }
.muted { color: var(--muted); }

@media (max-width: 720px) {
    .strapline { display: none; }
    .hero { grid-template-columns: 1fr; padding: 26px 22px; }
    .giraffe-card { display: none; }
    .nav-inner { overflow-x: auto; }
    .nav-inner a { white-space: nowrap; padding: 11px 13px; font-size: 14px; }
    .three-cols, .account-grid, .footer-grid { grid-template-columns: 1fr; }
    .footer-right { text-align: left; }
    .lookup-row { flex-direction: column; }
    .statement-row { align-items: flex-start; flex-direction: column; }
    .account-meta { grid-template-columns: 130px 1fr; }
    .not-found { grid-template-columns: 1fr; }
    .nf-giraffe { font-size: 90px; }
}

.more-info-box {
    margin-top: 22px;
    padding: 17px 18px;
    border: 1px solid #d6d6d6;
    background: #fafafa;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
.more-info-box strong { color: var(--navy); }
.more-info-box span { flex: 1 1 380px; }
.more-info-box a { font-weight: bold; }
.detective-message { text-align: center; padding-top: 45px; padding-bottom: 48px; }
.detective-message .big-message { font-size: 20px; }
.stats-login { max-width: 620px; margin: 0 auto; }
.stats-login-form { display: grid; gap: 10px; max-width: 380px; }
.stats-login-form input { font-size: 18px; padding: 11px 12px; border: 1px solid #8d9197; }
.stats-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.stats-heading h1 { margin-bottom: 5px; }
.stats-heading p { margin-top: 0; }
.secondary-button { background: #666b72; }
.secondary-button:hover { background: #4e5358; }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--purple); padding: 16px; box-shadow: 0 2px 7px rgba(0,0,0,.05); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; min-height: 36px; }
.stat-card strong { display: block; color: var(--navy); font-size: 31px; line-height: 1.1; margin-top: 4px; }
.stats-panel { margin-bottom: 22px; }
.stats-table-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { border-bottom: 1px solid #ddd; padding: 9px 10px; text-align: left; vertical-align: top; }
.stats-table th { background: #f1f1f1; color: var(--navy); }
.reset-panel { border-left: 5px solid #9e3636; }
.reset-panel h2 { margin-top: 0; color: #7f2828; }
.danger-button { background: #9e3636; }
.danger-button:hover { background: #7f2828; }
@media (max-width: 760px) {
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
    .stats-heading { flex-direction: column; }
}
