/* Fitness editorial theme; all assets are isolated from General. */
:root {
    --paper: #f5f3ee;
    --surface: #eeece5;
    --ink: #20231f;
    --muted: #686b62;
    --accent: #e84c20;
    --accent-text: #bf3914;
    --accent-button: #ce3d15;
    --line: #d9dbd1;
    --body-font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    --display-font: var(--body-font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { color: var(--paper); background: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
main:focus { outline: none; }
.shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.display-copy { font-family: var(--display-font); font-weight: 800; letter-spacing: .04em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; line-height: 1.6; font-weight: 700; letter-spacing: 1.6px; }
.accent { color: var(--accent); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 24px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
.masthead { min-height: 104px; display: flex; align-items: center; gap: 48px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 15px; font-size: 28px; font-weight: 900; letter-spacing: -1px; min-width: 0; }
.brand small { display: block; margin-top: 7px; font-family: "Bahnschrift", sans-serif; font-size: 9px; font-weight: 500; letter-spacing: 2.5px; }
.brand-mark { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; gap: 4px; height: 44px; transform: skew(-17deg); }
.brand-mark i { width: 9px; height: 26px; background: var(--accent); }
.brand-mark i:nth-child(2) { height: 40px; }
.brand-mark i:nth-child(3) { height: 32px; }
.search-form { margin-left: auto; display: flex; align-items: center; background: var(--surface); padding: 5px 6px 5px 15px; width: 330px; min-width: 0; border: 1px solid transparent; }
.search-form:focus-within { border-color: var(--ink); }
.search-form svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; flex-shrink: 0; }
.search-form input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 10px; color: var(--ink); font-size: 12px; }
.search-form button { flex-shrink: 0; border: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 12px; }
.search-form button:hover { background: var(--accent); }
.navigation { display: flex; justify-content: space-between; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink); gap: 24px; }
.channels { display: flex; overflow-x: auto; gap: 32px; scrollbar-width: thin; min-width: 0; }
.channels a { white-space: nowrap; padding: 18px 0 15px; font-size: 13px; font-weight: 700; border-bottom: 3px solid transparent; }
.channels a[aria-current], .channels a:hover { border-bottom-color: var(--accent); color: var(--accent-text); }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; padding: 36px 0; gap: 38px; }
.hero-copy { padding: 20px 0 8px; align-self: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(44px, 4.6vw, 66px); font-weight: 900; line-height: 1.45; letter-spacing: -2px; margin: 30px 0 24px; }
.hero-description { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 430px; margin: 0 0 26px; }
.button-primary { display: inline-flex; align-items: center; gap: 40px; background: var(--accent-button); color: white; padding: 17px 24px; font-size: 13px; font-weight: 700; transition: background .2s; }
.button-primary:hover { background: #ba3711; }
.button-primary span { font-size: 21px; line-height: 1; }
.hero-visual { min-height: 490px; position: relative; overflow: hidden; background: #333b32; }
.hero-visual > img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 52% center; filter: saturate(.65); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #111a142b, transparent 35%, #111a14b8); pointer-events: none; }
.photo-caption { position: absolute; bottom: 32px; left: 32px; right: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; z-index: 1; color: white; }
.photo-caption .display-copy { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.5; }
.latest-section { padding: 54px 0 10px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; padding-bottom: 22px; }
.section-heading h2 { font-size: 30px; line-height: 1.2; letter-spacing: -1px; margin: 9px 0 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 26px; }
.story { border-bottom: 1px solid var(--line); padding-bottom: 24px; min-width: 0; }
.story-link { display: block; }
.story-image-link { display: block; height: 100%; }
.image-frame { aspect-ratio: 1.5; position: relative; background: var(--surface); overflow: hidden; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.story:hover .image-frame img { transform: scale(1.035); }
.story-arrow { position: absolute; right: 0; bottom: 0; background: var(--paper); width: 40px; height: 40px; display: grid; place-items: center; font-size: 24px; }
.story:hover .story-arrow { background: var(--accent); color: white; }
.story-copy { padding-top: 19px; }
time { font-family: "Bahnschrift", sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.story h3 { font-size: 21px; line-height: 1.55; letter-spacing: -.3px; margin: 10px 0; overflow-wrap: anywhere; }
.story-link:hover h3 { color: #bc3813; }
.story p { color: var(--muted); font-size: 13px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 0 0 18px; }
.read { display: inline-flex; gap: 24px; font-size: 11px; font-weight: 700; }
.image-placeholder { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; gap: 24px; color: #4d5644; background: repeating-linear-gradient(115deg, transparent, transparent 38px, #b6beaa40 39px, transparent 40px), #e1e5d9; }
.image-placeholder .display-copy { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.5; }
.image-placeholder > span:last-child { font-size: 40px; color: var(--accent); }
.image-unavailable { display: grid; place-items: center; min-height: 220px; width: 100%; height: 100%; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(115deg, transparent, transparent 38px, #b6beaa40 39px, transparent 40px), #e1e5d9; }
.image-load-failed { visibility: hidden; }
.image-frame .image-load-failed, .article figure .image-load-failed { display: none; }
.image-unavailable { align-content: center; gap: 14px; }
.image-unavailable button { position: relative; z-index: 2; padding: 9px 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 12px; }
.image-unavailable button:disabled { cursor: wait; opacity: .65; }
.empty { display: flex; align-items: center; gap: 35px; padding: 44px; border: 1px solid var(--line); background: linear-gradient(110deg, #e9ece1, transparent); }
.empty-symbol { font-size: 62px; line-height: 1; color: var(--accent); }
.empty .eyebrow { font-size: 9px; color: var(--muted); }
.empty h3 { font-size: 23px; margin: 12px 0; }
.empty p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.text-link { font-size: 12px; font-weight: 700; }
.text-link:hover, .back-link:hover { color: var(--accent-text); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: 12px; }
.pagination a, .pagination .disabled { padding: 12px 18px; border: 1px solid var(--line); }
.pagination a:hover { background: var(--ink); color: white; }
.pagination .disabled { color: #767970; }
.pagination strong { font-family: "Bahnschrift", sans-serif; font-size: 18px; padding: 0 6px; }
.subchannels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.subchannels a { padding: 9px 17px; border: 1px solid var(--line); font-size: 12px; }
.subchannels a[aria-current], .subchannels a:hover { background: var(--ink); border-color: var(--ink); color: white; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding: 28px 0; color: var(--muted); font-size: 11px; }
.breadcrumb a:hover { color: var(--accent-text); }
.reading-layout { display: grid; grid-template-columns: minmax(0, 880px) minmax(220px, 280px); justify-content: space-between; gap: 64px; padding: 12px 0 70px; }
.article { min-width: 0; }
.category-label { display: inline-block; padding: 8px 12px; background: var(--accent-button); color: white; font-size: 11px; font-weight: 700; }
.article h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.4; letter-spacing: -1px; margin: 23px 0; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.article-meta > span:first-child { color: var(--ink); font-weight: 700; }
.standfirst { font-size: 18px; line-height: 1.9; color: #555b50; border-left: 3px solid var(--accent); padding-left: 22px; margin: 30px 0; overflow-wrap: anywhere; }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; height: auto; display: block; }
.prose { max-width: 740px; margin: 36px auto; font-size: 17px; line-height: 2.05; }
.prose p { margin: 0 0 25px; white-space: pre-wrap; overflow-wrap: anywhere; }
.back-link { display: inline-block; font-size: 13px; font-weight: 700; padding: 24px 0; }
.reading-sidebar { align-self: start; position: sticky; top: 24px; }
.sidebar-categories { margin: 28px 0; }
.sidebar-categories h2 { font-size: 15px; }
.sidebar-categories a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.sidebar-categories a[aria-current], .sidebar-categories a:hover { color: var(--accent-text); }
.reading-sidebar > .text-link { display: inline-block; margin-top: 20px; }
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer a:hover { color: #f98966; }
.footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; border-top: 1px solid #44483e; padding-block: 22px; color: #b8bcb1; font-size: 10px; line-height: 1.7; }
.footer-bottom > span:nth-child(2) { margin-right: auto; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy { animation: enter .55s ease-out both; }
.hero-visual { animation: enter .65s .08s ease-out both; }
@media (min-width: 1050px) {
    .news-grid--featured .story:first-child { grid-column: span 2; }
    .news-grid--featured .story:first-child .image-frame { aspect-ratio: 2.25; }
    .news-grid--featured .story:first-child h3 { font-size: 27px; }
}
@media (max-width: 1100px) {
    .shell { width: calc(100% - 64px); }
    .masthead { gap: 24px; }
    .hero { gap: 26px; }
    .hero-visual { min-height: 440px; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reading-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (max-width: 760px) {
    .shell { width: calc(100% - 40px); }
    .masthead { flex-wrap: wrap; gap: 20px; padding-block: 23px 18px; }
    .brand { font-size: 25px; }
    .search-form { width: 100%; margin: 0; }
    .navigation { gap: 10px; }
    .channels { gap: 24px; }
    .channels a { padding-block: 15px 12px; font-size: 12px; }
    .hero { grid-template-columns: 1fr; padding-block: 26px; gap: 28px; }
    .hero-copy { padding-top: 8px; }
    .hero h1 { font-size: clamp(36px, 9.6vw, 52px); letter-spacing: -1px; }
    .hero-description { font-size: 13px; margin-bottom: 22px; }
    .hero-visual { min-height: 0; aspect-ratio: 1.12; }
    .photo-caption { bottom: 22px; left: 22px; right: 20px; }
    .photo-caption .display-copy { font-size: clamp(23px, 6vw, 30px); }
    .latest-section { padding-top: 36px; }
    .section-heading h2 { font-size: 26px; }
    .news-grid { gap: 30px 18px; }
    .story h3 { font-size: 19px; }
    .empty { padding: 28px 22px; gap: 18px; align-items: flex-start; }
    .empty-symbol { font-size: 40px; }
    .empty h3 { font-size: 19px; line-height: 1.5; }
    .empty .eyebrow { font-size: 8px; letter-spacing: 1px; }
    .reading-layout { grid-template-columns: 1fr; gap: 30px; padding-bottom: 40px; }
    .reading-sidebar { position: static; }
    .sidebar-categories { margin-top: 0; }
    .article h1 { font-size: 30px; }
    .standfirst { font-size: 16px; padding-left: 16px; }
    .prose { font-size: 16px; }
    .footer-bottom { gap: 14px 22px; }
    .footer-bottom > span:nth-child(2) { order: 1; width: 100%; }
}
@media (max-width: 520px) {
    .news-grid { grid-template-columns: 1fr; }
    .story h3 { font-size: 22px; }
    .image-placeholder .display-copy { font-size: 32px; }
    .pagination a, .pagination .disabled { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.image-frame > .image-unavailable { position: absolute; inset: 0; min-height: 0; }

.article-categories { display: flex; flex-wrap: wrap; gap: 8px; }

/* Keep collection pages focused on their articles, with one heading per page. */
.latest-section { padding-bottom: 56px; }
.latest-section--collection { padding-top: 36px; }
.section-heading { align-items: center; border-bottom-color: var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.section-heading h1, .section-heading h2 { font-size: 30px; line-height: 1.4; margin: 0; letter-spacing: -.5px; overflow-wrap: anywhere; }
.result-count { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.search-context { font-size: 14px; color: var(--muted); margin: 10px 0 0; overflow-wrap: anywhere; }
.reading-layout--focused { display: block; max-width: 880px; margin-inline: auto; }
.breadcrumb--focused { max-width: 880px; margin-inline: auto; }
.reading-sidebar { border-top: 2px solid var(--ink); }
.back-link { margin-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.footer-bottom { min-height: 90px; border-top: 0; }
@media (max-width: 760px) {
    .latest-section--collection { padding-top: 26px; }
    .section-heading h1, .section-heading h2 { font-size: 26px; }
    .latest-section { padding-bottom: 36px; }
    .result-count { font-size: 11px; }
}

/* Homepage: a lead story, compact updates, long-form reading and category collections. */
.fitness-home { padding: 36px 0 64px; }
.home-opening { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 40px; }
.home-opening--single { grid-template-columns: 1fr; }
.home-lead { min-width: 0; }
.home-lead-copy { padding: 0 0 24px; }
.home-lead .eyebrow { margin: 0 0 14px; }
.home-lead h1 { font-size: clamp(27px, 2.6vw, 38px); line-height: 1.5; letter-spacing: -.8px; margin: 0 0 14px; overflow-wrap: anywhere; }
.lead-summary { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.home-lead-image { aspect-ratio: 2; }
.home-updates { border-left: 1px solid var(--line); padding-left: 32px; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.home-heading h2 { font-size: 24px; margin: 0; line-height: 1.4; }
.home-heading > span { font-size: 25px; color: var(--accent); }
.home-heading .text-link { flex-shrink: 0; }
.home-story { min-width: 0; }
.home-story h3 { font-size: 21px; line-height: 1.6; margin: 9px 0; overflow-wrap: anywhere; }
.home-story h3 a:hover, .home-lead h1 a:hover { color: var(--accent-text); }
.home-story-copy { padding-top: 17px; }
.home-story-copy p { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.home-updates .home-story { display: flex; flex-direction: column; padding: 0 0 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.home-updates .home-story:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.home-updates .image-frame { aspect-ratio: 2.5; }
.home-updates .home-story h3 { font-size: 19px; }
.home-updates .home-story-copy p { display: none; }
.home-reading { margin-top: 52px; padding: 32px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; background: var(--ink); color: var(--paper); }
.reading-intro { display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid #555b50; padding-right: 24px; }
.reading-intro .eyebrow { font-size: 10px; color: #c5c9bd; letter-spacing: 1px; }
.reading-intro h2 { font-size: 32px; margin: 20px 0; }
.reading-mark { font-size: 56px; line-height: 1; color: #f98966; margin-top: auto; }
.home-reading .home-story { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.home-reading .image-frame { aspect-ratio: 1.3; }
.home-reading .home-story-copy { padding: 0; }
.home-reading time, .home-reading .home-story-copy p { color: #c5c9bd; }
.home-reading .home-story h3 { font-size: 25px; }
.home-reading h3 a:hover { color: #f98966; }
.home-category { margin-top: 52px; }
.home-category > .home-heading { padding-top: 24px; border-top: 2px solid var(--ink); }
.home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
.home-category .home-story { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.home-category--rows .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-category--rows .home-story { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start; }
.home-category--rows .home-story-copy { padding-top: 0; }
.home-category--rows .image-frame { aspect-ratio: 1; }
.home-more { display: flex; justify-content: center; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 36px; }
.home-empty { padding: 72px 0; }
.home-empty h1 { font-size: 36px; }
.home-empty p { color: var(--muted); }
@media (max-width: 1050px) {
    .home-opening { gap: 24px; }
    .home-updates { padding-left: 24px; }
    .home-reading { grid-template-columns: 150px minmax(0, 1fr); padding: 26px; gap: 24px; }
    .home-reading .home-story { grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); gap: 20px; }
    .home-reading .home-story h3 { font-size: 21px; }
    .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-category--rows .home-story { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
    .fitness-home { padding-top: 28px; padding-bottom: 40px; }
    .home-opening { grid-template-columns: 1fr; gap: 32px; }
    .home-lead-image { aspect-ratio: 1.5; }
    .home-updates { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
    .home-heading h2 { font-size: 22px; }
    .home-updates .home-story { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
    .home-updates .image-frame { aspect-ratio: 1; }
    .home-updates .home-story-copy { padding-top: 0; }
    .home-updates .home-story h3 { font-size: 17px; margin-top: 6px; }
    .home-reading { grid-template-columns: 1fr; gap: 22px; padding: 24px; margin-top: 36px; }
    .reading-intro { border: 0; padding: 0; }
    .reading-intro h2 { font-size: 26px; margin: 9px 0 0; }
    .reading-mark { display: none; }
    .home-reading .home-story { grid-template-columns: 1fr; gap: 20px; }
    .home-reading .image-frame { aspect-ratio: 1.7; }
    .home-category { margin-top: 36px; }
    .home-category-grid, .home-category--rows .home-category-grid { grid-template-columns: 1fr; }
    .home-category--rows .home-story { grid-template-columns: 100px minmax(0, 1fr); }
}
