@charset "UTF-8";

/* ========================================================================== 
   Guide Page Specific Styles
   ========================================================================== */

.subspace-guide-pattern,
.subspace-guide-pattern * {
    box-sizing: border-box;
}

.subspace-guide-pattern :where(.wp-block-group) {
    margin-block-start: 0;
    margin-block-end: 0;
}

.guide-page #usage {
    padding-top: 76px;
}

.guide-section-intro {
    max-width: 780px;
    margin: 0 0 48px;
    color: var(--text-light);
    line-height: 1.9;
}

.guide-subheading {
    margin: 0 0 22px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.guide-subheading--shared {
    margin-top: 56px;
}

.guide-subheading--facilities {
    margin-top: 48px;
}

/* Questions and answers */
.guide-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    max-width: 1040px;
    border-top: 1px solid var(--brand-border);
}

.guide-answer-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-content: start;
    gap: 8px 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--brand-border);
}

.guide-answer-icon {
    grid-row: 1 / span 2;
    margin: 0;
    color: var(--brand-accent);
}

.guide-answer-icon .material-symbols-outlined {
    font-size: 1.7rem;
}

.guide-answer-card h3 {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.6;
}

.guide-answer-card > p:last-child {
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
}

.guide-answer-card a,
.guide-detail-link a {
    color: var(--brand-accent);
    font-weight: 700;
    text-underline-offset: 0.18em;
}

.guide-detail-link {
    max-width: 1040px;
    margin: 32px 0 0;
    padding: 20px 24px;
    border: 1px solid var(--brand-border);
    background: var(--brand-section);
    color: var(--text-light);
    line-height: 1.8;
}

/* Room equipment */
.guide-room-equipment {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1040px;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

.guide-equipment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 18px 20px;
}

.guide-equipment-item + .guide-equipment-item {
    border-left: 1px solid var(--brand-border);
}

.guide-equipment-icon {
    margin: 0;
    color: var(--brand-accent);
}

.guide-equipment-icon .material-symbols-outlined {
    font-size: 1.65rem;
}

.guide-equipment-name {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
}

.guide-room-note {
    max-width: 1040px;
    margin: 18px 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Floor guide */
.guide-floor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin-top: 24px !important;
}

.guide-floor-card {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--brand-border);
    background: var(--brand-base);
}

.guide-floor-card img {
    display: block;
    width: 100%;
    height: auto;
}

.guide-floor-card figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 18px 0 0;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.7;
}

.guide-floor-card figcaption strong {
    color: var(--brand-text);
    font-size: 1rem;
}

.guide-floor-card figcaption small {
    flex-basis: 100%;
    font-size: 0.78rem;
}

/* Shared facilities */
.guide-shared-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1040px;
}

.guide-shared-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    min-height: 156px;
    padding: 26px;
    border: 1px solid var(--brand-border);
    background: var(--brand-base);
}

.guide-shared-card--photo {
    grid-template-columns: 44% minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
}

.guide-shared-photo {
    min-height: 292px;
    margin: 0;
}

.guide-shared-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-shared-card--photo .guide-shared-copy {
    align-self: center;
    padding: 28px 26px;
}

.guide-shared-card--parking {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.95fr);
}

.guide-shared-photo-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 336px;
}

.guide-shared-photo-pair .guide-shared-photo {
    min-width: 0;
    min-height: 336px;
}

.guide-shared-icon {
    margin: 0;
    color: var(--brand-accent);
}

.guide-shared-icon .material-symbols-outlined {
    font-size: 1.75rem;
}

