/**
 * @Author: Desmond Henry
 * @Company: Helpblogger Digital
 * @Website: https://helpblogger.ng
 * @ProductName: HBEdu
 * @Version: 1.2.28
 */

:root {
    --hb-primary: #2563eb;
    --hb-primary-contrast: #ffffff;
    --hb-accent: #f59e0b;
    --hb-bg: #f5f7fb;
    --hb-surface: #ffffff;
    --hb-text: #0f172a;
    --hb-muted: #64748b;
    --hb-border: #e2e8f0;
    --hb-dark: #0b1020;
    --hb-success: #16a34a;
    --hb-danger: #dc2626;
    --hb-font-heading: system-ui, sans-serif;
    --hb-font-body: system-ui, sans-serif;
    --hb-radius: 20px;
    --hb-radius-sm: 12px;
    --hb-radius-lg: 28px;
    --hb-ease: cubic-bezier(.2, .7, .2, 1);
    --hb-ease-out: cubic-bezier(.16, 1, .3, 1);
    --hb-tint: color-mix(in srgb, var(--hb-primary) 10%, #ffffff);
    --hb-tint-accent: color-mix(in srgb, var(--hb-accent) 16%, #ffffff);
    --hb-on-dark: #f8fafc;
    --hb-on-dark-muted: rgba(248, 250, 252, .7);
    --hb-line-dark: rgba(248, 250, 252, .14);
}

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

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: var(--hb-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--hb-text);
    background: var(--hb-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--hb-primary);
    text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--hb-font-heading);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
}

p {
    margin: 0 0 1em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

.hb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hb-container {
    width: min(1200px, 100% - 40px);
    margin-inline: auto;
}

.hb-main {
    min-height: 60vh;
}

.hb-section {
    padding: clamp(56px, 8vw, 112px) 0;
}

.hb-section-tight {
    padding: clamp(20px, 2.5vw, 32px) 0;
}

.hb-section-alt {
    background: var(--hb-surface);
    border-block: 1px solid var(--hb-border);
}

.hb-section-head {
    max-width: 680px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.hb-section-head p {
    color: var(--hb-muted);
    font-size: 17px;
    margin: 0;
}

.hb-h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
}

.hb-h3 {
    font-size: 20px;
    font-weight: 700;
}

.hb-title {
    font-size: clamp(36px, 5.4vw, 66px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.hb-lead {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--hb-muted);
    max-width: 56ch;
}

.hb-meta {
    font-size: 14px;
    color: var(--hb-muted);
}

.hb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hb-text);
    font-family: var(--hb-font-heading);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.02em;
}

.hb-brand-static {
    cursor: default;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.hb-brand-static * {
    pointer-events: none;
    -webkit-user-drag: none;
}

.hb-brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--hb-primary);
    color: var(--hb-primary-contrast);
}

.hb-brand-mark.has-image {
    width: 200px;
    height: 50px;
    max-width: 100%;
    flex: none;
    background: transparent;
    overflow: hidden;
}

.hb-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hb-brand-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin-bottom: 8px;
}

.hb-brand-preview img {
    width: 56px;
    height: 56px;
    padding: 6px;
    object-fit: contain;
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    background: var(--hb-surface);
}

.hb-brand-mark svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hb-brand-light {
    color: var(--hb-on-dark);
}

.hb-brand-dark {
    color: var(--hb-text);
}

.hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    background: var(--hb-primary);
    color: var(--hb-primary-contrast);
    transition: transform .3s var(--hb-ease-out), opacity .25s;
}

.hb-btn:active {
    transform: scale(.97);
}

.hb-btn:disabled {
    opacity: .6;
    cursor: progress;
}

.hb-btn-ghost {
    background: transparent;
    color: var(--hb-text);
    border-color: var(--hb-border);
}

.hb-btn-block {
    width: 100%;
}

.hb-link-danger {
    background: none;
    border: 0;
    padding: 0;
    color: var(--hb-danger);
    cursor: pointer;
    font-weight: 600;
}

.hb-rise {
    animation: hb-rise .8s var(--hb-ease-out) both;
    animation-delay: var(--hb-delay, 0ms);
}

.hb-animate .hb-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--hb-ease-out), transform .8s var(--hb-ease-out);
    transition-delay: var(--hb-delay, 0ms);
}

.hb-animate .hb-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes hb-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes hb-pop {
    0% {
        opacity: 0;
        transform: scale(.94) translateY(12px);
    }
    65% {
        opacity: 1;
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes hb-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes hb-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes hb-shimmer {
    0%,
    100% {
        opacity: .35;
    }
    50% {
        opacity: 1;
    }
}

@keyframes hb-scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(340%);
    }
}

