.uqab-site {
    --uqab-story-ink: #0d2538;
    --uqab-story-copy: #354e61;
    --uqab-story-deep: #102a40;
    --uqab-story-line: #cbd8e3;
    --uqab-story-blue: #145583;
    --uqab-story-gold: #ffcf87;
}

.uqab-site .uqab-story-hero {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #0d2a41;
    border: 1px solid #40627b;
    border-radius: 16px;
}
.uqab-story-hero-art img,
.uqab-story-sector-visual img { display: block; width: 100%; height: auto; }
.uqab-story-hero figcaption { padding: 0 18px 17px; }
.uqab-story-hero ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid #40627b;
    border-bottom: 1px solid #40627b;
}
.uqab-story-hero li { display: grid; align-content: start; gap: 3px; font-size: .81rem; line-height: 1.28; }
.uqab-story-hero li span { color: var(--uqab-story-gold); font-size: .71rem; font-weight: 700; }
.uqab-story-hero li strong { color: #f1f7fd; }
.uqab-story-hero figcaption p { margin: 12px 0 0; color: #c9deee; font-size: .82rem; }

.uqab-story-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.uqab-story-modules article,
.uqab-story-workflow {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--uqab-story-line);
    border-radius: 14px;
    background: #fff;
    color: var(--uqab-story-ink);
    padding: clamp(18px, 2.5vw, 30px);
}
.uqab-story-modules article { display: flex; flex-direction: column; align-items: flex-start; }
.uqab-story-modules h3, .uqab-story-workflow h3 { color: var(--uqab-story-ink); margin: 0 0 9px; }
.uqab-story-modules article p, .uqab-story-workflow figcaption p { color: var(--uqab-story-copy); margin: 0 0 16px; }
.uqab-story-modules article a { margin-top: auto; font-weight: 700; color: var(--uqab-story-blue); text-underline-offset: .17em; }
.uqab-story-module-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 0 16px;
    color: var(--uqab-story-blue);
    background: #e9f2f9;
    border-radius: 11px;
}
.uqab-story-module-icon svg, .uqab-story-workflow li svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.uqab-story-config { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 74px); align-items: center; }
.uqab-story-config > div > p:not(.uqab-eyebrow) { color: #c9deee; }
.uqab-story-config > div > a { color: #b6ddf7; font-weight: 700; text-underline-offset: .17em; }
.uqab-story-config-example {
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
    background: var(--uqab-story-deep);
    border: 1px solid #45667e;
    border-radius: 14px;
}
.uqab-story-config-example .uqab-story-config-label {
    margin: 0 0 7px;
    color: var(--uqab-story-gold);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.uqab-story-config-example h3 { color: #f4f8fc; margin: 0 0 12px; }
.uqab-story-config-example ol { margin: 0; padding: 0; list-style: none; }
.uqab-story-config-example li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 10px 0;
    border-top: 1px solid #45667e;
    color: #c9deee;
    font-size: .89rem;
}
.uqab-story-config-example li strong { color: #f3f8fd; }

.uqab-story-workflows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.uqab-story-workflow figcaption { display: flex; gap: 12px; align-items: flex-start; }
.uqab-story-workflow-number {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: #fff;
    background: var(--uqab-story-blue);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 700;
}
.uqab-story-workflow ol {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 5px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--uqab-story-line);
    list-style: none;
}
.uqab-story-workflow li { display: grid; align-content: start; justify-items: center; gap: 7px; color: var(--uqab-story-blue); text-align: center; }
.uqab-story-workflow li svg { border-radius: 8px; box-sizing: content-box; padding: 6px; background: #e9f2f9; }
.uqab-story-workflow li span { color: var(--uqab-story-ink); font-size: .76rem; line-height: 1.23; font-weight: 700; overflow-wrap: anywhere; }

.uqab-story-optional {
    display: grid;
    grid-template-columns: minmax(140px, auto) minmax(0, 1fr);
    gap: 11px 28px;
    align-items: center;
    max-width: 880px;
    margin: auto;
    padding: 22px clamp(18px, 4vw, 38px);
    border: 1px solid #45667e;
    border-radius: 13px;
    background-color: #102a40;
}
.uqab-story-optional h2 { margin: 0; color: #f4f8fc; font-size: clamp(1.42rem, 3vw, 2rem); }
.uqab-story-optional p { margin: 0; color: #c9deee; }
.uqab-story-optional .uqab-status-label { color: var(--uqab-story-gold); margin: 0 0 5px; }
.uqab-site section:has(.uqab-story-optional) { padding-block: clamp(25px, 4vw, 52px); }
.uqab-story-sector-visual { min-width: 0; margin: 0; overflow: hidden; border-radius: 14px; }
.uqab-story-sector-visual figcaption { padding-block: .6rem; font-size: .86rem; }

@media (max-width: 770px) {
    .uqab-story-modules, .uqab-story-workflows, .uqab-story-config { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
    .uqab-story-optional { grid-template-columns: 1fr; }
    .uqab-story-hero figcaption { padding-inline: 12px; }
    .uqab-story-hero li { font-size: .74rem; }
    .uqab-story-workflow li svg { width: 24px; height: 24px; }
}
