/* Indy Daily Bulletin — shared styles for every edition and the archive.
   Brand: navy #2b3488, red #b83329, white #ffffff. */
:root {
  --navy: #2b3488;
  --red: #b83329;
  --white: #ffffff;
  --bg: #f4f5fa;
  --paper: #ffffff;
  --ink: #161a33;
  --muted: #565c78;
  --rule: #dde0ee;
  --tint: #eceefa;
  --link: #2b3488;
  --head-bg: #2b3488;
  --head-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1124; --paper: #181b35; --ink: #eef0fa; --muted: #a7acc8; --rule: #2b2f52;
    --tint: #222650; --link: #a9b2ff; --head-bg: #1d235f; --red: #e0574c;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1124; --paper: #181b35; --ink: #eef0fa; --muted: #a7acc8; --rule: #2b2f52;
  --tint: #222650; --link: #a9b2ff; --head-bg: #1d235f; --red: #e0574c;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Masthead */
.masthead { background: var(--head-bg); color: var(--head-ink); border-bottom: 5px solid var(--red); }
.masthead .wrap { padding-top: 22px; padding-bottom: 20px; }
.masthead .kicker { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.masthead .kicker a { color: inherit; text-decoration: none; }
.masthead h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 5.5vw, 44px); line-height: 1.1; margin: 6px 0 6px; }
.masthead .dateline { margin: 0; opacity: .9; }
.masthead nav { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.masthead nav a { color: var(--head-ink); }

main.wrap { padding-top: 24px; padding-bottom: 48px; }

/* At a glance */
.glance { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--red); border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; }
.glance h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.glance ul { margin: 0; padding-left: 20px; }
.glance li { margin: 4px 0; }

/* Section grid */
.toolbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.toolbar .actions { display: flex; gap: 8px; }
.btn { font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--navy); }
.no-js .toolbar .actions { display: none; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.tile {
  display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-top: 5px solid var(--navy); border-radius: 10px;
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--navy); box-shadow: 0 2px 10px rgba(43, 52, 136, .12); }
.tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.tile[aria-expanded="true"], .tile[aria-expanded="true"]:hover { border-top-color: var(--red); background: var(--tint); }
.tile .row { display: flex; align-items: center; gap: 10px; }
.tile .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; place-items: center; flex: none; }
.tile[aria-expanded="true"] .icon { background: var(--red); }
.tile .icon svg { width: 20px; height: 20px; }
.tile .title { font-weight: 700; font-size: 18px; line-height: 1.2; }
.tile .count { font-size: 13px; color: var(--muted); }
.tile .preview { color: var(--muted); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.tile[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--red); }

.panel { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px 6px; }
.js .panel:not(.open) { display: none; }
.panel > h3 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; color: var(--navy); }
:root[data-theme="dark"] .panel > h3 { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel > h3 { color: var(--link); } }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) {
  .items { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 14px 12px 2px; }
  .item { padding: 12px; }
}
.item { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; background: var(--bg); }
.item h4 { margin: 4px 0 6px; font-size: 17px; line-height: 1.3; }
.item p { margin: 6px 0; }
.item ul { margin: 6px 0; padding-left: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 1px 8px; border-radius: 4px; background: var(--red); color: var(--white); }
.callout { font-size: 14px; background: var(--tint); border-left: 3px solid var(--red); border-radius: 4px; padding: 8px 12px; }
.meta { font-size: 13px; color: var(--muted); }
.meta a { color: var(--muted); }

table.cal { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 15px; }
table.cal th, table.cal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cal th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cal td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { table.cal td:first-child { white-space: normal; } }

/* Email signup */
.signup { margin-top: 28px; background: var(--paper); border: 1px solid var(--rule); border-top: 5px solid var(--red); border-radius: 10px; padding: 18px 20px; }
.signup h2 { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.signup p { margin: 4px 0 12px; }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type=email], .signup input[type=text] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); }
.signup input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--white); font-weight: 700; padding: 9px 18px; }
.btn.primary:hover { filter: brightness(1.08); border-color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Edition navigation + footer */
.edition-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 15px; }
.edition-nav .center { font-weight: 700; }
footer.site { font-size: 13px; color: var(--muted); padding: 20px 0 40px; }
footer.site ul { padding-left: 18px; }

/* Archive page */
.archive h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 4px; margin: 28px 0 10px; }
:root[data-theme="dark"] .archive h2 { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .archive h2 { color: var(--link); } }
.archive ul { list-style: none; margin: 0; padding: 0; }
.archive li { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.archive li a { font-weight: 700; }
.archive li .sum { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
