/* ==========================================================================
   Homepage front-office card — Office 168/52 (English + Spanish)
   --------------------------------------------------------------------------
   Second ledger in the time-card family: five front-office lanes across a
   week of manila stock. Loaded after marketing-hero-stage.css so these rules
   win over css/marketing.css and the per-page <style> block. Only matches
   .office-card* and .front-office-band--paper, so the midnight campaign band
   other brands and locales still use is untouched.
   ========================================================================== */

.front-office-band.front-office-band--paper {
    padding: clamp(0.8rem, 2vw, 1.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
    background-color: #f3ead4;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(40, 30, 10, 0.03) 0,
        rgba(40, 30, 10, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    overflow: visible;
    isolation: isolate;
    color: #111;
}

/* Narrower than the container on purpose: at full width the punched cells
   stretch into stripes instead of reading as a card. */
.office-card {
    max-width: 780px;
    margin: 0 auto;
    /* #features lands here; keep the day labels clear of the fixed nav. */
    scroll-margin-top: calc(var(--hero-nav-offset, 72px) + 12px);
}

.office-card__eyebrow {
    margin: 0 0 0.7rem;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #3f3a32;
}

.office-card__grid-wrap {
    position: relative;
}

.office-card__grid {
    display: grid;
    grid-template-columns: minmax(4.6rem, 7.2rem) repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.office-card__corner,
.office-card__dow {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: clamp(0.52rem, 0.4rem + 0.5vw, 0.68rem);
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f3a32;
    background: #d9cdb0;
    border-bottom: 2px solid #1a1a1a;
    padding: 0.48em 0 0.5em;
    min-height: 1.45em;
}

.office-card__lane {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    color: #3f3a32;
}

.office-card__cell {
    min-height: 1.7rem;
    border: 1px solid #1a1a1a;
    background: transparent;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: 0.7rem;
    line-height: 1;
    color: #111;
}

.office-card__cell.is-on {
    background: #111;
    border-color: #111;
    color: transparent;
}

.office-card__cell.is-refuse {
    background: transparent;
    font-size: 1rem;
}

/* Third of six grid rows is Inbox — the lane that needs a human. */
.office-card__stamp {
    position: absolute;
    right: 6%;
    top: 42%;
    border: 3px solid #c1121f;
    color: #c1121f;
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    font-size: clamp(0.95rem, 2.4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.1em 0.2em;
    transform: translateY(-50%) rotate(-13deg);
    background: rgba(243, 234, 212, 0.85);
    line-height: 1;
    pointer-events: none;
}

.office-card__line,
.office-card-bridge {
    font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    color: #3f3a32;
    text-align: center;
}

.office-card__line {
    margin: 0.85rem 0 0;
    font-size: clamp(0.82rem, 1.5vw, 0.95rem);
}

.office-card-bridge {
    margin: 1.1rem auto 0.4rem;
    font-size: 0.88rem;
    max-width: 36rem;
}

.front-office-band--paper .fo-journey {
    margin-top: clamp(1.2rem, 3vw, 2rem);
}

.front-office-band--paper .fo-journey-orbit {
    display: none;
}

/* The card is the loud thing on this band; the journey heading is a caption. */
.front-office-band--paper .fo-section-head h2 {
    background: none;
    -webkit-text-fill-color: #111;
    color: #111;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0;
}

.front-office-band--paper .fo-section-sub {
    color: #3f3a32;
}

.front-office-band--paper .fo-journey-step {
    background: rgba(243, 234, 212, 0.45);
    border: 1px solid #1a1a1a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.front-office-band--paper .fo-journey-step:hover,
.front-office-band--paper .fo-journey-step:focus-within {
    transform: none;
    border-color: #111;
    box-shadow: none;
}

.front-office-band--paper .fo-journey-step__num,
.front-office-band--paper .fo-journey-step:nth-child(2) .fo-journey-step__num,
.front-office-band--paper .fo-journey-step:nth-child(3) .fo-journey-step__num,
.front-office-band--paper .fo-journey-step:nth-child(4) .fo-journey-step__num,
.front-office-band--paper .fo-journey-step:nth-child(5) .fo-journey-step__num {
    background: #111;
    color: #f3ead4;
    box-shadow: none;
}

.front-office-band--paper .fo-journey-step h3 {
    color: #111;
}

.front-office-band--paper .fo-journey-step p {
    color: #3f3a32;
}

@media (max-width: 767px) {
    .office-card__stamp {
        font-size: clamp(0.72rem, 4.2vw, 1.05rem);
        border-width: 2px;
        right: 3%;
    }
    .office-card__cell {
        min-height: 1.25rem;
    }
    .office-card__corner,
    .office-card__dow {
        background: #c9b894;
    }
}

/* The shared mobile journey rail is indigo-on-midnight; on paper it reads as
   stray neon, so redraw the dot and connector in ink. */
@media (max-width: 640px) {
    .front-office-band--paper .fo-journey-step::before {
        background: #111;
        box-shadow: none;
    }
    .front-office-band--paper .fo-journey-step:not(:last-child)::after {
        background: rgba(26, 26, 26, 0.32);
    }
}
