/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for GeneratePress
Author: RESL
Template: generatepress
Version: 1.0
*/

/* Add your custom CSS below */

/*
Theme Name: Kings Practice Forms Child
Template: generatepress
*/

/* ===== GLOBAL TYPOGRAPHY (optional, but helps match main site) ===== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

/* ===== HEADER LAYOUT ===== */

/* Top coloured bar (full-width) */
.kp-topbar {
    background-color: #2D374B;  /* TODO: replace with the exact Kings header colour from the main site */
    height: 20px;               /* adjust to match the strip height on the main site */
    width: 100%;
}

/* White bar with logo */
.kp-logobar {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kp-logobar-inner {
    max-width: 1100px;          /* adjust to match content width on the main site */
    margin: 0 auto;
    padding: 16px 20px;         /* tweak until height matches the white bar on appointments.htm */
    display: flex;
    align-items: center;
}

/* Logo size & link */
.kp-logo-link {
    display: inline-block;
    line-height: 0;
}

.kp-logo-img {
    max-height: 60px;           /* your requested height */
    width: auto;
    height: auto;
    display: block;
}

.kp-logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #005b8f;             /* same as header colour, tweak if different on main site */
}

/* ===== MAIN CONTENT AREA – WIDTH & BACKGROUND ===== */

/* Centre main content area on all pages */
body.page .site-main {
    display: flex;
    justify-content: center;
}

/* Ensure children fill the available width */
body.page .site-main > * {
    width: 100%;
}

/* Constrain the content width + match background colour */
body.page .inside-article {
    max-width: 1100px;          /* set to same as main site content width */
    margin: 0 auto 40px auto;
    padding: 24px 20px 40px;    /* top/right/bottom padding */
    background-color: #f5f7fa;  /* TODO: replace with main site page background colour */
}

/* Paragraphs & lists in content */
body.page .inside-article p,
body.page .inside-article li {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

/* Optional: headings in content */
body.page .inside-article h1,
body.page .inside-article h2,
body.page .inside-article h3 {
    color: #222222;
    font-weight: 700;
}

/* Remove duplicate default GP page titles if needed
   (UNCOMMENT below if you don't want an extra H1 before content)
*/
/*
body.page .entry-header {
    display: none;
}
*/

/* Responsive tweaks */
@media (max-width: 768px) {
    .kp-logobar-inner {
        max-width: 100%;
        padding: 12px 16px;
    }

    .kp-logo-img {
        max-height: 48px;
    }

    body.page .inside-article {
        max-width: 100%;
        padding: 16px 12px 24px;
    }
}

/* ===== KINGS PRACTICE — HEADING STYLING ===== */

/* Main page titles (H1) */
body.page .inside-article h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222222;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Section headings (H2) */
body.page .inside-article h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222222;
    line-height: 1.25;
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Smaller headings (H3) */
body.page .inside-article h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222222;
    line-height: 1.3;
    margin-top: 28px;
    margin-bottom: 12px;
}

.small { font-size: 0.7rem;}