@keyframes hb-ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes hb-float {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes hb-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hb-fallback {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.hb-preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: var(--hb-dark);
    transition: opacity .5s var(--hb-ease), visibility .5s;
    animation: hb-fallback .4s 5s forwards;
}

.hb-preloader.is-done {
    opacity: 0;
    visibility: hidden;
}

.hb-preloader-inner {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.hb-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid color-mix(in srgb, var(--hb-on-dark) 18%, transparent);
    border-top-color: var(--hb-accent);
    animation: hb-spin .8s linear infinite;
}

.hb-preloader-text {
    font-family: var(--hb-font-heading);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--hb-on-dark-muted);
    margin: 0;
}

.hb-sketch {
    width: 120px;
    height: 120px;
    overflow: visible;
}

.hb-sketch-small {
    width: 64px;
    height: 64px;
    margin-inline: auto;
}

.hb-sketch-ring {
    fill: none;
    stroke: var(--hb-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    animation: hb-draw 1.4s var(--hb-ease) infinite alternate;
}

.hb-sketch-arrow {
    fill: none;
    stroke: var(--hb-accent);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: hb-draw 1.4s var(--hb-ease) .3s infinite alternate;
}

.hb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--hb-surface);
    border-bottom: 1px solid var(--hb-border);
}

.hb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.hb-nav {
    display: none;
    align-items: center;
    gap: 4px;
}

.hb-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--hb-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.hb-nav a.is-current {
    background: var(--hb-text);
    color: var(--hb-surface);
}

.hb-nav-cta {
    margin-left: 10px;
    padding: 10px 18px !important;
    background: var(--hb-primary);
    color: var(--hb-primary-contrast) !important;
    border-radius: 999px;
}

.hb-burger {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    cursor: pointer;
}

.hb-burger-lines {
    display: grid;
    gap: 5px;
}

.hb-burger-lines i {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--hb-text);
    transition: transform .35s var(--hb-ease), opacity .35s;
}

.hb-nav-open .hb-burger-lines i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hb-nav-open .hb-burger-lines i:nth-child(2) {
    opacity: 0;
}

.hb-nav-open .hb-burger-lines i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hb-mobile-nav {
    position: fixed;
    inset: 72px 0 0;
    z-index: 49;
    background: var(--hb-surface);
    overflow-y: auto;
    padding: 12px 0 40px;
}

.hb-mobile-nav[hidden] {
    display: none;
}

.hb-mobile-nav.is-open .hb-mobile-link {
    animation: hb-rise .5s var(--hb-ease-out) both;
    animation-delay: var(--hb-delay, 0ms);
}

.hb-mobile-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hb-muted);
    margin: 26px 0 10px;
}

.hb-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: var(--hb-radius-sm);
    background: var(--hb-bg);
    color: var(--hb-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
}

.hb-mobile-link::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hb-accent);
}

.hb-hero {
    position: relative;
    overflow: hidden;
    background: var(--hb-dark);
    color: var(--hb-on-dark);
    padding: clamp(44px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}

.hb-hero::before,
.hb-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hb-hero::before {
    width: clamp(260px, 36vw, 520px);
    aspect-ratio: 1;
    top: -140px;
    right: -120px;
    border: 2px solid var(--hb-line-dark);
}

.hb-hero::after {
    width: 120px;
    aspect-ratio: 1;
    left: 42%;
    bottom: 40px;
    background: var(--hb-accent);
    opacity: .9;
    animation: hb-float 7s var(--hb-ease) infinite;
}

.hb-hero .hb-container {
    position: relative;
    z-index: 1;
}

.hb-hero-compact {
    padding-top: clamp(20px, 3vw, 36px);
    padding-bottom: clamp(16px, 2.5vw, 28px);
}

.hb-hero .hb-lead {
    color: var(--hb-on-dark-muted);
}

.hb-hero-grid {
    display: grid;
    gap: 44px;
    align-items: center;
}

.hb-hero-copy {
    min-width: 0;
}

.hb-hero-tool {
    min-width: 0;
}

.hb-trust {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--hb-line-dark);
    font-size: 14px;
    font-weight: 600;
    color: var(--hb-on-dark);
}

.hb-trust li::before,
.hb-check-list li::before {
    content: "";
    flex: none;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hb-success);
}

.hb-host-chips,
.hb-chip-row {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hb-host-chips li {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--hb-line-dark);
    color: var(--hb-on-dark-muted);
    word-break: break-all;
}

.hb-chip {
    padding: 11px 18px;
    border-radius: 999px;
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    color: var(--hb-text);
    text-decoration: none;
    font-weight: 700;
}

.hb-tool {
    position: relative;
    background: var(--hb-surface);
    color: var(--hb-text);
    border-radius: var(--hb-radius-lg);
    padding: clamp(22px, 3vw, 36px);
    border: 2px solid var(--hb-accent);
}

