html, body {
        margin: 0;
        min-height: 100%;
}
body {
    font-family: system-ui, Arial, sans-serif;
    margin: 10px auto;
    padding: 10px;
    line-height: 1.5;
    background-image: url(images/deep-maroon-leather-seamless-background.jpg);
    background-repeat: repeat;
    font-family: Georgia, "Times New Roman", serif;
    color: #37100e;
}
.page {
    background-image: url(images/antique-parchment-seamless-background.jpg);
    background-repeat: repeat;
    color: #2b160d;
    position: relative;
    min-height: 600px;
    /* margin: 0 auto; */
    /* padding: 105px 42px 55px; */
    padding: 20px 20px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0,0,0,.45);
}
.page > .border-top,
.page > .border-bottom {
    left: 76px;
    right: 76px;
    height: 6px;
    background-image: url("images/page-border-top.png");
}
.page > .border-left,
.page > .border-right {
    top: 86px;
    bottom: 86px;
    width: 7px;
    background-image: url("images/page-border-right.png");
}
.page > .border-corner {
    width: 76px;
    height: 86px;
    background-image: url("images/page-border-top-right.png");
    background-repeat: no-repeat;
}
.page > .border-top-center-ornament {
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 40px;
    background-size: contain;
    background-position: center;
    background-image: url('images/page-border-top-center-ornament.png');
    z-index: 5;
    pointer-events: none;
}
.border-piece {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    background-repeat: repeat;
  }
.border-top {
    top: 0;
    background-repeat: repeat-x;
}
.border-bottom {
    bottom: 0;
    background-repeat: repeat-x;
    transform: scaleY(-1);
}
.border-right {
    right: 0;
    background-repeat: repeat-y;
}
.border-left {
    left: 0;
    background-repeat: repeat-y;
    transform: scaleX(-1);
}
.border-top-right {
    top: 0;
    right: 0;
}
.border-top-left {
    top: 0;
    left: 0;
    transform: scaleX(-1);
}
.border-bottom-right {
    bottom: 0;
    right: 0;
    transform: scaleY(-1);
}
.border-bottom-left {
    bottom: 0;
    left: 0;
    transform: scale(-1, -1);
}
.page-content {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
}
/* Mast Head */
.masthead {
    position: relative;
    height: 164px;
    margin: -25px auto 0;
    z-index: 10;
}
.masthead > .left,
.masthead > .right,
.masthead > .title {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}
.masthead > .title {
  width: 588px;
  height: 75px;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  background-image: url("images/masthead-restoring-the-signal-an-interactive-telephone-and-audio-exhibit.png");
  z-index: 4;
}
@media (max-width: 750px) {
    .masthead > .title {
        width: 90%;
        max-width: 588px;
    }
}

.masthead > .left {
    width: 202px;
    height: 139px;
    left: -10px;
    top: 22px;
    background-image: url("images/masthead-rotary-phone.png");
    z-index: 2;
    opacity: 0%;
}
.masthead > .right {
    width: 363px;
    height: 158px;
    right: -25px;
    top: 5px;
    background-image: url("images/masthead-old-house.png");
    z-index: 3;
    opacity: 0%;
}
@media (min-width: 600px) {
    .masthead > .left,
    .masthead > .right {
        opacity: 25%;
    }    
}
@media (min-width: 1000px) {
    .masthead > .left,
    .masthead > .right {
        opacity: 50%;
    }
}
@media (min-width: 1170px) {
    .masthead > .left,
    .masthead > .right {
        opacity: 90%;
    }
}
/* Top Navigation */
.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;

  max-width: 100%;
  margin: 0 auto 24px;

  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 52px;
  text-align: center;
}

/* decorative left cap */
.topnav-left {
  width: 20px;
  height: 52px;
  flex: 0 0 20px;
  background: 
    url("/images/topnav-left.png") no-repeat center/ 20px 52px,
    url("/images/deep-maroon-leather-seamless-background.jpg") no-repeat center/ 20px 52px;
}

