/*
Theme Name: Colasix
Description: Red Square Construction (red2.co.nz). House Colasix architecture: one ACF Pro flexible-content field, one PHP file per section, colour tokens in :root, utility-driven layout, no build tooling. Rebuilt Nov 2026 from the GeneratePress child theme, keeping its design.
Author: Andrew Newman
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: colasix
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================================
   1. @FONT-FACE DECLARATIONS
   The faces red2 loaded from Google Fonts under GeneratePress, self-hosted.
   Latin and latin-ext subsets; only the weights in use.
   ================================== */
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lato-400i-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lato-400i-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lato-700i-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lato-700i-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lato-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lato-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lato-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lato-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Noto Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/noto-serif-400i-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Noto Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/noto-serif-400i-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/noto-serif-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/noto-serif-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/noto-serif-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/noto-serif-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Serif Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/source-serif-pro-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Serif Pro';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/source-serif-pro-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================================
   2. CSS CUSTOM PROPERTIES (colours only, named by colour)
   From the GeneratePress Customizer and the page content (BUILD.md).
   The five reds found on the old site fold into --red; --logo-red is the logo
   and contact-link red.
   ================================== */
:root {
    --navy: #2e3d4d;       /* headings, nav text, dark overlays */
    --ink: #2b2b2b;        /* body text */
    --red: #cc5252;        /* accent: outline buttons, dividers, check icons, eyebrows */
    --logo-red: #ed1c24;   /* logo red, contact links */
    --blue: #0693e3;       /* CTA band, call bar, paragraph links */
    --slate: #5c7a99;      /* rules and borders */
    --mist: #cfdae6;       /* panel tint */
    --cloud: #f5f7fa;      /* panel tint */
    --snow: #fafbfc;       /* footer background */
    --field: #fafafa;      /* form field background */
    --grey: #d7d7d7;       /* plan card borders */
    --light: #ededed;      /* plan CTA box */
    --mid: #666666;        /* form text */
    --white: #ffffff;
}

/* ==================================
   3. TYPOGRAPHY SYSTEM
   GeneratePress values: body Lato 18/1.8, headings Noto Serif normal weight
   in navy. GP stepped headings at 768px, so the step-up sits at 769px here
   (BUILD.md decision: matches today's design, not the house 992px).
   ================================== */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--ink);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--logo-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--ink);
}

/* Heading scale with .style-hN mirrors. Mobile values are the base. */
h1, .style-h1,
h2, .style-h2,
h3, .style-h3,
h4, .style-h4,
h5, .style-h5 {
    font-family: 'Noto Serif', serif;
    font-weight: 400;
    color: var(--navy);
}

h1, .style-h1 { font-size: 28px; line-height: 1.3; margin-bottom: 20px; }
h2, .style-h2 { font-size: 24px; line-height: 1.4; margin-bottom: 20px; }
h3, .style-h3 { font-size: 22px; line-height: 1.5; margin-bottom: 20px; }
h4, .style-h4 { font-size: 20px; line-height: 1.5; margin-bottom: 15px; }
h5, .style-h5 { font-size: 19px; line-height: 1.5; margin-bottom: 8px; }

/* Label style (eyebrows): Lato bold uppercase, wide tracking. */
h6, .style-h6 {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--navy);
}

.style-hero {
    font-size: 32px;
    line-height: 1.25;
}

p, ol, ul {
    margin-bottom: 1.5em;
}

ol, ul {
    margin-left: 1.5em;
}

li {
    margin-bottom: 0.25em;
}

strong, b { font-weight: 700; }

.small-text {
    font-size: 15px;
    line-height: 1.6;
}

@media (min-width: 769px) {
    h1, .style-h1 { font-size: 32px; }
    h2, .style-h2 { font-size: 28px; }
    h3, .style-h3 { font-size: 24px; }
    h4, .style-h4 { font-size: 22px; }
    h5, .style-h5 { font-size: 20px; }
    h6, .style-h6 { font-size: 16px; }
    .style-hero   { font-size: 44px; line-height: 1.2; }
}

@media (max-width: 480px) {
    .style-hero { font-size: 28px; }
}

/* WordPress preset classes still present in copied content. */
.has-vivid-red-color { color: var(--red); }
.has-medium-font-size { font-size: 20px; }
.has-small-font-size { font-size: 13px; }

