/* style.css — ESPN-inspired theme on top of the espn.com mirror chrome.
   Covers the home/category feed, article/legal templates and functional bits. */

:root {
  --espn-red: #c8102e;
  --espn-red-dark: #9c0b23;
  --ink: #1d1e1f;
  --muted: #6c6d6f;
  --line: #dcdddf;
  --page: #f1f2f3;
  --link: #06c;
}

html, body { background: var(--page); }
body { color: var(--ink); font-family: "BentonSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }

/* ---------- header: black ESPN bar ---------- */
#header-wrapper { background: #000; }
#global-header { background: #000 !important; border: 0; box-shadow: none; height: 56px; transition: transform .25s ease, box-shadow .25s ease; }
#global-header .container { display: flex; align-items: center; height: 56px; max-width: 1300px; padding: 0 18px; }
#global-header .logo-header { float: none; margin: 0; height: 56px; display: flex; align-items: center; }
#global-header .logo-header:after { display: none; }
#global-header .logo-header a {
  background: var(--espn-red) !important;
  color: #fff !important;
  font-family: "IgniteDisplayCondensed", "BentonSans", Arial, sans-serif;
  font-size: 25px; font-weight: 900; font-style: italic; letter-spacing: .02em;
  text-transform: uppercase; text-indent: 0; text-shadow: none;
  height: 56px; line-height: 56px; padding: 0 24px 0 20px; margin: 0;
  transform: skewX(-9deg); transform-origin: left center; white-space: nowrap; text-decoration: none;
}
#global-header .logo-header a:hover { background: var(--espn-red-dark) !important; }
#global-header .tools { position: absolute; right: 22px; top: 0; float: none; display: flex; align-items: center; height: 56px; gap: 0; }
#global-header .container .tools > li.search { width: 32px; }
#global-header .container .tools > li.search > a {
  animation: none !important; opacity: 1 !important; height: 56px !important; width: 32px;
  padding: 0 !important; color: #fff; font-size: 20px;
}
#global-header .container .tools > li.search > a:after { color: #fff; line-height: 56px; }
#global-header .container .tools > li.search > a:hover:after { color: var(--espn-red); }

/* search drop-down */
#global-search { display: none; }
#global-search.active { display: block; }
#global-search.global-search {
  position: absolute; top: 56px; right: 0; width: 380px; padding: 12px;
  background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 8px 20px rgba(0,0,0,.35); z-index: 1000100;
}
#global-search .global-search-input-wrapper { display: flex; }
#global-search .search-box { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); font-size: 14px; border-radius: 4px 0 0 4px; }
#global-search .btn-search { width: 42px; border: 0; background: var(--espn-red); border-radius: 0 4px 4px 0; cursor: pointer; }
.global-search-results { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.global-search-results li { margin: 0; }
.global-search-results a { display: block; padding: 9px 10px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #edeef0; font-size: 13px; }
.global-search-results a:hover, .global-search-results a:focus { background: #f4f4f6; color: var(--espn-red); }

/* ---------- primary nav: dark bar ---------- */
#global-nav {
  display: block !important; height: 44px !important; background: #1a1a1a !important;
  border: 0; box-shadow: none; overflow: visible;
}
#global-nav > ul {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
  max-width: 1300px; height: 44px; margin: 0 auto; padding: 0 6px; list-style: none;
}
#global-nav > ul > li { margin: 0; }
#global-nav > ul > li > a {
  display: block; color: #fff !important; font-size: 14px; font-weight: 700;
  line-height: 44px; padding: 0 13px; text-decoration: none; white-space: nowrap;
}
#global-nav > ul > li > a:hover { background: var(--espn-red); color: #fff !important; }

/* ---------- secondary nav: white strip ---------- */
#global-nav-secondary {
  display: block !important; background: #fff !important; height: auto !important;
  border-bottom: 1px solid var(--line); box-shadow: none;
}
#global-nav-secondary .global-nav-container { max-width: 1300px; margin: 0 auto; padding: 0 6px; }
#global-nav-secondary .global-nav-container > ul { display: flex; gap: 0; height: 38px; margin: 0; padding: 0; list-style: none; }
#global-nav-secondary .global-nav-container > ul > li { margin: 0; }
#global-nav-secondary .global-nav-container > ul > li > a {
  display: block; color: var(--muted) !important; font-size: 12px; font-weight: 700;
  line-height: 35px; padding: 0 14px; text-decoration: none; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 3px solid transparent;
}
#global-nav-secondary .global-nav-container > ul > li > a:hover { color: var(--ink) !important; }
#global-nav-secondary .global-nav-container > ul > li.active > a { color: var(--ink) !important; border-bottom-color: var(--espn-red); }

