:root {
    --aksim-record-green: #176b5b;
    --aksim-record-dark: #16562a;
    --aksim-record-orange: #ed9105;
    --aksim-record-gold: #ecbf15;
    --aksim-record-text: #000;
    --aksim-record-border: #b7c0c4;
    --aksim-record-alt: #f3f4f5;
    --aksim-record-bg: #f6f7f7;
}

/* Remove only the duplicate Kadence/site-branding header on both records pages. */
.aksim-records-public-page #masthead,
.aksim-records-public-page .site-header-wrap,
.aksim-records-public-page .site-main-header-wrap,
.aksim-records-public-page .kadence-sticky-header {
    display: none !important;
}

.aksim-records-public-page .entry-title,
.aksim-records-public-page .page-title {
    display: none !important;
}

.aksim-records-public-page .content-area,
.aksim-records-public-page .site-main,
.aksim-records-public-page .entry-content-wrap,
.aksim-records-public-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.aksim-records-public-page .content-container {
    max-width: none !important;
    padding: 0 !important;
}

.aksim-records-page,
.aksim-records-page * {
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

.aksim-records-page {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--aksim-record-text);
    background: var(--aksim-record-bg);
}

.aksim-records-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) minmax(240px, 280px);
    gap: 24px;
    align-items: start;
    width: min(1204px, calc(100% - 24px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.aksim-records-main {
    min-width: 0;
}

.aksim-records-hero {
    padding: 22px 24px 20px;
    border: 1px solid #d8dde0;
    border-top: 4px solid var(--aksim-record-green);
    border-radius: 4px;
    background: #fff;
}

.aksim-records-eyebrow {
    display: inline-block;
    margin: 0 0 7px;
    padding: 4px 7px;
    border-radius: 3px;
    background: #e8f2ef;
    color: #000;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.aksim-records-hero h1 {
    margin: 0;
    color: #111;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.13;
    text-align: left;
}

.aksim-records-hero > p:last-child {
    max-width: 760px;
    margin: 9px 0 0;
    color: #333;
    font-size: .85rem;
    line-height: 1.55;
}

.aksim-records-shell {
    width: 100%;
    margin: 18px 0 0;
}

.aksim-verification-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--aksim-record-green);
    border-radius: 3px;
    background: #fff;
}

.aksim-verification-form--single {
    grid-template-columns: 1fr auto;
}

.aksim-field label {
    display: block;
    margin: 0 0 5px;
    color: #000;
    font-size: .75rem;
    font-weight: 800;
}

.aksim-field input {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--aksim-record-border);
    border-radius: 3px;
    background: #fff;
    color: #000;
    font-size: .86rem;
}

.aksim-field input:focus {
    outline: 3px solid rgba(236, 191, 21, .35);
    border-color: var(--aksim-record-dark);
}

.aksim-button,
.aksim-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid var(--aksim-record-dark);
    border-radius: 3px;
    background: var(--aksim-record-dark);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.aksim-button:hover,
.aksim-print-button:hover {
    background: #3d7431;
}

.aksim-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
}

.aksim-notice {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #bb2d3b;
    border-radius: 3px;
    background: #fff1f2;
    color: #690a13;
    font-size: .78rem;
    font-weight: 700;
}

.aksim-verification-result {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--aksim-record-green);
    border-radius: 3px;
    background: #fff;
}

.aksim-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    background: var(--aksim-record-green);
    color: #fff;
}

.aksim-result-header h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

