﻿/* =====================================================================
   Dynamic Planner brand - adviser Identity Server pages (_Layout.cshtml)
   Based on the "Option 3e glass form" login + reset password design.

   Self-contained: site.css is not loaded alongside this file. site.css is
   still used by the client app (_LayoutClientApp.cshtml), so leave it alone.

   Icons are SVG files in img/brand rather than data URIs or inline styles,
   because the Content-Security-Policy is default-src 'self'.
   ===================================================================== */

@font-face { font-family: "Aktiv Grotesk"; src: url("../fonts/AktivGrotesk-Light.ttf") format("truetype"); font-weight: 300; }
@font-face { font-family: "Aktiv Grotesk"; src: url("../fonts/AktivGrotesk-Regular.ttf") format("truetype"); font-weight: 400; }
@font-face { font-family: "Aktiv Grotesk"; src: url("../fonts/AktivGrotesk-Medium.ttf") format("truetype"); font-weight: 500; }
@font-face { font-family: "PP Fragment Serif"; src: url("../fonts/PPFragment-SerifLight.woff2") format("woff2"); font-weight: 300; }

/* ---------- Tokens ---------- */
:root {
    color-scheme: dark;

    /* Brand palette */
    --plum-700: #290617;          /* Plum dark: page ground, text on sand */
    --coral-300: #FF6050;         /* Coral: arcs, links, errors, keyboard focus */
    --sand-100: #EEDDCA;          /* Sand light: text, primary button, tip */
    --white: #FFFFFF;

    /* Text on dark */
    --ink: var(--sand-100);
    --ink-muted: rgba(238, 221, 202, 0.8);
    --ink-subtle: rgba(238, 221, 202, 0.7);
    --ink-faint: rgba(238, 221, 202, 0.6);
    --placeholder: rgba(238, 221, 202, 0.55);

    /* Fields */
    --field-bg: rgba(41, 6, 23, 0.55);
    --field-bg-readonly: rgba(41, 6, 23, 0.35);
    --field-border: rgba(238, 221, 202, 0.35);
    --field-border-error: var(--coral-300);
    --field-radius: 8px;
    --field-height: 48px;

    /* Glass card */
    --card-radius: 32px;
    --card-padding: 40px;
    --card-max: 440px;
    --card-max-wide: 720px;
    --card-tint: linear-gradient(160deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.16) 55%, rgba(0, 0, 0, 0.20) 100%);
    --card-stroke: 0.5px solid rgba(255, 255, 255, 0.3);
    --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 70px rgba(0, 0, 0, 0.5);
    --card-blur: blur(16px) saturate(118%);

    /* Error panel (solid so the arc can't show through) */
    --alert-bg: #290617;
    --alert-border: rgba(255, 96, 80, 0.5);
    --alert-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

    /* Neutral note panel */
    --note-bg: rgba(238, 221, 202, 0.06);
    --note-border: rgba(238, 221, 202, 0.2);

    /* Type */
    --font-sans: "Aktiv Grotesk", system-ui, sans-serif;
    --font-display: "PP Fragment Serif", Georgia, serif;

    /* Layout */
    --page-max: 1360px;
    --gutter: 48px;

    /* Motion */
    --ease: 160ms ease-out;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--plum-700); }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }

[hidden], .hidden { display: none !important; }

a { color: var(--coral-300); text-decoration: none; }
a:hover { color: var(--white); text-decoration: underline; }

.dp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Decoy password field that stops browsers autofilling the username step */
.moveOffScreen { position: fixed; bottom: 0; right: 0; height: 0 !important; width: 0 !important; overflow: hidden; opacity: 0; }

/* Sign-out iframe on the logged out page */
.signout { position: absolute; left: -10px; border: 0; }

/* ---------- Page ---------- */
.dp-page {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100vh;
    padding-inline: max(0px, calc((100% - var(--page-max)) / 2));
    background: var(--plum-700);
    overflow: hidden;
}

/* Soft coral glow + dashed orbit, top-right */
.dp-page-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(55% 50% at 92% 8%, rgba(255, 96, 80, 0.16), rgba(255, 96, 80, 0) 70%);
}
.dp-orbit {
    position: absolute; width: 900px; height: 900px; right: -420px; top: -380px;
    border-radius: 50%; border: 1.5px dashed rgba(238, 221, 202, 0.14);
    pointer-events: none;
}

