/* Doctorside Events — public stylesheet
 * 全クラスは .dse- プレフィックス、テーマや他プラグインと衝突しないよう徹底
 */

.dse-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

/* ===== ボタン共通 ===== */
.dse-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease;
}
.dse-button--primary {
    background: #2876b9;
    color: #fff;
    border-color: #2876b9;
}
.dse-button--primary:hover {
    background: #1e5d92;
}
.dse-button--ghost {
    background: transparent;
    color: #555;
    border-color: #ccc;
}
.dse-button--ghost:hover {
    background: #f6f6f6;
}

/* ===== Single event ===== */
.dse-single {
    color: #222;
    line-height: 1.7;
}
.dse-event__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}
.dse-event__icon img {
    display: block;
    border-radius: 50%;
}
.dse-event__breadcrumb {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.4rem;
}
.dse-event__breadcrumb a {
    color: #2876b9;
    text-decoration: none;
}
.dse-event__breadcrumb a:hover {
    text-decoration: underline;
}
.dse-event__title {
    font-size: 1.6rem;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}
.dse-event__organizer {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* 終了イベント表示 */
.dse-event__status-badge {
    display: inline-block;
    margin: 0.3rem 0 0.4rem;
    padding: 0.15em 0.7em;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.dse-event__status-badge--past {
    background: #f0f0f0;
    color: #888;
}
.dse-event__past-notice {
    margin: 1rem 0 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #fafafa;
    border-left: 4px solid #b0b0b0;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.6;
}
.dse-event__past-notice p {
    margin: 0;
}
.dse-event__past-notice strong {
    color: #333;
}
.dse-event__cta--past {
    margin: 1.5rem 0;
}

.dse-event__section-title {
    font-size: 1.15rem;
    margin: 1.6rem 0 0.7rem;
    padding-left: 0.6rem;
    border-left: 4px solid #2876b9;
}
.dse-event__subsection-title {
    font-size: 1rem;
    color: #444;
    margin: 1rem 0 0.4rem;
}

.dse-event__meta {
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 0.4rem 1rem;
    margin: 0;
}
.dse-event__meta dt {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}
.dse-event__meta dd {
    margin: 0;
}
.dse-event__address {
    font-size: 0.85rem;
    color: #666;
}
.dse-event__official-link {
    color: #2876b9;
    text-decoration: none;
    word-break: break-all;
}
.dse-event__official-link:hover {
    text-decoration: underline;
}

.dse-event__description-official {
    background: #fafafa;
    border-left: 3px solid #ccc;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #444;
    margin-top: 1rem;
}

.dse-event__summary-body {
    font-size: 1rem;
}
.dse-event__summary-body p {
    margin: 0.6em 0;
}

.dse-event__technique-list,
.dse-event__speaker-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dse-event__technique-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.dse-event__technique-list a {
    display: inline-block;
    padding: 0.2em 0.7em;
    background: #f0f4f8;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #2876b9;
    text-decoration: none;
}
.dse-event__technique-list a:hover {
    background: #dde8f3;
}

.dse-event__speaker-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
.dse-event__speaker-name {
    font-weight: 600;
    margin-right: 0.5em;
}
.dse-event__speaker-aff {
    color: #666;
    font-size: 0.9rem;
}
.dse-event__speaker-url {
    margin-left: 0.5em;
    color: #2876b9;
    font-size: 0.85rem;
    text-decoration: none;
}

.dse-event__cta {
    margin: 2rem 0;
    text-align: center;
}
.dse-event__cta .dse-button {
    padding: 0.9em 2.5em;
    font-size: 1.05rem;
}

.dse-event__footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
    font-size: 0.85rem;
    color: #888;
}
.dse-event__verified {
    margin: 0 0 0.3rem;
}
.dse-event__takedown-link a {
    color: #888;
    text-decoration: underline;
}

/* ===== Archive ===== */
.dse-archive__title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}
.dse-archive__intro {
    color: #555;
    margin: 0 0 1.5rem;
}
.dse-archive__section-title {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.8rem;
    padding-left: 0.6rem;
    border-left: 3px solid #2876b9;
}
.dse-archive__filter {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: #f8f9fb;
    border-radius: 6px;
}
.dse-archive__list {
    margin-top: 1rem;
}
.dse-archive__empty {
    padding: 2rem;
    text-align: center;
    color: #888;
}
.dse-archive__past-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}
.dse-archive__past-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.dse-archive__past-list a {
    color: #2876b9;
    text-decoration: none;
}
.dse-archive__past-date {
    color: #888;
    font-size: 0.85rem;
    margin-left: 0.5em;
}

