/*
 * Styles the public help centre and its account pages using the CODR Group palette.
 * The landing adjusts its product grid to the available width.
 */
:root {
    color-scheme: light;
    --navy: #071f38;
    --ink: #10263e;
    --copy: #475f77;
    --blue: #0b61a8;
    --cyan: #42b8e5;
    --canvas: #f0f5fa;
    --line: #d5e0eb;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.site-width { width: min(calc(100% - 3rem), 66rem); margin-inline: auto; }
.site-main { flex: 1; }

.skip-link {
    position: fixed;
    z-index: 2;
    inset: 0 auto auto 1rem;
    padding: .6rem 1rem;
    background: #fff;
    color: var(--ink);
    transform: translateY(-115%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #0878c6; outline-offset: 4px; }

.masthead {
    background: var(--navy);
    border-bottom: 1px solid #27435f;
    color: #fff;
}
.masthead-inner {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.masthead-brand {
    display: inline-flex;
    align-items: center;
    gap: 1.15rem;
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}
.masthead-brand img { display: block; width: 112px; height: 44px; object-fit: contain; }
.masthead-brand span {
    padding-left: 1.15rem;
    border-left: 1px solid #455d76;
    color: #d5e3f2;
    font-size: .925rem;
    font-weight: 600;
}
.masthead-action { margin: 0; }
.masthead-button {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    padding: .48rem .95rem;
    border: 1px solid #637c96;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.masthead-button:hover { background: #ffffff12; border-color: var(--cyan); }
.masthead :focus-visible { outline-color: #75cff7; }

.help-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3.25rem, 7vw, 5rem) clamp(5.8rem, 11vw, 8rem);
    background: radial-gradient(ellipse at 52% 0%, #183a5d 0%, #0b223b 52%, #07182b 100%);
    color: #fff;
    text-align: center;
}
.help-hero::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: 0;
    background-image: linear-gradient(#7cabc813 1px, transparent 1px),
        linear-gradient(90deg, #7cabc813 1px, transparent 1px);
    background-size: 3rem 3rem;
    background-position: center top;
    mask-image: radial-gradient(ellipse at 50% 18%, #0009, transparent 78%);
}
.help-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 7vw, 4.85rem);
    font-weight: 400;
    letter-spacing: -.038em;
    line-height: 1.08;
}
.help-hero p {
    margin: 1.05rem auto 0;
    max-width: 36rem;
    color: #c7d8e9;
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    line-height: 1.65;
}

.help-hero--welcome { padding-block: clamp(4rem, 10vw, 7rem); }
.help-sign-in {
    display: inline-flex;
    align-items: center;
    min-height: 2.9rem;
    margin-top: 1.65rem;
    padding: .65rem 1.5rem;
    border: 1px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    font-weight: 650;
    text-decoration: none;
}
.help-sign-in:hover { background: #e5f2fc; border-color: #b9e4f7; }
.help-hero--welcome :focus-visible { outline-color: #75cff7; }

.help-choices {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
    margin-top: -3.35rem;
    padding-bottom: clamp(2.75rem, 5vw, 3.7rem);
}
.help-card {
    --accent: var(--blue);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 .7rem 1.8rem #0b234512;
    color: inherit;
    text-decoration: none;
}
.help-card[data-product="loxal"] { --accent: #b92028; }
.help-card:hover { box-shadow: 0 1.1rem 2.4rem #0b234522; }
.help-card-brand { display: flex; align-items: center; height: 2.2rem; margin-bottom: 1.05rem; }
.help-card-brand img { display: block; width: 126px; height: 33px; object-fit: contain; object-position: left center; }
.help-card[data-product="loxal"] .help-card-brand img { width: 106px; }
.help-card h2 { margin: 0 0 .45rem; font-size: 1.5rem; letter-spacing: -.027em; line-height: 1.3; }
.help-card p { margin: 0 0 1.1rem; color: var(--copy); line-height: 1.55; }
.help-card-action {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: auto;
    color: var(--blue);
    font-size: .9rem;
    font-weight: 650;
}
.help-card:hover .help-card-action { text-decoration: underline; text-underline-offset: .2em; }

.site-main--form { max-width: 43rem; padding-block: clamp(2.6rem, 7vw, 5rem); }
.site-main--form h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.042em; line-height: 1.12; margin: 0 0 .85rem; }
.site-main--form p { color: var(--copy); line-height: 1.65; }
.site-main--form a { color: var(--blue); }
.site-main--form .error { color: #942932; }
.auth-form { display: grid; gap: 1rem; max-width: 26rem; margin-block: 1.5rem; }
.auth-form label { display: grid; gap: .35rem; font-weight: 600; }
.auth-form input, .auth-form select {
    min-width: 0;
    min-height: 2.75rem;
    padding: .55rem .65rem;
    border: 1px solid #8b9eb1;
    border-radius: 5px;
    background: #fff;
    color: inherit;
    font: inherit;
}
.auth-form .primary {
    justify-self: start;
    padding: .65rem 1.1rem;
    border: 1px solid var(--blue);
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.auth-form .primary:hover { background: #084d86; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.secondary, .danger {
    padding: .65rem 1rem;
    border: 1px solid #8b9eb1;
    border-radius: 6px;
    background: #fff;
    color: var(--blue);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.secondary:hover { background: #e5f2fc; }
.reader-register { overflow-x: auto; margin-block: 1.75rem; }
.reader-register table { width: 100%; border-collapse: collapse; text-align: left; }
.reader-register caption { text-align: left; padding-bottom: .75rem; color: var(--copy); }
.reader-register th, .reader-register td { padding: .85rem .6rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.reader-register thead { background: #e6eef6; font-size: .9rem; }
.reader-create { margin-block: 2rem; }
.reader-create summary { color: var(--blue); font-size: 1.15rem; font-weight: 650; cursor: pointer; }
.password-result { margin-block: 1.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--blue); background: #e2edf7; }
.password-result p { margin: 0 0 .65rem; }
.password-result code { display: inline-block; font-size: 1.25rem; letter-spacing: .06em; color: var(--ink); }
.reader-delete { padding-top: 1rem; border-top: 1px solid var(--line); margin-block: 2rem; }
.delete-form { display: grid; gap: 1.2rem; justify-items: start; }
.delete-form label { line-height: 1.6; }
.danger { border-color: #942932; color: #942932; }
.danger:hover { background: #f9e9eb; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--copy); font-size: .875rem; }
.site-footer-inner {
    min-height: 4rem;
    padding-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .55rem 1.5rem;
}
.site-footer-details { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer-details a { color: var(--blue); text-underline-offset: .2em; }

@media (max-width: 620px) {
    .site-width { width: calc(100% - 2rem); }
    .masthead-inner { min-height: 4.25rem; }
    .masthead-brand { gap: .65rem; }
    .masthead-brand img { width: 88px; height: 38px; }
    .masthead-brand span { padding-left: .65rem; font-size: .82rem; }
    .masthead-button { padding-inline: .7rem; }
    .help-choices { grid-template-columns: 1fr; gap: 1rem; margin-top: -2.4rem; }
    .help-card-brand { margin-bottom: .75rem; }
}
