/* ==========================================================================
   CustomStyle.css — the project's own styles on top of the VUT style guide (style.css, print.css: vendor files,
   never edited). Loaded after style.css by App.razor (and Error.cshtml). Classes are BEM, prefixed custom- unless
   a test or script names them otherwise. Prefer a VUT helper class (layout-rules.md) to a new rule here.

   Sections:
     1. Variables (colours, z-index scale)
     2. Layout: header, footer, social icon bar, cookie bar, print, phone overrides
     3. VUT fixes (template markup the project changed, missing variants)
     4. Components (UAI.Web.Components)
     5. Pages
     6. AI assistant chat
     7. Error UI
     8. Utilities
   ========================================================================== */


/* ==========================================================================
   1. Variables
   One value per role: the light grey of a page part is the VUT class bg (#f3f7f6), secondary text --uai-grey-text,
   keyboard focus --uai-blue-text. The floating chat (AiAssistantFloating/Chat.razor) uses these too; the robot chat
   has its own palette.
   ========================================================================== */
:root {
    /* VUT brand colours and their darker text shades (>= 5:1 contrast for small text) */
    --uai-red: #e4002b;
    --uai-red-text: #c40025;
    --uai-blue: #1676d0;
    --uai-blue-text: #125ea6;
    --uai-green: #00a64f;
    --uai-green-text: #00733a;
    --uai-yellow: #f5c800;
    --uai-yellow-text: #7a6400;
    --uai-grey: #6f7a86;            /* VUT color-gray */
    --uai-grey-text: #56606b;       /* secondary text */
    --uai-text-dark: #2f3a45;       /* the user's chat bubble, the floating chat's text */
    --uai-bubble: #f2f4f5;          /* the assistant's chat bubble, the floating chat's grey tint */
    --uai-border: #c8d0d0;

    /* Social networks (the fixed icon bar, the footer's GitHub icon); Facebook's current brand blue, as the VUT footer */
    --uai-facebook: #1877f2;
    --uai-instagram: #ff8a00;
    --uai-youtube: #ff0000;
    --uai-github: #24292f;
    --uai-github-hover: #57606a;
    --uai-focus-ring-dark: #111;

    /* Cookie bar, error UI */
    --uai-cookie-bar: #004f71;
    --uai-warning-bg: #fff4ce;
    --uai-warning-border: #e5b400;

    /* z-index scale */
    --uai-z-socbar: 3;
    --uai-z-playlink: 85;
    --uai-z-cookie-bar: 99;
    --uai-z-floating-chat: 1000;
    --uai-z-error-ui: 2000;
}


/* ==========================================================================
   2. Layout: header, footer, social icon bar, cookie bar, print, phone overrides
   ========================================================================== */

/* Header (NavMenu.razor). Logo_uai.png is 521 × 118 px; shown 80 px high with the same aspect ratio. */
.custom-header__logo{
    width: 353px;
    height: 80px;
    content: url(/img/uai/common/Logo_uai.png);

}

/* The main menu next to the 353px logo from the VUT tablet breakpoint up; one class more than the VUT
   .header--lg.header--fsi .header__menu, so no !important. On a phone the VUT width (100% - 65px) applies. */
@media (min-width: 768px) {
    .header--lg.header--fsi .header__menu.custom-header__menu {
        width: calc(100% - 355px);
    }
}

/* Footer (Footer.razor) */
.custom-footer__logo {
    width: 353px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 521 / 118;
    content: url(/img/uai/common/Logo_uai.png);
}

/* Fixed social icon bar (SocNetBar.razor; formerly socialnetworksidebar.css) */
.custom-socbar {
    position: fixed;
    transform: translateY(20%);
    right: 0;
    z-index: var(--uai-z-socbar);
}

    .custom-socbar a {
        display: block;
        text-align: center;
        padding: 16px;
        font-size: 16px;
        outline: 0;
    }

    /* White in every state: beats the VUT a / .no-touchevents a:hover, a:focus by order (equal specificity). */
    .custom-socbar a,
    .custom-socbar a:visited,
    .custom-socbar a:hover,
    .custom-socbar a:focus {
        color: white;
    }

        .custom-socbar a:hover {
            background-color: #000;
        }


