/* Styles adapted from www.pma.caltech.edu (theme v7.0): 10px root, Helvetica/Arial,
   Caltech orange #C24400, slate footer #003B4C, grey separators #C8C8C8. */
html { font-size: 10px; -webkit-font-smoothing: antialiased; height: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; min-height: 100%; position: relative;
  font-family: "Helvetica", "Arial", sans-serif; font-size: 1.6rem; line-height: 1.555;
  color: #333; background: #fff; padding-bottom: 220px;
}
a { color: #C24400; text-decoration: none; }
a:hover { color: #762900; text-decoration: underline; }

/* ---------- Header ---------- */
.header-container { max-width: 1440px; margin: 0 auto; }
.header { padding: 0 20px; }
@media (min-width: 768px)  { .header { padding: 0 50px; } }
@media (min-width: 1440px) { .header { padding: 0 calc((100% - 1340px) / 2); } }
.header__utility-menu { display: none; justify-content: flex-end; margin-top: 24px; }
@media (min-width: 768px) { .header__utility-menu { display: flex; } }
.header__utility-menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.header__utility-menu li { margin-left: 28px; }
.header__utility-menu a { font-size: 1.4rem; font-weight: bold; color: #767676; line-height: 1.2; }
.header__utility-menu a:hover { color: #C24400; text-decoration: none; }
.header__utility-menu a.highlight { color: #C24400; text-transform: uppercase; }
.header__title { display: flex; flex-direction: column; margin-top: 20px; }
@media (min-width: 480px) { .header__title { flex-direction: row; align-items: flex-end; } }
@media (min-width: 768px) { .header__title { margin-top: 35px; } }
.header__wordmark-link { display: block; height: 30px; }
.header__wordmark { height: 100%; width: auto; }
.header__separator { display: none; align-self: stretch; border-right: 2px solid #c8c8c8; padding-left: 1.5rem; margin-right: 1.5rem; }
@media (min-width: 480px) { .header__separator { display: block; } .header__title { align-items: flex-end; } }
@media (min-width: 768px) {
  .header__wordmark-link { height: 34px; }
  .header__separator { padding-left: 2.6rem; margin-right: 2.6rem; }
}
@media (min-width: 1440px) { .header__wordmark-link { height: 39px; } }
.header__site-link { display: block; color: #666; font-weight: 200; font-size: 1.6rem; line-height: 2.2rem; letter-spacing: -0.44px; margin-top: 1rem; }
@media (min-width: 480px)  { .header__site-link { margin-top: 0; } }
@media (min-width: 768px)  { .header__site-link { font-size: 2.0rem; line-height: 2.4rem; letter-spacing: -0.56px; } }
@media (min-width: 1440px) { .header__site-link { font-size: 2.6rem; line-height: 3.1rem; letter-spacing: -0.72px; } }
.header__site-link:hover, .header__site-link:visited { color: #666; text-decoration: none; }
.header__site-sub { display: block; font-size: 1.2rem; line-height: 1.8rem; letter-spacing: 0; }
@media (min-width: 768px)  { .header__site-sub { font-size: 1.4rem; } }
@media (min-width: 1440px) { .header__site-sub { font-size: 1.6rem; } }
.header__main-menu { margin-top: 16px; padding-bottom: 14px; border-bottom: 1px solid #c8c8c8; }
@media (min-width: 768px)  { .header__main-menu { margin-top: 24px; } }
@media (min-width: 1024px) { .header__main-menu { margin-top: 29px; } }
.header__main-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.header__main-menu li { margin-right: 40px; }
.header__main-menu a { font-size: 22px; line-height: 1.2; font-weight: bold; color: #4A4A4A; }
.header__main-menu a:hover, .header__main-menu a.active { color: #C24400; text-decoration: none; }

/* ---------- Page body ---------- */
.content { max-width: 1440px; margin: 0 auto; padding: 0 20px 60px; }
@media (min-width: 768px)  { .content { padding: 0 50px 80px; } }
@media (min-width: 1440px) { .content { padding: 0 calc((100% - 1340px) / 2) 80px; } }
.breadcrumbs { font-size: 1.4rem; color: #767676; margin: 18px 0 0; }
.breadcrumbs a { color: #767676; }
.breadcrumbs span { margin: 0 .6rem; }
h1 { color: #000; font-weight: bold; font-size: 3.4rem; line-height: 4.4rem; margin: 20px 0 10px; }
@media (min-width: 768px) { h1 { font-size: 5rem; line-height: 6rem; } }
h2 { color: #000; font-weight: bold; font-size: 2.4rem; line-height: 3rem; margin: 40px 0 12px; }
.lede { font-size: 1.9rem; line-height: 3rem; max-width: 760px; color: #333; }
.rich-text { max-width: 760px; }
.rich-text p { font-size: 1.6rem; line-height: 2.6rem; margin: 0 0 20px; }
@media (min-width: 768px) { .rich-text p { font-size: 1.8rem; line-height: 2.8rem; } }
.rich-text ul { padding-left: 2.4rem; margin: -8px 0 24px; }
.rich-text li { font-size: 1.6rem; line-height: 2.6rem; margin-bottom: 4px; }
@media (min-width: 768px) { .rich-text li { font-size: 1.8rem; line-height: 2.8rem; } }
.callout { border-left: 6px solid #C24400; background: #f1f1f1; padding: 16px 22px; max-width: 760px; margin: 0 0 30px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

/* ---------- Form ---------- */
.form { max-width: 760px; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { padding: 0; font-weight: bold; font-size: 2.2rem; color: #003b4c; margin: 30px 0 14px; width: 100%; border-bottom: 2px solid #c8c8c8; padding-bottom: 6px; }
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: bold; font-size: 1.6rem; margin-bottom: 6px; color: #333; }
.field .hint { display: block; font-weight: normal; font-size: 1.4rem; color: #666; margin-top: 4px; line-height: 2rem; }
.req { color: #C24400; font-weight: bold; }
input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
  display: block; width: 100%; padding: 9px 12px; font: inherit; font-size: 1.6rem; line-height: 1.4;
  color: #495057; background: #fff; border: 1px solid #aaa99f; border-radius: 3px;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: #C24400; box-shadow: 0 0 0 .3rem rgba(194,68,0,.25); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23C24400' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
textarea { min-height: 90px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row .field { flex: 1 1 220px; }
.radios { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.radios label, .check label { font-weight: normal; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 2.4rem; }
.radios input, .check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #C24400; flex: 0 0 auto; }
.check { margin-bottom: 14px; }
.computed { background: #f1f1f1; border-radius: 3px; padding: 12px 16px; font-size: 1.5rem; color: #333; margin-top: -6px; margin-bottom: 22px; }
.computed strong { color: #003b4c; }
.actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn { display: inline-block; font: inherit; font-size: 1.6rem; font-weight: bold; color: #fff; background: #C24400; border: 2px solid #C24400; padding: 11px 30px; border-radius: 3px; cursor: pointer; letter-spacing: .02em; }
.btn:hover { background: #9c3700; border-color: #8f3200; color: #fff; text-decoration: none; }
.btn:focus { outline: 0; box-shadow: 0 0 0 .3rem rgba(194,68,0,.5); }
.btn--secondary { background: #fff; color: #C24400; }
.btn--secondary:hover { background: #fff; color: #762900; }
.privacy { font-size: 1.3rem; color: #666; line-height: 2rem; max-width: 760px; margin-top: 24px; }
.status { border: 1px solid #c8c8c8; border-top: 6px solid #005851; background: #f8f9fa; padding: 26px 30px; max-width: 760px; margin: 30px 0; }
.status h2 { margin: 0 0 10px; color: #003b4c; }
.status p { margin: 0 0 12px; }
.status p:last-child { margin-bottom: 0; }
dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 20px; font-size: 1.5rem; }
dl.summary dt { font-weight: bold; color: #003b4c; }
dl.summary dd { margin: 0; }

/* ---------- Footer ---------- */
.footer-container { position: absolute; left: 0; right: 0; bottom: 0; }
.footer { position: relative; height: 220px; width: 100%; padding: 0 20px; color: #fff;
  background-color: #003b4c; background-image: url(img/bg-footer.png); background-position: top center;
  display: flex; flex-direction: column; flex-wrap: wrap; }
@media (min-width: 480px) { .footer { flex-direction: row; justify-content: space-between; } }
@media (min-width: 768px)  { .footer { padding: 0 50px; } }
@media (min-width: 1440px) { .footer { padding: 0 calc((100% - 1340px) / 2); } }
.footer__torch-box { position: absolute; top: 0; left: 50%; background: #fff; height: 90px; width: 90px; z-index: 600; transform: translate(-50%, -50%) rotate(45deg); }
.footer__torch { position: absolute; top: 0; left: 50%; z-index: 700; height: 70px; transform: translate(-50%, -50px); }
.footer__left { text-align: center; padding-top: 70px; flex-grow: 1; }
.footer__right { text-align: center; padding-top: 20px; flex-grow: 1; font-size: 1.4rem; line-height: 2.2rem; }
@media (min-width: 480px) { .footer__left { padding-top: 64px; text-align: left; } .footer__right { padding-top: 64px; text-align: right; } }
.footer__wordmark { width: 110px; }
.footer__title { font-size: 1.5rem; font-weight: bold; margin-top: 10px; }
.footer__pin { width: 20px; vertical-align: top; margin-top: 5px; }
.footer__menu { width: 100%; text-align: center; font-size: 1.3rem; padding-top: 18px; }
.footer__menu a, .footer__menu span { color: #fff; }
.footer__menu .sep { margin: 0 10px; color: #aaa99f; }

/* ---------- App additions ---------- */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.errors { border-left: 6px solid #dc3545; background: #fbeaec; padding: 14px 22px; max-width: 760px; margin: 0 0 24px; }
.errors ul { margin: 0; padding-left: 20px; }
.flash { border-left: 6px solid #005851; background: #e6f0ef; padding: 12px 22px; max-width: 760px; margin: 0 0 24px; }
.field.invalid input, .field.invalid select { border-color: #dc3545; }
.table { border-collapse: collapse; width: 100%; font-size: 1.5rem; margin: 10px 0 30px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #dee2e6; vertical-align: top; }
.table th { color: #003b4c; border-bottom: 2px solid #c8c8c8; }
.table tr:hover td { background: #f8f9fa; }
.table td.num { text-align: right; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 1.2rem; font-weight: bold; color: #fff; background: #737478; white-space: nowrap; }
.badge-unconfirmed { background: #aaa99f; } .badge-pending_host { background: #0072a8; }
.badge-accepted { background: #005851; } .badge-declined, .badge-expired { background: #762900; } .badge-cancelled { background: #333; }
.admin-nav { margin: 18px 0 0; font-size: 1.5rem; } .admin-nav a { margin-right: 22px; font-weight: bold; } .admin-nav .who { color: #767676; float: right; }
.filters a { margin-right: 14px; } .filters a.on { font-weight: bold; color: #333; }
.btn--small { padding: 6px 14px; font-size: 1.4rem; } .btn--danger { background: #762900; border-color: #762900; }
.actions-inline form { display: inline; margin-right: 10px; }
.log-details { white-space: pre-wrap; font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.2rem; color: #495057; max-width: 700px; }
.grid-2 { display: flex; gap: 40px; flex-wrap: wrap; } .grid-2 > * { flex: 1 1 360px; }
.form--wide { max-width: 1000px; }
.link-box { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.3rem; background: #f1f1f1; padding: 6px 10px; border-radius: 3px; word-break: break-all; }
@media (max-width: 767px) { .header__main-menu { display: none; } }
.host-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; border: 1px solid #c8c8c8; border-radius: 3px; padding: 14px 16px; }
.host-list label { font-weight: normal; display: flex; align-items: center; gap: 9px; cursor: pointer; line-height: 2.4rem; margin: 0; }
.host-list input { width: 17px; height: 17px; margin: 0; accent-color: #C24400; flex: 0 0 auto; }
.field.invalid .host-list { border-color: #dc3545; }
