/* ==========================================================================
   Patriot Newswire - site-specific components
   --------------------------------------------------------------------------
   Loaded after css/style.css. Everything here is either a component the base
   template did not have, or an override this brand needs. Colour values come
   from the tokens declared at the top of css/style.css.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 12px 22px;
    background: var(--pn-navy);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--pn-red);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* --------------------------------------------------------------------------
   2. Masthead
   The Patriot Newswire mark is taller and narrower than the logo this
   template shipped with, so it is sized by height rather than width.
   -------------------------------------------------------------------------- */

.logo img {
    height: 58px;
    width: auto;
}

@media all and (max-width: 480px) {
    .logo img {
        height: 44px;
        width: auto;
    }
}

/* Header call-to-action, in the slot the template used for a stock ticker. */
.top-cta .btn {
    display: inline-block;
    background: var(--pn-red);
    color: var(--pn-on-accent);
    font-family: "Roboto Condensed";
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 12px 24px;
    border: 0;
    border-radius: 3px;
}

.top-cta .btn:hover,
.top-cta .btn:focus {
    background: var(--pn-red-deep);
    color: var(--pn-on-accent);
}


/* ---- Desktop masthead -----------------------------------------------------
   The base template floats the whole contact block hard right. Against this
   logo's proportions that left a wide gap after the mark, and once the CTA
   was added the row overflowed and wrapped the social icons onto a second
   line, roughly doubling the header height.

   Laying the bar out as one flex row fixes both: the contact details sit
   directly beside the logo, and social plus the CTA anchor the right edge on
   a single line.
   -------------------------------------------------------------------------- */

@media all and (min-width: 992px) {

    .logo-top-info {
        padding: 15px 0;
    }

    .logo-top-info > .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Bootstrap 3's clearfix pseudo-elements would otherwise become flex items. */
    .logo-top-info > .container:before,
    .logo-top-info > .container:after {
        display: none;
    }

    .logo-top-info .logo {
        width: auto;
        flex: 0 0 auto;
        padding-right: 30px;
    }

    .logo-top-info .top-info-social {
        width: auto;
        flex: 1 1 auto;
        margin-top: 0;
        padding: 0;
    }

    .top-info-social > .pull-right {
        float: none !important;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .top-info,
    .top-cta,
    .social,
    .top-info > div {
        float: none;
    }

    /* The auto margin sits BEFORE the contact details, so all the slack lands
       between the logo and them: logo hard left, contact + social + CTA as one
       group hard right. */
    .top-info {
        order: 1;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .top-info > div {
        padding: 0 24px;
    }

    .social {
        order: 2;
        flex: 0 0 auto;
        padding-left: 10px;
    }

    .social ul.social-icons {
        padding-left: 0;
        margin-bottom: 0;
    }

    .social ul.social-icons li a {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 16px;
        margin-right: 9px;
    }

    .top-cta {
        order: 3;
        flex: 0 0 auto;
        margin: 0 0 0 18px;
    }
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */

.slider-content h1 .accent,
.slider-content h2 .accent {
    color: #fff;
    border-bottom: 5px solid var(--pn-red);
    padding-bottom: 4px;
}

.slider-content .btn-ghost {
    display: inline-block;
    margin-left: 14px;
    padding: 14px 30px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    color: #fff;
    font-family: "Roboto Condensed";
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s ease all;
}

.slider-content .btn-ghost:hover,
.slider-content .btn-ghost:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    color: #fff;
}

@media all and (max-width: 767px) {
    .slider-content .btn-ghost {
        margin: 12px 0 0;
        display: block;
        text-align: center;
    }
}


/* --------------------------------------------------------------------------
   4. Outlet strip
   Outlet names are set as type, not as reproductions of anyone's logo.
   -------------------------------------------------------------------------- */

.outlet-mark {
    display: block;
    height: 56px;
    line-height: 56px;
    text-align: center;
    font-family: "Roboto Condensed";
    font-size: 21px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa2ad;
    white-space: nowrap;
    transition: 0.3s ease color;
}

.outlet-mark:hover {
    color: var(--pn-navy);
}

.outlet-note {
    margin-top: 26px;
    font-size: 14px;
    color: var(--pn-ink-muted);
    text-align: center;
}


/* --------------------------------------------------------------------------
   5. Coverage tiers (home)
   Reuses the template's blockquote block as a factual "what you get" panel
   instead of a testimonial.
   -------------------------------------------------------------------------- */

.tier {
    background: var(--pn-surface);
    border-top: 5px solid var(--pn-red);
    padding: 34px 32px;
    height: 100%;
}

.tier h3,
.tier h4 {
    font-family: "Roboto Condensed";
    font-size: 21px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--pn-navy);
    margin: 0 0 14px;
}

.tier p {
    margin-bottom: 18px;
}

.tier ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier ul li {
    position: relative;
    padding: 0 0 10px 26px;
    font-size: 15px;
    color: var(--pn-ink);
    line-height: 1.5;
}

.tier ul li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--pn-red);
    font-size: 13px;
}

