/* PDI/GRL Intranet - colours carried over from StyleSheet2022 on the old site */
:root {
    --page-bg: #adcbdc;
    --pdi-blue: #13358c;
    --grl-green: #00541d;
    --common: #4a6b7d;
    --box-bg: #ffffff;
    --text: #1b1b1b;
    --muted: #5b6770;
    --link-hover-bg: #f8de7e;
    --alert: #c00000;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

/* Header: same blue-to-green gradient as the current intranet */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    margin: 16px auto 0;
    padding: 8px 16px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--page-bg) 0%, var(--pdi-blue) 30%, var(--grl-green) 70%, var(--page-bg) 100%);
}
.site-header h1 { margin: 0; font-size: 1.6rem; font-weight: 600; text-align: center; }
.site-header h1 a { color: #fff; text-decoration: none; }
.site-header .logo img { display: block; height: 50px; width: auto; }

main { max-width: 1400px; margin: 0 auto; padding: 16px; }

.notice {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 4px solid var(--pdi-blue);
    border-radius: var(--radius);
    background: #fff8d6;
}

/* Layout: Common across the top, PDI and GRL side by side below */
.sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.box-wide { grid-column: 1 / -1; }

.box {
    background: var(--box-bg);
    border-radius: var(--radius);
    border-top: 6px solid var(--common);
    padding: 12px 16px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.box-pdi { border-top-color: var(--pdi-blue); }
.box-grl { border-top-color: var(--grl-green); }

.box-title { margin: 0 0 8px; font-size: 1.2rem; color: var(--common); }
.box-pdi .box-title { color: var(--pdi-blue); }
.box-grl .box-title { color: var(--grl-green); }

.group-title {
    margin: 16px 0 6px;
    padding-bottom: 4px;
    font-size: .95rem;
    border-bottom: 1px solid #dde3e7;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 12px;
}
.box-wide .links { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.links a {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}
.links a:hover, .links a:focus-visible { background: var(--link-hover-bg); text-decoration: underline; }
.links a.highlight { color: var(--alert); }

.tag {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e9eef1;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 400;
}

.muted { color: var(--muted); }

.site-footer { padding: 16px; text-align: center; color: var(--muted); font-size: .85rem; }

/* Phones and narrow windows: stack everything */
@media (max-width: 800px) {
    .sections { grid-template-columns: 1fr; }
    .site-header { margin: 0; border-radius: 0; }
    .site-header h1 { font-size: 1.2rem; }
    .site-header .logo img { height: 36px; }
}
