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

html, body { margin: 0; padding: 0; }

body {
    background: #e7eef6;
    color: #222;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

a { color: #1a4f9c; }
a:hover { color: #0d3270; }

img { border: 0; }

.skip {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip:focus {
    left: 8px;
    background: #fff;
    padding: 6px 8px;
    z-index: 5;
}

.stage {
    width: min(1040px, calc(100% - 12px));
    margin: 12px auto 28px;
    display: grid;
    grid-template-columns: minmax(48px, 120px) minmax(0, 760px) minmax(48px, 120px);
    column-gap: 10px;
    justify-content: center;
    align-items: start;
}

.col-main { width: 100%; max-width: 760px; min-width: 0; }

.sky { min-width: 0; }
.sky img {
    width: 100%;
    height: auto;
    aspect-ratio: 120 / 600;
    object-fit: cover;
    display: block;
    background: #f7f7f7;
}

.sheet {
    width: 760px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #111;
}

.top-slot, .mid-slot { text-align: center; margin: 8px 0 12px; }
.bottom-slot { text-align: center; margin: 12px 0 4px; }
.top-slot img,
.mid-slot img,
.bottom-slot img {
    width: min(468px, 100%);
    height: auto;
    aspect-ratio: 468 / 60;
    background: #f7f7f7;
    vertical-align: middle;
}

.wood {
    background-color: #9a5a28;
    background-image:
        repeating-linear-gradient(90deg, rgba(70, 32, 8, 0.18) 0 2px, transparent 2px 7px),
        repeating-linear-gradient(0deg, rgba(255, 224, 180, 0.16) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, #d18b48 0%, #b06a30 20%, #8d4e1c 46%, #c47b39 63%, #7a3f16 100%);
    padding: 16px 12px 12px;
    text-align: center;
}

.plaque {
    display: inline-block;
    max-width: calc(100% - 16px);
    background: linear-gradient(#ffffff, #f6f3ec);
    border: 1px solid #e5e0d6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    padding: 8px 36px 8px;
}

.wordmark {
    font-family: Impact, "Arial Black", Haettenschweiler, sans-serif;
    font-weight: 400;
    color: #c41212;
    font-size: 46px;
    letter-spacing: 1px;
    line-height: 0.95;
    text-shadow: 1px 1px 0 #8d1010;
}

.domain {
    margin-top: 4px;
    font-family: "Times New Roman", Times, serif;
    color: #6b3a1e;
    letter-spacing: 0.32em;
    font-size: 13px;
    text-indent: 0.32em;
    word-break: break-all;
}

.nav {
    background: #f7f7f7;
    border-top: 1px solid #111;
    border-bottom: 1px solid #ccc;
    text-align: center;
    padding: 6px 8px;
}

.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.sep { color: #222; padding: 0 5px; }

.sheet-body { padding: 12px 16px 6px; min-height: 160px; }

.footer {
    background: #65F527;
    color: #111;
    text-align: center;
    padding: 10px 8px 12px;
}
.footer a {
    color: #111;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
}
.footer a:hover { text-decoration: underline; }
.copy { margin-top: 6px; font-size: 12px; }

.member-layout { display: flex; align-items: flex-start; gap: 8px; }
.side { width: 150px; flex: 0 0 150px; padding-top: 6px; }
.side a { display: block; padding: 3px 4px; text-decoration: none; }
.side a:hover { text-decoration: underline; }
.side a.upgrade { margin-top: 8px; font-weight: bold; color: #8d1a1a; }
.main { flex: 1; min-width: 0; }

h1 {
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    margin: 6px 0 12px;
}
h2.subhead, .main h2, .sheet-body h2 {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    margin: 14px 0 8px;
}

.center { text-align: center; }
.promo { margin: 4px 0 2px; font-weight: bold; }
.muted { color: #555; font-size: 12px; }
.right { text-align: right; }

.premium-panel {
    background: #e5f3e1;
    border: 1px solid #b7d7b2;
    border-radius: 8px;
    padding: 8px 10px 10px;
    margin: 8px 0 14px;
}
.premium-panel > h2 {
    margin: 2px 6px 8px;
    font-size: 15px;
    font-weight: normal;
    color: #3f6b34;
    text-align: left;
}
.regular-panel {
    background: #fff8e7;
    border: 1px solid #eadcb4;
    border-radius: 8px;
    padding: 8px 10px 10px;
    margin: 8px 0 12px;
}
.regular-panel > h2 {
    margin: 2px 6px 8px;
    font-size: 15px;
    font-weight: normal;
    color: #8a6232;
    text-align: left;
}
.ad {
    border-radius: 5px;
    margin: 0 4px 8px;
    padding: 8px 10px;
}
.ad-premium, .premium-panel .empty {
    background: #eef8ea;
    border: 1px solid #d3e8cc;
}
.ad-regular, .regular-panel .empty {
    background: #fffdf8;
    border: 1px solid #f0e4c4;
}
.ad .stats { font-size: 12px; margin-top: 2px; }
.report-note {
    background: #eef5fb;
    border: 1px solid #d5e4f2;
    padding: 8px 10px;
    margin: 12px 4px;
}

.ok, .err, .note {
    padding: 8px 10px;
    margin: 8px 0;
}
.ok { background: #e8f6e8; border: 1px solid #8c8; }
.err { background: #fdeaea; border: 1px solid #c99; }
.note { background: #f6f6f6; border: 1px solid #ddd; }
.err ul { margin: 4px 0 4px 18px; padding: 0; }

.benefits {
    background: #f6f6f6;
    border: 1px solid #e4e4e4;
    padding: 8px 16px 10px;
    margin: 0 auto 12px;
    max-width: 560px;
}
.benefits h2 { font-size: 14px; margin: 8px 0 4px; text-align: left; }
.panel {
    border: 1px solid #e3e3e3;
    margin: 0 auto 12px;
    max-width: 640px;
}
.panel h1, .panel-head {
    background: #f3f3f3;
    margin: 0;
    padding: 8px;
    border-bottom: 1px solid #e3e3e3;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}
.panel-body { padding: 10px 8px 12px; }
.panel-foot {
    background: #f7f7f7;
    border-top: 1px solid #eee;
    text-align: center;
    padding: 10px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    padding: 3px 5px;
    border: 1px solid #888;
    max-width: 100%;
    box-sizing: border-box;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
select { width: 280px; }
textarea { width: 100%; min-height: 120px; }
textarea.tall { min-height: 260px; font-family: Consolas, "Courier New", monospace; font-size: 12px; }

button,
input[type="submit"],
.btn {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    background: #ececec;
    color: #222;
    border: 1px solid #888;
    padding: 3px 12px;
    cursor: pointer;
}
button:hover,
input[type="submit"]:hover { background: #e2e2e2; }

.form-table { width: 100%; border-collapse: collapse; }
.form-table td { padding: 6px 4px; vertical-align: middle; }
.form-table td.lbl { width: 40%; text-align: right; padding-right: 10px; white-space: nowrap; }

.data { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 14px; }
.data th, .data td { border: 1px solid #ddd; padding: 4px 6px; text-align: left; vertical-align: top; }
.data th { background: #f3f3f3; }
.data form { display: inline; margin: 0 2px; }

.admin-nav {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.8;
}
.admin-nav a { margin: 0 4px; white-space: nowrap; }
.checks label { display: block; margin: 4px 0; }
.preview-box { text-align: center; margin: 8px 0; }
.preview-box img { border: 1px solid #ccc; background: #fff; max-width: 100%; height: auto; }
code, .codebox {
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}
.codebox {
    display: block;
    width: 100%;
    min-height: 70px;
    border: 1px solid #ccc;
    padding: 6px;
    background: #fafafa;
    white-space: pre-wrap;
    word-break: break-all;
}
.solo { white-space: pre-wrap; background: #fff; border: 1px solid #eee; padding: 8px 10px; }
.pager { margin: 8px 0 4px; }
.pager a, .pager strong { margin: 0 4px; }
.steps { margin: 8px 0 8px 18px; padding: 0; }
.steps li { margin: 6px 0; }
.install-wrap {
    max-width: 760px;
    margin: 18px auto;
    background: #fff;
    border: 1px solid #111;
}
.install-wrap .sheet-body { padding: 16px 18px 20px; }

@media (max-width: 1040px) {
    .stage {
        width: calc(100% - 8px);
        column-gap: 6px;
        grid-template-columns: minmax(44px, 88px) minmax(0, 1fr) minmax(44px, 88px);
    }
    .sheet { width: 100%; }
    .wordmark { font-size: 32px; }
    .plaque { padding: 8px 14px; }
    .domain { letter-spacing: 0.12em; text-indent: 0; }
}

@media (max-width: 700px) {
    .member-layout { display: block; }
    .side {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 2px 10px;
        border-bottom: 1px solid #eee;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    .side a { display: inline; }
    .form-table td,
    .form-table td.lbl {
        display: block;
        width: auto;
        text-align: left;
        white-space: normal;
        padding: 2px 0;
    }
    .nav { line-height: 1.7; }
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="url"],
    input[type="number"],
    select { width: 100%; }
}