@media all and (max-width: 991px) {
    .tier {
        margin-bottom: 30px;
    }
}


/* --------------------------------------------------------------------------
   6. Platform page
   -------------------------------------------------------------------------- */

.access-card {
    background: #fff;
    border: 1px solid var(--pn-border);
    border-top: 5px solid var(--pn-navy);
    padding: 44px 40px;
    height: 100%;
    box-shadow: 0 2px 26px rgba(0, 0, 0, 0.05);
}

.access-card.is-primary {
    border-top-color: var(--pn-red);
}

.access-card h2,
.access-card h3 {
    font-family: "Roboto Condensed";
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--pn-navy);
    margin: 0 0 12px;
}

.access-card .lede {
    font-size: 17px;
    color: var(--pn-ink);
    margin-bottom: 26px;
}

.access-card .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    font-family: "Roboto Condensed";
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    border: 0;
    background: var(--pn-red);
    color: var(--pn-on-accent);
    transition: 0.2s ease all;
}

.access-card .btn:hover,
.access-card .btn:focus {
    background: var(--pn-red-deep);
    color: var(--pn-on-accent);
}

.access-card .btn i {
    padding-left: 6px;
}

.access-card .btn-outline {
    background: transparent;
    border: 2px solid var(--pn-navy);
    color: var(--pn-navy);
}

.access-card .btn-outline:hover,
.access-card .btn-outline:focus {
    background: var(--pn-navy);
    color: #fff;
}

.access-card .fineprint {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--pn-ink-muted);
    text-align: center;
}

@media all and (max-width: 991px) {
    .access-card {
        margin-bottom: 30px;
    }
}

.access-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.access-steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 26px 62px;
    min-height: 46px;
}

.access-steps li:before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    background: var(--pn-navy);
    color: #fff;
    font-family: "Roboto Condensed";
    font-size: 20px;
    font-weight: bold;
}

.access-steps li h3,
.access-steps li h4 {
    font-size: 19px;
    font-weight: bold;
    color: var(--pn-navy);
    margin: 8px 0 6px;
}

.access-steps li p {
    margin: 0;
}


/* --------------------------------------------------------------------------
   7. Long-form legal pages
   -------------------------------------------------------------------------- */

.legal {
    padding: 80px 0 90px;
}

.legal .legal-meta {
    padding: 18px 24px;
    background: var(--pn-surface);
    border-left: 4px solid var(--pn-red);
    margin-bottom: 42px;
    font-size: 15px;
    color: var(--pn-ink-muted);
}

.legal h2 {
    font-family: "Roboto Condensed";
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--pn-navy);
    margin: 46px 0 16px;
    padding-top: 6px;
}

.legal h2:first-of-type {
    margin-top: 0;
}

.legal h3 {
    font-size: 19px;
    font-weight: bold;
    color: var(--pn-ink);
    margin: 28px 0 10px;
}

.legal p,
.legal li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--pn-ink);
}

.legal ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.legal li {
    margin-bottom: 9px;
}

.legal address {
    font-style: normal;
    line-height: 1.75;
}

.legal-toc {
    background: var(--pn-surface);
    padding: 28px 30px;
    margin-bottom: 44px;
}

.legal-toc h2 {
    font-size: 18px;
    margin: 0 0 14px;
}

.legal-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 34px;
}

.legal-toc li {
    margin-bottom: 7px;
    font-size: 15px;
}

@media all and (max-width: 600px) {
    .legal-toc ol {
        columns: 1;
    }
}


