@import url("../../prosilver/theme/stylesheet.css");

/* =========================================================
   MatematicaZ Theme
   Version 0.1.0
   ========================================================= */

:root {
    --mz-bg: #f4f7fb;
    --mz-surface: #ffffff;
    --mz-surface-soft: #f8fafc;

    --mz-text: #152238;
    --mz-muted: #65758b;

    --mz-primary: #2563eb;
    --mz-primary-dark: #1d4ed8;
    --mz-secondary: #7c3aed;
    --mz-accent: #06b6d4;

    --mz-border: #e2e8f0;

    --mz-radius: 18px;
    --mz-radius-small: 12px;

    --mz-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);

    --mz-shadow-hover:
        0 18px 45px rgba(15, 23, 42, 0.14);
}


/* ---------------------------------------------------------
   BASE
   --------------------------------------------------------- */

html {
    background: var(--mz-bg);
}

body {
    background:
        radial-gradient(circle at 10% 0%,
            rgba(37, 99, 235, 0.08),
            transparent 32rem),
        radial-gradient(circle at 90% 0%,
            rgba(124, 58, 237, 0.07),
            transparent 30rem),
        var(--mz-bg);

    color: var(--mz-text);
}

.wrap {
    max-width: 1440px;
    width: calc(100% - 40px);

    margin: 24px auto;

    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.headerbar {
    position: relative;
    overflow: hidden;

    min-height: 130px;

    padding: 28px 32px;

    border: 0;
    border-radius: 24px;

    background:
        radial-gradient(circle at 85% 20%,
            rgba(255,255,255,.18),
            transparent 280px),
        linear-gradient(
            125deg,
            #172554 0%,
            #1d4ed8 48%,
            #7c3aed 100%
        );

    box-shadow:
        0 18px 45px rgba(30, 64, 175, 0.20);
}

.headerbar::after {
    content: "∑   π   ∫   √x   f(x)   ∞";

    position: absolute;
    right: 30px;
    bottom: -12px;

    color: rgba(255,255,255,.08);

    font-size: 48px;
    font-weight: 700;
    letter-spacing: 10px;

    pointer-events: none;
}

.site-description h1 {
    color: #fff;

    font-size: 30px;
    font-weight: 800;

    letter-spacing: -0.6px;
}

.site-description p {
    color: rgba(255,255,255,.86);

    font-size: 15px;
}


/* ---------------------------------------------------------
   NAVIGATION
   --------------------------------------------------------- */

.navbar {
    margin-top: 14px;
    margin-bottom: 18px;

    padding: 10px 14px;

    border-radius: 16px;
    border: 1px solid var(--mz-border);

    background: rgba(255,255,255,.94);

    box-shadow: var(--mz-shadow);
}

.navbar a {
    font-weight: 600;
}


/* ---------------------------------------------------------
   BREADCRUMBS
   --------------------------------------------------------- */

.nav-breadcrumbs {
    font-size: 13px;
}


/* ---------------------------------------------------------
   FORUM / CATEGORY CARDS
   --------------------------------------------------------- */

.forabg,
.forumbg {
    overflow: hidden;

    margin-bottom: 20px;

    padding: 0;

    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);

    background: var(--mz-surface);

    box-shadow: var(--mz-shadow);
}

.forabg .header,
.forumbg .header {
    padding: 14px 20px;

    background:
        linear-gradient(
            110deg,
            #172554,
            #1d4ed8
        );
}

.forabg .header a,
.forumbg .header a {
    color: #fff;

    font-weight: 700;
}

ul.forums {
    background: var(--mz-surface);
}

