/*
 * Graziotto Legal Knowledge Portal
 * Shared stylesheet
 * Recommended location: /css/knowledge.css
 */

:root {
    --gl-navy: #071527;
    --gl-navy-light: #0e2945;
    --gl-blue: #16679c;
    --gl-blue-dark: #075b91;
    --gl-gold: #c9a45c;
    --gl-gold-dark: #987332;
    --gl-paper: #f4f6f8;
    --gl-white: #ffffff;
    --gl-ink: #182534;
    --gl-muted: #637183;
    --gl-line: #dce2e8;
    --gl-soft-blue: #edf4f8;
    --gl-soft-gold: #fff5df;
    --gl-soft-green: #edf7f2;
    --gl-green: #277557;
    --gl-red: #a83e3e;

    --gl-font-serif: Georgia, "Times New Roman", serif;
    --gl-font-sans: "Segoe UI", Arial, Helvetica, sans-serif;

    --gl-content-width: 1120px;
    --gl-radius-small: 7px;
    --gl-radius-medium: 12px;
    --gl-radius-large: 16px;

    --gl-shadow-small: 0 4px 14px rgba(7, 21, 39, 0.05);
    --gl-shadow-medium: 0 7px 24px rgba(7, 21, 39, 0.08);
}

/* ---------------------------------------------------------
   Reset and base elements
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gl-paper);
    color: var(--gl-ink);
    font-family: var(--gl-font-serif);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--gl-blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--gl-blue);
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(201, 164, 92, 0.65);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.gl-sans {
    font-family: var(--gl-font-sans);
}

h1,
h2,
h3,
h4 {
    color: var(--gl-navy);
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.4rem;
}

li {
    margin: 0.35rem 0;
}

.gl-container {
    width: min(100% - 56px, var(--gl-content-width));
    margin-inline: auto;
}

.gl-main {
    min-height: 55vh;
    padding: 42px 0 76px;
}

/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

.gl-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--gl-white);
    color: var(--gl-navy);
    font-family: var(--gl-font-sans);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--gl-radius-small);
    box-shadow: var(--gl-shadow-medium);
}

.gl-skip-link:focus {
    top: 16px;
}

/* ---------------------------------------------------------
   Site header
   --------------------------------------------------------- */

.gl-site-header {
    color: var(--gl-white);
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255, 255, 255, 0.12),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--gl-navy),
            var(--gl-navy-light)
        );
    border-bottom: 5px solid var(--gl-gold);
}

.gl-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.gl-brand {
    color: var(--gl-white);
    font-family: var(--gl-font-sans);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.gl-brand:hover {
    color: var(--gl-white);
}

.gl-brand-subtitle {
    display: block;
    margin-top: 6px;
    color: #c7d4e0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.gl-site-label {
    padding: 8px 13px;
    color: #f3d99d;
    font-family: var(--gl-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(201, 164, 92, 0.65);
    border-radius: 999px;
}

/* ---------------------------------------------------------
   Hero area
   --------------------------------------------------------- */

.gl-hero {
    padding: 58px 0 54px;
}

.gl-kicker {
    margin-bottom: 12px;
    color: #e9ca88;
    font-family: var(--gl-font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gl-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: var(--gl-white);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.gl-hero-intro {
    max-width: 860px;
    margin: 0;
    color: #d8e3ed;
    font-family: var(--gl-font-sans);
    font-size: 20px;
    line-height: 1.5;
}

.gl-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 28px;
    color: #b9c9d7;
    font-family: var(--gl-font-sans);
    font-size: 13px;
}

.gl-hero-meta strong {
    color: var(--gl-white);
}

/* ---------------------------------------------------------
   Main navigation
   --------------------------------------------------------- */

.gl-navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gl-white);
    border-bottom: 1px solid var(--gl-line);
    box-shadow: 0 3px 12px rgba(7, 21, 39, 0.06);
}

.gl-navigation-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 52px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
}

.gl-navigation a {
    padding: 16px 0 14px;
    color: #33495e;
    font-family: var(--gl-font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.gl-navigation a:hover,
.gl-navigation a[aria-current="page"] {
    color: var(--gl-blue-dark);
    border-bottom-color: var(--gl-gold);
}

/* ---------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------- */

.gl-breadcrumbs {
    margin-bottom: 30px;
    color: var(--gl-muted);
    font-family: var(--gl-font-sans);
    font-size: 13px;
}

.gl-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-breadcrumbs li {
    margin: 0;
}

.gl-breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #9aa7b3;
}

.gl-breadcrumbs a {
    color: var(--gl-blue-dark);
    text-decoration: none;
}

.gl-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Page headings and sections
   --------------------------------------------------------- */

.gl-page-heading {
    max-width: 900px;
    margin-bottom: 38px;
}

.gl-page-heading h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4.5vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.gl-page-heading p {
    color: var(--gl-muted);
    font-family: var(--gl-font-sans);
    font-size: 18px;
    line-height: 1.55;
}

.gl-section {
    margin: 48px 0;
}

.gl-section:first-child {
    margin-top: 0;
}

.gl-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.gl-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gl-line);
}