/* --------------------------------------------------------------------------
   8. Contact page - the template's Google Map slot is now a service panel
   -------------------------------------------------------------------------- */

.contact-panel {
    background: var(--pn-surface);
    padding: 36px 34px;
}

.contact-panel h2,
.contact-panel h3 {
    font-family: "Roboto Condensed";
    font-size: 21px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--pn-navy);
    margin: 0 0 18px;
}

.contact-panel + .contact-panel {
    margin-top: 26px;
}

.contact-panel dl {
    margin: 0;
}

.contact-panel dt {
    font-weight: bold;
    color: var(--pn-navy);
    margin-top: 14px;
}

.contact-panel dt:first-child {
    margin-top: 0;
}

.contact-panel dd {
    margin: 0 0 4px;
    color: var(--pn-ink);
}


/* --------------------------------------------------------------------------
   9. Small shared utilities
   -------------------------------------------------------------------------- */

.lede {
    font-size: 18px;
    line-height: 1.7;
}

.rule-red {
    display: block;
    width: 64px;
    height: 4px;
    background: var(--pn-red);
    margin: 0 0 24px;
}

.text-center .rule-red {
    margin-left: auto;
    margin-right: auto;
}

.disclaimer {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pn-ink-muted);
}

/* The base template hides alt text behind a fixed height on broken images;
   make sure generated tiles never overflow their column. */
.hover-effect img,
.img-box img,
.blog-img-box img {
    max-width: 100%;
    height: auto;
}

/* Footer legal links sit on a dark bar - keep them legible. */
.copyright-bar a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* --------------------------------------------------------------------------
   10. Heading-level aliases
   The base template binds its type scale to specific elements (h4.subtitle,
   h2.title-2, ...). Pages here choose heading levels for document outline and
   accessibility instead, so the same scale is re-exposed as element-agnostic
   classes. The original element-qualified rules keep winning on specificity
   wherever they still apply, so nothing in the base theme shifts.
   -------------------------------------------------------------------------- */

.subtitle {
    font-size: 20px;
    font-family: "Roboto";
    color: var(--pn-navy);
    font-weight: bold;
    line-height: 1.4;
    margin: 20px 0;
}

.subtitle-2 {
    font-size: 20px;
    font-family: "Roboto";
    color: #4C4F54;
    font-weight: bold;
    line-height: 1.4;
    margin: 10px 0 20px;
}

.title-2 {
    font-size: 40px;
    font-family: "Roboto";
    color: var(--pn-navy);
    font-weight: bold;
    margin: 0;
}

.section-title .title-2 {
    margin: 20px 0;
}

.panel-title {
    font-size: 20px;
    font-family: "Roboto";
    font-weight: bold;
    line-height: 1;
    padding: 22px;
    margin: 0;
}

.culture .culture-subtitle {
    font-size: 20px;
    font-family: "Roboto";
    color: #4C4F54;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 15px;
}

.employees .subtitle {
    font-size: 28px;
    margin-top: 0;
}

.ceo-details .subtitle {
    font-size: 27px;
}

.life-box .subtitle {
    margin: 30px 0 15px;
}

.sidebar-single-links .subtitle {
    margin: 0 0 15px;
    line-height: 1;
}

.stats-box h3,
.stats-box h4,
.stats-box p {
    line-height: 1;
}

@media all and (max-width: 767px) {
    .title-2 {
        font-size: 30px;
    }
    .panel-title {
        font-size: 18px;
        padding: 18px;
    }
    .culture .culture-subtitle {
        font-size: 16px;
    }
}


/* --------------------------------------------------------------------------
   11. Stat counters
   The counter plugin needs a bare number, so the unit lives in its own span.
   -------------------------------------------------------------------------- */