li.row {
    border-top: 1px solid var(--mz-border);

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

li.row:hover {
    background: #f8fbff;

    transform: translateY(-1px);
}

li.row dt a.forumtitle,
li.row dt a.topictitle {
    color: var(--mz-text);

    font-weight: 700;
    font-size: 16px;
}

li.row dt a.forumtitle:hover,
li.row dt a.topictitle:hover {
    color: var(--mz-primary);
}


/* ---------------------------------------------------------
   TOPICS / POSTS
   --------------------------------------------------------- */

.post {
    margin-bottom: 20px;

    padding: 22px;

    border: 1px solid var(--mz-border);
    border-radius: var(--mz-radius);

    background: var(--mz-surface);

    box-shadow: var(--mz-shadow);
}

.postbody {
    font-size: 15px;
    line-height: 1.7;
}

.postbody .content {
    color: var(--mz-text);

    font-size: 15px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   ATTACHED IMAGES
   --------------------------------------------------------- */

.attachbox {
    overflow: hidden;

    margin-top: 20px;

    padding: 12px;

    border: 1px solid var(--mz-border);
    border-radius: 16px;

    background: var(--mz-surface-soft);
}

.attachbox img {
    max-width: 100%;
    height: auto;

    border-radius: 12px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.attachbox a:hover img {
    transform: scale(1.01);

    box-shadow: var(--mz-shadow-hover);
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button,
.button1,
.button2,
input.button1,
input.button2,
a.button1,
a.button2 {
    border: 0;
    border-radius: 10px;

    font-weight: 700;

    box-shadow: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.button1 {
    background: var(--mz-primary);
    color: #fff;
}

.button1:hover {
    background: var(--mz-primary-dark);

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

input.inputbox,
textarea.inputbox,
select {
    border: 1px solid #cbd5e1;
    border-radius: 10px;

    background: #fff;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

input.inputbox:focus,
textarea.inputbox:focus,
select:focus {
    border-color: var(--mz-primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .12);

    outline: none;
}


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.panel {
    border-radius: var(--mz-radius);

    background: var(--mz-surface);

    box-shadow: var(--mz-shadow);
}


/* ---------------------------------------------------------
   PROFILE COLUMN
   --------------------------------------------------------- */

.postprofile {
    border-color: var(--mz-border);
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.page-footer {
    margin-top: 40px;
    padding-bottom: 30px;

    color: var(--mz-muted);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .wrap {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .headerbar {
        min-height: 110px;

        padding: 22px;

        border-radius: 18px;
    }

    .site-description h1 {
        font-size: 25px;
    }

    .headerbar::after {
        font-size: 34px;
    }

    .navbar {
        border-radius: 14px;
    }

    .post {
        padding: 16px;
    }
}


@media (max-width: 700px) {

    .wrap {
        width: 100%;
        margin: 0;

        padding: 10px;
    }

    .headerbar {
        min-height: 90px;

        padding: 18px;

        border-radius: 16px;
    }

    .site-description {
        display: block;
    }

    .site-description h1 {
        font-size: 22px;
    }

    .site-description p {
        font-size: 13px;
    }

    .headerbar::after {
        display: none;
    }

    .navbar {
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .forabg,
    .forumbg,
    .post,
    .panel {
        border-radius: 14px;
    }

    .post {
        padding: 14px;
    }

    .postprofile {
        border: 0;
    }
}


/* =========================================================
   MATEMATICAZ APP HEADER
   Theme 0.2
   ========================================================= */


/* Ocultamos la presentación clásica de prosilver,
   pero no tocamos el HTML original. */

#page-header .headerbar .site-description,
#page-header .headerbar .search-header {
    display: none !important;
}


/* Contenedor principal */

#page-header .headerbar {
    min-height: 0;

    padding: 0;

    overflow: visible;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 80% -20%,
            rgba(255, 255, 255, 0.20),
            transparent 380px
        ),
        linear-gradient(
            125deg,
            #0f172a 0%,
            #172554 30%,
            #1d4ed8 68%,
            #6d28d9 100%
        );

    box-shadow:
        0 20px 55px rgba(30, 64, 175, 0.22);
}


#page-header .headerbar > .inner {
    padding: 0;
}


/* App bar */

.mz-app-header {
    min-height: 92px;

    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 34px;

    padding: 18px 24px;
}


/* =========================================================
   BRAND
   ========================================================= */

.mz-brand {
    min-width: 260px;

    display: flex;
    align-items: center;

    gap: 13px;

    color: #ffffff !important;

    text-decoration: none !important;
}


.mz-brand:hover {
    text-decoration: none !important;
}


.mz-brand-mark {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.20),
            rgba(255,255,255,.08)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25);

    color: #ffffff;

    font-family: Georgia, serif;
    font-size: 31px;
    font-weight: 700;
}


.mz-brand-copy {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}


.mz-brand-name {
    color: #ffffff;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


.mz-brand-tagline {
    margin-top: 5px;

    color: rgba(255,255,255,.76);

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;
}


/* =========================================================
   PRINCIPAL NAVIGATION
   ========================================================= */

.mz-primary-nav {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
}


.mz-nav-link {
    display: inline-flex;
    align-items: center;

    min-height: 42px;

    padding: 0 15px;

    border-radius: 11px;

    color: rgba(255,255,255,.86) !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    white-space: nowrap;

    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}


.mz-nav-link:hover {
    color: #ffffff !important;

    background: rgba(255,255,255,.13);

    transform: translateY(-1px);

    text-decoration: none !important;
}


/* =========================================================
   SEARCH
   ========================================================= */

.mz-header-search {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;

    background: rgba(255,255,255,.11);

    color: #ffffff !important;

    font-size: 28px;

    text-decoration: none !important;

    transition:
        transform .16s ease,
        background .16s ease;
}


.mz-header-search:hover {
    background: rgba(255,255,255,.20);

    transform: translateY(-1px);

    text-decoration: none !important;
}


/* =========================================================
   PHPBB SECONDARY BAR
   ========================================================= */

#page-header > .navbar {
    margin-top: 12px;

    padding: 8px 13px;

    border: 1px solid var(--mz-border);
    border-radius: 14px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 7px 24px rgba(15,23,42,.06);
}


/* Links secundarios menos protagonistas */

#page-header > .navbar a {
    color: #475569;

    font-weight: 600;
}


#page-header > .navbar a:hover {
    color: var(--mz-primary);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .mz-app-header {
        grid-template-columns: 1fr auto;

        gap: 14px;

        padding: 16px 18px;
    }


    .mz-primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;

        justify-content: flex-start;

        width: 100%;

        overflow-x: auto;

        padding-bottom: 2px;

        scrollbar-width: none;
    }


    .mz-primary-nav::-webkit-scrollbar {
        display: none;
    }


    .mz-nav-link {
        flex: 0 0 auto;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    #page-header .headerbar {
        border-radius: 17px;
    }


    .mz-app-header {
        min-height: 0;

        padding: 14px;
    }


    .mz-brand {
        min-width: 0;
    }


    .mz-brand-mark {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        border-radius: 12px;

        font-size: 26px;
    }


    .mz-brand-name {
        font-size: 22px;
    }


    .mz-brand-tagline {
        display: none;
    }


    .mz-header-search {
        width: 42px;
        height: 42px;

        border-radius: 12px;

        font-size: 25px;
    }


    .mz-primary-nav {
        gap: 3px;
    }


    .mz-nav-link {
        min-height: 38px;

        padding: 0 12px;

        font-size: 13px;
    }


    #page-header > .navbar {
        margin-top: 8px;

        border-radius: 12px;
    }

}