.gl-section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.gl-section-intro {
    max-width: 850px;
    margin: -10px 0 26px;
    color: var(--gl-muted);
    font-family: var(--gl-font-sans);
}

/* ---------------------------------------------------------
   Notices and information panels
   --------------------------------------------------------- */

.gl-notice {
    margin: 0 0 30px;
    padding: 19px 22px;
    background: var(--gl-white);
    border-left: 5px solid var(--gl-gold);
    box-shadow: var(--gl-shadow-small);
}

.gl-notice strong {
    color: var(--gl-navy);
    font-family: var(--gl-font-sans);
}

.gl-notice--licence {
    background: var(--gl-soft-gold);
}

.gl-panel {
    padding: 24px;
    background: var(--gl-white);
    border: 1px solid var(--gl-line);
    border-radius: var(--gl-radius-medium);
    box-shadow: var(--gl-shadow-small);
}

.gl-panel h2,
.gl-panel h3 {
    margin-top: 0;
}

.gl-empty-state {
    padding: 22px;
    color: #526476;
    background: #eef3f6;
    border: 1px dashed #aebbc6;
    border-radius: var(--gl-radius-medium);
}

/* ---------------------------------------------------------
   Grids
   --------------------------------------------------------- */

.gl-grid {
    display: grid;
    gap: 22px;
}

.gl-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gl-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gl-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------------------------------------------------------
   Collection cards
   --------------------------------------------------------- */

.gl-collection-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    background: var(--gl-white);
    border: 1px solid var(--gl-line);
    border-top: 5px solid var(--gl-blue);
    border-radius: var(--gl-radius-medium);
    box-shadow: var(--gl-shadow-small);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.gl-collection-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gl-shadow-medium);
}

.gl-collection-card__body {
    flex: 1;
    padding: 25px;
}

.gl-collection-card__eyebrow {
    margin-bottom: 8px;
    color: var(--gl-blue);
    font-family: var(--gl-font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gl-collection-card h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.22;
}

.gl-collection-card p {
    color: var(--gl-muted);
}

.gl-collection-card__footer {
    padding: 0 25px 25px;
}

/* ---------------------------------------------------------
   Report cards
   --------------------------------------------------------- */

.gl-report-list {
    display: grid;
    gap: 22px;
}

.gl-report-card {
    overflow: hidden;
    background: var(--gl-white);
    border: 1px solid var(--gl-line);
    border-left: 5px solid var(--gl-blue);
    border-radius: var(--gl-radius-medium);
    box-shadow: var(--gl-shadow-small);
}

.gl-report-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 26px;
}

.gl-report-card__edition {
    margin-bottom: 7px;
    color: var(--gl-blue);
    font-family: var(--gl-font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gl-report-card h3 {
    margin: 0 0 9px;
    font-size: 23px;
    line-height: 1.25;
}

.gl-report-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-bottom: 12px;
    color: var(--gl-muted);
    font-family: var(--gl-font-sans);
    font-size: 13px;
}

.gl-report-card__summary {
    max-width: 760px;
    margin-bottom: 0;
}

.gl-report-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 250px;
}

/* ---------------------------------------------------------
   Badges and status labels
   --------------------------------------------------------- */

.gl-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 18px;
}

.gl-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #41586e;
    background: #edf2f6;
    font-family: var(--gl-font-sans);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    border-radius: 999px;
}

.gl-badge--gold {
    color: #865507;
    background: #fff0d8;
}

.gl-badge--blue {
    color: #0c5b87;
    background: #e5f1f8;
}

.gl-badge--green {
    color: #1f664b;
    background: #e5f4ed;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.gl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 14px;
    color: var(--gl-white);
    background: var(--gl-navy);
    font-family: var(--gl-font-sans);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--gl-navy);
    border-radius: var(--gl-radius-small);
    cursor: pointer;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.gl-button:hover {
    color: var(--gl-white);
    background: var(--gl-blue-dark);
    border-color: var(--gl-blue-dark);
}

.gl-button--gold {
    color: var(--gl-white);
    background: var(--gl-gold-dark);
    border-color: var(--gl-gold-dark);
}

.gl-button--gold:hover {
    background: #7f5e25;
    border-color: #7f5e25;
}

.gl-button--outline {
    color: var(--gl-navy);
    background: var(--gl-white);
    border-color: #aebbc6;
}

.gl-button--outline:hover {
    color: var(--gl-blue-dark);
    background: var(--gl-soft-blue);
    border-color: var(--gl-blue);
}

.gl-button--small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11px;
}

/* ---------------------------------------------------------
   Format links
   --------------------------------------------------------- */

.gl-format-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gl-format-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 34px;
    padding: 7px 10px;
    color: var(--gl-navy);
    background: var(--gl-white);
    font-family: var(--gl-font-sans);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #aebbc6;
    border-radius: var(--gl-radius-small);
}

.gl-format-link:hover {
    color: var(--gl-white);
    background: var(--gl-blue-dark);
    border-color: var(--gl-blue-dark);
}

/* ---------------------------------------------------------
   Year archive navigation
   --------------------------------------------------------- */

.gl-year-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-year-list li {
    margin: 0;
}

