:root{
    --ink:#122435;
    --muted:#687b8d;
    --navy:#0a2745;
    --navy2:#123d66;
    --navy3:#071a2f;
    --green:#16a574;
    --green2:#0c7e59;
    --green-soft:#eaf8f2;
    --line:#d6e0e8;
    --paper:#ffffff;
    --bg:#edf2f6;
    --shadow:0 18px 50px rgba(7,26,47,.13);
}

*{box-sizing:border-box}

html{min-height:100%}

body{
    margin:0;
    min-height:100vh;
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:var(--ink);
    background:
        linear-gradient(rgba(10,39,69,.025) 1px, transparent 1px),
        linear-gradient(90deg,rgba(10,39,69,.025) 1px, transparent 1px),
        var(--bg);
    background-size:32px 32px;
}

.wrap{
    width:min(1180px,calc(100% - 36px));
    margin:0 auto;
}

/* HEADER */

header{
    background:var(--navy3);
    border-bottom:1px solid rgba(255,255,255,.08);
    color:#fff;
}

header .wrap{
    padding:18px 0;
}

nav{
    display:flex;
    align-items:center;
    gap:28px;
    flex-wrap:wrap;
}

nav a{
    color:#dce7ef;
    text-decoration:none;
    font-weight:750;
    font-size:14px;
}

nav a:hover{color:#fff}

.brand{
    margin-right:auto;
    color:#fff!important;
    font-size:24px!important;
    font-weight:850!important;
    letter-spacing:-.4px;
}

/* MAIN */

main{
    padding:0 0 48px;
}

/* HERO */

.database-hero{
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at 80% 20%,rgba(32,170,121,.15),transparent 26%),
        linear-gradient(135deg,var(--navy3) 0%,var(--navy) 58%,var(--navy2) 100%);
    color:#fff;
    margin-bottom:0;
}

.database-hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:38px 38px;
    opacity:.45;
}

.hero-grid{
    position:relative;
    z-index:1;
    width:min(1180px,calc(100% - 36px));
    margin:0 auto;
    display:grid;
    grid-template-columns:1.45fr .75fr;
    align-items:center;
    gap:50px;
    min-height:400px;
    padding:54px 0 70px;
}

.hero-label{
    display:inline-block;
    margin-bottom:18px;
    padding:7px 10px;
    border:1px solid rgba(119,226,186,.38);
    background:rgba(22,165,116,.10);
    color:#8ee4c3;
    border-radius:999px;
    font-size:11px;
    font-weight:850;
    letter-spacing:.11em;
}

.database-hero h1{
    margin:0 0 18px;
    color:#fff;
    font-size:clamp(39px,5vw,60px);
    line-height:1.02;
    letter-spacing:-1.8px;
    font-weight:900;
}

.database-hero p{
    max-width:760px;
    margin:0;
    color:#cbd9e4;
    font-size:17px;
    line-height:1.65;
}

.hero-points{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:25px;
}

.hero-points span{
    padding:8px 11px;
    border-radius:8px;
    background:rgba(255,255,255,.065);
    border:1px solid rgba(255,255,255,.10);
    color:#e9f2f8;
    font-size:12px;
    font-weight:750;
}

.hero-mark{
    position:relative;
    min-height:270px;
    display:grid;
    place-items:center;
}

.hero-mark-ring{
    position:absolute;
    border-radius:50%;
    border:1px solid rgba(118,224,185,.32);
}

.ring-1{
    width:240px;
    height:240px;
}

.ring-2{
    width:180px;
    height:180px;
    border-color:rgba(255,255,255,.16);
}

.hero-mark-core{
    position:relative;
    z-index:2;
    width:118px;
    height:118px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#1db17f,#0f7f5a);
    box-shadow:0 0 0 12px rgba(22,165,116,.10),0 20px 40px rgba(0,0,0,.25);
    font-size:30px;
    font-weight:900;
    letter-spacing:.06em;
}

.hero-mark-caption{
    position:absolute;
    bottom:0;
    text-align:center;
    color:#9fb7ca;
    font-size:10px;
    letter-spacing:.08em;
    font-weight:800;
}

/* SEARCH CONSOLE */

.search-console{
    position:relative;
    z-index:5;
    width:min(1180px,calc(100% - 36px));
    margin:-34px auto 0;
    background:#fff;
    border:1px solid #d7e0e7;
    border-top:4px solid var(--green);
    border-radius:16px;
    padding:26px;
    box-shadow:var(--shadow);
}

.search-console-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:22px;
}

.section-kicker{
    display:block;
    color:var(--green2);
    font-size:11px;
    letter-spacing:.11em;
    font-weight:900;
    margin-bottom:5px;
}