/* =========================================================
   MATEMATICAZ HOME
   Theme 0.3
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.mz-home-hero {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(300px, .7fr);

    gap: 48px;

    align-items: center;

    overflow: hidden;

    min-height: 330px;

    margin: 24px 0 34px;

    padding: 54px 58px;

    border: 1px solid rgba(99, 102, 241, .12);
    border-radius: 28px;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(124, 58, 237, .13),
            transparent 320px
        ),
        radial-gradient(
            circle at 15% 0%,
            rgba(37, 99, 235, .10),
            transparent 330px
        ),
        #ffffff;

    box-shadow:
        0 22px 65px rgba(15, 23, 42, .08);
}


.mz-home-hero::after {
    content: "";

    position: absolute;

    width: 340px;
    height: 340px;

    right: -160px;
    bottom: -210px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, .13),
            rgba(124, 58, 237, .09)
        );

    pointer-events: none;
}


.mz-home-hero-copy {
    position: relative;
    z-index: 2;
}


.mz-eyebrow {
    display: inline-flex;

    margin-bottom: 15px;

    padding: 8px 12px;

    border-radius: 999px;

    background: #eff6ff;

    color: #1d4ed8;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .11em;
}


.mz-home-hero h1 {
    max-width: 720px;

    margin: 0;

    color: #0f172a;

    font-size: clamp(38px, 5vw, 66px);
    font-weight: 850;

    line-height: .98;

    letter-spacing: -2.5px;
}


.mz-home-hero p {
    max-width: 680px;

    margin: 24px 0 0;

    color: #64748b;

    font-size: 17px;
    line-height: 1.7;
}


.mz-home-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.mz-cta {
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border-radius: 13px;

    font-size: 14px;
    font-weight: 750;

    text-decoration: none !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}


.mz-cta:hover {
    transform: translateY(-2px);

    text-decoration: none !important;
}


.mz-cta-primary {
    background:
        linear-gradient(
            110deg,
            #2563eb,
            #4f46e5
        );

    color: #fff !important;

    box-shadow:
        0 12px 30px rgba(37, 99, 235, .22);
}


.mz-cta-primary:hover {
    color: #fff !important;

    box-shadow:
        0 16px 34px rgba(37, 99, 235, .30);
}


.mz-cta-secondary {
    border: 1px solid #dbe4f0;

    background: #fff;

    color: #334155 !important;
}


.mz-cta-secondary:hover {
    background: #f8fafc;

    color: #1d4ed8 !important;
}


/* =========================================================
   HERO MATHEMATICS
   ========================================================= */

.mz-home-math {
    position: relative;
    z-index: 2;

    min-height: 240px;
}


.mz-home-equation {
    position: absolute;

    top: 72px;
    left: 50%;

    transform: translateX(-50%) rotate(-2deg);

    white-space: nowrap;

    color: #172554;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 4vw, 48px);
    font-style: italic;

    text-shadow:
        0 8px 24px rgba(30, 64, 175, .12);
}