/* ---------- Arcs (top-right corner) ---------- */
.dp-arcs {
    position: absolute; right: 0; top: 0;
    width: 1100px; height: 1100px;
    transform: translate(50%, -50%);
    pointer-events: none;
}
.dp-arcs .dp-glass { position: absolute; border-radius: 50%; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dp-arcs .dp-glass--outer {
    inset: 0;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 40%, rgba(255, 255, 255, 0) 70%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.dp-arcs .dp-glass--inner {
    left: 26.4%; top: 26.4%; width: 47.2%; height: 47.2%;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0) 75%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.dp-arcs svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Brand column ---------- */
.dp-brand {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--gutter);
    color: var(--ink);
}
.dp-brand img { display: block; height: 30px; width: auto; align-self: flex-start; }
/* The panel is space-between; with the trading-name footer removed the headline
   would drop to the bottom, so centre it in the space that is left. */
.dp-brand > div { margin-block: auto; }

.dp-brand h1 {
    margin: 0;
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(34px, 4.25vw, 62px); line-height: 1; letter-spacing: -1.5px;
    white-space: nowrap;
}

/* ---------- Form column ---------- */
.dp-main {
    position: relative;
    display: flex; align-items: center; justify-content: flex-end;
    /* Extra bottom padding keeps tall cards clear of the legal links */
    padding: var(--gutter) var(--gutter) calc(var(--gutter) + 48px) 24px;
}
.dp-form-wrap { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: var(--card-max); }
.dp-form-wrap--wide { max-width: var(--card-max-wide); }

/* ---------- Glass card ---------- */
.dp-card {
    position: relative; z-index: 1; width: 100%;
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    background: var(--card-tint);
    border: var(--card-stroke);
    box-shadow: var(--card-shadow);
    -webkit-backdrop-filter: var(--card-blur);
    backdrop-filter: var(--card-blur);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
}
.dp-card h2 {
    margin: 0 0 28px;
    font-family: var(--font-display); font-weight: 300;
    font-size: 36px; line-height: 1.05; letter-spacing: -0.02em;
}
.dp-card h2.dp-h2-tight { margin-bottom: 12px; }
.dp-card p { margin: 0 0 16px; color: var(--ink-muted); }

/* Intro / body copy under the heading */
.dp-card p.dp-intro { margin: 0 0 28px; color: rgba(238, 221, 202, 0.85); }
.dp-card p.dp-intro--tight { margin-bottom: 20px; }

/* ---------- Fields ---------- */
.dp-field { display: flex; flex-direction: column; margin: 0 0 24px; }
.dp-field--flush { margin: 0; }

.dp-card label,
.dp-label {
    display: block; margin-bottom: 8px;
    font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.dp-card label + label { margin-top: 0; }
.dp-input-wrap { position: relative; }
.dp-input-wrap + label,
.dp-input + label { margin-top: 24px; }

.dp-input,
.dp-card .form-control,
.dp-card #txtSearch {
    display: block;
    width: 100%; height: var(--field-height);
    padding: 0 16px;
    border-radius: var(--field-radius);
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    font: 400 15px/1 var(--font-sans); letter-spacing: -0.02em; color: var(--white);
    outline: none;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.dp-input::placeholder,
.dp-card .form-control::placeholder { color: var(--placeholder); opacity: 1; }
.dp-input:focus,
.dp-card .form-control:focus,
.dp-card #txtSearch:focus { border-color: var(--sand-100); box-shadow: 0 0 0 3px rgba(238, 221, 202, 0.18); }   /* Sand, same as the primary button, so focus never reads as an error */
.dp-input.input-validation-error:focus,
.dp-card .form-control.input-validation-error:focus,
.dp-card #txtSearch.input-validation-error:focus { border-color: var(--field-border-error); box-shadow: 0 0 0 3px rgba(255, 96, 80, 0.16); }
.dp-input::-ms-reveal, .dp-input::-ms-clear { display: none; }

/* Read-only username on the password step, with room for the edit icon */
.dp-input[readonly] { background: var(--field-bg-readonly); padding-right: 56px; text-overflow: ellipsis; }
/* Password fields leave room for the show/hide toggle */
.dp-input--password { padding-right: 56px; }

/* A submit button that reads as a link ("Forgotten your password?", "Back to log in") */
.dp-linkbtn {
    padding: 0; border: none; border-radius: 4px; background: transparent;
    font: inherit; color: var(--coral-300); cursor: pointer;
}
.dp-linkbtn:hover { color: var(--white); text-decoration: underline; }

.dp-linkbtn:focus-visible,
.dp-card a:focus-visible { outline: 2px solid var(--coral-300); outline-offset: 3px; }

/* Icon buttons inside fields (Phosphor icons, regular weight, 20px):
   show / hide password - password-toggle.js swaps .eye (hidden) and .eye-slash (visible)
   edit username        - .edit on the read-only username field */
.dp-toggle {
    position: absolute; right: 2px; top: 2px;
    width: 44px; height: 44px;
    border: none; border-radius: 8px;
    background: transparent center / 20px no-repeat;
    cursor: pointer;
}
.dp-toggle.eye { background-image: url(../img/brand/eye-sand.svg); }
.dp-toggle.eye-slash { background-image: url(../img/brand/eye-slash-sand.svg); }
.dp-toggle.edit { background-image: url(../img/brand/pencil-simple-sand.svg); }
.dp-toggle:hover { background-color: rgba(238, 221, 202, 0.1); }

/* "Forgotten your password?" under the password field */
.dp-card .dp-forgot { margin: 12px 0 28px; font-size: 13.5px; }

/* ---------- Remember me ---------- */
.dp-remember { position: relative; display: flex; align-items: center; gap: 6px; margin: 18px 0 28px; }
.dp-card .dp-remember label { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.dp-check {
    appearance: none; -webkit-appearance: none;
    display: grid; place-content: center; flex: none;
    width: 20px; height: 20px; margin: 0;
    border-radius: 6px; border: 1.5px solid var(--sand-100); background: transparent;
    cursor: pointer;
}
.dp-check:checked { background: var(--sand-100); }
.dp-check:checked::after {
    content: ""; width: 10px; height: 6px;
    border-left: 2px solid var(--plum-700); border-bottom: 2px solid var(--plum-700);
    transform: translateY(-1px) rotate(-45deg);
}
/* Info icon + shared-device tip */
.dp-info {
    flex: none; width: 32px; height: 32px;
    border: none; border-radius: 999px;
    background: transparent url(../img/brand/info-coral.svg) center / 18px no-repeat;
    cursor: pointer;
}
.dp-info:hover { background-color: rgba(238, 221, 202, 0.1); }
.dp-tip {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 3;
    padding: 12px 14px; border-radius: 12px;
    background: var(--coral-300); border: none;   /* coral so it stands apart from the sand button underneath */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--plum-700);
}

/* ---------- Buttons ---------- */
.dp-btn,
.dp-card .btn,
.dp-card .button-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px; padding: 12px 20px; margin: 0;
    border: none; border-radius: 999px;
    background: var(--sand-100); color: var(--plum-700);
    font: 500 15px/1.2 var(--font-sans); letter-spacing: -0.02em; text-align: center;
    text-decoration: none; cursor: pointer;
    transition: background var(--ease), transform var(--ease), opacity var(--ease);
}
.dp-btn:hover,
.dp-card .btn:hover,
.dp-card .button-link:hover { background: var(--white); color: var(--plum-700); text-decoration: none; }
.dp-btn:active,
.dp-card .btn:active { transform: scale(0.97); }
.dp-btn:disabled,
.dp-card .btn:disabled { opacity: 0.5; cursor: not-allowed; background: var(--sand-100); transform: none; }

.dp-btn--outline,
.dp-card .btn-outline {
    background: transparent; color: var(--ink);
    border: 1px solid rgba(238, 221, 202, 0.4);
}
.dp-btn--outline:hover,
.dp-card .btn-outline:hover { background: rgba(238, 221, 202, 0.1); color: var(--ink); }

/* Primary button directly after a field */
.dp-btn--spaced { margin-top: 28px; }

/* Side-by-side buttons on pages outside the design (e.g. Cancel / Submit) */
/* Submit comes first in the DOM so Enter submits rather than cancels; reversed so Cancel still sits on the left */
.dp-card .actions { display: flex; flex-direction: row-reverse; gap: 12px; margin-top: 28px; }
.dp-card .actions > * { flex: 1; }

.dp-check:focus-visible,
.dp-btn:focus-visible,
.dp-card .btn:focus-visible,
.dp-card .button-link:focus-visible,
.dp-toggle:focus-visible,
.dp-info:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--plum-700), 0 0 0 4px var(--coral-300); }

