/*
 * Bootstrap-inspired light theme.
 * No Bootstrap library is required.
 */

:root {
    color-scheme: light;

    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-active: #0a58ca;

    --body-color: #212529;
    --secondary-color: #6c757d;

    --card-background: #ffffff;
    --header-background: #f8f9fa;
    --property-label-background: #f8f9fa;

    --border-color: #dee2e6;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--body-color);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    -webkit-text-size-adjust: 100%;
}

main {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 0.75rem;
}

/*
 * Concept card
 */

article {
    overflow: hidden;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/*
 * Card header
 */

article > header {
    padding: 1.5rem;
    background-color: var(--header-background);
    border-bottom: 1px solid var(--border-color);
}

h1 {
    margin: 0 0 0.5rem;
    color: var(--body-color);
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 500;
    line-height: 1.2;
}

.type {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.35em 0.65em;
    color: #ffffff;
    background-color: var(--primary);
    border-radius: 50rem;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    vertical-align: baseline;
    white-space: nowrap;
}

.uri {
    margin: 0;
    color: var(--secondary-color);
    overflow-wrap: anywhere;
    font-family:
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
    font-size: 0.875rem;
}

.uri a {
    color: var(--primary);
    text-decoration: none;
}

.uri a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/*
 * Alternate-format toolbar
 */

.formats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.formats span {
    margin-right: 0.25rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.formats a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    color: var(--primary);
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.formats a:hover {
    color: #ffffff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.formats a:active {
    color: #ffffff;
    background-color: var(--primary-active);
    border-color: var(--primary-active);
}

.formats a:focus {
    outline: 0;
    box-shadow: var(--focus-shadow);
}

/*
 * RDF property list
 */

.properties {
    display: grid;
    grid-template-columns: minmax(180px, 30%) minmax(0, 70%);
    margin: 0;
    padding: 1.5rem;
    background-color: var(--card-background);
}

.properties dt,
.properties dd {
    margin: 0;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.properties dt {
    color: var(--body-color);
    background-color: var(--property-label-background);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.properties dd {
    min-width: 0;
    color: var(--body-color);
    background-color: #ffffff;
    overflow-wrap: anywhere;
}

/*
 * Keep repeated values in the value column.
 */

.properties dd + dd {
    grid-column: 2;
}

/*
 * General links
 */

a {
    color: var(--primary);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-hover);
}

a:focus-visible {
    outline: 0;
    border-radius: 0.125rem;
    box-shadow: var(--focus-shadow);
}

/*
 * Optional language and datatype labels.
 */

.badge,
.language,
.datatype {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.35em 0.65em;
    color: #ffffff;
    background-color: var(--secondary-color);
    border-radius: 50rem;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    vertical-align: baseline;
    white-space: nowrap;
}

/*
 * Inline code and machine-readable identifiers.
 */

code {
    padding: 0.15rem 0.35rem;
    color: #d63384;
    background-color: #f1f3f5;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-family:
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
}

/*
 * Responsive layout
 */

@media (min-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    main {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    article > header {
        padding: 1.25rem;
    }

    .formats {
        padding: 1rem 1.25rem;
    }

    .formats span {
        flex-basis: 100%;
        margin-bottom: 0.25rem;
    }

    .properties {
        display: block;
        padding: 1.25rem;
    }

    .properties dt {
        padding-bottom: 0.35rem;
        border-bottom: 0;
        border-radius:
            var(--border-radius)
            var(--border-radius)
            0
            0;
    }

    .properties dd {
        padding-top: 0.35rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    .properties dd + dd {
        padding-top: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    main {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    article > header,
    .formats,
    .properties {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .formats a {
        flex: 1 1 auto;
    }
}

/*
 * Respect reduced-motion preferences.
 */

@media (prefers-reduced-motion: reduce) {
    .formats a {
        transition: none;
    }
}

/*
 * Print-friendly output
 */

@media print {
    body {
        color: #212529;
        background-color: #ffffff;
    }

    main {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    article {
        border: 0;
        box-shadow: none;
    }

    .formats {
        display: none;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .uri a::after,
    .properties a::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
    }
}

/*
 * Shared concept and concept-scheme footer
 */

.footer-divider {
    height: 0;
    margin: 2.5rem 0 1.5rem;
    color: inherit;
    border: 0;
    border-top: 1px solid var(--border-color);
    opacity: 0.75;
}

.site-footer {
    padding: 0 1rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.75;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--primary);
}

.site-footer a:hover {
    color: var(--primary-hover);
}

.text-center {
    text-align: center;
}

.text-body-secondary {
    color: var(--secondary-color);
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        font-size: 0.8125rem;
    }
}

@media print {
    .footer-divider {
        border-top-color: #dee2e6;
    }

    .text-body-secondary {
        color: #6c757d;
    }
}