/* ==========================================================================
   tomassetti.me — Layer 3: components (book §08, §13, §14, §16, §17)
   ========================================================================== */

/* --- wordmark — §08 ------------------------------------------------------ */
/* Typographic only. No symbol, no monogram, no logo file to maintain.
   The name is the identifier; the domain is the signature. */
.tm26 .tm26-wordmark { display: inline-block; text-decoration: none; }
.tm26 .tm26-wordmark-name {
  display: block;
  font-family: var(--serif);
  font-weight: 400;                 /* never bold, never italic, never caps  */
  font-style: normal;
  font-size: 34px;                  /* minimum 15px — §08                    */
  line-height: 1.10;
  letter-spacing: -0.015em;         /* tracking −1.5%                        */
  color: var(--ink);
}
.tm26 .tm26-wordmark-domain {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: var(--s2);
}
/* Rule under the lockup: 1px, sage, 40–52px, aligned to the domain baseline.
   It draws itself once on load. This is the wordmark's own rule, already
   specified in §08 — deliberately NOT Strumenta's uncoiling line, which §02
   lists under NEVER SHARED. */
.tm26 .tm26-wordmark-domain::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--sage);
  flex: none;
  transform-origin: left center;
  animation: tm26-draw 620ms cubic-bezier(.2,.7,.3,1) both;
}
@keyframes tm26-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .tm26 .tm26-wordmark-domain::before { animation: none; }
}
/* Never the domain alone above 18px — §08. */

/* --- header — §14 -------------------------------------------------------- */
.tm26-header { background: var(--page); border-bottom: 1px solid var(--hairline); }

.tm26-header .tm26-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 88px;
}

.tm26-header .tm26-nav {
  display: flex;
  align-items: center;
  gap: var(--s6);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tm26-header .tm26-nav a { color: var(--body); text-decoration: none; }
.tm26-header .tm26-nav a:hover { color: var(--sage); text-decoration: underline; }
.tm26-header .tm26-nav a[aria-current="page"] { color: var(--sage); }

/* "strumenta ↗", last in the nav, never a button — §02, §14. */
.tm26-header .tm26-nav-strumenta { color: var(--muted) !important; }

/* Second row: the place strip. Duotone over sage-deep, per §12 — treatment in
   CSS, never baked into the file (§22). */
.tm26-header .tm26-header-strip {
  position: relative;
  background: var(--sage-deep);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.tm26-header .tm26-header-strip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  mix-blend-mode: luminosity;
  filter: contrast(1.06);
  opacity: 0.55;
  z-index: -1;
}
.tm26-header .tm26-header-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding-block: var(--s6);
}
.tm26-header .tm26-descriptor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: #FFFFFF;
  max-width: 46ch;
  margin: 0;
}
.tm26-header .tm26-header-strip .tm26-label { color: rgba(255,255,255,0.78); }

.tm26-header .tm26-burger { display: none; }

@media (max-width: 899px) {
  .tm26-header .tm26-header-top { min-height: 64px; }
  .tm26-header .tm26-nav { display: none; }
  .tm26-header .tm26-burger {
    display: inline-flex;
    background: none;
    border: 0;
    padding: var(--s2);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--body);
    cursor: pointer;
  }
  /* Drawer lists the same five items, Strumenta last after a rule — §14. */
  .tm26-header .tm26-drawer[hidden] { display: none; }
  .tm26-header .tm26-drawer {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    padding-block: var(--s5);
    border-top: 1px solid var(--hairline);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .tm26-header .tm26-drawer a { color: var(--body); text-decoration: none; }
  .tm26-header .tm26-drawer .tm26-nav-strumenta {
    border-top: 1px solid var(--hairline);
    padding-top: var(--s4);
    color: var(--muted);
  }
}

/* --- article header — §14 ------------------------------------------------ */
/* Territory + place + date label · title · italic dek · hairline · author
   line. No image above the title. */
.tm26 .tm26-article-header { padding-block: var(--s9) var(--s7); }
.tm26 .tm26-article-header .tm26-label { display: block; margin-bottom: var(--s5); }
.tm26 .tm26-article-header .tm26-dek { margin-top: var(--s5); }
.tm26 .tm26-article-header .tm26-rule { margin-top: var(--s7); }
.tm26 .tm26-authorline {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--quiet);
  margin-top: var(--s4);
}

/* --- colophon — §14 ------------------------------------------------------ */
/* Stone panel, Plex Mono, label-value pairs. Amber for "changed".
   Rail on desktop, after the body on mobile. Mandatory on every article. */
.tm26 .tm26-colophon {
  background: var(--stone);
  padding: var(--s5);
  font-family: var(--mono);
  font-size: 12.5px;   /* was 11px — too small to read as content, and §10
                          already uses 12.5 for code, so it stays in system */
  line-height: 1.75;
}
.tm26 .tm26-colophon dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s3) var(--s4); }
.tm26 .tm26-colophon dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.tm26 .tm26-colophon dd { margin: 0; color: var(--body); }
.tm26 .tm26-colophon .tm26-changed { color: var(--amber); }
/* Colour is never the only signal — "revised" carries the word too (§22). */

/* --- contents rail — §14, appears above 1500 words ----------------------- */
.tm26 .tm26-contents {
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.9;
}
.tm26 .tm26-contents ol { list-style: none; margin: 0; padding: 0; }
.tm26 .tm26-contents a { color: var(--quiet); text-decoration: none; }
.tm26 .tm26-contents a:hover,
.tm26 .tm26-contents .is-current a { color: var(--ink); }

.tm26 .tm26-rail > * + * { margin-top: var(--s7); }
@media (max-width: 1179px) {
  .tm26 .tm26-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s6); }
  .tm26 .tm26-rail > * + * { margin-top: 0; }
}

/* --- territory card — §14 ------------------------------------------------ */
/* Cards only for territories and place entries. */
.tm26 .tm26-territory-card {
  background: var(--stone);
  border: 1px solid var(--hairline);
  padding: var(--s6);
}
.tm26 .tm26-territory-card .tm26-territory-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  margin: 0;
}
.tm26 .tm26-territory-card .tm26-territory-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--quiet);
  margin-top: var(--s3);
}

