:root {
    color-scheme: light;
    --ink: #17313a;
    --muted: #607178;
    --blue: #006b8f;
    --blue-dark: #004e69;
    --teal: #167a72;
    --line: #d6dfe2;
    --surface: #ffffff;
    --surface-subtle: #f3f6f7;
    --danger: #a3292f;
    --success: #216b48;
    font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    background: var(--surface-subtle);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
}

button, input { font: inherit; }
a { color: var(--blue); }

.portal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

.portal-sidebar {
    background: #122f39;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.portal-brand {
    border-bottom: 1px solid rgba(255,255,255,.15);
    color: #fff;
    display: block;
    padding: 23px 22px 20px;
    text-decoration: none;
}

.portal-brand img {
    background: #fff;
    display: block;
    height: auto;
    margin-bottom: 13px;
    max-width: 158px;
    padding: 6px 8px;
    width: 100%;
}

.portal-brand span {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.portal-nav { padding: 18px 12px; }
.portal-sidebar__footer { border-top: 1px solid rgba(255,255,255,.15); margin-top: auto; padding: 14px 12px 20px; }

.portal-nav__item {
    border-radius: 4px;
    color: #dce9ec;
    display: block;
    font-weight: 600;
    margin: 2px 0;
    padding: 10px 12px;
    text-decoration: none;
}

.portal-nav__item:hover,
.portal-nav__item:focus { background: rgba(255,255,255,.1); color: #fff; outline: none; }

.portal-main { min-width: 0; }

.portal-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    min-height: 70px;
    padding: 12px 30px;
}

.portal-account { display: grid; justify-items: end; line-height: 1.25; }
.portal-account strong { font-size: 14px; }
.portal-account span { color: var(--muted); font-size: 13px; }
.portal-menu-button { display: none; }

.portal-content { margin: 0 auto; max-width: 1240px; padding: 34px 34px 56px; }

.page-heading { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 26px; padding-bottom: 18px; }
.page-heading h1 { font-size: 28px; line-height: 1.2; margin: 0; }
.page-heading p { color: var(--muted); margin: 6px 0 0; }
.page-heading__meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

.tool-list { background: var(--surface); border: 1px solid var(--line); }
.tool-list__item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: minmax(0,1fr) auto; padding: 20px 22px; }
.tool-list__item:last-child { border-bottom: 0; }
.tool-list__item h2 { font-size: 18px; margin: 0 0 3px; }
.tool-list__item p { color: var(--muted); margin: 0; }

.button {
    align-items: center;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    text-decoration: none;
}
.button:hover, .button:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button:disabled { cursor: wait; opacity: .65; }
.button--secondary { background: #fff; color: var(--blue); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.field input {
    background: #fff;
    border: 1px solid #83939a;
    border-radius: 4px;
    color: var(--ink);
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,107,143,.17); outline: none; }
.field__hint { color: var(--muted); display: block; font-size: 13px; margin-top: 5px; }

