/* cage-showcase.css: the company showcase on CAGE pages (Pages/CAGE/_CageShowcase.cshtml). Classes start with nlc-.
   Follows the home page "Five doors" design (home.css): --nl-* tokens from nsn-dialog.css, navy hero, condensed headings,
   small uppercase labels. Roboto Condensed and Roboto Mono are loaded by the partial (display=swap). */

.nlc {
    --nlc-condensed: "Roboto Condensed", "Arial Narrow", Roboto, "Helvetica Neue", Arial, sans-serif;
    --nlc-mono: "Roboto Mono", ui-monospace, Consolas, "Courier New", monospace;
    --nlc-on-dark: #d5deea;
    --nlc-on-dark-muted: #b8c6d8;
    --nlc-body: #3a4c63;
    --nlc-gap: clamp(1rem, 2.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: var(--nlc-gap);
    margin: 0 0 1.5rem;
    color: var(--nl-ink);
    font-family: var(--nl-font);
    line-height: 1.55;
}
.nlc a { color: var(--nl-blue); }
.nlc a:hover, .nlc a:focus { color: var(--nl-navy); }
.nlc h2, .nlc h3, .nlc p { margin: 0; }
.nlc :focus-visible { outline: 3px solid var(--nl-gold); outline-offset: 2px; }

.nlc-draft {
    background: #fff4d6; color: #6b4e00; border: 1px solid var(--nl-gold-strong);
    border-radius: var(--nl-radius-sm); padding: .5rem .85rem; font-size: .9rem;
}

.nlc-label {
    font-size: .8125rem; font-weight: 700; letter-spacing: .09em; line-height: 1.3;
    text-transform: uppercase; color: var(--nl-blue);
}
.nlc-label--on-dark { color: var(--nlc-on-dark-muted); }
.nlc-heading { font-family: var(--nlc-condensed); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; color: var(--nl-navy); }

/* ---------- Hero ---------- */
.nlc-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 2rem);
    background: var(--nl-navy); color: #fff; border-radius: var(--nl-radius);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}
.nlc-hero__logo {
    flex: 0 0 auto; display: grid; place-items: center; background: #fff; border-radius: var(--nl-radius-sm);
    width: 120px; height: 120px; padding: .75rem;
    /* A border and a soft ring keep any logo, whatever its colours, clearly framed against the navy. */
    border: 1px solid var(--nl-line); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14);
}
.nlc-hero__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* logo_tile = dark: for white or light logos made for dark backgrounds */
/* Favicon fallback (no logo on file): a small icon centred, never stretched or blurred */
.nlc-hero__logo.is-icon { width: 72px; height: 72px; padding: .9rem; }
.nlc-hero__logo.is-icon img { width: 40px; height: 40px; image-rendering: auto; }
.nlc-hero__logo.is-dark { background: #1d2b3e; border-color: #3b4f6b; }
.nlc-hero__text { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.nlc-hero__title { font-family: var(--nlc-condensed); font-weight: 800; font-size: clamp(1.9rem, 4.5vw, 3.25rem); line-height: 1.02; color: #fff; text-wrap: balance; }
.nlc-hero__tagline { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--nlc-on-dark); max-width: 60ch; }
.nlc-hero__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--nlc-on-dark-muted); font-size: .9rem; }
.nlc-hero__facts strong { color: #fff; font-family: var(--nlc-mono); }
.nlc-btn {
    display: inline-flex; align-items: center; gap: .4rem; min-height: var(--nl-tap); padding: .55rem 1.1rem;
    border-radius: var(--nl-radius-sm); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nlc .nlc-btn--gold { background: var(--nl-gold); color: var(--nl-navy); }
.nlc .nlc-btn--gold:hover, .nlc .nlc-btn--gold:focus { background: var(--nl-gold-strong); color: var(--nl-navy); }
.nlc .nlc-btn--line { border: 1px solid var(--nl-line); color: var(--nl-navy); background: #fff; }

/* ---------- Body ---------- */
.nlc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--nlc-gap); }
@media (max-width: 991.98px) { .nlc-grid { grid-template-columns: minmax(0, 1fr); } }
.nlc-panel { background: #fff; border: 1px solid var(--nl-line); border-radius: var(--nl-radius); padding: clamp(1rem, 2.5vw, 1.5rem); display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.nlc-panel--soft { background: var(--nl-soft); }

/* htmlcontent: the stored showcase body */
.nlc-body { color: var(--nlc-body); font-size: 1.02rem; display: flex; flex-direction: column; gap: .9rem; }
.nlc-body h2, .nlc-body h3 { font-family: var(--nlc-condensed); font-weight: 800; color: var(--nl-navy); font-size: 1.35rem; }
.nlc-body p { max-width: 70ch; }
.nlc-body ul.nlc-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.nlc-body ul.nlc-facts li { background: var(--nl-soft); border: 1px solid var(--nl-line); border-radius: 999px; padding: .2rem .75rem; font-size: .9rem; color: var(--nl-ink); }
.nlc-body figure { margin: 0; }
.nlc-body img { max-width: 100%; height: auto; border-radius: var(--nl-radius-sm); }
.nlc-body .nlc-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; }
.nlc-body .nlc-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--nl-line); }
.nlc-body figcaption { font-size: .8rem; color: var(--nl-muted); margin-top: .25rem; }

