.pressbox-search-template,
.pressbox-search-page {
    width: 100%;
}

.pressbox-search-page {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
    padding-top: clamp(28px, 5vw, 70px);
}

.pressbox-search-hero {
    display: grid;
    gap: 14px;
    max-width: 880px;
    margin: 0 auto clamp(42px, 6vw, 74px);
    text-align: center;
}

.pressbox-search-eyebrow {
    margin: 0;
    color: #1f6fc5;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pressbox-search-hero h1,
.pressbox-search-start h2,
.pressbox-search-empty h2 {
    margin: 0;
    color: #102234;
    letter-spacing: -0.045em;
}

.pressbox-search-hero h1 {
    font-size: clamp(2.35rem, 6vw, 5rem);
    line-height: 0.98;
}

.pressbox-search-hero > p:not(.pressbox-search-eyebrow) {
    max-width: 720px;
    margin: 0 auto;
    color: #536579;
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    line-height: 1.65;
}

.pressbox-search-form {
    display: grid;
    gap: 8px;
    width: min(100%, 760px);
    margin: 16px auto 0;
    text-align: left;
}

.pressbox-search-form > label {
    color: #34495d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pressbox-search-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    min-height: 58px;
    border: 1px solid #cfd9e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(11, 29, 45, 0.09);
}

.pressbox-search-form > div:focus-within {
    border-color: #1f6fc5;
    box-shadow: 0 0 0 4px rgba(31, 111, 197, 0.13), 0 14px 38px rgba(11, 29, 45, 0.09);
}

.pressbox-search-form input {
    min-width: 0;
    padding: 15px 18px;
    border: 0;
    outline: 0;
    color: #102234;
    background: transparent;
    font: inherit;
    font-size: 1rem;
}

.pressbox-search-form button {
    min-width: 110px;
    padding: 12px 20px;
    border: 0;
    color: #fff;
    background: #1f6fc5;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pressbox-search-form button:hover,
.pressbox-search-form button:focus-visible {
    background: #124d87;
}

.pressbox-search-summary {
    margin-bottom: 28px;
    padding: 15px 18px;
    border: 1px solid #d8e0e8;
    border-radius: 10px;
    color: #536579;
    background: #f7f9fb;
}

.pressbox-search-summary strong {
    color: #102234;
}

.pressbox-search-groups {
    display: grid;
    gap: clamp(52px, 7vw, 84px);
}

.pressbox-search-group__heading {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8e0e8;
}

.pressbox-search-group__heading h2 {
    margin: 0;
    color: #102234;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
}

.pressbox-search-group__heading > span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    color: #124d87;
    background: #eaf3fc;
    font-size: 0.78rem;
    font-weight: 800;
}

.pressbox-search-school-grid,
.pressbox-search-team-grid,
.pressbox-search-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pressbox-search-school,
.pressbox-search-team {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 94px;
    padding: 17px;
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    color: #102234;
    background: #fff;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pressbox-search-school:hover,
.pressbox-search-school:focus-visible,
.pressbox-search-team:hover,
.pressbox-search-team:focus-visible {
    border-color: #92bce7;
    box-shadow: 0 14px 34px rgba(11, 29, 45, 0.08);
    transform: translateY(-2px);
}

.pressbox-search-school img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.pressbox-search-school > span,
.pressbox-search-team {
    min-width: 0;
}

.pressbox-search-school strong,
.pressbox-search-team strong {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
}

.pressbox-search-school small,
.pressbox-search-team span {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #66788a;
    font-size: 0.8rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.pressbox-search-team {
    display: block;
}

.pressbox-search-event-list {
    display: grid;
    gap: 14px;
}

.pressbox-search-event {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    min-height: 150px;
    border: 1px solid #d8e0e8;
    border-radius: 14px;
    background: #fff;
}

.pressbox-search-media-grid .pressbox-search-event {
    grid-template-columns: 1fr;
}

.pressbox-search-event__image {
    display: grid;
    place-items: center;
    min-height: 150px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #0b1d2d, #1f6fc5);
    text-decoration: none;
}

.pressbox-search-media-grid .pressbox-search-event__image {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.pressbox-search-event__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pressbox-search-event__image span {
    padding: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.pressbox-search-event__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.pressbox-search-event__sport {
    color: #1f6fc5;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pressbox-search-event h3 {
    margin: 7px 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.pressbox-search-event h3 a {
    color: #102234;
    text-decoration: none;
}

.pressbox-search-event h3 a:hover,
.pressbox-search-event h3 a:focus-visible {
    color: #124d87;
}

.pressbox-search-event p {
    margin: 0 0 16px;
    color: #66788a;
    font-size: 0.86rem;
}

.pressbox-search-event__action {
    margin-top: auto;
    color: #124d87;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.pressbox-search-event__action::after {
    margin-left: 6px;
    content: "→";
}

.pressbox-search-start,
.pressbox-search-empty {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid #d8e0e8;
    border-radius: 18px;
    background: #f7f9fb;
    text-align: center;
}

.pressbox-search-start h2,
.pressbox-search-empty h2 {
    margin-top: 8px;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.pressbox-search-start__links,
.pressbox-search-empty__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.pressbox-search-start__links a,
.pressbox-search-empty__links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #b9c9d8;
    border-radius: 999px;
    color: #124d87;
    background: #fff;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 900px) {
    .pressbox-search-school-grid,
    .pressbox-search-team-grid,
    .pressbox-search-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pressbox-search-page {
        width: min(calc(100% - 28px), 1180px);
    }

    .pressbox-search-form > div {
        grid-template-columns: 1fr;
        overflow: visible;
        border: 0;
        box-shadow: none;
        gap: 8px;
    }

    .pressbox-search-form input,
    .pressbox-search-form button {
        min-height: 50px;
        border-radius: 10px;
    }

    .pressbox-search-form input {
        border: 1px solid #cfd9e3;
    }

    .pressbox-search-school-grid,
    .pressbox-search-team-grid,
    .pressbox-search-media-grid {
        grid-template-columns: 1fr;
    }

    .pressbox-search-event {
        grid-template-columns: 1fr;
    }

    .pressbox-search-event__image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pressbox-search-school,
    .pressbox-search-team {
        transition: none;
    }
}