.hb-tool-head {
    margin-bottom: 20px;
}

.hb-tool-title {
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 800;
    margin: 0 0 6px;
}

.hb-tool-sub {
    color: var(--hb-muted);
    font-size: 14px;
    margin: 0;
}

.hb-tool-field {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px 7px 7px 18px;
    border: 2px solid var(--hb-text);
    border-radius: 999px;
    background: var(--hb-bg);
}

.hb-tool-field:focus-within {
    border-color: var(--hb-primary);
    background: var(--hb-surface);
}

.hb-tool-icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--hb-primary);
}

.hb-tool-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hb-tool-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 10px 0;
    font-size: 16px;
    outline: none;
}

.hb-tool-submit {
    min-height: 50px;
    padding-inline: 22px;
    white-space: nowrap;
}

.hb-tool-hint {
    font-size: 13px;
    color: var(--hb-muted);
    margin: 14px 0 0;
}

.hb-tool-stage {
    margin-top: 20px;
}

.hb-tool-loading {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 22px 0 6px;
    text-align: center;
    color: var(--hb-muted);
}

.hb-tool-loading p {
    margin: 0;
    font-weight: 600;
}

.hb-scanner {
    position: relative;
    width: min(360px, 100%);
    height: 10px;
    border-radius: 999px;
    background: var(--hb-border);
    overflow: hidden;
}

.hb-scanner::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 32%;
    border-radius: 999px;
    background: var(--hb-primary);
    animation: hb-scan 1.3s var(--hb-ease) infinite;
}

.hb-skeleton {
    display: grid;
    gap: 9px;
    width: min(360px, 100%);
}

.hb-skeleton span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: var(--hb-border);
    animation: hb-shimmer 1.2s ease-in-out infinite;
}

.hb-skeleton span:nth-child(2) {
    width: 72%;
    animation-delay: .15s;
}

.hb-skeleton span:nth-child(3) {
    width: 46%;
    animation-delay: .3s;
}

.hb-tool-error {
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: var(--hb-radius-sm);
    border: 2px solid var(--hb-danger);
    color: var(--hb-danger);
    background: var(--hb-surface);
    font-size: 15px;
    font-weight: 600;
    animation: hb-pop .45s var(--hb-ease-out) both;
}

.hb-result {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: var(--hb-radius);
    background: var(--hb-bg);
    animation: hb-pop .6s var(--hb-ease-out) both;
}

.hb-result-head {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
}

.hb-result-thumb {
    width: 120px;
    height: 120px;
    border-radius: var(--hb-radius-sm);
    object-fit: cover;
    background: var(--hb-border);
    border: 2px solid var(--hb-text);
}

.hb-result-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.hb-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--hb-muted);
    margin: 0;
}

.hb-result-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    font-weight: 600;
}

.hb-media-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.hb-media-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--hb-text);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    animation: hb-pop .5s var(--hb-ease-out) both;
    animation-delay: var(--hb-delay, 0ms);
}

.hb-media-type {
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--hb-primary);
    color: var(--hb-primary-contrast);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hb-media-type.is-audio {
    background: var(--hb-accent);
    color: #1f1300;
}

.hb-media-type.is-image {
    background: var(--hb-success);
}

.hb-media-info {
    min-width: 0;
}

.hb-media-info strong {
    display: block;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.hb-media-info span {
    font-size: 13px;
    color: var(--hb-muted);
}

.hb-media-link {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 14px;
}

.hb-media-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hb-media-player {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 360px;
    border-radius: var(--hb-radius-sm);
    background: var(--hb-dark);
}

.hb-result-note {
    font-size: 13px;
    color: var(--hb-muted);
    margin: 0;
}

.hb-ticker {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--hb-line-dark);
    background: var(--hb-dark);
    color: var(--hb-on-dark);
}

.hb-ticker-track {
    display: flex;
    width: max-content;
    animation: hb-ticker 28s linear infinite;
}

.hb-ticker-group {
    display: flex;
    flex: none;
}

.hb-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    font-family: var(--hb-font-heading);
    font-weight: 800;
    font-size: clamp(18px, 2.4vw, 26px);
    letter-spacing: -.01em;
    white-space: nowrap;
}

.hb-ticker-item::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--hb-accent);
}

.hb-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 2px solid var(--hb-text);
    border-radius: var(--hb-radius);
    background: var(--hb-surface);
    overflow: hidden;
}

.hb-stat-item {
    padding: clamp(20px, 3vw, 30px);
    border-right: 2px solid var(--hb-text);
    border-bottom: 2px solid var(--hb-text);
}

.hb-stat-item:nth-child(2n) {
    border-right: 0;
}

