/* =========================================================
   NEDA eCAMPUS — THE NEDA TOOLS PAGE (/neda-tools/)
   Loaded only on that page, after neda-content-page.css and
   neda-content-aurora.css. See src/NedaTools.php.

   DIRECTION A, "the family and its spotlights" (owner, 2026-11-17:
   "the style of this page is so rudimentary and basic. you just
   created boxes and placed items" - then, of three mock-ups, "Build
   A"). What changed from the card list of 4.119.0, and why:

   - The opening is centred and ends in the FAMILY ROW: one tile per
     tool with its brand-kit mark, its name and its state. It is the
     list of links that was already under the title, dressed by
     neda_ui_tools_family() - no new words, nothing in the page changed.
   - Each tool is a SPOTLIGHT, not a card: no plate, no shadow round
     the text. Spotlights alternate the Mild Aurora ground with a white
     band that runs the full width of the window. Product-family pages
     that read as designed (Stripe, Adobe, HubSpot, Linear) carry the
     identity in the mark and the picture and keep the frame quiet;
     that is the move.
   - The tagline is the headline people see; the h2 stays the tool's
     name, so the outline a screen reader walks is unchanged.
   - What it does is a ruled list, not dots.
   - The picture is larger and rounder and wears the tool's mark as a
     badge. The two tools with no photograph yet (eCampus, Creator) show
     their mark on a Neda Aurora panel instead of a blank one.

   Kept from the gates of 2026-11-11: no coloured strip on any edge
   (every frame is all-round or none); one sticker style for every
   state; the tool group is the jump target (F1); a phone does not
   scroll past empty panels (F7); text before picture in the source.

   Every word is in the page's own blocks; this file only lays them out.
   Logical properties throughout, so Arabic, Persian and Sorani mirror.
   ========================================================= */

/* ---------------------------------------------------------
   1. THE OPENING
   --------------------------------------------------------- */

body.neda-content-page .neda-tools-hero {
	padding-block: clamp(36px, 6vw, 88px) clamp(28px, 5vw, 72px);
}

body.neda-content-page .neda-tools-hero__cols {
	gap: clamp(24px, 4vw, 56px);
	align-items: center !important;
	margin: 0;
}

/* The opening's picture slot has never been filled. Until it is, the
   column steps out and the words take the centre; once the owner chooses
   a picture in the editor the two-column opening comes back by itself. */
body.neda-content-page .neda-tools-hero__media:has(> .neda-tools__media--empty) {
	display: none;
}

body.neda-content-page .neda-tools-hero__cols:not(:has(.neda-tools-hero__media > .neda-tools__media:not(.neda-tools__media--empty))) > .neda-tools-hero__text {
	flex: 1 1 100% !important;
	text-align: center;
}

body.neda-content-page .neda-tools-hero__text > * {
	margin-block: 0;
}

body.neda-content-page .neda-tools-hero__text > * + * {
	margin-block-start: 16px;
}

/* The eyebrow over the page title: the About "Why" mark exactly (a
   28x3 cherry rule before the words, black, no tracking). Not
   uppercased: it is the page's own name, "Neda Tools". Inline-block, so
   centring centres the rule and the words together. */
body.neda-content-page .neda-cp-band p.neda-tools__eyebrow {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-inline-start: 40px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	color: #000000;
}

body.neda-content-page .neda-cp-band p.neda-tools__eyebrow::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.55em;
	inline-size: 28px;
	block-size: 3px;
	border-radius: 2px;
	background: #D7263D;
}

body.neda-content-page .neda-cp-band .neda-tools-hero__title {
	max-width: 18ch;
	margin-inline: auto;
	color: #000000;
	font-size: clamp(32px, 4.6vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0;
}

body.neda-content-page .neda-cp-band p.neda-tools-hero__lede {
	max-width: 60ch;
	margin-inline: auto;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.78);
}

/* ---------------------------------------------------------
   2. THE FAMILY ROW - the six links under the title
   Each link is one tile: mark, name, state. Navigation, so the tile is
   the link and nothing inside it is a second control. White plate with
   the house two-layer elevation, 16px corners, no edge colour.
   Pointer: the name turns cherry and underlines, the tile rises 3px.
   Keyboard: the same, plus the cherry ring outside the tile.
   --------------------------------------------------------- */