/* --- place entry — §14 --------------------------------------------------- */
.tm26 .tm26-place {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s5);
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding: var(--s5) 0;
}

/* --- author bio — §14, §16 ----------------------------------------------- */
/* 64px circle portrait + two sentences + "Reply by email · I read everything".
   Ends every article, above the CTA. */
.tm26 .tm26-authorbio {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
  border-top: 1px solid var(--hairline);
  padding-top: var(--s6);
  margin-top: var(--s8);
}
/* Some articles have no author portrait. Let their text use the whole measure. */
.tm26 .tm26-authorbio > div:only-child { grid-column: 1 / -1; }
.tm26 .tm26-authorbio img { width: 64px; height: 64px; border-radius: 50%; display: block; }
.tm26 .tm26-authorbio p { margin: 0; font-size: 13.5px; line-height: 1.68; color: var(--quiet); }
.tm26 .tm26-authorbio .tm26-reply { margin-top: var(--s3); }

/* Disclosure — §16. Plex Mono 11px, muted. Visible, never apologetic. */
.tm26 .tm26-disclosure {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.70;
  color: var(--muted);
  margin-top: var(--s5);
}

/* --- editorial CTA — §14, §17 -------------------------------------------- */
/* Page ground, 3px amber left rule, Spectral 20px, no button — links only. */
.tm26 .tm26-cta-editorial {
  background: var(--page);
  border-left: 3px solid var(--amber);
  padding: var(--s4) 0 var(--s4) var(--s5);
  margin-top: var(--s8);
}
.tm26 .tm26-cta-editorial p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.tm26 .tm26-cta-editorial ul { margin: var(--s4) 0 0; padding-left: var(--s5); font-size: 15px; }

/* --- commercial CTA — §14, §17 ------------------------------------------- */
/* 1px bordered block on page ground, sage filled button, disclosure line in
   Plex Mono. Never sage-filled background. One per page, below the bio, and
   only on Language engineering / Legacy / Automation pieces. */
.tm26 .tm26-cta-commercial {
  background: var(--page);
  border: 1px solid var(--hairline);
  padding: var(--s6);
  margin-top: var(--s7);
}
/* Scoped to the first paragraph, not to every `p` in the block: a bare
   `.tm26-cta-commercial p` is two classes plus an element and beats
   `.tm26-disclosure`, which rendered the disclosure line as 19px Spectral
   instead of 11px Plex Mono. Same specificity trap as the Elementor kit. */
.tm26 .tm26-cta-commercial > p:first-of-type {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 var(--s5);
}

/* --- newsletter band — §14, §18 ------------------------------------------ */
/* Sage ground, Spectral 23px promise, Plex Mono provenance line, amber submit.
   One per page maximum. */
.tm26 .tm26-newsletter { background: var(--sage); color: #FFFFFF; padding-block: var(--s9); }
.tm26 .tm26-newsletter .tm26-promise {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0;
}
.tm26 .tm26-newsletter .tm26-provenance {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82);
  margin-top: var(--s4);
}
.tm26 .tm26-newsletter form { display: flex; gap: var(--s3); margin-top: var(--s6); flex-wrap: wrap; }
.tm26 .tm26-newsletter input[type="email"] {
  flex: 1 1 260px;
  font-family: var(--sans);
  font-size: 16px;
  padding: var(--s4);
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  color: #FFFFFF;
  border-radius: 2px;
}
.tm26 .tm26-newsletter input::placeholder { color: rgba(255,255,255,0.7); }
.tm26 .tm26-newsletter button {
  font-family: var(--sans);
  font-size: 15px;
  padding: var(--s4) var(--s6);
  background: var(--amber);
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
/* Address field only — §17. */

/* --- footer — §14 -------------------------------------------------------- */
/* Ink ground, three columns: one-sentence relation to Strumenta, site links,
   feeds and outbound. No service list, no corporate nav. */
.tm26-footer { background: var(--ink); color: rgba(255,255,255,0.78); padding-block: var(--s9); }
.tm26-footer .tm26-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s8);
}
@media (max-width: 899px) {
  .tm26-footer .tm26-footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
}
.tm26-footer .tm26-relation {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: #FFFFFF;
  margin: 0;
}
.tm26-footer h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 var(--s4);
}
.tm26-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 2; }
.tm26-footer a { color: rgba(255,255,255,0.86); text-decoration: none; }
.tm26-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.tm26-footer :focus-visible { outline-color: #FFFFFF; }

/* ==========================================================================
   CODE — §13. Code is content, not an aside: full reading width, never in a
   scrolling box under 12.5px.
   ========================================================================== */
.tm26 .tm26-figure { margin: var(--s8) 0; border: 1px solid var(--code-frame); }

.tm26 .tm26-figure-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  background: var(--stone);
  border-bottom: 1px solid var(--code-frame);
  padding: var(--s3) var(--s4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tm26 .tm26-code {
  margin: 0;
  padding: var(--s5);
  background: var(--code-body);
  color: #E8EDE9;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.80;
  overflow-x: auto;
  tab-size: 4;
}
/* A paired target block sits on a different ground — §13. */
.tm26 .tm26-code-target { background: var(--code-target); }

/* Syntax palette is three colours only. No rainbow themes — §13. */
.tm26 .tm26-code .tm26-kw      { color: var(--code-keyword); }
.tm26 .tm26-code .tm26-lit     { color: var(--code-literal); }
.tm26 .tm26-code .tm26-comment { color: var(--code-comment); font-style: normal; }

.tm26 .tm26-figcaption {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.70;
  color: var(--muted);
  background: var(--stone);
  border-top: 1px solid var(--code-frame);
  padding: var(--s3) var(--s4);
}

/* Copy button on hover; keyboard focus visible — §13. */
.tm26 .tm26-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--code-frame);
  border-radius: 2px;
  padding: 2px var(--s2);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms linear;
}
.tm26 .tm26-figure:hover .tm26-copy,
.tm26 .tm26-copy:focus-visible { opacity: 1; }

