/* Time Cards USA - "Card Stock" (design/stores/timecardsusa-a-*):
   manila card stock, ruled lines, navy ink, a red time stamp. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&family=IBM+Plex+Serif:wght@600&display=swap');

:root {
    --font-body: 'IBM Plex Sans', system-ui, sans-serif;
    --font-display: 'IBM Plex Serif', Georgia, serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --navy: #1b2a57;
    --ink: #1a1d24;
    --muted: #5d6370;
    --line: #e4dfcf;
    --manila: #f7f0d9;
    --manila-2: #fbf7ea;
    --grid: #cfe3d4;
    --green: #2f7d4f;
    --red: #b7212f;
    --surface: var(--manila-2);
    --brand: var(--navy);
    --brand-ink: #d9def0;
    --accent: var(--red);
    --radius: 10px;
    --wrap: 1240px;
}

h1,
h2,
h3 {
    color: var(--navy);
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

/* Header */
.site-header {
    border-bottom: 3px double var(--line);
}

.brand img {
    max-height: 74px;
}

.search input {
    background: var(--manila-2);
    border-color: #cfc8b2;
    border-width: 1.5px;
}

.main-nav {
    border-top: 1px solid var(--line);
}

.main-nav ul {
    padding-top: 12px;
}

.main-nav a {
    font-weight: 600;
}

/* Home hero */
.cs-hero {
    background-color: var(--manila);
    background-image: linear-gradient(var(--line) 1px, transparent 1px);
    background-size: 100% 34px;
    border-bottom: 1px solid var(--line);
}

.cs-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 60px;
}

.cs-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    line-height: 1.05;
    margin: 20px 0 14px;
}

.cs-hero .lede {
    color: #4a4f5c;
    max-width: 600px;
}

.cs-stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--red);
    border: 1.5px solid var(--red);
    border-radius: 4px;
    padding: 3px 10px;
    letter-spacing: 0.06em;
    transform: rotate(-2deg);
    background: rgba(255, 255, 255, 0.5);
}

.cs-finder {
    background: #fff;
    border: 1px solid #ddd5bd;
    border-radius: 14px;
    margin-top: 28px;
    box-shadow: 0 20px 40px -28px rgba(27, 42, 87, 0.45);
    overflow: hidden;
}

.cs-tabs {
    display: flex;
    flex-wrap: wrap;
    background: var(--manila-2);
    border-bottom: 1px solid var(--line);
}

.cs-tabs button {
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 14px 20px;
    cursor: pointer;
}

.cs-tabs button[aria-selected='true'] {
    background: #fff;
    color: var(--navy);
    box-shadow: inset 0 3px 0 var(--red);
}

.cs-panel {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    padding: 20px 20px 0;
}

.cs-panel[hidden] {
    display: none;
}

.cs-sel {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #d6d0bd;
    border-radius: 8px;
    padding: 6px 12px;
}

.cs-sel.cs-wide {
    grid-column: span 2;
}

