/* quicklinks_cards.css
   Homepage Quick Links (#qlinks_ul) as "B2" cards with an icon in the school colour.
   Approved by Mark 2026-12-04: 2 columns when the page is stacked (990px and narrower),
   1 column with 14.5px text on desktop. CSS only: no page markup changes.
   Card colour = the school's existing #qlinks_ul li colour (from its colour scheme).
   Icon circle = --header-color, icon = --header-font-color (both from the colour scheme).
   2026-12-05 (approved by Mark): the inner-page black button bar (footer_quicklinks.php,
   .footer_quicklinks_div) uses the same card layout and icons, in a quiet style:
   grey outline on black, white icons, no colour fill (so it does not compete with the
   footer mini tiles). 5 across on desktop, 2 columns when stacked. */

#qlinks_ul li a.quicklink,
.footer_quicklinks_div a.footer_quicklinks {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	box-sizing: border-box;
	width: 100%;
	font-weight: 400;
	line-height: 1.2 !important;
}
/* icon circle */
#qlinks_ul li a.quicklink::before,
.footer_quicklinks_div a.footer_quicklinks::before {
	content: "";
	flex: 0 0 auto;
	border-radius: 50%;
	background-color: var(--header-color);
}
/* icon drawn on top of the circle */
#qlinks_ul li a.quicklink::after,
.footer_quicklinks_div a.footer_quicklinks::after {
	content: "";
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--header-font-color);
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
}
#qlinks_ul a.quicklink[href^="calendar"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="calendar"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M8 3v4M16 3v4%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2216%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M8 3v4M16 3v4%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href^="bell_schedule"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="bell_schedule"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2213%22 r=%228%22/%3E%3Cpath d=%22M12 9v4l3 2M9 2h6%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2213%22 r=%228%22/%3E%3Cpath d=%22M12 9v4l3 2M9 2h6%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href^="counseling"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="counseling"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 12a8 8 0 0 1-11.6 7.1L4 21l1.9-5.4A8 8 0 1 1 21 12z%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href*="daily_bulletins"]::after, .footer_quicklinks_div a.footer_quicklinks[href*="daily_bulletins"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%223%22 width=%2216%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M8 8h8M8 12h8M8 16h5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%223%22 width=%2216%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M8 8h8M8 12h8M8 16h5%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href^="health_office"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="health_office"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%223%22/%3E%3Cpath d=%22M12 8v8M8 12h8%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%223%22/%3E%3Cpath d=%22M12 8v8M8 12h8%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href*="infinitecampus"]::after, .footer_quicklinks_div a.footer_quicklinks[href*="infinitecampus"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 9l10-5 10 5-10 5z%22/%3E%3Cpath d=%22M6 11v5c0 1.5 3 3 6 3s6-1.5 6-3v-5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 9l10-5 10 5-10 5z%22/%3E%3Cpath d=%22M6 11v5c0 1.5 3 3 6 3s6-1.5 6-3v-5%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href*="naviance"]::after, .footer_quicklinks_div a.footer_quicklinks[href*="naviance"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M15.5 8.5l-2 5-5 2 2-5z%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M15.5 8.5l-2 5-5 2 2-5z%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href^="registration"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="registration"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%224%22 width=%2214%22 height=%2217%22 rx=%222%22/%3E%3Cpath d=%22M9 4V2h6v2M9 11l2 2 4-4M9 17h6%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%225%22 y=%224%22 width=%2214%22 height=%2217%22 rx=%222%22/%3E%3Cpath d=%22M9 4V2h6v2M9 11l2 2 4-4M9 17h6%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href^="staff_directory"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="staff_directory"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223%22/%3E%3Cpath d=%22M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6%22/%3E%3Ccircle cx=%2217%22 cy=%229%22 r=%222.5%22/%3E%3Cpath d=%22M16 14c3 0 5 2.2 5 5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%228%22 r=%223%22/%3E%3Cpath d=%22M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6%22/%3E%3Ccircle cx=%2217%22 cy=%229%22 r=%222.5%22/%3E%3Cpath d=%22M16 14c3 0 5 2.2 5 5%22/%3E%3C/svg%3E"); }
#qlinks_ul a.quicklink[href^="transportation"]::after, .footer_quicklinks_div a.footer_quicklinks[href^="transportation"]::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%223%22 width=%2216%22 height=%2215%22 rx=%222%22/%3E%3Cpath d=%22M4 11h16M8 21v-3M16 21v-3%22/%3E%3Ccircle cx=%228%22 cy=%2215%22 r=%221%22/%3E%3Ccircle cx=%2216%22 cy=%2215%22 r=%221%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%223%22 width=%2216%22 height=%2215%22 rx=%222%22/%3E%3Cpath d=%22M4 11h16M8 21v-3M16 21v-3%22/%3E%3Ccircle cx=%228%22 cy=%2215%22 r=%221%22/%3E%3Ccircle cx=%2216%22 cy=%2215%22 r=%221%22/%3E%3C/svg%3E"); }