.hb-stat-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.hb-stat-value {
    display: block;
    font-family: var(--hb-font-heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1;
    color: var(--hb-primary);
    letter-spacing: -.03em;
}

.hb-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--hb-muted);
    font-weight: 600;
}

.hb-two-col {
    display: grid;
    gap: 40px;
}

.hb-prose {
    font-size: 17px;
}

.hb-prose h2,
.hb-prose h3 {
    margin-top: 1.6em;
}

.hb-prose ol,
.hb-prose ul {
    padding-left: 1.2em;
}

.hb-numbered {
    list-style: none;
    counter-reset: hb-step;
    padding: 0;
    display: grid;
    gap: 14px;
}

.hb-numbered li {
    counter-increment: hb-step;
    position: relative;
    padding: 20px 20px 20px 78px;
    border: 2px solid var(--hb-text);
    border-radius: var(--hb-radius-sm);
    background: var(--hb-surface);
    font-size: 16px;
    min-height: 66px;
}

.hb-numbered li::before {
    content: counter(hb-step);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--hb-accent);
    color: #1f1300;
    font-weight: 800;
    font-size: 16px;
}

.hb-side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.hb-side-card {
    padding: 26px;
    border-radius: var(--hb-radius);
    background: var(--hb-dark);
    color: var(--hb-on-dark);
}

.hb-side-card .hb-h3 {
    color: var(--hb-on-dark);
}

.hb-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    font-size: 15px;
}

.hb-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hb-check-list li::before {
    margin-top: 8px;
    background: var(--hb-accent);
}

.hb-platform-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.hb-platform-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 200px;
    padding: 26px;
    border-radius: var(--hb-radius);
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    text-decoration: none;
    color: var(--hb-text);
    overflow: hidden;
}

.hb-platform-card:nth-child(4n + 1) {
    background: var(--hb-primary);
    border-color: var(--hb-primary);
    color: var(--hb-primary-contrast);
}

.hb-platform-card:nth-child(4n + 2) {
    background: var(--hb-accent);
    border-color: var(--hb-accent);
    color: #1f1300;
}

.hb-platform-card:nth-child(4n + 3) {
    background: var(--hb-dark);
    border-color: var(--hb-dark);
    color: var(--hb-on-dark);
}

.hb-platform-card:nth-child(4n + 4) {
    background: var(--hb-tint-accent);
}

.hb-platform-code {
    display: inline-grid;
    place-items: center;
    justify-self: start;
    min-width: 56px;
    height: 56px;
    padding: 0 12px;
    border-radius: 16px;
    background: var(--hb-surface);
    color: var(--hb-text);
    font-family: var(--hb-font-heading);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .02em;
}

.hb-platform-name {
    font-family: var(--hb-font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.02em;
    margin-top: 14px;
}

.hb-platform-desc {
    font-size: 15px;
    opacity: .86;
}

.hb-platform-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    font-weight: 800;
    font-size: 14px;
}

.hb-platform-open::after {
    content: "\2192";
    font-size: 18px;
}

.hb-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    counter-reset: hb-flow;
}

.hb-step {
    position: relative;
    padding: 30px 26px 28px;
    border-radius: var(--hb-radius);
    background: var(--hb-bg);
    border: 2px solid var(--hb-text);
}

.hb-step h3 {
    font-size: 21px;
    font-weight: 800;
    margin-top: 6px;
}

.hb-step p {
    color: var(--hb-muted);
    margin: 0;
}

.hb-step-no {
    display: block;
    font-family: var(--hb-font-heading);
    font-weight: 800;
    font-size: 64px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--hb-primary);
    letter-spacing: -.04em;
}

.hb-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--hb-muted);
    padding-top: 24px;
    font-weight: 600;
}

.hb-crumbs a {
    color: var(--hb-muted);
}

.hb-article {
    max-width: 800px;
    padding: 24px 0 64px;
}

.hb-article-head {
    padding-bottom: 16px;
    border-bottom: 2px solid var(--hb-text);
    margin-bottom: 30px;
}

.hb-richtext img {
    height: auto;
    border-radius: var(--hb-radius-sm);
}

.hb-error {
    padding: 90px 0;
    text-align: left;
}

.hb-ad {
    display: block;
    width: min(100%, 980px);
    margin: 28px auto;
    overflow: hidden;
    text-align: center;
}

.hb-footer {
    margin-top: 0;
    background: var(--hb-dark);
    color: var(--hb-on-dark-muted);
    padding-top: 64px;
}

.hb-footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}

.hb-footer-brand p {
    margin-top: 14px;
    max-width: 36ch;
}

.hb-footer-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hb-accent);
    margin: 0 0 16px;
}

.hb-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 11px;
}