/* ===== Card grid ===== */
.dse-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.dse-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    overflow: hidden;
}
.dse-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.dse-card__link {
    display: flex;
    gap: 0.8rem;
    padding: 0.9rem;
    color: inherit;
    text-decoration: none;
}
.dse-card--past {
    opacity: 0.7;
}
.dse-card--past:hover {
    opacity: 0.9;
}
.dse-card__badge {
    display: inline-block;
    padding: 0.1em 0.6em;
    margin-bottom: 0.35rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}
.dse-card__badge--past {
    background: #e0e0e0;
    color: #666;
}
.dse-card__icon img {
    display: block;
}
.dse-card__title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
    line-height: 1.4;
    color: #222;
}
.dse-card__meta {
    font-size: 0.82rem;
    color: #666;
    margin: 0 0 0.3rem;
}
.dse-card__divider {
    margin: 0 0.3em;
    color: #ccc;
}
.dse-card__organizer {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 0.3rem;
}
.dse-card__summary {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

/* ===== Filter form ===== */
.dse-filter {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.dse-filter__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: flex-end;
}
.dse-filter__field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 160px;
}
.dse-filter__field--keyword {
    flex: 2 1 320px;
}
.dse-filter__label {
    font-size: 0.8rem;
    color: #555;
    font-weight: 600;
}
.dse-filter select,
.dse-filter input[type="text"] {
    padding: 0.45em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
}

/* ===== Calendar ===== */
.dse-calendar {
    width: 100%;
    margin: 1rem 0;
}
.dse-calendar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.dse-calendar__title {
    font-size: 1.15rem;
    margin: 0;
}
.dse-calendar__nav {
    color: #2876b9;
    text-decoration: none;
    font-size: 0.9rem;
}
.dse-calendar__grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.dse-calendar__grid th {
    background: #f0f4f8;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
    border: 1px solid #e5e5e5;
}
.dse-calendar__cell {
    border: 1px solid #e5e5e5;
    padding: 0.4rem;
    vertical-align: top;
    height: 5em;
    background: #fff;
    font-size: 0.85rem;
}
.dse-calendar__cell--empty {
    background: #fafafa;
}
.dse-calendar__cell--has-events {
    background: #fffaf0;
}
.dse-calendar__date {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.2rem;
}
.dse-calendar__events {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
}
.dse-calendar__events li {
    margin: 0.1rem 0;
}
.dse-calendar__events a {
    color: #2876b9;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Pagination ===== */
.dse-pagination {
    margin: 1.5rem 0;
    text-align: center;
}
.dse-pagination .page-numbers {
    display: inline-block;
    margin: 0 0.15rem;
    padding: 0.4em 0.7em;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #2876b9;
    text-decoration: none;
}
.dse-pagination .page-numbers.current {
    background: #2876b9;
    color: #fff;
    border-color: #2876b9;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .dse-container { padding: 1rem 0.7rem; }
    .dse-event__header { flex-direction: column; }
    .dse-event__title { font-size: 1.35rem; }
    .dse-event__meta { grid-template-columns: 5em 1fr; gap: 0.3rem 0.7rem; }
    .dse-calendar__cell { height: 3.5em; padding: 0.2rem; }
    .dse-calendar__events { display: none; }
    .dse-calendar__cell--has-events::after {
        content: '●';
        color: #d35080;
        font-size: 0.6rem;
        display: block;
    }
}