/* ---------- Alerts ---------- */
.dp-alert,
.dp-card .alert-danger,
.dp-card .error,
.dp-card .error-summary {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 0 0 24px; padding: 14px 16px;
    border-radius: 12px;
    background: var(--alert-bg); border: 1px solid var(--alert-border);
    box-shadow: var(--alert-shadow);
    font-size: 14px; line-height: 1.45; color: var(--white);
}
.dp-alert::before,
.dp-card .alert-danger::before,
.dp-card .error::before,
.dp-card .error-summary::before {
    content: ""; flex: none; width: 20px; height: 20px; margin-top: 0;
    background: url(../img/brand/alert.svg) center / 20px no-repeat;
}
.dp-alert strong { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 500; color: var(--white); }
.dp-alert span { color: var(--ink); }
.dp-card .dp-alert p,
.dp-card .alert-danger p { margin: 0; color: var(--white); }
.dp-alert ul,
.dp-card .error ul,
.dp-card .error-summary ul { margin: 0; padding: 0; list-style: none; }
.dp-alert li + li,
.dp-card .error-summary li + li { margin-top: 4px; }
.dp-card .error-summary:empty,
.dp-card .error-summary.hidden { display: none; }
/* Errors and rules rendered after a form (pages outside the design) */
.dp-card form + .dp-alert,
.dp-card form + .error-summary,
.dp-card form + .password-rules-container { margin-top: 24px; }
.dp-card > :last-child { margin-bottom: 0; }