.mz-math-chip {
    position: absolute;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;
    min-height: 54px;

    padding: 8px 13px;

    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 16px;

    background: rgba(255,255,255,.82);

    box-shadow:
        0 15px 35px rgba(15,23,42,.09);

    color: #334155;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
}


.mz-math-chip-1 {
    top: 0;
    left: 5%;

    transform: rotate(-7deg);
}


.mz-math-chip-2 {
    top: 10px;
    right: 8%;

    color: #7c3aed;

    font-size: 29px;

    transform: rotate(7deg);
}


.mz-math-chip-3 {
    bottom: 10px;
    left: 15%;

    color: #2563eb;

    font-size: 30px;

    transform: rotate(4deg);
}


.mz-math-chip-4 {
    right: 0;
    bottom: 24px;

    color: #0891b2;

    transform: rotate(-5deg);
}


/* =========================================================
   FORUM CATEGORY
   ========================================================= */

.forabg {
    overflow: visible;

    margin: 30px 0 38px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}


.forabg > .inner {
    background: transparent;
}


/* Category title */

.forabg > .inner > ul.topiclist:first-child {
    margin-bottom: 16px;

    background: transparent;
}


.forabg > .inner > ul.topiclist:first-child li.header {
    padding: 0;

    background: transparent;
}


.forabg > .inner > ul.topiclist:first-child dl {
    display: block;

    padding: 0;
}


.forabg > .inner > ul.topiclist:first-child dt {
    width: auto;

    margin: 0;

    padding: 0;
}


.forabg > .inner > ul.topiclist:first-child dd {
    display: none;
}


.forabg > .inner > ul.topiclist:first-child a {
    color: #0f172a !important;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -.4px;

    text-decoration: none !important;
}


/* =========================================================
   COURSE GRID
   ========================================================= */

.forabg ul.topiclist.forums {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    padding: 0;

    background: transparent;
}


.forabg ul.topiclist.forums > li.row {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 20px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    box-shadow:
        0 9px 30px rgba(15, 23, 42, .065);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.forabg ul.topiclist.forums > li.row:hover {
    z-index: 2;

    transform: translateY(-5px);

    border-color: #cbd5e1;

    box-shadow:
        0 22px 50px rgba(15, 23, 42, .12);
}


/* Coloured top accent */

.forabg ul.topiclist.forums > li.row::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );
}


/* =========================================================
   COURSE CARD INTERNAL GRID
   ========================================================= */

.forabg ul.topiclist.forums > li.row > dl {
    height: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    grid-template-areas:
        "course course"
        "topics posts"
        "last last";

    margin: 0;

    padding: 0;

    background-image: none !important;
}


.forabg ul.topiclist.forums > li.row dt {
    grid-area: course;

    position: relative;

    width: auto;

    min-height: 142px;

    margin: 0;

    padding: 28px 22px 20px 82px;
}


/* mathematical course icon */

.forabg ul.topiclist.forums > li.row dt::before {
    content: "ƒ";

    position: absolute;

    top: 25px;
    left: 22px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #eef2ff
        );

    color: #2563eb;

    font-family:
        Georgia,
        serif;

    font-size: 25px;
    font-weight: 700;
}


/* Different mathematical symbols */

.forabg ul.topiclist.forums > li.row:nth-child(2) dt::before {
    content: "∫";

    color: #7c3aed;
}


.forabg ul.topiclist.forums > li.row:nth-child(3) dt::before {
    content: "π";

    color: #0891b2;
}


.forabg ul.topiclist.forums > li.row:nth-child(4) dt::before {
    content: "∇";

    color: #0f766e;
}


.forabg ul.topiclist.forums > li.row:nth-child(5) dt::before {
    content: "λ";

    color: #b45309;
}


.forabg ul.topiclist.forums > li.row:nth-child(6) dt::before {
    content: "Δ";

    color: #be123c;
}


/* Forum name */

.forabg ul.topiclist.forums a.forumtitle {
    color: #0f172a !important;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.25;

    letter-spacing: -.25px;

    text-decoration: none !important;
}


.forabg ul.topiclist.forums a.forumtitle:hover {
    color: #2563eb !important;
}


/* Forum description */

.forabg ul.topiclist.forums dt .list-inner {
    color: #64748b;

    font-size: 13px;
    line-height: 1.55;
}


.forabg ul.topiclist.forums dt .list-inner > br {
    line-height: 1.8;
}


/* Remove duplicate mobile statistics */

.forabg ul.topiclist.forums .responsive-show {
    display: none !important;
}


