/* The six university policies ("Collegiate Ledger"): partials/policy.blade.php. Shared components: ../wcu.css. */

/* hero: navy docket head, the six policies as folder tabs on its foot */
.w-po-hero { position: relative; background: var(--w-navy); color: rgba(255, 255, 255, .8); padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; isolation: isolate; }
.w-po-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: calc(min(100vw, var(--w-wrap)) / 6) 100%; background-position: center; }
.w-po-hero::after { content: ""; position: absolute; left: -14vw; bottom: -30vw; width: 56vw; height: 56vw; border-radius: 50%; background: radial-gradient(circle, rgba(211, 34, 77, .3), transparent 64%); z-index: -1; }
.w-po-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(40px, 5vw, 72px); }
.w-po-hero .w-eyebrow { color: var(--w-yellow); }
.w-po-hero .w-eyebrow b { color: var(--w-white); }
.w-po-title { color: var(--w-white); margin: 0 0 18px; }
.w-po-title em { color: var(--w-yellow); }
.w-po-sub { margin: 0; max-width: 46ch; font: 400 clamp(18px, 1.6vw, 23px)/1.4 var(--w-serif); color: rgba(255, 255, 255, .82); font-style: italic; }

/* the docket: a paper slip with a double rule, the document's facts in ruled rows */
.w-po-docket { position: relative; margin: 0; padding: 34px 26px 14px; background: var(--w-paper); color: var(--w-body); border-radius: var(--w-r); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.w-po-docket::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--w-line-2); outline: 1px solid var(--w-line); outline-offset: -5px; pointer-events: none; }
.w-po-docket > div:not(.w-po-docket__seal) { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 6px; border-bottom: 1px solid var(--w-line); }
.w-po-docket > div:last-child { border-bottom: 0; }
.w-po-docket dt { font: 700 11px/1.3 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w-mute); }
.w-po-docket dd { margin: 0; font: 500 17px/1.3 var(--w-serif); color: var(--w-ink); text-align: right; }
.w-po-docket__seal { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--w-crimson); color: var(--w-white); font-size: 19px; box-shadow: 0 0 0 5px var(--w-navy); }

/* folder tabs: the current policy is a paper tab that opens into the page below */
.w-po-tabs { position: relative; }
.w-po-tabs__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.w-po-tabs__list::-webkit-scrollbar { display: none; }
.w-po-tabs__list li { flex: 1 0 auto; }
.w-po-tab { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .16); border-bottom: 0; border-radius: 4px 4px 0 0; font: 700 13.5px/1.2 var(--w-sans); color: rgba(255, 255, 255, .74); white-space: nowrap; background: rgba(255, 255, 255, .03); transition: background .4s, color .3s; }
.w-po-tab span { font: 400 14px/1 var(--w-serif); color: var(--w-yellow); }
.w-po-tab:hover { background: rgba(255, 255, 255, .1); color: var(--w-white); }
.w-po-tab[aria-current="page"] { position: relative; background: var(--w-paper); border-color: var(--w-paper); color: var(--w-ink); }
.w-po-tab[aria-current="page"]::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--w-crimson); border-radius: 4px 4px 0 0; }
.w-po-tab[aria-current="page"] span { color: var(--w-crimson); }