.custom-socbar__link--facebook {
    background: var(--uai-facebook);
    color: white;
}

.custom-socbar__link--instagram {
    background: var(--uai-instagram);
    color: white;
}

.custom-socbar__link--youtube {
    background: var(--uai-youtube);
    color: white;
}

.custom-socbar__link--github {
    background: var(--uai-github);
    color: white;
}

.custom-socbar a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
    box-shadow: inset 0 0 0 5px var(--uai-focus-ring-dark);
}

    /* The shared hover is black; GitHub's own colour is nearly black, so it lightens instead. */
    .custom-socbar a.custom-socbar__link--github:hover {
        background-color: var(--uai-github-hover);
    }

/* Cookie notice (MainLayout.razor, cookie-bar.js; formerly cookieConsentBar.css) */
.cookie-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--uai-cookie-bar);
    color: white;
    text-align: center;
    z-index: var(--uai-z-cookie-bar);
}
    .cookie-bar p {
        margin: 10px;
        padding: 0;
        display: inline-block;
    }

    .cookie-bar__form {
        display: inline-block;
        margin: 10px;
        vertical-align: middle;
    }

        .cookie-bar__form .btn {
            color: inherit;
            cursor: pointer;
        }

@media print {
    .cookie-bar,
    .custom-socbar { display: none !important; }
}

@media (max-width: 767.98px) {
    /* Without JavaScript the main menu is shown open (the toggle needs app.js). */
    .no-js .m-main--header .m-main__list--main {
        position: static;
        clear: both;
        opacity: 1;
        visibility: visible;
        max-height: none;
    }
    .no-js .m-main__toggle { display: none; }
    .no-js .header__menu { height: auto; }

    /* /vyuka (Teaching.razor): the two study-programme tabs side by side on a phone. */
    .custom-teaching .m-tabs--lg .m-tabs__item { min-width: 0; flex: 1 1 50%; }
    .custom-teaching .m-tabs__list { width: 100%; }
    .custom-teaching .m-tabs__inner { padding: 14px 4px; text-align: center; }
    .custom-teaching .m-tabs__desc { display: none; }

    /* The fixed 65px mobile header with the VUT logo (below the VUT tablet breakpoint, so at exactly 768px the tablet
       header applies alone). */
    .custom-mother {
        padding-top: 0px !important;
    }

    .custom-header {
        height: 65px !important;
    }

    .custom-header__logo {
        display: block;
        width: 65px;
        height: 65px;
        content: url(/img/uai/common/VutLogo_blue.svg) !important;
    }

    /* HeroBox/BasicBoxWithButtons (b-hero-header--blank) as the first block of a page: the fixed 65px header covers
       the top of the page (.custom-mother drops its padding), and the blank header has no picture to hide under it,
       so its title gets the header's height on top of the VUT 40px. */
    .main > .b-hero-header--blank:first-child .b-hero-header__content,
    .main > :first-child > .b-hero-header--blank:first-child .b-hero-header__content {
        padding-top: 105px;
    }
}


/* ==========================================================================
   3. VUT fixes
   ========================================================================== */

/* Visible keyboard focus everywhere: the VUT CSS removes the outline (a:focus, button, input, select, textarea
   { outline: 0 }). :focus-visible matches keyboard focus (and text fields), not a mouse click on a link or button.
   Element + pseudo-class beats the VUT reset; component rules with a class (the social icon bar, the chats) still win. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--uai-blue-text);
    outline-offset: 3px;
}

/* Tabs (Tabs/, StudyProgramElement/, SubMenu): the VUT CSS only moves a hidden panel off-screen; visibility also takes
   its links out of the tab order. */