.stats-info h3.counter-wrap,
.stats-info h4.counter-wrap {
    font-size: 36px;
    font-family: "Roboto";
    color: var(--pn-navy);
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.counter-suffix {
    color: var(--pn-red);
    padding-left: 2px;
}


/* --------------------------------------------------------------------------
   12. Base-template layout nudges
   -------------------------------------------------------------------------- */

/* The CEO row bottom-aligns its image for a cut-out portrait; the graphic that
   replaces it is a rectangle, so lift it off the section edge. */
.ceo-photo {
    padding-bottom: 45px;
}

@media all and (max-width: 991px) {
    .ceo-photo {
        padding-bottom: 0;
    }
}

/* Four service cards per row instead of three: even out the gutters. */
.row.services > [class*="col-md-3"] {
    margin-bottom: 30px;
}

/* Section headings on the home page now carry a <p> lede rather than an <h4>. */
.section-title p.subtitle-2 {
    margin-left: auto;
    margin-right: auto;
}


/* --------------------------------------------------------------------------
   13. Select control
   The base .form-control sizes text inputs with line-height, which a <select>
   ignores, so the desk picker needs an explicit height and a custom chevron.
   -------------------------------------------------------------------------- */

select.form-control {
    height: 50px;
    line-height: 50px;
    padding: 0 44px 0 20px;
    color: var(--pn-ink);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image:
        url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%230A3161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 9px;
}

select.form-control:invalid {
    color: #999;   /* matches the placeholder colour until a desk is chosen */
}

select.form-control option {
    color: var(--pn-ink);
}


/* --------------------------------------------------------------------------
   14. Platform access forms
   -------------------------------------------------------------------------- */

.access-form .form-group {
    margin-bottom: 18px;
}

.access-form label {
    display: block;
    font-family: "Roboto Condensed";
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pn-navy);
    margin-bottom: 7px;
}

.access-form label .optional {
    color: var(--pn-ink-muted);
    font-weight: normal;
    letter-spacing: 0;
    text-transform: none;
}

.access-form .form-control {
    line-height: 44px;
}

.access-form .help-block {
    display: block;
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--pn-red);
}

/* ---- Math captcha --------------------------------------------------------
   A small arithmetic question instead of a third-party widget: no external
   script, no cookie, nothing to consent to, and it stops the drive-by bots
   these forms actually attract.
   -------------------------------------------------------------------------- */

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 0 14px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background: var(--pn-navy);
    color: #fff;
    font-family: "Roboto Condensed";
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.04em;
    border-radius: 3px;
    user-select: none;
}

.captcha-row .captcha-input {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 44px;
}

.captcha-refresh {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    border: 1px solid var(--pn-border);
    border-radius: 3px;
    background: #fff;
    color: var(--pn-navy);
    font-size: 15px;
    transition: 0.2s ease all;
}

.captcha-refresh:hover,
.captcha-refresh:focus {
    background: var(--pn-surface);
    color: var(--pn-red);
}

.captcha .help-block {
    margin-top: 8px;
}

/* ---- Hand-off confirmation ----------------------------------------------- */

.handoff {
    text-align: center;
    padding: 34px 20px 10px;
}

.handoff .handoff-tick {
    display: inline-block;
    width: 58px;
    height: 58px;
    line-height: 58px;
    border-radius: 50%;
    background: var(--pn-red);
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
}

.handoff h3 {
    font-family: "Roboto Condensed";
    font-size: 23px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--pn-navy);
    margin: 0 0 12px;
}

.handoff p {
    font-size: 16px;
    color: var(--pn-ink);
    margin-bottom: 18px;
}

.handoff .handoff-link {
    font-family: "Roboto Condensed";
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pn-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.handoff .handoff-bar {
    position: relative;
    height: 4px;
    margin: 24px auto 0;
    max-width: 240px;
    background: var(--pn-border);
    border-radius: 2px;
    overflow: hidden;
}

.handoff .handoff-bar:after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--pn-red);
    transform-origin: left center;
    animation: pn-handoff 1.4s linear forwards;
}

@keyframes pn-handoff {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .handoff .handoff-bar:after {
        animation: none;
        transform: scaleX(1);
    }
}

.access-note {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--pn-border);
    font-size: 13px;
    line-height: 1.6;
    color: var(--pn-ink-muted);
}

.access-note a {
    color: var(--pn-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* Checked list inside a contact-panel, used on /signup. Mirrors .tier ul. */
.contact-panel .tier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-panel .tier-list li {
    position: relative;
    padding: 0 0 12px 28px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--pn-ink);
}

.contact-panel .tier-list li:last-child {
    padding-bottom: 0;
}

.contact-panel .tier-list li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--pn-red);
    font-size: 13px;
}
