/****** FILE: themes/gamry/css/pages/HubPage.css *****/
/* Section hub landing page — Support, Applications, Resources, Cells & Accessories.
   Spec: design_handoff_landing_pages, options 3a / 4a / 5a.

   Colour notes are tested values, not preferences: #5f6b72 is the lightest muted grey that
   still clears 4.5:1 on #fbfbfa at these sizes, and #7d878d (used elsewhere on the site)
   does not. Do not lighten these. */

.hub-page { max-width: 1040px; margin: 0 auto; padding: 8px 20px 48px; box-sizing: border-box; }

/* The breadcrumb lives in the shared .rd-cp shell, whose max-width is wider than this page's
   content column — left alone it sits ~100px to the left of the heading it belongs to. Pin it
   to the same column. */
.rd-cp--hub .rd-cp-headmax { max-width: 1040px; margin-inline: auto; padding: 0 20px; box-sizing: border-box; }

/* ---- Head ---- */

.hub-page .hub-head { margin-bottom: 30px; }

.hub-page .hub-eyebrow {
	font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #003e69;
	margin: 0 0 10px;
}

.hub-page .hub-h1 {
	font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
	font-size: 31px;
	line-height: 1.13;
	letter-spacing: -0.015em;
	color: #17242b;
	margin: 0 0 8px;
}

.hub-page .hub-intro { font-size: 15.5px; line-height: 1.6; color: #37444c; max-width: 640px; }
.hub-page .hub-intro p { margin: 0 0 10px; color: #37444c; }
.hub-page .hub-intro p:last-child { margin-bottom: 0; }

/* ---- Sections ---- */

.hub-page .hub-section { margin-bottom: 26px; }
.hub-page .hub-section:last-of-type { margin-bottom: 0; }

.hub-page .hub-section-title {
	font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
	font-weight: 600;
	font-size: 19px;
	line-height: 1.2;
	color: #17242b;
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 2px solid #003e69;
}

/* ---- Grid ----
   Grid `gap` only, never per-card margins: margins on cards fight the auto-fill track sizing
   and leave uneven gutters on the last row. The 240px minimum is the narrowest track that
   comfortably fits "Impedance Spectroscopy (EIS)" as a title plus a one-sentence description,
   and gives this 1040px column four tracks — the proportion the design mock shows on its own
   narrower canvas. Below 560px the grid collapses to one column, so the minimum never forces a
   horizontal scroll. */

.hub-page .hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
	gap: 12px;
}

/* Resources cards carry a format chip alongside the title and a longer description, so they
   need a wider track to avoid the chip wrapping under the title on every card. */
.hub-page .hub-grid:has(.hub-tile--tagged) {
	grid-template-columns: repeat(auto-fill, minmax(min(264px, 100%), 1fr));
}

/* ---- Cards ----
   The whole card is the link and therefore the whole card is the focus target. */

.hub-page .hub-tile {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 17px;
	background: #fff;
	border: 1px solid #e6eaec;
	border-radius: 11px;
	text-decoration: none !important;
	color: #17242b !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-page .hub-tile:hover,
.hub-page .hub-tile:focus-visible {
	border-color: #003e69;
	box-shadow: 0 8px 22px rgba(23, 36, 43, 0.07);
}

.hub-page .hub-tile:focus-visible {
	outline: 3px solid #003e69;
	outline-offset: 2px;
}

.hub-page .hub-tile-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.hub-page .hub-tile-title {
	font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.25;
	letter-spacing: -0.005em;
	color: #003e69 !important;
	margin: 0;
}

.hub-page .hub-tile:hover .hub-tile-title { color: #00567f !important; }

.hub-page .hub-tile-tag {
	flex: 0 0 auto;
	font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #00567f;
	background: #eef4f8;
	padding: 4px 7px;
	border-radius: 4px;
	white-space: nowrap;
	margin-top: 2px;
}

.hub-page .hub-tile-desc {
	font-size: 13.5px;
	line-height: 1.5;
	color: #4b565d !important;
	text-wrap: pretty;
}

/* ---- Cross-link strip ---- */

.hub-page .hub-footlinks {
	margin-top: 30px;
	background: #f2f5f6;
	border: 1px solid #e0e6e8;
	border-radius: 11px;
	padding: 18px 20px;
}

.hub-page .hub-footlinks-label {
	font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5f6b72;
	margin: 0 0 8px;
}

.hub-page .hub-footlinks-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.hub-page .hub-footlinks-list a {
	font-size: 14px;
	font-weight: 600;
	color: #003e69;
	text-decoration: none;
}
.hub-page .hub-footlinks-list a:hover { color: #00567f; text-decoration: underline; }

.hub-page .hub-footlinks-note { font-size: 12.5px; color: #5f6b72; margin: 10px 0 0; }

/* ---- Narrow ----
   320px is the WCAG 2.2 reflow floor the rest of this site is already held to. */

@media (max-width: 560px) {
	.hub-page .hub-grid,
	.hub-page .hub-grid:has(.hub-tile--tagged) { grid-template-columns: 1fr; }
	.hub-page .hub-h1 { font-size: 25px; }
	.hub-page .hub-tile-head { flex-wrap: wrap; }
}