.aksim-status {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.aksim-status--active { background: #eaf8e3; }
.aksim-status--expired { background: #fff0d8; }
.aksim-status--suspended { background: #ffe1e1; }

.aksim-print-button {
    min-height: 34px;
    border-color: #fff;
    background: #fff;
    color: #000;
}

.aksim-student-summary {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.aksim-student-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 18px;
    border-right: 1px solid var(--aksim-record-border);
    background: #f7f8f4;
}

.aksim-student-photo img {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.aksim-student-photo span {
    display: flex;
    width: 120px;
    height: 120px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f2ef;
    font-size: 3rem;
    font-weight: 800;
}

.aksim-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.aksim-records-table,
.aksim-marks-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #000;
}

.aksim-records-table th,
.aksim-records-table td,
.aksim-marks-table th,
.aksim-marks-table td {
    padding: 8px 10px;
    border: 1px solid var(--aksim-record-border);
    color: #000;
    font-size: .75rem;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
}

.aksim-records-table th {
    width: 34%;
    background: #f3f4f5;
    font-weight: 800;
}

.aksim-records-table tr:nth-child(even) td { background: #fafafa; }

.aksim-marks-section {
    padding: 16px;
    border-top: 1px solid var(--aksim-record-border);
}

.aksim-marks-section > h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.aksim-marks-card {
    margin-top: 12px;
    border: 1px solid var(--aksim-record-border);
}

.aksim-marks-card h3 {
    margin: 0;
    padding: 8px 10px;
    background: #e8f2ef;
    color: #000;
    font-size: .78rem;
}

.aksim-marks-table th {
    background: var(--aksim-record-green);
    color: #fff;
}

.aksim-marks-table td { text-align: center; }
.aksim-marks-table th:first-child { width: 110px; }
.aksim-institution-verification .aksim-verification-result > .aksim-table-wrap { padding: 0; }

/* Right sidebar: same two contact forms used by the homepage manager. */
.aksim-records-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.aksim-records-sidebar .aksim-hpm-form-card,
.aksim-records-sidebar-contact,
.aksim-records-sidebar-note {
    overflow: hidden;
    border: 1px solid var(--aksim-record-green);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(22, 86, 42, .07);
}

.aksim-records-sidebar .aksim-hpm-form-card__header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    background: var(--aksim-record-dark);
    color: #fff;
}

.aksim-records-sidebar .aksim-hpm-form-card__header > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--aksim-record-orange);
    color: #111;
    font-size: .72rem;
    font-weight: 800;
}

.aksim-records-sidebar .aksim-hpm-form-card h2,
.aksim-records-sidebar-contact h2,
.aksim-records-sidebar-note h2 {
    margin: 0;
    color: inherit;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.2;
}

.aksim-records-sidebar .aksim-hpm-form-card form {
    display: grid;
    gap: 9px;
    padding: 12px;
}

.aksim-records-sidebar .aksim-hpm-form-card label {
    display: grid;
    gap: 4px;
    color: #111;
    font-size: .67rem;
    font-weight: 750;
}

.aksim-records-sidebar .aksim-hpm-form-card label > span { color: #b32222; }

.aksim-records-sidebar .aksim-hpm-form-card input,
.aksim-records-sidebar .aksim-hpm-form-card textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #bcc8b8;
    border-radius: 3px;
    background: #fff;
    color: #111;
    font: 400 .72rem/1.35 Inter, Arial, sans-serif;
    outline: 0;
}

.aksim-records-sidebar .aksim-hpm-form-card input { height: 34px; }
.aksim-records-sidebar .aksim-hpm-form-card textarea { min-height: 78px; resize: vertical; }

.aksim-records-sidebar .aksim-hpm-form-card input:focus,
.aksim-records-sidebar .aksim-hpm-form-card textarea:focus {
    border-color: var(--aksim-record-green);
    box-shadow: 0 0 0 3px rgba(61, 116, 49, .12);
}

.aksim-records-sidebar .aksim-hpm-form-card button {
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 3px;
    background: var(--aksim-record-orange);
    color: #111;
    font: 800 .68rem/1.2 Inter, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .025em;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.aksim-records-sidebar .aksim-hpm-form-card button:hover {
    background: var(--aksim-record-gold);
    transform: translateY(-1px);
}

.aksim-records-sidebar .aksim-hpm-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.aksim-records-sidebar .aksim-hpm-form-message {
    margin: 10px 12px 0;
    padding: 8px;
    border-radius: 3px;
    font-size: .68rem;
}

.aksim-records-sidebar .aksim-hpm-form-message.is-success { background: #eaf6e6; color: #123f22; }
.aksim-records-sidebar .aksim-hpm-form-message.is-error { background: #fff1ef; color: #7b1d16; }

.aksim-records-sidebar-contact,
.aksim-records-sidebar-note {
    padding: 14px;
    border-color: #ddc974;
    background: #fff9e8;
}

.aksim-records-sidebar-contact h2,
.aksim-records-sidebar-note h2 {
    margin-bottom: 7px;
    color: #111;
}

.aksim-records-sidebar-contact p,
.aksim-records-sidebar-note p,
.aksim-records-sidebar-contact address {
    margin: 0 0 8px;
    color: #333;
    font-size: .7rem;
    font-style: normal;
    line-height: 1.5;
}

.aksim-records-sidebar-contact a {
    display: block;
    color: #111;
    font-size: .7rem;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.aksim-records-sidebar-contact a:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .aksim-records-layout {
        grid-template-columns: minmax(0, 1fr);
        width: min(900px, calc(100% - 20px));
    }

    .aksim-records-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aksim-records-sidebar-contact,
    .aksim-records-sidebar-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .aksim-records-layout {
        width: calc(100% - 10px);
        padding: 14px 0 34px;
        gap: 16px;
    }

    .aksim-records-hero {
        padding: 18px 10px 16px;
    }

    .aksim-records-hero h1 { font-size: 1.48rem; }
    .aksim-records-shell { margin-top: 14px; }

    .aksim-verification-form,
    .aksim-verification-form--single {
        grid-template-columns: 1fr;
        padding: 11px;
        gap: 10px;
    }

    .aksim-button { width: 100%; }
    .aksim-result-header { align-items: flex-start; flex-direction: column; }
    .aksim-student-summary { grid-template-columns: 1fr; }

    .aksim-student-photo {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--aksim-record-border);
    }

    .aksim-records-table th,
    .aksim-records-table td,
    .aksim-marks-table th,
    .aksim-marks-table td {
        padding: 6px 5px;
        font-size: .64rem;
    }

    .aksim-records-table th { width: 38%; }
    .aksim-marks-table th:first-child { width: 74px; }

    .aksim-records-sidebar {
        grid-template-columns: 1fr;
    }

    .aksim-records-sidebar-contact,
    .aksim-records-sidebar-note {
        grid-column: auto;
    }
}

@media print {
    body * { visibility: hidden; }
    .aksim-verification-result,
    .aksim-verification-result * { visibility: visible; }
    .aksim-verification-result {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        border: 0;
    }
    .aksim-print-button { display: none !important; }
}

/* v1.0.3: align the shared institutional masthead and navigation with the
   1220px Homepage Manager shell on both Records Manager public pages. */
@media (min-width: 768px) {
    .aksim-records-public-page .aksim-institutional-banner {
        background: #fff;
        border-bottom: 0;
    }

    .aksim-records-public-page .aksim-institutional-banner__inner {
        width: min(1220px, calc(100% - 32px));
        min-height: 0;
        margin-inline: auto;
        padding: 0;
        background: #fff;
    }

    .aksim-records-public-page .aksim-institutional-banner__inner picture {
        display: block;
        width: 100%;
        max-width: none;
    }

    .aksim-records-public-page .aksim-institutional-banner__image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }

    .aksim-records-public-page .aksim-brand-nav {
        background: #fff;
        box-shadow: none;
    }

    .aksim-records-public-page .aksim-brand-nav__inner {
        display: flex;
        width: min(1220px, calc(100% - 32px));
        min-height: 0;
        margin-inline: auto;
        padding-inline: 8px;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        background: linear-gradient(110deg, #16562a, #3d7431);
        border-bottom: 4px solid #ecbf15;
        box-shadow: 0 7px 20px rgba(22, 86, 42, .18);
    }

    /* Match the homepage: hide the desktop logo/text block inside the menu. */
    .aksim-records-public-page .aksim-brand-nav__home {
        display: none !important;
    }

    .aksim-records-public-page .aksim-brand-nav__menu {
        width: 100%;
        margin: 0;
    }

    .aksim-records-public-page .aksim-brand-nav__list {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .aksim-records-public-page .aksim-brand-nav__list > li {
        flex: 0 0 auto;
        margin: 0;
    }

    .aksim-records-public-page .aksim-brand-nav__list > li > a {
        display: flex;
        min-height: 48px;
        padding: 8px 13px;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: .78rem;
        font-weight: 700;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
        border-bottom: 3px solid transparent;
    }

    .aksim-records-public-page .aksim-brand-nav__list > li > a::after {
        left: 13px;
        right: 13px;
        bottom: 5px;
        height: 3px;
        background: #ed9105;
    }

    .aksim-records-public-page .aksim-brand-nav__list > li > a:hover,
    .aksim-records-public-page .aksim-brand-nav__list > li.current-menu-item > a,
    .aksim-records-public-page .aksim-brand-nav__list > li.current_page_item > a {
        color: #fff;
        background: rgba(255, 255, 255, .08);
    }
}

@media (max-width: 767px) {
    .aksim-records-public-page .aksim-institutional-banner__inner {
        width: calc(100% - 18px);
        min-height: 0;
        margin-inline: auto;
        padding: 0;
    }

    .aksim-records-public-page .aksim-institutional-banner__inner picture,
    .aksim-records-public-page .aksim-institutional-banner__image {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .aksim-records-public-page .aksim-brand-nav__inner {
        width: 100%;
        min-height: 54px;
        padding-inline: 9px;
        gap: 12px;
        background: linear-gradient(110deg, #16562a, #3d7431);
        border-bottom: 4px solid #ecbf15;
    }

    .aksim-records-public-page .aksim-brand-nav__home {
        display: inline-flex !important;
        min-height: 54px;
        align-items: center;
        color: #fff;
    }

    .aksim-records-public-page .aksim-brand-nav__toggle {
        margin-left: auto;
    }

    .aksim-records-public-page .aksim-brand-nav__menu {
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }

    .aksim-records-public-page .aksim-brand-nav__list a {
        white-space: normal;
    }
}