/* =========================================================
   CARD STATISTICS
   ========================================================= */

.forabg ul.topiclist.forums dd.topics,
.forabg ul.topiclist.forums dd.posts {
    width: auto;

    min-height: 68px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    margin: 0;

    padding: 13px 20px;

    border-top: 1px solid #edf2f7;

    background: rgba(248,250,252,.7);

    color: #0f172a;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.15;
}


.forabg ul.topiclist.forums dd.topics {
    grid-area: topics;

    border-right: 1px solid #edf2f7;
}


.forabg ul.topiclist.forums dd.posts {
    grid-area: posts;
}


.forabg ul.topiclist.forums dd.topics::after {
    content: "temas";

    margin-top: 4px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}


.forabg ul.topiclist.forums dd.posts::after {
    content: "mensajes";

    margin-top: 4px;

    color: #94a3b8;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   LATEST POST
   ========================================================= */

.forabg ul.topiclist.forums dd.lastpost {
    grid-area: last;

    width: auto;

    min-height: 72px;

    margin: 0;

    padding: 15px 20px;

    border-top: 1px solid #edf2f7;

    background: #ffffff;

    color: #64748b;

    font-size: 11px;
    line-height: 1.45;
}


.forabg ul.topiclist.forums dd.lastpost::before {
    content: "Última actividad";

    display: block;

    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.forabg ul.topiclist.forums dd.lastpost a {
    color: #334155;

    font-weight: 700;
}


/* =========================================================
   INDEX STATISTICS
   ========================================================= */

.stat-block {
    margin: 18px 0;

    padding: 20px 22px;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 7px 24px rgba(15,23,42,.05);
}


.stat-block h3 {
    color: #334155;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .04em;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .mz-home-hero {
        grid-template-columns:
            minmax(0, 1fr)
            280px;

        gap: 25px;

        padding: 42px;
    }


    .forabg ul.topiclist.forums {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .mz-home-hero {
        display: block;

        min-height: auto;

        margin: 14px 0 24px;

        padding: 34px 24px;

        border-radius: 20px;
    }


    .mz-home-hero h1 {
        font-size: 42px;

        line-height: 1;
    }


    .mz-home-hero p {
        margin-top: 19px;

        font-size: 15px;
    }


    .mz-home-math {
        display: none;
    }


    .mz-home-actions {
        display: grid;

        grid-template-columns: 1fr;
    }


    .mz-cta {
        width: 100%;

        box-sizing: border-box;
    }


    .forabg {
        margin: 24px 0 30px;
    }


    .forabg ul.topiclist.forums {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .forabg ul.topiclist.forums > li.row dt {
        min-height: 125px;

        padding:
            23px 18px 18px 72px;
    }


    .forabg ul.topiclist.forums > li.row dt::before {
        top: 21px;
        left: 17px;

        width: 40px;
        height: 40px;
    }


    .forabg ul.topiclist.forums a.forumtitle {
        font-size: 17px;
    }


    .forabg ul.topiclist.forums dd.lastpost {
        min-height: auto;
    }

}



/* =========================================================
   MATEMATICAZ COURSE CARDS — PROSILVER LAYOUT RESET
   Theme 0.3.1
   ========================================================= */

/*
 * prosilver usa márgenes negativos en los <dt> de las listas
 * para reservar espacio a topics/posts/lastpost.
 *
 * Al convertir esas listas en CSS Grid debemos neutralizarlos.
 */

.forabg ul.topiclist.forums > li.row > dl {
    width: 100% !important;
    height: 100%;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;

    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
        "course course"
        "topics posts"
        "last last";

    box-sizing: border-box;

    background-image: none !important;
}


/* ---------------------------------------------------------
   COURSE INFORMATION
   --------------------------------------------------------- */

.forabg ul.topiclist.forums > li.row dt {
    grid-area: course;

    position: relative;

    float: none !important;

    width: 100% !important;
    max-width: none !important;

    min-width: 0 !important;
    min-height: 145px;

    margin: 0 !important;

    padding: 26px 22px 22px 82px !important;

    box-sizing: border-box;

    overflow: visible;
}


/*
 * ESTA ES LA REGLA CLAVE:
 * eliminamos los ~440px que prosilver reserva para columnas.
 */

.forabg ul.topiclist.forums > li.row dt .list-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;

    overflow: visible !important;

    color: #64748b;

    font-size: 13px;
    line-height: 1.55;

    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}


/* título */

.forabg ul.topiclist.forums > li.row dt .forumtitle {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    margin: 5px 0 8px !important;
    padding: 0 !important;

    color: #0f172a !important;

    font-size: 19px !important;
    font-weight: 800 !important;

    line-height: 1.25 !important;

    letter-spacing: -0.25px;

    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;

    text-decoration: none !important;
}


.forabg ul.topiclist.forums > li.row dt .forumtitle:hover {
    color: #2563eb !important;
}


/* descripción */

.forabg ul.topiclist.forums > li.row dt .forumtitle + br {
    display: none;
}


/* ---------------------------------------------------------
   REMOVE OLD PROSILVER FORUM ICON LAYOUT
   --------------------------------------------------------- */

.forabg ul.topiclist.forums > li.row dl.row-item {
    background-image: none !important;
}


.forabg ul.topiclist.forums > li.row dl.row-item dt {
    background-image: none !important;
}


/* ---------------------------------------------------------
   OUR MATHEMATICAL ICON
   --------------------------------------------------------- */

.forabg ul.topiclist.forums > li.row dt::before {
    content: "ƒ";

    position: absolute;

    top: 25px;
    left: 22px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    border-radius: 13px;

    background: #eef4ff;

    color: #2563eb;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;

    line-height: 1;
}


.forabg ul.topiclist.forums > li.row:nth-child(2) dt::before {
    content: "∫";
    color: #7c3aed;
}


.forabg ul.topiclist.forums > li.row:nth-child(3) dt::before {
    content: "π";
    color: #0891b2;
}


.forabg ul.topiclist.forums > li.row:nth-child(4) dt::before {
    content: "∇";
    color: #0f766e;
}


.forabg ul.topiclist.forums > li.row:nth-child(5) dt::before {
    content: "λ";
    color: #b45309;
}


.forabg ul.topiclist.forums > li.row:nth-child(6) dt::before {
    content: "Δ";
    color: #be123c;
}


/* ---------------------------------------------------------
   STATISTICS
   --------------------------------------------------------- */

.forabg ul.topiclist.forums > li.row dd {
    float: none !important;

    box-sizing: border-box;

    margin: 0 !important;
}


.forabg ul.topiclist.forums > li.row dd.topics,
.forabg ul.topiclist.forums > li.row dd.posts {
    width: 100% !important;

    min-width: 0 !important;
    min-height: 74px;

    padding: 15px 20px !important;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #f8fafc;

    color: #0f172a;

    font-size: 18px;
    font-weight: 800;

    line-height: 1.15;
}


.forabg ul.topiclist.forums > li.row dd.topics {
    grid-area: topics;

    border-top: 1px solid #e9eef5;
    border-right: 1px solid #e9eef5;
}


.forabg ul.topiclist.forums > li.row dd.posts {
    grid-area: posts;

    border-top: 1px solid #e9eef5;
}


/* ---------------------------------------------------------
   LAST ACTIVITY
   --------------------------------------------------------- */

.forabg ul.topiclist.forums > li.row dd.lastpost {
    grid-area: last;

    float: none !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 82px;

    margin: 0 !important;

    padding: 16px 20px !important;

    box-sizing: border-box;

    border-top: 1px solid #e9eef5;

    background: #fff;

    text-align: left;
}


.forabg ul.topiclist.forums > li.row dd.lastpost > span {
    display: block;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ---------------------------------------------------------
   REMOVE DESKTOP COLUMN WIDTHS INHERITED FROM PROSILVER
   --------------------------------------------------------- */

.forabg ul.topiclist.forums dd.topics,
.forabg ul.topiclist.forums dd.posts,
.forabg ul.topiclist.forums dd.lastpost {
    position: static !important;
}


/* ---------------------------------------------------------
   CARD HEIGHT
   --------------------------------------------------------- */

.forabg ul.topiclist.forums > li.row {
    height: auto !important;
    min-height: 0 !important;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .forabg ul.topiclist.forums > li.row dt {
        min-height: 125px;

        padding:
            22px 18px 18px 72px !important;
    }


    .forabg ul.topiclist.forums > li.row dt::before {
        top: 20px;
        left: 17px;

        width: 40px;
        height: 40px;

        font-size: 22px;
    }


    .forabg ul.topiclist.forums > li.row dt .forumtitle {
        font-size: 18px !important;
    }


    .forabg ul.topiclist.forums > li.row dd.topics,
    .forabg ul.topiclist.forums > li.row dd.posts {
        min-height: 68px;

        padding: 12px !important;
    }

}


/* =========================================================
   MATEMATICAZ NATIVE COURSE CARDS
   Theme 0.4
   ========================================================= */

.mz-course-section {
    margin: 32px 0 42px;
}


.mz-course-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}


.mz-course-section-title {
    margin: 0;

    color: #0f172a;

    font-size: 24px;
    font-weight: 850;

    line-height: 1.2;

    letter-spacing: -.5px;
}


.mz-course-section-title a {
    color: inherit !important;

    text-decoration: none !important;
}


.mz-course-section-title a:hover {
    color: #2563eb !important;
}


/* =========================================================
   GRID
   ========================================================= */

.mz-course-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.mz-course-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e2e8f0;
    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );

    box-shadow:
        0 10px 32px rgba(15,23,42,.065);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.mz-course-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );
}


