/* Office categories: white space, magenta details, and a featured stamp card. */
.home .entry-content .psm-office {
    --office-accent: #b90065;
    position: relative;
    min-width: 0;
    max-width: 100%;
    margin-block: 0 48px;
    padding: 0 20px 40px;
    background: #fff;
    color: #242029;
    scroll-margin-top: 32px;
    box-sizing: border-box;
}

.psm-office__header { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 30px; }
.psm-office :is(.psm-office__eyebrow, .psm-office__label) { display: block; color: var(--office-accent); font-family: Montserrat, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.09em; line-height: 1.6; }
.psm-office .psm-office__eyebrow { margin-bottom: 14px; font-size: 11px; }
.psm-office .psm-office__title { margin: 0; color: #242029; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.15; letter-spacing: -0.035em; }
.psm-office__title span { color: var(--office-accent); }
.psm-office .psm-office__introduction { max-width: 46ch; margin: 0; color: #655b63; font-size: 14px; line-height: 1.75; }
.psm-office__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(220px, auto)); gap: 20px; }

.psm-office .psm-office__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
    align-items: center;
    min-width: 0;
    min-height: 220px;
    padding: 24px;
    border: 1px solid #e9e3e7;
    border-radius: 20px;
    background: #fff;
    color: #242029;
    box-sizing: border-box;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.psm-office__image { position: relative; grid-column: 2; grid-row: 1; display: grid; place-items: center; min-width: 0; }
.psm-office .psm-office__image img { display: block; width: 100%; max-width: 100%; height: 175px; object-fit: contain; }
.psm-office__copy { display: flex; flex-direction: column; align-items: flex-start; grid-column: 1; grid-row: 1; min-width: 0; }
.psm-office .psm-office__card h3 { margin: 10px 0; color: #242029; font-family: Montserrat, sans-serif !important; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.025em; overflow-wrap: break-word; }
.psm-office .psm-office__card p { margin: 0 0 18px; color: #6b6068; font-size: 12px; line-height: 1.7; }
.psm-office__action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: auto; color: var(--office-accent); font-size: 12px; font-weight: 600; line-height: 1.5; }
.psm-office svg { flex: 0 0 20px; }

.psm-office .psm-office__card--featured { display: flex; flex-direction: column; align-items: stretch; grid-column: 1; grid-row: 1 / span 2; border-color: #e3b7cf; padding: 24px 28px; box-shadow: 0 8px 22px rgba(91, 43, 70, 0.045); }
.psm-office__card--featured .psm-office__image { flex: 1; min-height: 220px; }
.psm-office .psm-office__card--featured .psm-office__image img { max-width: 330px; height: 240px; }
.psm-office .psm-office__card--featured h3 { font-size: 23px; }
.psm-office .psm-office__card--featured p { max-width: 44ch; font-size: 13px; }
.psm-office__card--featured .psm-office__action { padding: 10px 16px; border: 1px solid #d88cb6; border-radius: 12px; background: #fff5fa; }
.psm-office .psm-office__card:hover { border-color: #ce89af; box-shadow: 0 10px 24px rgba(91, 43, 70, 0.08); color: var(--office-accent); }
.psm-office .psm-office__card:focus-visible { outline: 3px solid var(--office-accent); outline-offset: 4px; }

@media (min-width: 768px) and (max-width: 1023px) {
    .psm-office__header { gap: 28px; }
    .psm-office .psm-office__card { padding: 18px; gap: 10px; }
    .psm-office .psm-office__card h3 { font-size: 17px; }
    .psm-office .psm-office__card--featured h3 { font-size: 22px; }
    .psm-office .psm-office__image img { height: 150px; }
}

@media (max-width: 767px) {
    .home .entry-content .psm-office { margin-bottom: 32px; padding: 0 20px 28px; }
    .psm-office__header { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
    .psm-office .psm-office__title { font-size: 32px; }
    .psm-office__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
    .psm-office .psm-office__card { min-height: 200px; padding: 20px 16px; gap: 10px; }
    .psm-office .psm-office__card h3 { font-size: 18px; }
    .psm-office .psm-office__label { font-size: 9px; letter-spacing: 0.07em; }
    .psm-office .psm-office__image img { height: 150px; }
    .psm-office .psm-office__card--featured { grid-column: auto; grid-row: auto; padding: 20px; }
    .psm-office .psm-office__card--featured .psm-office__image img { height: 230px; }
    .psm-office .psm-office__card--featured h3 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .psm-office .psm-office__card { transition: none; }
}