body.neda-content-page ul.neda-tools__index {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
	max-width: 1080px;
	margin: clamp(32px, 4vw, 48px) auto 0 !important;
	padding: 0;
	list-style: none;
	text-align: center;
}

@media (max-width: 960px) {
	body.neda-content-page ul.neda-tools__index {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	body.neda-content-page ul.neda-tools__index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

body.neda-content-page ul.neda-tools__index > li {
	margin: 0;
	padding: 0;
}

body.neda-content-page ul.neda-tools__index a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	block-size: 100%;
	padding: 20px 10px 16px;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.18);
	color: #000000;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.neda-content-page ul.neda-tools__index .neda-tools__jumpmark {
	display: block;
	inline-size: 52px;
	block-size: 52px;
	margin-block-end: 4px;
}

body.neda-content-page ul.neda-tools__index .neda-tools__jumpname {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

/* The bar name may wrap here ("Neda | Communities / of Practice"): a
   tile is narrower than any other place the name is set. */
body.neda-content-page ul.neda-tools__index .neda-tools__jumpname,
body.neda-content-page ul.neda-tools__index .neda-tools__jumpname .notranslate {
	white-space: normal;
	overflow-wrap: break-word;
}

/* The state, in words, with a dot that only repeats them: filled cyan
   for live, an open ring for not yet. */
body.neda-content-page ul.neda-tools__index .neda-tools__jumpstate {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.74);
}

body.neda-content-page ul.neda-tools__index .neda-tools__jumpstate::before {
	content: "";
	display: inline-block;
	inline-size: 8px;
	block-size: 8px;
	margin-inline-end: 6px;
	border-radius: 50%;
	vertical-align: 1px;
	background: transparent;
	box-shadow: inset 0 0 0 1.5px #000000;
}

body.neda-content-page ul.neda-tools__index .neda-tools__jumpstate--live::before {
	background: #0EC4C5;
	box-shadow: none;
}

body.neda-content-page ul.neda-tools__index a:hover,
body.neda-content-page ul.neda-tools__index a:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 20px 36px -14px rgba(0, 0, 0, 0.24);
}

body.neda-content-page ul.neda-tools__index a:hover .neda-tools__jumpname,
body.neda-content-page ul.neda-tools__index a:focus-visible .neda-tools__jumpname {
	color: #D7263D;
	text-decoration-color: currentColor;
}

body.neda-content-page ul.neda-tools__index a:focus-visible {
	outline: 3px solid #D7263D;
	outline-offset: 3px;
}

/* Smaller tiles on a phone, so the row is a quick index rather than half
   a screen of boxes before the first tool (design gate 2026-11-17).
   After the base tile rules on purpose: same specificity, so order wins. */
@media (max-width: 520px) {
	body.neda-content-page ul.neda-tools__index a {
		gap: 4px;
		padding: 12px 8px;
		border-radius: 14px;
	}

	body.neda-content-page ul.neda-tools__index .neda-tools__jumpmark {
		inline-size: 36px;
		block-size: 36px;
		margin-block-end: 2px;
	}

	body.neda-content-page ul.neda-tools__index .neda-tools__jumpname {
		font-size: 14px;
	}
}

/* ---------------------------------------------------------
   3. THE SPOTLIGHTS
   --------------------------------------------------------- */

body.neda-content-page .neda-tools-list {
	padding-block: 0;
	counter-reset: neda-tool;
}

body.neda-content-page .neda-cp-band.neda-tools-list > .neda-tools__tool + .neda-tools__tool {
	margin-block-start: 0;
}

/* No card. The band is drawn by a border-image whose outset reaches the
   edges of the window: it paints behind the section without widening
   it, and an outset is ink overflow, so it never makes the page scroll
   sideways. The first spotlight is white, so the opening (on the Mild
   Aurora) visibly ends; then they alternate, and the closing is white
   again after the sixth.

   An exception, recorded on purpose: on the other Mild Aurora pages the
   page's own bands step back (2026-10-11). Here the owner chose the
   alternating bands with mock A in front of him (2026-11-17); it is not
   a pattern to copy to other pages. */