.mz-course-card:hover {
    transform: translateY(-5px);

    border-color: #cbd5e1;

    box-shadow:
        0 22px 52px rgba(15,23,42,.12);
}


.mz-course-card.is-unread::before {
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #06b6d4,
            #7c3aed
        );
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.mz-course-card-main {
    flex: 1;

    display: grid;

    grid-template-columns: 54px minmax(0,1fr);

    gap: 16px;

    min-height: 145px;

    padding: 27px 24px 23px;
}


.mz-course-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #eef2ff
        );
}


.mz-course-custom-image {
    width: 100%;
    height: 100%;
}


.mz-course-custom-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* fallback symbol */

.mz-course-symbol::before {
    content: "ƒ";

    color: #2563eb;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;
    font-weight: 700;
}


.mz-course-card:nth-child(2) .mz-course-symbol::before {
    content: "∫";
    color: #7c3aed;
}


.mz-course-card:nth-child(3) .mz-course-symbol::before {
    content: "π";
    color: #0891b2;
}


.mz-course-card:nth-child(4) .mz-course-symbol::before {
    content: "∇";
    color: #0f766e;
}


.mz-course-card:nth-child(5) .mz-course-symbol::before {
    content: "λ";
    color: #b45309;
}


.mz-course-card:nth-child(6) .mz-course-symbol::before {
    content: "Δ";
    color: #be123c;
}


