/* © 2026 Prescient Logic LLC. All Rights Reserved. */
/* cedarbendll.org: the imaginary Cedar Bend Little League's "current" site, drawn the way league
   sites of the last decade look (fixed-width page, gradient menu bar, boxed modules). */
* { box-sizing: border-box; }
html { font-size: 14px; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #222; line-height: 1.45; background: #1d4a38 linear-gradient(#143528, #1d4a38 320px); }
a { color: #1d4a38; }
a:hover { color: #c4572e; }
img { max-width: 100%; height: auto; border: 0; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; }
h3 { font-size: 1.15rem; margin: 1em 0 .3em; color: #1d4a38; }
.small { font-size: .88rem; color: #555; }
.kicker { text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; color: #c4572e; font-weight: bold; margin: 0 0 .4em; }
.lead { font-size: 1.1rem; font-style: italic; color: #444; }
.date { color: #777; font-size: .88rem; margin: .1em 0 .5em; }

/* The note that this is a demonstration. Not part of the league's "own" site. */
.demo-banner { position: sticky; top: 0; z-index: 50; display: flex; gap: 14px; align-items: center; justify-content: center; padding: 8px 14px; background: #ffe08a; color: #2b2300; border-bottom: 2px solid #b8860b; font: 14px/1.35 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.demo-banner strong { font-size: 19px; font-style: italic; font-weight: 800; white-space: nowrap; }

.wrap { width: 1000px; max-width: 100%; margin: 14px auto 30px; background: #fff; box-shadow: 0 0 18px rgba(0, 0, 0, .55); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; background: #0f2a1f; color: #cfe0d6; font-size: .86rem; }
.topbar a { color: #fff; margin-left: 10px; }
.btn { display: inline-block; padding: 4px 14px; background: linear-gradient(#e2703f, #b8481f); color: #fff !important; font-weight: bold; text-decoration: none; border: 1px solid #8e3615; border-radius: 3px; text-transform: uppercase; font-size: .86rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: linear-gradient(#f08552, #c4572e); }
.btn.big { padding: 9px 26px; font-size: 1.1rem; }
.masthead { display: flex; align-items: center; gap: 18px; padding: 14px 18px; background: #f4f1e6 linear-gradient(#fff, #ece7d4); border-bottom: 3px solid #e9b44c; }
.masthead .crest img { width: 96px; height: 96px; display: block; }
.masthead .name { font: bold 2.3rem Georgia, 'Times New Roman', serif; color: #1d4a38; text-transform: uppercase; letter-spacing: .02em; text-shadow: 1px 1px 0 #fff; }
.masthead .tag { color: #555; font-style: italic; margin-top: 4px; max-width: 640px; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; background: linear-gradient(#2a6a50, #1d4a38); border-bottom: 3px solid #c4572e; }
.nav > li { position: relative; }
.nav a { display: block; padding: 10px 13px; color: #fff; text-decoration: none; text-transform: uppercase; font-weight: bold; font-size: .88rem; }
.nav > li:hover > a, .nav > li:focus-within > a { background: #c4572e; }
.nav ul { display: none; position: absolute; left: 0; top: 100%; z-index: 20; list-style: none; margin: 0; padding: 0; min-width: 215px; background: #1d4a38; border: 1px solid #0f2a1f; box-shadow: 2px 3px 6px rgba(0, 0, 0, .4); }
.nav li:hover > ul, .nav li:focus-within > ul { display: block; }
.nav ul a { text-transform: none; font-weight: normal; padding: 8px 13px; border-top: 1px solid #2a6a50; }
.nav ul a:hover { background: #c4572e; }

.content { padding: 16px 18px 6px; min-height: 380px; }
.page-title { margin: 0 0 12px; padding-bottom: 6px; font-size: 1.9rem; color: #1d4a38; border-bottom: 2px solid #e9b44c; }
.cols { display: flex; gap: 16px; align-items: flex-start; }
.main { flex: 1 1 0; min-width: 0; }
.side { flex: 0 0 290px; }
.module { margin: 0 0 16px; border: 1px solid #c9c4b0; background: #fff; }
.mod-title { margin: 0; padding: 7px 11px; font-size: 1.1rem; color: #fff; letter-spacing: .02em; background: linear-gradient(#2a6a50, #1d4a38); border-bottom: 2px solid #e9b44c; }
.mod-body { padding: 10px 12px; overflow: hidden; }
.mod-body > :first-child { margin-top: 0; }
img.right { float: right; width: 300px; margin: 2px 0 10px 14px; border: 1px solid #999; padding: 3px; background: #fff; }
img.wide { display: block; width: 100%; margin: 0 0 10px; border: 1px solid #999; padding: 3px; }
blockquote { margin: 10px 0; padding: 6px 14px; border-left: 4px solid #e9b44c; background: #faf7ea; font-style: italic; }
.links { clear: both; font-weight: bold; }
.highlight { overflow: hidden; margin-bottom: 12px; }

table.grid { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.grid th, table.grid td { border: 1px solid #c9c4b0; padding: 5px 8px; text-align: left; vertical-align: top; }
table.grid th { background: #ece7d4; }
table.grid tr:nth-child(even) td { background: #faf8f0; }
table.stats td { text-align: center; }
table.stats strong { font: bold 1.5rem Georgia, serif; color: #c4572e; }
ul.two { columns: 2; }
ul.ann, ul.quick, ul.docs { padding-left: 18px; margin: 0; }
ul.ann li, ul.quick li, ul.docs li { margin: 4px 0; }
.news-item { padding: 0 0 8px; margin: 0 0 10px; border-bottom: 1px dotted #999; }
.news-item:last-child { border: 0; margin: 0; }
.news-item h3 { margin: 0; }

/* The slide rotator. Slides are stacked, not hidden, so each one's title is on the page. */
.rotator { position: relative; aspect-ratio: 16 / 9; margin: 0 0 16px; border: 1px solid #333; background: #000; overflow: hidden; }
.rotator .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.rotator .slide.on { opacity: 1; pointer-events: auto; }
.rotator img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rotator .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(0, 0, 0, .68); color: #fff; }
.rotator .t { font: bold 1.2rem Georgia, serif; }
.rotator .more { display: block; width: max-content; margin-top: 3px; color: #e9b44c; font-weight: bold; text-transform: uppercase; font-size: .82rem; }

/* Field status. */
#skFieldStatus ul { list-style: none; margin: 0; padding: 0; }
#skFieldStatus .skItem { padding: 6px 0 6px 26px; border-bottom: 1px dotted #999; position: relative; }
#skFieldStatus .skItem::before, #skFieldStatus .skSubField li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 13px; height: 13px; border-radius: 50%; border: 1px solid #333; background: #999; }
#skFieldStatus ul li.skOpen::before { background: #2e9e44; }
#skFieldStatus ul li.skClose::before { background: #cc2a1f; }
#skFieldStatus ul li.skDelay::before { background: #e9b44c; }
#skFieldStatus .skName { display: block; font-weight: bold; }
#skFieldStatus .skDate { display: block; font-size: .82rem; color: #666; }
#skFieldStatus .skSubField li { position: relative; padding: 2px 0 2px 18px; font-size: .9rem; }
#skFieldStatus .skSubField li::before { left: 0; top: 5px; width: 9px; height: 9px; }

.sponsor-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sponsor-strip img, .sponsor-grid img { border: 1px solid #ddd; background: #fff; }
.sponsor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center; font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #999; padding: 3px; }

.explain { max-width: 640px; margin: 20px auto 30px; padding: 18px 22px; border: 2px solid #e9b44c; background: #faf7ea; }
.explain h2 { margin-top: 0; color: #1d4a38; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; background: #0f2a1f; color: #cfe0d6; font-size: .86rem; }
.footer a { color: #fff; }

dialog#demo-dialog { width: 460px; max-width: calc(100% - 32px); padding: 22px 24px; border: 0; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; color: #222; }
dialog#demo-dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog#demo-dialog h2 { margin: 0 0 8px; font: 700 21px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1d4a38; }
dialog#demo-dialog p { margin: 0 0 10px; }
dialog#demo-dialog form { margin-top: 16px; text-align: right; }

@media (max-width: 760px) {
  .demo-banner { flex-direction: column; gap: 2px; text-align: center; }
  .wrap { margin: 0; }
  .masthead .name { font-size: 1.5rem; }
  .masthead .crest img { width: 64px; height: 64px; }
  .cols { display: block; }
  img.right { float: none; width: 100%; margin: 0 0 10px; }
  .sponsor-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .footer { display: block; }
  .footer div { margin-bottom: 10px; }
  ul.two { columns: 1; }
  table.grid { display: block; overflow-x: auto; }
  .nav ul { position: static; box-shadow: none; }
}
