/* Visuals of the pages (inc/visuals.php): diagrams and charts in HTML, sized by their container. */
.nl-vis {
	container-type: inline-size;
	margin: 0;
	padding: clamp(1.1rem, 2.4vw, 1.6rem);
	background: #fff;
	border: 1px solid var(--nl-line, #e3e8ee);
	border-radius: 18px;
	box-shadow: var(--nl-shadow);
	color: var(--nl-text, #1b2a3a);
	font-size: .95rem;
	line-height: 1.5;
	text-align: left;
}
.nl-vis__head { display: flex; flex-direction: column; gap: .25rem; margin: 0 0 1.15rem; padding: 0; text-align: left; }
.nl-vis__title { font-family: var(--nl-display); font-size: 1.05rem; line-height: 1.3; color: var(--nl-ink, #0d2f4f); }
.nl-vis__note { font-size: .82rem; color: var(--nl-muted, #5b6b7c); }
.nl-vis-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.nl-vis ol, .nl-vis ul { list-style: none; margin: 0; padding: 0; }
.nl-vis li { margin: 0; }
.nl-vis strong { color: var(--nl-ink, #0d2f4f); }
.nl-split--vis > .wp-block-column:has(> .nl-vis) { align-self: center; }
.nl-vis-band { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.nl-vis-band__text { max-width: var(--nl-measure, 42rem); margin: clamp(1.5rem, 3vw, 2.25rem) auto 0; }

/* Steps of a process: on a line, one under the other in a narrow box. */
.nl-vis-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1.1rem; }
.nl-vis-steps li { position: relative; display: flex; flex-direction: column; gap: .3rem; padding-top: 3.1rem; }
.nl-vis-steps li::before { content: ""; position: absolute; top: 1.15rem; left: 2.9rem; right: -.8rem; height: 2px; background: linear-gradient(90deg, var(--nl-gold, #ffc400), var(--nl-line, #e3e8ee)); }
.nl-vis-steps li:last-child::before { display: none; }
.nl-vis-steps__n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: var(--nl-navy, #0d2f4f); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 0 0 4px var(--nl-gold-soft, #fff6d6); }
.nl-vis-steps strong { line-height: 1.3; }
.nl-vis-steps em { align-self: flex-start; font-style: normal; font-size: .75rem; font-weight: 700; color: #7a5d00; background: var(--nl-gold-soft, #fff6d6); border-radius: 99px; padding: .1rem .55rem; }
.nl-vis-steps li > span:last-child { font-size: .87rem; color: var(--nl-muted, #5b6b7c); }
@container (max-width: 760px) {
	.nl-vis-steps { grid-template-columns: 1fr; gap: 1rem; }
	.nl-vis-steps li { padding: 0 0 0 3.3rem; min-height: 2.35rem; }
	.nl-vis-steps li::before { top: 2.6rem; bottom: -.9rem; left: 1.13rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--nl-gold, #ffc400), var(--nl-line, #e3e8ee)); }
}

/* Bars from the settings, in a table. */
.nl-vis-bars { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: none; font-size: .92rem; }
.nl-vis-bars th, .nl-vis-bars td { padding: .6rem 0; border: 0; background: none; text-align: left; vertical-align: middle; }
.nl-vis-bars tbody tr + tr > * { border-top: 1px dashed var(--nl-line, #e3e8ee); }
.nl-vis-bars tbody th { width: 40%; padding-right: 1rem; font-weight: 600; color: var(--nl-ink, #0d2f4f); line-height: 1.35; }
.nl-vis-bars th small { display: block; margin-top: .1rem; font-weight: 400; font-size: .78rem; color: var(--nl-muted, #5b6b7c); }
.nl-vis-bars__cell { display: flex; align-items: center; gap: .75rem; }
.nl-vis-bars__track { flex: 1 1 auto; min-width: 3rem; height: .95rem; background: var(--nl-surface, #f4f7fa); border-radius: 99px; overflow: hidden; }
.nl-vis-bars__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--nl-navy, #0d2f4f), var(--nl-steel, #2d5f8b)); }
.nl-vis-bars tr.is-key .nl-vis-bars__fill { background: linear-gradient(90deg, var(--nl-gold-dark, #d4a300), var(--nl-gold, #ffc400)); }
.nl-vis-bars__val { flex: 0 0 auto; min-width: 4.5rem; max-width: 45%; font-weight: 700; line-height: 1.3; color: var(--nl-ink, #0d2f4f); font-variant-numeric: tabular-nums; }
@container (max-width: 520px) {
	.nl-vis-bars, .nl-vis-bars tbody, .nl-vis-bars tr, .nl-vis-bars th, .nl-vis-bars td { display: block; width: 100%; }
	.nl-vis-bars tbody th { width: 100%; padding: .65rem 0 .3rem; }
	.nl-vis-bars td { padding: 0 0 .65rem; border-top: 0 !important; }
}

/* A timeline in phases. */
.nl-vis-phases { display: flex; gap: .45rem; }
.nl-vis-phases li { flex: var(--g, 1) 1 0; min-width: 7.5rem; display: flex; flex-direction: column; gap: .3rem; }
.nl-vis-phases__bar { display: block; height: .85rem; margin-bottom: .35rem; border-radius: 99px; background: var(--c); }
.nl-vis-phases li strong { line-height: 1.25; font-size: .92rem; }
.nl-vis-phases li em { align-self: flex-start; font-style: normal; font-weight: 700; font-size: .78rem; color: var(--nl-ink, #0d2f4f); background: var(--nl-surface, #f4f7fa); border-radius: 99px; padding: .1rem .55rem; }
.nl-vis-phases li > span:last-child { font-size: .84rem; color: var(--nl-muted, #5b6b7c); }
.nl-vis .is-navy { --c: var(--nl-navy, #0d2f4f); }
.nl-vis .is-steel { --c: var(--nl-steel, #2d5f8b); }
.nl-vis .is-gold { --c: var(--nl-gold, #ffc400); }
.nl-vis .is-green { --c: var(--nl-success, #1a8f5a); }
@container (max-width: 640px) {
	.nl-vis-phases { flex-direction: column; gap: .9rem; }
	.nl-vis-phases li { display: grid; grid-template-columns: .7rem 1fr; column-gap: .9rem; row-gap: .2rem; }
	.nl-vis-phases__bar { grid-row: 1 / span 3; width: .7rem; height: auto; min-height: 3rem; margin: 0; }
}

/* The watch of a link: a mark a day, then a mark a month. */
.nl-vis-watch { display: flex; gap: .5rem; }
.nl-vis-watch__seg.is-daily { flex: 1 1 0; }
.nl-vis-watch__seg.is-monthly { flex: 2 1 0; }
.nl-vis-watch__marks { display: flex; align-items: flex-end; gap: 2px; height: 3.2rem; padding: .55rem; border-radius: 12px; }
.is-daily .nl-vis-watch__marks { background: var(--nl-gold-soft, #fff6d6); }
.is-daily .nl-vis-watch__marks i { flex: 1 1 0; height: 70%; border-radius: 2px; background: var(--nl-gold-dark, #d4a300); }
.is-monthly .nl-vis-watch__marks { gap: 0; background: var(--nl-success-soft, #e5f4ec); }
.is-monthly .nl-vis-watch__marks i { position: relative; flex: 1 1 0; height: 100%; border-left: 1px solid rgba(26, 143, 90, .18); }
.is-monthly .nl-vis-watch__marks i::after { content: ""; position: absolute; left: var(--o, 50%); bottom: 0; width: 3px; height: 85%; border-radius: 2px; background: var(--nl-success, #1a8f5a); }
.nl-vis-legend { display: grid; gap: .55rem; margin-top: 1rem !important; font-size: .88rem; }
.nl-vis-legend li { position: relative; padding-left: 1.5rem; }
.nl-vis-legend li::before { content: ""; position: absolute; left: 0; top: .3em; width: .85rem; height: .85rem; border-radius: 3px; background: var(--c); }
.nl-vis-legend .is-daily { --c: var(--nl-gold-dark, #d4a300); }
.nl-vis-legend .is-monthly { --c: var(--nl-success, #1a8f5a); }
@container (max-width: 520px) {
	.nl-vis-watch { flex-direction: column; }
	.is-daily .nl-vis-watch__marks { gap: 1px; }
}

/* A comparison: a table, rows as cards in a narrow box. */
.nl-vis-compare { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: none; font-size: .88rem; }
.nl-vis-compare th, .nl-vis-compare td { padding: .7rem .75rem; border: 0; border-bottom: 1px solid var(--nl-line, #e3e8ee); background: none; text-align: left; vertical-align: top; }
.nl-vis-compare thead th { font-family: var(--nl-display); font-size: .84rem; line-height: 1.3; color: var(--nl-ink, #0d2f4f); border-bottom: 2px solid var(--nl-navy, #0d2f4f); }
.nl-vis-compare tbody th { width: 24%; font-weight: 600; color: var(--nl-ink, #0d2f4f); }
.nl-vis-compare tbody tr:nth-child(even) > * { background: var(--nl-surface, #f4f7fa); }
.nl-vis-compare td.is-yes { color: var(--nl-success, #1a8f5a); font-weight: 600; }
.nl-vis-compare td.is-no { color: var(--nl-muted, #5b6b7c); }
.nl-vis-mark { display: inline-block; width: 1.05rem; height: 1.05rem; margin-right: .35rem; vertical-align: -.2em; border-radius: 50%; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") center / contain no-repeat; }
.is-yes .nl-vis-mark { background: var(--nl-success, #1a8f5a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 100% no-repeat; -webkit-mask: none; }
.nl-vis-compare td::before { display: none; }
@container (max-width: 540px) {
	.nl-vis-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.nl-vis-compare, .nl-vis-compare tbody, .nl-vis-compare tr, .nl-vis-compare th, .nl-vis-compare td { display: block; width: 100% !important; }
	.nl-vis-compare tr { margin-bottom: .8rem; border: 1px solid var(--nl-line, #e3e8ee); border-radius: 12px; overflow: hidden; }
	.nl-vis-compare tbody tr:nth-child(even) > * { background: none; }
	.nl-vis-compare tbody th { background: var(--nl-surface, #f4f7fa) !important; border-bottom: 1px solid var(--nl-line, #e3e8ee); }
	.nl-vis-compare th, .nl-vis-compare td { box-sizing: border-box; }
	.nl-vis-compare td { display: grid; grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr); gap: .6rem; border-bottom: 1px dashed var(--nl-line, #e3e8ee); overflow-wrap: anywhere; }
	.nl-vis-compare td:last-child { border-bottom: 0; }
	.nl-vis-compare td::before { content: attr(data-label); display: block; font-weight: 600; font-size: .78rem; color: var(--nl-muted, #5b6b7c); }
}

/* Cards with an icon of the theme. */
.nl-vis-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .85rem; }
.nl-vis-cards li { display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; row-gap: .15rem; align-items: start; padding: 1rem; border-radius: 14px; background: var(--nl-surface, #f4f7fa); }
.nl-vis-cards .nl-ico { grid-row: span 2; }
.nl-vis-cards .nl-ico::before { width: 40px; height: 40px; margin: 0; background-color: #fff; background-size: 22px; box-shadow: none; }
.nl-vis-cards strong { line-height: 1.3; }
.nl-vis-cards li > span:last-child { font-size: .86rem; color: var(--nl-muted, #5b6b7c); }

/* A scale without figures. */
.nl-vis-scale__bar { display: flex; justify-content: space-between; align-items: center; height: 2.1rem; padding: 0 1rem; border-radius: 99px; background: linear-gradient(90deg, var(--nl-success-soft, #e5f4ec), var(--nl-gold-soft, #fff6d6) 55%, #ffe08a); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nl-ink, #0d2f4f); }
.nl-vis-scale { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1rem; margin-top: 1rem !important; }
.nl-vis-scale li { display: flex; flex-direction: column; gap: .35rem; padding-top: .65rem; border-top: 4px solid var(--c, var(--nl-navy)); }
.nl-vis-scale li:nth-child(1) { --c: var(--nl-success, #1a8f5a); }
.nl-vis-scale li:nth-child(2) { --c: var(--nl-gold, #ffc400); }
.nl-vis-scale li:nth-child(3) { --c: var(--nl-gold-dark, #d4a300); }
.nl-vis-scale q { display: block; padding: .4rem .6rem; border-radius: 8px; background: var(--nl-surface, #f4f7fa); font-size: .86rem; font-style: italic; color: var(--nl-steel, #2d5f8b); quotes: "« " " »"; }
.nl-vis-scale li > span:last-child { font-size: .86rem; color: var(--nl-muted, #5b6b7c); }
@container (max-width: 560px) {
	.nl-vis-scale { grid-template-columns: 1fr; }
}

/* A cycle in SVG, its steps written beside it. */
.nl-vis-cycle { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1.4rem; align-items: center; }
.nl-vis-cycle__svg { display: block; width: 100%; height: auto; }
.nl-vis-cycle__ring { fill: none; stroke: var(--nl-line, #e3e8ee); stroke-width: 2; stroke-dasharray: 3 7; }
.nl-vis-cycle__arc { fill: none; stroke: var(--nl-steel, #2d5f8b); stroke-width: 3; }
.nl-vis-cycle__tip { fill: var(--nl-steel, #2d5f8b); }
.nl-vis-cycle__dot { fill: var(--nl-navy, #0d2f4f); stroke: var(--nl-gold-soft, #fff6d6); stroke-width: 5; }
.nl-vis-cycle__dot.is-first { fill: var(--nl-gold-dark, #d4a300); }
.nl-vis-cycle__num { fill: #fff; font-family: var(--nl-display); font-weight: 700; font-size: 20px; text-anchor: middle; }
.nl-vis-cycle__list { counter-reset: nlcycle; display: grid; gap: .7rem; font-size: .9rem; }
.nl-vis-cycle__list li { counter-increment: nlcycle; position: relative; padding-left: 2.2rem; color: var(--nl-muted, #5b6b7c); }
.nl-vis-cycle__list li::before { content: counter(nlcycle); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--nl-navy, #0d2f4f); color: #fff; font-weight: 700; font-size: .8rem; }
.nl-vis-cycle__list li:first-child::before { background: var(--nl-gold-dark, #d4a300); }
@container (max-width: 560px) {
	.nl-vis-cycle { grid-template-columns: 1fr; }
	.nl-vis-cycle__svg { max-width: 13rem; margin: 0 auto; }
}

/* The anatomy of a backlink. */
.nl-vis-anatomy__page { margin: 0 0 .85rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--nl-surface, #f4f7fa); font-size: .93rem; line-height: 1.65; }
.nl-vis-anatomy__tag { display: inline-block; margin-right: .5rem; padding: .1rem .6rem; border-radius: 99px; background: var(--nl-navy, #0d2f4f); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: .1em; }
.nl-vis-anatomy__page u { color: var(--nl-steel, #2d5f8b); font-weight: 600; text-decoration-color: var(--nl-gold, #ffc400); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nl-vis-anatomy__code { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--nl-night, #071e33); color: #c9d6e3; font-size: .8rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.nl-vis-anatomy__code mark { padding: 0 .1em; background: none; border-bottom: 2px solid currentColor; }
.nl-vis-anatomy__code .is-1 { color: #ffc400; }
.nl-vis-anatomy__code .is-2 { color: #8cc8ff; }
.nl-vis-anatomy__code .is-4 { color: #86dbb0; }
.nl-vis-anatomy__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; font-size: .87rem; color: var(--nl-muted, #5b6b7c); }
.nl-vis-anatomy__legend li { position: relative; padding-left: 1.4rem; }
.nl-vis-anatomy__legend li::before { content: ""; position: absolute; left: 0; top: .3em; width: .85rem; height: .85rem; border-radius: 3px; background: var(--c); }
.nl-vis-anatomy__legend .is-1 { --c: var(--nl-gold, #ffc400); }
.nl-vis-anatomy__legend .is-2 { --c: #5aa9e6; }
.nl-vis-anatomy__legend .is-3 { --c: var(--nl-navy, #0d2f4f); }
.nl-vis-anatomy__legend .is-4 { --c: var(--nl-success, #1a8f5a); }
@container (max-width: 520px) {
	.nl-vis-anatomy__legend { grid-template-columns: 1fr; }
}

/* On a dark band, the visual keeps its light card. */
.is-style-dark .nl-vis { color: var(--nl-text, #1b2a3a); }
@media print {
	.nl-vis { box-shadow: none; break-inside: avoid; }
}

/* The title of the card beside a guide: a paragraph (the first heading of the page after its H1 is an H2). */
.nl-aside-cta p.nl-aside-cta__title { margin: .35rem 0 .5rem; font: 600 1.12rem/1.35 var(--nl-display); color: var(--nl-navy, #0d2f4f); }
.nl-vis-chapter { margin: 1.75rem 0 2rem; }
.nl-guide__body > .nl-illu, .nl-guide__body .wp-block-shortcode > .nl-illu { margin: 1.5rem 0 2rem; }
.nl-split--vis .wp-block-column > .nl-illu + .nl-vis, .nl-split--vis .wp-block-column > * + .nl-vis { margin-top: 1.5rem; }

/* Examples of code (the page of the API): a dark block, wrapped, never a scroll bar of the page. */
.nl-codes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; max-width: 56rem; margin: 1.5rem 0 0; }
.nl-codes__item { min-width: 0; }
.nl-codes__item h3 { margin: 0 0 .5rem; font: 600 1.02rem/1.35 var(--nl-display); color: var(--nl-navy, #0d2f4f); }
.nl-codes__item p { margin: 0 0 .6rem; color: var(--nl-muted, #5b6b7c); }
.nl-section .wp-block-code.nl-code, .wp-block-code.nl-code { margin: 0; padding: 1rem 1.15rem; border: 0; border-radius: 12px; background: #0f172a; color: #e2e8f0; font: 500 .84rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.wp-block-code.nl-code code { font: inherit; color: inherit; background: none; padding: 0; white-space: inherit; }
@media (max-width: 600px) {
	.wp-block-code.nl-code { font-size: .78rem; padding: .85rem .9rem; }
}