/* --- diagrams — §13 ------------------------------------------------------ */
/* Line and box only, sage on stone, Plex Mono labels, 1px strokes. Steps as a
   bordered 4-cell row, never as coloured pills. */
.tm26 .tm26-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
}
.tm26 .tm26-steps > * {
  padding: var(--s5);
  border-left: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
}
.tm26 .tm26-steps > *:first-child { border-left: 0; }
@media (max-width: 899px) {
  .tm26 .tm26-steps { grid-template-columns: 1fr; }
  .tm26 .tm26-steps > * { border-left: 0; border-top: 1px solid var(--hairline); }
  .tm26 .tm26-steps > *:first-child { border-top: 0; }
}

/* ==========================================================================
   ENLIGHTER — §13 applied to the existing highlighter.

   Decision 2026-08-21: restyle rather than replace. Enlighter markup is spread
   across thirteen years of posts; swapping the highlighter would have to handle
   every shortcode variant in the archive, and a miss breaks a code block
   retroactively.

   Enlighter ships one class per token type (k = keyword, s = string,
   m = number, c = comment, n = name, g = generic, e = escape). §13 allows three
   colours only, so the whole set is folded onto keyword / literal / comment and
   everything else falls back to the base ink. This is why there is no rainbow.
   ========================================================================== */

.tm26 .enlighter-default,
.tm26 [class*="enlighter-t-"] {
  border: 1px solid var(--code-frame) !important;
  border-radius: 0 !important;
  background: var(--code-body) !important;
  margin: var(--s8) 0 !important;
  box-shadow: none !important;
}

/* The toolbar becomes the stone header strip §13 asks for: filename and role
   on the left, actions on the right. */
.tm26 .enlighter-toolbar {
  background: var(--stone) !important;
  border-bottom: 1px solid var(--code-frame) !important;
  padding: var(--s2) var(--s3) !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.tm26 .enlighter-btn { color: var(--muted) !important; opacity: 0; transition: opacity 120ms linear; }
.tm26 [class*="enlighter-t-"]:hover .enlighter-btn,
.tm26 .enlighter-btn:focus-visible { opacity: 1; }

.tm26 .enlighter,
.tm26 .enlighter * {
  font-family: var(--mono) !important;
  font-size: 12.5px !important;
  line-height: 1.80 !important;
}
.tm26 .enlighter { background: var(--code-body) !important; color: #E8EDE9 !important; }

/* Line numbers: present but quiet — they must never compete with the code. */
.tm26 .enlighter .enlighter-linenumber,
.tm26 .enlighter-linenumbers .enlighter li::marker { color: #4A5B50 !important; }

/* The three colours. */
.tm26 .enlighter [class^="enlighter-k"] { color: var(--code-keyword) !important; }
.tm26 .enlighter [class^="enlighter-s"],
.tm26 .enlighter [class^="enlighter-m"] { color: var(--code-literal) !important; }
.tm26 .enlighter [class^="enlighter-c"] { color: var(--code-comment) !important; font-style: normal !important; }

/* Everything else resolves to the base ink rather than keeping its theme hue. */
.tm26 .enlighter [class^="enlighter-n"],
.tm26 .enlighter [class^="enlighter-g"],
.tm26 .enlighter [class^="enlighter-e"],
.tm26 .enlighter .enlighter-text { color: #E8EDE9 !important; }

/* Code is content: it takes the full reading width, not a narrower inset. */
.tm26 .tm26-body > [class*="enlighter-t-"],
.tm26 .tm26-body > div > [class*="enlighter-t-"] { width: 100%; }

/* Every code line carries a 1px dotted bottom border from the "rowhammer"
   theme, which reads as a 2010s code widget and fights the hairline system.
   (It looks like zebra striping in a screenshot; it is not — the lines are
   bare divs inside div.enlighter, with no class of their own to target.) */
.tm26 .enlighter > div,
.tm26 .enlighter li {
  background: transparent !important;
  border: 0 !important;
}

/* --- services panel ------------------------------------------------------
   Deviation from §14, decided 2026-08-21. Kept as quiet as the rest of the
   nav: same Plex Mono, no button chrome, hairline panel on page ground. It
   must not read as a corporate mega-menu, which §19 puts under WRONG. */
.tm26-header .tm26-nav-services { position: relative; }
.tm26-header .tm26-nav-services-btn {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--body);
  cursor: pointer;
}
.tm26-header .tm26-nav-services-btn:hover,
.tm26-header .tm26-nav-services-btn[aria-expanded="true"] { color: var(--sage); }

.tm26-header .tm26-nav-services-panel[hidden] { display: none; }
.tm26-header .tm26-nav-services-panel {
  position: absolute;
  top: calc(100% + var(--s3));
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  min-width: 260px;
  padding: var(--s5);
  background: var(--page);
  border: 1px solid var(--hairline);
  text-transform: none;
  letter-spacing: 0;
}
.tm26-header .tm26-nav-services-panel a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
}
.tm26-header .tm26-nav-services-panel a:hover { color: var(--sage); text-decoration: underline; }

@media (max-width: 899px) {
  .tm26-header .tm26-drawer-service { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
}

/* ==========================================================================
   DIRECTION 5a / 5b — signals and covers derived from existing data.
   The article gains weight without anyone writing a dek, choosing a quote or
   shooting a photograph, and without a single date reaching the reader.
   ========================================================================== */

/* Territory tag takes the territory tint; the rest of the label stays muted,
   so the colour marks the subject and nothing else. */
.tm26 .tm26-territory-tag { color: var(--tint, var(--sage)); }

/* The opening paragraph is the dek. No dek is written per article — 5a. */
.tm26 .tm26-body > p:first-of-type {
  font-size: 20.5px;
  line-height: 1.62;
  color: var(--ink);
}
@media (max-width: 899px) { .tm26 .tm26-body > p:first-of-type { font-size: 18.5px; } }

/* --- generated covers — 5b ----------------------------------------------
   No image files, no stock photography, no per-post design. The tint comes
   from the territory, the type from the title. Posts with code get the dark
   variant carrying the first lines of their own first code block. */
.tm26 .tm26-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s3);
  aspect-ratio: 3 / 2;
  padding: var(--s4);
  background: var(--tint, var(--sage));
  color: #FFFFFF;
  overflow: hidden;
}
.tm26 .tm26-cover-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.tm26 .tm26-cover-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.22;
  text-wrap: balance;
  /* Long titles shrink by clamping lines rather than overflowing the block. */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tm26 .tm26-cover.is-code { background: var(--code-body); }
.tm26 .tm26-cover-code {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: var(--code-keyword);
  white-space: pre-wrap;
  overflow: hidden;
}
.tm26 .tm26-cover-sm { width: 96px; flex: none; }

/* --- "More in <territory>" ------------------------------------------------ */
.tm26 .tm26-more { margin-top: var(--s8); }
.tm26 .tm26-more > .tm26-label { display: block; margin-bottom: var(--s4); }
.tm26 .tm26-more-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--s5);
  align-items: center;
  padding: var(--s5) 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.tm26 .tm26-more-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.tm26 .tm26-more-row:hover .tm26-list-title { color: var(--sage); }
