/* Special projects extend the ordinary project template with theme-native modules only. */
.fr-special-project-page .fr-sidebar-left{display:none!important;}
.fr-special-project-page .fr-shell{max-width:1448px;}
.fr-term-page-layout--special{
    --fr-term-page-width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:24px;
    width:100%;
    max-width:1400px;
}
.fr-project-special{--fr-special-section-gap:24px;--fr-special-feed-inset:8px;min-width:0;}
.fr-project-special .fr-category-hero--special,.fr-project-special .fr-category-filter{margin-bottom:var(--fr-special-section-gap);}
.fr-project-special .fr-icon,.fr-category-hero--special .fr-icon{stroke-width:1.5;}
.fr-project-special [id^="special-"]{scroll-margin-top:96px;}
.fr-special-project-sidebar-host{position:relative;width:320px;min-width:0;align-self:stretch;}
.fr-special-project-sidebar{width:100%;min-width:0;}
.fr-special-project-sidebar .fr-right-sidebar__inner{display:grid;gap:24px;}
.fr-special-project-sidebar .fr-side-widget h3{font-weight:600;}

/* Hero keeps the slideshow visual, while the ordinary project body remains below it. */
.fr-category-hero--special{position:relative;isolation:isolate;background:#fff;color:var(--foreground,#1a1a1a);}
.fr-category-hero--special .fr-category-hero__image{position:relative;z-index:0;width:100%;height:440px;overflow:hidden;background:#111827;}
.fr-category-hero--special .fr-category-hero__image::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(63,124,223,.08) 0%,rgba(28,43,62,.22) 28%,rgba(17,28,43,.42) 56%,rgba(7,12,20,.68) 100%);}
.fr-project-hero-slideshow{position:relative;isolation:isolate;}
.fr-project-hero-slide{position:absolute;inset:0;z-index:0;opacity:0;transition:opacity .8s ease;}
.fr-project-hero-slide.is-active{z-index:1;opacity:1;}
.fr-project-hero-slide img{display:block;width:100%;height:100%;object-fit:cover;}
.fr-project-hero-slide.is-active img{animation:fr-project-cover-zoom 8s linear both;}
.fr-project-hero-slideshow.is-paused .fr-project-hero-slide img{animation-play-state:paused;}
@keyframes fr-project-cover-zoom{from{transform:scale(1)}to{transform:scale(1.04)}}
.fr-category-hero--special .fr-post-card__top-badges{top:20px;left:24px;right:24px;}
@media(min-width:1024px){
    .fr-category-hero--special .fr-post-card__top-badges .fr-post-card__region-badge,
    .fr-category-hero--special .fr-post-card__top-badges .fr-post-card__horizon-badge.fr-post-hero__badge{font-size:13px!important;}
}
.fr-category-hero--special .fr-category-hero__body{position:relative;padding:28px 32px 32px;background:#fff;}
.fr-special-project-hero-overlay{position:absolute;left:0;right:0;bottom:100%;z-index:3;display:flex;min-height:250px;flex-direction:column;justify-content:flex-end;padding:32px;color:#fff;pointer-events:none;}
.fr-special-project-hero-overlay>*{pointer-events:auto;}
.fr-special-project-hero-overlay .fr-category-hero__title-row{align-items:flex-end;margin-bottom:10px;}
.fr-category-hero--special .fr-category-hero__title-row h1{font-size:clamp(30px,4.2vw,40px);line-height:1.12;}
.fr-special-project-hero-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:18px;}
.fr-special-project-hero-actions .fr-term-hero-share{flex:0 1 auto;}
.fr-special-project-hero-actions .fr-category-hero__subscribe{margin:0;min-height:40px;height:40px;padding:0 16px;border-radius:12px;font-size:14px;line-height:20px;font-weight:500;}
.fr-special-project-hero-actions .fr-category-hero__subscribe .fr-icon{width:16px;height:16px;}
.fr-special-project-participate{margin-right:auto;}
.fr-special-project-hero-overlay h1,.fr-special-project-hero-overlay .fr-special-project-subtitle,.fr-special-project-hero-overlay .fr-project-page-description__text{color:#fff;text-shadow:0 1px 18px rgba(0,0,0,.28);}
.fr-special-project-hero-overlay h1{max-width:820px;}
.fr-special-project-hero-overlay .fr-special-project-subtitle{margin:0 0 10px;color:rgba(255,255,255,.92);font-size:17px;line-height:1.5;}
.fr-special-project-hero-overlay .fr-project-page-description{max-width:900px;}
.fr-special-project-hero-overlay .fr-project-page-description__text{color:rgba(255,255,255,.88);}
.fr-special-project-hero-overlay .fr-project-page-description__toggle,.fr-special-project-hero-overlay .fr-project-page-description__toggle:hover,.fr-special-project-hero-overlay .fr-project-page-description__toggle:focus-visible{color:#fff;}
.fr-special-project-hero-overlay .fr-project-page-description.is-collapsed .fr-project-page-description__toggle{background:transparent;color:#fff;}
.fr-special-project-hero-overlay .fr-project-page-description.is-collapsed .fr-project-page-description__toggle::before{background:linear-gradient(90deg,transparent 0%,rgba(21,38,62,.58) 82%,rgba(21,38,62,.78) 100%);-webkit-mask-image:none;mask-image:none;}
.fr-category-hero--special .fr-special-project-short-text{margin:0 0 20px;color:var(--muted-foreground,#888);font-size:14px;line-height:1.6;}
.fr-special-project-short-text--mobile{display:none;}
.fr-category-hero--special .fr-project-relations__label{color:var(--muted-foreground,#888);}
.fr-category-hero--special .fr-project-relations__label .fr-icon{color:currentColor;}
.fr-category-hero--special .fr-project-relation-card--special-overlay{position:relative;isolation:isolate;aspect-ratio:16/9;border-radius:14px;background:#111827;}
.fr-category-hero--special .fr-project-relation-card--special-overlay .fr-project-relation-card__media{position:absolute;inset:0;aspect-ratio:auto;border-radius:inherit;background:#111827;}
.fr-category-hero--special .fr-project-relation-card--special-overlay .fr-project-relation-card__media::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(9,15,25,0) 34%,rgba(9,15,25,.78) 100%);pointer-events:none;}
.fr-category-hero--special .fr-project-relation-card--special-overlay .fr-project-relation-card__body{position:absolute;left:0;right:0;bottom:0;z-index:2;min-height:0;padding:36px 14px 14px;background:transparent;border-radius:0;box-shadow:none;}
.fr-category-hero--special .fr-project-relation-card--special-overlay .fr-project-relation-card__body>strong{color:#fff;text-shadow:0 1px 10px rgba(0,0,0,.32);}
.fr-category-hero--special .fr-project-relation-card--special-overlay .fr-project-relation-card__placeholder{color:#fff;background:linear-gradient(135deg,#5d8fe3,#3f7cdf);}
.fr-category-hero--special .fr-project-relation-card--special-overlay .fr-post-card__top-badges{z-index:3;}
.fr-special-project-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0;}
.fr-special-project-actions .fr-btn{box-sizing:border-box;border:0;box-shadow:none;white-space:nowrap;}
.fr-special-project-actions .fr-btn .fr-icon{width:18px;height:18px;stroke-width:1.5;}
.fr-special-project-final{position:relative;isolation:isolate;display:flex;min-height:300px;align-items:center;justify-content:center;overflow:hidden;padding:40px;border-radius:16px;background:linear-gradient(135deg,#26364e,#101722);color:#fff;text-align:center;}
.fr-special-project-final__media{position:absolute;inset:0;z-index:-2;display:block;}
.fr-special-project-final__media img{display:block;width:100%;height:100%;object-fit:cover;}
.fr-special-project-final__shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(29,52,82,.42) 0%,rgba(12,19,30,.78) 100%);}
.fr-special-project-final__content{display:grid;justify-items:center;width:min(100%,720px);gap:10px;}
.fr-special-project-final__content h2{margin:0;color:#fff;font-size:clamp(24px,3vw,32px);line-height:1.15;font-weight:700;text-shadow:0 1px 14px rgba(0,0,0,.28);}
.fr-special-project-final__content p{max-width:620px;margin:0;color:rgba(255,255,255,.88);font-size:14px;line-height:1.55;text-shadow:0 1px 12px rgba(0,0,0,.24);}
.fr-special-project-final .fr-special-project-actions{justify-content:center;margin:12px 0 0;}
.fr-special-project-final .fr-btn{min-height:44px;padding:0 18px;border-radius:12px;font-size:14px;line-height:1;font-weight:500;}
.fr-special-project-final .fr-btn--muted{background:rgba(255,255,255,.94);color:var(--foreground,#1a1a1a);}
.fr-special-project-final .fr-btn--muted:hover{background:#fff;color:var(--foreground,#1a1a1a);}

/* Five equal metric cards on desktop; goal is the fifth ordinary stat card. */
.fr-category-hero--special .fr-category-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.fr-category-hero--special .fr-category-stats>div,.fr-category-hero--special .fr-category-stats>button{min-height:92px;background:var(--secondary,#f8f8f8);}
.fr-special-project-goal-stat small{display:block;margin-top:2px;color:var(--muted-foreground,#888);font-size:11px;line-height:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fr-special-project-goal-stat progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:4px;margin-top:2px;overflow:hidden;border:0;border-radius:999px;background:#E5E5E5;color:var(--accent,#3f7cdf);}
.fr-special-project-goal-stat progress::-webkit-progress-bar{border-radius:999px;background:#E5E5E5;}
.fr-special-project-goal-stat progress::-webkit-progress-value{border-radius:999px;background:var(--accent,#3f7cdf);}
.fr-special-project-goal-stat progress::-moz-progress-bar{border-radius:999px;background:var(--accent,#3f7cdf);}
.fr-project-special .fr-term-posts{margin-bottom:var(--fr-special-section-gap);}
.fr-special-feed-insert{grid-column:1/-1;width:100%;margin:var(--fr-special-feed-inset) 0;}
.fr-special-feed-insert:first-child{margin-top:0;}
.fr-special-feed-insert:last-child{margin-bottom:0;}
.fr-special-feed-insert+.fr-special-feed-insert{margin-top:0;}
.fr-special-project-block{margin:0 0 var(--fr-special-section-gap);min-width:0;}
.fr-special-project-block.fr-special-feed-insert{margin:var(--fr-special-feed-inset) 0;}
.fr-special-feed-insert>.fr-special-project-block{margin:0;}
.fr-special-project-blocks{display:grid;gap:var(--fr-special-section-gap);margin:0 0 var(--fr-special-section-gap);min-width:0;}
.fr-special-project-blocks>.fr-home-widget,
.fr-special-project-community-grid>.fr-home-widget{margin-bottom:0;}
.fr-special-project-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.fr-special-project-info-item{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:12px;min-width:0;padding:16px;border:1px solid var(--border,#e5e5e5);border-radius:14px;background:transparent;}
.fr-special-project-info-item>span{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:var(--accent-light,#e9f2ff);color:var(--accent,#3f7cdf);}
.fr-special-project-info-item .fr-icon{width:18px;height:18px;stroke-width:1.5;}
.fr-special-project-info-item h3{margin:0 0 6px;font-size:14px;line-height:20px;}
.fr-special-project-info-item p,
.fr-special-project-note{margin:0;color:var(--muted-foreground,#888);font-size:14px;line-height:1.6;overflow-wrap:anywhere;}
.fr-project-special .fr-home-widget__head .fr-icon,.fr-special-project-results-list .fr-icon{stroke-width:1.5;}

.fr-special-project-progress{display:grid;gap:10px;}
.fr-special-project-progress__label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;color:var(--muted-foreground,#888);font-size:14px;line-height:20px;}
.fr-special-project-progress__label strong{margin-left:auto;color:var(--foreground,#1a1a1a);font-variant-numeric:tabular-nums;}
.fr-special-project-progress progress{appearance:none;-webkit-appearance:none;display:block;width:100%;height:6px;overflow:hidden;border:0;border-radius:6px;color:var(--accent,#3f7cdf);background:var(--secondary,#f8f8f8);}
.fr-special-project-progress progress::-webkit-progress-bar{border-radius:6px;background:var(--secondary,#f8f8f8);}
.fr-special-project-progress progress::-webkit-progress-value{border-radius:6px;background:var(--accent,#3f7cdf);}
.fr-special-project-progress progress::-moz-progress-bar{border-radius:6px;background:var(--accent,#3f7cdf);}

.fr-special-project-draft-card{min-width:0;}
.fr-special-project-generator{display:grid;gap:20px;margin:0;}
.fr-special-project-draft-actions{margin:0;}
.fr-special-project-draft-actions .fr-btn{height:40px;min-height:40px;padding:0 16px;font-size:14px;line-height:20px;}
.fr-special-project-generator label{display:flex;flex-direction:column;gap:10px;min-width:0;font-size:14px;line-height:20px;}
.fr-special-project-generator label>span{min-height:40px;font-weight:500;}
.fr-special-project-generator textarea{box-sizing:border-box;width:100%;min-height:132px;max-height:320px;padding:12px 14px;resize:vertical;border:1px solid var(--border,#e5e5e5);border-radius:12px;color:var(--foreground,#1a1a1a);background:var(--input-background,#f8f8f8);font:inherit;line-height:1.6;}
.fr-special-project-generator textarea:focus-visible{outline:2px solid var(--accent,#3f7cdf);outline-offset:2px;}
.fr-special-project-generator .fr-special-project-actions{margin-top:0;}

/* People reuse the homepage author widget, but page through five authors on desktop. */
[data-fr-special-people] .fr-home-authors-widget__viewport{overflow:hidden;}
[data-fr-special-people] .fr-home-authors-widget__track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;width:100%;animation:none!important;transform:none!important;}
[data-fr-special-people] .fr-home-author-mini{width:auto;min-width:0;flex:none;}
[data-fr-special-people] .fr-home-author-mini__bio{display:-webkit-box;min-height:36px;max-height:36px;margin:0 0 12px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:18px;}

/* Key themes and latest contributions share one compact horizontal carousel pattern. */
.fr-special-project-topics-widget,.fr-special-project-supports-widget{overflow:hidden;margin:0;}
.fr-special-project-scroll-viewport{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;}
.fr-special-project-scroll-viewport::-webkit-scrollbar{display:none;}
.fr-special-project-scroll-track{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 64px)/5);gap:16px;min-width:100%;}
.fr-special-topic-card{display:flex;min-width:0;overflow:hidden;flex-direction:column;border-radius:14px;background:var(--secondary,#f8f8f8);scroll-snap-align:start;color:var(--foreground,#1a1a1a);}
.fr-special-topic-card__media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--accent-light,#e9f2ff);}
.fr-special-topic-card__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease;}
.fr-special-topic-card:hover .fr-special-topic-card__media img{transform:scale(1.05);}
.fr-special-topic-card__placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:var(--accent,#3f7cdf);}
.fr-special-topic-card__placeholder .fr-icon{width:28px;height:28px;stroke-width:1.5;}
.fr-special-topic-card__body{display:grid;gap:5px;padding:12px;}
.fr-special-topic-card__body strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:14px;line-height:19px;font-weight:600;}
.fr-special-topic-card__body small{color:var(--muted-foreground,#888);font-size:12px;line-height:16px;}
.fr-special-support-card{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;min-width:0;min-height:148px;padding:14px;border:1px solid var(--border,#e5e5e5);border-radius:14px;background:transparent;scroll-snap-align:start;color:var(--foreground,#1a1a1a);text-decoration:none;transition:border-color .2s ease;}
.fr-special-support-card:hover{border-color:var(--accent-light,#e9f2ff);color:var(--foreground,#1a1a1a);}
.fr-special-support-card__head{display:flex;align-items:center;gap:10px;min-width:0;}
.fr-special-support-card__avatar{display:block;flex:0 0 36px;width:36px;height:36px;overflow:hidden;border-radius:999px;background:var(--accent-light,#e9f2ff);}
.fr-special-support-card__avatar img{display:block;width:100%;height:100%;object-fit:cover;}
.fr-special-support-card__person{display:grid;min-width:0;gap:2px;}
.fr-special-support-card__person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:18px;font-weight:600;}
.fr-special-support-card__person small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground,#888);font-size:11px;line-height:15px;}
.fr-special-support-card__text{display:-webkit-box;max-height:57px;margin:0;overflow:hidden;color:var(--foreground,#1a1a1a);font-size:13px;line-height:19px;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;}

.fr-special-project-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-width:0;}
.fr-special-project-community-grid>:only-child{grid-column:1/-1;}
.fr-special-project-compact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.fr-special-project-compact-grid .fr-home-mini-card{margin:0;min-width:0;align-items:flex-start;}
.fr-special-project-compact-grid .fr-home-mini-card__body{min-width:0;}
.fr-special-project-compact-grid .fr-home-mini-card small{color:var(--muted-foreground,#888);}
.fr-special-project-map-layout{display:grid;gap:20px;min-width:0;}
.fr-special-project-map-stage,.fr-special-project-map-inspector{min-width:0;}
.fr-special-project-map-stage__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;}
.fr-special-project-map-stage__head span,.fr-special-project-map-inspector__eyebrow{display:block;color:var(--muted-foreground,#888);font-size:12px;line-height:1.5;margin-bottom:6px;}
.fr-special-project-map-stage__head p{max-width:380px;margin:0;color:var(--muted-foreground,#888);font-size:14px;line-height:1.6;}
.fr-special-project-results-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;list-style:none;padding:0;margin:20px 0 0;}
.fr-special-project-results-list li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:20px;}
.fr-special-project-results-list .fr-icon{width:18px;height:18px;flex:0 0 18px;color:var(--accent,#3f7cdf);}
.fr-special-project-faq{padding:20px;}
.fr-special-project-faq .fr-faq-list{gap:10px;}
.fr-special-project-faq .fr-faq-item{background:var(--secondary,#f8f8f8);border-radius:14px;}
.fr-special-project-faq .fr-faq-question{min-height:56px;padding:16px 18px;font-size:14px;line-height:20px;}
.fr-special-project-faq .fr-faq-answer{padding:0 18px 18px;}

@media(min-width:1200px){
    .fr-term-page-layout--special{--fr-post-grid-columns:3;}
}
@media(max-width:1199px){
    .fr-term-page-layout--special{display:block;max-width:100%;}
    .fr-special-project-sidebar-host{display:none;}
}
@media(max-width:1023px){
    .fr-special-project-info-grid,.fr-special-project-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .fr-special-project-generator .fr-special-project-info-grid{grid-template-columns:1fr;}
    .fr-special-project-generator label>span{min-height:0;}
    [data-fr-special-people] .fr-home-authors-widget__track{grid-template-columns:repeat(3,minmax(0,1fr));}
    .fr-special-project-scroll-track{grid-auto-columns:calc((100% - 32px)/3);}
}
@media(max-width:767px){
    .fr-project-special{--fr-special-section-gap:20px;--fr-special-feed-inset:4px;}
    .fr-category-hero--special .fr-category-hero__image{height:320px;}
    .fr-category-hero--special .fr-category-hero__body{padding:20px;}
    .fr-special-project-hero-overlay{min-height:190px;padding:20px;}
    .fr-special-project-hero-overlay .fr-category-hero__title-row{display:block!important;}
    .fr-category-hero--special .fr-category-hero__title-row h1{font-size:30px;line-height:1.15;}
    .fr-special-project-hero-overlay .fr-special-project-subtitle{font-size:16px;line-height:1.45;}
    .fr-special-project-hero-overlay .fr-project-page-description{display:none;}
    .fr-special-project-short-text--desktop{display:block;margin-bottom:10px!important;}
    .fr-special-project-short-text--mobile{display:block;}
    .fr-special-project-hero-actions{align-items:stretch;flex-wrap:wrap;}
    .fr-special-project-hero-actions .fr-term-hero-share{width:auto;grid-template-columns:minmax(0,1fr) 40px;flex:1 1 190px;}
    .fr-special-project-hero-actions .fr-category-hero__subscribe{width:auto;min-width:0;justify-content:center;}
    .fr-category-hero--special .fr-category-stats{display:flex!important;grid-template-columns:none;gap:12px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;}
    .fr-category-hero--special .fr-category-stats::-webkit-scrollbar{display:none;}
    .fr-category-hero--special .fr-category-stats>div,.fr-category-hero--special .fr-category-stats>button{flex:0 0 44%;scroll-snap-align:start;}
    .fr-category-hero--special .fr-post-card__top-badges{top:16px;left:16px;right:16px;}
    .fr-special-project-info-grid,.fr-special-project-community-grid,.fr-special-project-compact-grid,.fr-special-project-results-list{grid-template-columns:1fr;gap:16px;}
    .fr-special-project-map-stage__head{flex-direction:column;}
    .fr-special-project-generator textarea{font-size:16px;}
    [data-fr-special-people] .fr-home-authors-widget__track{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    .fr-special-project-scroll-track{grid-auto-columns:74%;gap:12px;}
    .fr-special-project-topics-widget,.fr-special-project-supports-widget{margin:0;}
    .fr-special-project-final{min-height:280px;padding:28px 20px;}
    .fr-special-project-final__content h2{font-size:24px;}
    .fr-special-project-final .fr-special-project-actions{width:100%;justify-content:center;}
    .fr-special-project-final .fr-btn{flex:1 1 180px;max-width:260px;}
}
@media(prefers-reduced-motion:reduce){
    .fr-project-hero-slide{transition:none;}
    .fr-project-hero-slide.is-active img{animation:none;}
    .fr-special-topic-card__media img{transition:none;}
}