.hb-footer-list a {
    color: var(--hb-on-dark);
    text-decoration: none;
    font-weight: 600;
}

.hb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 52px;
    padding: 24px 0 30px;
    border-top: 1px solid var(--hb-line-dark);
    font-size: 14px;
}

.hb-footer-bottom p {
    margin: 0;
}

.hb-footer-bottom a {
    color: var(--hb-on-dark);
    font-weight: 700;
}

.hb-pop-notice {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(11, 16, 32, .72);
}

.hb-pop-notice[hidden] {
    display: none;
}

.hb-pop-card {
    width: min(460px, 100%);
    padding: 30px;
    border-radius: var(--hb-radius-lg);
    background: var(--hb-surface);
    color: var(--hb-text);
    border: 2px solid var(--hb-text);
    border-top: 10px solid var(--hb-primary);
    animation: hb-pop .5s var(--hb-ease-out) both;
}

.hb-pop-card.hb-tone-success {
    border-top-color: var(--hb-success);
}

.hb-pop-card.hb-tone-warning {
    border-top-color: var(--hb-accent);
}

.hb-pop-card.hb-tone-danger {
    border-top-color: var(--hb-danger);
}

.hb-pop-title {
    font-size: 24px;
    font-weight: 800;
}

.hb-pop-message {
    color: var(--hb-muted);
    margin-bottom: 22px;
}

.hb-pop-card .hb-btn {
    width: 100%;
}

.hb-tag {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--hb-bg);
    color: var(--hb-text);
}

.hb-tag.hb-tone-warning {
    background: #fef3c7;
    color: #78350f;
}

.hb-tag.hb-tone-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.hb-tag.hb-tone-success {
    background: #dcfce7;
    color: #14532d;
}

.hb-alert {
    padding: 14px 16px;
    border-radius: var(--hb-radius-sm);
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    margin-bottom: 18px;
}

.hb-alert p {
    margin: 0 0 6px;
}

.hb-alert ul {
    margin: 0;
    padding-left: 18px;
}

.hb-alert-success {
    border-color: var(--hb-success);
}

.hb-alert-error,
.hb-alert-danger {
    border-color: var(--hb-danger);
    color: var(--hb-danger);
}

.hb-field {
    display: grid;
    gap: 6px;
    font-size: 14px;
}

.hb-field > span,
.hb-field > label {
    font-weight: 700;
}

.hb-field input,
.hb-field select,
.hb-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--hb-radius-sm);
    border: 2px solid var(--hb-border);
    background: var(--hb-surface);
    font-size: 15px;
}

.hb-field textarea {
    resize: vertical;
    min-height: 80px;
}

.hb-field input:focus,
.hb-field select:focus,
.hb-field textarea:focus {
    outline: 3px solid var(--hb-accent);
    outline-offset: 0;
    border-color: transparent;
}

.hb-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px !important;
}

.hb-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.hb-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.hb-switch-track {
    position: relative;
    flex: none;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: var(--hb-border);
    transition: background-color .3s;
}

.hb-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .3s var(--hb-ease);
}

.hb-switch input:checked + .hb-switch-track {
    background: var(--hb-primary);
}

.hb-switch input:checked + .hb-switch-track::after {
    transform: translateX(22px);
}

.hb-switch input:focus-visible + .hb-switch-track {
    outline: 3px solid var(--hb-accent);
    outline-offset: 2px;
}

.hb-grid-2 {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.hb-grid-3 {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.hb-span-2,
.hb-span-3 {
    grid-column: 1 / -1;
}

.hb-hero {
    background: var(--hb-hero);
    color: var(--hb-text);
}

html[data-hb-theme="dark"] .hb-hero {
    background: var(--hb-hero-dark);
    color: var(--hb-on-dark);
}

.hb-hero::before {
    border-color: var(--hb-border);
}

.hb-hero .hb-lead {
    color: var(--hb-muted);
}

.hb-trust li {
    background: var(--hb-surface);
    border-color: var(--hb-border);
    color: var(--hb-text);
}

.hb-host-chips li {
    border-color: var(--hb-border);
    color: var(--hb-muted);
    background: var(--hb-surface);
}

html[data-hb-theme="dark"] {
    --hb-text: #eef2ff;
    --hb-muted: #9aa6c2;
    --hb-dark: #070b16;
    --hb-tint: color-mix(in srgb, var(--hb-primary) 22%, var(--hb-bg));
    --hb-tint-accent: color-mix(in srgb, var(--hb-accent) 18%, var(--hb-bg));
    --hb-on-dark: #eef2ff;
    --hb-on-dark-muted: rgba(238, 242, 255, .72);
    --hb-line-dark: rgba(238, 242, 255, .16);
}

html[data-hb-theme="dark"] .hb-numbered li::before,
html[data-hb-theme="dark"] .hb-media-type.is-audio {
    color: #1f1300;
}

html[data-hb-theme="dark"] body {
    color-scheme: dark;
}

.hb-theme-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
    color: var(--hb-text);
    cursor: pointer;
}

.hb-theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hb-theme-toggle .hb-icon-moon {
    display: none;
}

html[data-hb-theme="dark"] .hb-theme-toggle .hb-icon-moon {
    display: block;
}

html[data-hb-theme="dark"] .hb-theme-toggle .hb-icon-sun {
    display: none;
}

.hb-result-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 2px solid var(--hb-text);
    background: var(--hb-surface);
}