.tm26 .tm26-more-row .tm26-list-title { display: block; font-size: 19px; }
.tm26 .tm26-more-meta {
  display: block;
  margin-top: var(--s2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* The newsletter band sits full-bleed inside the article column. */
.tm26 .tm26-newsletter { margin-top: var(--s9); padding-inline: var(--s6); }

.tm26 .screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* At 96px a full territory name ("Legacy systems & modernization") fills the
   whole card and squeezes the title out entirely. Small covers carry the short
   label alone — at that size the title is unreadable anyway, and the tint plus
   the word are what identify the territory. */
.tm26 .tm26-cover-label-short { display: none; }
.tm26 .tm26-cover-sm {
  aspect-ratio: 3 / 2;
  justify-content: center;
  padding: var(--s3);
}
.tm26 .tm26-cover-sm .tm26-cover-label,
.tm26 .tm26-cover-sm .tm26-cover-title,
.tm26 .tm26-cover-sm .tm26-cover-code { display: none; }
.tm26 .tm26-cover-sm .tm26-cover-label-short {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   DIRECTION C — the topic tint owns the title block.
   Chosen 2026-08-21. Deviation from §14 (which wants the title on paper) and
   from §09's two-background rule as literally written, because the tint is not
   one of the three grounds it names. Accepted for one reason the book does not
   solve: with 186 of 274 posts in one topic, an all-paper archive reads as one
   undifferentiated body of text.
   ========================================================================== */

.tm26 .tm26-titleblock {
  background: var(--tint, var(--sage));
  color: #FBFAF6;
  padding-block: var(--s8) var(--s7);
}
.tm26 .tm26-titleblock .tm26-article-header { padding-block: 0; }
.tm26 .tm26-titleblock .tm26-title { color: #FBFAF6; }
.tm26 .tm26-titleblock .tm26-label { color: rgba(251,250,246,0.80); }
.tm26 .tm26-titleblock .tm26-territory-tag { color: rgba(251,250,246,0.80); }
.tm26 .tm26-titleblock .tm26-authorline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(251,250,246,0.88);
  margin-top: var(--s5);
}
/* The date element is hidden site-wide, but make sure a hidden inline element
   cannot leave a stray separator on the tinted ground. */
.tm26 .tm26-titleblock .tm26-date { display: none; }

/* The identity clause leads the descriptor row. */
.tm26-header .tm26-who { color: var(--ink); }
.tm26-header .tm26-header-strip {
  background: var(--page);
  border-top: 1px solid var(--hairline);
}
.tm26-header .tm26-header-strip .tm26-label { color: var(--muted); }
.tm26-header .tm26-descriptor { color: var(--quiet); }

/* ==========================================================================
   BODY HEADINGS — the bug the mockups made obvious.
   h2/h3 inside the post were never styled, so they fell through to Astra's
   bold Plex Sans. On a page whose whole voice is Spectral, that single default
   was doing a lot of the "generic" feeling.
   Sections are auto-numbered from the h2s a post already has (direction 5a):
   no editing, and posts without h2s simply get none.
   ========================================================================== */

.tm26 .tm26-body { counter-reset: tm26-section; }

.tm26 .tm26-body h2 {
  counter-increment: tm26-section;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
  margin: var(--s8) 0 0;
  padding-top: var(--s5);
  border-top: 2px solid var(--tint, var(--sage));
}
.tm26 .tm26-body h2::before {
  content: counter(tm26-section, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--tint, var(--sage));
  margin-bottom: var(--s3);
}

.tm26 .tm26-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.22;
  color: var(--ink);
  margin: var(--s7) 0 0;
}
.tm26 .tm26-body h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17.5px;
  color: var(--ink);
  margin: var(--s6) 0 0;
}

/* The tint reaches the two other marks direction C tints. */
.tm26 .tm26-body .tm26-pullquote { border-left-color: var(--tint, var(--sage)); }
.tm26 .tm26-figure,
.tm26 [class*="enlighter-t-"] { border-top: 3px solid var(--tint, var(--sage)) !important; }

/* Contents rail: entries were wrapping to three lines because they carry whole
   H2 sentences. Clamp to two and let the title attribute hold the rest. */
.tm26 .tm26-contents li {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s2);
}
.tm26 .tm26-contents ol { counter-reset: tm26-toc; }
.tm26 .tm26-contents li::before {
  counter-increment: tm26-toc;
  content: counter(tm26-toc, decimal-leading-zero) "  ";
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

/* The tinted block is a field, not a rule: the body needs to start clear of it. */
.tm26 .tm26-titleblock + .tm26-article-shell { margin-top: var(--s9); }

/* --- title block: photograph forced to the topic tint ---------------------
   Same duotone mechanic as §12, but the ground is the topic colour rather than
   sage-deep, so the photograph and the topic identity are one element instead
   of two competing bands. Treatment in CSS, never baked into the file (§22). */
.tm26 .tm26-titleblock {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.tm26 .tm26-titleblock-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  mix-blend-mode: luminosity;
  /* Busy photographs (a building facade, a machine room) were eating the
     11px mono label at 0.38. Darkened and pulled back so the type stays the
     subject: the photograph is a ground, not an image to look at. */
  filter: contrast(1.06) brightness(0.62);
  opacity: 0.30;
  z-index: -1;
}

/* A scrim behind the type only, so the left half of the band stays readable
   whatever the photograph does there. */
.tm26 .tm26-titleblock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
              color-mix(in srgb, var(--tint) 88%, #000 12%) 0%,
              color-mix(in srgb, var(--tint) 70%, transparent) 58%,
              transparent 100%);
}

