/* ==========================================================================
   CSCS IT Partner area components (Red Bullet, Nov 2026). Uses the theme's colours (style.css :root --sk-*).
   Design: Trello "CSCS Group" > IT Partners section (desktop 1440, mobile 390).
   ========================================================================== */

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Shared: yellow buttons with icons */
.itp-btn i img { width: 18px; height: 18px; }

/* --- Page hero --------------------------------------------------------- */
.itp-hero__caption { margin: 0 auto; }
.itp-hero__eyebrow { display: block; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.02em; font-size: 16px; line-height: 1.5; }
.itp-hero__caption h1 { margin-bottom: 16px; }
.itp-hero .itp-hero__intro { margin: 0 auto; max-width: 800px; font-size: 18px; line-height: 1.6; } /* theme hero-section.css limits hero text to 614px */
.itp-hero__updated { margin: 16px auto 0; font-size: 14px; line-height: 1.5; color: #fff; } /* full white: 4.6:1 on #007AC2; auto margins centre the theme's 614px-wide hero paragraph (it sat left of centre on desktop) */
.itp-hero__button { margin-top: 32px; }
.itp-breadcrumbs + .content-part { padding-top: 40px; }

/* --- What's covered ------------------------------------------------------ */
.itp-checklist__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 13px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.itp-checklist__list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 0; font-size: 18px; line-height: 1.5; color: var(--sk-text); }
.itp-checklist__tick {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 4px;
	background: var(--sk-secondary);
}
.itp-checklist__tick::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 6px;
	height: 11px;
	border: solid var(--sk-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* --- Before you start + document block ---------------------------------- */
.itp-document .container { position: relative; z-index: 1; }
.itp-document__intro { margin-bottom: 32px; }
.itp-document__heading { margin: 0 0 16px; font-size: 22px; line-height: 1.4; }
.itp-document__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 32px;
	background: var(--sk-secondary);
	color: var(--sk-white);
}
.itp-document__info { display: flex; align-items: center; gap: 20px; min-width: 0; }
.itp-document__icon { flex: none; display: flex; width: 48px; }
.itp-document__icon img { width: 48px; height: auto; filter: brightness(0) invert(1); }
.itp-document__title { margin: 0; color: var(--sk-white); font-size: 18px; line-height: 1.4; font-weight: 600; }
.itp-document__details { margin: 4px 0 0; color: var(--sk-white); font-size: 13px; line-height: 1.5; }
.itp-document__part { white-space: nowrap; }
.itp-document__card .btn { flex: none; }

/* --- Quick find ---------------------------------------------------------- */
.itp-quick-find__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--itp-rows, 5), auto);
	grid-auto-flow: column;
	column-gap: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.itp-quick-find__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--sk-gray);
	font-size: 18px;
	line-height: 1.5;
}
.itp-quick-find__list li.is-column-end { border-bottom: 1px solid var(--sk-gray); }
.itp-quick-find__list a { color: var(--sk-secondary); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.itp-quick-find__list a:hover { color: var(--sk-blue); }

/* --- Notice --------------------------------------------------------------- */
.itp-notice-section .container { position: relative; z-index: 1; }
.itp-notice-section + .section-simple-content { padding-top: 0; }
.itp-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 24px;
	background: var(--sk-primary);
	color: var(--sk-black);
}
.itp-notice__icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: 4px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	font-style: normal;
}
.itp-notice__title { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--sk-black); }
.itp-notice__text { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--sk-black); }

/* --- Help prompt -------------------------------------------------------- */
.itp-help__inner { max-width: 780px; margin: 0 auto; }
.itp-help__icon { display: inline-flex; margin-bottom: 12px; }
.itp-help__icon img { width: 48px; height: auto; }
.itp-help__heading { margin: 0 0 8px; font-size: 24px; line-height: 1.35; }
.itp-help__text { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.itp-help__email { display: inline-flex; align-items: center; gap: 10px; color: var(--sk-black); text-decoration: underline; text-underline-offset: 3px; }
.itp-help__email:hover { color: var(--sk-secondary); }
.itp-help__email-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sk-primary); }
.itp-help__email-icon img { width: 16px; height: 16px; }

