/* =====================================================
   Roblox Discrepancy Organization - Global Stylesheet
   Link this on every page:
   <link rel="stylesheet" href="styles.css">
   ===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #d8d8d8;
    color: #202122;
}

/* =========================
   DIAGONAL STRIPE TEXTURE
   Outside the main box: normal stripes.
   Inside the main box: same stripes, barely visible.
   Tweak the variables below to adjust it.
   ========================= */

:root {
    --stripe-color: rgba(0, 0, 0, 0.04);        /* outside the box */
    --stripe-color-inner: rgba(0, 0, 0, 0.012); /* inside the box (barely visible) */
    --stripe-width: 6px;
    --stripe-gap: 14px;
    --stripe-angle: 45deg;
}

/* CUSTOM CURSOR
   cursor.png goes in the same folder as this file.
   Keep it small (32x32 is ideal, 128x128 is the max). */

*,
*::before,
*::after {
    cursor: url("cursor.png"), auto;
}

body {
    background-image: repeating-linear-gradient(
        var(--stripe-angle),
        var(--stripe-color) 0,
        var(--stripe-color) var(--stripe-width),
        transparent var(--stripe-width),
        transparent var(--stripe-gap)
    );
    background-attachment: fixed;
}

/* =========================
   MAIN SITE
   ========================= */

.site {
    width: 1100px;
    max-width: 92%;
    margin: 50px auto;
    background-color: white;
    background-image: repeating-linear-gradient(
        var(--stripe-angle),
        var(--stripe-color-inner) 0,
        var(--stripe-color-inner) var(--stripe-width),
        transparent var(--stripe-width),
        transparent var(--stripe-gap)
    );
    background-attachment: fixed; /* keeps stripes lined up with the background */
    border: 1px solid #a2a9b1;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* =========================
   SECTION 1 - HEADER
   ========================= */

.top-section {
    padding: 20px 30px;
    border-bottom: 1px solid #a2a9b1;
}

.top-section h1 {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: normal;
    margin: 0;
}

.top-section p {
    color: #54595d;
    margin: 5px 0 0;
    font-size: 13px;
}

/* =========================
   SECTION 2 - BUTTONS
   ========================= */

.button-section {
    padding: 12px 30px;
    border-bottom: 1px solid #a2a9b1;
    background: #f8f9fa;

    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0 14px;

    background: #eaecf0;
    border: 1px solid #a2a9b1;
    border-radius: 3px;

    color: #0645ad;
    font-size: 12px;
    text-decoration: none;
}

.nav-button:hover {
    background: #dfe1e4;
    text-decoration: none;
}

/* NAV BUTTONS (blend into the bar) */

.discrepancy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    padding: 0 14px;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;

    color: #0645ad;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;

    text-decoration: none;
    transition: background 0.1s, border-color 0.1s;
}

.discrepancy-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #c8ccd1;
    text-decoration: none;
}

.discrepancy-button:active {
    background: rgba(0, 0, 0, 0.09);
}

/* =========================
   SECTION 3 - CONTENT
   ========================= */

.content-section {
    display: flex;
}

/* SIDEBAR */

.sidebar {
    width: 190px;
    flex-shrink: 0;
    padding: 25px 20px;
    border-right: 1px solid #eaecf0;
    font-size: 13px;
}

.sidebar h3 {
    font-size: 13px;
    color: #54595d;
    margin: 0 0 6px;
}

.sidebar .category {
    margin-top: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin: 8px 0;
}

a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ARTICLE */

.article {
    flex: 1;
    padding: 25px 35px;
    min-width: 0;
}

.article h2 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 5px;
    margin-top: 28px;
}

.article h2:first-of-type {
    margin-top: 0;
}

.article p {
    line-height: 1.6;
}

/* INFOBOX */

.infobox {
    float: right;
    width: 270px;
    margin: 0 0 20px 25px;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    font-size: 13px;
}

.infobox-title {
    background: #eaecf0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox td {
    border-top: 1px solid #c8ccd1;
    padding: 7px;
    vertical-align: top;
}

.infobox td:first-child {
    font-weight: bold;
    width: 40%;
}

/* NOTICE */

