/*
 * 2026 public portal visual themes
 *
 * This layer intentionally sits after the legacy host stylesheet. It keeps the
 * institutional shell stable while giving examinations and applications their
 * own task-oriented visual contexts, aligned with ExamSys.
 */

:root {
    --portal-header-height: 92px;
    --portal-motion: 180ms ease;
    --portal-shadow-hover: 0 14px 34px rgba(7, 29, 47, .09);
    --exam-accent: #087f78;
    --exam-accent-strong: #066a65;
    --exam-tint: #dff4f1;
    --application-accent: #c6a24a;
    --application-tint: #fff8e8;
}

body {
    background: var(--ipc-canvas);
    color: var(--ipc-ink);
    font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-synthesis: none;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

:where(h1, h2, h3, h4, .brand-lockup__name) {
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
    font-synthesis: none;
    text-wrap: balance;
}

:where(p, li, dd) {
    text-wrap: pretty;
}

:where(button, input, select, textarea) {
    line-height: 1.55;
}

:where([dir="ltr"], bdi[dir="ltr"], code) {
    font-family: "Segoe UI", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
}

small {
    line-height: 1.65;
}

::placeholder {
    color: #7a8b98;
    opacity: 1;
}

.container {
    width: min(calc(100% - 48px), var(--ipc-content-width));
}

.button {
    min-height: 44px;
    border-radius: var(--ipc-radius-sm);
    transition:
        background-color var(--portal-motion),
        border-color var(--portal-motion),
        color var(--portal-motion),
        transform var(--portal-motion),
        box-shadow var(--portal-motion);
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    border-color: var(--ipc-emerald-700);
    background: var(--ipc-emerald-700);
    box-shadow: 0 8px 18px rgba(8, 127, 120, .18);
}

.button--primary:hover {
    border-color: var(--ipc-emerald-800);
    background: var(--ipc-emerald-800);
    box-shadow: 0 10px 22px rgba(8, 127, 120, .24);
}

.button--outline {
    border-color: var(--ipc-line-strong);
    background: #fff;
    color: var(--ipc-navy-900);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: calc(var(--portal-header-height) + 1px);
    overflow: visible;
    border-bottom-color: var(--ipc-line);
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 5px 18px rgba(7, 29, 47, .035);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    height: auto;
    min-height: var(--portal-header-height);
    gap: 30px;
    overflow: visible;
}

.brand-lockup {
    min-width: 0;
    align-self: center;
}

.brand-lockup__mark {
    width: 58px;
    height: 64px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    mix-blend-mode: normal;
}

.brand-lockup__name {
    max-width: 205px;
    color: var(--ipc-navy-900);
    font-size: 13px;
    line-height: 1.55;
}

.brand-lockup--inverse .brand-lockup__mark {
    padding: 4px;
    border-radius: var(--ipc-radius-sm);
    background: #fff;
}

.desktop-nav {
    align-self: stretch;
    gap: clamp(17px, 2vw, 31px);
    font-size: 13px;
}

.desktop-nav a {
    display: flex;
    align-items: center;
    padding-block: 0;
}

.desktop-nav a::after {
    height: 3px;
    background: var(--ipc-emerald-700);
}

.header-login {
    align-self: center;
    min-height: 42px;
    padding-inline: 16px;
    border-color: #b8c7d0;
}

/* Homepage: one concise institutional message, two clearly distinct systems. */
.hero {
    min-height: 538px;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 90%, rgba(198, 164, 94, .08), transparent 30%),
        linear-gradient(112deg, var(--ipc-navy-950), var(--ipc-navy-900) 62%, #0b3549);
}

.hero::before {
    top: 0;
    right: max(24px, calc(50% - 630px));
    width: 96px;
    height: 4px;
    background: var(--ipc-gold-500);
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    background:
        radial-gradient(circle at 87% 24%, rgba(68, 199, 188, .14), transparent 30%),
        linear-gradient(90deg, transparent 0 39%, rgba(7, 93, 95, .22) 48%, rgba(7, 93, 95, .9) 61%, #08706c 100%);
    content: "";
}

.hero__inner {
    min-height: 538px;
    grid-template-columns: minmax(360px, .86fr) minmax(0, 1.14fr);
    grid-template-areas: "cycle content";
    gap: clamp(70px, 7vw, 108px);
    padding-block: 60px 94px;
    direction: ltr;
}

.hero__content {
    grid-area: content;
    width: 100%;
    max-width: 630px;
    justify-self: end;
    direction: rtl;
    animation: portal-hero-content-enter .46s cubic-bezier(.2, .8, .2, 1) .05s both;
}

.hero__content h1 {
    max-width: 590px;
    margin-bottom: 16px;
    font-size: clamp(40px, 3.55vw, 54px);
    letter-spacing: -.025em;
    line-height: 1.38;
    text-shadow: 0 3px 18px rgba(3, 20, 34, .18);
}

.hero__content > p:not(.hero__note) {
    max-width: 560px;
    margin-bottom: 28px;
    color: #d8e2e7;
    font-size: 17px;
    line-height: 1.9;
}

.hero__actions {
    gap: 11px;
}

.hero__actions .button {
    min-height: 49px;
}

.hero__note {
    color: #c1d0d7;
    font-size: 12px;
}

.book-motif {
    z-index: 0;
    bottom: -70px;
    left: 27%;
    width: min(48vw, 650px);
    opacity: .14;
}

.cycle-card {
    grid-area: cycle;
    max-width: 468px;
    justify-self: start;
    padding: 28px 28px 23px;
    border: 1px solid rgba(31, 64, 80, .12);
    border-top: 4px solid var(--ipc-gold-500);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    direction: rtl;
    box-shadow: 0 28px 66px rgba(4, 25, 35, .22), 0 4px 12px rgba(4, 25, 35, .08);
    animation: portal-cycle-card-enter .5s cubic-bezier(.2, .8, .2, 1) .11s both;
}

.cycle-card__topline {
    align-items: flex-start;
    margin-bottom: 11px;
}

.cycle-card__topline .cycle-card__label {
    position: relative;
    padding-bottom: 8px;
    color: var(--ipc-emerald-700);
    font-size: 12px;
    font-weight: 800;
}

.cycle-card__topline .cycle-card__label::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 999px;
    background: var(--ipc-gold-500);
    content: "";
}

.cycle-card .cycle-status {
    min-height: 29px;
    padding: 5px 10px;
    border: 1px solid #e3eaed;
    background: #f4f7f8;
    color: #6d808a;
    font-size: 11px;
}

.cycle-card .cycle-status--open {
    border-color: #cfe7df;
    background: var(--ipc-surface-green);
    color: var(--ipc-emerald-700);
}

.cycle-card .cycle-status i {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(78, 118, 126, .1);
}

.cycle-card .cycle-status--open i {
    box-shadow: 0 0 0 4px rgba(11, 132, 108, .12);
}

.cycle-card h2 {
    margin: 0 0 22px;
    color: var(--ipc-navy-900);
    font-size: 26px;
    line-height: 1.5;
}

.cycle-card__details {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.cycle-card__details > div {
    display: grid;
    grid-template-columns: minmax(112px, .72fr) minmax(0, 1.55fr);
    align-items: center;
    gap: 16px;
    min-height: 67px;
    padding: 13px 14px;
    border: 1px solid #dbe5e9;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(7, 29, 47, .025);
}

.cycle-card__details dt {
    gap: 9px;
    margin: 0;
    color: #677b86;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

.cycle-card__details dt .icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 8px;
    border-radius: 9px;
    background: #eff7f5;
    color: var(--ipc-emerald-700);
}

.cycle-card__details dd {
    color: var(--ipc-navy-900);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.85;
}

.cycle-card__details dd small {
    margin-top: 2px;
    color: #788b95;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.75;
}

.cycle-progress {
    padding: 15px 13px 13px;
    border: 1px solid #dbe5e9;
    border-radius: 12px;
    background: #f7fafb;
}

.cycle-progress h3 {
    margin-bottom: 15px;
    color: #607581;
    font-size: 11.5px;
    font-weight: 700;
}

.cycle-progress ol {
    margin-bottom: 0;
}

.cycle-progress ol::before {
    top: 15px;
    right: 12.5%;
    left: 12.5%;
    background: #cfdce1;
}

.cycle-progress li {
    gap: 8px;
    color: #7a8c95;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.cycle-progress li span {
    width: 31px;
    height: 31px;
    border-color: #c8d5da;
    font-size: 10px;
    font-weight: 700;
}

.cycle-progress li strong {
    display: block;
    max-width: 78px;
    font-weight: 700;
}

.cycle-progress li.is-active span,
.cycle-progress li.is-complete span {
    border-color: var(--ipc-emerald-700);
    background: var(--ipc-emerald-700);
    color: #fff;
}

.cycle-card > .text-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    margin-top: 17px;
    padding-top: 17px;
    border-top: 1px solid #dbe5e9;
    color: var(--ipc-emerald-700);
    font-size: 15px;
    font-weight: 800;
}

.cycle-card > .text-link .icon {
    width: 18px;
}

.services-section {
    padding-bottom: 20px;
    background: #fff;
}

.services-rail {
    margin-top: -48px;
    overflow: hidden;
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-lg);
    box-shadow: 0 16px 42px rgba(7, 29, 47, .09);
}

