:root {
    --navy: #002050;
    --navy-2: #041a3d;
    --blue: #0040b0;
    --orange: #f88000;
    --orange-deep: #9a4e00;
    --ink: #172033;
    --muted: #526075;
    --line: #e4e9f0;
    --paper: #f6f8fb;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(0, 32, 80, 0.08);
    --radius: 16px;
    --wrap: 1120px;
    --font: "Source Sans 3", "Segoe UI", sans-serif;
    --display: "Sora", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--orange-deep); }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.6rem 1rem;
    z-index: 20;
}
.skip:focus { top: 1rem; color: var(--white); }

.wrap {
    width: min(var(--wrap), calc(100% - 2rem));
    margin-inline: auto;
}

.clear { clear: both; }
.right { float: right; }
.left { float: left; }
.img-left { float: left; margin: 0 1.4rem 0.6rem 0; }
.img-right { float: right; margin: 0 0 0.6rem 1.4rem; }
.absmiddle { vertical-align: middle; }
.green, .textgreen { color: #0b7a32; }
.red, .textred { color: #9f1d1d; }
.small, .kbviews { color: var(--muted); font-size: 0.85rem; }
.header { color: var(--navy); font-weight: 700; }

p { margin: 0.35rem 0 0.85rem; }
hr { border: 0; height: 1px; background: var(--line); }

h1, h2, h3 {
    font-family: var(--display);
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--navy);
    font-weight: 600;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0.2rem 0 0; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.2rem 0 0.4rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}

.utility {
    background: var(--navy);
    color: #d5deea;
    font-size: 0.92rem;
}
.utility a,
.utility span { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--orange); }
.utility-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    min-height: 2.4rem;
}
.utility nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.utility-phone { font-weight: 700; white-space: nowrap; }

.mast {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 5.2rem;
    position: relative;
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { width: 178px; height: auto; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font: inherit;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1rem;
    height: 2px;
    background: var(--navy);
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 0.15rem; align-items: center; }
.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.65rem;
    border-radius: 999px;
}
.site-nav > ul > li > a:hover { background: var(--paper); color: var(--blue); }

.submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 2rem;
    height: 2rem;
    color: var(--navy);
    cursor: pointer;
}
.has-children { display: flex; align-items: center; }
.submenu {
    position: absolute;
    top: calc(100% - 0.2rem);
    left: 0;
    min-width: 16rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.45rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 20;
}
.submenu a {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    font-weight: 600;
}
.submenu a:hover { background: var(--paper); }
.has-children:hover > .submenu,
.has-children:focus-within > .submenu,
.has-children.open > .submenu { display: block; }