.search-panel { background: #fff; border: 1px solid var(--line); padding: 22px; }
.search-row { align-items: end; display: grid; gap: 10px; grid-template-columns: minmax(260px, 600px) auto; }
.search-row .field { margin: 0; }

.notice { border-left: 4px solid var(--blue); margin: 18px 0; padding: 11px 14px; }
.notice--error { background: #fff3f3; border-color: var(--danger); color: #791f24; }
.notice--success { background: #eff8f3; border-color: var(--success); color: #175137; }
.notice--empty { background: #fff; border-color: #9aa8ad; color: var(--muted); }

.results { margin-top: 28px; }
.results h2 { font-size: 19px; margin: 0 0 12px; }
.table-wrap { background: #fff; border: 1px solid var(--line); overflow-x: auto; }
.data-table { border-collapse: collapse; min-width: 650px; width: 100%; }
.data-table th { background: #e9f0f2; color: #28464f; font-size: 12px; text-align: left; text-transform: uppercase; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 13px 15px; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table a { font-weight: 700; overflow-wrap: anywhere; }

.account-panel { background: #fff; border: 1px solid var(--line); max-width: 620px; padding: 24px; }

.login-body { background: #e8eef0; min-height: 100vh; }
.login-shell { display: grid; grid-template-columns: minmax(320px, 500px) minmax(0, 1fr); min-height: 100vh; }
.login-panel { align-items: center; background: #fff; display: flex; padding: 48px clamp(28px, 5vw, 72px); }
.login-content { max-width: 380px; width: 100%; }
.login-logo { height: auto; margin-bottom: 38px; max-width: 220px; width: 100%; }
.login-content h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.login-intro { color: var(--muted); margin: 0 0 28px; }
.login-support { color: var(--muted); font-size: 13px; margin-top: 22px; }
.login-visual {
    background-color: #163943;
    background-image: linear-gradient(145deg, rgba(0,107,143,.48), rgba(22,122,114,.18)), url("images/curtis-logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto, min(36vw, 420px) auto;
    min-height: 100vh;
}

.error-page { background: #fff; border: 1px solid var(--line); max-width: 720px; padding: 30px; }
.error-page h1 { font-size: 26px; margin-top: 0; }

@media (max-width: 840px) {
    .portal-layout { display: block; }
    .portal-sidebar { box-shadow: 10px 0 30px rgba(0,0,0,.22); left: -260px; position: fixed; transition: left .18s ease; width: 240px; z-index: 20; }
    .portal-menu-open .portal-sidebar { left: 0; }
    .portal-topbar { justify-content: space-between; padding: 10px 18px; }
    .portal-menu-button { background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; display: inline-flex; font-size: 22px; height: 42px; justify-content: center; width: 42px; }
    .portal-content { padding: 26px 18px 44px; }
    .login-shell { grid-template-columns: 1fr; }
    .login-panel { min-height: 100vh; }
    .login-visual { display: none; }
}

@media (max-width: 560px) {
    .page-heading { align-items: start; display: block; }
    .page-heading h1 { font-size: 25px; }
    .page-heading__meta { display: block; margin-top: 9px; }
    .search-row { grid-template-columns: 1fr; }
    .search-row .button { width: 100%; }
    .tool-list__item { align-items: start; grid-template-columns: 1fr; }
    .tool-list__item .button { width: 100%; }
    .portal-account { max-width: 190px; text-align: right; }
}

/* 2026 partner portal usability refresh */
:root {
    --ink: #16323b;
    --muted: #5d6c71;
    --blue: #006f95;
    --blue-dark: #00516e;
    --teal: #18756d;
    --navy: #0a3a4a;
    --amber: #d7a31a;
    --line: #d8e0e2;
    --surface-subtle: #f4f7f8;
}

.portal-layout { grid-template-columns: 224px minmax(0, 1fr); }
.portal-sidebar { background: var(--navy); }
.portal-brand { padding: 22px 20px 18px; }
.portal-brand img { margin-bottom: 11px; max-width: 150px; }
.portal-nav__label {
    color: #9fc2cc;
    display: block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px 7px;
    text-transform: uppercase;
}
.portal-nav__item { border-left: 3px solid transparent; padding: 10px 12px; }
.portal-nav__item:hover,
.portal-nav__item:focus { border-left-color: var(--amber); }
.portal-topbar { min-height: 64px; padding: 10px 30px; }
.portal-content { max-width: 1180px; padding-top: 38px; }

.page-heading { align-items: center; margin-bottom: 24px; }
.page-eyebrow,
.login-eyebrow {
    color: var(--teal);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
    text-transform: uppercase;
}
.page-heading h1 { font-size: 30px; }
.page-heading__meta {
    background: #e7f1f2;
    border: 1px solid #c7dbde;
    color: #31555f;
    padding: 6px 10px;
}

.button { min-height: 46px; padding: 9px 21px; }
.button--full { width: 100%; }
.button:focus-visible,
.portal-nav__item:focus-visible,
.portal-menu-button:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(0,111,149,.55); outline: none; }
.field input { min-height: 48px; padding: 10px 12px; }
.field input::placeholder { color: #78878c; }
.check-control {
    align-items: center;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    gap: 8px;
    margin: 9px 0 0 !important;
}
.check-control input { height: 16px; min-height: 0; width: 16px; }

.search-panel {
    border-top: 4px solid var(--teal);
    padding: 24px 26px 26px;
}
.search-panel h2 { font-size: 18px; margin: 0 0 17px; }
.search-row { grid-template-columns: minmax(260px, 620px) auto; }
.search-row .button { min-width: 116px; }
.search-panel .notice { margin-bottom: 0; }

.results { margin-top: 30px; }
.results-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.results-heading h2 { margin: 3px 0 0; }
.results-heading__status {
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.results-heading__po {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.data-table th { background: #e8f0f2; }
.data-table tbody tr:hover { background: #f7fafb; }
.data-table a::after { content: "  Open"; font-size: 12px; font-weight: 600; }
.notice--empty { padding: 18px; }

.login-body { background: #edf2f3; }
.login-shell { grid-template-columns: minmax(380px, 48%) minmax(0, 1fr); }
.login-panel { border-top: 6px solid var(--amber); padding: 48px clamp(34px, 6vw, 88px); }
.login-content { max-width: 400px; }
.login-logo { margin-bottom: 48px; max-width: 205px; }
.login-content h1 { font-size: 34px; margin-bottom: 8px; }
.login-intro { margin-bottom: 30px; }
.login-support { border-top: 1px solid var(--line); padding-top: 18px; }
.login-visual {
    align-items: flex-end;
    background-color: var(--navy);
    background-image: url("images/curtis-logo.png");
    background-position: center 34%;
    background-repeat: no-repeat;
    background-size: min(34vw, 400px) auto;
    display: flex;
    min-height: 100vh;
    padding: clamp(36px, 6vw, 80px);
}
.login-visual__content { border-left: 4px solid var(--amber); color: #fff; max-width: 520px; padding-left: 22px; }
.login-visual__content span { color: #a9d4dd; display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.login-visual__content strong { display: block; font-size: 27px; line-height: 1.25; }
.login-visual__content p { color: #cce0e5; margin: 9px 0 0; }

@media (max-width: 840px) {
    .portal-sidebar { width: 224px; }
    .login-shell { grid-template-columns: 1fr; }
    .login-panel { padding: 42px clamp(24px, 8vw, 70px); }
    .login-content { margin: 0 auto; }
    .login-visual { display: none; }
}

@media (max-width: 560px) {
    .portal-content { padding: 24px 16px 40px; }
    .page-heading { padding-bottom: 16px; }
    .page-heading h1 { font-size: 27px; }
    .page-heading__meta { display: inline-block; }
    .search-panel { padding: 20px 16px; }
    .results-heading { align-items: start; gap: 12px; }
    .table-wrap { background: transparent; border: 0; overflow: visible; }
    .data-table { min-width: 0; }
    .data-table thead { display: none; }
    .data-table tbody,
    .data-table tr,
    .data-table td { display: block; width: 100%; }
    .data-table tr { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; padding: 7px 14px; }
    .data-table td { border-bottom: 1px solid #e6ecee; display: grid; gap: 12px; grid-template-columns: 108px minmax(0, 1fr); padding: 10px 0; }
    .data-table td:last-child { border-bottom: 0; }
    .data-table td::before { color: var(--muted); content: attr(data-label); font-size: 12px; font-weight: 700; }
    .login-panel { min-height: 100vh; padding: 34px 24px; }
    .login-logo { margin-bottom: 38px; max-width: 180px; }
    .login-content h1 { font-size: 30px; }
}