.hb-result-tab {
    flex: 1;
    min-height: 44px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hb-text);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.hb-result-tab.is-active {
    background: var(--hb-text);
    color: var(--hb-surface);
}

.hb-result-tab:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.hb-result-empty {
    margin: 0;
    padding: 18px;
    text-align: center;
    color: var(--hb-muted);
    border: 2px dashed var(--hb-border);
    border-radius: var(--hb-radius-sm);
}

.hb-progress {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px 14px;
    animation: hb-rise .4s var(--hb-ease-out) both;
}

.hb-progress-arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--hb-accent);
    color: #1f1300;
    font-weight: 800;
    font-size: 18px;
    animation: hb-bounce 1s var(--hb-ease) infinite;
}

.hb-progress.is-done .hb-progress-arrow {
    background: var(--hb-success);
    color: #ffffff;
    animation: none;
}

.hb-progress-track {
    position: relative;
    height: 14px;
    border-radius: 999px;
    border: 2px solid var(--hb-text);
    background: var(--hb-bg);
    overflow: hidden;
}

.hb-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 999px;
    background: var(--hb-primary);
    transition: width .3s linear;
}

.hb-progress.is-indeterminate .hb-progress-fill {
    width: 34%;
    animation: hb-scan 1.2s var(--hb-ease) infinite;
}

.hb-progress.is-done .hb-progress-fill {
    background: var(--hb-success);
}

.hb-progress-text {
    grid-column: 2;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--hb-muted);
    animation: hb-shimmer 1.6s ease-in-out infinite;
}

.hb-progress.is-done .hb-progress-text {
    animation: none;
    color: var(--hb-success);
}

.hb-progress-arrow {
    grid-row: 1 / span 2;
}

.hb-progress-track {
    grid-column: 2;
}

.hb-media-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--hb-radius-sm);
    border: 2px solid var(--hb-danger);
    color: var(--hb-danger);
    font-weight: 600;
    font-size: 14px;
    animation: hb-pop .4s var(--hb-ease-out) both;
}

.hb-media-item.is-busy {
    border-color: var(--hb-primary);
}

@media (min-width: 560px) {
    .hb-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .hb-stat-item {
        border-bottom: 0;
        border-right: 2px solid var(--hb-text);
    }
    .hb-stat-item:nth-child(2n) {
        border-right: 2px solid var(--hb-text);
    }
    .hb-stat-item:last-child {
        border-right: 0;
    }
    .hb-stat-item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
    .hb-platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hb-step-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .hb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hb-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    .hb-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 700px) {
    .hb-tool-field {
        flex-wrap: nowrap;
    }
}