/* Video: thumbnail button until clicked (no YouTube request before the click) */
.nlc-video { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--nl-radius-sm); overflow: hidden; background: #000; cursor: pointer; }
.nlc-video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; border-radius: 0; }
.nlc-video::after {
    content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; border-radius: 12px; background: #d32f2f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.nlc-video:hover::after, .nlc-video:focus::after { background-color: #b71c1c; }
.nlc-video-frame { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--nl-radius-sm); }

/* Contact */
.nlc-contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .9rem; margin: 0; }
.nlc-contact dt { font-weight: 700; font-size: .875rem; color: var(--nl-muted); }
.nlc-contact dd { margin: 0; overflow-wrap: anywhere; }
.nlc-note { font-size: .8125rem; color: var(--nl-muted); }
.nlc-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.nlc-social a { display: inline-grid; place-items: center; width: var(--nl-tap); height: var(--nl-tap); border: 1px solid var(--nl-line); border-radius: var(--nl-radius-sm); font-size: 1.15rem; text-decoration: none; background: #fff; }
.nlc-stock { min-height: 220px; border: 1px solid var(--nl-line); border-radius: var(--nl-radius-sm); }

/* Contract performance */
.nlc-chart { width: 100%; height: auto; display: block; }
.nlc-chart .bar { fill: var(--nl-blue); }
.nlc-chart .bar--now { fill: var(--nl-gold-strong); }
.nlc-chart text { font-family: var(--nl-font); font-size: 11px; fill: var(--nl-muted); }
.nlc-chart .val { fill: var(--nl-ink); font-weight: 700; }
.nlc-chart .axis { stroke: var(--nl-line); }
.nlc-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.nlc-stat strong { display: block; font-family: var(--nlc-condensed); font-size: 1.75rem; font-weight: 800; color: var(--nl-navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.nlc-stat span { font-size: .8125rem; color: var(--nl-muted); }
.nlc-wins { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.nlc-wins li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; padding: .55rem .75rem; border: 1px solid var(--nl-line); border-left: 4px solid var(--nl-success); border-radius: var(--nl-radius-sm); background: var(--nl-success-soft); }
.nlc-wins .nlc-mono { font-family: var(--nlc-mono); font-weight: 700; }

/* Backlink box */
.nlc-backlink textarea { width: 100%; min-height: 4.5rem; font-family: var(--nlc-mono); font-size: .8rem; border: 1px solid var(--nl-line); border-radius: var(--nl-radius-sm); padding: .5rem; resize: vertical; }
.nlc-backlink__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.nlc-foot { font-size: .8125rem; color: var(--nl-muted); border-top: 1px solid var(--nl-line); padding-top: .75rem; }