.service-item {
    position: relative;
    min-height: 124px;
    gap: 16px;
    padding: 24px 26px;
    background: #fff;
    transition: background-color var(--portal-motion), transform var(--portal-motion);
}

.service-item::before {
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 3px;
    background: transparent;
    content: "";
}

.service-item:hover {
    z-index: 1;
    background: var(--ipc-surface-soft);
    transform: translateY(-2px);
}

.service-item--application::before {
    background: var(--application-accent);
}

.service-item--application > .icon:first-child {
    color: #a77f22;
}

.service-item--tracking::before {
    background: var(--ipc-navy-800);
}

.service-item--tracking > .icon:first-child {
    color: var(--ipc-navy-800);
}

.service-item--exam::before {
    background: var(--exam-accent);
}

.service-item strong {
    font-size: 14px;
}

.service-item small {
    color: var(--ipc-muted);
    line-height: 1.75;
}

.home-brief {
    padding-block: 58px 82px;
    background: #fff;
}

.home-brief__grid {
    overflow: hidden;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-lg);
    background: #fff;
    box-shadow: var(--ipc-shadow-sm);
}

.home-brief__intro,
.home-brief__announcement,
.home-brief__links {
    padding: 28px;
}

.home-brief__intro {
    background: var(--ipc-surface-soft);
}

.home-brief__intro h2 {
    font-size: 21px;
    line-height: 1.65;
}

.home-brief__announcement:hover,
.home-brief__links a:hover {
    background: #f9fbfc;
}

@keyframes portal-hero-content-enter {
    from {
        opacity: 0;
        transform: translate3d(16px, 0, 0);
    }
}

@keyframes portal-cycle-card-enter {
    from {
        opacity: 0;
        transform: translate3d(-16px, 8px, 0) scale(.992);
    }
}

/* Shared contextual hero. The shell remains identical; only the task accent changes. */
.institution-hero,
.public-results-hero,
.page-hero--application {
    position: relative;
    overflow: hidden;
    background: var(--ipc-navy-900);
}

.institution-hero::after,
.public-results-hero::after,
.page-hero--application::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--ipc-gold-500);
    content: "";
}

.institution-hero--exam::after,
.public-results-hero.theme-exam::after {
    background: var(--exam-accent);
}