/* main link area */
.topnav-main {
  min-height: 52px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

  background:
    url("/images/topnav-background.png") repeat-x center / auto 52px,
    url("/images/deep-maroon-leather-seamless-background.jpg") repeat;

  color: #b88b45;
}

/* links */
.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;

  padding: 0 14px;

  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a:focus {
  text-decoration: underline;
}

/* separators between normal links */
.topnav-separator {
  width: 6px;
  height: 42px;
  flex: 0 0 6px;

  background: url("/images/topnav-separator.png") no-repeat center / 6px 42px;
}

/* transition into utility area */
.topnav-utility-left {
  width: 15px;
  height: 52px;
  flex: 0 0 15px;
  background: 
    url("/images/topnav-utility-left.png") no-repeat center / 15px 52px,
    url("/images/dark-indigo-suede-seamless-background.jpg") repeat;
}

/* utility/logout section */
.topnav-utility {
  min-height: 52px;

  display: flex;
  justify-content: center;
  align-items: center;

  background:
    url("/images/topnav-utility-background.png") repeat-x center / auto 52px,
    url("/images/dark-indigo-suede-seamless-background.jpg") repeat;

  color: #facd9a;
}

.topnav-utility a {
  padding: 0 18px;
}

/* decorative right cap */
.topnav-utility-right {
  width: 15px;
  height: 52px;
  flex: 0 0 15px;
  background:
    url("/images/topnav-utility-right.png") no-repeat center / 15px 52px,
    url("/images/dark-indigo-suede-seamless-background.jpg") repeat;
}
@media (max-width: 560px) {
  .topnav-left,
  .topnav-utility-left,
  .topnav-utility-right,
  .topnav-separator {
    display: none;
  }

  .topnav-main,
  .topnav-utility {
    width: 100%;
  }

  .topnav a {
    min-height: 44px;
    padding: 0 12px;
  }
}
/* Primary Card Border */
.card {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 10px 10px;
    padding: 10px;
    overflow: auto;
}
.card.primary > hr {
    left: 49px;
    right: 49px;
    height: 14px;
    width: 180px;
    background: 
        url("/images/horizontal-rule-decorative.png") no-repeat center / 180px 14px;
    border: none;
}
.card.primary > .border-top,
.card.primary > .border-bottom {
    left: 49px;
    right: 49px;
    height: 5px;
    background-image: url("images/card-primary-border-top.png");
}
.card.primary > .border-left,
.card.primary > .border-right {
    top: 49px;
    bottom: 49px;
    width: 7px;
    background-image: url("images/card-primary-border-right.png");
}
.card.primary > .border-corner {
    width: 49px;
    height: 49px;
    background-image: url("images/card-primary-border-top-right.png");
    background-repeat: no-repeat;
}

form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
}
form.inline-form {
  display:inline;
  border:none;
  padding:0;
  margin-left:8px;
}
form.inline-form button {
    margin-top: 2px;
    padding: 2px 3px;
}
label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}
input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    box-sizing: border-box;
}
button {
    margin-top: 16px;
    padding: 10px 14px;
}
.error {
    color: #a00;
    margin: 10px 0;
}
.success {
    color: #0a0;
    margin: 10px 0;
}
/* nav a {
    margin-right: 12px;
} */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background-color: #f3f4f6;
    color: #374151;
}
.status-badge::before {
    content: '•';
}
.status-complete,
.status-completed {
    background-color: #e8f7ec;
    color: #1f7a3d;
}
.status-complete::before,
.status-completed::before {
    content: '✅';
}
.status-pending {
    background-color: #fff7e6;
    color: #9a6700;
}
.status-pending::before {
    content: '⏳';
}
.status-skipped {
    background-color: #f3f4f6;
    color: #374151;
}
.status-skipped::before {
    content: '🚫';
}
.status-processing {
    background-color: #eef4ff;
    color: #1d4ed8;
}
.status-processing::before {
    content: '⚙️';
}
.status-failed {
    background-color: #fdecec;
    color: #b42318;
}
.status-failed::before {
    content: '❌';
}
.status-draft {
    background-color: #f3f4f6;
    color: #374151;
}
.status-draft::before {
    content: '📝';
}