/* ==================================
   4. TYPOGRAPHY UTILITIES
   ================================== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-normal { font-weight: 400; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

.tracking-wide { letter-spacing: 0.2em; }
.tracking-wider { letter-spacing: 0.3em; }

.text-navy { color: var(--navy); }
.text-ink { color: var(--ink); }
.text-red { color: var(--red); }
.text-white { color: var(--white); }

/* The short red rule under headings (GP: a 36.7 x 3 SVG bar). */
.divider {
    display: block;
    width: 37px;
    height: 3px;
    background: var(--red);
    border: 0;
    margin: 0 0 20px;
}

.text-center .divider,
.divider.is-centred {
    margin-left: auto;
    margin-right: auto;
}

/* ==================================
   5. LAYOUT UTILITIES (house values, verbatim)
   .pg is the page gutter. .cNN are centred max-width containers in rem.
   ================================== */
.pg {
    padding-left: 5vw;
    padding-right: 5vw;
}

.c90 { width: 100%; margin-left: auto; margin-right: auto; max-width: 90rem; }
.c80 { width: 100%; margin-left: auto; margin-right: auto; max-width: 80rem; }
.c64 { width: 100%; margin-left: auto; margin-right: auto; max-width: 64rem; }
.c48 { width: 100%; margin-left: auto; margin-right: auto; max-width: 48rem; }

.mw48 { max-width: 48rem; }
.mw43 { max-width: 43rem; }

/* ==================================
   6. SPACING UTILITIES (house scale, verbatim; responsive step-ups)
   ================================== */
.pt05 { padding-top: 0.5rem; }
.pb05 { padding-bottom: 0.5rem; }

.pt8 { padding-top: 4rem; }
.pb8 { padding-bottom: 4rem; }

.pt4 { padding-top: 2rem; }
.pb4 { padding-bottom: 2rem; }

.pt2 { padding-top: 1.25rem; }
.pb2 { padding-bottom: 1.25rem; }

.pt1 { padding-top: 0.75rem; }
.pb1 { padding-bottom: 0.75rem; }

@media (min-width: 768px) {
    .pt8 { padding-top: 5rem; }
    .pb8 { padding-bottom: 5rem; }
    .pt4 { padding-top: 2.5rem; }
    .pb4 { padding-bottom: 2.5rem; }
    .pt2 { padding-top: 1.5rem; }
    .pb2 { padding-bottom: 1.5rem; }
    .pt1 { padding-top: 0.75rem; }
    .pb1 { padding-bottom: 0.75rem; }
}

@media (min-width: 992px) {
    .pt8 { padding-top: 7rem; }
    .pb8 { padding-bottom: 7rem; }
    .pt4 { padding-top: 3rem; }
    .pb4 { padding-bottom: 3rem; }
    .pt2 { padding-top: 1.75rem; }
    .pb2 { padding-bottom: 1.75rem; }
    .pt1 { padding-top: 0.875rem; }
    .pb1 { padding-bottom: 0.875rem; }
}

@media (min-width: 1400px) {
    .pt8 { padding-top: 10rem; }
    .pb8 { padding-bottom: 10rem; }
    .pt4 { padding-top: 4rem; }
    .pb4 { padding-bottom: 4rem; }
    .pt2 { padding-top: 2rem; }
    .pb2 { padding-bottom: 2rem; }
    .pt1 { padding-top: 1rem; }
    .pb1 { padding-bottom: 1rem; }
}

/* Paragraphs and lists inside utility containers lose their last margin. */
.last-mb0 > *:last-child { margin-bottom: 0; }

/* ==================================
   7. BUTTON COMPONENT
   The house class, in red2's outline skin: 16px bold uppercase, .2em
   tracking, 2px red border on white. Variants: .is-light (white outline on
   photos) and .is-frosted (the hero "View our plans" link).
   ================================== */
