@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700&family=Paytone+One&display=swap");

/* Classic Early 2000s Web Design */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* 段落はLoraフォントを使用 - hangat dan literary */
p {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.7;
}

body {
    font-size: 15px;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    background-color: #ffffff;
    background-image:
        linear-gradient(to right, #e6f3ff 1px, transparent 1px),
        linear-gradient(to bottom, #e6f3ff 1px, transparent 1px);
    background-size: 6px 6px;
    margin: 0;
    padding: 10px;
    color: #000000;
}

.classic-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 2px solid #000080;
}

.classic-header {
    background-color: #ffffff;
    border-bottom: 1px solid #cccccc;
    padding: 15px;
    text-align: center;
}

.classic-title {
    font-size: 27px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #000080;
    margin: 0;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.02em;
}

.classic-subtitle {
    font-size: 14px;
    color: #666666;
    margin: 5px 0 0 0;
    font-family:
        "Nunito Sans",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}

.classic-layout {
    display: flex;
    width: 100%;
    align-items: stretch;
    /* Stretch sidebar and content to same height */
}

.classic-sidebar {
    flex: 0 0 200px;
    /* Fixed width, no grow/shrink */
    width: 200px;
    background-color: #f8f8f8;
    border-right: 1px solid #cccccc;
    padding: 10px;
    box-sizing: border-box;
    /* Ensure padding includes width */
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 400;
    font-size: 13px;
}

.classic-content {
    flex: 1;
    /* Take remaining space */
    min-width: 0;
    /* Prevent overflow issues */
    padding: 15px;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* テキストコンテンツはLoraフォントを使用 */
.classic-content p,
.classic-content div:not([class*="classic-"]),
.classic-no-events,
.classic-footer {
    font-family: "Lora", Georgia, "Times New Roman", serif;
}

.classic-nav {
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    background-color: #ffffff;
}

.classic-nav-title {
    font-size: 13px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #ffffff;
    background-color: #000080;
    margin: 0;
    padding: 3px 5px;
    letter-spacing: 0.2px;
}

.classic-nav-content {
    padding: 5px;
}

.classic-nav-link {
    display: block;
    font-size: 12px;
    font-weight: 400;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #0000ff;
    text-decoration: underline;
    margin: 3px 0;
    /* increase vertical spacing between links for easier tapping */
    padding: 4px 2px;
    /* increase tap area to meet 48px touch target */
    min-height: 24px;
    /* ensure minimum target height to satisfy common guidelines */
    line-height: 1;
    /* improve readability and vertical rhythm */
}

.classic-nav-link:hover {
    color: #ff0000;
}

/* Keyboard accessibility: clear focus indicator on nav links */
.classic-nav-link:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
    background-color: #f0f7ff;
    /* subtle highlight to indicate focus */
}

.best-marathons-menu {
    border: 1px solid #cccccc;
    background-color: #ffffff;
}

.best-marathons-menu .classic-nav-title {
    background-color: #000080;
    letter-spacing: 0.3px;
    text-transform: none;
    padding: 3px 5px;
}

.best-marathons-menu .classic-nav-content {
    padding: 5px;
    background-color: #ffffff;
}

.best-marathons-menu .classic-nav-link {
    display: block;
    margin: 4px 0;
    padding: 7px 10px;
    border: 1px solid #b8c4da;
    background-color: #f4f7ff;
    color: #001f8f;
    text-decoration: none;
    min-height: 30px;
    line-height: 1.15;
    box-sizing: border-box;
}

.best-marathons-menu .classic-nav-link:hover {
    color: #000000;
    background-color: #dce8ff;
    border-color: #7f96c8;
    text-decoration: none;
}

.best-marathons-menu .classic-nav-link.active {
    color: #000080;
    background-color: #cddfff;
    border-color: #4c66a3;
    text-decoration: none;
    font-weight: bold;
}

.classic-sponsor {
    text-align: center;
    margin: 15px 0;
    border: 1px solid #cccccc;
    padding: 8px;
    background-color: #ffffff;
}

.classic-sponsor-title {
    font-size: 13px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #000080;
    margin-bottom: 5px;
}

.classic-sponsor img {
    max-width: 120px;
    height: auto;
    border: 1px solid #cccccc;
}

.classic-sponsor-ad-placeholder {
    width: 120px;
    height: 80px;
    border: 2px dashed #cccccc;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999999;
    text-transform: uppercase;
    margin: 0 auto;
}

.classic-featured-event {
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    text-align: center;
}

.classic-featured-event-name {
    font-size: 13px;
    font-weight: 600;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    margin-bottom: 5px;
    line-height: 1.2;
}

.classic-featured-event-link {
    color: #000080;
    text-decoration: none;
    display: block;
}

.classic-featured-event-link:hover {
    text-decoration: underline;
}

.classic-featured-event-date {
    font-size: 12px;
    color: #666666;
    font-weight: normal;
}

.classic-featured-event-placeholder {
    padding: 20px 8px;
    font-size: 13px;
    color: #999999;
    text-align: center;
    font-style: italic;
}

/* Event List Item Styling */
.classic-event-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 4px;
    border-bottom: 1px dotted #eeeeee;
    margin: 3px 0;
}

.classic-event-list-item:last-child {
    border-bottom: none;
}

.classic-event-list-icon {
    font-size: 17px;
    flex-shrink: 0;
    padding-top: 2px;
}

