:root {
    --bg: #ffffff;
    --surface-muted: #e8e8e8;
    --text: #1d1d1b;
    --muted: #6b6b6b;
    --danger: #dc3545;
    --max-width: 950px;
    --content-width: 75ch;
    --narrow-width: 720px;
}

@font-face {
    font-family: "U8";
    src: url("/fonts/U8-Light-web.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "U8";
    src: url("/fonts/U8-Bold-web.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
}

/* Base */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background: var(--bg);
    color: var(--text);
    font-family: "U8", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
}

main.container {
    flex: 1;
}

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    /* padding: 3rem 1.5rem 1rem; */

    padding: 1.5rem 1.5rem 1rem;
}

/* Branding */
.x-logo,
.x-logo-h1 {
    font-family: "U8", sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.x-logo {
    line-height: 0.2;
    vertical-align: text-top;
}

.x-logo-h1 {
    line-height: 0.35;
    vertical-align: text-bottom;
}

.x-reg,
.x-reg-h1 {
    font-family: "U8", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 0.35;
}

.x-reg {
    vertical-align: super;
}

.x-reg-h1 {
    vertical-align: text-top;
}

/* Page title */
.page-title {
    margin: 0;
}

.page-title span {
    display: block;
}

.page-title span:first-child {
    padding-bottom: 1.5rem;
    font-family: "U8", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.2;
    vertical-align: text-top;
}

.page-title span:nth-child(2),
.page-title span:nth-child(3) {
    padding-bottom: 0.5rem;
    font-size: 0.85em;
}

/* Headings */
h1 {
    margin-bottom: 0.75rem;
    font-family: "U8", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.smallemail {
    margin-bottom: 0.75rem;
    font-family: "U8", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: lowercase;
}

h1.lowercase {
    margin-bottom: 0.75rem;
    font-family: "U8", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: lowercase;
}

h2,
.normalcase {
    margin: 3.5rem 0 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}

h3 {
    margin: 3.5rem 0 1.25rem;
    padding-left: 4.5em;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: left;
}

.normalcase {
    font-weight: 400;
    text-transform: none;
}

.x-heading-line {
    display: block;
    margin-bottom: 0.5rem;
}

.x-heading-line:last-child {
    margin-bottom: 0;
}

.x-newlogo {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
}

.x-registered {
    position: relative;
    top: -0.75rem;
    margin-left: 0.1em;
    font-size: 1rem;
    font-weight: 400;
    line-height: 0;
}

.x-homepage-h1 {
    font-size: 1.5rem;
}

.x-homepage-h1-smaller {
    font-size: 1.25rem;
}

.h1-divider {
    width: 48px;
    height: 2px;
    margin: 0.5rem auto 2rem;
    background-color: var(--text);
}

.subtitle {
    max-width: 42rem;
    margin: 0 auto 2rem;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    hyphens: none;
}

/* Content */
p {
    max-width: var(--content-width);
    margin: 0 auto 1.25rem;
    font-size: 1rem;
    text-align: justify;
    hyphens: auto;
}

pre {
    padding: 1em 0 2em;
    text-align: center;
}

footer {
    margin-top: auto;
}

.GIFooter {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}

.sub {
    font-size: 0.8em;
    vertical-align: sub;
}

/* Sales highlight */
.highlight {
    color: #fff;
    background-color: var(--danger);
    padding: 5px;
    border: 1px solid var(--text);
    border-radius: 0.25rem;
    font-weight: 700;
    text-align: center;
}

/* Navigation */
.nav-top,
.nav-bottom {
    display: flex;
    justify-content: center;
    background: var(--surface-muted);
}

.nav-top {
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
}

.nav-bottom {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: var(--surface-muted);

    /*padding: 1rem 0;*/
}

.nav-top .nav-links,
.nav-bottom ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-top .nav-links a,
.nav-bottom a {
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.nav-top .nav-links a:hover,
.nav-top .nav-links a:focus-visible,
.nav-bottom a:hover,
.nav-bottom a:focus-visible {
    text-decoration: underline;
}

/* The first top-navigation link changes colour without an underline. */
.nav-top .nav-links > li:first-child > a:hover,
.nav-top .nav-links > li:first-child > a:focus-visible,
.nav-logo-link:hover,
.nav-logo-link:focus-visible {
    color: var(--muted);
    text-decoration: none;
}

.nav-top .nav-links > li:first-child > a:hover .x-logo,
.nav-top .nav-links > li:first-child > a:hover .x-reg {
    color: inherit;
    text-decoration: none;
}

/* Links */
.x-link,
.c-link {
    color: var(--text);
    border-radius: 4px;
    text-decoration: none;
    hyphens: none;
}

.x-link {
    font-weight: 700;
}

.c-link {
    padding: 8px 16px;
    font-size: 0.95rem;
}

.x-link:hover,
.x-link:focus-visible,
.c-link:hover,
.c-link:focus-visible {
    text-decoration: underline;
}

a[href^="mailto:"] {
    /*padding: 5px 10px;*/
    color: var(--text);
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
}

a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus-visible {
    text-decoration: underline;
}

/* Academic index */
.index-section {
    max-width: var(--narrow-width);
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: left;
}

.index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 3rem;
    align-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.index-list.single-column {

    grid-template-columns: minmax(0, 1fr);

}

.index-list.two-column {
    display: block;
    column-count: 2;
    column-gap: 3rem;
}

.index-list li {
    margin: 0.35rem 0;
    break-inside: avoid;
    line-height: 1.5;
}

.index-list a {
    color: var(--text);
    font-size: 0.95rem;
    text-decoration: none;
}

.index-list a:hover,
.index-list a:focus-visible {
    text-decoration: underline;
}

/* Glossary */
.glossary dl {
    max-width: var(--narrow-width);
    margin: 1.25rem auto;
    padding-left: 1.2rem;
}

.glossary dt {
    margin: 1rem auto;
    padding-left: 1.2rem;
    font-weight: 700;
}

.glossary dd {
    padding-left: 3rem;
}

/* Policy lists */
.policy-body ul,
.policy-body ol {
    max-width: var(--narrow-width);
    margin: 1.25rem auto;
    padding-left: 1.2rem;
    list-style-position: outside;
}

.policy-body li {
    margin: 0.35rem 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
}

.policy-body h2 + ul {
    margin-top: 0.75rem;
}

.policy-body ul li::marker {
    color: var(--muted);
}

/* Utilities */
.center-align {
    text-align: center;
}

.justify-align {
    text-align: justify;
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}

.indent {
    padding-left: 70px;
}

.no-hyphen {
    hyphens: none;
}

.x-no-hover:hover,
.x-no-hover:focus-visible {
    text-decoration: none !important;
}

/* Strategic enquiry invitation */
.strategic-enquiry {
    padding: 1.25rem 1.5rem 1rem;
    color: var(--text);
    background: var(--bg);
    /*border-bottom: 1px solid var(--surface-muted);*/
    text-align: center;
}

.strategic-enquiry-heading {
    max-width: 42rem;
    margin: 0.5rem auto;
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-align: center;
    hyphens: none;
}

.strategic-enquiry-subheading {
    max-width: 42rem;
    margin: 0.5rem auto;
    line-height: 1.4;
    text-align: center;
    hyphens: none;

    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strategic-enquiry-divider {
    width: 48px;
    height: 2px;
    /* margin: 1rem auto; */
    margin: 1.0rem auto 0;
    background: var(--text);
}

.strategic-enquiry-link {
    color: var(--text);
    font-size: 1,25rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-transform: uppercase;
}

.strategic-enquiry-link:hover,
.strategic-enquiry-link:focus-visible {
    text-decoration: underline;
}

*/
    /* ===========================
     *  Domain & Trade Mark Index (also used in some tables throughout)
     *  =========================== */
    .domain-trademark-index {
        max-width: 860px;
        margin: 3rem auto;
        padding: 0 1.25rem;
        color: #1d1d1b;
    }

    /* Section heading */
    .domain-trademark-index h2 {
        font-size: 1.15rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 1rem;
        color: #2a2a2a;
    }

    /* Subtitle TM only */
    .subtitleTM {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text);
        max-width: 36rem;
        margin: 0 auto 2rem auto; /* center subtitle */
        text-align: center;
    }

    /* ===========================
     *  Table Base
     *  =========================== */

    .domain-index {
        width: 100%;
        margin-inline: auto;
        border-collapse: collapse;
        background: #ffffff;
        border-radius: 4px;
        overflow: hidden;
    }

    /* Header */
    .domain-index thead th {
        text-align: left;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 0.75rem 1rem;
        background: #f4f4f4;
        color: #444;
        border-bottom: 1px solid #ddd;
    }

    /* Rows */
    .domain-index tbody tr {
        border-bottom: 1px solid #e2e2e2;
    }

    .domain-index tbody tr:last-child {
        border-bottom: none;
    }

    /* Cells */
    .domain-index td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
        vertical-align: top;
    }

    /* Domain column slightly stronger */
    .domain-index td:first-child a {
        font-weight: 500;
    }

    /* Links */
    .domain-index a {
        color: #1d1d1b;
        text-decoration: none;
        border-bottom: 1px solid transparent;
    }

    .domain-index a:hover,
.domain-index a:focus {
    border-bottom-color: #1d1d1b;
}

/* Trade mark emphasis */
.domain-index td:nth-child(2) a {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* NONE placeholder */
.domain-index a[href*="no-trade-mark"] {
    font-weight: 400;
    color: #777;
    letter-spacing: 0.02em;
}

/* ===========================
 *  Material-style Row Hover
 *  =========================== */
.domain-index tbody tr:hover {
    background: #fafafa;
}

/* ===========================
 *  Responsive Refinement
 *  =========================== */
@media (max-width: 640px) {
    .domain-index thead {
        display: none;
    }

    .domain-index tr {
        display: block;
        padding: 0.75rem 0;
    }

    .domain-index td {
        display: block;
        padding: 0.25rem 1rem;
    }

    .domain-index td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #777;
        margin-bottom: 0.15rem;
    }
}

/* Glossary alphabetical navigation */
.glossary-navigation {
    max-width: var(--narrow-width);
    margin: 2rem auto 3rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface-muted);
    border-radius: 4px;
    text-align: center;
}

.glossary-navigation__label {
    max-width: none;
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    hyphens: none;
}

.glossary-navigation__letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.glossary-navigation__letters a,
.glossary-navigation__letters span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-height: 2rem;
    color: var(--text);
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.glossary-navigation__letters a:hover,
.glossary-navigation__letters a:focus-visible {
    color: var(--bg);
    background: var(--text);
    text-decoration: none;
}

.glossary-navigation__letters a:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.glossary-navigation__letters span[aria-disabled="true"] {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.55;
}

.back-to-top {
    max-width: var(--narrow-width);
    margin: 1.5rem auto 3rem;
    font-size: 0.9rem;
    text-align: right;
    hyphens: none;
}

.back-to-top a {
    color: var(--text);
    text-decoration: none;
}

.back-to-top a:hover,
.back-to-top a:focus-visible {
    text-decoration: underline;
}

/* Glossary alphabetical End */

/* Responsive */
@media (max-width: 768px) {
    .nav-top,
    .nav-bottom {
        align-items: center;
        flex-direction: column;
    }

    .nav-top {
        gap: 1rem;
    }

    .nav-top .nav-links,
    .nav-bottom ul {
        align-items: center;
        flex-direction: column;
        gap: 0;
    }

    .index-list {
        grid-template-columns: 1fr;
    }

    .index-list.two-column {
        column-count: 1;
    }

    /* Glossary */
    .glossary-navigation {
        margin-inline: 1rem;
        padding: 1rem;
    }

    .glossary-navigation__letters {
        gap: 0.25rem;
    }
    /* Glossary End */

    h3 {
        padding-left: 0;
        text-align: center;
    }
}
