/* cps2001.com — palette and type follow school.cistercian.org: navy, silver
   hairlines, serif display, letterspaced caps for chrome. The group-site
   structure (menu, group info, breadcrumb) is the only nod to the original. */

:root {
  --navy: #06335f;
  --blue: #0f4b8a;
  --blue-light: #26629f;
  --silver: #aab7c4;
  --ink: #1c2530;
  --muted: #5b6570;
  --rule: #dde2e8;
  --tint: #eef4f9;

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px;
  background: #eceff3;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy);
}

.page {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #c8ced6;
  box-shadow: 0 1px 3px rgba(6, 51, 95, 0.12);
}

/* ---- masthead ---- */

.masthead {
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  text-align: center;
  padding: 28px 24px 26px;
}

.emblem {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border: 2px solid var(--silver);
  border-radius: 50%;
}

.masthead h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.15;
}

/* Gold hairlines flanking the title, as on the school site's display type. */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 460px;
  margin: 0 auto;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--silver);
}

.rule span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}

.tagline {
  margin: 14px 0 0;
  font-size: 17px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
}

/* ---- navigation ---- */

.mainnav {
  background: #0b0e12;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
}

.mainnav a {
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.mainnav a:hover,
.mainnav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--silver);
}

.crumbs {
  padding: 9px 24px;
  border-bottom: 1px solid var(--rule);
  background: #f7f9fb;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

/* ---- columns ---- */

.columns {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.sidebar {
  width: 220px;
  flex: 0 0 220px;
  padding: 24px 20px;
  background: #f7f9fb;
  border-right: 1px solid var(--rule);
}

.main {
  flex: 1 1 420px;
  padding: 28px 32px 32px;
}

@media (max-width: 640px) {
  .sidebar {
    width: auto;
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .main {
    padding: 24px 20px;
  }
}

/* ---- sidebar panels ---- */

.panel + .panel {
  margin-top: 28px;
}

.panel h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--silver);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
}

.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 13px;
}

.menu li {
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}

.menu li:last-child {
  border-bottom: 0;
}

.menu a {
  text-decoration: none;
  font-weight: 600;
}

.menu .soon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

.menu .soon::after {
  content: "Soon";
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #97a1ac;
}

/* ---- main column ---- */

.main h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
}

.main p {
  margin: 0 0 16px;
}

.lead {
  font-size: 17px;
  color: #33404e;
}

.notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--tint);
  border-left: 3px solid var(--silver);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--navy);
}

.section-head {
  display: block;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
}

dl.upcoming {
  margin: 0 0 22px;
}

dl.upcoming dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
}

dl.upcoming dd {
  margin: 2px 0 14px;
  color: #3c4855;
}

dl.upcoming dd:last-child {
  margin-bottom: 0;
}

/* ---- file listings ---- */

table.filelist {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13px;
}

table.filelist th,
table.filelist td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

table.filelist thead th {
  border-bottom: 2px solid var(--silver);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}

table.filelist tbody th {
  font-weight: 600;
  white-space: nowrap;
}

table.filelist tbody tr:hover {
  background: var(--tint);
}

table.filelist .num {
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
}

table.filelist .mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

table.filelist .note {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 11px;
  color: var(--muted);
}

/* Drop the filename column on narrow screens; the issue name is the link. */
@media (max-width: 640px) {
  table.filelist th:nth-child(2),
  table.filelist td:nth-child(2) {
    display: none;
  }
}

/* ---- footer ---- */

.footer {
  border-top: 3px solid var(--silver);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 18px 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
}

.footer p {
  margin: 4px 0;
}

.footer a {
  color: #fff;
}