/* --- header line: one line, not a paragraph ------------------------------ */
.tm26-header .tm26-header-strip-inner { padding-block: var(--s4); }
.tm26-header .tm26-descriptor {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--quiet);
  max-width: none;   /* was 46ch, which forced four lines */
}
.tm26-header .tm26-who {
  font-style: normal;
  font-weight: 600;    /* only the company name carries weight, not the clause */
  color: var(--ink);
}

/* ==========================================================================
   PAGE FOOT — the newsletter band and the footer read as one closing block.
   Before: the sage band floated inside the reading column with paper either
   side, then the ink footer began hard against it with no transition, and the
   band looked clipped rather than placed.
   ========================================================================== */

/* Full-bleed, like the title block — a band, not a box in the column. */
.tm26 .tm26-newsletter {
  margin-top: var(--s9);
  padding-inline: 0;
  padding-block: var(--s9);
}
.tm26 .tm26-newsletter > .tm26-measure {
  max-width: calc(var(--measure) + 36px + var(--rail));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 899px) {
  .tm26 .tm26-newsletter > .tm26-measure { padding-inline: 20px; }
}
.tm26 .tm26-newsletter form { max-width: 560px; }

/* The band sits directly on the footer, so the page closes on two stacked
   grounds rather than on a gap of paper between them. */
.tm26 .tm26-newsletter + .tm26-footer,
.tm26-footer { margin-top: 0; }

.tm26-footer .tm26-footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr;   /* was 1.4/1/1 — the link columns were adrift */
  gap: var(--s9);
  align-items: start;
}
.tm26-footer .tm26-relation { max-width: 30ch; }
.tm26-footer ul { line-height: 1.9; }

/* A hairline in the footer's own key, so the three columns read as a set. */
.tm26-footer h2 {
  padding-bottom: var(--s3);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}


/* --- title on the tinted band: bigger and heavier -------------------------
   Spectral 600 rather than 400, and a step up in size. Over a photograph the
   400 weight at 40px was losing the fight with the image, and no amount of
   scrim fixes a stroke that is too thin. This is the one place the site uses
   600 — body headings stay 400, and §08 still forbids a bold wordmark. */
.tm26 .tm26-titleblock .tm26-title {
  font-weight: 600;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.018em;
  max-width: 20ch;
  text-shadow: 0 1px 24px rgba(0,0,0,0.22);
}
.tm26 .tm26-titleblock .tm26-label { color: #FFFFFF; }
.tm26 .tm26-titleblock { padding-block: var(--s9) var(--s8); }

@media (max-width: 899px) {
  .tm26 .tm26-titleblock .tm26-title { font-size: 34px; }
}

/* The §17 editorial line, carried by the "More in" block: page ground, 3px
   amber rule, Spectral, links only — no button. */
.tm26 .tm26-more { border-left: 3px solid var(--amber); padding-left: var(--s5); }
.tm26 .tm26-cta-line {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 var(--s5);
}
.tm26 .tm26-more > .tm26-label { margin-bottom: var(--s3); }
.tm26 .tm26-more-row:first-of-type { border-top: 1px solid var(--hairline); }


/* Services is the one nav item that opens something rather than going
   somewhere; the underline says so before the click. */
.tm26-header .tm26-nav-services-btn {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.tm26-header .tm26-nav-services-btn:hover,
.tm26-header .tm26-nav-services-btn[aria-expanded="true"] { text-decoration-thickness: 2px; }

/* ==========================================================================
   HOMEPAGE — §15
   ========================================================================== */

/* Place opener. 32:9 per §12, duotone over sage-deep. The only coloured field
   on the page, which is what keeps §09's two-ground rule intact here. */
.tm26 .tm26-opener {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sage-deep);
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  aspect-ratio: 32 / 9;
  max-height: 520px;
}
.tm26 .tm26-opener-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  mix-blend-mode: luminosity;
  filter: contrast(1.06) brightness(0.66);
  opacity: 0.42;
  z-index: -1;
}
.tm26 .tm26-opener-inner { padding-block: var(--s9); width: 100%; }
.tm26 .tm26-opener .tm26-statement {
  color: #FFFFFF;
  max-width: 30ch;
  text-shadow: 0 1px 24px rgba(0,0,0,0.28);
}
.tm26 .tm26-opener .tm26-caption { color: rgba(255,255,255,0.72); margin-top: var(--s5); }

@media (max-width: 899px) {
  .tm26 .tm26-opener { aspect-ratio: auto; min-height: 0; max-height: none; }
  .tm26 .tm26-opener .tm26-statement { font-size: 22px; max-width: none; }
}

/* Bands down the page. */
.tm26 .tm26-band { padding-block: var(--s9); }
.tm26 .tm26-band + .tm26-band { padding-top: 0; }
.tm26 .tm26-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--s3);
  margin-bottom: var(--s5);
}
.tm26 .tm26-band-head h2 { margin: 0; }
.tm26 .tm26-band-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.tm26 .tm26-band-link:hover { text-decoration: underline; }
.tm26 .tm26-band > .tm26-label { display: block; margin-bottom: var(--s5); }

