/* NeuraCoreWebLicence, layout specific to the single licensing page.
 *
 * This is the second stylesheet the page links. The first, neuracore.css, is
 * the shared theme copied in by NeuraCoreDeploy: it owns every colour token,
 * the typography, the brand mark and the shared components. Nothing here
 * redefines any of that, which is what keeps this page looking like the rest of
 * the solution rather than like a page that resembles it. */

.lic {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 0;
    flex-direction: column;
    overflow-x: hidden;
}

.lic__skip {
    position: fixed;
    top: -5rem;
    left: var(--nc-space-4);
    z-index: 100;
    padding: var(--nc-space-2) var(--nc-space-4);
    background: var(--nc-cyan);
    color: var(--nc-on-accent);
    border-radius: var(--nc-radius-sm);
}
.lic__skip:focus { top: var(--nc-space-4); color: var(--nc-on-accent); }

/* --- Header -------------------------------------------------------------- */

.lic__header {
    position: sticky;
    top: 0;
    z-index: 20;
    flex: 0 0 auto;
    background: rgba(18, 18, 20, 0.96);
    border-bottom: 1px solid var(--nc-line);
    backdrop-filter: blur(12px);
}
.lic__header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nc-space-4);
}
.lic__brand-sub {
    display: block;
    color: var(--nc-text-dim);
    font-size: var(--nc-size-xs);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.lic__languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--nc-space-1);
    max-width: 28rem;
}
.lic__language {
    min-width: 2.1rem;
    padding: 0.25rem 0.4rem;
    border: 1px solid var(--nc-line);
    border-radius: var(--nc-radius-sm);
    color: var(--nc-text-dim);
    font-size: var(--nc-size-xs);
    text-align: center;
}
.lic__language:hover { border-color: var(--nc-cyan); text-decoration: none; }
/* Dark text on the cyan fill, as the solution theme rule requires. */
.lic__language--active,
.lic__language--active:hover {
    background: var(--nc-cyan);
    border-color: var(--nc-cyan);
    color: var(--nc-on-accent);
}

/* --- Body ---------------------------------------------------------------- */

.lic__main {
    flex: 1 1 auto;
    min-width: 0;
    padding-block: var(--nc-space-8) var(--nc-space-16);
}

/* The row of outbound links, above the guide.
 *
 * A grid of equal cards rather than a line of text links: these are the five
 * places a reader goes next, they are the reason this page is a landing page
 * rather than a wiki topic, and a row of underlined words in a paragraph would
 * read as an afterthought. */
.lic__links {
    margin-bottom: var(--nc-space-12);
}
.lic__links ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: var(--nc-space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.lic__links li {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--nc-space-1);
}
.lic__link {
    display: block;
    padding: var(--nc-space-4);
    background: var(--nc-panel);
    border: 1px solid var(--nc-line);
    border-radius: var(--nc-radius);
    color: var(--nc-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}
.lic__link:hover {
    border-color: var(--nc-cyan);
    color: var(--nc-cyan);
    text-decoration: none;
}
/* The in-world address, shown as text under its own link because a browser
   with no Second Life viewer registered can do nothing with the scheme. */
.lic__link-note {
    color: var(--nc-text-faint);
    font-size: var(--nc-size-xs);
    overflow-wrap: anywhere;
}
.lic__link-note code {
    color: var(--nc-text-dim);
    overflow-wrap: anywhere;
}

.lic__article { min-width: 0; }
.lic__hero { margin-bottom: var(--nc-space-12); }
.lic__section { margin: 0 0 var(--nc-space-12); }
.lic__section h2 { padding-top: var(--nc-space-2); }
.lic__section li { margin-bottom: var(--nc-space-2); max-width: var(--nc-measure); }

/* The line saying where this text comes from, at the end rather than the top:
   a reader who has finished is the one who might want the rest of the wiki. */
.lic__source {
    padding-top: var(--nc-space-6);
    border-top: 1px solid var(--nc-line);
    color: var(--nc-text-faint);
    font-size: var(--nc-size-sm);
}

/* --- The comparison table ------------------------------------------------ */

/* The wrapper is the only thing allowed to scroll sideways. Four columns of
 * translated prose is the one piece of content that can outgrow the article,
 * and the article widening would take the whole document with it. */
.lic__table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--nc-line);
    border-radius: var(--nc-radius);
}
.lic__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--nc-size-sm);
}
.lic__table th,
.lic__table td {
    padding: var(--nc-space-3) var(--nc-space-4);
    border-bottom: 1px solid var(--nc-line-soft);
    text-align: left;
    vertical-align: top;
}
.lic__table thead th {
    background: var(--nc-panel-high);
    color: var(--nc-text);
    font-weight: 700;
    white-space: nowrap;
}
/* The row label. Dimmer than a column heading because it names the thing being
 * compared rather than one of the things it is compared against. */
.lic__table tbody th {
    color: var(--nc-text-dim);
    font-weight: 600;
    min-width: 11rem;
}
.lic__table tbody tr:last-child th,
.lic__table tbody tr:last-child td { border-bottom: 0; }

/* --- Footer -------------------------------------------------------------- */

.lic__footer {
    flex: 0 0 auto;
    padding-block: var(--nc-space-4);
    border-top: 1px solid var(--nc-line);
    color: var(--nc-text-faint);
    font-size: var(--nc-size-sm);
}

@media (max-width: 560px) {
    .lic__header-inner { flex-direction: column; align-items: flex-start; padding-block: var(--nc-space-3); }
    .lic__languages { justify-content: flex-start; }
}