body.neda-content-page .neda-tools__tool {
	counter-increment: neda-tool;
	padding-block: clamp(44px, 7vw, 104px);
	padding-inline: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

body.neda-content-page .neda-tools__tool:nth-of-type(odd),
body.neda-content-page .neda-cp-band.neda-tools-close {
	border-image: linear-gradient(#FFFFFF 0 0) fill 0 / 0 / 0 100vmax;
}

body.neda-content-page .neda-tools__cols {
	gap: clamp(28px, 5vw, 72px);
	align-items: center !important;
	margin: 0;
}

/* The text comes FIRST in the page (a screen reader meets each tool's
   heading before its picture); the picture is placed by order. On a
   wide screen it alternates sides, starting at the start edge. */
body.neda-content-page .neda-tools__cols > .neda-tools__mediacol {
	order: -1;
}

body.neda-content-page .neda-tools__tool:nth-of-type(even) .neda-tools__cols > .neda-tools__mediacol {
	order: 1;
}

@media (min-width: 782px) {
	body.neda-content-page .neda-tools__cols > .neda-tools__mediacol {
		flex: 0 0 46% !important;
	}

	body.neda-content-page .neda-tools__cols > .neda-tools__text {
		flex: 1 1 0 !important;
		min-width: 0;
	}
}

@media (max-width: 781px) {
	/* Below the columns breakpoint the picture leads the spotlight... */
	body.neda-content-page .neda-tools__tool:nth-of-type(even) .neda-tools__cols > .neda-tools__mediacol {
		order: -1;
	}

	/* ...once there is one. A phone is not made to scroll past a panel
	   that holds only a mark the heading already shows (gate F7). */
	body.neda-content-page .neda-tools__mediacol:has(> .neda-tools__media--empty) {
		display: none;
	}
}

/* The words. The column is a wrapping row so the mark, the name and the
   state can share the first line; everything else takes a whole line. */
body.neda-content-page .neda-tools__text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 12px;
}

body.neda-content-page .neda-tools__text > * {
	flex: 0 0 100%;
	margin-block: 0;
}

/* The running number, 01-06. Decorative: the empty alternative after
   the slash keeps it out of the accessibility tree, and a reader
   already hears the headings in order. */
body.neda-content-page .neda-tools__text::before {
	content: counter(neda-tool, decimal-leading-zero);
	content: counter(neda-tool, decimal-leading-zero) / "";
	flex: 0 0 100%;
	margin-block-end: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: rgba(0, 0, 0, 0.74);
}

body.neda-content-page .neda-cp-band h2.neda-tools__name {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 1 auto;
	font-size: 22px;
	line-height: 1.25;
}

/* The tool's mark before its name: the brand-kit icons the header menu
   already uses (assets/tools/icons/), drawn by CSS so the heading's text
   stays exactly the name the brand lock wraps. */
body.neda-content-page .neda-cp-band h2.neda-tools__name::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 40px;
	block-size: 40px;
	background: center / contain no-repeat;
}

body.neda-content-page .neda-tools__tool--ecampus h2.neda-tools__name::before { background-image: url("tools/icons/neda-ecampus.svg"); }
body.neda-content-page .neda-tools__tool--survey h2.neda-tools__name::before { background-image: url("tools/icons/neda-survey.svg"); }
body.neda-content-page .neda-tools__tool--research h2.neda-tools__name::before { background-image: url("tools/icons/neda-research.svg"); }
body.neda-content-page .neda-tools__tool--creator h2.neda-tools__name::before { background-image: url("tools/icons/neda-creator.svg"); }
body.neda-content-page .neda-tools__tool--achievements h2.neda-tools__name::before { background-image: url("tools/icons/neda-achievements.svg"); }
body.neda-content-page .neda-tools__tool--communities h2.neda-tools__name::before { background-image: url("tools/icons/neda-communities.svg"); }

/* The state, in words: one sticker style for all three (design gate -
   the lights already mean course types here), light fill, black ink,
   the house pill shape. Beside the name now, not under it. */