.classic-event-list-info {
    flex: 1;
    min-width: 0;
}

.classic-event-list-link {
    color: #0000ff;
    text-decoration: underline;
    font-size: 13px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    display: block;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.classic-event-list-link:hover {
    color: #ff0000;
}

.classic-event-list-date {
    font-size: 12px;
    color: #666666;
    margin-top: 2px;
}

.classic-event-list-placeholder {
    padding: 10px 5px;
    font-size: 13px;
    color: #999999;
    text-align: center;
    font-style: italic;
}

.classic-content-title {
    font-size: 21px;
    font-weight: 600;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    color: #000080;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #000080;
    padding-bottom: 3px;
}

.classic-content-description {
    text-align: center;
    font-style: italic;
    font-size: 16px;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    color: #333333;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.classic-filter {
    background-color: #f0f0f0;
    border: 1px solid #cccccc;
    padding: 8px;
    margin-bottom: 15px;
}

.classic-filter-title {
    font-size: 14px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #000080;
    margin-bottom: 5px;
}

.classic-filter select {
    font-size: 14px;
    border: 1px solid #999999;
    background-color: #ffffff;
    margin: 2px 5px 2px 0;
}

.classic-search {
    background-color: #f0f0f0;
    border: 1px solid #cccccc;
    padding: 8px;
    margin-bottom: 15px;
}

.classic-search-title {
    font-size: 14px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #000080;
    margin-bottom: 5px;
}

.classic-search-form {
    display: flex;
    gap: 5px;
    align-items: center;
}

.classic-search-input {
    font-size: 14px;
    border: 1px solid #999999;
    background-color: #ffffff;
    padding: 3px 5px;
    flex: 1;
    min-width: 0;
    /* Allow shrinking to fit container */
    font-family: "Sora", sans-serif;
}

.classic-search-input:focus {
    border-color: #000080;
    outline: none;
    background-color: #ffffcc;
}

.classic-search-button {
    font-size: 14px;
    border: 1px solid #999999;
    background-color: #e0e0e0;
    color: #333;
    padding: 3px 6px;
    cursor: pointer;
    font-family: "Sora", sans-serif;
    font-weight: bold;
    min-width: auto;
    width: 28px;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classic-search-button i,
.classic-search-button .classic-search-icon {
    color: #333;
    line-height: 1;
}

.classic-search-button i {
    font-size: 17px;
}

.classic-search-button .classic-search-icon {
    font-size: 13px;
}

.classic-search-button .classic-search-icon-svg {
    width: 13px;
    height: 13px;
    color: #333;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.classic-search-button .classic-search-icon-svg * {
    stroke: #333;
}

.classic-search-button:hover {
    background-color: #d0d0d0;
    border-color: #000080;
}

.classic-search-button:active {
    background-color: #c0c0c0;
    border-color: #777777;
    box-shadow: inset 1px 1px 0 #888888;
    color: #333;
}

.classic-search-button:focus,
.classic-search-button:focus-visible {
    color: #333;
}

.classic-event-item {
    border-bottom: 1px dotted #cccccc;
    padding: 10px 0;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Wrap date image/box and calendar actions vertically */
.classic-date-column {
    display: inline-flex;
    /* shrink-to-fit the date image width */
    flex-direction: column;
    align-items: stretch;
    /* allow buttons to fill column width */
}

/* Exact width match with date image/box */
.classic-date-column.image {
    width: 82px;
}

.classic-date-column.box {
    width: 70px;
}

/* Force buttons to stay within column width and wrap text if needed */
.classic-calendar-actions .classic-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 4px 1px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    border-width: 1px;
    margin: 0;
}

.classic-event-date-box {
    flex-shrink: 0;
    width: 82px;
    height: 82px;
    background-color: #e8f5e8;
    border: 2px solid #90ee90;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 6px 4px;
    text-align: center;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    background-image: linear-gradient(135deg, #e8f5e8 0%, #d4f4d4 100%);
}

/* Container for generated date images (matches HTML datebox appearance) */
.classic-event-date-image-box {
    flex-shrink: 0;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.classic-event-date-image-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Calendar action buttons below date image/box */
.classic-calendar-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* slightly tighter vertical spacing */
    margin: 8px 0 16px 0;
}

.classic-event-date-month {
    font-size: 12px;
    font-weight: bold;
    color: #2e7d32;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 3px;
    border-bottom: 1px solid #90ee90;
    padding-bottom: 4px;
    width: 100%;
}

.classic-event-date-box .classic-event-date-day {
    font-size: 24px;
    font-weight: bold;
    color: #1b5e20;
    line-height: 1;
    margin-bottom: 2px;
    white-space: nowrap;
}

.classic-event-date-year {
    font-size: 10px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.15;
    letter-spacing: 0.5px;
    border-top: 1px solid #90ee90;
    padding-top: 5px;
    width: 100%;
}

.classic-event-content {
    flex: 1;
    min-width: 0;
    min-height: 82px;
}

.classic-event-name {
    font-size: 17px;
    font-weight: 600;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    color: #0000ff;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #9ca3af;
}

.classic-event-name h1 {
    font-size: 23px;
    margin: 0;
    font-weight: 600;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    color: inherit;
}

.classic-event-name:hover {
    color: #ff0000;
}

.classic-event-location {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 3px;
    line-height: 1.2;
}

.classic-event-category {
    font-size: 12px;
    color: #000080;
    font-weight: bold;
    margin-bottom: 2px;
    line-height: 1.2;
}

.classic-event-distances {
    font-size: 12px;
    color: #008000;
    font-weight: bold;
    line-height: 1.2;
}

.classic-event-content .classic-event-date-day {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 3px;
}

/* Event Logo Styles */
.classic-event-logo-container {
    margin: 15px 0;
    padding: 15px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.classic-event-logo-img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* SEO-friendly figcaption for logo */
.classic-event-logo-caption {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    margin: 0;
    padding: 0;
}

/* ページネーション */
.classic-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #000;
}

.classic-pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.classic-pagination-btn {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    cursor: pointer;
    min-width: 36px;
    text-align: center;
}

.classic-pagination-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Accessible Breadcrumbs — Nunito Sans Regular 12px, tertiary color */
.breadcrumbs {
    margin: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    /* gray-200 */
    background-color: #f9fafb;
    /* gray-50 */
    font-family:
        "Nunito Sans",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 400;
    font-size: 12px;
}

.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.3;
    font-size: 12px;
}

.breadcrumbs a {
    color: #6b7280;
    /* tertiary / gray-500: subtle, for orientation only */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
    color: #374151;
    /* gray-700 */
}

.breadcrumbs-current {
    color: #6b7280;
    /* tertiary / gray-500 */
    font-weight: 400;
}

.breadcrumbs-text-muted {
    color: #9ca3af;
    /* gray-400: very subtle */
}

.breadcrumbs-separator {
    margin: 0 4px;
    color: #9ca3af;
    /* gray-400 */
    font-size: 11px;
}

/* Breadcrumb list item flex layout */
.breadcrumbs-list > li {
    display: flex;
    align-items: center;
}

/* Accessible muted text utility */
.text-muted-accessible {
    color: #4b5563;
    /* gray-600 */
}

.classic-pagination-btn.classic-pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

.classic-pagination-btn.classic-pagination-disabled:hover {
    background-color: #f0f0f0;
    color: #000;
}

.classic-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.classic-pagination-number {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    min-width: 36px;
    text-align: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.classic-pagination-number:hover {
    background-color: #000;
    color: #fff;
}

.classic-pagination-number.classic-pagination-current {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}

.classic-pagination-ellipsis {
    padding: 4px 4px;
    font-size: 13px;
    color: #666;
}

.classic-pagination-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* フッター */
.classic-footer {
    border-top: 2px solid #000;
    padding: 10px;
    text-align: center;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-weight: 400;
    font-size: 12px;
    margin-top: 0;
}

/* インライン要素の追加スタイル */
.classic-title-link {
    color: transparent;
    text-decoration: none;
    display: inline-block;
    position: relative;
    isolation: isolate;
    padding: 0.03em 0.08em 0.14em;
    font-family: "Paytone One", "Chakra Petch", "Sora", system-ui, sans-serif;
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 0.95;
    transform: skewX(-12deg);
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.22) 0 2px,
            rgba(255, 255, 255, 0) 2px 6px
        ),
        repeating-linear-gradient(-35deg, #ffffff 0 6px, #ececec 6px 12px);
    background-size:
        100% 100%,
        100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px #000080;
    text-shadow:
        1px 0 0 #ffffff,
        -1px 0 0 #ffffff,
        0 1px 0 #ffffff,
        0 -1px 0 #ffffff,
        2px 0 0 #0000cc,
        -2px 0 0 #0000cc,
        0 2px 0 #0000cc,
        0 -2px 0 #0000cc,
        3px 3px 0 #2e7d32,
        4px 4px 0 #2e7d32,
        5px 5px 0 #2e7d32,
        6px 6px 0 #2e7d32,
        7px 7px 0 #2e7d32;
    transition:
        transform 0.25s ease,
        text-shadow 0.25s ease;
}

.classic-title-link::before {
    content: none;
}

.classic-title-link::after {
    content: none;
}

.classic-title-link:hover {
    transform: skewX(-12deg) translateY(-1px);
    text-shadow:
        1px 0 0 #ffffff,
        -1px 0 0 #ffffff,
        0 1px 0 #ffffff,
        0 -1px 0 #ffffff,
        2px 0 0 #0000cc,
        -2px 0 0 #0000cc,
        0 2px 0 #0000cc,
        0 -2px 0 #0000cc,
        4px 4px 0 #1b5e20,
        5px 5px 0 #1b5e20,
        6px 6px 0 #1b5e20,
        7px 7px 0 #1b5e20,
        8px 8px 0 #1b5e20;
}

.classic-event-name-link {
    color: #0000ff;
    text-decoration: none;
}

.classic-sponsor-image {
    width: 80px;
    height: 80px;
}

.classic-no-events {
    text-align: center;
    padding: 20px;
    color: #666666;
    font-style: italic;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .classic-layout {
        display: flex;
        flex-direction: column;
    }

    .classic-sidebar {
        order: 2;
        /* サイドバーを下に表示 */
        width: 100%;
        flex: none;
        /* Reset flex */
        border-right: none;
        border-top: 1px solid #cccccc;
        border-bottom: none;
        padding: 10px;
    }

    .classic-content {
        order: 1;
        /* コンテンツを上に表示 */
        padding: 10px;
        width: 100%;
    }

    .classic-container {
        max-width: 100%;
        margin: 0;
    }

    .classic-event-item {
        gap: 10px;
    }

    .classic-event-date-box {
        width: 82px;
        height: 82px;
        border-radius: 3px;
    }

    /* Tablet: keep image at 80x80 as requested */
    .classic-event-date-image-box {
        width: 80px;
        height: 80px;
    }

    .classic-event-date-month {
        font-size: 12px;
    }

    .classic-event-date-box .classic-event-date-day {
        font-size: 19px;
    }

    .classic-event-date-year {
        font-size: 11px;
    }

    .classic-sponsor {
        margin-bottom: 10px;
    }

    .classic-sponsor-title {
        font-size: 12px;
    }

    .classic-sponsor-image {
        width: 80px;
        height: 40px;
        max-width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .classic-event-name,
    .classic-event-location,
    .classic-event-category,
    .classic-event-distances,
    .classic-event-content .classic-event-date-day {
        overflow-wrap: break-word;
    }

    .classic-event-name h1 {
        font-size: 19px;
    }

    /* Mobile responsive logo styles */
    .classic-event-logo-container {
        margin: 10px 0;
        padding: 10px;
    }

    .classic-event-logo-img {
        max-height: 200px;
    }

    .classic-event-logo-caption {
        font-size: 12px;
    }

    .classic-footer {
        font-size: 12px;
        padding: 8px;
        margin: 0;
    }

    /* モバイル用レスポンシブページネーション */
    .classic-pagination {
        margin-top: 20px;
        padding-top: 15px;
    }

    .classic-pagination-controls {
        gap: 5px;
    }

    .classic-pagination-btn {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 28px;
        text-align: center;
    }

    .classic-pagination-numbers {
        justify-content: center;
        gap: 2px;
    }

    .classic-pagination-number {
        padding: 4px 6px;
        font-size: 12px;
        min-width: 28px;
    }

    .classic-pagination-info {
        font-size: 12px;
        margin-top: 8px;
        padding: 0 5px;
        line-height: 1.3;
    }

    /* Button mobile responsive */
    .classic-btn {
        padding: 6px 12px;
        font-size: 14px;
        min-width: 100px;
        margin: 2px 1px;
    }

    .classic-event-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .classic-event-actions .classic-btn {
        width: 100%;
        text-align: center;
    }
}

/* クラシックボタンスタイル */
.classic-btn {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px 2px;
    border: 2px solid;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    font-family: "Sora", sans-serif;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
    border-radius: 0;
    text-align: center;
    min-width: 120px;
}

.classic-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.classic-btn:active {
    transform: translateY(0);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.classic-btn-sm {
    padding: 5px 10px;
    font-size: 13px;
    min-width: auto;
}

/* プライマリボタン - 青（登録などのメインアクション用） */
.classic-btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

.classic-btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    color: #ffffff;
}

/* セカンダリボタン - 緑（公式サイトなどの成功アクション用） */
.classic-btn-secondary {
    background-color: #1b5e20;
    /* darker green for better contrast */
    border-color: #1b5e20;
    color: #ffffff;
}

.classic-btn-secondary:hover {
    background-color: #154c17;
    border-color: #154c17;
    color: #ffffff;
}

/* インフォボタン - 紫（Instagramなどのソーシャルメディア用） */
.classic-btn-info {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #ffffff;
}

.classic-btn-info:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
    color: #ffffff;
}

/* 警告ボタン - オレンジ（外部リンク用） */
.classic-btn-warning {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #ffffff;
}

.classic-btn-warning:hover {
    background-color: #e8690b;
    border-color: #e8690b;
    color: #ffffff;
}

/* 危険ボタン - 赤（重要なアクション用） */
.classic-btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.classic-btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #ffffff;
}

/* イベントアクションコンテナ */
.classic-event-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dotted #cccccc;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.classic-accreditation-section {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dotted #cccccc;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.classic-accreditation-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.classic-accreditation-item {
    display: block;
    padding: 2px 8px;
    border: 1px solid #42546a;
    border-top-color: #7d95b0;
    border-left-color: #7d95b0;
    background: linear-gradient(180deg, #f4f7fb 0%, #dbe6f2 100%);
    color: #203447;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    font-family: "Inconsolata", monospace;
    text-shadow: 0 1px 0 #ffffff;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 1px 0 rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.classic-accreditation-item.is-wmm {
    border-color: #8f6a0a;
    border-top-color: #cf9d1a;
    border-left-color: #cf9d1a;
    background: linear-gradient(180deg, #fff7cc 0%, #f2ce58 100%);
    color: #5d4300;
}

.classic-accreditation-item.is-world-athletics-label {
    border-color: #2e5d91;
    border-top-color: #5c8bc0;
    border-left-color: #5c8bc0;
    background: linear-gradient(180deg, #e8f2ff 0%, #b9d7ff 100%);
    color: #11375d;
}

.classic-accreditation-item.is-boston-qualifier {
    border-color: #8f4b16;
    border-top-color: #bc6a2f;
    border-left-color: #bc6a2f;
    background: linear-gradient(180deg, #ffeede 0%, #ffc086 100%);
    color: #5a2c0b;
}

.classic-accreditation-item.is-aims,
.classic-accreditation-item.is-superhalfs,
.classic-accreditation-item.is-itra,
.classic-accreditation-item.is-utmb-index,
.classic-accreditation-item.is-isf,
.classic-accreditation-item.is-atra {
    border-color: #2a634a;
    border-top-color: #4f9c79;
    border-left-color: #4f9c79;
    background: linear-gradient(180deg, #e8f9ef 0%, #b5e7cb 100%);
    color: #11422d;
}

.classic-event-description {
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: #333333;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    font-size: 15px;
}

.classic-event-description p {
    margin: 0;
    line-height: 1.7;
    color: inherit;
    font-size: inherit;
}

.classic-event-description p,
.classic-event-description ul,
.classic-event-description ol,
.classic-event-description li {
    font-family: inherit;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit;
}

.classic-event-description p,
.classic-event-description ul,
.classic-event-description ol {
    margin: 0 0 10px 0;
}

.classic-event-description p:last-child,
.classic-event-description ul:last-child,
.classic-event-description ol:last-child {
    margin-bottom: 0;
}

.classic-event-description ul,
.classic-event-description ol {
    padding-left: 1.25em;
}

.classic-event-description li {
    margin: 0 0 6px 0;
}

.classic-event-description li:last-child {
    margin-bottom: 0;
}

.classic-content .classic-event-item:first-child .classic-event-date-box {
    margin-top: 5px;
}

/* Smartphone: reduce image size to 50x50 */
@media (max-width: 600px) {
    .classic-date-column.image {
        width: 65px;
        /* match mobile date image/box width */
    }

    .classic-date-column.box {
        width: 70px;
    }

    .classic-event-date-image-box {
        width: 65px;
        height: 65px;
    }

    .classic-calendar-actions .classic-btn {
        padding: 3px 1px;
        /* increase top/bottom padding on mobile */
        font-size: 9px;
        /* even smaller on mobile */
        border-width: 1px;
    }

    .classic-accreditation-item {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* 404ページスタイル */
.classic-404-container {
    text-align: center;
    padding: 20px;
    font-family: "Lora", Georgia, "Times New Roman", serif;
}

.classic-404-code {
    font-size: 75px;
    font-weight: bold;
    color: #000080;
    margin: 20px 0;
    font-family: "Sora", sans-serif;
    text-shadow: 2px 2px 0px #cccccc;
}

.classic-404-message {
    margin: 20px 0;
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
}

.classic-404-message p {
    margin: 10px 0;
    font-family: "Lora", Georgia, "Times New Roman", serif;
}

.classic-404-actions {
    margin: 30px 0;
}

.classic-404-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px 10px;
    background-color: #ffffff;
    border: 2px solid #000080;
    color: #000080;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    font-family: "Sora", sans-serif;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.classic-404-button:hover {
    background-color: #000080;
    color: #ffffff;
    text-decoration: none;
}

.classic-404-help {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #cccccc;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.classic-404-help h3 {
    font-size: 17px;
    font-weight: bold;
    color: #000080;
    margin: 0 0 10px 0;
    font-family: "Sora", sans-serif;
}

.classic-404-help p {
    font-size: 15px;
    margin: 8px 0;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    line-height: 1.7;
}

.classic-404-help ul {
    margin: 10px 0;
    padding-left: 20px;
    font-family: "Lora", Georgia, "Times New Roman", serif;
}

.classic-404-help li {
    margin: 5px 0;
    font-size: 15px;
}

.classic-404-help a {
    color: #000080;
    text-decoration: underline;
}

.classic-404-help a:hover {
    color: #0000cc;
    text-decoration: none;
}

/* Aboutページスタイル */
.classic-about-container {
    padding: 20px;
    background-color: #f8f8f8;
    border: 2px solid #333;
    margin: 20px 0;
}

.classic-about-title {
    font-size: 31px;
    font-weight: 600;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #333;
    padding-bottom: 10px;
}

.classic-about-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-left: 5px solid #333;
}

.classic-about-subtitle {
    font-size: 23px;
    font-weight: 600;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #666;
}

.classic-about-text {
    font-size: 15px;
    line-height: 1.7;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.classic-about-list {
    margin: 15px 0;
    padding-left: 30px;
}

.classic-about-list li {
    font-size: 15px;
    line-height: 1.7;
    font-family: "Lora", Georgia, "Times New Roman", serif;
    color: #333;
    margin-bottom: 8px;
    list-style-type: square;
}

.classic-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: bold;
}

.classic-link:hover {
    color: #004499;
    text-decoration: none;
}

.classic-about-footer {
    font-size: 16px;
    font-weight: 500;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    color: #333;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border: 1px dashed #666;
}

/* Classic Dropdown Styles */
.classic-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-right: 5px;
    margin-bottom: 5px;
}

.classic-dropdown-toggle {
    background-color: #ffffff;
    border: 1px solid #999999;
    padding: 5px 8px;
    font-size: 14px;
    font-family: "Sora", sans-serif;
    cursor: pointer;
    min-width: 160px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    border-radius: 0;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
    line-height: normal;
}

.classic-dropdown-toggle:after {
    content: "▼";
    font-size: 11px;
    margin-left: 8px;
    color: #666;
}

.classic-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    background-color: #ffffff;
    border: 1px solid #000080;
    min-width: 100%;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.classic-dropdown.open .classic-dropdown-menu {
    display: block;
}

.classic-dropdown-item {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #000000;
    border-bottom: 1px dotted #eeeeee;
    font-size: 14px;
    font-family: "Sora", sans-serif;
    background-color: #fff;
    cursor: pointer;
}

.classic-dropdown-item:last-child {
    border-bottom: none;
}

.classic-dropdown-item:hover {
    background-color: #f0f0f0;
    color: #000080;
}

.classic-dropdown-item.active {
    background-color: #e6f3ff;
    font-weight: bold;
    color: #000080;
}

/* US Running Calendar Section */
.us-calendar-section {
    background-color: #e8f5e9;
    border-top: 2px solid #2e7d32;
    border-bottom: 2px solid #2e7d32;
    padding: 20px 15px;
    text-align: center;
    margin: 0;
}

.us-calendar-content {
    max-width: 900px;
    margin: 0 auto;
}

.us-calendar-label {
    font-size: 19px;
    font-weight: bold;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid #2e7d32;
    padding-bottom: 8px;
}

.us-calendar-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.us-calendar-link {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #000080;
    text-decoration: underline;
    padding: 6px 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    text-align: center;
}

.us-calendar-link:hover {
    color: #ff0000;
    background-color: #c8e6c9;
}

/* Mobile responsive for US calendar section */
@media (max-width: 768px) {
    .latest-articles-section {
        padding: 15px 10px;
    }

    .latest-articles-label {
        font-size: 14px;
    }

    .latest-articles-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(5, auto);
        grid-auto-flow: column;
        gap: 6px 12px;
        max-width: 100%;
    }

    .latest-articles-link {
        font-size: 12px;
        padding: 6px 4px;
    }

    .us-calendar-section {
        padding: 15px 10px;
    }

    .us-calendar-label {
        font-size: 14px;
    }

    .us-calendar-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        max-width: 400px;
    }

    .us-calendar-link {
        font-size: 12px;
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    .us-calendar-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ultra Event Series Section */
.ultra-series-section {
    background-color: #f0f0f0;
    border-top: 2px solid #000080;
    border-bottom: 2px solid #000080;
    padding: 20px 15px;
    text-align: center;
    margin: 0;
}

.ultra-series-content {
    max-width: 900px;
    margin: 0 auto;
}

.ultra-series-label {
    font-size: 19px;
    font-weight: bold;
    color: #000080;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid #000080;
    padding-bottom: 8px;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    margin: 0;
    padding: 14px 0;
}

/* Latest Articles Footer Section */
.latest-articles-section {
    background-color: #f3f0ff;
    border-top: 2px solid #5b21b6;
    border-bottom: 2px solid #5b21b6;
    padding: 20px 15px;
    text-align: center;
    margin: 0;
}

.latest-articles-content {
    max-width: 900px;
    margin: 0 auto;
}

.latest-articles-label {
    font-size: 19px;
    font-weight: bold;
    color: #4c1d95;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid #5b21b6;
    padding-bottom: 8px;
}

.latest-articles-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 8px 18px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.latest-articles-link {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #1f2937;
    text-decoration: underline;
    padding: 6px 8px;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    text-align: left;
}

.latest-articles-link:hover {
    color: #4c1d95;
    background-color: #e9ddff;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000080;
    font-size: 13px;
    font-weight: bold;
    text-decoration: underline;
    line-height: 1.2;
    min-height: 24px;
    padding: 2px 6px;
    white-space: nowrap;
}

.footer-nav-link:hover {
    color: #ff0000;
}

.footer-nav-link:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
    background-color: #f0f7ff;
}

.ultra-series-events {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.ultra-series-event {
    margin: 0;
}

.ultra-series-link {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #000080;
    text-decoration: none;
    padding: 8px;
    transition: color 0.2s ease;
    text-align: center;
}

.ultra-series-text {
    overflow-wrap: anywhere;
}

.ultra-series-arrow {
    display: inline-block;
    font-size: 8px;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.ultra-series-arrow::before {
    content: "\00a0";
}

.ultra-series-link:hover .ultra-series-arrow {
    transform: translateX(4px);
}

/* Collapse adjacent borders to avoid double outlines between stacked sections */
.us-calendar-section + .ultra-series-section {
    border-top: 0;
}

.latest-articles-section + .us-calendar-section {
    border-top: 0;
}

.ultra-series-section + .classic-footer {
    border-top: 0;
}

/* Mobile responsive for ultra series section */
@media (max-width: 768px) {
    .ultra-series-section {
        padding: 15px 10px;
    }

    .ultra-series-label {
        font-size: 12px;
    }

    .ultra-series-events {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 400px;
    }

    .footer-nav-links {
        gap: 5px 10px;
        padding: 12px 0;
    }

    .footer-nav-link {
        font-size: 12px;
    }

    .ultra-series-link {
        font-size: 12px;
        padding: 8px;
        display: block;
    }
}

/* Filter Search Container Styles */
.classic-filter-description {
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #444444;
    margin: 0 0 14px 0;
    padding: 0;
}

.classic-filter-search-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    border: 1px solid #999999;
    background-color: #f9f9f9;
}

.classic-filter-links {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: auto;
    flex-wrap: nowrap;
    align-items: center;
    padding: 5px;
}

.classic-filter-search-container .classic-search {
    flex: 0 0 auto;
    min-width: auto;
    display: flex;
    align-items: center;
    padding: 5px;
    margin-right: 5px;
}

.classic-filter-search-container .classic-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    margin-right: 5px;
}

.classic-filter-search-container .classic-search-input {
    border: 1px solid #cccccc;
    padding: 5px 8px;
    font-size: 12px;
    font-family: "Sora", sans-serif;
    width: 150px;
    color: #000;
    background-color: #ffffff;
}

.classic-filter-search-container .classic-search-button {
    border: 1px solid #cccccc;
    border-left: none;
    background-color: #e0e0e0;
    padding: 5px 8px;
    font-size: 12px;
    font-family: "Sora", sans-serif;
    cursor: pointer;
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.classic-filter-search-container .classic-search-button i {
    font-size: 14px;
    color: #333;
}

.classic-filter-search-container .classic-dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 0 2px;
    flex-shrink: 1;
    min-width: 0;
}

.classic-filter-search-container .classic-dropdown-toggle {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 5px 8px;
    font-size: 12px;
    font-family: "Sora", sans-serif;
    cursor: pointer;
    min-width: 100px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    border-radius: 0;
    width: auto;
    appearance: none;
    -webkit-appearance: none;
    line-height: normal;
    white-space: nowrap;
}

.classic-filter-search-container .classic-dropdown-toggle:after {
    content: "▼";
    font-size: 10px;
    margin-left: 6px;
    color: #666;
    flex-shrink: 0;
}

.classic-filter-search-container .classic-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    background-color: #ffffff;
    border: 1px solid #000080;
    min-width: 100%;
    max-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.classic-filter-search-container .classic-dropdown.open .classic-dropdown-menu {
    display: block;
}

.classic-filter-search-container .classic-dropdown-item {
    display: block;
    padding: 8px 10px;
    text-decoration: none;
    color: #000000;
    border-bottom: 1px dotted #eeeeee;
    font-size: 13px;
    font-family: "Sora", sans-serif;
    background-color: #fff;
    cursor: pointer;
}

.classic-filter-search-container .classic-dropdown-item:hover {
    background-color: #f0f0f0;
    color: #000080;
}

.classic-filter-search-container .classic-dropdown-item.active {
    background-color: #e6f3ff;
    font-weight: bold;
    color: #000080;
}

/* Mobile Responsive for Filter Search Container */
@media (max-width: 768px) {
    .classic-filter-search-container {
        flex-wrap: wrap;
        border: 1px solid #999999;
    }

    .classic-filter-links {
        flex: 0 0 100%;
        flex-wrap: wrap;
        padding: 5px;
        gap: 2px;
    }

    .classic-filter-search-container .classic-dropdown {
        margin: 2px;
        flex: 1;
        min-width: 90px;
    }

    .classic-filter-search-container .classic-dropdown-toggle {
        min-width: 80px;
        font-size: 11px;
        padding: 4px 6px;
        width: 100%;
    }

    .classic-filter-search-container .classic-search {
        flex: 0 0 100%;
        border-top: 1px solid #999999;
        padding: 5px;
        margin-right: 0;
    }

    .classic-filter-search-container .classic-search-form {
        width: 100%;
        margin-right: 0;
    }

    .classic-filter-search-container .classic-search-input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 480px) {
    .classic-filter-search-container .classic-dropdown-toggle {
        font-size: 10px;
        padding: 3px 5px;
        min-width: 70px;
    }

    .classic-filter-search-container .classic-search-input {
        font-size: 11px;
        padding: 4px 6px;
    }

    .classic-filter-search-container .classic-search-button {
        width: 28px;
        height: 26px;
    }

    .classic-filter-search-container .classic-search-button i {
        font-size: 12px;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        color: #4caf50; /* Bright green color */
    }
    50% {
        transform: scale(1.3);
        opacity: 0.9;
        color: #8bc34a; /* Lighter bright green */
    }
    100% {
        transform: scale(1);
        opacity: 1;
        color: #4caf50; /* Bright green color */
    }
}

.pulse-animation {
    display: inline-block;
    animation: pulse 1s infinite;
    margin-right: 5px;
    font-size: 17px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

/* AdSense Header Container */
.adsense-header-container {
    width: 100%;
    max-width: 800px;
    min-height: 90px; /* Reserve space for 728x90 header ad */
    margin: 0 auto 15px auto;
    padding: 10px;
    text-align: center;
    background-color: #ffffff;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent ad overflow from breaking layout */
}

.adsense-header-container > div {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.classic-sidebar-ad {
    margin: 10px 0;
    padding: 10px;
    min-height: 100px; /* Reserve space for sidebar ad */
    text-align: center;
    border: 1px solid #cccccc;
    background-color: #f8f8f8;
    overflow: hidden; /* Prevent ad overflow from breaking layout */
}

.classic-sidebar-ad > * {
    display: inline-block;
    max-width: 100%;
}

/* Mobile Responsive for Sidebar Ad */
@media (max-width: 768px) {
    .classic-sidebar-ad {
        margin: 8px 0;
        padding: 8px;
    }
}

/* AdSense Responsive Visibility */
/* Desktop only - visible on screens >= 768px */
.adsense-desktop-only {
    display: block;
}

.adsense-mobile-only {
    display: none;
}

/* Mobile only - visible on screens < 768px */
@media (max-width: 767px) {
    .adsense-desktop-only {
        display: none !important;
    }

    .adsense-mobile-only {
        display: block !important;
    }
}

/* Sidebar ads: hide on mobile since sidebar moves below content */
@media (max-width: 767px) {
    .classic-sidebar-ad {
        display: none !important;
    }
}

/* Ensure ad containers work properly when hidden */
.adsense-desktop-only:empty,
.adsense-mobile-only:empty {
    display: none;
}

/* ===== Pace Calculator Styles ===== */
.pace-section {
    margin-top: 20px;
}
.pace-calc-wrapper {
    max-width: 100%;
    border: 1px solid #cccccc;
    border-radius: 0;
    padding: 8px;
    background: #f0f0f0;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}

/* Mode Tabs */
.pace-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 0;
    border-bottom: 2px solid #000080;
    padding-bottom: 0;
    row-gap: 2px;
}
.pace-tab {
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    background: #e0e0e0;
    border: 1px solid #999999;
    border-bottom: 0;
    border-radius: 0;
    color: #333333;
    transition:
        background 0.15s,
        color 0.15s;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    margin-right: 2px;
    line-height: 1.2;
}
.pace-tab:hover {
    background: #d0d0d0;
    color: #000080;
}
.pace-tab.active {
    background: #000080;
    color: #ffffff;
    border-color: #000080;
    position: relative;
    z-index: 1;
}

/* Panel */
.pace-panel {
    display: none;
    border: 1px solid #cccccc;
    padding: 12px;
    background: #ffffff;
    border-radius: 0;
}
.pace-panel.active {
    display: block;
}

/* Form elements */
.pace-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 6px 0;
    flex-wrap: wrap;
}
.pace-label {
    min-width: 110px;
    font-weight: 500;
    font-size: 13px;
    color: #000080;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}
.pace-input {
    border: 1px solid #999999;
    background: #fff;
    padding: 4px 6px;
    font-size: 13px;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    width: 72px;
    text-align: center;
    border-radius: 0;
}
.pace-input:focus {
    outline: none;
    border-color: #000080;
    background: #ffffcc;
    box-shadow: none;
}
.pace-select {
    border: 1px solid #999999;
    background: #fff;
    padding: 4px 6px;
    font-size: 13px;
    border-radius: 0;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
}
.pace-select:focus {
    outline: none;
    border-color: #000080;
    background: #ffffcc;
    box-shadow: none;
}
.pace-unit-toggle {
    display: inline-flex;
    border: 1px solid #999999;
    border-radius: 0;
    overflow: hidden;
}
.pace-unit-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #e0e0e0;
    color: #333333;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    transition:
        background 0.15s,
        color 0.15s;
}
.pace-unit-btn.active {
    background: #000080;
    color: #ffffff;
}
.pace-unit-btn:not(.active):hover {
    background: #d0d0d0;
}

/* Buttons */
.pace-btn-row {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.pace-btn {
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #999999;
    background: #e0e0e0;
    color: #333333;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 0;
    font-family:
        "Sora",
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    transition: background 0.15s;
}
.pace-btn:hover {
    background: #d0d0d0;
    border-color: #000080;
}
.pace-btn.secondary {
    background: #f7f7f7;
    color: #333;
    border-color: #999;
}
.pace-btn.secondary:hover {
    background: #ebebeb;
}
.pace-btn:active {
    border-style: inset;
}

/* Result box */
.pace-result {
    border: 1px solid #cccccc;
    background: #ffffff;
    padding: 10px;
    margin-top: 8px;
    border-radius: 0;
    min-height: 40px;
    font-size: 13px;
    line-height: 1.6;
}
.pace-result .highlight {
    font-size: 16px;
    font-weight: 700;
    color: #000080;
}
.pace-result .sub {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}
.pace-result .label {
    font-weight: 700;
    color: #333;
}
.pace-result .metric {
    margin-top: 4px;
}
.pace-alert {
    color: #b00020;
    font-size: 13px;
    font-weight: 600;
}
.is-hidden {
    display: none !important;
}
.pace-result-gap-top {
    margin-top: 8px;
}

/* Splits table */
.pace-splits-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
}
.pace-splits-table th {
    background: #000080;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
}
.pace-splits-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e0e0e0;
}
.pace-splits-table tr:nth-child(even) td {
    background: #f8f8f8;
}
.pace-splits-table tr:hover td {
    background: #eef;
}

/* Info callout */
.pace-info {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* Section headings */
.pace-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #000080;
    margin: 14px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #cccccc;
    font-family: "Bitter", Georgia, "Times New Roman", serif;
}

/* Responsive */
@media (max-width: 600px) {
    .pace-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .pace-tab {
        padding: 3px 6px;
        font-size: 10px;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .pace-row {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .pace-label {
        min-width: 100%;
        margin-bottom: 1px;
    }
    .pace-input {
        width: 64px;
        max-width: none;
    }
    .pace-select {
        width: 100%;
        max-width: 100%;
    }
    .pace-btn-row .pace-btn {
        flex: 1;
        min-width: 110px;
    }
    .pace-result .highlight {
        font-size: 16px;
    }
    .pace-splits-table th,
    .pace-splits-table td {
        padding: 5px 6px;
        font-size: 11px;
    }
    .pace-calc-wrapper {
        padding: 8px;
    }
    .pace-panel {
        padding: 10px;
    }
}
