/*
Theme Name: Bid PDX
Theme URI: https://bidpdx.com/
Author: Bid PDX
Description: Lightweight WordPress shell for the Bid PDX Estimator Framework.
Version: 0.1.0
Text Domain: bid-pdx
*/

:root {
    --bidpdx-theme-blue: #2563eb;
    --bidpdx-theme-blue-dark: #1d4ed8;
    --bidpdx-theme-navy: #172033;
    --bidpdx-theme-muted: #526078;
    --bidpdx-theme-border: #dbe4f0;
    --bidpdx-theme-background: #f8fafc;
    --bidpdx-theme-white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bidpdx-theme-background);
    color: var(--bidpdx-theme-navy);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

a {
    color: var(--bidpdx-theme-blue);
}

a:hover,
a:focus-visible {
    color: var(--bidpdx-theme-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.bidpdx-theme-shell {
    width: min(960px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.bidpdx-theme-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 99999;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bidpdx-theme-navy);
    color: var(--bidpdx-theme-white);
    text-decoration: none;
    transform: translateY(-160%);
}

.bidpdx-theme-skip-link:focus {
    color: var(--bidpdx-theme-white);
    transform: translateY(0);
}

.bidpdx-theme-header {
    border-bottom: 1px solid var(--bidpdx-theme-border);
    background: var(--bidpdx-theme-white);
}

.bidpdx-theme-header__inner {
    display: flex;
    min-height: 64px;
    align-items: center;
}

.bidpdx-theme-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bidpdx-theme-navy);
    font-weight: 850;
    text-decoration: none;
}

.bidpdx-theme-brand:hover,
.bidpdx-theme-brand:focus-visible {
    color: var(--bidpdx-theme-navy);
}

.bidpdx-theme-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--bidpdx-theme-blue);
    color: var(--bidpdx-theme-white);
    font-size: 0.72rem;
    font-weight: 900;
}

.bidpdx-theme-main {
    padding: 40px 0 56px;
}

.bidpdx-theme-content {
    padding: clamp(22px, 5vw, 40px);
    border: 1px solid var(--bidpdx-theme-border);
    border-radius: 18px;
    background: var(--bidpdx-theme-white);
}

.bidpdx-theme-content + .bidpdx-theme-content {
    margin-top: 24px;
}

.bidpdx-theme-title {
    margin: 0 0 20px;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.15;
}

.bidpdx-theme-title a {
    color: var(--bidpdx-theme-navy);
    text-decoration: none;
}

.bidpdx-theme-entry > :first-child {
    margin-top: 0;
}

.bidpdx-theme-entry > :last-child {
    margin-bottom: 0;
}

.bidpdx-theme-empty {
    text-align: center;
}

.bidpdx-theme-footer {
    padding: 24px 0;
    border-top: 1px solid var(--bidpdx-theme-border);
    background: var(--bidpdx-theme-white);
    color: var(--bidpdx-theme-muted);
    font-size: 0.88rem;
    text-align: center;
}

body.bidpdx-theme-estimator {
    background: var(--bidpdx-theme-white);
}

.bidpdx-theme-main--estimator {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
}

@media (max-width: 620px) {
    .bidpdx-theme-shell {
        width: min(100% - 28px, 960px);
    }

    .bidpdx-theme-main {
        padding-top: 28px;
    }

    .bidpdx-theme-content {
        border-radius: 16px;
    }
}