/* =========================================================
   COPY
   ========================================================= */

.mz-course-copy {
    min-width: 0;
}


.mz-course-title-line {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}


.mz-course-title {
    min-width: 0;

    color: #0f172a !important;

    font-size: 19px;
    font-weight: 850;

    line-height: 1.25;

    letter-spacing: -.3px;

    text-decoration: none !important;

    overflow-wrap: break-word;
}


.mz-course-title:hover {
    color: #2563eb !important;
}


.mz-unread-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.10);
}


.mz-course-description {
    margin-top: 9px;

    color: #64748b;

    font-size: 13px;
    line-height: 1.55;

    overflow-wrap: break-word;
}


.mz-course-moderators {
    margin-top: 10px;

    color: #64748b;

    font-size: 11px;
}


/* =========================================================
   SUBFORUMS
   ========================================================= */

.mz-subforums {
    margin-top: 14px;
}


.mz-subforums-label {
    display: block;

    margin-bottom: 7px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}


.mz-subforum-links {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}


.mz-subforum-link {
    display: inline-flex;

    padding: 5px 9px;

    border: 1px solid #e2e8f0;
    border-radius: 999px;

    background: #f8fafc;

    color: #475569 !important;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none !important;
}


.mz-subforum-link:hover,
.mz-subforum-link.is-unread {
    border-color: #bfdbfe;

    background: #eff6ff;

    color: #2563eb !important;
}


/* =========================================================
   STATS
   ========================================================= */

.mz-course-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid #e9eef5;

    background: #f8fafc;
}


.mz-course-stats-single {
    grid-template-columns: 1fr;
}


.mz-course-stat {
    min-height: 72px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 12px;

    text-align: center;
}


.mz-course-stat + .mz-course-stat {
    border-left: 1px solid #e9eef5;
}


.mz-course-stat strong {
    color: #0f172a;

    font-size: 18px;
    font-weight: 850;

    line-height: 1;
}


.mz-course-stat span {
    margin-top: 6px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .09em;

    text-transform: uppercase;
}


/* =========================================================
   LAST ACTIVITY
   ========================================================= */

.mz-course-lastpost {
    min-height: 82px;

    padding: 16px 20px 17px;

    border-top: 1px solid #e9eef5;

    background: #fff;
}