/* ---------- Note panel ---------- */
.dp-note,
.dp-card .alert-information {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 0 0 28px; padding: 14px 16px;
    border-radius: 12px;
    background: var(--note-bg); border: 1px solid var(--note-border);
    font-size: 14px; line-height: 1.45; color: var(--ink);
}
.dp-note::before,
.dp-card .alert-information::before {
    content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px;
    background: url(../img/brand/info-sand.svg) center / 20px no-repeat;
}
.dp-note strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--white); }
.dp-card .alert-information p { margin: 0; color: var(--ink); }

/* Centred secondary link under the button ("Back to log in") */
.dp-card .dp-back { margin: 20px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-muted); }

/* Support telephone / email lines */
.dp-card .dp-support { margin: 0 0 8px; font-size: 14px; color: var(--ink-muted); }

/* ---------- Password rules (_PasswordValidationSummary) ----------
   The rules come from the server (organisation unit policy, or the fixed set),
   so the partial's markup is styled here rather than rebuilt. */
.dp-rules-wrap { margin: 14px 0 24px; }
.dp-card .password-rules-container > strong,
.dp-card .password-rules-container > p { display: block; margin: 0 0 10px; font-size: 13.5px; font-weight: 400; color: var(--ink-muted); }
.dp-card .password-rules-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 8px;
    font-size: 13.5px; line-height: 1.35;
}
.dp-card .password-rules-list li { position: relative; display: flex; gap: 10px; align-items: center; color: rgba(238, 221, 202, 0.75); }
.dp-card .password-rules-list li::before {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
    border: 1.5px solid rgba(238, 221, 202, 0.45);
    background: transparent center / 11px no-repeat;
}
.dp-card .password-rules-list li.valid { color: var(--white); }
.dp-card .password-rules-list li.valid::before { background-color: var(--sand-100); border-color: var(--sand-100); background-image: url(../img/brand/tick-plum.svg); }

/* Special characters tooltip */
.dp-card .tooltip {
    position: relative; display: inline-block; flex: none;
    width: 16px; height: 16px;
    background: url(../img/brand/info-sand.svg) center / 16px no-repeat;
}
.dp-card .tooltip .tooltiptext {
    visibility: hidden;
    position: absolute; z-index: 3; bottom: calc(100% + 10px); left: 50%;
    width: 220px; margin-left: -110px; padding: 10px 12px;
    border-radius: 10px; background: var(--sand-100);
    box-shadow: 0 12px 30px rgba(41, 6, 23, 0.18);
    font-size: 13px; line-height: 1.45; text-align: center; color: var(--plum-700);
}
.dp-card .tooltip:hover .tooltiptext { visibility: visible; }
.dp-card .info-tooltip { display: none; }

/* ---------- Pages outside the design ---------- */

/* Organisation select */
.dp-card .organisation-unit-select-search { margin-bottom: 16px; }
.dp-card .organisation-unit-select-list { max-height: calc(60vh - 120px); overflow-y: auto; padding-right: 4px; }
.dp-card .organisation-unit-select-list-js-offset { max-height: calc(60vh - 185px); }
.dp-card .organisation-unit-select {
    display: block; width: 100%; min-height: 48px; margin: 0 0 8px; padding: 12px 16px;
    border-radius: 12px; border: 1px solid var(--field-border); background: var(--field-bg);
    font: 400 15px/1.3 var(--font-sans); color: var(--ink); text-align: left; cursor: pointer;
    transition: border-color var(--ease), background var(--ease);
}
.dp-card .organisation-unit-select:hover { border-color: var(--sand-100); background: rgba(238, 221, 202, 0.1); }
.dp-card .organisation-unit-select:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--plum-700), 0 0 0 4px var(--coral-300); }

