/* =========================================================
   pennants.css — the "College Pennants" colors.
   Five colors (red, blue, green, gold, purple) are spread
   over repeated things: menu items, Home numbers and tiles,
   quick filters, map bars and the floating caps. The colors
   themselves are set in base.css (--p-red … --p-purple).
   Remove this file's link in index.html to go back to one
   accent color everywhere.
   ========================================================= */

/* Hero: the highlighted words get a highlighter stroke */
.hero h1 .w.hi{color:var(--ink);background:linear-gradient(transparent 62%,var(--hl) 62%)}
.hero h1 em{color:var(--ink);background:linear-gradient(transparent 62%,var(--hl) 62%)}
.cap{opacity:.2}
.cap.c1 .cap-top,.cap.c1 .cap-base{fill:var(--p-red)}
.cap.c2 .cap-top,.cap.c2 .cap-base{fill:var(--p-blue)}
.cap.c3 .cap-top,.cap.c3 .cap-base{fill:var(--p-green)}
.cap.c4 .cap-top,.cap.c4 .cap-base{fill:var(--p-gold)}
.cap.c5 .cap-top,.cap.c5 .cap-base{fill:var(--p-purple)}

/* One color per item, in pennant order */
.stats>div:nth-child(5n+1),.tiles>.tile:nth-child(5n+1),.sp-chip:nth-child(5n+1){--pc:var(--p-red)}
.stats>div:nth-child(5n+2),.tiles>.tile:nth-child(5n+2),.sp-chip:nth-child(5n+2){--pc:var(--p-blue)}
.stats>div:nth-child(5n+3),.tiles>.tile:nth-child(5n+3),.sp-chip:nth-child(5n+3){--pc:var(--p-green)}
.stats>div:nth-child(5n+4),.tiles>.tile:nth-child(5n+4),.sp-chip:nth-child(5n+4){--pc:var(--p-gold)}
.stats>div:nth-child(5n+5),.tiles>.tile:nth-child(5n+5),.sp-chip:nth-child(5n+5){--pc:var(--p-purple)}

/* Numbers row */
.stats b{color:var(--pc)}
.stat-ring .fill{stroke:var(--pc)}

/* Section tiles: a small pennant flag in the corner */
.tile{position:relative;overflow:hidden}
.tile::before{content:"";position:absolute;top:0;right:18px;width:22px;height:30px;background:var(--pc);clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%);transition:height .25s cubic-bezier(.2,.7,.2,1)}
.tile .eyebrow{color:var(--pc)}
.tile h3{padding-right:34px}
.tile:hover{border-color:var(--pc)}
@media (hover:hover){.tile:hover::before{height:40px}}
.tiles>.tile::after{color:var(--pc)}
@media (hover:hover){.tile:hover h3{color:var(--pc)}}

/* Quick filters in the search panel */
.sp-chip{background:color-mix(in srgb,var(--pc) 12%,var(--surface));color:var(--pc)}
.sp-chip:hover{border-color:var(--pc)}
.sp-chip.on{background:var(--pc);color:var(--on-p)}

/* 3D map bars on Home: each state bar takes a pennant color */
.m3-bar:nth-of-type(5n+1){--bc:#FF5A6E}
.m3-bar:nth-of-type(5n+2){--bc:#8E97FF}
.m3-bar:nth-of-type(5n+3){--bc:#3FD59A}
.m3-bar:nth-of-type(5n+4){--bc:#FFB020}
.m3-bar:nth-of-type(5n+5){--bc:#C08BFF}
.m3-bar .f1,.m3-bar .f2{background:linear-gradient(to top,color-mix(in srgb,var(--bc) 35%,transparent),var(--bc));box-shadow:0 0 14px color-mix(in srgb,var(--bc) 65%,transparent)}
.m3-bar .cap{box-shadow:0 0 10px var(--bc)}
.m3-top li:nth-child(5n+1){--bc:#FF5A6E}.m3-top li:nth-child(5n+2){--bc:#8E97FF}.m3-top li:nth-child(5n+3){--bc:#3FD59A}.m3-top li:nth-child(5n+4){--bc:#FFB020}.m3-top li:nth-child(5n+5){--bc:#C08BFF}
.m3-top button i{background:var(--bc)}
.m3-top button b{color:var(--bc)}

/* Buttons that start an action use the red pennant */
.mc-go,.m3-open{background:var(--cta);color:var(--on-cta)}

/* The map under the bars: cool blue-violet instead of gold */
.m3-st.has{fill:rgba(142,151,255,.16)}