.institution-hero--application::after,
.page-hero--application::after {
    background: var(--application-accent);
}

.institution-hero__inner {
    min-height: 184px;
    padding-block: 34px;
}

.institution-hero h1 {
    font-size: clamp(30px, 3vw, 40px);
}

.institution-hero__copy > p {
    color: #c6d4dc;
    font-size: 14px;
}

.institution-hero--exam .institution-hero__symbol .icon,
.institution-hero--exam .breadcrumb {
    color: #73c9c2;
}

.institution-hero--application .institution-hero__symbol .icon,
.institution-hero--application .breadcrumb {
    color: var(--ipc-gold-300);
}

/* ExamSys-aligned examination context. */
.theme-exam {
    --context-accent: var(--exam-accent);
    --context-accent-strong: var(--exam-accent-strong);
    --context-tint: var(--exam-tint);
}

.exam-hub {
    padding-block: 34px 72px;
    background: var(--ipc-canvas);
}

.exam-toolbar {
    min-height: 66px;
    margin-bottom: 20px;
    padding: 10px 13px;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: 0 2px 12px rgba(7, 29, 47, .035);
}

.exam-toolbar > label {
    padding-inline: 4px;
    font-size: 13px;
}

.exam-toolbar select {
    height: 46px;
    border-color: var(--ipc-line-strong);
    border-radius: var(--ipc-radius-sm);
    font-size: 13px;
}

.exam-toolbar__submit {
    min-height: 40px;
    padding-inline: 18px;
    border-color: var(--exam-accent);
    border-radius: var(--ipc-radius-sm);
    color: var(--exam-accent);
    font-size: 12px;
}

.exam-toolbar__submit:hover {
    background: var(--exam-accent);
}

.exam-toolbar > a {
    color: var(--exam-accent);
    font-size: 12px;
}

.exam-hub__layout {
    grid-template-columns: minmax(0, 1.78fr) minmax(295px, .72fr);
    gap: 20px;
}

.exam-cycle-card,
.exam-side > section,
.exam-next-actions {
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.exam-cycle-card > header {
    padding: 28px 30px 9px;
}

.exam-cycle-card > header span {
    color: var(--exam-accent);
    font-size: 11px;
}

.exam-cycle-card > header h2 {
    margin-top: 6px;
    font-size: 28px;
}

.exam-cycle-card > header p,
.exam-cycle-card > header > small {
    font-size: 11px;
}

.exam-cycle-card__actions {
    padding: 14px 30px 24px;
}

.exam-cycle-card__actions .button {
    min-height: 42px;
    font-size: 12px;
}

.exam-lifecycle {
    padding: 22px 30px 26px;
    background: #fbfcfd;
}

.exam-lifecycle h3,
.exam-dates h3 {
    margin-bottom: 18px;
    font-size: 14px;
}

.exam-lifecycle li {
    gap: 10px;
}

.exam-lifecycle li::before {
    top: 17px;
}

.exam-lifecycle li > span {
    width: 35px;
    height: 35px;
    background: #fff;
    font-size: 11px;
}

.exam-lifecycle li.is-current > span,
.exam-lifecycle li.is-complete > span {
    border-color: var(--exam-accent);
    background: var(--exam-accent);
}

.exam-lifecycle li.is-current > span {
    box-shadow: 0 0 0 5px rgba(8, 127, 120, .11);
}

.exam-lifecycle strong {
    font-size: 12px;
}

.exam-lifecycle .is-current strong {
    color: var(--exam-accent);
}

.exam-lifecycle small {
    margin-top: 4px;
    font-size: 10px;
}

.exam-dates {
    padding: 24px 30px 30px;
}

.exam-dates__table {
    border-radius: var(--ipc-radius-sm);
}

.exam-dates__table > div {
    min-height: 46px;
    grid-template-columns: 1.35fr 1fr .8fr;
}

.exam-dates__table > div > * {
    padding: 10px 15px;
}

.exam-dates__table .exam-dates__head {
    min-height: 40px;
    background: var(--ipc-navy-900);
}

.exam-dates__table .exam-dates__head > * {
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 11px;
}

.exam-dates__table strong,
.exam-dates__table span,
.exam-dates__table small {
    font-size: 12px;
}

.exam-side {
    gap: 14px;
}

.exam-side > section {
    padding: 21px;
}

.exam-side section > header {
    margin-bottom: 14px;
}

.exam-side section > header .icon,
.exam-document > .icon {
    color: var(--exam-accent);
}

.exam-side section h2,
.exam-side section > strong {
    font-size: 13px;
}

.exam-side section > p {
    font-size: 12px;
}

.exam-side section > small,
.exam-document small {
    font-size: 10px;
    line-height: 1.7;
}

.exam-document strong {
    font-size: 11px;
}

.exam-next-actions {
    min-height: 70px;
    margin-top: 18px;
}

.exam-next-actions > strong {
    font-size: 14px;
}

.exam-next-actions a {
    color: var(--exam-accent);
    font-size: 11px;
}

.cycle-archive {
    margin-top: 38px;
    padding-top: 30px;
}

.cycle-archive span,
.cycle-archive__list span {
    color: var(--exam-accent);
}

.cycle-archive__list > a {
    border-radius: var(--ipc-radius-sm);
}

.cycle-archive__list > a:hover {
    border-color: rgba(8, 127, 120, .55);
    box-shadow: var(--ipc-shadow-sm);
}

.public-results-hero__inner {
    min-height: 190px;
}

.public-results-hero h1 {
    font-size: clamp(34px, 4vw, 48px);
}

.public-results-page {
    padding-block: 38px 76px;
    background: var(--ipc-canvas);
}

.result-query-panel {
    border-color: var(--ipc-line);
    border-top: 4px solid var(--exam-accent);
    border-radius: var(--ipc-radius-lg);
    box-shadow: var(--ipc-shadow-sm);
}

.result-query-form .field input,
.result-query-form .field select {
    border-color: var(--ipc-line-strong);
    border-radius: var(--ipc-radius-sm);
}

.result-query-form__submit {
    border-color: var(--exam-accent);
    background: var(--exam-accent);
}

.result-query-form__submit:hover {
    border-color: var(--exam-accent-strong);
    background: var(--exam-accent-strong);
}

.result-guidance-rail h2,
.result-help-link {
    color: var(--exam-accent);
}

/* Application context: focused flow, gold progress, ExamSys form density. */
.application-theme {
    --context-accent: var(--application-accent);
    --context-tint: var(--application-tint);
}

.page-hero--application .page-hero__inner {
    min-height: 292px;
    gap: 64px;
    padding-block: 48px;
}

.application-flow-hero__eyebrow {
    color: var(--ipc-gold-300);
    font-size: 11px;
}

.page-hero--application h1 {
    font-size: clamp(32px, 3.6vw, 45px);
}

.page-hero--application p {
    color: #c8d5dc;
    font-size: 15px;
    line-height: 1.9;
}

.page-steps--flow::before {
    top: 20px;
    background: rgba(255, 255, 255, .22);
}

.page-steps--flow span {
    width: 41px;
    height: 41px;
    background: var(--ipc-navy-900);
}

.page-steps--flow li.is-active span {
    border-color: var(--application-accent);
    background: var(--application-accent);
    box-shadow: 0 0 0 5px rgba(198, 162, 74, .12);
}

.page-steps--flow li.is-complete span {
    border-color: #64bdb6;
    background: rgba(8, 127, 120, .5);
}

.application-page {
    padding-block: 54px 84px;
    background: var(--ipc-canvas);
}

.application-page__grid {
    grid-template-columns: minmax(285px, .68fr) minmax(0, 1.42fr);
    gap: 28px;
}

.application-help,
.application-form-panel,
.static-form-panel,
.details-form {
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-lg);
}

