/* ordavant-brand.css — Western University palette for Ordavant admin/tooling chrome.
 * Loaded via ordavant-spa.css (@import) and directly by platform pages that
 * don't load the SPA stylesheet. Must come AFTER Pico. Overrides Pico's primary
 * (azure) and secondary tokens only; community/newsletter/podcast brand colours
 * are set per-page and are not affected.
 * Source: https://brand.westernu.ca/visual-identity/colours.html
 * Canonical standard: handbook/design_standards.md §1 (Brand palette). */

:root {
    --western-purple: #4F2683;
    --western-orchid: #8F55E0;
    --western-deep-focus: #201436;
    --western-grey: #818284;
}

/* Light (Pico applies light to :root unless data-theme=dark) */
:root:not([data-theme="dark"]),
[data-theme="light"] {
    --pico-primary: #4F2683;
    --pico-primary-background: #4F2683;
    --pico-primary-underline: rgba(79, 38, 131, 0.5);
    --pico-primary-hover: #3b1d66;
    --pico-primary-hover-background: #3b1d66;
    --pico-primary-hover-underline: #3b1d66;
    --pico-primary-focus: rgba(79, 38, 131, 0.25);
    --pico-primary-inverse: #fff;
    /* Western Grey darkened to 5.9:1 on white so white button text passes AA */
    --pico-secondary: #636466;
    --pico-secondary-background: #636466;
    --pico-secondary-underline: rgba(99, 100, 102, 0.5);
    --pico-secondary-hover: #4d4e50;
    --pico-secondary-hover-background: #4d4e50;
    --pico-secondary-hover-underline: #4d4e50;
    --pico-secondary-focus: rgba(99, 100, 102, 0.25);
    --pico-secondary-inverse: #fff;
}

/* Dark: Western Purple is too dark on dark surfaces, so links use a light
 * orchid tint (8.6:1) and filled controls a mid purple (white text 5.7:1). */
@media only screen and (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --pico-primary: #c4a6f5;
        --pico-primary-background: #7a4cc4;
        --pico-primary-underline: rgba(196, 166, 245, 0.5);
        --pico-primary-hover: #d8c4f9;
        --pico-primary-hover-background: #8f55e0;
        --pico-primary-hover-underline: #d8c4f9;
        --pico-primary-focus: rgba(143, 85, 224, 0.4);
        --pico-primary-inverse: #fff;
    }
}
[data-theme="dark"] {
    --pico-primary: #c4a6f5;
    --pico-primary-background: #7a4cc4;
    --pico-primary-underline: rgba(196, 166, 245, 0.5);
    --pico-primary-hover: #d8c4f9;
    --pico-primary-hover-background: #8f55e0;
    --pico-primary-hover-underline: #d8c4f9;
    --pico-primary-focus: rgba(143, 85, 224, 0.4);
    --pico-primary-inverse: #fff;
}

/* Wordmark: orDavanT — rendered from an outlined SVG (Inter, caps scaled to x-height with a
 * heavier weight so stems match; source: ordavant-wordmark.svg) used as a CSS mask, so it looks
 * identical on every OS. The markup text stays in the DOM for screen readers/copy, pushed off-box.
 * Sizes with the surrounding font-size; colour follows `color`. */