.guide-location {
    margin: 0 0 7px;
    color: var(--brand-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.guide-shared-card h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.guide-shared-card .guide-shared-copy > p:last-child {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Safety */
.guide-safety-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1040px;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

.guide-safety-grid + .guide-subheading {
    margin-top: 48px;
}

.guide-safety-card {
    padding: 28px 28px 30px;
}

.guide-safety-card + .guide-safety-card {
    border-left: 1px solid var(--brand-border);
}

.guide-safety-icon {
    margin: 0 0 16px;
    color: var(--brand-accent);
}

.guide-safety-icon .material-symbols-outlined {
    font-size: 1.75rem;
}

.guide-safety-card h4 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.6;
}

.guide-safety-card > p:last-child {
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* Related information */
.guide-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 780px;
    border-top: 1px solid var(--brand-border);
}

.guide-related-group {
    min-width: 0;
    padding: 30px 0 0;
}

.guide-related-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.guide-related-label .material-symbols-outlined {
    color: var(--brand-accent);
    font-size: 1.45rem;
}

.guide-related-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--brand-border);
    list-style: none;
}

.guide-related-list li {
    border-bottom: 1px solid var(--brand-border);
}

.guide-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 12px 4px;
    color: var(--brand-text);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-related-list a > span:last-child {
    color: var(--brand-accent);
    transition: transform 0.2s ease;
}

.guide-related-list a:hover,
.guide-related-list a:focus-visible {
    color: var(--brand-accent);
}

.guide-related-list a:hover > span:last-child,
.guide-related-list a:focus-visible > span:last-child {
    transform: translateX(4px);
}

.guide-answer-card a:focus-visible,
.guide-detail-link a:focus-visible,
.guide-related-list a:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .guide-room-equipment {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-equipment-item:nth-child(3) {
        border-left: 0;
    }

    .guide-equipment-item:nth-child(n + 3) {
        border-top: 1px solid var(--brand-border);
    }

    .guide-shared-grid,
    .guide-floor-grid,
    .guide-safety-grid {
        grid-template-columns: 1fr;
    }

    .guide-shared-card--photo {
        grid-row: auto;
    }

    .guide-shared-card--parking {
        grid-column: auto;
        grid-template-columns: 58% minmax(0, 1fr);
    }

    .guide-safety-card + .guide-safety-card {
        border-top: 1px solid var(--brand-border);
        border-left: 0;
    }

    .guide-related-group {
        padding: 28px 0 0;
    }

    .guide-related-label {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .guide-page #usage {
        padding-top: 56px;
    }

    .guide-page .page-section-nav ul {
        flex-wrap: nowrap;
        gap: 14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .guide-page .page-section-nav a {
        font-size: 0.82rem;
    }

    .guide-section-intro {
        margin-bottom: 36px;
    }

    .guide-answer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .guide-answer-card {
        gap: 7px 14px;
        padding: 24px 0;
    }

    .guide-detail-link {
        padding: 18px 20px;
    }

    .guide-subheading--shared {
        margin-top: 44px;
    }

    .guide-safety-grid + .guide-subheading {
        margin-top: 40px;
    }

    .guide-subheading--facilities {
        margin-top: 40px;
    }

    .guide-floor-card {
        padding: 20px;
    }

    .guide-shared-card,
    .guide-shared-card--photo {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 0;
        padding: 24px 20px;
    }

    .guide-shared-card--photo > .guide-shared-photo {
        grid-column: 1 / -1;
        min-height: 210px;
        margin: -24px -20px 4px;
    }

    .guide-shared-photo-pair {
        grid-column: 1 / -1;
        min-height: 210px;
        margin: -24px -20px 4px;
    }

    .guide-shared-photo-pair .guide-shared-photo {
        min-height: 210px;
    }

    .guide-shared-card--photo .guide-shared-copy {
        grid-column: 1 / -1;
        padding: 0;
    }

    .guide-safety-card {
        padding: 24px 0;
    }
}

@media (max-width: 420px) {
    .guide-page .page-section-nav ul {
        gap: 10px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .guide-page .page-section-nav a {
        font-size: 0.76rem;
    }

    .guide-room-equipment {
        grid-template-columns: 1fr;
    }

    .guide-equipment-item + .guide-equipment-item,
    .guide-equipment-item:nth-child(3) {
        border-top: 1px solid var(--brand-border);
        border-left: 0;
    }
}