/* On the homepage the row list has no amber rule — that mark belongs to the
   editorial CTA at the end of an article, and §09 allows one amber element
   per screenful. */
.tm26 .tm26-band .tm26-more-row:first-of-type { border-top: 0; }

/* Topic cards. */
.tm26 .tm26-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s4);
}
.tm26 .tm26-topic-grid .tm26-territory-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.tm26 .tm26-topic-grid .tm26-territory-card:hover { border-color: var(--tint); }
.tm26 .tm26-territory-swatch {
  display: block;
  height: 4px;
  background: var(--tint);
  margin: calc(var(--s6) * -1) calc(var(--s6) * -1) var(--s5);
}
.tm26 .tm26-topic-grid .tm26-territory-name { display: block; }

/* Who is writing. */
.tm26 .tm26-who-block { max-width: var(--measure); }
.tm26 .tm26-who-block p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.tm26 .tm26-who-block .tm26-who-links {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--quiet);
  margin-top: var(--s5);
}

/* The company name in the header line is a link, and keeps its weight. */
.tm26-header a.tm26-who {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.tm26-header a.tm26-who:hover { color: var(--sage); }

/* --- footer: the Strumenta block ---------------------------------------- */
.tm26-footer .tm26-footer-strumenta p { margin: 0; }
.tm26-footer .tm26-strumenta-logo {
  display: block;
  margin: var(--s5) 0 var(--s4);
}
.tm26-footer .tm26-strumenta-logo img {
  display: block;
  width: 132px;
  height: auto;
  /* The asset is dark-on-transparent; the footer ground is ink. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.tm26-footer .tm26-strumenta-what {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 34ch;
}
.tm26-footer .tm26-strumenta-numbers {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: var(--s3) !important;
}
.tm26-footer .tm26-footer-strumenta > p:last-child { margin-top: var(--s4) !important; font-size: 14px; }

/* ==========================================================================
   ARTICLES · TOPICS · ABOUT
   ========================================================================== */

.tm26 .tm26-page-head { margin-bottom: var(--s8); max-width: var(--measure); }
.tm26 .tm26-page-head .tm26-dek { margin-top: var(--s4); }

/* Topic filter — links, so every state is its own shareable URL. */
.tm26 .tm26-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
.tm26 .tm26-filter-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--body);
  padding: var(--s2) var(--s4);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.tm26 .tm26-filter-item span { color: var(--muted); }
.tm26 .tm26-filter-item:hover { border-color: var(--tint, var(--sage)); }
.tm26 .tm26-filter-item.is-current {
  background: var(--tint, var(--ink));
  border-color: var(--tint, var(--ink));
  color: #FFFFFF;
}
.tm26 .tm26-filter-item.is-current span { color: rgba(255,255,255,0.72); }

.tm26 .tm26-rows .tm26-more-row:first-of-type { border-top: 1px solid var(--hairline); }

.tm26 .tm26-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s8);
}
.tm26 .tm26-pagination .page-numbers {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s2) var(--s4);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--body);
}
.tm26 .tm26-pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

/* Topics page. */
.tm26 .tm26-topic-entry {
  border-top: 3px solid var(--tint);
  padding-top: var(--s5);
  margin-top: var(--s8);
}
.tm26 .tm26-topic-entry-head { margin-bottom: var(--s5); }
.tm26 .tm26-topic-entry-head .tm26-list-title { margin: 0 0 var(--s3); }
.tm26 .tm26-topic-more { margin-top: var(--s5); font-size: 15px; }
.tm26 .tm26-topic-cats {
  margin-top: var(--s3);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--quiet);
}

/* About. */
.tm26 .tm26-about h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: var(--s8) 0 var(--s4);
}
.tm26 .tm26-about p { margin: 0 0 var(--s5); text-wrap: pretty; }
.tm26 .tm26-about .tm26-statement { margin-bottom: var(--s7); }

.tm26 .tm26-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s4);
  margin-top: var(--s9);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s6);
}
.tm26 .tm26-counter-n {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--tint);
}
.tm26 .tm26-counter .tm26-label { display: block; margin-top: var(--s2); }

/* --- portrait -------------------------------------------------------------
   Three crops from one frame (§12): 28px avatar, 64px circle, 280x340 About.
   Served at 2-3x so they stay sharp; untreated, because §12 exempts portraits
   from the duotone. */
.tm26 .tm26-portrait-64 {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
}
.tm26 .tm26-who-block {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
}
.tm26 .tm26-about-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}
.tm26 .tm26-portrait-about {
  width: 280px;
  height: 340px;
  object-fit: cover;
  display: block;
}
@media (max-width: 899px) {
  .tm26 .tm26-about-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .tm26 .tm26-portrait-about { width: 200px; height: 243px; }
  .tm26 .tm26-who-block { grid-template-columns: 1fr; }
}

/* The one address on the personal site is the personal one. */
.tm26 .tm26-write {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.tm26 .tm26-write:hover { text-decoration-thickness: 2px; }

/* Honeypot: out of sight and out of the accessibility tree, but NOT
   display:none — some bots skip hidden fields, and some browsers skip
   validating them. */
.tm26 .tm26-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.tm26 .tm26-subscribe-msg {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-top: var(--s4);
}
.tm26 .tm26-subscribe-msg[hidden] { display: none; }
.tm26 .tm26-subscribe button[disabled] { opacity: 0.6; cursor: default; }

/* ==========================================================================
   ARCHIVI · RICERCA · 404 · PAGINE LEGACY
   ========================================================================== */

.tm26 .tm26-archive-note,
.tm26 .tm26-archive-back {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--quiet);
  margin-top: var(--s5);
}
.tm26 .tm26-archive-back {
  margin-top: var(--s8);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s5);
}