/* Accept terms: tabs, checkbox and the terms documents */
.dp-card .tab-menu { display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; list-style: none; border-radius: 999px; background: rgba(238, 221, 202, 0.08); }
.dp-card .tab-menu li { flex: 1; }
.dp-card .tab-menu li span { display: block; padding: 10px 12px; border-radius: 999px; font-size: 14px; text-align: center; color: var(--ink-muted); cursor: pointer; }
.dp-card .tab-menu li.active span { background: var(--sand-100); color: var(--plum-700); }
.dp-card article { padding: 0; }
.dp-card article h1,
.dp-card [data-tab-content] h1 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1.15; color: var(--ink); }
.dp-card [data-tab-content] h2 { margin: 24px 0 12px; font-family: var(--font-sans); font-size: 18px; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.dp-card [data-tab-content] h3 { margin: 20px 0 8px; font-size: 15px; font-weight: 500; }
.dp-card [data-tab-content] a { text-decoration: underline; }
/* Terms HTML comes from the database and can include wide tables; let them scroll rather than be clipped */
.dp-card [data-tab-content] { overflow-x: auto; }

.dp-card .CheckboxSection { margin: 24px 0; }
.dp-card .checkboxesselect { position: absolute; opacity: 0; }
.dp-card .checkboxesselect + label { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 14px; font-weight: 400; cursor: pointer; }
.dp-card .checkboxesselect + label::before {
    content: ""; flex: none; width: 20px; height: 20px;
    border-radius: 6px; border: 1.5px solid var(--sand-100);
    background: transparent center / 11px no-repeat;
}
.dp-card .checkboxesselect:checked + label::before { background-color: var(--sand-100); background-image: url(../img/brand/tick-plum.svg); }
.dp-card .checkboxesselect:focus-visible + label::before { box-shadow: 0 0 0 2px var(--plum-700), 0 0 0 4px var(--coral-300); }

/* Consent tables */
.dp-card table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 14px; }
.dp-card th,
.dp-card td { padding: 8px; border: 1px solid rgba(238, 221, 202, 0.2); text-align: left; vertical-align: top; }
.dp-card th { font-weight: 500; }
.dp-card td > label { margin: 0; font-weight: 400; }
.dp-card .cancel-link { margin-top: 20px; color: var(--ink-muted); }
.dp-card .cancel-link .dp-btn { margin-top: 8px; }
.dp-card .inlineLabel { display: inline; margin-left: 8px; }
.dp-card .consent-remember { display: flex; align-items: center; margin: 0 0 24px; }
.dp-card .consent-remember .inlineLabel { margin-top: 0; margin-bottom: 0; font-weight: 400; }

/* ---------- Footer legal links ---------- */
.dp-foot-links {
    position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 1;
    display: flex; gap: 24px;
    font-size: 12.5px; line-height: 1.5; white-space: nowrap;
}
.dp-foot-links a { color: var(--ink-subtle); text-decoration: none; }
.dp-foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* =====================================================================
   Tablet  (<=900px)
   ===================================================================== */
@media (max-width: 900px) {
    .dp-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }

    .dp-brand { padding: 64px 24px 8px; gap: 40px; align-items: center; text-align: center; }
    .dp-brand img { align-self: center; }
    .dp-brand h1 { font-size: 54px; }

    /* Arcs move to the right edge, behind the card, clear of the headline */
    .dp-arcs { width: 600px; height: 600px; top: 430px; }

    .dp-main { justify-content: center; align-items: flex-start; padding: 56px 24px 132px; }
    .dp-card { padding: 32px; }

    .dp-foot-links { left: 24px; right: 24px; bottom: 32px; justify-content: center; flex-wrap: wrap; row-gap: 10px; }
}

/* =====================================================================
   Mobile  (<=599px)
   ===================================================================== */
@media (max-width: 599px) {
    .dp-brand { padding: 40px 16px 0; gap: 0; }
    .dp-brand img { height: 24px; }
    .dp-brand h1 { display: none; }

    .dp-arcs { width: 360px; height: 360px; top: 260px; }

    .dp-main { padding: 32px 16px 120px; }
    .dp-card { padding: 28px 24px; }
    .dp-card h2 { font-size: 32px; }
    .dp-card .actions { flex-direction: column; }

    .dp-foot-links { left: 8px; right: 8px; bottom: 24px; font-size: 12px; column-gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