[role="tabpanel"][aria-hidden="true"] { visibility: hidden; }

/* GenericPages/Envelope: the link in the meta table keeps its case and spacing (table-meta writes upper case). */
.table-meta td.custom-genericpage__link-cell {
    text-transform: initial;
    letter-spacing: 0;
}

/* VizitCard/Child/Basic: space under each card (the VUT b-vcard has none). */
.b-vcard.custom-vcard {
    margin-bottom: 25px;
}

/* Message (Basic/Message.razor): the VUT template's close control is an <a>; ours is a <button type="button">,
   so drop the browser's button look and keep the template's .message__close styling. */
button.message__close {
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
}

/* Footnote, Tip, Message (Basic/) and Timeline/TimelineItem wrap their content in a div instead of the template's p,
   so a caller may pass paragraphs or a list: plain text keeps the p's letter spacing, and a nested last block adds
   no space under the text (the template's "> :last-child" rule reaches only the wrapper). */
.footnote > div,
.tip__content > div,
.message__content > div,
.list-timeline__item > div {
    letter-spacing: .02em;
}

.footnote > div > :last-child,
.tip__content > div > :last-child,
.message__content > div > :last-child,
.list-timeline__item > div > :last-child {
    margin-bottom: 0;
}

.home-articles .c-articles-lg__wrap,
.home-articles .c-articles-lg__item {
    border: 0;
}

/* News/NewsItem.razor: the highlighted tile is a link to the current page (aria-current="page"); the template marks it
   aria-selected, which is valid only on a tab, so its [aria-selected='true'] rules are repeated for aria-current. */
.b-news__link[aria-current],
.no-touchevents .b-news__link[aria-current]:hover,
.no-touchevents .b-news__link[aria-current]:focus {
    box-shadow: 0 5px 30px rgba(12, 22, 39, 0.2);
}

.b-news__link[aria-current] .b-news__title,
.no-touchevents .b-news__link[aria-current]:hover .b-news__title,
.no-touchevents .b-news__link[aria-current]:focus .b-news__title {
    text-decoration: none;
    color: var(--uai-grey);
}

@media (min-width: 768px) {
    .b-news__link[aria-current]:before,
    .b-news__link[aria-current]:after {
        opacity: 1;
        visibility: visible;
    }
}

/* GitHub in the footer socials: the VUT sprite has no GitHub icon, so Footer.razor inlines the mark (16x16);
   the sprite icons are sized the same way (width + the :before aspect ratio). */
.icon-svg--github { width: 20px; }
.icon-svg--github:before { padding-top: 100%; }
.c-socials__icon.icon-svg--github { color: var(--uai-github); }

/* The style guide sets inputs to 14 px; iOS Safari zooms into an input under 16 px when it gets focus.
   Zooming is allowed (WCAG 1.4.4), so phones and tablets get 16 px instead. */
@media (max-width: 1023.98px) {
    .inp__text {
        font-size: 16px;
    }
}


/* ==========================================================================
   4. Components (UAI.Web.Components)
   ========================================================================== */

/* Headers/HeaderWithVideo.razor: the play link (a flex item) sits above the header's title block. */
.custom-hero-header__playlink {
    z-index: var(--uai-z-playlink);
}

/* BoxWithAnnotation's BriefNote: a smaller line under the annotation, inside its paragraph (home page: the thesis's supervisor). */
.custom-annot__note { display: block; margin-top: 12px; font-size: 16px; line-height: 1.5; }

/* --- Layout/CardGrid.razor: the c-schools cards in a CSS grid of 1, 2 or 3 columns by the container's width
   (container queries: 38rem and 60rem of the grid itself, not of the viewport). --- */
.custom-card-grid {
    container-type: inline-size;
}

.custom-card-grid > ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    margin: 0;
    padding: 0;
}

.custom-card-grid .c-schools__item {
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
}

