/* Portfolio «Style guide» board (inc/portfolio-styleguide.php, Stefano 2026-11-12).
   A white board inside the dark stage: the brand's colours and type must sit on true white to read right.
   Board chrome is CJ (Jost, anthracite); only the specimens, chips and logos carry the client's brand.
   Class names avoid ad-block words (pubblicita, banner, sponsor, promo, adv, ads). */

/* Client fonts, self-hosted (SIL OFL 1.1, Google Fonts, latin subset, fetched 2026-11-12).
   @font-face downloads only when a specimen uses the family. */
@font-face { font-family: "Montserrat"; src: url("../../fonts/clients/montserrat/Montserrat-normal-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; src: url("../../fonts/clients/lato/Lato-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; src: url("../../fonts/clients/lato/Lato-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.cj-sg__board {
	--sg-line: #e3e5e8;
	--sg-mute: #5b6064; /* 6.4:1 on white */
	min-width: 0;
	padding: clamp(20px, 4vw, 56px);
	border-radius: 4px;
	background: #fff;
	color: var(--cj-anthracite);
	font-family: var(--cj-font);
}
/* portfolio.css greys the stage type: the board keeps its own ink. */
body .cj-pf-stage .cj-sg .cj-sg__board :is(h3, p, li, span, code) { color: inherit; }
body .cj-pf-stage .cj-sg .cj-sg__board .cj-sg__use,
body .cj-pf-stage .cj-sg .cj-sg__board .cj-sg__meta,
body .cj-pf-stage .cj-sg .cj-sg__board .cj-sg__cap,
body .cj-pf-stage .cj-sg .cj-sg__board .cj-sg__note { color: var(--sg-mute); }
.cj-sg__board p { margin: 0; max-width: none; }

.cj-sg__brand {
	font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}
.cj-sg__principle {
	margin-top: 0.9rem !important;
	max-width: 46ch !important;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
	font-weight: 500;
	line-height: 1.4;
}
.cj-sg__h {
	margin: clamp(2.25rem, 5vw, 3.5rem) 0 1rem;
	padding-top: 0.8rem;
	border-top: 1px solid var(--cj-anthracite);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.cj-sg__board ul { margin: 0; padding: 0; list-style: none; }
.cj-sg__board li { margin: 0; padding: 0; }
.cj-sg__board li::before { content: none; }
.cj-sg__name { font-weight: 700; }
.cj-sg__val { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; background: none; padding: 0; }
.cj-sg__use, .cj-sg__meta, .cj-sg__cap, .cj-sg__note { font-size: 0.875rem; line-height: 1.5; }

/* Logo */
.cj-sg__logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.cj-sg__logo {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: 14%;
	border: 1px solid var(--sg-line);
}
.cj-sg__logo img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 0 !important; }
.cj-sg__cap { display: block; margin-top: 0.5rem; }

/* Colore */
.cj-sg__colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 28px 16px; }
.cj-sg__colors li { display: flex; flex-direction: column; gap: 0.2rem; }
.cj-sg__chip { display: block; aspect-ratio: 4 / 3; margin-bottom: 0.5rem; border: 1px solid var(--sg-line); }
.cj-sg__ratio { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8rem; font-weight: 500; }
.cj-sg__ratio-dot { width: 0.8em; height: 0.8em; border-radius: 50%; border: 1px solid #9aa0a6; }

/* Tipografia */
.cj-sg__fams { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; font-size: 0.875rem; color: var(--sg-mute); }
.cj-sg__fam { display: block; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); font-weight: 600; line-height: 1.1; color: var(--cj-anthracite); }
.cj-sg__note { margin-top: 0.75rem !important; max-width: 60ch !important; }
.cj-sg__specs { margin-top: 1.5rem; }
.cj-sg__spec { padding-block: 1.1rem; border-top: 1px solid var(--sg-line); }
.cj-sg__spec:first-child { border-top: 0; padding-top: 0; }
.cj-sg__sample { overflow-wrap: anywhere; margin-bottom: 0.4rem !important; }
/* Display specimens never overflow a phone: true size from 600px up. */
@media (max-width: 600px) { .cj-sg__sample { font-size: min(var(--sg-fs, 1em), 11vw) !important; } }
.cj-sg__meta .cj-sg__name { color: var(--cj-anthracite); margin-right: 0.35em; }

/* Spazi, raggi e ombre */
.cj-sg__scales { display: grid; gap: 28px; }
.cj-sg__scale { display: grid; gap: 14px; }
.cj-sg__scale li { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.cj-sg__scale li > :not(.cj-sg__demo) { grid-column: 2; }
.cj-sg__demo { grid-row: 1 / span 3; display: block; }
.cj-sg__scale--spacing .cj-sg__demo { height: 14px; max-width: 96px; background: var(--sg-ink); }
.cj-sg__scale--radius .cj-sg__demo,
.cj-sg__scale--shadow .cj-sg__demo { width: 72px; height: 48px; border: 1px solid var(--sg-ink); background: #fff; }
.cj-sg__scale--shadow .cj-sg__demo { border-color: var(--sg-line); margin-block: 8px 16px; }

/* The SILLEM scene in «Il progetto» speaks SILLEM type, as on sillem.it/prodotti (light Montserrat, bold key word). */
.cj-pf-scene--sillem .cj3d-copy { font-family: Lato, "Helvetica Neue", Arial, sans-serif; }
.cj-pf-scene--sillem .cj3d-copy :is(h3, h4) { font-family: Montserrat, "Helvetica Neue", Arial, sans-serif; font-weight: 300; }
.cj-pf-scene--sillem .cj3d-copy :is(h3, h4) strong { font-weight: 800; color: var(--cj3d-em); }