.wordmark {
    display: inline-block; height: .7em; width: 5.34em; vertical-align: -.035em;
    overflow: hidden; white-space: nowrap; text-indent: -999em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1090 8465 1110'%3E%3Cpath fill='currentColor' d='M586.7 23.8Q432.7 23.8 316.7 -46.5Q200.6 -116.8 136.1 -242.1Q71.7 -367.4 71.7 -532.4Q71.7 -698.5 136.1 -824.4Q200.6 -950.2 316.7 -1020.9Q432.7 -1091.6 586.7 -1091.6Q741.5 -1091.6 857.2 -1020.9Q972.9 -950.2 1037.4 -824.4Q1101.9 -698.5 1101.9 -532.4Q1101.9 -367.4 1037.4 -242.1Q972.9 -116.8 857.2 -46.5Q741.5 23.8 586.7 23.8ZM586.7 -170.5Q675.9 -170.5 739.1 -215.8Q802.3 -261.1 835.9 -342.9Q869.4 -424.6 869.4 -532.5Q869.4 -642 835.9 -723.7Q802.3 -805.5 739.1 -851.4Q675.9 -897.3 586.7 -897.3Q498.3 -897.3 434.8 -851.6Q371.4 -806 337.8 -724.1Q304.3 -642.1 304.3 -532.5Q304.3 -424.1 337.8 -342.6Q371.4 -261.1 434.5 -215.8Q497.7 -170.5 586.7 -170.5Z M1306.1 0V-1069.8H1527.2V-895H1532.6Q1562 -984.5 1627.5 -1033.5Q1693.1 -1082.5 1793.6 -1082.5Q1817.5 -1082.5 1839.4 -1081Q1861.4 -1079.4 1875.9 -1077.6V-866.8Q1863 -869.5 1830.1 -873Q1797.3 -876.6 1760.6 -876.6Q1698.1 -876.6 1646.8 -848.3Q1595.5 -820.1 1565.7 -764.4Q1535.9 -708.8 1535.9 -626.3V0Z M2385.7 0H2107.2V-194H2374.1Q2478.5 -194 2547.1 -232.3Q2615.7 -270.6 2649.5 -346.8Q2683.2 -422.9 2683.2 -535.3Q2683.2 -647.9 2649.3 -723.6Q2615.3 -799.3 2546.9 -837.6Q2478.5 -875.8 2374.7 -875.8H2102.3V-1069.8H2388.9Q2550.4 -1069.8 2668.2 -1004.8Q2786 -939.9 2850 -820Q2913.9 -700 2913.9 -535.3Q2913.9 -370.5 2850.1 -250.4Q2786.2 -130.4 2668.1 -65.2Q2550 0 2385.7 0ZM2233.4 -1069.8V0H2003.8V-1069.8Z M3414.4 18.4Q3308.9 18.4 3225.7 -17.9Q3142.6 -54.1 3094.3 -126.1Q3046 -198 3046 -304.2Q3046 -395.7 3080.8 -454.5Q3115.6 -513.4 3174.8 -548.1Q3233.9 -582.8 3309.3 -600.8Q3384.7 -618.8 3465.2 -627.7Q3564.1 -639.6 3622.5 -647.5Q3681 -655.3 3706.6 -672.1Q3732.3 -688.8 3732.3 -726.4V-734.2Q3732.3 -785.7 3708.2 -824.1Q3684 -862.5 3638.1 -884.2Q3592.1 -905.8 3526.7 -905.8Q3461.1 -905.8 3411.5 -884.6Q3361.8 -863.4 3332.1 -827.3Q3302.4 -791.2 3295.9 -745.9L3074.5 -757.4Q3087.3 -859.5 3146.6 -933.7Q3206 -1007.9 3303.9 -1048.5Q3401.8 -1089.2 3529.3 -1089.2Q3622.7 -1089.2 3701.7 -1066.1Q3780.6 -1042.9 3838.5 -997.3Q3896.4 -951.7 3928.2 -884Q3960.1 -816.4 3960.1 -727.3V0H3735.4V-150.4H3729.9Q3706.9 -105.9 3666.9 -67.3Q3626.9 -28.7 3565.2 -5.2Q3503.4 18.4 3414.4 18.4ZM3466.2 -159.5Q3554.4 -159.5 3613.9 -192.1Q3673.4 -224.7 3703.3 -278.3Q3733.3 -331.8 3733.3 -395.3V-519.5Q3721.8 -510.8 3696 -503.1Q3670.2 -495.4 3635 -488.5Q3599.9 -481.7 3560.9 -475.6Q3521.9 -469.5 3484.5 -464.3Q3427.6 -456.5 3379 -438.3Q3330.5 -420 3301.1 -387.7Q3271.8 -355.4 3271.8 -302.9Q3271.8 -257.8 3296 -225.6Q3320.2 -193.4 3363.9 -176.5Q3407.6 -159.5 3466.2 -159.5Z M4522.9 0 4118.2 -1069.8H4363.2L4568.8 -489.5Q4599.8 -400.6 4626.3 -311.6Q4652.8 -222.5 4679.1 -133.5H4622.1Q4648.7 -222.5 4674.7 -311.6Q4700.6 -400.6 4730.7 -489.5L4933.8 -1069.8H5175.8L4771 0Z M5654.4 18.4Q5548.9 18.4 5465.7 -17.9Q5382.6 -54.1 5334.3 -126.1Q5286 -198 5286 -304.2Q5286 -395.7 5320.8 -454.5Q5355.6 -513.4 5414.8 -548.1Q5473.9 -582.8 5549.3 -600.8Q5624.7 -618.8 5705.2 -627.7Q5804.1 -639.6 5862.5 -647.5Q5921 -655.3 5946.6 -672.1Q5972.3 -688.8 5972.3 -726.4V-734.2Q5972.3 -785.7 5948.2 -824.1Q5924 -862.5 5878.1 -884.2Q5832.1 -905.8 5766.7 -905.8Q5701.1 -905.8 5651.5 -884.6Q5601.8 -863.4 5572.1 -827.3Q5542.4 -791.2 5535.9 -745.9L5314.5 -757.4Q5327.3 -859.5 5386.6 -933.7Q5446 -1007.9 5543.9 -1048.5Q5641.8 -1089.2 5769.3 -1089.2Q5862.7 -1089.2 5941.7 -1066.1Q6020.6 -1042.9 6078.5 -997.3Q6136.4 -951.7 6168.2 -884Q6200.1 -816.4 6200.1 -727.3V0H5975.4V-150.4H5969.9Q5946.9 -105.9 5906.9 -67.3Q5866.9 -28.7 5805.2 -5.2Q5743.4 18.4 5654.4 18.4ZM5706.2 -159.5Q5794.4 -159.5 5853.9 -192.1Q5913.4 -224.7 5943.3 -278.3Q5973.3 -331.8 5973.3 -395.3V-519.5Q5961.8 -510.8 5936 -503.1Q5910.2 -495.4 5875 -488.5Q5839.9 -481.7 5800.9 -475.6Q5761.9 -469.5 5724.5 -464.3Q5667.6 -456.5 5619 -438.3Q5570.5 -420 5541.1 -387.7Q5511.8 -355.4 5511.8 -302.9Q5511.8 -257.8 5536 -225.6Q5560.2 -193.4 5603.9 -176.5Q5647.6 -159.5 5706.2 -159.5Z M6683.8 -615.8V0H6454V-1069.8H6677.9L6678.5 -802.7H6635.6Q6686 -945.9 6778.6 -1017.5Q6871.1 -1089.2 7004.9 -1089.2Q7115.7 -1089.2 7201.5 -1041.5Q7287.2 -993.8 7336.1 -900.6Q7385.1 -807.4 7385.1 -670.1V0H7155.4V-638.3Q7155.4 -759.7 7096.2 -823.4Q7037.1 -887 6930.3 -887Q6860.2 -887 6804.4 -858.1Q6748.6 -829.1 6716.2 -769.1Q6683.8 -709.1 6683.8 -615.8Z M7553.2 -874.8V-1069.8H8428.8V-874.8H8106.1V0H7876.5V-874.8Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1090 8465 1110'%3E%3Cpath fill='currentColor' d='M586.7 23.8Q432.7 23.8 316.7 -46.5Q200.6 -116.8 136.1 -242.1Q71.7 -367.4 71.7 -532.4Q71.7 -698.5 136.1 -824.4Q200.6 -950.2 316.7 -1020.9Q432.7 -1091.6 586.7 -1091.6Q741.5 -1091.6 857.2 -1020.9Q972.9 -950.2 1037.4 -824.4Q1101.9 -698.5 1101.9 -532.4Q1101.9 -367.4 1037.4 -242.1Q972.9 -116.8 857.2 -46.5Q741.5 23.8 586.7 23.8ZM586.7 -170.5Q675.9 -170.5 739.1 -215.8Q802.3 -261.1 835.9 -342.9Q869.4 -424.6 869.4 -532.5Q869.4 -642 835.9 -723.7Q802.3 -805.5 739.1 -851.4Q675.9 -897.3 586.7 -897.3Q498.3 -897.3 434.8 -851.6Q371.4 -806 337.8 -724.1Q304.3 -642.1 304.3 -532.5Q304.3 -424.1 337.8 -342.6Q371.4 -261.1 434.5 -215.8Q497.7 -170.5 586.7 -170.5Z M1306.1 0V-1069.8H1527.2V-895H1532.6Q1562 -984.5 1627.5 -1033.5Q1693.1 -1082.5 1793.6 -1082.5Q1817.5 -1082.5 1839.4 -1081Q1861.4 -1079.4 1875.9 -1077.6V-866.8Q1863 -869.5 1830.1 -873Q1797.3 -876.6 1760.6 -876.6Q1698.1 -876.6 1646.8 -848.3Q1595.5 -820.1 1565.7 -764.4Q1535.9 -708.8 1535.9 -626.3V0Z M2385.7 0H2107.2V-194H2374.1Q2478.5 -194 2547.1 -232.3Q2615.7 -270.6 2649.5 -346.8Q2683.2 -422.9 2683.2 -535.3Q2683.2 -647.9 2649.3 -723.6Q2615.3 -799.3 2546.9 -837.6Q2478.5 -875.8 2374.7 -875.8H2102.3V-1069.8H2388.9Q2550.4 -1069.8 2668.2 -1004.8Q2786 -939.9 2850 -820Q2913.9 -700 2913.9 -535.3Q2913.9 -370.5 2850.1 -250.4Q2786.2 -130.4 2668.1 -65.2Q2550 0 2385.7 0ZM2233.4 -1069.8V0H2003.8V-1069.8Z M3414.4 18.4Q3308.9 18.4 3225.7 -17.9Q3142.6 -54.1 3094.3 -126.1Q3046 -198 3046 -304.2Q3046 -395.7 3080.8 -454.5Q3115.6 -513.4 3174.8 -548.1Q3233.9 -582.8 3309.3 -600.8Q3384.7 -618.8 3465.2 -627.7Q3564.1 -639.6 3622.5 -647.5Q3681 -655.3 3706.6 -672.1Q3732.3 -688.8 3732.3 -726.4V-734.2Q3732.3 -785.7 3708.2 -824.1Q3684 -862.5 3638.1 -884.2Q3592.1 -905.8 3526.7 -905.8Q3461.1 -905.8 3411.5 -884.6Q3361.8 -863.4 3332.1 -827.3Q3302.4 -791.2 3295.9 -745.9L3074.5 -757.4Q3087.3 -859.5 3146.6 -933.7Q3206 -1007.9 3303.9 -1048.5Q3401.8 -1089.2 3529.3 -1089.2Q3622.7 -1089.2 3701.7 -1066.1Q3780.6 -1042.9 3838.5 -997.3Q3896.4 -951.7 3928.2 -884Q3960.1 -816.4 3960.1 -727.3V0H3735.4V-150.4H3729.9Q3706.9 -105.9 3666.9 -67.3Q3626.9 -28.7 3565.2 -5.2Q3503.4 18.4 3414.4 18.4ZM3466.2 -159.5Q3554.4 -159.5 3613.9 -192.1Q3673.4 -224.7 3703.3 -278.3Q3733.3 -331.8 3733.3 -395.3V-519.5Q3721.8 -510.8 3696 -503.1Q3670.2 -495.4 3635 -488.5Q3599.9 -481.7 3560.9 -475.6Q3521.9 -469.5 3484.5 -464.3Q3427.6 -456.5 3379 -438.3Q3330.5 -420 3301.1 -387.7Q3271.8 -355.4 3271.8 -302.9Q3271.8 -257.8 3296 -225.6Q3320.2 -193.4 3363.9 -176.5Q3407.6 -159.5 3466.2 -159.5Z M4522.9 0 4118.2 -1069.8H4363.2L4568.8 -489.5Q4599.8 -400.6 4626.3 -311.6Q4652.8 -222.5 4679.1 -133.5H4622.1Q4648.7 -222.5 4674.7 -311.6Q4700.6 -400.6 4730.7 -489.5L4933.8 -1069.8H5175.8L4771 0Z M5654.4 18.4Q5548.9 18.4 5465.7 -17.9Q5382.6 -54.1 5334.3 -126.1Q5286 -198 5286 -304.2Q5286 -395.7 5320.8 -454.5Q5355.6 -513.4 5414.8 -548.1Q5473.9 -582.8 5549.3 -600.8Q5624.7 -618.8 5705.2 -627.7Q5804.1 -639.6 5862.5 -647.5Q5921 -655.3 5946.6 -672.1Q5972.3 -688.8 5972.3 -726.4V-734.2Q5972.3 -785.7 5948.2 -824.1Q5924 -862.5 5878.1 -884.2Q5832.1 -905.8 5766.7 -905.8Q5701.1 -905.8 5651.5 -884.6Q5601.8 -863.4 5572.1 -827.3Q5542.4 -791.2 5535.9 -745.9L5314.5 -757.4Q5327.3 -859.5 5386.6 -933.7Q5446 -1007.9 5543.9 -1048.5Q5641.8 -1089.2 5769.3 -1089.2Q5862.7 -1089.2 5941.7 -1066.1Q6020.6 -1042.9 6078.5 -997.3Q6136.4 -951.7 6168.2 -884Q6200.1 -816.4 6200.1 -727.3V0H5975.4V-150.4H5969.9Q5946.9 -105.9 5906.9 -67.3Q5866.9 -28.7 5805.2 -5.2Q5743.4 18.4 5654.4 18.4ZM5706.2 -159.5Q5794.4 -159.5 5853.9 -192.1Q5913.4 -224.7 5943.3 -278.3Q5973.3 -331.8 5973.3 -395.3V-519.5Q5961.8 -510.8 5936 -503.1Q5910.2 -495.4 5875 -488.5Q5839.9 -481.7 5800.9 -475.6Q5761.9 -469.5 5724.5 -464.3Q5667.6 -456.5 5619 -438.3Q5570.5 -420 5541.1 -387.7Q5511.8 -355.4 5511.8 -302.9Q5511.8 -257.8 5536 -225.6Q5560.2 -193.4 5603.9 -176.5Q5647.6 -159.5 5706.2 -159.5Z M6683.8 -615.8V0H6454V-1069.8H6677.9L6678.5 -802.7H6635.6Q6686 -945.9 6778.6 -1017.5Q6871.1 -1089.2 7004.9 -1089.2Q7115.7 -1089.2 7201.5 -1041.5Q7287.2 -993.8 7336.1 -900.6Q7385.1 -807.4 7385.1 -670.1V0H7155.4V-638.3Q7155.4 -759.7 7096.2 -823.4Q7037.1 -887 6930.3 -887Q6860.2 -887 6804.4 -858.1Q6748.6 -829.1 6716.2 -769.1Q6683.8 -709.1 6683.8 -615.8Z M7553.2 -874.8V-1069.8H8428.8V-874.8H8106.1V0H7876.5V-874.8Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
nav .wordmark { font-size: 1.4em; }

/* Western University logo lockup beside the wordmark. The shield + wordmark PNG is
 * 485x116; height is matched to the nav wordmark (1.4em text) so the two read as
 * equal-height. A thin rule separates it from the wordmark/beta pill.
 * Vertical alignment: the "Western" text baseline sits ~71.5% down the PNG (shield
 * extends below it), so the lockup is dropped by the remaining ~28.5% of --wm-h to put
 * that baseline on the orDavanT wordmark's baseline. */
.western-mark { --wm-h: 1.9rem; display: inline-flex; align-items: center; vertical-align: calc(var(--wm-h) * -.285); margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--pico-muted-border-color, #ddd); text-decoration: none; }
.western-mark img { display: block; height: var(--wm-h); width: auto; }
h1 .western-mark { --wm-h: 3rem; }
@media (max-width: 576px) { .western-mark { --wm-h: 1.5rem; } }