.search-console h2,
.results-section h2,
.empty-panel h2{
    margin:0;
    color:var(--navy);
    font-size:27px;
    font-weight:900;
    letter-spacing:-.5px;
}

.report-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 15px;
    border-radius:8px;
    background:var(--navy);
    color:#fff;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 5px 14px rgba(10,39,69,.18);
}

.search-row{
    display:grid;
    grid-template-columns:1fr .55fr .75fr;
    gap:16px;
    margin-top:16px;
}

.search-row-top{
    grid-template-columns:1.5fr .7fr;
    margin-top:0;
}

.field label{
    display:block;
    margin:0 0 7px;
    color:#28445b;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.055em;
}

input,select,textarea{
    width:100%;
    min-height:50px;
    padding:12px 14px;
    border:1px solid #c7d3dc;
    border-radius:9px;
    background:#fdfefe;
    color:var(--ink);
    font:inherit;
    box-shadow:inset 0 1px 2px rgba(7,26,47,.035);
}

input:focus,select:focus,textarea:focus{
    outline:none;
    border-color:#3474a3;
    box-shadow:0 0 0 3px rgba(52,116,163,.12);
}

textarea{
    min-height:120px;
    resize:vertical;
}

::placeholder{color:#8a99a6}

.search-actions{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.search-primary,
button,
.btn{
    min-height:46px;
    padding:11px 18px;
    border:0;
    border-radius:8px;
    background:linear-gradient(180deg,#1aae7c,#0f7f5a);
    color:#fff;
    font-weight:900;
    text-decoration:none;
    cursor:pointer;
    box-shadow:0 6px 15px rgba(22,165,116,.22);
}

.search-clear{
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    border:1px solid #c7d3dc;
    border-radius:8px;
    background:#fff;
    color:#5e7182;
    text-decoration:none;
    font-weight:800;
}

/* INTEGRITY BAND */

.integrity-band{
    width:min(1180px,calc(100% - 36px));
    margin:18px auto 34px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

.integrity-band article{
    display:grid;
    grid-template-columns:52px 1fr;
    gap:12px;
    align-items:center;
    padding:18px;
    background:rgba(255,255,255,.78);
    border:1px solid #d8e1e8;
    border-radius:12px;
    box-shadow:0 7px 18px rgba(7,26,47,.045);
}

.integrity-number{
    font-size:26px;
    font-weight:900;
    color:#b2c0cb;
    letter-spacing:-1px;
}

.integrity-band h3{
    margin:0 0 3px;
    color:var(--navy);
    font-size:15px;
}

.integrity-band p{
    margin:0;
    color:var(--muted);
    font-size:12px;
    line-height:1.45;
}

/* RESULTS */

.results-section{
    width:min(1180px,calc(100% - 36px));
    margin:0 auto;
}

.results-header{
    margin-bottom:13px;
}

.report-grid{
    display:grid;
    gap:15px;
}

.report-card{
    overflow:hidden;
    background:#fff;
    border:1px solid #d7e0e7;
    border-radius:13px;
    box-shadow:0 8px 23px rgba(7,26,47,.065);
}

.report-card-top{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:11px 18px;
    background:linear-gradient(90deg,#0d2d4d,#153f67);
    color:#dbe8f2;
    font-size:11px;
    font-weight:850;
    letter-spacing:.05em;
}

.report-card-body{
    padding:20px 22px 18px;
}

.entity-line{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.entity-line h3{
    margin:0;
    color:var(--navy);
    font-size:24px;
}

.entity-type{
    padding:5px 8px;
    border-radius:999px;
    background:var(--green-soft);
    color:var(--green2);
    border:1px solid #caeadf;
    font-size:11px;
    font-weight:850;
}

.report-card-body p{
    color:#4e6273;
    line-height:1.6;
    margin:13px 0 16px;
}

.report-facts{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    padding-top:14px;
    border-top:1px solid #e4eaf0;
}

.report-facts span{
    display:block;
    margin-bottom:4px;
    color:#8292a0;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
}

.report-facts strong{
    color:#314b60;
    font-size:13px;
}

.report-card-footer{
    display:flex;
    justify-content:flex-end;
    padding:12px 18px;
    background:#f7f9fb;
    border-top:1px solid #e2e8ed;
}

.report-card-footer a{
    color:var(--navy);
    text-decoration:none;
    font-size:12px;
    font-weight:900;
}

/* EMPTY */

.empty-panel{
    width:min(1180px,calc(100% - 36px));
    margin:0 auto;
    padding:42px;
    text-align:center;
    background:#fff;
    border:1px solid #d7e0e7;
    border-radius:14px;
    box-shadow:0 9px 26px rgba(7,26,47,.065);
}

.empty-badge{
    display:inline-block;
    margin-bottom:12px;
    padding:6px 9px;
    border-radius:999px;
    background:var(--green-soft);
    color:var(--green2);
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
}

.empty-panel p{
    max-width:690px;
    margin:10px auto 18px;
    color:var(--muted);
}

.empty-action{
    display:inline-flex;
    padding:11px 16px;
    border-radius:8px;
    background:var(--navy);
    color:#fff;
    text-decoration:none;
    font-weight:850;
}

/* SHARED PAGES */

.card{
    background:#fff;
    border:1px solid #d7e0e7;
    border-radius:14px;
    padding:28px 30px;
    margin-bottom:24px;
    box-shadow:0 10px 28px rgba(7,26,47,.07);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:18px;
}

label{
    display:block;
    margin:13px 0 6px;
    color:#28445b;
    font-size:13px;
    font-weight:850;
}

.notice{
    padding:15px 17px;
    border-left:4px solid var(--green);
    background:#eaf8f2;
    color:#175b43;
    border-radius:8px;
}

.error{
    padding:15px 17px;
    border-left:4px solid #a61b1b;
    background:#fff0f0;
    color:#a61b1b;
    border-radius:8px;
}

table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
    border:1px solid #d7e0e7;
    border-radius:10px;
    overflow:hidden;
}

th,td{
    padding:12px 14px;
    border-bottom:1px solid #e2e8ed;
    text-align:left;
}

th{
    background:#eef3f6;
    color:var(--navy);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.small{font-size:12px}
.muted{color:var(--muted)}

footer{
    width:min(1180px,calc(100% - 36px));
    margin:30px auto 0;
    padding:20px 0 32px;
    color:#728494;
    font-size:12px;
    border-top:1px solid #d7e0e7;
}

/* RESPONSIVE */

@media(max-width:900px){
    .hero-grid{
        grid-template-columns:1fr;
    }
    .hero-mark{
        display:none;
    }
    .search-row,
    .search-row-top{
        grid-template-columns:1fr 1fr;
    }
    .integrity-band{
        grid-template-columns:1fr;
    }
}

@media(max-width:650px){
    .brand{
        width:100%;
        margin-bottom:4px;
    }

    .hero-grid{
        padding:38px 0 58px;
    }

    .database-hero h1{
        font-size:38px;
    }

    .search-console{
        padding:20px;
    }

    .search-console-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .search-row,
    .search-row-top{
        grid-template-columns:1fr;
    }

    .search-actions{
        flex-direction:column;
    }

    .search-primary,
    .search-clear{
        width:100%;
    }

    .report-facts{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   CHECKBOX / CONSENT FIX
========================================================= */

.inline {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    width: 100%;
    margin: 14px 0;
}

.inline input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    border-radius: 3px;
    box-shadow: none !important;
    flex: none;
}

.consent-card {
    padding: 22px 24px;
}

.consent-card label.inline {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--navy);
}


/* REPORTER ACCOUNT CONTROLS */

.account-card{
    max-width:720px;
    margin:40px auto;
}

.account-heading{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    flex-wrap:wrap;
}

.password-wrap{
    position:relative;
}

.password-wrap input{
    padding-right:54px;
}

.password-toggle{
    position:absolute;
    top:50%;
    right:8px;
    transform:translateY(-50%);
    width:40px !important;
    min-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:7px !important;
    background:transparent !important;
    color:var(--navy) !important;
    box-shadow:none !important;
    font-size:20px;
}

.password-toggle:hover{
    transform:translateY(-50%) !important;
    background:#eef4f8 !important;
    box-shadow:none !important;
}

.login-help-row{display:flex;justify-content:flex-end;margin-top:7px}
.login-help-row a{font-size:13px;font-weight:800;color:var(--navy);text-decoration:none}
.login-help-row a:hover{text-decoration:underline}

/* 2026-10-05 FIXES — secondary / danger buttons */
.btn.secondary,
button.secondary{
    background:#fff !important;
    color:var(--navy) !important;
    border:1px solid #c7d3dc !important;
    box-shadow:none !important;
}
.btn.danger,
button.danger{
    background:#fff !important;
    color:#a61b1b !important;
    border:1px solid #e3b4b4 !important;
    box-shadow:none !important;
}
.btn.danger:hover,
button.danger:hover{background:#fff0f0 !important}
.small-btn{
    min-height:32px !important;
    padding:5px 12px !important;
    font-size:13px !important;
}

/* 2026-10-05 B — adding file picker */
.file-picker .fp-count{margin-left:12px}
.fp-list{list-style:none;margin:12px 0 0;padding:0}
.fp-list li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    margin-bottom:6px;
    border:1px solid #d7e0e7;
    border-radius:8px;
    background:#fff;
}
.fp-list li.fp-bad{border-color:#e3b4b4;background:#fff0f0;color:#a61b1b}
.fp-name{word-break:break-word}