.application-help {
    position: sticky;
    top: calc(var(--portal-header-height) + 18px);
    padding: 0 25px 26px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.intake-cycle-card {
    margin: 0 -25px 25px;
    padding: 24px 25px 22px;
    border: 0;
    border-radius: 0;
    background: var(--ipc-navy-900);
}

.intake-cycle-card::before {
    height: 4px;
    background: var(--application-accent);
}

.application-help h2 {
    margin-bottom: 15px;
    font-size: 17px;
}

.application-help ul {
    margin-bottom: 21px;
    color: var(--ipc-muted);
    font-size: 13px;
    line-height: 1.75;
}

.application-help li::marker {
    color: var(--application-accent);
}

.application-form-panel {
    padding: 35px 38px 39px;
    border-top: 4px solid var(--application-accent);
    box-shadow: 0 10px 28px rgba(7, 29, 47, .065);
}

.application-form-panel > header {
    position: relative;
    min-height: 76px;
    margin-bottom: 28px;
    padding: 0 74px 24px 0;
}

.application-form-panel > header::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--ipc-radius-sm);
    background: var(--application-tint);
    color: #8a681b;
    content: "01";
    font-family: ui-monospace, monospace;
    font-size: 17px;
    font-weight: 800;
}

.application-form-panel > header span {
    color: #8a681b;
    font-size: 11px;
}

.application-form-panel > header h2 {
    font-size: 23px;
}

.application-form-panel > header p {
    max-width: 690px;
    font-size: 13px;
    line-height: 1.8;
}

.choice-grid {
    gap: 11px;
}

.choice-option {
    min-height: 73px;
    border-color: var(--ipc-line-strong);
    border-radius: var(--ipc-radius-sm);
    transition: border-color var(--portal-motion), background-color var(--portal-motion), box-shadow var(--portal-motion);
}

.choice-option:hover {
    border-color: #9fb1bc;
}

.choice-option:has(input:checked) {
    border-color: var(--exam-accent);
    background: var(--exam-tint);
    box-shadow: inset 0 0 0 1px var(--exam-accent);
}

