/* U4 CZ-NACE converter: layout and result-row specifics only. Brand components, colours and fonts come from tools-shell.css + tokens.css. */
.tl-main [hidden] { display: none !important; }
#nace-load-status { margin: 0 0 20px; }
#nace-retry { margin: -4px 0 20px; }
.nace-tools { margin: 0 0 clamp(32px, 5vw, 56px); }
.nace-card .tl-kicker { margin-bottom: 6px; }
.nace-card h2 { margin-bottom: 18px; }
.nace-card fieldset:disabled { opacity: .7; }
.tl-main #nace-query { font-family: var(--font-sans); }
.nace-answer p a { font-weight: 500; }

/* Result panel: the shell paints the state dot; keep the list full width and put the dot beside the message only. */
.tl-main .nace-result[role="status"]:not(:empty) { padding: 14px 16px; }
.tl-main .nace-result[role="status"]:not(:empty)::before { top: 21px; left: 16px; }
.nace-msg { margin: 0; padding-left: 26px; }
.nace-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--tl-hair); font-size: 14px; }
.nace-from-label { color: var(--fg-3, var(--fg-2)); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.nace-from-name { color: var(--fg-2); min-width: 0; overflow-wrap: anywhere; }
.nace-chip, .nace-code { display: inline-block; flex: 0 0 auto; padding: 2px 9px; border: 1px solid var(--tl-hair-2); border-radius: 999px; background: var(--bg-canvas); color: var(--fg-1); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.nace-group { margin-top: 12px; padding: 0 14px; border: 1px solid var(--tl-hair); border-radius: 12px; background: var(--bg-surface); }
.nace-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 12px 0 10px; font-size: 14px; font-weight: 500; }
.nace-group-head + .nace-results .nace-row:first-child { border-top: 1px solid var(--tl-hair); }
.nace-badge { padding: 1px 9px; border-radius: 999px; background: var(--accent); color: var(--fg-on-accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.nace-results { margin: 0; padding: 0; list-style: none; }
.nace-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--tl-hair); }
.nace-row:first-child { border-top: 0; }
.nace-row .nace-code { justify-self: start; margin-top: 1px; }
.nace-row-body { min-width: 0; }
.nace-row-body p { margin: 0; }
.nace-name { overflow-wrap: anywhere; }
.nace-result-meta { margin-top: 2px; color: var(--fg-3, var(--fg-2)); font-size: 13px; }
.nace-common-details { margin-top: 6px; font-size: 14px; }
.nace-common-details summary { cursor: pointer; color: var(--fg-2); }
.nace-common { margin-top: 6px; color: var(--fg-2); white-space: pre-line; }
.nace-more { margin: 4px 0 14px; }
.nace-row:focus { outline: none; }
.nace-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.nace-row-link { display: inline-block; margin-top: 6px; font-size: 14px; }
.nace-result > .nace-row-link, .nace-result > button { margin-top: 12px; }
.nace-result > button { display: flex; }

/* Company card (shell .tl-next): label above, input and button on one row. */
.nace-company fieldset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: start; max-width: 520px; }
.nace-company label { grid-column: 1 / -1; }
.nace-company input { margin-bottom: 0; }
.nace-company fieldset:disabled { opacity: .7; }
.nace-company > div > p:first-of-type { max-width: 62ch; }
.nace-company [role="status"]:not(:empty) { max-width: 520px; }
.nace-company .tl-btn { margin-top: 14px; }

/* Sources: attribution line between the section head and the chips. */
.nace-attribution { margin: 0 0 14px; color: var(--fg-2); font-size: 14.5px; }

/* GEO guide extension: server-injected immutable fragment (server.mjs injectRootGuidePublications) lands just before </main>. */
.tl-main section[id^="guide-"] { margin: clamp(40px, 6vw, 64px) 0 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--tl-hair); border-radius: var(--tl-radius-card); background: var(--bg-surface); }
.tl-main section[id^="guide-"] h2 { font-size: 1.35rem; }
.tl-main section[id^="guide-"] figure { margin: 20px 0; }
.tl-main section[id^="guide-"] svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.tl-main section[id^="guide-"] figcaption { margin-top: 8px; color: var(--fg-3, var(--fg-2)); font-size: 13.5px; }
.tl-main section[id^="guide-"] section { margin: 0 0 12px; }

@media (max-width: 640px) {
  .nace-row { grid-template-columns: minmax(0, 1fr); }
  .nace-company fieldset { grid-template-columns: minmax(0, 1fr); }
  .nace-company button { margin-top: 12px; width: 100%; }
}