.mz-lastpost-label {
    display: block;

    margin-bottom: 6px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.mz-lastpost-subject {
    min-width: 0;

    margin-bottom: 4px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.mz-lastpost-subject a {
    color: #334155 !important;

    font-size: 12px;
    font-weight: 750;

    text-decoration: none !important;
}


.mz-lastpost-subject a:hover {
    color: #2563eb !important;
}


.mz-lastpost-meta,
.mz-no-posts {
    color: #64748b;

    font-size: 11px;
    line-height: 1.5;
}


.mz-lastpost-separator {
    margin: 0 4px;

    color: #cbd5e1;
}


.mz-moderation-indicator {
    float: right;

    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff7ed;

    color: #c2410c !important;

    font-weight: 900;

    text-decoration: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .mz-course-section {
        margin: 24px 0 32px;
    }


    .mz-course-section-title {
        font-size: 21px;
    }


    .mz-course-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .mz-course-card {
        border-radius: 18px;
    }


    .mz-course-card-main {
        grid-template-columns: 46px minmax(0,1fr);

        gap: 13px;

        min-height: 125px;

        padding: 22px 18px 19px;
    }


    .mz-course-icon {
        width: 44px;
        height: 44px;

        border-radius: 13px;
    }


    .mz-course-symbol::before {
        font-size: 24px;
    }


    .mz-course-title {
        font-size: 18px;
    }


    .mz-course-stat {
        min-height: 65px;
    }

}



/* =========================================================
   MATEMATICAZ VISUAL POSTS
   Theme 0.5
   ========================================================= */

.topic-title {
    margin: 26px 0 18px;
}

.topic-title a {
    color: #0f172a !important;
    font-size: 28px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.7px;
    text-decoration: none !important;
}


/* Publicación */

.post {
    overflow: hidden;

    margin: 20px 0;

    padding: 0 !important;

    border: 1px solid #e2e8f0;
    border-radius: 22px;

    background: #fff !important;

    box-shadow:
        0 10px 34px rgba(15, 23, 42, .07);
}


.post > .inner {
    display: grid;

    grid-template-columns: 1fr;

    padding: 0 !important;
}


/* Perfil horizontal */

.postprofile {
    float: none !important;

    width: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;

    padding: 15px 22px !important;

    box-sizing: border-box;

    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;

    background: #fbfdff;
}


.postprofile dt {
    min-height: 0 !important;

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 0 !important;

    text-align: left !important;
}


.postprofile .avatar-container {
    float: none !important;

    width: 44px;
    height: 44px;

    margin: 0 !important;
}


.postprofile .avatar-container .avatar {
    width: 44px !important;
    height: 44px !important;

    max-width: 44px !important;
    max-height: 44px !important;

    object-fit: cover;

    border-radius: 50%;
}


.postprofile dt > a,
.postprofile dt > strong {
    font-size: 13px;
    font-weight: 800;
}


/* ocultamos metadatos que hacen parecer foro clásico */

.postprofile .profile-rank,
.postprofile .profile-posts,
.postprofile .profile-joined,
.postprofile .profile-warnings,
.postprofile .profile-custom-field,
.postprofile .profile-contact {
    display: none !important;
}


/* cuerpo */

.postbody {
    float: none !important;

    width: 100% !important;

    margin: 0 !important;

    padding: 22px 26px 28px !important;

    box-sizing: border-box;
}


.postbody h3 {
    margin: 0 0 7px;

    color: #0f172a;

    font-size: 19px;
    font-weight: 800;

    line-height: 1.3;
}


.postbody .author {
    margin-bottom: 22px;

    color: #94a3b8;

    font-size: 11px;
}


.postbody .content {
    color: #1e293b;

    font-size: 15px;
    line-height: 1.75;
}


/* Imágenes */

.attachbox {
    margin: 24px 0 10px !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
}


.attachbox > dt {
    display: none;
}


.attachbox dd {
    margin: 0 0 18px !important;

    padding: 0 !important;
}


.attachbox img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100% !important;
    max-height: 78vh;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 16px;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, .10);

    cursor: zoom-in;
}


/* acciones */

.post-buttons {
    margin-top: 0;
}


.post-buttons .button {
    border-radius: 10px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
}


.signature {
    margin-top: 25px;

    padding-top: 16px;

    border-top: 1px solid #edf2f7;

    color: #94a3b8;
}


hr.divider {
    display: none;
}


/* móvil */

@media (max-width: 700px) {

    .topic-title a {
        font-size: 23px;
    }

    .post {
        border-radius: 17px;
    }

    .postprofile {
        padding: 12px 15px !important;
    }

    .postbody {
        padding: 18px 16px 22px !important;
    }

    .attachbox img {
        max-height: 75vh;
        border-radius: 12px;
    }

}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.mz-header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.mz-header-publish {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 0 16px;

    border-radius: 14px;

    background:
        rgba(255,255,255,.96);

    color: #1d4ed8 !important;

    font-size: 12px;
    font-weight: 850;

    text-decoration: none !important;

    box-shadow:
        0 7px 18px
        rgba(15,23,42,.10);
}


.mz-header-publish:hover {
    background: #fff;

    transform: translateY(-1px);
}


@media (max-width: 650px) {

    .mz-header-publish {
        width: 42px;
        height: 42px;

        min-height: 42px;

        padding: 0;

        font-size: 0;
    }


    .mz-header-publish span {
        font-size: 22px;
    }

}