/* body: contents list beside the document */
.w-po-body { background: var(--w-paper); padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 9vw, 120px); }
.w-po-grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.w-po-aside { position: sticky; top: calc(var(--w-head-h) + 24px); display: grid; gap: 14px; }
.w-po-toc { border-top: 3px solid var(--w-crimson); background: var(--w-white); border-left: 1px solid var(--w-line); border-right: 1px solid var(--w-line); border-bottom: 1px solid var(--w-line); }
.w-po-toc__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font: 800 11.5px/1.2 var(--w-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--w-ink); border-bottom: 1px solid var(--w-line); }
.w-po-toc__h::-webkit-details-marker { display: none; }
.w-po-toc__h i { font-size: 11px; color: var(--w-crimson); transition: transform .4s var(--w-ease); }
.w-po-toc[open] .w-po-toc__h i { transform: rotate(180deg); }
.w-po-toc__list { list-style: none; margin: 0; padding: 8px 0; max-height: calc(100vh - var(--w-head-h) - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.w-po-toc__list a { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 8px 18px; font: 600 13.5px/1.4 var(--w-sans); color: var(--w-body); transition: color .3s, background .3s; }
.w-po-toc__list a span { font: 400 13px/1.5 var(--w-serif); color: var(--w-mute); }
.w-po-toc__list a::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--w-crimson); transform: scaleY(0); transition: transform .45s var(--w-ease); }
.w-po-toc__list a:hover { color: var(--w-crimson); background: var(--w-paper); }
.w-po-toc__list a.is-active { color: var(--w-ink); background: var(--w-paper); }
.w-po-toc__list a.is-active span { color: var(--w-crimson); }
.w-po-toc__list a.is-active::before { transform: scaleY(1); }
.w-po-print { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 16px; background: transparent; border: 1px solid var(--w-line-2); border-radius: 2px; font: 700 13px/1 var(--w-sans); color: var(--w-ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.w-po-print:hover { background: var(--w-ink); border-color: var(--w-ink); color: var(--w-white); }
.w-po-print[hidden] { display: none; }

/* the document: numbered clauses on a ledger, the number in its own column */
.w-po-doc { min-width: 0; }
.w-po-doc > .w-po-sec { max-width: none; }
.w-po-sec { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 28px; padding: clamp(30px, 3.4vw, 44px) 0; border-top: 1px solid var(--w-line-2); scroll-margin-top: calc(var(--w-head-h) + 24px); }
.w-po-sec:first-child { border-top: 0; padding-top: 0; }
.w-po-sec > * { grid-column: 2; max-width: 70ch; }
.w-po-sec > table { max-width: 100%; }
.w-po-sec > :last-child { margin-bottom: 0; }
.w-po-doc .w-po-h2 { grid-column: 1 / -1; display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 28px; align-items: baseline; max-width: none; margin: 0 0 .7em; font-size: clamp(24px, 2.3vw, 32px); }
.w-po-n { font: 400 clamp(38px, 3.6vw, 52px)/.9 var(--w-serif); color: var(--w-line-2); letter-spacing: -.03em; font-variation-settings: 'opsz' 144; transition: color .6s var(--w-ease); }
.w-po-sec.is-reading .w-po-n { color: var(--w-crimson); }
.w-po-sec--doc .w-po-h2 { display: block; grid-column: 2; }
.w-po-doc .w-po-h3 { font-size: clamp(19px, 1.6vw, 22px); margin: 1.5em 0 .5em; }
.w-po-doc .w-po-h4 { font: 800 12.5px/1.4 var(--w-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--w-ink); margin: 1.4em 0 .6em; }
.w-po-doc .w-po-h2 + .w-po-h3 { margin-top: .2em; }
.w-po-sn { display: inline-block; min-width: 2.4em; margin-right: 6px; font: 800 .62em/1 var(--w-sans); letter-spacing: .08em; color: var(--w-crimson); vertical-align: .18em; }
.w-po-h4 .w-po-sn { font-size: 1em; vertical-align: 0; }
.w-po-doc ul ul, .w-po-doc ol ul { margin: .5em 0 .2em; }
.w-po-doc p i[class*="fa-"] { color: var(--w-crimson); width: 1.2em; }
.w-po-doc table { font-size: 14.5px; }
.w-po-doc thead th { white-space: nowrap; }
.w-po-notice { margin: 1.4em 0 0; padding: 20px 22px; background: var(--w-crimson-tint); border-left: 4px solid var(--w-crimson); border-radius: 2px; }
.w-po-notice > :last-child { margin-bottom: 0; }
.w-po-notice__t { font: 800 12.5px/1.3 var(--w-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--w-crimson-deep); margin-bottom: 8px; }
.w-po-notice small { font-size: 15px; color: var(--w-ink); }

/* help card: navy, contact details from config/contact.php */
.w-po-doc > .w-po-help { max-width: none; }
.w-po-help { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 3.4vw, 44px); background: var(--w-navy); color: rgba(255, 255, 255, .78); border-radius: var(--w-r); overflow: hidden; isolation: isolate; font-size: 15.5px; line-height: 1.65; }
.w-po-help::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 25% 100%; }
.w-po-help .w-eyebrow { color: var(--w-yellow); margin-bottom: 14px; }
.w-po-doc .w-po-help__t { font-size: clamp(24px, 2.4vw, 32px); color: var(--w-white); margin: 0 0 12px; }
.w-po-help__t em { color: var(--w-yellow); }
.w-po-doc .w-po-help a.w-btn { background: var(--b-bg); }
.w-po-help__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.w-po-help__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; margin: 0; }
.w-po-help__list i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 2px; color: var(--w-yellow); font-size: 13px; }
.w-po-help__list small { display: block; font: 700 10.5px/1.3 var(--w-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.w-po-help__list a { color: var(--w-white); background-image: none; font-weight: 700; overflow-wrap: anywhere; }
.w-po-help__list a:hover { color: var(--w-yellow); }

@media (max-width: 991px) {
    .w-po-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .w-po-docket { max-width: 460px; margin-top: 18px; }
    .w-po-grid { grid-template-columns: minmax(0, 1fr); }
    .w-po-aside { position: static; }
    .w-po-toc__list { max-height: 60vh; }
    .w-po-print { justify-self: start; }
}
@media (min-width: 992px) {
    .w-po-toc__h { cursor: default; }
    .w-po-toc__h i { display: none; }
}
@media (max-width: 767px) {
    .w-po-sec, .w-po-doc .w-po-h2 { display: block; }
    .w-po-n { display: block; font-size: 34px; margin-bottom: 10px; }
    .w-po-help { grid-template-columns: minmax(0, 1fr); }
    .w-po-tab { padding: 0 14px; min-height: 48px; }
}

@media print {
    .w-header-space { display: none; }
    .w-po-n { transition: none; }
    .w-po-hero { background: var(--w-white); color: var(--w-ink); padding: 0; }
    .w-po-hero::before, .w-po-hero::after, .w-po-tabs, .w-po-aside, .w-po-help, .w-po-docket__seal, .w-crumbs { display: none !important; }
    .w-po-hero__grid { display: block; padding-bottom: 12px; border-bottom: 2px solid var(--w-ink); }
    .w-po-title, .w-po-title em, .w-po-sub, .w-po-hero .w-eyebrow, .w-po-hero .w-eyebrow b { color: var(--w-ink) !important; }
    .w-po-docket { box-shadow: none; padding: 8px 0; margin: 12px 0 0; max-width: none; background: var(--w-white); }
    .w-po-docket::before { display: none; }
    .w-po-docket > div:not(.w-po-docket__seal) { display: inline-flex; border: 0; padding: 0 18px 0 0; }
    .w-po-body { padding: 16px 0 0; background: var(--w-white); }
    .w-po-grid { display: block; }
    .w-po-sec { display: block; padding: 14px 0; break-inside: auto; }
    .w-po-doc .w-po-h2 { display: block; break-after: avoid; }
    .w-po-n { color: var(--w-ink); font-size: 1em; margin-right: 8px; }
    .w-po-doc, .w-po-doc a { color: var(--w-ink); }
    .w-po-notice { background: none; border: 1px solid var(--w-ink); }
}

/* long addresses (the website URL, emails) wrap on narrow phones */
.w-po-doc a { overflow-wrap: anywhere; }