body.neda-content-page .neda-cp-band p.neda-tools__status {
	display: inline-block;
	flex: 0 0 auto;
	padding: 2px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	color: #000000;
	background: #D8F2F2;
}

/* The tagline is what the eye takes first. */
body.neda-content-page .neda-cp-band p.neda-tools__tagline {
	max-width: 20ch;
	margin-block-start: 22px;
	font-size: clamp(28px, 3.3vw, 42px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
}

body.neda-content-page .neda-cp-band p.neda-tools__desc {
	max-width: 56ch;
	margin-block-start: 16px;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(0, 0, 0, 0.78);
}

/* What it does: a ruled list - a hairline over each item - in two
   columns once each column has room for a line of words. */
body.neda-content-page ul.neda-tools__features {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 32px;
	margin-block-start: 28px !important;
	padding: 0;
	list-style: none;
}

@media (min-width: 1000px) {
	body.neda-content-page ul.neda-tools__features {
		grid-template-columns: 1fr 1fr;
	}
}

body.neda-content-page ul.neda-tools__features > li {
	margin: 0;
	padding-block: 14px;
	border-block-start: 1px solid rgba(0, 0, 0, 0.14);
	color: #000000;
	font-size: 15px;
	line-height: 1.55;
}

body.neda-content-page ul.neda-tools__features > li > strong {
	display: block;
	margin-block-end: 2px;
	font-size: 16px;
	font-weight: 700;
}

/* Not available yet: an INFO box - light gold, full 2px gold border. */
body.neda-content-page .neda-cp-band p.neda-tools__note {
	max-width: none;
	margin-block-start: 18px;
	padding: 10px 14px;
	border: 2px solid #F2B705;
	border-radius: 10px;
	background: #FDF0D6;
	font-size: 14px;
	line-height: 1.5;
}

body.neda-content-page .neda-tools__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin-block-start: 24px !important;
}

/* ---------------------------------------------------------
   4. PICTURES
   --------------------------------------------------------- */

body.neda-content-page .neda-tools__mediacol {
	position: relative;
}

body.neda-content-page .neda-tools__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	inline-size: 100%;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.18);
}

body.neda-content-page .neda-tools__media img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-radius: 22px;
}

/* The owner's photographs come as <picture> (WebP, JPEG fallback) inside
   the slot: the wrapper fills it so the <img> rule above still crops. */
body.neda-content-page .neda-tools__media > picture {
	display: block;
	inline-size: 100%;
	block-size: 100%;
}

/* A hairline frame, so a photograph whose edge is near-white (Research's
   corner, Communities' wall) does not dissolve into a white band. A frame
   all round, not a stripe (design gate, 2026-11-11). */
body.neda-content-page .neda-tools__media--picture {
	outline: 1px solid rgba(0, 0, 0, 0.08);
	outline-offset: -1px;
}

/* The tool's mark as a badge on the picture's start-bottom corner: a
   white tile, all round, overlapping the frame. Decorative - the name
   beside it says which tool this is. */
body.neda-content-page .neda-tools__mediacol::after {
	content: "";
	position: absolute;
	inset-inline-start: -18px;
	inset-block-end: -18px;
	inline-size: 84px;
	block-size: 84px;
	border-radius: 22px;
	background: #FFFFFF center / 50px 50px no-repeat;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.18);
}

body.neda-content-page .neda-tools__tool--ecampus .neda-tools__mediacol::after { background-image: url("tools/icons/neda-ecampus.svg"); }
body.neda-content-page .neda-tools__tool--survey .neda-tools__mediacol::after { background-image: url("tools/icons/neda-survey.svg"); }
body.neda-content-page .neda-tools__tool--research .neda-tools__mediacol::after { background-image: url("tools/icons/neda-research.svg"); }
body.neda-content-page .neda-tools__tool--creator .neda-tools__mediacol::after { background-image: url("tools/icons/neda-creator.svg"); }
body.neda-content-page .neda-tools__tool--achievements .neda-tools__mediacol::after { background-image: url("tools/icons/neda-achievements.svg"); }
body.neda-content-page .neda-tools__tool--communities .neda-tools__mediacol::after { background-image: url("tools/icons/neda-communities.svg"); }