.gl-year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 10px 15px;
    color: var(--gl-navy);
    background: var(--gl-white);
    font-family: var(--gl-font-sans);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--gl-line);
    border-radius: var(--gl-radius-small);
}

.gl-year-link:hover,
.gl-year-link[aria-current="page"] {
    color: var(--gl-white);
    background: var(--gl-navy);
    border-color: var(--gl-navy);
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */

.gl-table-wrapper {
    overflow-x: auto;
    background: var(--gl-white);
    border: 1px solid var(--gl-line);
    border-radius: var(--gl-radius-medium);
}

.gl-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--gl-font-sans);
}

.gl-table th,
.gl-table td {
    padding: 13px 15px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--gl-line);
}

.gl-table th {
    color: var(--gl-navy);
    background: #eaf0f5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gl-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ---------------------------------------------------------
   Calls to action
   --------------------------------------------------------- */

.gl-call-to-action {
    padding: 32px;
    color: var(--gl-white);
    background:
        linear-gradient(
            135deg,
            var(--gl-navy),
            var(--gl-navy-light)
        );
    border-radius: var(--gl-radius-large);
}

.gl-call-to-action h2,
.gl-call-to-action h3 {
    margin-top: 0;
    color: var(--gl-white);
}

.gl-call-to-action p {
    max-width: 800px;
    color: #d3e0ea;
}

.gl-call-to-action a:not(.gl-button) {
    color: #f0d08b;
}

/* ---------------------------------------------------------
   Licence statement
   --------------------------------------------------------- */

.gl-licence {
    margin-top: 48px;
    padding: 22px;
    color: #526476;
    background: var(--gl-soft-gold);
    font-family: var(--gl-font-sans);
    font-size: 13px;
    border-left: 5px solid var(--gl-gold);
    border-radius: 0 var(--gl-radius-small) var(--gl-radius-small) 0;
}

.gl-licence h2,
.gl-licence h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.gl-licence p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.gl-site-footer {
    padding: 32px 0;
    color: #aebdca;
    background: #05101e;
    font-family: var(--gl-font-sans);
    font-size: 12px;
}

.gl-footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
    gap: 32px;
}

.gl-site-footer strong {
    color: var(--gl-white);
}

.gl-site-footer a {
    color: #e9ca88;
}

.gl-footer-title {
    margin-bottom: 5px;
    color: var(--gl-white);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.gl-footer-legal {
    max-width: 760px;
}

.gl-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
}

/* ---------------------------------------------------------
   Utility classes
   --------------------------------------------------------- */

.gl-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
}

.gl-text-muted {
    color: var(--gl-muted);
}

.gl-text-center {
    text-align: center;
}

.gl-margin-top {
    margin-top: 32px;
}

.gl-no-margin {
    margin: 0;
}

/* ---------------------------------------------------------
   Responsive layouts
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .gl-grid--three,
    .gl-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gl-report-card__body {
        grid-template-columns: 1fr;
    }

    .gl-report-card__actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .gl-container {
        width: min(100% - 34px, var(--gl-content-width));
    }

    .gl-main {
        padding: 34px 0 58px;
    }

    .gl-masthead {
        align-items: flex-start;
    }

    .gl-hero {
        padding: 44px 0;
    }

    .gl-hero h1 {
        font-size: 38px;
    }

    .gl-hero-intro {
        font-size: 17px;
    }

    .gl-grid--two,
    .gl-grid--three,
    .gl-grid--four {
        grid-template-columns: 1fr;
    }

    .gl-footer-grid {
        grid-template-columns: 1fr;
    }

    .gl-section-heading h2 {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .gl-site-label {
        display: none;
    }

    .gl-hero h1 {
        font-size: 34px;
    }

    .gl-page-heading h1 {
        font-size: 32px;
    }

    .gl-report-card__body,
    .gl-collection-card__body {
        padding: 21px;
    }

    .gl-collection-card__footer {
        padding: 0 21px 21px;
    }

    .gl-report-card__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gl-report-card__actions .gl-button,
    .gl-report-card__actions .gl-format-link {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   Print
   --------------------------------------------------------- */

@media print {
    @page {
        size: A4;
        margin: 17mm 15mm 18mm;
    }

    body {
        color: #000000;
        background: #ffffff;
        font-size: 10.5pt;
    }

    .gl-container {
        width: 100%;
        max-width: none;
    }

    .gl-navigation,
    .gl-skip-link,
    .gl-report-card__actions,
    .gl-footer-links,
    .gl-button {
        display: none !important;
    }

    .gl-site-header {
        background: var(--gl-navy);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .gl-main {
        padding: 8mm 0;
    }

    .gl-panel,
    .gl-collection-card,
    .gl-report-card {
        box-shadow: none;
        break-inside: avoid;
    }

    .gl-call-to-action,
    .gl-licence,
    .gl-badge {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .gl-site-footer {
        color: #5b6875;
        background: #ffffff;
        border-top: 1px solid #aebbc6;
    }

    .gl-site-footer strong,
    .gl-footer-title {
        color: #182534;
    }

    a {
        color: #000000;
        overflow-wrap: anywhere;
    }
}