@media (min-width: 900px) {
    .hb-nav {
        display: flex;
    }
    .hb-burger {
        display: none;
    }
    .hb-mobile-nav {
        display: none !important;
    }
    .hb-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
        gap: 56px;
    }
    .hb-two-col {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }
    .hb-side {
        position: sticky;
        top: 96px;
    }
    .hb-platform-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hb-platform-card:nth-child(1) {
        grid-column: span 2;
        min-height: 240px;
    }
    .hb-footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }
    .hb-step-list {
        gap: 22px;
    }
    .hb-result-head {
        grid-template-columns: 140px 1fr;
    }
    .hb-result-thumb {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 899px) {
    .hb-hero::before {
        width: 300px;
        top: -120px;
        right: -140px;
    }
    .hb-hero::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .hb-container {
        width: min(1200px, 100% - 32px);
    }
    .hb-tool {
        border-radius: var(--hb-radius);
        padding: 20px;
    }
    .hb-tool-icon {
        display: none;
    }
    .hb-tool-field {
        flex-wrap: wrap;
        border-radius: var(--hb-radius-sm);
        padding: 12px;
    }
    .hb-tool-field input {
        width: 100%;
        flex-basis: 100%;
        padding: 10px 4px;
    }
    .hb-tool-submit {
        width: 100%;
    }
    .hb-media-item {
        grid-template-columns: auto 1fr;
    }
    .hb-media-actions {
        grid-column: 1 / -1;
    }
    .hb-media-actions .hb-media-link {
        flex: 1;
    }
    .hb-result {
        padding: 14px;
    }
    .hb-result-head {
        grid-template-columns: 88px 1fr;
    }
    .hb-result-thumb {
        width: 88px;
        height: 88px;
    }
    .hb-numbered li {
        padding-left: 70px;
    }
    .hb-step-no {
        font-size: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hb-animate .hb-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---- HBEdu directory additions (1.2.14) ---- */
.hb-dir-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.25rem; }
.hb-dir-form .hb-input { flex: 1 1 240px; }
.hb-results { min-width: 0; }
.hb-side { display: grid; gap: 1rem; align-content: start; }
.hb-side-card { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: 16px; padding: 1.2rem 1.25rem; display: grid; gap: .75rem; align-content: start; }
.hb-side-card .hb-h3 { margin: 0; }
.hb-side-card .hb-btn { justify-self: start; }
.hb-meta { font-size: .9rem; color: var(--hb-muted); margin: 0 0 .75rem; }
.hb-notice-inline { display: inline-block; margin: .5rem 0 1rem; padding: .55rem .85rem; border-radius: 12px; background: color-mix(in srgb, var(--hb-accent) 18%, transparent); font-size: .9rem; }
.hb-empty-card { padding: 1.5rem; border: 1px dashed var(--hb-border); border-radius: 16px; background: var(--hb-surface); color: var(--hb-muted); }
.hb-empty-card .hb-h3 { color: var(--hb-text); }
.hb-uni-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hb-uni-link { display: grid; gap: .2rem; padding: .95rem 1.1rem; border-radius: 14px; text-decoration: none; color: var(--hb-text); background: var(--hb-surface); border: 1px solid var(--hb-border); transition: border-color .2s ease, transform .2s ease; }
.hb-uni-link:hover { border-color: var(--hb-primary); transform: translateX(3px); }
.hb-uni-name { font-family: var(--hb-font-heading); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.hb-uni-meta { font-size: .88rem; color: var(--hb-muted); }
.hb-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.hb-dl { margin: 0; display: grid; gap: .65rem; }
.hb-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--hb-border); padding-bottom: .55rem; }
.hb-dl dt { color: var(--hb-muted); font-size: .9rem; }
.hb-dl dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.hb-dl-wide > div { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); }
.hb-dl-wide dd { text-align: left; }
.hb-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.hb-link-list li { padding: .45rem 0; border-bottom: 1px solid var(--hb-border); overflow-wrap: anywhere; }
.hb-link-list li:last-child { border-bottom: 0; }
.hb-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--hb-muted) 16%, transparent); color: var(--hb-muted); }
.hb-error-text { color: var(--hb-danger); }
.hb-prose .hb-dl-wide { margin-top: 1rem; }

/* Breakpoints: stack the two-column layouts below 900px, keep touch targets large on phones. */
@media (max-width: 899px) {
    .hb-results { order: 1; }
    .hb-side { order: 2; }
    .hb-two-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .hb-dl-wide > div { grid-template-columns: 1fr; gap: .2rem; }
    .hb-dl-wide dd { text-align: left; }
    .hb-dir-form .hb-btn { width: 100%; }
    .hb-uni-link { padding: .85rem .95rem; }
    .hb-pager { justify-content: center; text-align: center; }
    .hb-hero-compact .hb-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}

/* ---- HBEdu 1.2.14: search, side card and preloader ---- */
.hb-side-card {
    background: var(--hb-surface);
    color: var(--hb-text);
    padding: 28px;
}

.hb-side-card .hb-h3 {
    color: var(--hb-text);
    margin: 0 0 4px;
}

.hb-country-search {
    position: relative;
    display: flex;
    align-items: center;
}

.hb-country-search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--hb-muted);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.hb-country-search-input {
    width: 100%;
    min-height: 58px;
    padding: 15px 18px 15px 48px;
    font: inherit;
    font-size: 17px;
    color: var(--hb-text);
    background: var(--hb-bg);
    border: 1.5px solid var(--hb-border);
    border-radius: 14px;
    outline: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.hb-country-search-input::placeholder {
    color: var(--hb-muted);
    opacity: 1;
}

.hb-country-search-input:hover {
    border-color: color-mix(in srgb, var(--hb-primary) 45%, var(--hb-border));
}

.hb-country-search-input:focus {
    border-color: var(--hb-primary);
    background: var(--hb-surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-primary) 18%, transparent);
}

.hb-country-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .hb-spinner {
        animation-duration: 2.4s;
    }
}

/* ---- HBEdu 1.2.14: compact directory heroes, logo link ---- */
.hb-hero-compact::after {
    display: none;
}

