/* Tri-County News 9: a perfectly ordinary local TV news site. Light only, like most of them. */
:root {
  --navy: #0b3a6e; --navy-2: #0f4c8f; --red: #c8102e; --ink: #1b1f24; --muted: #5f6670;
  --line: #dde1e6; --bg: #f3f4f6; --paper: #fff;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
img { max-width: 100%; height: auto; display: block; }

.util { background: #062447; color: #cdd8e6; font-size: 12px; }
.util .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.util b { color: #fff; }
.util-links a { margin-left: 16px; }

.masthead { background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy);
  font: 700 26px/1 var(--sans); box-shadow: inset 0 0 0 3px var(--red); }
.logo-txt { font-size: 22px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.logo-txt small { display: block; font-size: 11px; letter-spacing: .3em; color: #9fc1e8; margin-top: 3px; }
.nav { display: flex; gap: 20px; font-size: 14px; font-weight: 700; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }

.trending { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 13px; }
.trending .wrap { display: flex; gap: 18px; padding-top: 9px; padding-bottom: 9px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.trending b { color: var(--red); letter-spacing: .06em; }
.trending a { color: var(--navy-2); }

/* main.wrap, not main: .wrap's padding shorthand would otherwise reset these. */
main.wrap { padding-top: 22px; padding-bottom: 40px; flex: 1; width: 100%; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.story, .front { background: var(--paper); padding: 24px 28px 28px; border: 1px solid var(--line); }
.kicker { margin: 0 0 6px; color: var(--red); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
h1 { font: 700 clamp(26px, 4vw, 38px)/1.15 var(--sans); margin: 0 0 10px; letter-spacing: -.01em; }
/* Headlines are user text: a 120-letter "word" must wrap instead of widening the page. */
h1, .dek, .body, .card-h, .lead-h, .most li { word-break: break-word; overflow-wrap: anywhere; }
.dek { font: 19px/1.45 var(--serif); color: #333a42; margin: 0 0 12px; }
.byline { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.byline b { color: var(--ink); }
.share { display: flex; gap: 8px; margin-bottom: 18px; }
.share a { font-size: 12px; font-weight: 700; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--navy); }

.hero { margin: 0 0 20px; }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; }
/* Safari < 15 has no aspect-ratio: once the iframe replaces the image, the player would be 0px tall. */
@supports not (aspect-ratio: 1) { .player { height: 0; padding-top: 56.25%; } .player > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%;
  border: 0; background: rgba(11, 58, 110, .88); cursor: pointer; box-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.play:hover { background: var(--red); }
.tri { display: block; margin-left: 37px; width: 0; height: 0; border-style: solid; border-width: 18px 0 18px 29px; border-color: transparent transparent transparent #fff; }
.dur { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; letter-spacing: .05em; }
figcaption { color: var(--muted); font-size: 12px; padding-top: 6px; }

.body p { font: 18px/1.65 var(--serif); margin: 0 0 1em; }
.more-wrap { position: relative; }
.faded { -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); max-height: 3.3em; overflow: hidden; }
.more { display: block; width: 100%; padding: 17px; background: var(--navy); color: #fff; border: 0; font: 700 17px var(--sans); cursor: pointer; }
.more:hover { background: var(--navy-2); }

.side { display: flex; flex-direction: column; gap: 20px; }
.ad { height: 250px; background: repeating-linear-gradient(45deg, #e9ebee, #e9ebee 10px, #e2e5e9 10px, #e2e5e9 20px); display: grid; place-items: start center; border: 1px solid var(--line); }
.ad span { font-size: 10px; color: #5d6570; text-transform: uppercase; letter-spacing: .1em; padding-top: 4px; }
.most { background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; }
.most h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; border-bottom: 3px solid var(--red); padding-bottom: 8px; }
.most ol { margin: 0; padding-left: 20px; font-size: 14px; }
.most li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.most li:last-child { border: 0; }

.lead figcaption { padding-top: 12px; }
.lead-h { display: block; font: 700 26px/1.2 var(--sans); color: var(--ink); margin: 0; }
.lead-h a { color: inherit; text-decoration: none; }
.lead-h a:hover { text-decoration: underline; }
/* iOS Safari only sends taps on plain text to a document-level click listener when the element
   looks clickable. Touch screens only, so desktop keeps a normal cursor. */
@media (hover: none) { body { cursor: pointer; -webkit-tap-highlight-color: transparent; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 8px; }
.card { display: flex; flex-direction: column; gap: 6px; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 4px; }
.card .kicker { margin: 0; font-size: 11px; }
.card-h { font-weight: 700; font-size: 15px; line-height: 1.3; }

.nf { background: var(--paper); border: 1px solid var(--line); padding: 40px 28px; }

.foot { background: #062447; color: #a9b9cc; font-size: 13px; padding: 26px 0 90px; }
.foot b { color: #fff; }
.foot-links a { margin-right: 16px; }
.foot-fine { color: #7f93ab; font-size: 12px; margin-top: 18px; }
.foot-fine a { text-decoration: underline; }

/* Shown after the video starts. */
.reveal { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); z-index: 10;
  background: #ff6a1a; color: #2a1405; border-radius: 18px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.reveal[hidden] { display: none; }
.reveal p { margin: 0; }
.reveal a { background: #ffd23f; border-radius: 999px; padding: 9px 16px; font-weight: 700; white-space: nowrap; }

/* Shown after Rick opens in a new tab: this is what they come back to. Rickroll.app colors. */
.reveal-screen { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; background: #f26b1d; color: #2a1405; display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.reveal-screen[hidden] { display: none; }
.revealed { overflow: hidden; }
.rs-inner { max-width: 640px; text-align: center; }
.rs-kicker { display: inline-block; background: #fff; color: #c8102e; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; margin: 0 0 18px; }
.rs-h { font: 400 clamp(52px, 11vw, 104px)/.92 Impact, "Anton", "Arial Narrow Bold", sans-serif; text-transform: uppercase; margin: 0 0 18px; letter-spacing: .01em; }
.rs-p { font: 500 19px/1.5 var(--sans); margin: 0 auto 26px; max-width: 30em; }
.rs-btn { display: inline-block; background: #ffd23f; color: #2a1405; font: 700 18px var(--sans); padding: 16px 26px; border-radius: 999px; box-shadow: 4px 4px 0 #2a1405; }
.rs-btn:hover { text-decoration: none; background: #fff; }
.rs-again { display: block; margin-top: 18px; font-weight: 700; text-decoration: underline; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .story, .front { padding: 18px 16px 22px; margin: 0 -16px; border-left: 0; border-right: 0; }
  .util-links { display: none; }
  .masthead .wrap { gap: 18px; }
  .play { width: 76px; height: 76px; }
  .tri { margin-left: 29px; border-width: 14px 0 14px 23px; }
}