.custom-card-grid .b-school__header,
.custom-card-grid .b-school__content {
    padding: clamp(1rem, 3cqi, 1.75rem);
}

@container (min-width: 38rem) {
    .custom-card-grid > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 60rem) {
    .custom-card-grid > ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --- Layout/ImageCarousel.razor --- */
/* The VUT fade carousel aligns every slide to the bottom of the tallest one (.flickity-slider justify-content:
   flex-end); below 1024px, where the slides are not of a fixed ratio, a shorter slide left an empty band above it. */
.custom-carousel.c-carousel--fade .flickity-slider { justify-content: flex-start; }
@media (min-width: 1024px) {
    .custom-carousel { position: relative; --nav-height: clamp(64px, 6vw, 80px); }
    .custom-carousel .b-img { aspect-ratio: 8 / 3; }
    .custom-carousel .b-img__content {
        width: 50%;
        padding: 0 clamp(24px, 3vw, 48px);
        min-height: 0;
    }
    .custom-carousel .js-carousel-img .b-img__content { padding-bottom: var(--nav-height); }
    .custom-carousel .scroll { height: 100%; overflow-y: auto; }
    .custom-carousel .scroll__content { position: static; padding-top: clamp(24px, 4vw, 50px); }
    .custom-carousel .b-img__img img { width: 100%; height: 100%; object-fit: cover; }
    .custom-carousel .c-carousel__nav {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50%;
        height: var(--nav-height);
        margin: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: white;
    }
    .custom-carousel .c-carousel__nav .grid__cell { width: auto; max-width: none; }
    .custom-carousel .link-nav { width: 100%; display: grid; place-items: center; height: var(--nav-height); padding: 0; }
    .custom-carousel .c-carousel__pager {
        right: 0;
        bottom: 0;
        height: var(--nav-height);
        width: calc(var(--nav-height) * 1.25);
        display: grid;
        place-items: center;
        padding: 0;
    }
}

/* --- Layout/ImageFeatureWithButtons.razor: up to three buttons under the picture --- */
.custom-feature__buttons {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* --- Layout/ImageFeatureWithStackedButtons.razor: the picture and the buttons (one per line) at most 480px wide --- */
.custom-feature--stacked .b-feature__thumbnail,
.custom-feature--stacked .custom-feature__buttons {
    width: min(100%, 480px);
    margin-inline: auto;
}
.custom-feature--stacked .b-feature__thumbnail { display: block; }
.custom-feature--stacked .b-feature__thumbnail img { display: block; width: 100%; }
.custom-feature--stacked .custom-feature__buttons {
    flex-direction: column;
    align-items: flex-start;
}

/* --- Layout/Cta/CenteredImageCtaBanner.razor: a 270px picture banner with the CTA centred on it --- */
.b-cta.centered-image-cta {
    padding: 0;
}

.centered-image-cta .b-cta__img {
    height: 270px;
}

.centered-image-cta .b-cta__img img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
}

.no-touchevents .centered-image-cta:is(:hover, :focus-within) .b-cta__img img {
    transform: scale(1.1);
}

.b-cta--img.centered-image-cta .b-cta__content {
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 24px;
}


/* ==========================================================================
   5. Pages
   ========================================================================== */

.custom-teaching,
.thesis-topics {
    --section-gap: 160px;
}

@media (max-width: 767.98px) {
    .custom-teaching,
    .thesis-topics {
        --section-gap: 60px;
    }
}

.custom-teaching > #prihlaska,
.custom-teaching > .custom-pattern,
.thesis-topics {
    margin-bottom: var(--section-gap);
}

.thesis-topics__assistant + .custom-pattern {
    border-top: var(--section-gap) solid white;
}

/* --- /zaverecne-prace (Pages/Theses/ThesisTopics.razor); /vyuka's phone tabs are in section 2 --- */
/* The page's light grey is the VUT class bg on .thesis-topics. */
.thesis-topics__level { margin: 24px 0 0; padding-bottom: 32px; }
.thesis-topics__results { scroll-margin-top: 84px; }
.thesis-topics__results .c-carousel { background: white; }
.thesis-topics__supervisor { color: var(--uai-grey-text); }
.custom-supervisor-finder {
    display: grid;
    gap: 24px;
}
@media (min-width: 768px) {
    .custom-supervisor-finder { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.custom-supervisor-finder fieldset { margin: 16px 0 0; }
.custom-supervisor-finder__label { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.custom-supervisor-finder__options { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-supervisor-finder__option { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.custom-supervisor-finder__option + .custom-supervisor-finder__option::before {
    content: "";
    flex: 0 0 8px;
    border-top: 1px solid currentColor;
}
.custom-supervisor-finder__catalog { display: block; margin-top: 12px; }
.custom-supervisor-finder__catalog select { display: block; width: 100%; }
.custom-supervisor-finder__selection { align-self: start; padding: 24px; background: white; }
.custom-supervisor-finder__selection > div + div { margin-top: 24px; }
.thesis-topics__kind { margin-bottom: 8px; color: var(--uai-grey-text); text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.thesis-topics__assignment { white-space: pre-wrap; margin-top: 12px; }

/* --- /stav-ai (Pages/AiStatus/AiStatus.razor; wwwroot/js/ai-status.js builds the same markup) --- */
/* A state is a word plus a glyph in a filled circle (✓ ! ✕ –), never colour alone; white on each -text colour ≥ 5.5:1. */
.custom-aistatus__state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--uai-text-dark); }
.custom-aistatus__icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 1.5em; height: 1.5em; border-radius: 50%; color: white; font-size: .9em; line-height: 1;
}
.custom-aistatus__state--available .custom-aistatus__icon { background: var(--uai-green-text); }
.custom-aistatus__state--limited .custom-aistatus__icon { background: var(--uai-yellow-text); }
.custom-aistatus__state--unavailable .custom-aistatus__icon { background: var(--uai-red-text); }
.custom-aistatus__state--disabled .custom-aistatus__icon { background: var(--uai-grey-text); }
.custom-aistatus__intro { max-width: 760px; }
.custom-aistatus__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 12px; padding: 16px 20px; border-left: 4px solid var(--uai-border); background: var(--uai-bubble); font-size: 18px; }
.custom-aistatus__checked { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--uai-grey-text); }
.custom-aistatus__checked .btn { margin: 0; }
.custom-aistatus__part { height: 100%; padding: 24px; border: 1px solid var(--uai-border); }
.custom-aistatus__part h2 { margin-top: 0; }
.custom-aistatus__description { color: var(--uai-grey-text); }
.custom-aistatus__note { font-weight: 700; }
.custom-aistatus__part table { width: 100%; margin-bottom: 16px; }
.custom-aistatus__legend { padding-left: 0; list-style: none; }
.custom-aistatus__legend li { margin-bottom: 8px; padding-left: 0; }
.custom-aistatus__legend li::before { content: none; }
/* Below 1024 px the three parts stack (GridCell SizeTl="4"): a gap instead of touching frames. */
@media (max-width: 1023.98px) {
    .custom-aistatus__part { height: auto; margin-bottom: 20px; }
}
@media (max-width: 767.98px) {
    /* The fixed 65px phone header covers the top of the page (see section 2): the header's height on top of 40px. */
    .custom-aistatus__top { padding-top: 105px; }
    .custom-aistatus__part { padding: 16px; }
    .custom-aistatus__summary { font-size: 16px; }
}


/* ==========================================================================
   6. AI assistant chat (UAI.Web.Components/AiAssistant/Chat.razor; the floating and robot variants add their own
      <style> blocks on top)
   ========================================================================== */

/* As wide as its container. */
.custom-aichat {
    width: 100%;
    max-width: none;
}

.custom-aichat__log {
    display: flex;
    flex-direction: column-reverse;
    height: 420px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--uai-border);
    background: #fff;
}

.custom-aichat__msg {
    max-width: 85%;
    margin-bottom: 12px;
    padding: 10px 14px;
}

/* Each assistant has its accent (front matter "barva" in its knowledge file): the stripe uses the VUT brand
   colour, the name and the badge a darker shade with at least 5:1 contrast for small text. */
.custom-aichat__msg--assistant {
    margin-right: auto;
    background: var(--uai-bubble);
    border-left: 4px solid var(--aichat-accent);
}

.custom-aichat__msg--accent-seda {
    --aichat-accent: var(--uai-grey);
    --aichat-accent-text: var(--uai-grey-text);
}

.custom-aichat__msg--accent-cervena {
    --aichat-accent: var(--uai-red);
    --aichat-accent-text: var(--uai-red-text);
}

.custom-aichat__msg--accent-zelena {
    --aichat-accent: var(--uai-green);
    --aichat-accent-text: var(--uai-green-text);
}

.custom-aichat__msg--accent-zluta {
    --aichat-accent: var(--uai-yellow);
    --aichat-accent-text: var(--uai-yellow-text);
}

.custom-aichat__msg--accent-modra {
    --aichat-accent: var(--uai-blue);
    --aichat-accent-text: var(--uai-blue-text);
}

/* Neutral, so that colour means only "which assistant" */
.custom-aichat__msg--user {
    margin-left: auto;
    background: var(--uai-text-dark);
    color: #fff;
}

.custom-aichat__author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-aichat__msg--assistant .custom-aichat__author {
    color: var(--aichat-accent-text);
}

.custom-aichat__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--aichat-accent-text);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0;
}