/* sticky header reveal on scroll-up */
body.dw-scrolled #global-header { box-shadow: 0 2px 10px rgba(0,0,0,.35); }
body.dw-nav-hidden #global-header { transform: translateY(-105%); }

/* ---------- home / category three-column layout ---------- */
.main-content.layout-dbc.one-feed {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px;
  align-items: start; gap: 16px; max-width: 1240px; margin: 0 auto; padding: 16px 16px 40px;
}
.main-content.one-feed > .col-one { grid-column: 1; grid-row: 1; width: auto; max-width: none; flex: none; position: sticky; top: 12px; }
.main-content.one-feed > #news-feed.col-two { grid-column: 2; grid-row: 1; width: auto; max-width: none; flex: none; min-width: 0; }
.main-content.one-feed > .col-three { grid-column: 3; grid-row: 1; min-width: 0; }

/* left + right rail cards */
.col-one .quicklinks, .col-three .quicklinks { width: 100%; max-width: none; font-size: 13px; }
.col-one .quicklinks.sub-module, .col-three .quicklinks.sub-module {
  background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.14);
  margin: 0 0 12px; padding: 0; overflow: hidden;
}
.col-one .quicklinks__container, .col-three .quicklinks__container { padding: 0; }
.col-one .quicklinks__header, .col-three .quicklinks__header {
  display: flex; align-items: center; padding: 12px 14px 10px; border-bottom: 1px solid var(--line);
}
.col-one .quicklinks__heading, .col-three .quicklinks__heading {
  margin: 0; color: var(--ink); font-size: 14px; font-weight: 900; line-height: 18px; letter-spacing: .01em;
}
.col-one .quicklinks_list, .col-three .quicklinks_list { list-style: none; margin: 0; padding: 6px 0; }
.col-one .quicklinks_list__item, .col-three .quicklinks_list__item { padding: 0; }
.col-one .quicklinks_list li.quicklinks_list__item:after, .col-three .quicklinks_list li.quicklinks_list__item:after { display: none; }
.col-one .quicklinks_list__link, .col-three .quicklinks_list__link { display: block; padding: 8px 14px; text-decoration: none; }
.col-one .quicklinks_list__name, .col-three .quicklinks_list__name {
  color: var(--ink); font-size: 13px; font-weight: 600; line-height: 17px;
}
.col-one .quicklinks_list__link:hover, .col-three .quicklinks_list__link:hover { background: #f4f4f6; }
.col-one .quicklinks_list__link:hover .quicklinks_list__name,
.col-three .quicklinks_list__link:hover .quicklinks_list__name { color: var(--espn-red); }

/* ---------- masthead ---------- */
#news-feed .home-masthead, #news-feed .category-header {
  background: #fff; border-radius: 10px; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.14);
  padding: 16px 20px 18px; margin: 0 0 16px;
}
.home-masthead__h1, .category-header__h1 {
  font-family: "PublicoBannerExtrabold", "BentonSans", Georgia, serif;
  font-size: 30px; line-height: 1.15; font-weight: 400; color: var(--ink); margin: 0 0 6px;
}
.home-masthead__dek, .category-header__dek { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }

/* ---------- feed cards ---------- */
#news-feed .contentItem {
  background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.14);
  margin: 0 0 16px; overflow: hidden;
}
#news-feed .contentItem > .contentItem__content { background: transparent; }
#news-feed .contentItem__padding { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
#news-feed .contentItem__contentWrapper { order: 2; padding: 14px 16px 16px; }
#news-feed .media-wrapper { order: 1; }
#news-feed .contentItem__title {
  color: var(--ink); font-size: 22px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
  display: block !important; -webkit-line-clamp: unset; max-height: none; overflow: visible; margin: 0;
}
#news-feed .contentItem__subhead {
  color: #48494a; font-size: 15px; font-weight: 400; line-height: 1.5;
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  max-height: calc(1.5em * 2); overflow: hidden; margin: 7px 0 0;
}
#news-feed .contentMeta__timestamp {
  color: var(--espn-red) !important; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
#news-feed .contentItem__contentMeta--bottom span { color: var(--espn-red) !important; }
#news-feed .media-wrapper { margin: 0; border-radius: 10px 10px 0 0; background: #edeef0; }
#news-feed .media-wrapper img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
#news-feed .contentItem__padding:hover .contentItem__title { color: var(--espn-red); }

