/* --------------------------------------------------
   GLOBAL FONT + BASE
-------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* --------------------------------------------------
   TOP HEADER
-------------------------------------------------- */

.top-header {
    padding: 16px;
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* logo + title row */
.title-row {
    display: flex;
    align-items: center;
}

/* lock logo size */
.logo {
    width: 48px;
    height: auto;
    margin-right: 12px;
    margin-top: 4px;
}

/* shared left margin for all three lines */
.header-align {
    margin-left: 60px;
    color: #00264d;
}

/* line 1: Degree Not Required */
.site-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

/* lines 2 & 3: half size, same color, aligned */
.tagline-sub,
.tagline-legal {
    font-size: 10px;
    line-height: 1.2;
    margin: 0;
}

/* --------------------------------------------------
   SEARCH BAR
-------------------------------------------------- */

.search-bar {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 8px;
}

/* --------------------------------------------------
   ACCORDION LIST
-------------------------------------------------- */

.accordion-section {
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    background: #fff;
    cursor: pointer;
}

.accordion-panel {
    display: none;
    padding: 0 16px 12px 16px;
}

.accordion-panel.open {
    display: block;
}

.job-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
}

.job-item:hover {
    color: #003366;
}

/* --------------------------------------------------
   JOB DETAIL CARD
-------------------------------------------------- */

#job-container {
    padding: 20px;
}

.gov-job-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#job-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.gov-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}

.gov-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.gov-row span:last-child {
    font-size: 15px;
}

/* --------------------------------------------------
   BACK BUTTONS
-------------------------------------------------- */

.back-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.back-buttons button {
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    background: #003366;
    color: white;
    cursor: pointer;
}

.back-buttons button:hover {
    background: #00264d;
}

/* --------------------------------------------------
   MOBILE POLISH
-------------------------------------------------- */

@media (max-width: 600px) {

    body {
        font-size: 14px !important;
    }

    .site-title {
        font-size: 18px;
    }

    .tagline-sub,
    .tagline-legal {
        font-size: 10px;
    }

    .gov-job-card {
        padding: 16px;
        border-radius: 10px;
    }

    .gov-row {
        padding: 10px 0;
    }

    .gov-label {
        font-size: 12px;
    }

    .gov-row span:last-child {
        font-size: 14px;
    }

    .accordion-header {
        font-size: 16px;
        padding: 14px;
    }

    .job-item {
        font-size: 15px;
        padding: 10px 0;
    }

    /* Normalize details/summary and list indentation */
    details,
    summary {
        margin: 0;
        padding: 0;
    }

    summary {
        display: list-item;
        cursor: pointer;
    }

    details ul,
    details ol,
    ul,
    ol {
        margin-left: 0 !important;
        padding-left: 1rem !important;
        list-style-position: inside !important;
    }

    details li,
    ul li,
    ol li {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    ul ul,
    ol ol,
    ul ol,
    ol ul {
        padding-left: 1rem !important;
    }
}