/* No photograph yet: the full Neda Aurora (a highlighted panel, as on
   the Admin Area), untouched, with the tool's mark on a white plate at
   its centre - the badge's own shape at a larger size, so the page has
   one shape language and the slot reads as the tool, not as a hole.
   (Design gate 2026-11-17: an earlier white disc laid over the Aurora
   read as a logo in a halo.) No badge here: the mark is the picture. */
body.neda-content-page .neda-tools__mediacol:has(> .neda-tools__media--empty)::after {
	content: none;
}

body.neda-content-page .neda-tools__media--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, #D8F2F2 0%, #F1F3D6 100%) #F1F3D6;
}

body.neda-content-page .neda-tools__media--empty::before {
	content: "";
	inline-size: clamp(132px, 16vw, 200px);
	aspect-ratio: 1;
	border-radius: 28px;
	background: #FFFFFF var(--neda-tools-mark, none) center / 58% no-repeat;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.18);
}

body.neda-content-page .neda-tools__tool--ecampus { --neda-tools-mark: url("tools/icons/neda-ecampus.svg"); }
body.neda-content-page .neda-tools__tool--survey { --neda-tools-mark: url("tools/icons/neda-survey.svg"); }
body.neda-content-page .neda-tools__tool--research { --neda-tools-mark: url("tools/icons/neda-research.svg"); }
body.neda-content-page .neda-tools__tool--creator { --neda-tools-mark: url("tools/icons/neda-creator.svg"); }
body.neda-content-page .neda-tools__tool--achievements { --neda-tools-mark: url("tools/icons/neda-achievements.svg"); }
body.neda-content-page .neda-tools__tool--communities { --neda-tools-mark: url("tools/icons/neda-communities.svg"); }

/* The opening's own slot, if a picture is ever chosen for it. */
body.neda-content-page .neda-tools-hero .neda-tools__media {
	aspect-ratio: 3 / 2;
}

@media (max-width: 781px) {
	/* One column: the heading's mark sits just under the picture, so a
	   badge on the picture would show the same mark twice in a row
	   (design gate 2026-11-17). The overlap earns its place only beside
	   the words, on a wide screen. */
	body.neda-content-page .neda-tools__mediacol::after {
		content: none;
	}

	body.neda-content-page .neda-tools__media,
	body.neda-content-page .neda-tools__media img {
		border-radius: 18px;
	}

	body.neda-content-page .neda-tools__text::before {
		margin-block-start: 14px;
	}
}

/* ---------------------------------------------------------
   5. CLOSING
   --------------------------------------------------------- */

body.neda-content-page .neda-tools-close {
	padding-block: clamp(56px, 7vw, 96px) clamp(56px, 7vw, 96px);
}

body.neda-content-page .neda-cp-band.neda-tools-close > * {
	max-width: 760px;
	margin-inline: auto !important;
	text-align: center;
}

body.neda-content-page .neda-cp-band.neda-tools-close h2 {
	font-size: clamp(24px, 2.6vw, 30px);
}

body.neda-content-page .neda-cp-band.neda-tools-close .neda-tools__actions {
	justify-content: center;
}

/* ---------------------------------------------------------
   6. MOTION AND FORCED COLOURS
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	body.neda-content-page ul.neda-tools__index a,
	body.neda-content-page ul.neda-tools__index .neda-tools__jumpname {
		transition: none;
	}

	body.neda-content-page ul.neda-tools__index a:hover,
	body.neda-content-page ul.neda-tools__index a:focus-visible {
		transform: none;
	}
}

/* The shadows, the bands and the aurora are gone: tiles and panels keep
   an edge, and the name still underlines under the pointer. */
@media (forced-colors: active) {
	body.neda-content-page ul.neda-tools__index a,
	body.neda-content-page .neda-tools__media--empty {
		border: 1px solid CanvasText;
	}

	body.neda-content-page ul.neda-tools__index .neda-tools__jumpstate--live::before {
		background: CanvasText;
	}

	body.neda-content-page ul.neda-tools__index a:focus-visible {
		outline: 3px solid Highlight !important;
	}

	body.neda-content-page .neda-tools__media--empty::before {
		border: 1px solid CanvasText;
	}
}