/* ---------- article + legal template ---------- */
#pane-main.article-pane { background: #fff; }
#global-viewport #pane-main.article-pane .main-content { background: #fff; }
.article-layout { max-width: 1080px; margin: 0 auto; padding: 24px 16px 44px; }
.article { max-width: 760px; margin: 0 auto; }
.article__header { margin-bottom: 18px; }
.article-breadcrumb { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.article-breadcrumb a { color: var(--espn-red); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article__title { font-family: "PublicoBannerExtrabold", "BentonSans", Georgia, serif; font-size: 38px; line-height: 1.14; font-weight: 400; color: var(--ink); margin: 0 0 12px; }
.article__dek { font-size: 18px; line-height: 1.5; color: #494a4c; margin: 0 0 14px; }
.article__byline { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.article__author { font-weight: 700; color: var(--ink); }
.article__hero { margin: 18px 0 22px; }
.article__hero img, .article__figure img { width: 100%; display: block; border-radius: 4px; background: #edeef0; }
.article figcaption { font-size: 12px; color: var(--muted); padding: 6px 0 0; }
.article__body { font-size: 18px; line-height: 1.7; color: #26272a; }
.article__body p { margin: 0 0 18px; }
.article__body a { color: var(--espn-red); text-decoration: underline; }
.article__section { margin: 0 0 8px; }
.article__section h2 { font-size: 26px; line-height: 1.25; color: var(--ink); margin: 32px 0 12px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 22px; }
.article__body li { margin: 0 0 8px; }
.article__body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article__body th { background: #f4f4f6; }
.article__figure { margin: 20px 0; }

.keyfacts { background: #f4f4f6; border-left: 4px solid var(--espn-red); padding: 16px 18px; margin: 22px 0; }
.keyfacts__h { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; color: var(--ink); }
.keyfacts ul { margin: 0; padding-left: 20px; font-size: 16px; }
.pullquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--espn-red); }
.pullquote p { font-size: 22px; line-height: 1.4; font-style: italic; font-weight: 600; color: var(--ink); margin: 0; }
.article__tagline { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-style: italic; color: #494a4c; }

/* ---------- footer ---------- */
.PageFooter { max-width: 1220px; margin: 0 auto 14px; }
.PageFooter .quicklinks__heading { font-size: 13px; }
.PageFooter__Legal .logo { display: block; }
.footer-logo-text { font-family: "IgniteDisplayCondensed", "BentonSans", Arial, sans-serif; font-size: 24px; font-weight: 900; font-style: italic; color: var(--ink); text-decoration: none; letter-spacing: .02em; }

/* ---------- contact form ---------- */
.contact-form { margin: 10px 0 20px; max-width: 560px; }
.contact-form__row { margin-bottom: 12px; }
.contact-form__row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.contact-form__row input, .contact-form__row textarea { width: 100%; padding: 9px 10px; border: 1px solid #c3c4c6; border-radius: 4px; font-size: 16px; }
.contact-form__btn { padding: 10px 18px; border: 0; border-radius: 4px; background: var(--espn-red); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.contact-form__btn:hover { background: var(--espn-red-dark); }
.contact-form__msg { font-size: 14px; margin-top: 10px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-content.layout-dbc.one-feed { grid-template-columns: 200px minmax(0, 1fr); max-width: 900px; }
  .main-content.one-feed > .col-three { display: none; }
  .main-content.one-feed > .col-one { position: static; }
}
@media (max-width: 767px) {
  #global-header .container { padding: 0 12px; }
  #global-header .logo-header a { font-size: 19px; padding: 0 14px; }
  #global-header .tools { right: 10px; }
  #global-nav { overflow-x: auto; }
  #global-nav > ul { width: max-content; padding: 0 4px; }
  #global-nav > ul > li > a { padding: 0 11px; font-size: 13px; }
  #global-nav-secondary .global-nav-container > ul { width: max-content; }
  #global-search.global-search { width: calc(100vw - 24px); right: -2px; }
  .main-content.layout-dbc.one-feed { display: block; width: 100%; max-width: 100%; padding: 12px 12px 28px; }
  .main-content.one-feed > .col-one { display: none; }
  .main-content.one-feed > #news-feed.col-two { width: 100%; max-width: 100%; }
  #news-feed .contentItem__title { font-size: 19px; }
  #news-feed .home-masthead__h1, #news-feed .category-header__h1 { font-size: 24px; }
  .article__title { font-size: 28px; }
  .article__body { font-size: 17px; }
  .pullquote p { font-size: 20px; }
  .PageFooter { margin: 0 10px 12px; }
}