.button-global {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid var(--red);
    background: var(--white);
    color: var(--red);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.button-global:hover,
.button-global:focus {
    background: var(--red);
    color: var(--white);
}

.button-global.is-light {
    border-color: var(--white);
    background: transparent;
    color: var(--white);
}

.button-global.is-light:hover,
.button-global.is-light:focus {
    background: var(--white);
    color: var(--navy);
}

.button-global.is-frosted {
    border-color: var(--grey);
    background: rgba(255, 255, 255, 0.5); /* --white at 50% */
    color: var(--navy);
}

.button-global.is-frosted:hover,
.button-global.is-frosted:focus {
    background: var(--white);
}

/* ==================================
   8. GLOBAL POLICY STYLES
   ================================== */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Check-mark lists (GP used inline Font Awesome checks in red). Applied to
   any list inside .check-list, and to wysiwyg lists in sections that ask for it. */
.check-list ul,
ul.check-list {
    list-style: none;
    margin-left: 0;
}

.check-list li,
ul.check-list li {
    position: relative;
    padding-left: 1.6em;
}

.check-list li::before,
ul.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.95em;
    height: 0.75em;
    background: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.9 439.4l-166.4-166.4c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.9 439.4l-166.4-166.4c-10-10-10-26.2 0-36.2l36.2-36.2c10-10 26.2-10 36.2 0L192 312.7 432.1 72.6c10-10 26.2-10 36.2 0l36.2 36.2c10 10 10 26.2 0 36.2l-294.4 294.4c-10 10-26.2 10-36.2 0z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Asterisk lists: the red Font Awesome asterisk the old hub pages used. */
.asterisk-list ul,
ul.asterisk-list {
    list-style: none;
    margin-left: 0;
}

.asterisk-list li,
ul.asterisk-list li {
    position: relative;
    padding-left: 1.6em;
}

.asterisk-list li::before,
ul.asterisk-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 0.85em;
    height: 0.85em;
    background: var(--red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z'/%3E%3C/svg%3E") no-repeat center / contain;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Missing-content and missing-layout tripwires: visible on purpose. */
.missing-content,
.missing-layout {
    margin: 1rem 5vw;
    padding: 1rem;
    border: 2px dashed var(--red);
    color: var(--red);
    font-weight: 700;
}

/* ==================================
   9. GLOBAL RICH TEXT
   wysiwyg output and blog bodies.
   ================================== */
.global-rich-text > *:last-child { margin-bottom: 0; }

.global-rich-text h2,
.global-rich-text h3,
.global-rich-text h4 {
    margin-top: 1.5em;
}

.global-rich-text > h2:first-child,
.global-rich-text > h3:first-child,
.global-rich-text > h4:first-child {
    margin-top: 0;
}

.global-rich-text p a,
.global-rich-text li a,
.global-rich-text td a {
    color: var(--blue);
    text-decoration: underline;
}

.global-rich-text p a:hover,
.global-rich-text li a:hover {
    color: var(--navy);
}

.global-rich-text figure { margin-bottom: 1.5em; }

.global-rich-text figcaption {
    font-size: 15px;
    color: var(--mid);
    margin-top: 0.5em;
}

.global-rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 16px;
}

.global-rich-text th,
.global-rich-text td {
    padding: 0.6em 0.8em;
    border-bottom: 1px solid var(--grey);
    text-align: left;
    vertical-align: top;
}

.global-rich-text th {
    font-weight: 700;
    color: var(--navy);
}

.global-rich-text blockquote {
    margin: 0 0 1.5em;
    padding-left: 1.25em;
    border-left: 2px solid var(--red);
    font-style: italic;
}

.global-rich-text iframe { max-width: 100%; }

/* Blog bodies still hold block markup: keep the parts that matter. */
.global-rich-text .wp-block-image img { height: auto; }
.global-rich-text .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }

.global-rich-text .wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
}

.global-rich-text .wp-block-embed.is-type-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Paragraph links site-wide, as the old Additional CSS had it. */
p a {
    color: var(--blue);
    text-decoration: underline;
}

p a:hover {
    color: var(--navy);
}

/* ==================================
   10. GRAVITY FORMS
   The colours GeneratePress's Customizer used to give the forms.
   ================================== */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 10px 15px;
    color: var(--mid);
    background-color: var(--field);
    border: 1px solid #cccccc;
    border-radius: 0;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    color: var(--mid);
    background-color: var(--white);
    border-color: #bfbfbf;
    outline: none;
}

.gform_wrapper .gfield_label {
    font-family: 'Noto Serif', serif;
    font-weight: 400;
    color: var(--navy);
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button,
.gform_wrapper .gform_button {
    padding: 10px 24px;
    border: 0;
    border-radius: 0;
    background-color: var(--red);
    color: var(--white);
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_footer button:hover,
.gform_wrapper .gform_button:hover {
    background-color: var(--navy);
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    z-index: 100000;
    top: 8px;
    left: 8px;
    padding: 12px 18px;
    background: var(--white);
    color: var(--navy);
}
