.workshop-page {
    margin: 0;
    background: #fdfdfd;
    color: #192723;
    font-family: "Segoe UI", Arial, sans-serif;
}

.workshop-content {
    --workshop-green: #177a49;
    --workshop-line: #e1ebe4;
    --workshop-tint: #edf5ef;
    --workshop-muted: #536a60;
    width: min(92%, 1600px);
    margin: 32px auto 48px;
}

.workshop-content * { box-sizing: border-box; }
.workshop-content a { color: inherit; text-decoration: none; }
.workshop-content a:focus-visible { outline: 2px solid var(--workshop-green); outline-offset: 3px; }

.workshop-content h1 {
    margin: 0 0 22px;
    font-size: clamp(32px, 3.1vw, 50px);
    line-height: 1.12;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.workshop-content > section > h1 {
    margin: 0 0 17px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
    letter-spacing: -.015em;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.workshop-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--workshop-line);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.workshop-card a:hover {
    border-color: #9abca9;
    box-shadow: 0 8px 24px rgb(25 70 42 / 8%);
}

.workshop-card-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--workshop-tint);
}

.workshop-card-label {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    padding: 12px clamp(14px, 1.5vw, 22px);
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.workshop-card a:hover .workshop-card-label,
.workshop-card-arrow { color: var(--workshop-green); }

.workshop-empty { color: var(--workshop-muted); }

.workshop-pagination { margin-top: 28px; }

.workshop-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workshop-pagination :is(a, span) {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: 10px;
    border: 1px solid var(--workshop-line);
    border-radius: 8px;
    background: #fff;
    color: var(--workshop-green);
    font-size: 16px;
}

.workshop-pagination a[href]:hover { border-color: var(--workshop-green); background: var(--workshop-tint); }
.workshop-pagination [aria-disabled="true"] { color: #788782; background: #f7f9f7; }

.workshop-pagination .active > a,
.workshop-pagination [aria-current="page"] {
    border-color: var(--workshop-green);
    background: var(--workshop-green);
    color: #fff;
    font-weight: 650;
}

.workshop-detail { max-width: 1080px; }
.workshop-detail h1 { font-size: 30px; }

.workshop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--workshop-muted);
    font-size: 14px;
}

.workshop-breadcrumb a:hover { color: var(--workshop-green); text-decoration: underline; }

.workshop-photo-frame {
    padding: clamp(10px, 1.5vw, 22px);
    border: 1px solid var(--workshop-line);
    border-radius: 15px;
    background: #f3f6f3;
}

.workshop-photo-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(72vh, 790px);
    margin-inline: auto;
    border-radius: 10px;
}

.workshop-article {
    margin-top: 24px;
    color: #293733;
    line-height: 1.65;
    overflow-wrap: anywhere;
    overflow-x: auto;
}

.workshop-article img { max-width: 100%; height: auto; }
.workshop-article a { color: var(--workshop-green); text-decoration: underline; }

.workshop-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.workshop-neighbors:not(:has(a)) { display: none; }

.workshop-content .workshop-neighbor {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 14px clamp(14px, 2vw, 23px);
    border: 1px solid var(--workshop-line);
    border-radius: 10px;
    background: #fff;
    overflow-wrap: anywhere;
}

.workshop-content .workshop-neighbor:hover { border-color: #9abca9; background: var(--workshop-tint); }
.workshop-neighbor-next { grid-column: 2; text-align: right; }
.workshop-neighbor-label { color: var(--workshop-green); font-size: 14px; }

@media (max-width: 980px) {
    .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .workshop-content { margin-top: 24px; }
    .workshop-grid, .workshop-neighbors { grid-template-columns: minmax(0, 1fr); }
    .workshop-neighbor-next { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .workshop-card a { transition: none; }
}