.tm26 .tm26-searchform {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  max-width: 560px;
  margin-bottom: var(--s7);
}
.tm26 .tm26-searchform input[type="search"] {
  flex: 1 1 260px;
  font-family: var(--sans);
  font-size: 16px;
  padding: var(--s4);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: var(--page);
  color: var(--body);
}
.tm26 .tm26-searchform button {
  font-family: var(--sans);
  font-size: 15px;
  padding: var(--s4) var(--s6);
  background: var(--sage);
  color: #FFFFFF;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.tm26 .tm26-searchform button:hover { background: var(--sage-deep); }

.tm26 .tm26-404-topics { display: block; margin: var(--s8) 0 var(--s5); }

/*
 * Legacy Elementor pages keep their own layout untouched. Only the outer
 * spacing is ours — no width cap, because Elementor sections manage their own,
 * and constraining them here would break layouts built against the full width.
 */
.tm26 .tm26-legacy-body { margin-inline: calc(var(--gutter) * -1); }
@media (max-width: 899px) {
  .tm26 .tm26-legacy-body { margin-inline: -20px; }
}


/* ==========================================================================
   RESPONSIVE — deliberately the LAST block in this stylesheet.

   Two layouts were broken on a phone for exactly one reason: the desktop rules
   were written AFTER their own media queries, so at equal specificity source
   order handed the win to the desktop rule at every width. The article grid
   stayed two columns and the footer stayed three. Everything width-dependent
   now lives here, at the end, where nothing added above can override it.
   Measured at a real 390px viewport, not assumed.
   ========================================================================== */

@media (max-width: 1179px) {
  .tm26 .tm26-article-grid { grid-template-columns: minmax(0, 1fr); }
  .tm26 .tm26-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s6);
  }
  .tm26 .tm26-rail > * + * { margin-top: 0; }
}

@media (max-width: 899px) {
  /* Ragged right on phones (Federico, 2026-08-21). Justification holds up at a
     720px measure; at ~40 characters per line the inter-word gaps become
     visible holes, and hyphenation cannot absorb them. */
  .tm26 .tm26-body > p,
  .tm26 .tm26-body > ul,
  .tm26 .tm26-body > ol { text-align: left; hyphens: manual; -webkit-hyphens: manual; }

  /* The wordmark wrapped to two lines at 34px on a 390px screen and pushed the
     burger out of line with it. */
  .tm26 .tm26-wordmark-name { font-size: 26px; }

  .tm26 .tm26-title { font-size: 30px; }
  .tm26 .tm26-titleblock .tm26-title { font-size: 30px; }
  .tm26 .tm26-body > p:first-of-type { font-size: 18.5px; }

  .tm26 .tm26-about-grid  { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .tm26 .tm26-portrait-about { width: 200px; height: 243px; }
  .tm26 .tm26-who-block   { grid-template-columns: minmax(0, 1fr); }
  .tm26-footer .tm26-footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); }

  .tm26 .tm26-row { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .tm26 .tm26-more-row { grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); }

  .tm26 .tm26-steps { grid-template-columns: minmax(0, 1fr); }
  .tm26 .tm26-steps > * { border-left: 0; border-top: 1px solid var(--hairline); }
  .tm26 .tm26-steps > *:first-child { border-top: 0; }

  .tm26 .tm26-header-strip-inner,
  .tm26-header .tm26-header-strip-inner { flex-direction: column; align-items: flex-start; gap: var(--s3); }

  .tm26 .tm26-band-head { flex-wrap: wrap; }
  .tm26 .tm26-opener { aspect-ratio: auto; min-height: 0; max-height: none; }
  .tm26 .tm26-opener .tm26-statement { font-size: 22px; max-width: none; }
}

/* Code is the one thing that legitimately exceeds a phone's width: it scrolls
   inside its own frame rather than making the page scroll. */
.tm26 .tm26-body pre,
.tm26 .tm26-code,
.tm26 .enlighter,
.tm26 [class*="enlighter-t-"] {
  max-width: 100%;
  overflow-x: auto;
}
.tm26 .tm26-body img,
.tm26 .tm26-legacy-body img { max-width: 100%; height: auto; }

/* Long unbroken strings in prose (URLs, identifiers) must not push the column. */
.tm26 .tm26-body { overflow-wrap: break-word; }

