/*
Theme Name: GeneratePress Child
Theme URI: https://dashboard.ambitiousyears.com
Description: Child theme for the TAY KS3 application dashboard
Author: Wire & Frame
Template: generatepress
Version: 1.0
*/

/* =========================================
   Karla Variable Font
   ========================================= */

@font-face {
    font-family: 'Karla';
    src: url('assets/fonts/karla/Karla-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: 'Karla';
    src: url('assets/fonts/karla/Karla-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
}


/* =========================================
   Global typography
   ========================================= */

html,
body {
    font-family: 'Karla', Arial, sans-serif;
}

body {
    font-weight: 400;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Karla', Arial, sans-serif;
}

h1 {
letter-spacing: -0.065em;
}


/* =====================================
   TAY LOGIN PAGE — SINGLE CARD
===================================== */

/* Hide original GeneratePress header */
body.tay-login-page .site-header,
body.tay-login-page .main-navigation {
    display: none !important;
}

body.tay-login-page .site-header {
    display: none;
}

/* Login card */
body.tay-login-page .tay-login-auth-card {
    position: relative;
    max-width: 520px;
    margin: 90px auto 60px;
    padding: 80px 40px 40px;
    background: #ffffff;
    border: 1px solid #e2e5eb;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Logo — first image block inside card */
body.tay-login-page .tay-login-auth-card > .wp-block-image:first-child {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    margin: 0;
    z-index: 2;
}

body.tay-login-page .tay-login-auth-card > .wp-block-image:first-child img {
    display: block;
    width: 100%;
    height: auto;
}

/* Login heading */
body.tay-login-page .tay-login-auth-card h1,
body.tay-login-page .tay-login-auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Introductory text */
body.tay-login-page .tay-login-auth-card > p {
    text-align: center;
    color: #747983;
    margin-bottom: 2rem;
}

/* Mobile */
@media (max-width: 767px) {
    body.tay-login-page .tay-login-auth-card {
        margin: 75px 16px 30px;
        padding: 65px 24px 30px;
    }

    body.tay-login-page .tay-login-auth-card > .wp-block-image:first-child {
        width: 150px;
        top: -40px;
    }
}

/* =====================================
   TAY — 404 PAGE
===================================== */

.tay-404-page {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.tay-404-content {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.tay-404-code {
    display: block;
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.06em;
    color: #f59e3e;
}

.tay-404-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--tay-text, #0e1952);
}

.tay-404-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tay-muted, #667085);
    margin-bottom: 32px;
}

.tay-404-content .tay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
}

.error404 .site-logo {
width: 180px;
}

.error404 .site-content {
    display: block;
}