.page-hero {
    padding: 1.4rem 0 0.2rem;
    background: linear-gradient(180deg, var(--paper), #fff 80%);
}

.breadcrumb {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.92rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-end { margin-top: 1.6rem; }

.client-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.4rem 0 2.6rem;
}

#sidebar { min-width: 0; }
#content { min-width: 0; padding-bottom: 1rem; }

.sidebox {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1rem 0.4rem;
    margin: 0 0 1rem;
}
.sidebox h2 {
    font-size: 1.02rem;
    margin: 0 0 0.55rem;
}
.sidemenu ul { list-style: none; margin: 0; padding: 0; }
.sidemenu li + li { border-top: 1px solid var(--line); }
.sidemenu a {
    display: block;
    padding: 0.45rem 0.15rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.sidemenu a:hover { color: var(--blue); }

.sidebox label,
.auth-form label,
.client-strip label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.remember { display: flex; align-items: center; gap: 0.45rem; }
.remember label { display: inline; margin: 0; font-weight: 600; }
.remember input { width: auto; }

input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #c9d4e3;
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    max-width: 100%;
}
textarea { width: 100%; min-height: 8rem; }
.sidebox input[type="text"],
.sidebox input[type="password"],
.sidebox select,
.auth-form input[type="text"],
.auth-form input[type="password"],
.client-strip input[type="text"],
.client-strip input[type="password"] { width: 100%; }

input[type="submit"],
input[type="button"],
button,
.button,
.submitbutton,
.btn,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover,
.submitbutton:hover,
.btn:hover { background: var(--blue); color: var(--white); }
.btn-accent { background: var(--orange); color: var(--navy); }
.btn-accent:hover { background: #ff9a22; color: var(--navy); }
.sidebox input[type="submit"],
.auth-form input[type="submit"],
.client-strip input[type="submit"] { width: 100%; }
.nav-toggle,
.submenu-toggle { width: auto; min-height: 0; background: var(--white); color: var(--navy); }
.submenu-toggle { background: transparent; }

.auth-form {
    max-width: 28rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem 1.2rem 0.4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.4rem;
}
.service-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.15rem 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}
.service-card:hover { border-color: #c9d6ea; color: inherit; }
.service-card h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.service-card p { margin: 0; color: var(--muted); }

#content > table:not(.data):not(.frame) td,
#content > table:not(.data):not(.frame) th {
    padding: 0.35rem 0.2rem;
    vertical-align: middle;
}

table.data,
table.frame {
    width: 100%;
    border-collapse: collapse;
    margin: 0.4rem 0 1.2rem;
    font-size: 0.98rem;
}
table.data th,
table.data td,
table.frame td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
table.data th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
}
table.data th a { color: var(--white); }
table.data tr:nth-child(even) td { background: var(--paper); }
table.data tr.clientareatableactive td,
.clientareatableactive { background: #e7f6ec; }
table.data tr.clientareatablepending td,
.clientareatablepending { background: var(--paper); }
table.data tr.clientareatablesuspended td,
.clientareatablesuspended { background: #fff6e4; }
table.data tr.clientareatableterminated td,
.clientareatableterminated,
.clientareatablecancelled { background: #fdecec; }

table.frame {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}
table.frame table { width: 100%; border-collapse: collapse; }
table.frame table td { background: var(--white); border-bottom: 1px solid var(--line); }
table.frame table td.fieldarea {
    width: 34%;
    background: var(--paper);
    color: var(--navy);
    font-weight: 700;
    text-align: right;
}

.errorbox,
.successbox,
.warning,
.contentbox,
.creditbox {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin: 0 0 1rem;
}
.errorbox {
    background: #fdecec;
    color: #7f1d1d;
    border-left: 4px solid #c24141;
}
.successbox {
    background: #e7f6ec;
    color: #0b7a32;
    border-left: 4px solid #1f9d4d;
    font-weight: 700;
}
.warning {
    background: #fff7ec;
    border-left: 4px solid var(--orange);
}
.contentbox,
.creditbox {
    background: var(--paper);
    border: 1px solid var(--line);
}

.clientticketreplyheader,
.adminticketreplyheader {
    padding: 0.55rem 0.8rem;
    font-weight: 700;
    border-radius: 12px 12px 0 0;
}
.clientticketreply,
.adminticketreply {
    padding: 0.8rem;
    margin: 0 0 0.9rem;
    border-radius: 0 0 12px 12px;
}
.clientticketreplyheader,
.clientticketreply { background: var(--paper); border: 1px solid var(--line); }
.adminticketreplyheader,
.adminticketreply { background: #eef3fb; border: 1px solid #d5e1f2; }
.clientticketreply,
.adminticketreply { border-top: 0; }
.networkissueaffected {
    background: var(--paper);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin: 0 0 0.9rem;
}

.kbarticle { padding: 0.2rem 0 0.8rem; }
.kbalsoread {
    margin: 1rem 0;
    padding: 0.7rem 0.9rem;
    background: var(--paper);
    border-radius: 12px;
    font-weight: 700;
}
#twitterfeed ul { list-style: none; margin: 0.6rem 0 1rem; padding: 0; }
#twitterfeed li { margin: 0 0 0.7rem; }

.client-strip {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 1.6rem 0 1.8rem;
}
.client-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.client-strip-grid > div {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.05rem 0.85rem;
}
.client-strip h2 { font-size: 1.02rem; margin: 0 0 0.55rem; }
.client-strip h2 + h2 { margin-top: 1rem; }
.client-strip p,
.hint { color: var(--muted); }
.client-strip strong { color: var(--ink); }
.pay-logos img {
    height: 28px;
    width: auto;
    margin: 0.2rem 0.35rem 0 0;
    background: var(--white);
}

.site-footer {
    background: var(--navy-2);
    color: #d5deea;
    padding: 0 0 1.5rem;
}
.footer-note {
    background: #010c1e;
    color: #c5d0df;
    font-size: 0.92rem;
    padding: 0.55rem 0;
}
.footer-note p { margin: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.5rem 2rem;
    padding-top: 2.4rem;
}
.footer-logo img { width: 210px; height: auto; }
.footer-sal { display: inline-block; margin-top: 0.4rem; line-height: 0; }
.footer-sal img { width: 250px; height: 50px; max-width: 100%; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer h2 {
    font-family: var(--display);
    font-size: 1rem;
    margin: 0 0 0.7rem;
    color: var(--orange);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.35rem; }
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.92rem;
}
.footer-legal p { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-legal a { text-decoration: underline; text-underline-offset: 0.18em; }

body:has(.cookie:not([hidden])) { padding-bottom: 8.5rem; }
.cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    color: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(0, 32, 80, 0.12);
}
.cookie-inner {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}
.cookie p { margin: 0; }
.cookie a { color: var(--blue); font-weight: 700; }
.cookie .btn { width: auto; flex-shrink: 0; }

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 1rem 1rem;
        max-height: calc(100vh - 7rem);
        overflow: auto;
    }
    body.nav-open .site-nav { display: block; }
    .site-nav > ul { flex-direction: column; align-items: stretch; }
    .has-children { flex-wrap: wrap; }
    .has-children > a { flex: 1; }
    .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .submenu-toggle::before {
        content: "";
        border: solid var(--navy);
        border-width: 0 2px 2px 0;
        padding: 3px;
        transform: rotate(45deg);
    }
    .submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border: 0;
        padding: 0 0 0.4rem 0.8rem;
        background: transparent;
    }
    .has-children:hover > .submenu,
    .has-children:focus-within > .submenu { display: none; }
    .has-children.open > .submenu { display: block; }
    .client-layout { grid-template-columns: 1fr; }
    .service-grid,
    .client-strip-grid,
    .footer-grid { grid-template-columns: 1fr 1fr; }
    #content { order: -1; }
    table.frame table td.fieldarea { text-align: left; width: auto; }
}

@media (max-width: 680px) {
    .utility { font-size: 0.84rem; }
    .client-layout,
    .service-grid,
    .client-strip-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; align-items: stretch; }
    body:has(.cookie:not([hidden])) { padding-bottom: 13rem; }
    #content { overflow-x: auto; }
    table.data { min-width: 36rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