/* "Odpovídá …" line when another assistant takes over */
.custom-aichat__switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 12px;
    color: var(--uai-grey-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-aichat__switch::before,
.custom-aichat__switch::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--uai-border);
}

.custom-aichat__text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* The colours of the VUT color-gray / color-red; the classes stay, as the chat variants and the tests address them. */
.custom-aichat__status {
    margin: 0;
    color: var(--uai-grey);
    font-style: italic;
}

.custom-aichat__error {
    color: var(--uai-red);
}

.custom-aichat__actions {
    margin-top: 12px;
}


/* ==========================================================================
   7. Error UI
   ========================================================================== */

/* Blazor error UI (App.razor): hidden until blazor.web.js shows it when the circuit fails. */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--uai-z-error-ui);
    padding: 12px 48px 12px 16px;
    background: var(--uai-warning-bg);
    border-top: 2px solid var(--uai-warning-border);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    color: #000;
}

#blazor-error-ui .reload {
    margin-left: 8px;
    font-weight: bold;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Error.cshtml */
.custom-error-page__request {
    margin-top: 40px;
    color: var(--uai-grey-text);
    font-size: 12px;
}


/* ==========================================================================
   8. Utilities
   ========================================================================== */

/* The VUT dotted pattern for a part of a page across its full width (e.g. "Zkus naši AI" on /vyuka, the theses part of
   /zaverecne-prace); put it on a div around the Section(s). An alias of the VUT .b-intro--pattern (same declaration);
   the class name stays, as SiteContentTests address it. */
.custom-pattern {
    background: url("/img/bg/dots-pattern.svg") repeat #e6efec;
}

/* Tablet variants of the VUT spacing helpers that style.css lacks (it has pt60--d/pb60--d for the desktop only), same
   breakpoint as its --t classes; e.g. the home page's project article has the same spacing on a tablet as on a desktop. */
@media (min-width: 768px) and (max-width: 1279.98px) {
    .pt60--t { padding-top: 60px; }
    .pb60--t { padding-bottom: 60px; }
}
.custom-cta-text {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin-inline: auto;
    background-color: var(--uai-blue-text);
    overflow-wrap: anywhere;
}