/* --- Useful links ------------------------------------------------------- */
.itp-links .container-fluid { position: relative; z-index: 1; }
.itp-links__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.itp-links__list li { margin: 0; padding: 0; }
.itp-links__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
	padding: 24px 28px;
	background: var(--sk-white);
	color: var(--sk-text);
	text-decoration: none;
	transition: box-shadow 0.3s ease;
}
.itp-links__card:hover { color: var(--sk-text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.itp-links__card:focus-visible { outline: 2px dashed var(--sk-white); outline-offset: 3px; }
.itp-links__title { display: block; margin-bottom: 6px; color: var(--sk-black); font-size: 20px; line-height: 1.35; font-weight: 500; }
.itp-links__desc { display: block; font-size: 14px; line-height: 1.5; }
.itp-links__icon {
	position: relative;
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--sk-black);
	background: var(--sk-primary);
}
.itp-links__icon::before { content: ""; position: absolute; left: 3px; top: 3px; width: 100%; height: 100%; border: 1px solid var(--sk-black); z-index: -1; }
.itp-links__icon img { width: 16px; height: 16px; }

/* --- Card test data ----------------------------------------------------- */
.itp-cards__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 24px;
	background: var(--sk-skeen);
}
.itp-cards__search { position: relative; display: flex; flex: 1 1 320px; max-width: 494px; }
.itp-cards__search input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--sk-black);
	border-right: 0;
	border-radius: 0;
	background: var(--sk-white);
	color: var(--sk-black);
	font-family: inherit;
	font-size: 16px;
}
.itp-cards__search input::placeholder { color: #6b6b6b; }
.itp-cards__search input:focus-visible { outline: 2px dashed var(--sk-black); outline-offset: 2px; }
.itp-cards__search-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--sk-black); background: var(--sk-primary); cursor: pointer; }
.itp-cards__search-btn:focus-visible { outline: 2px dashed var(--sk-black); outline-offset: 2px; }
.itp-cards__filters { display: flex; gap: 12px; }
.itp-cards__filter {
	position: relative;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid var(--sk-black);
	background: var(--sk-white);
	color: var(--sk-black);
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.itp-cards__filter::before { content: ""; position: absolute; left: 3px; top: 3px; width: calc(100% + 2px); height: calc(100% + 2px); border: 1px solid var(--sk-black); z-index: -1; transition: all 0.3s ease; }
.itp-cards__filter:hover, .itp-cards__filter.is-active { background: var(--sk-primary); }
.itp-cards__filter:focus-visible { outline: 2px dashed var(--sk-black); outline-offset: 4px; }

.itp-cards__app, .itp-cards__tools, .itp-document__card, .itp-links__card { isolation: isolate; }
.itp-cards__table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.itp-cards__table th {
	padding: 18px 32px;
	font-size: 18px;
	background: var(--sk-secondary);
	color: var(--sk-white);
	font-weight: 500;
	text-align: left;
}
.itp-cards__table td { padding: 16px 32px; color: var(--sk-text); vertical-align: middle; }
/* Column widths from the design (1248px table): scheme, scheme ID, surname, registration number, expiry, status */
.itp-cards__table th:nth-child(1) { width: 15.7%; }
.itp-cards__table th:nth-child(2) { width: 14.6%; }
.itp-cards__table th:nth-child(3) { width: 18.8%; }
.itp-cards__table th:nth-child(4) { width: 23.6%; }
.itp-cards__table th:nth-child(5) { width: 14.6%; }
.itp-cards__table tbody tr:nth-child(even) td { background: var(--sk-skeen); }
.itp-cards__number { white-space: nowrap; }
.itp-cards__copy {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-left: 8px;
	vertical-align: middle;
	border: 1px solid transparent;
	background: transparent;
	cursor: pointer;
}
.itp-cards__copy:hover { border-color: var(--sk-secondary); }
.itp-cards__copy:focus-visible { outline: 2px dashed var(--sk-secondary); outline-offset: 2px; }
.itp-cards__copied {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 6px);
	transform: translateX(-50%);
	padding: 2px 8px;
	background: var(--sk-black);
	color: var(--sk-white);
	font-size: 12px;
	line-height: 1.6;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
.itp-cards__copy.is-copied .itp-cards__copied { opacity: 1; }
.itp-pill {
	display: inline-block;
	min-width: 94px;
	padding: 4px 14px;
	border: 1px solid var(--sk-secondary);
	border-radius: 20px;
	background: var(--sk-secondary);
	color: var(--sk-white);
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}
.itp-pill--expired { border-color: var(--sk-gray); background: var(--sk-white); color: var(--sk-black); }
.itp-cards__empty { margin: 24px 0 0; text-align: center; }
.itp-cards__more { display: flex; justify-content: center; }
.itp-cards__more .btn:not([hidden]) { margin-top: 24px; }
.itp-cards__more .btn[hidden] { display: none; } /* .btn sets display, which would override [hidden] */

/* --- Tablet / phones --------------------------------------------------- */
@media (max-width: 991px) {
	.itp-checklist__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.itp-checklist__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.itp-checklist__list li { font-size: 14px; }
	.itp-checklist__tick { margin-top: 0; }
	.itp-document__card { flex-direction: column; align-items: stretch; padding: 24px 20px; }
	.itp-document__card .btn { justify-content: center; }
	.itp-document__part { display: block; white-space: normal; }
	.itp-document__heading { font-size: 16px; }
	.itp-document__icon, .itp-document__icon img { width: 30px; }
	.itp-document__sep { display: none; }
	.itp-quick-find__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
	.itp-quick-find__list li { padding: 12px 0; font-size: 16px; }
	.itp-quick-find__list li.is-column-end { border-bottom: 0; }
	.itp-quick-find__list li:last-child { border-bottom: 1px solid var(--sk-gray); }
	.itp-links__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.itp-links__card { padding: 20px; }
	.itp-help__heading { font-size: 22px; }
	.itp-help__icon img { width: 32px; }
	.itp-help__text { font-size: 15px; }
	.itp-notice__title { font-size: 16px; }
	.itp-links__title { font-size: 17px; }

	/* Card test data: rows become cards */
	.itp-cards__app { margin-left: -20px; margin-right: -20px; }
	.itp-cards__tools { padding: 20px; }
	.itp-cards__search { flex-basis: 100%; max-width: none; }
	.itp-cards__filters { width: 100%; gap: 10px; }
	.itp-cards__filter { flex: 1 1 0; min-height: 44px; padding: 8px 6px; font-size: 15px; font-weight: 400; white-space: nowrap; }
	.itp-cards__app { background: var(--sk-skeen); padding-bottom: 20px; }
	.itp-cards__table, .itp-cards__table tbody { display: block; }
	.itp-cards__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.itp-cards__table tbody { padding: 0 20px; }
	.itp-cards__table tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "scheme status" "id surname" "number expiry";
		gap: 12px 16px;
		margin-bottom: 12px;
		padding: 16px;
		border: 1px solid var(--sk-border);
		background: var(--sk-white);
	}
	.itp-cards__table tr[hidden] { display: none; }
	.itp-cards__table td, .itp-cards__table tbody tr:nth-child(even) td { padding: 0; background: none; font-size: 14px; }
	.itp-cards__table td::before { content: attr(data-label); display: block; color: #6b6b6b; font-size: 12px; line-height: 1.6; }
	.itp-cards__table tbody tr td.itp-cards__scheme { grid-area: scheme; align-self: center; color: var(--sk-black); font-size: 16px; font-weight: 600; }
	.itp-pill { min-width: 72px; padding: 2px 9px; font-size: 13px; }
	.itp-cards__table .itp-cards__status { grid-area: status; justify-self: end; align-self: center; }
	.itp-cards__table .itp-cards__scheme::before, .itp-cards__table .itp-cards__status::before { display: none; }
	.itp-cards__table .itp-cards__id { grid-area: id; }
	.itp-cards__table .itp-cards__surname { grid-area: surname; }
	.itp-cards__table .itp-cards__number { grid-area: number; }
	.itp-cards__table .itp-cards__expiry { grid-area: expiry; }
	.itp-cards__copy { width: 32px; height: 32px; border-color: var(--sk-border); }
	.itp-cards__more .btn { width: calc(100% - 40px); justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.itp-links__card, .itp-cards__filter, .itp-cards__copied { transition: none; }
}

/* Links in text on the light-blue (skeen) background: #00609F (5.9:1 on #E4F1F8; the theme's #007AC2 is 3.99:1) */
.bg-skeen .itp-document__intro a, .bg-skeen .itp-notice-section a, .bg-skeen .content-info a { color: #00609f; }

/* Scroll-in animations off for keyboard users (set by it-partner.js on the first Tab) and for people who ask for
   reduced motion, so nothing below the fold stays hidden from Tab. IT Partner area only. */
.itp-keyboard body.it-partner-area .wow { visibility: visible !important; animation-name: none !important; }
@media (prefers-reduced-motion: reduce) {
	body.it-partner-area .wow { visibility: visible !important; animation-name: none !important; }
}

/* ==========================================================================
   Design pass (20 Nov): the theme's own sections as they appear in the IT Partner designs. IT Partner area only
   (body.it-partner-area), so the members area and the rest of the site are unchanged.
   ========================================================================== */

/* Landing + Menu: two cards = two equal halves, larger text (design 04/05) */
@media (min-width: 992px) {
	.it-partner-area .new-card-blog-row .row > div:first-child:nth-last-child(2),
	.it-partner-area .new-card-blog-row .row > div:first-child:nth-last-child(2) + div { flex: 0 0 50%; max-width: 50%; width: 50%; }
	.it-partner-area .new-card-blog-row .row > div:first-child:nth-last-child(2) .new-card-blog,
	.it-partner-area .new-card-blog-row .row > div:first-child:nth-last-child(2) + div .new-card-blog { padding: 40px 64px 32px; }
	.it-partner-area .new-card-blog h3 { font-size: 20px; line-height: 1.4; }
	.it-partner-area .new-card-blog p { font-size: 14px; line-height: 1.5; }
}

/* Hero: a little more space under the button on desktop (design) */
@media (min-width: 768px) {
	.it-partner-area .itp-hero { padding-bottom: 130px; }
}

/* Page intro text: 24px (the theme's "intro text" is 32px) */
.it-partner-area .intro-text, .it-partner-area .intro-text p { font-size: 24px; line-height: 50px; }

/* "Who it's for": image proportions and the download icon on its Download PDF button */
.it-partner-area .content-img img { width: 100%; aspect-ratio: 597 / 363; object-fit: cover; }
.it-partner-area a.btn[href*="document=api-pdf"]:not(.itp-btn) {
	padding-left: 44px;
	background-image: url(../images/download.svg);
	background-repeat: no-repeat;
	background-position: 18px center;
	background-size: 18px 18px;
}

/* Sloped top / bottom edge for coloured sections, traced from the designs (add "section-wave-top" /
   "section-wave-bottom" in the section's "Extra class"; white shapes in images/it-partner/wave-*.svg). */
.section-wave-top, .section-wave-bottom { position: relative; }
.section-wave-top::before, .section-wave-bottom::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
	height: 30px;
	z-index: 2;
	pointer-events: none;
	background: 0 0 / 100% 100% no-repeat;
}
.section-wave-top::before { top: -1px; background-image: url(../images/it-partner/wave-top.svg); }
.section-wave-bottom::after { bottom: -1px; background-image: url(../images/it-partner/wave-bottom.svg); }

/* Card test data: two intro columns (section extra class "itp-text-columns") */
.itp-text-columns h3 { font-size: 24px; line-height: 1.35; }

/* My account: wider column, Log out button (design 08) */
.it-partner-area .my-account-section { max-width: 604px; }
.itp-logout { margin-top: 32px; }
.itp-logout .btn { width: 100%; justify-content: center; }
.itp-logout .btn i img { width: 18px; height: 18px; }

/* Header: "Return to CSCS Group" and "CSCS Smart Check status" side by side (CSCS, 1 Dec); stacked on phones */
.itp-header-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; }

/* My account menu (header): the blue name card fills the dropdown's width. Without an organisation (staff
   accounts) the card only holds the name and shrank to the name's width (its link is a flex item). */
.it-partner-area .member-header .header-top-menu li ul.sub-menu li.menu-card-outer > a { flex: 1 1 auto; }

@media (max-width: 767px) {
	.section-wave-top::before, .section-wave-bottom::after { height: 14px; }

	/* Header links stacked, right-aligned like the label; 24px tall each (WCAG 2.2 target size, they sit together) */
	.member-header .mobile-header .itp-header-links { flex-direction: column; align-items: flex-end; }
	.member-header .mobile-header .itp-header-links .header-top-btn { min-height: 24px; }

	/* Hero (design: Mobile 01/02) */
	.it-partner-area .itp-hero { padding-top: 40px; padding-bottom: 40px; }
	.it-partner-area .itp-hero h1 { font-size: 32px; line-height: 1.15; }
	.it-partner-area .itp-hero__eyebrow { font-size: 13px; }
	.it-partner-area .itp-hero__intro { font-size: 15px; }
	.it-partner-area .itp-hero__button { margin-top: 24px; }
	.it-partner-area .itp-hero__button .btn { width: 100%; justify-content: center; }

	/* Type: headings 24px medium, text 15px (the components' own text sizes are kept) */
	.it-partner-area .content-part h2 { font-size: 24px; font-weight: 500; line-height: 1.3; }
	.it-partner-area .content-part .itp-help__heading { font-size: 22px; font-weight: 600; }
	.it-partner-area :where(.content-part) p:not([class*="itp-"]) { font-size: 15px; line-height: 1.6; }
	.it-partner-area .intro-text { text-align: left !important; }
	.it-partner-area .intro-text, .it-partner-area .intro-text p { font-size: 18px; line-height: 1.6; }
	.itp-text-columns h3 { font-size: 22px; font-weight: 500; }
	.itp-text-columns .row { --bs-gutter-y: 24px; }
	.it-partner-area .accordion-button { font-size: 16px; font-weight: 500; }
	.itp-cards__copy img { width: 14px; height: 14px; }
}