/* button bar: quiet style. The outline is on the card (div); the link inside has no border or fill. */
.footer_quicklinks_div > div { border: 1px solid #555; background: transparent; }
.footer_quicklinks_div > div:hover { border-color: #FFF; background: #222; }
.footer_quicklinks_div a.footer_quicklinks:link, .footer_quicklinks_div a.footer_quicklinks:visited, .footer_quicklinks_div a.footer_quicklinks:hover { border: 0 !important; background: none !important; text-decoration: none; color: #DDD; }
.footer_quicklinks_div > div:hover a.footer_quicklinks { color: #FFF; }
.footer_quicklinks_div a.footer_quicklinks::before { background-color: transparent; }
.footer_quicklinks_div a.footer_quicklinks::after { background-color: #DDD; }
.footer_quicklinks_div > div:hover a.footer_quicklinks::after { background-color: #FFF; }

/* ---------- desktop: one column, small icons, 14.5px text ---------- */
@media screen and (min-width: 991px) {
	#qlinks_ul { display: grid !important; grid-template-columns: 1fr; gap: 5px; padding: 0 !important; margin: 8px 0 0 !important; box-sizing: border-box; width: 100% !important; list-style: none; }
	.news-flex-container.footer_quicklinks_div { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 20px 24px 24px !important; box-sizing: border-box; }
	#qlinks_ul li, .footer_quicklinks_div > div { display: flex !important; width: auto !important; margin: 0 !important; padding: 0 !important; min-width: 0; box-sizing: border-box; border-radius: 8px; }
	.footer_quicklinks_div > div { max-width: none !important; }
	#qlinks_ul li:hover, .footer_quicklinks_div > div:hover { border-radius: 8px; }
	#qlinks_ul li a.quicklink, .footer_quicklinks_div a.footer_quicklinks { gap: 7px; min-height: 36px; padding: 3px 5px !important; font-size: 14.5px !important; }
	#qlinks_ul li a.quicklink::before, .footer_quicklinks_div a.footer_quicklinks::before { width: 28px; height: 28px; }
	#qlinks_ul li a.quicklink::after, .footer_quicklinks_div a.footer_quicklinks::after { left: 11px; width: 16px; height: 16px; }
}

/* ---------- stacked layout (tablets and phones): two columns, bigger icons ---------- */
@media screen and (max-width: 990px) {
	#qlinks_ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px !important; margin: 14px 0 20px !important; box-sizing: border-box; width: 100% !important; max-width: 100% !important; list-style: none; }
	.news-flex-container.footer_quicklinks_div { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 14px 20px !important; box-sizing: border-box; }
	#qlinks_ul li, .footer_quicklinks_div > div { display: flex !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; min-width: 0; box-sizing: border-box; border-radius: 10px; }
	#qlinks_ul li:hover, .footer_quicklinks_div > div:hover { border-radius: 10px; }
	#qlinks_ul li a.quicklink, .footer_quicklinks_div a.footer_quicklinks { gap: 10px; min-height: 64px; padding: 8px 10px !important; font-size: 14px !important; }
	#qlinks_ul li a.quicklink::before, .footer_quicklinks_div a.footer_quicklinks::before { width: 38px; height: 38px; }
	#qlinks_ul li a.quicklink::after, .footer_quicklinks_div a.footer_quicklinks::after { left: 19px; width: 20px; height: 20px; }
}