.cs-sel small {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.cs-sel select,
.cs-sel input {
    font: inherit;
    font-weight: 600;
    border: 0;
    padding: 2px 0;
    background: transparent;
    color: var(--ink);
    min-width: 0;
}

.cs-go {
    font: inherit;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    cursor: pointer;
    min-height: 52px;
}

.cs-pop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 14px 20px 20px;
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.cs-pop a {
    border: 1px solid var(--line);
    background: var(--manila-2);
    border-radius: 999px;
    padding: 3px 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.cs-fan {
    position: relative;
    height: 480px;
}

.cs-fan img {
    position: absolute;
    width: 168px;
    max-height: 470px;
    object-fit: cover;
    object-position: top;
    border-radius: 3px;
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid #e6dfc6;
    background: #fff;
}

.cs-fan-1 {
    left: 10px;
    top: 50px;
    transform: rotate(-9deg);
}

.cs-fan-2 {
    left: 130px;
    top: 0;
    transform: rotate(1deg);
    z-index: 2;
}

.cs-fan-3 {
    left: 250px;
    top: 52px;
    transform: rotate(10deg);
}

.cs-note {
    position: absolute;
    z-index: 3;
    left: 80px;
    bottom: 0;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    border-left: 4px solid var(--green);
}

.cs-note b {
    display: block;
    color: var(--navy);
}

/* Home sections */
.cs-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.cs-head h2 {
    margin: 0;
}

.cs-head p {
    color: var(--muted);
    margin: 4px 0 0;
}

.cs-head a {
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
}

.cs-sizes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.cs-size {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 10px 14px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 300px;
    text-decoration: none;
    color: var(--ink);
}

.cs-size:hover,
.cs-period:hover,
.cs-card:hover {
    border-color: var(--navy);
}

.cs-size i {
    display: block;
    max-width: 100%;
    background-color: var(--manila);
    border: 1.5px solid #d9cfa9;
    border-radius: 2px;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px);
    background-size: 100% 9px;
    margin-bottom: 14px;
}

.cs-size b {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--navy);
}

.cs-size span {
    font-size: 13px;
    color: var(--muted);
}

.cs-periods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.cs-period {
    border-radius: 12px;
    padding: 20px;
    background: var(--manila-2);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}

.cs-period span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--red);
    letter-spacing: 0.08em;
}

.cs-period h3 {
    font-family: var(--font-body);
    font-size: 19px;
    margin: 6px 0 4px;
}

.cs-period p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.cs-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.cs-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
}

.cs-card-img {
    background: var(--manila-2);
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.cs-card-img img {
    max-height: 226px;
    width: auto;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.4);
}

.cs-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cs-num {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
}

.cs-spec {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
}

.cs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cs-price {
    font-weight: 700;
    font-size: 17px;
}

.cs-price small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
}

.cs-choose {
    background: var(--navy);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
}

.cs-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.cs-promo {
    border-radius: 14px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cs-promo h3 {
    font-size: 26px;
    line-height: 1.15;
    margin: 0;
}

.cs-promo p {
    margin: 8px 0 16px;
    color: var(--muted);
}

.cs-promo img {
    max-height: 180px;
    max-width: 240px;
    border-radius: 8px;
}

.cs-promo-dark {
    background: var(--navy);
    color: #fff;
}

.cs-promo-dark h3 {
    color: #fff;
}

.cs-promo-dark p {
    color: #c9d0e6;
}

.cs-promo-light {
    background: var(--manila);
    border: 1px solid var(--line);
}

.trust {
    background: var(--manila-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust strong {
    color: var(--navy);
}

/* Product page */
.gallery-main {
    background-color: var(--manila);
    background-image: linear-gradient(var(--line) 1px, transparent 1px);
    background-size: 100% 30px;
    padding: 28px;
    border-color: var(--line);
}

.buy-box h1 {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
}

.sku {
    font-family: var(--font-mono);
}

.price {
    color: var(--ink);
}

.tile {
    border-color: #d6d0bd;
}

.tile small {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--navy);
}

.tile:has(input:checked) {
    background: #f3f5fb;
}

.ship-notes {
    border-left: 3px solid var(--green);
    background: #f2f8f4;
    padding: 14px 16px 14px 32px;
    border-radius: 0 10px 10px 0;
    color: #33493b;
}

.product-card-img {
    background: var(--manila-2);
}

.product-card-price {
    color: var(--ink);
}

.site-footer {
    background: var(--navy);
    color: #c9d0e6;
}

@media (max-width: 1000px) {
    .cs-hero-grid,
    .cs-promos {
        grid-template-columns: 1fr;
    }

    .cs-fan {
        display: none;
    }

    .cs-sizes {
        grid-template-columns: repeat(3, 1fr);
    }

    .cs-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cs-panel {
        grid-template-columns: 1fr;
    }

    .cs-sel.cs-wide {
        grid-column: auto;
    }

    .cs-sizes {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-promo {
        grid-template-columns: 1fr;
    }
}