a.hb-brand {
    color: inherit;
    text-decoration: none;
}

/* ---- HBEdu 1.2.14: flags, university photos and logos ---- */
.hb-flag {
    display: block;
    width: 44px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 0 0 1px var(--hb-border);
}

.hb-flag-lg {
    width: 66px;
    height: 44px;
    margin-bottom: 14px;
}

.hb-flag-line {
    margin: 0 0 4px;
}

.hb-uni-media {
    padding-top: clamp(20px, 3vw, 32px);
}

.hb-uni-media figure {
    margin: 0;
}

.hb-uni-media img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--hb-border);
}

.hb-uni-media figcaption {
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--hb-muted);
}

.hb-uni-logo {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 14px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    padding: 6px;
}

/* ---- HBEdu 1.2.15: OpenStreetMap card on university pages ---- */
.hb-side-card.hb-map-card {
    margin: 0;
    padding: 10px;
    gap: 0;
    overflow: hidden;
}

.hb-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--hb-border) 45%, var(--hb-surface));
}

.hb-map .leaflet-container {
    font: inherit;
    border-radius: 12px;
}

.hb-map-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .7rem .6rem .35rem;
    font-size: .9rem;
    color: var(--hb-muted);
}

.hb-map-caption span {
    overflow-wrap: anywhere;
    min-width: 0;
}

.hb-map-caption a {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--hb-primary);
    text-decoration: none;
    white-space: nowrap;
}

.hb-map-caption a:hover,
.hb-map-caption a:focus-visible {
    text-decoration: underline;
}

.hb-side-note {
    margin: 0 .25rem;
    font-size: .88rem;
}

/* Dim the map tiles in dark mode so they sit with the rest of the page. */
[data-hb-theme="dark"] .hb-map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.95);
}

/* ---- HBEdu 1.2.15: country history card ---- */
.hb-history-section { padding-top: clamp(8px, 2vw, 16px); }

.hb-history-card {
    position: relative;
    display: grid;
    gap: .9rem;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    border-radius: 20px;
    border: 1px solid var(--hb-border);
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--hb-primary) 14%, transparent), transparent 60%),
        var(--hb-surface);
    overflow: hidden;
}

.hb-history-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--hb-primary), color-mix(in srgb, var(--hb-primary) 30%, transparent));
}

.hb-eyebrow {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hb-primary);
}

.hb-history-title {
    margin: 0;
    font-family: var(--hb-font-heading);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.2;
    color: var(--hb-text);
    overflow-wrap: anywhere;
}

.hb-history-lead {
    margin: 0;
    font-size: clamp(1.02rem, 1.4vw, 1.14rem);
    line-height: 1.75;
    color: var(--hb-text);
    max-width: 72ch;
}

.hb-history-more { max-width: 72ch; }

.hb-history-more summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--hb-primary);
    padding: .35rem 0;
}

.hb-history-more summary:focus-visible {
    outline: 2px solid var(--hb-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.hb-history-more p {
    margin: .7rem 0 0;
    line-height: 1.75;
    color: var(--hb-text);
}

.hb-history-foot {
    margin: .4rem 0 0;
    font-size: .85rem;
    color: var(--hb-muted);
}

.hb-history-foot a {
    color: var(--hb-primary);
    font-weight: 600;
    margin-left: .25rem;
}

@media (max-width: 600px) {
    .hb-history-card { border-radius: 16px; }
}

/* ---- HBEdu 1.2.16: university rankings in three levels ---- */
.hb-rank-title { margin-top: 1.6rem; }

.hb-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: .9rem;
}

.hb-rank-tile {
    display: grid;
    gap: .2rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid var(--hb-border);
    background: var(--hb-surface);
    min-width: 0;
}

.hb-rank-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hb-muted);
    overflow-wrap: anywhere;
}

.hb-rank-number {
    font-family: var(--hb-font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--hb-primary);
}

.hb-rank-of {
    font-size: .85rem;
    color: var(--hb-muted);
}

.hb-rank-note { margin-top: .75rem; }

@media (max-width: 600px) {
    .hb-rank-grid { grid-template-columns: 1fr; }
}

/* ---- HBEdu 1.2.18: university summary (from Wikipedia) ---- */
.hb-uni-about { margin-top: 1.8rem; }
.hb-about-title { margin: 0 0 .6rem; }

/* ---- HBEdu 1.2.19: copy-ready cron script on the Automatic jobs tab ---- */
.hb-cron-help { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.hb-cron-help .hb-h3 { margin: .8rem 0 0; }
.hb-cron-box {
    width: 100%;
    box-sizing: border-box;
    font-size: .85rem;
    line-height: 1.5;
    white-space: pre;
    overflow: auto;
    border-radius: 12px;
}