.field label,
.choice-fieldset legend {
    color: var(--ipc-navy-900);
    font-size: 12px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea,
.static-form-panel input,
.details-form input,
.details-form select,
.details-form textarea {
    min-height: 51px;
    border-color: var(--ipc-line-strong);
    border-radius: var(--ipc-radius-sm);
    background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.static-form-panel input:focus,
.details-form input:focus,
.details-form select:focus,
.details-form textarea:focus {
    border-color: var(--exam-accent);
    box-shadow: 0 0 0 3px rgba(8, 127, 120, .12);
}

.application-form-panel .consent-row {
    margin-top: 24px;
    padding: 13px 14px;
    border: 1px solid #ead8aa;
    border-radius: var(--ipc-radius-sm);
    background: var(--application-tint);
    color: #5f553c;
}

.application-start__submit {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
}

.application-flow-page,
.track-page-v3,
.applicant-guide-v3 {
    background: var(--ipc-canvas);
}

.details-form,
.static-form-panel,
.track-page-v3 main {
    border-top: 4px solid var(--application-accent);
    box-shadow: var(--ipc-shadow-sm);
}

.track-page-v3 main,
.track-page-v3__layout > aside,
.guide-v3-aside,
.guide-v3-content > footer {
    border-radius: var(--ipc-radius-md);
}

.track-page-v3__layout > aside,
.guide-v3-content > footer {
    overflow: hidden;
    background: var(--ipc-navy-900);
}

.guide-v3-aside {
    top: calc(var(--portal-header-height) + 18px);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.guide-v3-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
}

.guide-v3-aside > span {
    padding: 17px 18px 12px;
    font-size: 11px;
}

.guide-v3-aside nav a {
    padding: 12px 18px;
    font-size: 11px;
}

.guide-v3-aside > div {
    padding: 17px 18px;
}

.guide-v3-aside > div strong {
    font-size: 11px;
}

.guide-v3-aside > div small {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.7;
}

.guide-v3-content > header p {
    font-size: 14px;
    line-height: 1.8;
}

.guide-checklist span {
    padding: 6px 11px;
    font-size: 10px;
}

.guide-articles > section {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 20px;
    padding-block: 30px;
}

.guide-articles > section > span {
    font-size: 12px;
}

.guide-articles h2 {
    font-size: 18px;
}

.guide-articles p {
    font-size: 13px;
    line-height: 1.9;
}

.guide-articles a,
.guide-articles summary {
    font-size: 11px;
}

.guide-articles small {
    font-size: 10px;
    line-height: 1.8;
}

.guide-v3-content > footer h2 {
    font-size: 18px;
}

.guide-v3-content > footer p {
    font-size: 11px;
}

.track-page-v3 main {
    padding: 32px;
}

.track-page-v3__layout > aside {
    padding: 25px;
}

.track-page-v3__layout > aside > span {
    font-size: 11px;
}

.track-page-v3__layout > aside li {
    gap: 12px;
    padding: 12px 0;
}

.track-page-v3__layout > aside li i {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.track-page-v3__layout > aside li strong {
    font-size: 11px;
}

.track-page-v3__layout > aside li small,
.track-page-v3__layout > aside > div p {
    font-size: 9px;
    line-height: 1.7;
}

.guide-checklist span {
    border-color: #acd8d3;
    background: var(--exam-tint);
}

/* Institutional reading pages: calmer density, stronger hierarchy and one shared shell. */
.about-page,
.legislation-page,
.announcements-page,
.contact-page,
.policy-page,
.accessibility-page {
    background: var(--ipc-canvas);
}

.about-page,
.legislation-page,
.announcements-page,
.contact-page {
    padding-block: 44px 68px;
}

.catalog-heading {
    grid-template-columns: minmax(0, .82fr) minmax(340px, 1.18fr);
    gap: 54px;
    padding-bottom: 25px;
}

.catalog-heading h2,
.about-statement h2,
.about-mandates h2,
.about-principles h2 {
    line-height: 1.55;
}

.catalog-heading > p,
.about-statement > p {
    font-size: 14px;
    line-height: 1.9;
}

/* About */
.about-statement {
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: 58px;
    padding: 28px 30px;
    border: 1px solid var(--ipc-line);
    border-top: 4px solid var(--ipc-gold-500);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: var(--ipc-shadow-sm);
}

.about-mandates {
    margin-top: 38px;
}

.about-mandates > header {
    margin-bottom: 18px;
}

.about-mandates > div {
    overflow: hidden;
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.about-mandates article {
    min-height: 188px;
    padding: 27px 26px;
    border-color: var(--ipc-line);
}

.about-mandates article > .icon {
    width: 31px;
    height: 31px;
    margin-bottom: 22px;
    color: var(--ipc-emerald-700);
}

.about-mandates h3 {
    font-size: 16px;
}

.about-mandates p {
    font-size: 13px;
    line-height: 1.8;
}

.about-principles {
    grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
    gap: 48px;
    margin-top: 38px;
    padding: 27px 29px;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
}

.about-principles dl div {
    padding-inline: 17px;
    border-color: var(--ipc-line);
}

.about-principles dt {
    color: var(--ipc-emerald-700);
    font-size: 13px;
}

.about-principles dd {
    font-size: 12px;
    line-height: 1.75;
}

.about-routes,
.contact-self-service {
    overflow: hidden;
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.about-routes a,
.contact-self-service a {
    min-height: 84px;
    padding: 15px 19px;
    border-color: var(--ipc-line);
    transition: background-color var(--portal-motion);
}

.about-routes a:hover,
.contact-self-service a:hover {
    background: var(--exam-tint);
}

.about-routes strong,
.contact-self-service strong {
    font-size: 12px;
}

.about-routes small,
.contact-self-service small {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.6;
}

/* Legislation */
.legislation-register {
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.legislation-register article {
    min-height: 116px;
    padding: 20px 23px;
    border-color: var(--ipc-line);
}

.legislation-register article:last-child {
    border-bottom: 0;
}

.legislation-register__icon {
    width: 45px;
    height: 45px;
    border-color: #acd8d3;
    border-radius: var(--ipc-radius-sm);
    background: var(--exam-tint);
    color: var(--ipc-emerald-700);
}

.legislation-register article small {
    color: var(--ipc-emerald-700);
    font-size: 10px;
}

.legislation-register h3 {
    margin-block: 3px 4px;
    font-size: 17px;
}

.legislation-register p {
    font-size: 13px;
    line-height: 1.75;
}

.document-state {
    padding: 6px 11px;
    border-color: var(--ipc-line);
    background: var(--ipc-surface-soft);
    font-size: 10px;
}

.legislation-foot {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 18px;
    margin-top: 20px;
}

.legislation-foot > aside {
    min-height: 126px;
    padding: 23px 25px;
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    box-shadow: 0 2px 14px rgba(7, 29, 47, .03);
}

.legislation-foot .publication-note {
    border-top-color: var(--ipc-gold-500);
}

.legislation-foot h2 {
    font-size: 16px;
}

.legislation-foot p {
    font-size: 12px;
    line-height: 1.8;
}

/* Announcements */
.news-featured {
    margin-block: 24px 17px;
    padding: 31px 33px;
    overflow: hidden;
    border-radius: var(--ipc-radius-md);
    box-shadow: 0 12px 30px rgba(7, 29, 47, .1);
}

.news-featured h2 {
    margin-block: 8px;
    font-size: 23px;
    line-height: 1.6;
}

.news-featured p {
    font-size: 13px;
    line-height: 1.8;
}

.news-index {
    overflow: hidden;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
}

.news-index > a {
    min-height: 112px;
    padding: 17px 20px;
    border-color: var(--ipc-line);
}

.news-index > a:last-child {
    border-bottom: 0;
}

.news-index strong {
    font-size: 15px;
}

.news-index p {
    font-size: 12px;
    line-height: 1.7;
}

.news-detail-layout {
    gap: 38px;
}

.news-article {
    padding: 29px 31px;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: var(--ipc-shadow-sm);
}

.news-article > footer,
.news-side > section,
.news-side nav {
    border-radius: var(--ipc-radius-sm);
}

.news-side nav {
    overflow: hidden;
    background: #fff;
}

/* Contact */
.contact-v3__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 20px;
    margin-top: 24px;
}

.contact-v3__channels,
.contact-v3__grid > aside {
    overflow: hidden;
    border-radius: var(--ipc-radius-md);
    box-shadow: 0 4px 18px rgba(7, 29, 47, .055);
}

.contact-v3__channels {
    border-color: var(--ipc-line);
    background: #fff;
}

.contact-route {
    min-height: 130px;
    padding: 25px 26px;
    border-color: var(--ipc-line);
}

.contact-route span > small {
    color: var(--ipc-emerald-700);
    font-size: 10px;
}

.contact-route span > strong {
    margin-block: 4px;
    font-size: 15px;
}

.contact-route p {
    font-size: 12px;
    line-height: 1.75;
}

.contact-v3__grid > aside {
    padding: 29px 28px;
    border-top-color: var(--ipc-gold-500);
    background: var(--ipc-navy-900);
}

.contact-v3__grid > aside > span {
    font-size: 10px;
}

.contact-v3__grid > aside h2 {
    margin-block: 9px;
    font-size: 21px;
}

.contact-v3__grid > aside p {
    color: #cbd8de;
    font-size: 12px;
    line-height: 1.85;
}

/* Privacy */
.policy-page {
    padding-block: 38px 68px;
}

.policy-layout {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
}

.policy-layout > aside {
    position: sticky;
    top: calc(var(--portal-header-height) + 18px);
    padding: 25px 24px;
    border-top-color: var(--ipc-gold-500);
    border-radius: var(--ipc-radius-md);
    background: var(--ipc-navy-900);
    box-shadow: 0 12px 28px rgba(7, 29, 47, .12);
}

.policy-layout > aside span {
    font-size: 10px;
}

.policy-layout > aside strong {
    margin-block: 6px 10px;
    font-size: 16px;
}

.policy-layout > aside p {
    color: #cbd8de;
    font-size: 12px;
    line-height: 1.8;
}

.policy-layout > aside a {
    margin-top: 16px;
    font-size: 10px;
}

.policy-layout > article {
    overflow: hidden;
    padding: 29px 32px 9px;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: var(--ipc-shadow-sm);
}

.policy-layout > article > header {
    padding-bottom: 25px;
    border-color: var(--ipc-line);
}

.policy-layout > article > header span {
    color: var(--ipc-emerald-700);
    font-size: 10px;
}

.policy-layout > article > header h2 {
    margin-block: 5px 7px;
    font-size: 25px;
    line-height: 1.55;
}

.policy-layout > article > header p {
    font-size: 13px;
    line-height: 1.8;
}

.policy-layout > article > section {
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding-block: 24px;
    border-color: var(--ipc-line);
}

.policy-layout > article > section:last-child {
    border-bottom: 0;
}

.policy-layout > article > section > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--application-tint);
    color: #927020;
    font-size: 10px;
}

.policy-layout > article > section h2 {
    font-size: 16px;
}

.policy-layout > article > section p {
    font-size: 13px;
    line-height: 1.85;
}

/* Accessibility: accepted concept uses an intro card, one principles panel and full-width status rows. */
.accessibility-page {
    padding-block: 32px 56px;
}

.accessibility-layout {
    grid-template-columns: minmax(285px, .62fr) minmax(0, 1.38fr);
    grid-template-areas:
        "intro principles"
        "feedback feedback"
        "status status";
    gap: 18px 24px;
}

.accessibility-intro {
    grid-area: intro;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 27px 26px;
    border: 1px solid var(--ipc-line);
    border-top: 4px solid var(--ipc-emerald-700);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: var(--ipc-shadow-sm);
}

.accessibility-intro > span {
    margin-bottom: 7px;
    color: var(--ipc-emerald-700);
    font-size: 10px;
    font-weight: 700;
}

.accessibility-intro h2 {
    margin: 0 0 10px;
    color: var(--ipc-navy-900);
    font-size: 25px;
    line-height: 1.55;
}

.accessibility-intro p {
    margin: 0;
    color: var(--ipc-muted);
    font-size: 13px;
    line-height: 1.9;
}

.accessibility-principles--v3 {
    grid-area: principles;
    overflow: hidden;
    border-color: var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: 0 2px 14px rgba(7, 29, 47, .035);
}

.accessibility-principles--v3 article {
    grid-template-columns: 45px 30px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 88px;
    padding: 15px 19px;
    border-color: var(--ipc-line);
}

.accessibility-principles--v3 article:last-child {
    border-bottom: 0;
}

.accessibility-principles article > .accessibility-principle__icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid #acd8d3;
    border-radius: var(--ipc-radius-sm);
    background: var(--exam-tint);
    color: var(--ipc-emerald-700);
}

.accessibility-principle__icon .icon {
    width: 21px;
    height: 21px;
}

.accessibility-principles article > .accessibility-principle__number {
    color: #927020;
    font-size: 10px;
}

.accessibility-principles h3 {
    margin-bottom: 3px;
    font-size: 15px;
}

.accessibility-principles p {
    font-size: 12px;
    line-height: 1.75;
}

.accessibility-feedback {
    grid-area: feedback;
    margin: 0;
    padding: 17px 22px;
    border: 1px solid var(--ipc-line);
    border-top: 3px solid var(--ipc-gold-500);
    border-radius: var(--ipc-radius-md);
    background: #fff;
    box-shadow: 0 2px 12px rgba(7, 29, 47, .03);
}

.accessibility-feedback > div > .icon {
    color: #a87d18;
}

.accessibility-status {
    grid-area: status;
    grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 21px 23px;
    border: 1px solid var(--ipc-line);
    border-radius: var(--ipc-radius-md);
    background: #fff;
}

.accessibility-status span {
    color: var(--ipc-emerald-700);
    font-size: 10px;
}

.accessibility-status h2 {
    margin-top: 4px;
    font-size: 18px;
}

.accessibility-status p {
    font-size: 12px;
    line-height: 1.8;
}

/* A shorter footer keeps secondary pages focused and matches the ExamSys information density. */
.site-footer {
    padding-top: 46px;
    background: var(--ipc-navy-950);
}

.site-footer__grid {
    grid-template-columns: minmax(300px, 1.25fr) minmax(230px, .9fr) minmax(250px, 1fr);
    gap: 52px;
    padding-bottom: 35px;
}

.site-footer__brand p {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.8;
}

.site-footer h2 {
    margin-bottom: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 16px;
}

.footer-links,
.footer-contact {
    font-size: 12px;
}

.site-footer__legal {
    min-height: 58px;
}

@media (max-width: 1120px) {
    .site-header__inner {
        gap: 20px;
    }

    .brand-lockup__name {
        max-width: 165px;
        font-size: 12px;
    }

    .desktop-nav {
        gap: 15px;
        font-size: 12px;
    }

    .hero__inner {
        grid-template-columns: minmax(330px, .86fr) minmax(0, 1fr);
        gap: 48px;
    }

    .exam-hub__layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 940px) {
    :root {
        --portal-header-height: 82px;
    }

    .container {
        width: min(calc(100% - 36px), var(--ipc-content-width));
    }

    .site-header__inner {
        min-height: var(--portal-header-height);
    }

    .hero::after {
        width: 100%;
        height: 48%;
        inset: auto 0 0;
        background:
            radial-gradient(circle at 82% 72%, rgba(68, 199, 188, .12), transparent 34%),
            linear-gradient(180deg, rgba(7, 93, 95, 0), rgba(7, 93, 95, .86) 31%, #08706c 100%);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        grid-template-areas: "content" "cycle";
        gap: 44px;
        padding-block: 62px 96px;
        direction: rtl;
    }

    .hero__content {
        max-width: 650px;
        justify-self: stretch;
    }

    .cycle-card {
        width: 100%;
        max-width: 680px;
        justify-self: center;
    }

    .book-motif {
        left: 50%;
        width: min(92vw, 700px);
    }

    .home-brief__grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-brief__links {
        grid-column: 1 / -1;
    }

    .exam-hub__layout,
    .application-page__grid {
        grid-template-columns: 1fr;
    }

    .exam-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exam-side .exam-alert {
        grid-column: 1 / -1;
    }

    .application-help {
        position: static;
        order: 2;
    }

    .page-hero--application .page-hero__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .catalog-heading,
    .about-statement,
    .about-principles,
    .contact-v3__grid,
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .catalog-heading,
    .about-statement {
        gap: 16px;
    }

    .about-principles {
        gap: 22px;
    }

    .about-mandates > div {
        grid-template-columns: 1fr;
    }

    .about-mandates article {
        min-height: 0;
        border-inline-end: 0;
        border-bottom: 1px solid var(--ipc-line);
    }

    .about-mandates article:last-child {
        border-bottom: 0;
    }

    .accessibility-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "principles"
            "feedback"
            "status";
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 48px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--ipc-content-width));
    }

    .site-header {
        position: relative;
    }

    .hero {
        min-height: auto;
    }

    .hero::before {
        right: 14px;
        width: 72px;
    }

    .hero::after {
        height: 47%;
    }

    .hero__inner {
        min-height: auto;
        gap: 36px;
        padding-block: 48px 82px;
    }

    .hero__content h1 {
        font-size: clamp(34px, 10vw, 43px);
    }

    .hero__content > p:not(.hero__note) {
        font-size: 16px;
    }

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero__actions .button {
        width: 100%;
    }

    .cycle-card {
        max-width: none;
        padding: 26px 22px 22px;
    }

    .cycle-card__details {
        grid-template-columns: 1fr;
    }

    .services-rail {
        grid-template-columns: 1fr;
        margin-top: -42px;
    }

    .service-item {
        min-height: 105px;
        padding: 21px 20px;
    }

    .service-item::before {
        top: 18px;
        right: 0;
        bottom: 18px;
        left: auto;
        width: 3px;
        height: auto;
    }

    .home-brief {
        padding-block: 46px 64px;
    }

    .home-brief__grid {
        grid-template-columns: 1fr;
    }

    .home-brief__links {
        grid-column: auto;
    }

    .institution-hero__inner {
        min-height: 166px;
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 20px;
    }

    .institution-hero__symbol {
        width: 66px;
        height: 66px;
    }

    .institution-hero h1 {
        font-size: 29px;
    }

    .exam-hub {
        padding-block: 24px 56px;
    }

    .exam-toolbar {
        grid-template-columns: 1fr auto;
    }

    .exam-toolbar > label,
    .exam-toolbar > a {
        grid-column: 1 / -1;
    }

    .exam-cycle-card > header,
    .exam-cycle-card__actions,
    .exam-lifecycle,
    .exam-dates {
        padding-inline: 20px;
    }

    .exam-cycle-card > header {
        flex-direction: column;
    }

    .exam-lifecycle {
        overflow: visible;
    }

    .exam-lifecycle ol {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 23px 12px;
    }

    .exam-lifecycle li {
        min-height: 84px;
        padding: 13px 9px;
        border: 1px solid var(--ipc-line);
        border-radius: var(--ipc-radius-sm);
        background: #fff;
    }

    .exam-lifecycle li::before {
        display: none;
    }

    .exam-lifecycle li.is-current {
        border-color: rgba(8, 127, 120, .45);
        background: var(--exam-tint);
    }

    .exam-dates__table > div {
        grid-template-columns: 1.2fr 1fr;
    }

    .exam-dates__table > div > small,
    .exam-dates__table > div > *:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px dashed var(--ipc-line);
        border-inline-end: 0;
    }

    .exam-dates__table .exam-dates__head {
        display: none;
    }

    .exam-side {
        grid-template-columns: 1fr;
    }

    .exam-side .exam-alert {
        grid-column: auto;
    }

    .exam-next-actions {
        grid-template-columns: 1fr;
    }

    .cycle-archive {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .public-results-hero__inner {
        min-height: 175px;
    }

    .public-results-page {
        padding-block: 28px 56px;
    }

    .page-hero--application .page-hero__inner {
        min-height: auto;
        padding-block: 39px 43px;
    }

    .page-steps--flow span {
        width: 35px;
        height: 35px;
    }

    .page-steps--flow::before {
        top: 17px;
    }

    .application-page {
        padding-block: 34px 60px;
    }

    .guide-v3-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .guide-v3-aside {
        position: static;
    }

    .application-form-panel {
        padding: 27px 20px 28px;
    }

    .application-form-panel > header {
        min-height: 0;
        padding: 66px 0 21px;
    }

    .application-form-panel > header::before {
        width: 48px;
        height: 48px;
    }

    .choice-grid,
    .form-grid,
    .form-grid--three {
        grid-template-columns: 1fr;
    }

    .about-page,
    .legislation-page,
    .announcements-page,
    .contact-page {
        padding-block: 32px 53px;
    }

    .catalog-heading {
        gap: 12px;
        padding-bottom: 20px;
    }

    .catalog-heading h2,
    .about-statement h2,
    .about-mandates h2,
    .about-principles h2 {
        font-size: 21px;
    }

    .about-statement,
    .about-principles {
        padding: 23px 20px;
    }

    .about-mandates > header {
        display: block;
    }

    .about-principles dl {
        grid-template-columns: 1fr;
    }

    .about-principles dl div {
        padding: 12px 0;
        border-bottom: 1px solid var(--ipc-line);
        border-inline-end: 0;
    }

    .about-principles dl div:last-child {
        border-bottom: 0;
    }

    .about-routes,
    .contact-self-service,
    .legislation-foot,
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .about-routes a,
    .contact-self-service a {
        border-bottom: 1px solid var(--ipc-line);
        border-inline-end: 0;
    }

    .about-routes a:last-child,
    .contact-self-service a:last-child {
        border-bottom: 0;
    }

    .legislation-register article {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 13px;
        padding-inline: 17px;
    }

    .document-state {
        grid-column: 2;
        width: max-content;
        max-width: 100%;
        white-space: normal;
    }

    .news-featured {
        grid-template-columns: 1fr;
        padding: 25px 21px;
    }

    .news-featured footer {
        min-width: 0;
        flex-direction: row;
        align-items: center;
    }

    .news-index > a {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 13px;
        padding-inline: 13px;
    }

    .news-index > a > .icon {
        display: none;
    }

    .news-index p {
        display: none;
    }

    .news-article {
        padding: 24px 20px;
    }

    .news-side {
        grid-template-columns: 1fr;
    }

    .contact-route {
        min-height: 118px;
        padding: 22px 20px;
    }

    .policy-layout {
        gap: 20px;
    }

    .policy-layout > aside {
        position: static;
    }

    .policy-layout > article {
        padding: 25px 20px 5px;
    }

    .policy-layout > article > header h2 {
        font-size: 21px;
    }

    .accessibility-page {
        padding-block: 26px 50px;
    }

    .accessibility-intro {
        padding: 23px 20px;
    }

    .accessibility-intro h2 {
        font-size: 22px;
    }

    .accessibility-principles--v3 article {
        grid-template-columns: 41px 26px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 15px 14px;
    }

    .accessibility-principles article > .accessibility-principle__icon {
        width: 39px;
        height: 39px;
    }

    .accessibility-feedback {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .accessibility-status {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 29px;
        padding-bottom: 31px;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer__legal {
        min-height: 0;
        gap: 13px;
        padding-block: 18px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(calc(100% - 22px), var(--ipc-content-width));
    }

    .cycle-progress ol {
        margin-inline: -3px;
    }

    .cycle-progress li strong {
        font-size: 9.5px;
    }

    .cycle-card {
        padding: 23px 18px 19px;
        border-radius: 14px;
    }

    .cycle-card h2 {
        margin-bottom: 18px;
        font-size: 23px;
    }

    .cycle-card__details > div {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px;
    }

    .cycle-card__details dd {
        padding-inline-start: 45px;
        font-size: 12.5px;
    }

    .cycle-progress {
        padding-inline: 8px;
    }

    .service-item {
        grid-template-columns: 30px 1fr 16px;
        gap: 12px;
    }

    .service-item > .icon:first-child {
        width: 28px;
        height: 28px;
    }

    .page-steps--flow li small {
        font-size: 9px;
    }

    .application-form-panel > header h2 {
        font-size: 21px;
    }

    .accessibility-principles--v3 article {
        grid-template-columns: 39px minmax(0, 1fr);
    }

    .accessibility-principles article > .accessibility-principle__number {
        display: none;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap-inline: 11px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hero__content,
    .cycle-card {
        animation: none;
    }

    .button:hover,
    .service-item:hover,
    .cycle-archive__list > a:hover {
        transform: none;
    }
}