.notice {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

/* FOOTER */

.footer {
    border-top: 1px solid #a2a9b1;
    padding: 15px 30px;
    color: #54595d;
    font-size: 12px;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 750px) {

    .site {
        width: 95%;
        margin: 20px auto;
    }

    .button-section {
        flex-wrap: wrap;
    }

    .content-section {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaecf0;
    }

    .article {
        padding: 20px;
    }

    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
}


/* =====================================================
   COMPONENTS (record pages + bulletin)
   ===================================================== */

/* current page markers */
.discrepancy-button.active { background: #fff; border-color: #a2a9b1; color: #202122; }
.sidebar a.current { color: #202122; font-weight: bold; }

/* breadcrumb */
.breadcrumb { font-size: 12px; color: #54595d; margin-bottom: 16px; }
.breadcrumb .sep { margin: 0 6px; color: #a2a9b1; }

/* badges */
.badge {
    display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: bold;
    letter-spacing: .04em; text-transform: uppercase;
    border: 1px solid #a2a9b1; border-radius: 3px; background: #f8f9fa; color: #54595d;
}
.badge-low      { background: #e6f4e6; border-color: #7fb87f; color: #1c5c1c; }
.badge-moderate { background: #fff4d6; border-color: #d9b44a; color: #7a5a00; }
.badge-high     { background: #fbe3e3; border-color: #d98080; color: #8a1c1c; }

/* record header */
.record-header {
    display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap;
    padding: 12px 14px; margin-bottom: 22px;
    background: #f8f9fa; border: 1px solid #c8ccd1; border-left: 4px solid #22b800;
}
.record-id { font-family: "Courier New", monospace; font-size: 20px; font-weight: bold; }
.record-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #54595d; }

/* contents box */
.toc { display: inline-block; min-width: 200px; margin: 0 0 20px; padding: 10px 16px; background: #f8f9fa; border: 1px solid #c8ccd1; font-size: 13px; }
.toc strong { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 3px 0; }

/* callout */
.callout { margin: 18px 0; padding: 10px 14px; font-size: 13px; line-height: 1.5; background: #f8f9fa; border: 1px solid #c8ccd1; border-left: 4px solid #a2a9b1; }
.callout-warning { background: #fff9e6; border-color: #e6d28a; border-left-color: #d9b44a; }

/* infobox extras (builds on .infobox) */
.infobox-media { padding: 10px; border-top: 1px solid #c8ccd1; }
.image-placeholder {
    display: flex; align-items: center; justify-content: center; text-align: center;
    width: 100%; aspect-ratio: 16 / 10; padding: 10px;
    background: repeating-linear-gradient(45deg, #eaecf0 0 8px, #f4f5f7 8px 16px);
    border: 1px solid #c8ccd1; color: #72777d; font-size: 12px;
}
.infobox img, .gallery img { display: block; width: 100%; height: auto; border: 1px solid #c8ccd1; }
.caption { font-size: 11px; color: #54595d; text-align: center; margin: 6px 0 0; }
.infobox td:first-child { background: #eaecf0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.gallery figure { margin: 0; padding: 8px; background: #f8f9fa; border: 1px solid #c8ccd1; }

/* prev / next */
.record-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 14px; border-top: 1px solid #c8ccd1; font-size: 13px; }

/* bulletin */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.stat { flex: 1; min-width: 120px; padding: 10px 14px; background: #f8f9fa; border: 1px solid #c8ccd1; }
.stat b { display: block; font-family: Georgia, serif; font-size: 24px; font-weight: normal; }
.stat span { font-size: 12px; color: #54595d; }

.record-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; border: 1px solid #a2a9b1; }
.record-table th { padding: 9px 14px; text-align: left; font-family: Georgia, serif; font-size: 14px; background: #eaecf0; border-bottom: 1px solid #a2a9b1; }
.record-table td { padding: 12px 14px; border-bottom: 1px solid #eaecf0; }
.record-table tr:last-child td { border-bottom: none; }
.record-table tbody tr:hover { background: #f8f9fa; }
.record-table .id { font-family: "Courier New", monospace; font-weight: bold; white-space: nowrap; width: 130px; }
.record-table .name a { font-weight: bold; }

/* ID format legend */
.id-format { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 14px 0; font-family: "Courier New", monospace; }
.id-part { padding: 8px 14px; text-align: center; background: #f8f9fa; border: 1px solid #c8ccd1; }
.id-part b { display: block; font-size: 20px; }
.id-part span { font-family: Arial, sans-serif; font-size: 11px; color: #54595d; }
.id-dash { align-self: center; color: #a2a9b1; font-size: 20px; }

/* quote */
.quote { margin: 20px 0; padding: 12px 18px; background: #f8f9fa; border-left: 4px solid #a2a9b1; font-family: Georgia, serif; font-size: 16px; line-height: 1.6; font-style: italic; }
.quote cite { display: block; margin-top: 8px; font: normal 12px Arial, Helvetica, sans-serif; color: #54595d; }

/* welcome (index) */
.welcome { margin-bottom: 24px; padding: 22px 26px; background: #f8f9fa; border: 1px solid #c8ccd1; border-left: 4px solid #22b800; }
.welcome h2 { margin: 0 0 8px; padding: 0; border: none; font-size: 26px; }
.welcome p { margin: 0 0 14px; font-size: 15px; }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 8px 16px; font-size: 13px; font-weight: bold; color: #fff; background: #22b800; border: 1px solid #176900; border-radius: 3px; }
.btn:hover { background: #31c900; text-decoration: none; }
.btn-secondary { color: #0645ad; background: #fff; border-color: #a2a9b1; }
.btn-secondary:hover { background: #f4f5f7; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 14px 0 24px; clear: both; }
.card { display: block; padding: 14px 16px; background: #fff; border: 1px solid #c8ccd1; color: #202122; }
.card:hover { border-color: #22b800; background: #f8f9fa; text-decoration: none; }
.card b { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 17px; font-weight: normal; color: #0645ad; }
.card span { font-size: 13px; color: #54595d; line-height: 1.4; }