/* SSH fix: .tm26-footer h2 must beat .elementor-kit-146 h2 (equal specificity, Autoptimize reorders) */
body .tm26-footer h2 { font-family: var(--mono); font-size: 11px; font-weight: 400; }
/* SSH fix: footer link color must beat .elementor-kit-146 a */
body .tm26-footer a { color: rgba(255,255,255,0.86); }
body .tm26-footer a:hover { color: #FFFFFF; }

/* ==========================================================================
   Accessibilità — 2026-09-11
   ========================================================================== */

/* axe "link-in-text-block": il link "Strumenta" nel descrittore di header è
   dello stesso inchiostro del testo attorno (1,33:1 fra i due colori), quindi
   il colore da solo non basta a segnalarlo. La sottolineatura lo distingue
   senza cambiare la palette. Vale header e articoli, dove il descrittore è lo
   stesso componente. */
.tm26-header a.tm26-who,
.tm26 .tm26-relation a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* --- EnlighterJS: token non raggiunti dalla palette --------------------------
   Le regole sopra rivestono i prefissi k/s/m/c/n/g/e; il tema "rowhammer"
   usa anche i gruppi x* (XML/generici) e t* (markup) che restavano ai colori
   originali. #0077AA su var(--code-body) #1A2320 misura 3,23:1 — sotto 4,5:1
   e all'origine delle 15 violazioni su una singola pagina. I token sono
   riportati sugli stessi tre colori già usati dallo schema, tutti sopra 7:1:
   keyword #93B79A 7,26:1, literal #C9A96B 7,18:1, testo #E8EDE9 13,58:1. */
.tm26 .enlighter .enlighter-x1,
.tm26 .enlighter .enlighter-x2,
.tm26 .enlighter .enlighter-x10,
.tm26 .enlighter .enlighter-x11,
.tm26 .enlighter .enlighter-x12,
.tm26 .enlighter .enlighter-t1,
.tm26 .enlighter .enlighter-t6 {
  color: var(--code-keyword) !important;
  border-bottom-color: var(--code-keyword) !important;
}
.tm26 .enlighter .enlighter-x13,
.tm26 .enlighter .enlighter-x14,
.tm26 .enlighter .enlighter-t2,
.tm26 .enlighter .enlighter-t3,
.tm26 .enlighter .enlighter-t4,
.tm26 .enlighter .enlighter-t5 {
  color: var(--code-literal) !important;
  border-bottom-color: var(--code-literal) !important;
}
.tm26 .enlighter .enlighter-t0,
.tm26 .enlighter .enlighter-t8 {
  color: var(--code-comment) !important;
}
.tm26 .enlighter .enlighter-x15,
.tm26 .enlighter .enlighter-t7,
.tm26 .enlighter .enlighter-raw {
  color: #E8EDE9 !important;
}

/* --- a11y, secondo giro (2026-09-11) ----------------------------------------
   Un audit axe su un articolo lungo (antlr-mega-tutorial) ha fatto emergere
   altre 21 occorrenze dello stesso rilievo "link-in-text-block": i link nel
   corpo dell'articolo sono var(--sage) #4A5D4E su testo var(--body) #26302B,
   cioè 1,93:1 fra i due — indistinguibili senza sottolineatura. Stessa regola
   del descrittore di header, estesa alla prosa. I bottoni Gutenberg restano
   esclusi: hanno già una forma propria. */
.tm26 .tm26-body p a:not(.wp-block-button__link),
.tm26 .tm26-body li a:not(.wp-block-button__link),
.tm26 .tm26-body dd a,
.tm26 .tm26-body td a,
.tm26 .tm26-body blockquote a,
.tm26 .tm26-authorbio .tm26-reply a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* Colophon: var(--muted) #6F746E su var(--stone) #F2F0EA dà 4,19:1 a 11px,
   sotto la soglia. var(--quiet) #4C534E sullo stesso fondo dà 6,94:1.
   La toolbar di Enlighter usa la stessa coppia e va corretta insieme. */
.tm26 .tm26-colophon .tm26-label,
.tm26 .tm26-colophon dt { color: var(--quiet); }
.tm26 .enlighter-toolbar { color: var(--quiet) !important; }

/* Disclaimer del form ConvertKit: #A6A8AA su bianco è 2,38:1 a 12px.
   var(--quiet) sullo stesso bianco dà 7,91:1. */
.formkit-form .formkit-disclaimer,
.formkit-form .formkit-disclaimer * { color: var(--quiet) !important; }

/* Il disclaimer ConvertKit resta a 2,92:1 anche dopo il cambio di colore
   perché l'embed gli applica opacity .6: var(--quiet) #4C534E al 60% su
   bianco ridiventa #949895. Tolta l'opacità, la coppia è 7,91:1. */
.formkit-form .formkit-disclaimer { opacity: 1 !important; }

/* Bottoni Gutenberg dentro agli articoli: il default del blocco è testo
   bianco su #32373C, ma il colore link del tema (var(--sage) #4A5D4E) vince
   e lascia 1,69:1. Ripristinata la carta chiara: 11,51:1. */
.tm26 .tm26-body .wp-block-button__link,
.tm26 .tm26-body .wp-element-button { color: #FBFAF6; }

/* Firma nell'eyebrow dell'articolo: eredita il colore del label, si distingue
   solo per la sottolineatura. Aggiunta l'11 set 2026 con la byline reale. */
.tm26 .tm26-label .tm26-byline {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: from-font;
}

/* --- moduli Kit ---------------------------------------------------------
   I colori dei campi arrivano da Kit come attributo style inline, quindi
   servono !important. Sei moduli, tre combinazioni diverse, due sotto la
   soglia: bianco su #bab6b6 e' 2,0:1, il disclaimer #CBCBCB su bianco ~1,5:1,
   e #8b8b8b su #F6F8FA e' 3,1:1. Qui vale una sola resa per tutti.
   Il fix definitivo e' nell'editor di Kit, un modulo alla volta.
   (11 set 2026, audit C03) */
.tm26 .formkit-form .formkit-input {
  color: #1f2328 !important;              /* 15:1 su bianco */
  background-color: #ffffff !important;
  border: 1px solid #6b7280 !important;   /* 4,4:1, sopra il 3:1 dei bordi */
}
.tm26 .formkit-form .formkit-input::placeholder {
  color: #5b6268 !important;              /* 6,4:1 */
  opacity: 1 !important;
}
/* Kit toglie l'outline sul focus e lascia solo il colore del bordo: da sola
   non e' una indicazione sufficiente per chi naviga da tastiera. */
.tm26 .formkit-form .formkit-input:focus {
  outline: 2px solid #1677be !important;
  outline-offset: 1px !important;
}
.tm26 .formkit-form .formkit-disclaimer,
.tm26 .formkit-form .formkit-disclaimer p {
  color: #545b62 !important;              /* 7:1 */
}
/* Un modulo di download chiede una email. Azienda e paese sono facoltativi e
   non servono a consegnare un PDF: restano nel markup ma non si mostrano,
   cosi' l'eventuale rimozione lato Kit non rompe niente. (audit C02) */
.tm26 .formkit-form .formkit-field:has(> input[aria-label="Company name"]),
.tm26 .formkit-form .formkit-field:has(> input[aria-label="Country"]) {
  display: none !important;
}

/* Marcatore per i link sostituiti con una copia d'archivio. Il testo del link
   resta quello scritto dall'autore; questo dice al lettore che la pagina
   originale non e' piu' online, prima che ci clicchi. (11 set 2026) */
.tm26 .tm26-archived {
  font-size: 0.82em;
  color: var(--ink-muted, #5b6268);
  white-space: nowrap;
}
.tm26 .tm26-archived::before { content: "\00a0"; }
