/* WRUF editorial system. Load after existing site styles. */
/* 1. Palette: exact UF colors, with cream as a custom reading surface. */
:root {
  --uf-blue: #0021A5;
  --uf-orange: #FA4616;
  --uf-dark-blue: #002657;
  --uf-white: #FFFFFF;
  --uf-cool-grey: #343741;
  --wruf-paper: #FFFAF2;
  --wruf-rule: #C7C9C8;
  --wruf-tint: #EEF2FA;
}
/* These important rules retire the old fixed gradient, including inline CSS. */
html:root, html body { background: var(--uf-blue) !important; }
html body::before, html body::after { content: none !important; background: none !important; }
#quarto-content { background: transparent; }
main.content {
  min-width: 0; box-sizing: border-box;
  background: var(--wruf-paper) !important;
  border: 1px solid var(--wruf-rule);
  box-shadow: 0 10px 32px #001b6633;
  padding: clamp(1rem, 2.7vw, 2.5rem);
}
#quarto-margin-sidebar { color: white; }
#quarto-margin-sidebar a { color: inherit; }
#quarto-margin-sidebar .quarto-listing-category { color: var(--uf-dark-blue); }
/* Keep the logo masthead and navigation light against the blue surroundings. */
#quarto-header .navbar { background: var(--wruf-paper) !important; border-bottom: 3px solid var(--uf-orange); }
#quarto-header .navbar-brand, #quarto-header .navbar-toggler { color: var(--uf-dark-blue); }
footer.footer { background: var(--uf-dark-blue); color: white; border-top: 3px solid var(--uf-orange); }
footer.footer a { color: white; }
/* 2. Shared navigation. No silver gradients inside navigation bars. */
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a) {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .65rem .95rem; border: 0; border-radius: 0;
  background: transparent; color: var(--uf-dark-blue); box-shadow: none;
  font: 700 1rem/1.3 Georgia,serif; text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a):is(:hover,:focus-visible,.active,[aria-current=page]),.editorial-nav details[open]>summary {
  background: var(--uf-blue); color: white; text-decoration: none;
}
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a)::before,
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a)::after {
  content: ""; position: absolute; width: 10px; height: 10px; opacity: 0;
  pointer-events: none; border: 0; transition: opacity 180ms ease;
}
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a)::before {
  top: 3px; right: 3px; border-top: 2px solid white; border-right: 2px solid white;
}
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a)::after {
  bottom: 3px; left: 3px; border-bottom: 2px solid white; border-left: 2px solid white;
}
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a):is(:hover,:focus-visible,.active,[aria-current=page])::before,
:is(#quarto-header .navbar-nav .nav-link,.editorial-nav a,.editorial-nav summary,.football-nav a,.football-nav summary,.lb-nav a,.lb-nav summary,.sport-subnav a):is(:hover,:focus-visible,.active,[aria-current=page])::after,
.editorial-nav details[open]>summary::before,.editorial-nav details[open]>summary::after { opacity: 1; }
.editorial-nav { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; border-block: 1px solid var(--wruf-rule); background: var(--wruf-paper); margin: 1rem 0; padding: .4rem 0; }
.editorial-nav details { position: relative; }
.editorial-nav summary { list-style: none; gap: .5rem; }
.editorial-nav summary::-webkit-details-marker { display: none; }
.editorial-nav .editorial-menu { position: absolute; z-index: 50; top: 100%; left: 0; min-width: 170px; padding: .3rem; background: var(--wruf-paper); border: 1px solid var(--wruf-rule); box-shadow: 0 6px 18px #00265726; }
.editorial-nav .editorial-menu a { display: flex; justify-content: flex-start; }
/* 3. Editorial type and paper panels. */
.editorial-page, .editorial-workbench { color: var(--uf-dark-blue); font: 1rem/1.65 Arial,Helvetica,sans-serif; }
.editorial-page h1,.editorial-page h2,.editorial-page h3,.editorial-workbench h2,.editorial-workbench h3,.article-page h1,.article-page h2,.notes-page h1,.notes-page h2 { color: var(--uf-dark-blue); font-family: Georgia,serif; border: 0; }
.editorial-page h1 { font-size: clamp(2.1rem,4vw,3.6rem); line-height: 1.1; }
.editorial-kicker { font: 700 .75rem/1.4 Arial,sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--uf-blue); }
.editorial-meta,.editorial-caption { color: var(--uf-cool-grey); font-size: .85rem; }
.editorial-button { display: inline-flex; align-items: center; min-height: 42px; padding: .55rem .85rem; color: var(--uf-blue); text-decoration: none; border: 1px solid #AAB7CD; border-radius: 3px; font: 700 .9rem/1.4 Arial,sans-serif; background: linear-gradient(white,#E1E7F0); box-shadow: inset 0 1px white,0 3px 6px #00265717; transition: box-shadow .18s,background-color .18s; }
.editorial-button:hover { color: var(--uf-dark-blue); box-shadow: inset 0 1px white,0 5px 12px #0021a526; }
.editorial-button:active { box-shadow: inset 0 2px 4px #00265733; }
:is(.editorial-page,.editorial-workbench) :is(a,button,select,summary,input):focus-visible { outline: 3px solid var(--uf-blue); outline-offset: 3px; }
.editorial-rule { border-top: 3px solid var(--uf-blue); padding-top: 1rem; margin-top: 2rem; }
/* 4. Images retain their natural shape. Portraits get narrower columns. */
.editorial-figure, .home .edition-photo { margin: 1rem 0; min-width: 0; }
.editorial-figure img, html .home .edition-photo>img,
html .sport-page .lead-photo img,
.article-page main.content .quarto-figure img, .notes-page main.content .quarto-figure img {
  display: block; width: auto !important; max-width: 100% !important; height: auto !important;
  max-height: 34rem; object-fit: contain; margin-inline: auto;
  border: 1px solid var(--uf-dark-blue); padding: 4px; background: white;
  box-sizing: border-box;
}
.editorial-figure figcaption,.editorial-figure .figure-caption,.home .photo-credit { color: var(--uf-cool-grey); font-size: .8rem; margin-top: .5rem; }
.editorial-feature { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 1.5rem; align-items: start; }
.editorial-feature[data-image-shape=portrait] { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.editorial-feature[data-image-shape=wide] { grid-template-columns: 1fr; }
.editorial-feature>* { min-width: 0; }
/* Optional intentional crop: add editorial-crop to a figure. */
.editorial-figure.editorial-crop img { width: 100% !important; aspect-ratio: 16/9; object-fit: cover; }
/* 5. Article listings. Author/title remain visible on every preview. */
.editorial-listing .quarto-listing-default .quarto-post { border-bottom: 1px solid var(--wruf-rule); padding-block: 1.2rem; align-items: start; }
.editorial-listing .listing-title { font-family: Georgia,serif; color: var(--uf-dark-blue); }
.editorial-listing .listing-author,.editorial-listing .listing-date { color: var(--uf-cool-grey); }
.editorial-listing .thumbnail img { width: auto !important; max-width: 100%; height: auto !important; max-height: 19rem; object-fit: contain !important; border: 1px solid var(--uf-dark-blue); padding: 4px; background: white; }
.editorial-listing .thumbnail:has(.listing-item-img-placeholder) { display: none; }
.editorial-listing .listing-title a { color: var(--uf-dark-blue); }
.editorial-mobile-categories { margin-block: 1rem; }
.editorial-mobile-categories[hidden] { display: none; }
.editorial-mobile-categories summary { padding: .65rem .8rem; background: linear-gradient(white,#E1E7F0); border: 1px solid #AAB7CD; color: var(--uf-dark-blue); cursor: pointer; font-weight: 700; }
.quarto-listing-category { background: var(--wruf-paper); padding: 1rem; border-top: 3px solid var(--uf-orange); }
.quarto-listing-category .category { padding: .3rem 0; color: var(--uf-dark-blue); }
.quarto-listing-category .category.active { color: var(--uf-blue); font-weight: 700; }
.editorial-latest { padding: 1.2rem; background: white; border-top: 4px solid var(--uf-blue); border-bottom: 1px solid var(--wruf-rule); }
.editorial-latest h3 { font: 700 clamp(1.4rem,2.6vw,2.3rem)/1.15 Georgia,serif; }
.editorial-latest h3 a { color: var(--uf-dark-blue); }
.editorial-latest .editorial-tags { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .75rem; color: var(--uf-blue); }
.editorial-latest .editorial-tags span { padding: .2rem .4rem; background: var(--wruf-tint); }
.article-page #title-block-header,.notes-page #title-block-header { border-bottom: 3px solid var(--uf-blue); padding-bottom: 1.2rem; }
.article-page main.content>p,.notes-page main.content>p { max-width: 75ch; color: #000000; }
/* 6. Flexible homepage modules. Extend with another <section>. */
.editorial-workbench { margin-block: 2rem; border-top: 4px solid var(--uf-blue); padding-top: 1.2rem; }
.editorial-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 1.2rem; align-items: start; }
.editorial-module { grid-column: span 4; min-width: 0; padding: 1rem; background: #FFFFFF; border: 1px solid var(--wruf-rule); border-top: 3px solid var(--uf-blue); }
.editorial-module--half { grid-column: span 6; }
.editorial-module--wide { grid-column: span 8; }
.editorial-module--full { grid-column: 1/-1; }
.editorial-module h3 { font-size: 1.3rem; margin-top: 0; }
.editorial-table-scroll { overflow-x: auto; }
.editorial-table { border-collapse: collapse; width: 100%; font: .85rem/1.5 Arial,sans-serif; }
.editorial-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--uf-dark-blue); }
.editorial-table :is(th,td) { padding: .45rem .55rem; border-bottom: 1px solid #D4DFEF; }
.editorial-table th { background: var(--uf-blue); color: white; text-align: left; }
.editorial-table tbody tr:nth-child(even) { background: var(--wruf-tint); }
.editorial-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.editorial-score { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--wruf-rule); }
/* 7. Construction pages: each uses its own note and section context. */
.construction-panel { padding: clamp(1rem,3vw,2.4rem); background: white; border: 1px solid var(--wruf-rule); border-top: 6px solid var(--uf-orange); margin: 1.5rem 0; }
.construction-note { padding: 1rem; background: var(--wruf-tint); border-left: 3px solid var(--uf-blue); margin-top: 1.5rem; }
.construction-note h2 { font-size: 1.25rem; }
.construction-status { display: inline-block; background: var(--uf-blue); color: white; padding: .3rem .6rem; font: 700 .75rem/1.4 Arial,sans-serif; letter-spacing: .05em; }
@media(max-width:950px) { .editorial-module,.editorial-module--wide { grid-column: span 6; }.editorial-module--full { grid-column: 1/-1; } }
@media(max-width:650px) { .editorial-grid,.editorial-feature,.editorial-feature[data-image-shape] { grid-template-columns: 1fr; }.editorial-module,.editorial-module--half,.editorial-module--wide,.editorial-module--full { grid-column: 1/-1; }.editorial-figure img { max-height: 27rem; } }
@media(prefers-reduced-motion:reduce) { .editorial-button,.editorial-nav *,#quarto-header .navbar-nav .nav-link { transition: none !important; } }

/* Keep Quarto headings inside the reading panel on small screens. */
.editorial-page h1, .article-page h1, .notes-page h1 { overflow-wrap: anywhere; }
.editorial-nav { min-width: 0; }
.editorial-nav details { max-width: 100%; }
.editorial-nav .editorial-menu { max-width: min(22rem, 80vw); }
.editorial-listing .quarto-post .body, .editorial-latest > div { min-width: 0; }
.editorial-listing .listing-title, .editorial-latest h3 { overflow-wrap: anywhere; }
.nav-footer a, .nav-footer .nav-link { color: white; }
/* Without the optional helper, a populated listing still hides its empty note. */
.editorial-page:has(.quarto-post) [data-empty-listing] { display: none; }
