/* CSS Custom Properties - FTTA Design System */
:root {
  /* Primary Brand Colors */
  --ftta-navy-dark: #141455;
  --ftta-navy-light: #27276d;
  --ftta-navy-medium: #3d3d7c;
  --ftta-navy-hover: #2c2c66;

  /* Secondary Brand Colors */
  --ftta-brown-dark: #694f2c;
  --ftta-brown-light: #a38760;
  --ftta-brown-medium: #947141;
  --ftta-brown-warm: #988469;

  /* Neutral Colors */
  --ftta-text-primary: #555;
  --ftta-text-strong: #444;
  --ftta-text-secondary: #777;
  --ftta-bg-panel: #f2efeb;
  --ftta-border-light: #bdae99;

  /* Utility Colors */
  --ftta-white: #fff;
  --ftta-accent-blue: #1cc7ff;
  --ftta-warning-gold: #ffc439;
  --ftta-success-blue: #008CBA;
  --ftta-pdf-red: #C00;
  --ftta-error-red: #e74c3c;
  --ftta-success-green: #27ae60;

  /* Typography */
  --ftta-font-primary: 'Libre Baskerville', serif;
  --ftta-font-fallback: serif;

  /* Font Sizes */
  --ftta-text-xl: 1.5em;
  --ftta-text-lg: 1.25em;
  --ftta-text-base: 1rem;
  --ftta-text-sm: 0.875em;
  --ftta-text-xs: 0.75rem;

  /* Line Heights */
  --ftta-leading-normal: 1.5;
  --ftta-leading-loose: 2;

  /* Spacing */
  --ftta-space-xs: 0.25rem;
  --ftta-space-sm: 0.5rem;
  --ftta-space-md: 0.75rem;
  --ftta-space-lg: 1rem;
  --ftta-space-xl: 1.25rem;
  --ftta-space-2xl: 1.5rem;
  --ftta-space-3xl: 2rem;
  --ftta-space-4xl: 2.5rem;
  --ftta-space-5xl: 3.5rem;

  /* Layout */
  --ftta-container-max: 62.5rem;
  --ftta-gutter: 0.9375rem;

  /* Shadows & Effects */
  --ftta-text-shadow-light: 1px 1px #ccc;
  --ftta-text-shadow-strong: 2px 2px var(--ftta-border-light);
  --ftta-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --ftta-box-shadow-strong: 0 0 10px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --ftta-transition: all 0.3s ease;
  --ftta-transition-fast: all 0.15s ease;
}

body {
  font-family: 'Libre Baskerville', serif;
  color: #555;
}

.login-box label {
  font-size: 1rem;
  padding-left: .3em;
}

ol,
ul,
dl {
  font-family: 'Libre Baskerville', serif;
}

ul {
  margin-left: 2.5rem;
}

strong {
  color: #444;
}

a:hover,
a:focus {
  color: #1cc7ff;
}

.center {
  text-align: center;
}

.note,
.panel .note {
  font-size: 0.875em;
  color: #777;
}

.button {
  border-radius: 4px;
  padding: 0.75em 1.125em;
}

.verse-box {
  background-color: rgba(173, 158, 136, 0.3);
  padding: 1em;
}

.am-pm {
  font-variant: small-caps;
}

.panel p.verse {
  color: #141455;
  font-style: italic;
  font-size: 1.25rem;
}

.panel p.invite-msg {
  color: #141455;
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.panel p.reference {
  margin-bottom: 0;
}

.nowrap {
  white-space: nowrap;
}

/* LOGO */
.logo {
  background: url(../images/seamless_paper_texture.png);
}

/* SCREENSHOTS IMAGES */
.screenshots {
  border: 1px solid #333;
}

/* IMAGES */
.img-right {
  float: right;
  padding-left: 0.5em;
}

.classic {
  border: 1px solid #bdae99;
  padding: 5px;
}

/* HEADINGS */
h1,
h2,
h3,
h4,
h5,
h6,
.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6 {
  text-shadow: 1px 1px #ccc;
  font-family: 'Libre Baskerville', serif;
}

h1,
h2,
h3,
h5,
h6,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6 {
  color: #141455;
}

h4 {
  color: #694f2c;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* FONT AWESOME ICONS */
.icon .fa-calendar-days,
.icon .fa-clock {
  color: #a38760;
  margin-right: 0.25em;
}

.forms h4 {
  font-size: 1rem;
}

.panel .grad-title {
  color: #a38760;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6 {
  line-height: 1.2;
}

p.lead.text-center {
  color: #555;
}

.lead strong {
  color: #947141;
}

.side-headings {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin: 10px 0 0 0;
  border-bottom: 1px solid #8b7c67;
}

.side-headings.x {
  border-bottom: none;
}

.side-headings>a {
  color: #141455;
}

.forms {
  background: url(../images/seamless_paper_texture.png);
  padding: 0.75em 0.5em;
  border: 1px solid #988469;
  margin: 1em 0;
}

.form-headings {
  font-size: 1rem;
  font-weight: bold;
  color: #988469;
  border-bottom: 1px solid #988469;
}

.block {
  color: #988469;
  border-bottom: 1px solid #bdae99;
  font-weight: bold;
  margin-top: 1.5em;
}

.page-title-bg {
  background: url(../images/tweed-title.png);
}

.page-title-bg.home {
  background: url(../images/tweed-title.png);
  margin-bottom: 1em;
}

.page-heading {
  color: #fff;
  padding: 20px 0;
  margin: 0;
  font-weight: bold;
  text-shadow: 2px 2px #bdae99;
}

/* VIDEO */
.flex-video video {
  outline: none;
}

.panel>.flex-video {
  margin-bottom: 1.5rem;
}

/* VIDEO BITMOVIN PLAYER */
.margin-bottom-1 {
  margin-bottom: 1rem;
}

.margin-bottom-2 {
  margin-bottom: 2rem;
}

.bmpui-ui-watermark {
  display: none;
}

.placeholder {
  position: relative;
}

.placeholder,
.mtg-active {
  width: 100%;
  height: 23.125em;
}

.msg-not-active {
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translatey(-50%);
  transform: translatey(-50%);
  font-size: 2em;
  color: #141455;
  text-align: center;
  font-style: italic;
  padding: 0 1rem;
}

.placeholder {
  background: url(../images/VideoPlaceholder.jpg) no-repeat center center;
}

.player-wrapper {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.note {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 0;
}

h4 a {
  text-shadow: none;
}

/* EMERGENCY BUTTON */
.emergency-btn {
  margin-top: 1em;
}

/* PAY PAL DONATION BUTTON */
.donation {
  margin: .5em 0 3.5em 0;
}

.donate-header {
  background: #ffc439;
  color: #000;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
  border-radius: 30px;
  border: 1px solid #e5b033;
}

a.button.donate-header:hover {
  background: #e5b033;
  color: #000;
}

/* TABLES */
.container {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table caption {
  background: #222;
  color: #fff;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

table thead,
table.unstriped thead,
table.hover thead {
  background: var(--ftta-navy-light, #27276d);
  color: #fff;
}

table thead th {
  color: #e8f2f8;
}

/* Disable weird shadow/background change when hovering over table headers */
table.hover thead tr:hover {
  background-color: var(--ftta-navy-light, #27276d) !important;
}

table tr:nth-of-type(even) {
  background: #e8f2f8;
}

table.unstriped tbody tr.stripe {
  background: #e8f2f8;
}

.table-container {
  width: 100%;
  overflow-y: auto;
  _overflow: auto;
  margin: 0 0 1em;
}

.table-container::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
}

.table-container::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 3px solid #fff;
  background-color: rgba(0, 0, 0, .3);
}

td[headers="time"] {
  width: 12em;
  min-width: 12em;
  white-space: nowrap;
}

td[headers="activity"] {
  width: 24em;
  min-width: 20em;
}

/* BLOCKQUOTES */
blockquote {
  position: relative;
  margin: 0;
  border-left: none;
  padding: 0.5em 2em;
  font-size: 1.5em;
  color: #988469;
  text-shadow: 1px 1px #bdae99;
  z-index: 3;
}

.smaller {
  font-size: 1.25em;
}

blockquote cite {
  margin-left: 2em;
  color: #bdae99;
  text-shadow: none;
  font-size: 0.75em;
}

/* STYLISH PARAGRAPHS */
.stylish {
  line-height: 2em;
  font-size: 1.25em;
  color: #988469;
  text-shadow: 1px 1px #bdae99;
  text-align: center;
}

.stylish span {
  color: #141455;
  text-shadow: 1px 1px #ccc;
}

/* BREADCRUMBS */
.breadcrumbs-bg {
  background: url(../images/tweed-breadcrumbs.png);
  border-top: 1px solid #a59681;
  border-bottom: 1px solid #a59681;
  margin-bottom: 1em;
}

.breadcrumbs>* {
  font-size: 0.75rem;
  text-transform: none;
}

.breadcrumbs {
  background: url(../images/tweed-breadcrumbs.png);
  border: none;
  border-radius: 0;
  padding-left: 0;
  padding: 0;
}

.breadcrumbs>* a {
  display: inline-block;
  padding: 0.65em 0;
  margin: 0;
}

.breadcrumbs>*:before {
  color: #a59681;
}

/* NAVIGATION BAR */
@media only screen and (min-width: 65.313em) {
  .top-bar-section li:not(.has-form) a:not(.button) {
    background: -webkit-linear-gradient(#27276d 50%, #141455 50%);
    /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#27276d 50%, #141455 50%);
    /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#27276d 50%, #141455 50%);
    /* For Firefox 3.6 to 15 */
    background: linear-gradient(#27276d 50%, #141455 50%);
    /* Standard syntax (must be last) */
  }

  .top-bar-section li:not(.has-form) a:not(.button):hover {
    background: -webkit-linear-gradient(#3d3d7c 50%, #2c2c66 50%);
    /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(#3d3d7c 50%, #2c2c66 50%);
    /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(#3d3d7c 50%, #2c2c66 50%);
    /* For Firefox 3.6 to 15 */
    background: linear-gradient(#3d3d7c 50%, #2c2c66 50%);
    /* Standard syntax (must be last) */
  }

  .menu {
    text-align: center;
  }

  ul.center-buttons {
    display: inline-block;
  }

  .top-bar .center-buttons .has-dropdown .dropdown {
    text-align: left;
  }
}

.menu,
.tab-bar {
  background: -webkit-linear-gradient(#27276d 50%, #141455 50%);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#27276d 50%, #141455 50%);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#27276d 50%, #141455 50%);
  /* For Firefox 3.6 to 15 */
  background: linear-gradient(#27276d 50%, #141455 50%);
  /* Standard syntax (must be last) */
}

.menu,
li:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.top-bar-section ul li>a {
  font: bold 0.9375rem 'Libre Baskerville', serif;
}

.expanded .top-bar-section ul li>a {
  text-transform: none;
  font-weight: normal;
}

.top-bar-section .dropdown li.title h5,
.top-bar-section .dropdown li.parent-link {
  text-transform: uppercase;
  font-size: 0.9375rem;
  text-shadow: none;
}

.top-bar-section .dropdown li.title h5 a,
.top-bar-section .dropdown li.parent-link a {
  color: #ccc;
}

.menu li {
  font-size: 17px;
  color: #ffffff;
  padding: 0.5rem;
  opacity: 0%;
}

.footer-bar .menu li {
  font-size: 17px;
  color: #ffffff;
  padding: 0.5rem;
}

@media only screen and (min-width: 65.313em) {
  .top-bar-section .dropdown {
    border: 1px solid #ccc;
  }

  .top-bar-section .dropdown li:not(.has-form):not(.active)>a:not(.button) {
    background: #ddd;
    color: #141455;
    text-transform: none;
  }

  .top-bar-section .dropdown li:not(.has-form):not(.active)>a:not(.button):hover {
    background: #999;
    color: #fff;
  }
}

.top-bar.expanded .title-area,
.left-off-canvas-menu {
  background: #3d3d7c;
}

ul.off-canvas-list li a:hover {
  background: #141455;
}

.top-bar.expanded .toggle-topbar a {
  color: #dcdcf9;
}

.top-bar.expanded .toggle-topbar a span::after {
  box-shadow: 0 0 0 1px #dcdcf9, 0 7px 0 1px #dcdcf9, 0 14px 0 1px #dcdcf9;
}

.top-bar-section ul li {
  background: #2c2c66;
}

.top-bar-section ul li:hover:not(.has-form)>a {
  background-color: #141455;
  color: #FFFFFF;
  background: #141455;
}

/* TABS */
.tabs .tab-title {
  margin-right: 1px;
}

.tabs .tab-title.active a {
  background-color: #cabca9;
  color: #fff;
}

.tabs-content .content {
  border: 1px solid #a18b6d;
  padding: 1em;
}

.tabs .tab-title>a {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-top: 1px solid #a18b6d;
  border-left: 1px solid #a18b6d;
  border-right: 1px solid #a18b6d;
  padding: .75rem;
  color: #008CBA;
  font-weight: bold;
}

.print-link {
  float: right;
}

.print-link .button {
  margin: 0.25em 0 0 0.75em !important;
  padding: 0.75em;
  font-weight: bold;
}

/* SECTION TITLE */
@media only screen and (min-width: 39em) {
  .section-title {
    background: url(../images/quote-background.jpg) no-repeat top center;
  }
}

/* SIDE-NAV */

.side-nav {
  padding: 0;
  font-family: 'Libre Baskerville', serif;
}

.side-nav li {
  margin: 0;
}

.side-nav li a:not(.button):hover,
.side-nav li a:not(.button):focus {
  background: #eeebe7;
}

/* ACCORDION */
.accordion .accordion-navigation {
  margin-bottom: 1px !important;
}

.accordion .accordion-navigation>a {
  font-family: 'Libre Baskerville', serif;
  color: #141455;
}

.accordion-navigation>a:after {
  content: "\f055";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: block;
  float: right;
}

.accordion-navigation.active>a:after {
  content: "\f056";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

#secondary-nav .accordion .accordion-navigation>a {
  color: #141455;
  background-color: #f2efeb;
  ;
  border: 1px solid #bdae99;
  padding: 0.5rem;
}

#secondary-nav .accordion .accordion-navigation>.content {
  padding: 0.25rem;
}

/* DATES/EVENTS */
.vevent {
  margin: 2px 0;
  padding: 0.75em;
  background-color: #eee;
  border: 1px solid #ccc;
}

.vevent.fttaxb {
  background-color: rgba(225, 227, 228, 0.5);
  border: 1px solid #ccc;
}

.vevent.ftta {
  background-color: rgba(209, 242, 251, 0.5);
  border: 1px solid #8ec6d4;
}

.vevent .summary {
  color: #141455;
}

.vevent time {
  font-weight: normal;
}

.indent {
  margin-left: 1.5em;
}

.deadline {
  margin-left: 1.75em;
}

.clear {
  clear: both;
}

.legend {
  text-align: left;
}

.conf-block {
  display: inline-block;
  background-color: #eee;
  border: 1px solid #ccc;
  padding: 0.75em;
  margin-bottom: -5px;
}

.fttaxb-block {
  display: inline-block;
  background-color: rgba(225, 227, 228, 0.5);
  border: 1px solid #ccc;
  padding: 0.75em;
  margin-bottom: -5px;
}

.ftta-block {
  display: inline-block;
  background-color: rgba(209, 242, 251, 0.5);
  border: 1px solid #8ec6d4;
  padding: 0.75em;
  margin-bottom: -5px;
}

/* LISTS */
ul.disc {
  margin-left: 2em;
}

ol {
  margin-left: 2.25em;
}

.hymn li {
  margin-bottom: 0.5em;
}

.lower-alpha {
  list-style-type: lower-alpha;
}

ul.contact-list {
  list-style-type: none;
}

ul.contact-list li {
  text-indent: -1.4em;
  font-size: 1.25em;
  color: #141455;
  font-weight: bold;
  text-shadow: 1px 1px #ccc;
  margin-top: 0.5em;
}

ul.contact-list li span {
  color: #555;
  text-shadow: none;
  font-weight: normal;
}

ul.contact-list li:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  float: left;
  width: 1.4em;
}

ul.contact-list li.phone:before {
  content: "\f095";
}

ul.contact-list li.fax:before {
  content: "\f1ac";
}

ul.contact-list li.email:before {
  content: "\f0e0";
}

ul.contact-list li.address:before {
  content: "\f041";
}

.list-item-vspace li {
  margin-bottom: 1rem;
}

/* ICON BAR */
.icon-bar-bg {
  background: url(../images/tweed-icon-bar.png);
  border-top: 1px solid #0f0f40;
  margin-top: 1em;
}

.icon-bar {
  background: none;
}

.icon-bar>* i,
.icon-bar>* label {
  color: #ccc;
}

.icon-bar>* label {
  padding-top: 4px;
  font-weight: bold;
}

/* ICONS */
.fa-file-pdf {
  color: #C00;
}

.button .fa-file-pdf {
  border-radius: 1px;
  border-top-right-radius: 6px;
  border: 1px solid #fff;
  background: #fff;
  margin-left: 5px;
}

@media only screen and (max-width:40.063em) {
  div.icon-bar.label-right>* {
    text-align: left;
  }

  div.icon-bar {
    height: 100%;
    width: 100%;
  }

  div.icon-bar .item {
    width: auto !important;
    margin: auto;
    float: none;
  }
}

/* PANELS */
.panel {
  background: #f2efeb;
  border-color: #bdae99;
}

.panel.ftta-ol p {
  font-size: 14px;
}

.highlight-panel {
  padding: 1.25rem;
  border: 2px solid #162345;
  background-color: #bdae99;
  text-align: center;
}

.highlight-panel h3 {
  color: #fff;
}

.highlight-panel .navy {
  color: #162345;
}

.highlight-panel .burg {
  color: #a80d06;
}

.panel.report {
  border-radius: 4px;
  background: rgba(242, 239, 235, 0.5);
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
}

/* LOGIN BOX */
.login-box {
  background: #f2efeb;
  border: 1px solid #bdae99;
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
}

.login-box input[type="email"],
.login-box input[type="password"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media only screen and (max-width: 80em) {
  .login-box {
    max-width: 24rem;
    margin: 0 auto;
  }
}

/* WELCOME SECTION */
.welcome-section {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* NEW APPLICATION SECTION */
.new-application-section {
  background: #f2efeb;
  border: 1px solid #bdae99;
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
  text-align: center;
}

.new-application-section h3 {
  color: #141455;
  text-shadow: 1px 1px #ccc;
  font-family: 'Libre Baskerville', serif;
  margin-top: 0;
  margin-bottom: 1rem;
}

.new-application-section .application_start {
  display: inline-block;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.new-application-section .application_start:last-child {
  margin-right: 0;
}

/* FOOTER */
.footer {
  background: url(../images/tweed-footer.png);
  padding: 15px 10px;
  margin: 0;
}

.footer full-width {
  background: url(../images/tweed-footer.png);
}

.footer p {
  color: #8282a4;
  font-size: 0.75rem;
  text-align: left;
  margin: 0;
}

/* SITE MAP */
#site-map,
#site-map ul {
  margin: 0 0 0 1em;
  /* indentation */
  padding: 0;
  list-style: none;
  position: relative;
}

#site-map ul {
  margin-left: .5em
}

/* (indentation/2) */

#site-map ul.level2:before,
#site-map ul.level3:before {
  content: "";
  display: block;
  width: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 1px solid #999;
}

#site-map li {
  margin: 0;
  padding: 0 1.5em;
  /* indentation + .5em */
  line-height: 2em;
  /* default list item's `line-height` */
  font-weight: bold;
  position: relative;
}

#site-map>li {
  margin-left: 0;
  padding: 0;
}

#site-map>li>a {
  border: 1px solid #999;
  border-radius: 8px;
  padding: 5px;
  display: block;
  margin-top: 2px;
}

#site-map .level2 li {
  font-weight: bold;
  text-decoration: none;
}

#site-map .level3 li {
  font-weight: normal;
  text-decoration: none;
}

#site-map .level2 li:before,
#site-map .level3 li:before {
  content: "";
  display: block;
  width: 10px;
  /* same with indentation */
  height: 0;
  border-top: 1px solid #999;
  margin-top: -1px;
  /* border top width */
  position: absolute;
  top: 1em;
  /* (line-height/2) */
  left: 0;
}

#site-map li:last-child:before {
  background: white;
  /* same with body background */
  height: auto;
  top: 1em;
  /* (line-height/2) */
  bottom: 0;
}

nav.topbar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

nav.topbar ul {
  display: inline-block;
  list-style-type: none;
}

nav.topbar li {
  display: inline;
}

nav.simple {
  display: flex;
  justify-content: right;
}

/* Sticky Footer */
html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 4rem;
}

.table-cell-like {
  border: 1px solid #ddd;
  padding: 0.75rem;
  background: #e8f2f8;
}

.table-top-like {
  border: 1px solid #ddd;
  padding: 0.75rem;
}

.button {
  margin: 0;
}

.upload-cell {
  display: flex;
  align-items: center;
  /* Centers vertically */
}

.delete-btn {
  background-color: #e57373;
  /* Light red */
  color: #fff;
}

.delete-btn:hover,
.delete-btn:focus {
  background-color: #ef5350;
  /* Slightly darker red */
  color: #fff;
}

.action-btn {
  min-width: 120px;
  text-align: center;
  display: inline-block;
  /* Ensure width applies */
}

/* === ALERTS & MESSAGES === */

.ftta-alert {
  margin-bottom: var(--ftta-space-lg);
  font-family: var(--ftta-font-primary);
  display: flex;
  align-items: flex-start;
  gap: var(--ftta-space-sm);
}

.ftta-alert--info {
  background: var(--ftta-white);
  border: 1px solid var(--ftta-success-blue);
  color: var(--ftta-success-blue);
  padding: .5rem;
  border-radius: 7px;
}

.ftta-alert--success {
  background: var(--ftta-white);
  border: 1px solid var(--ftta-success-green);
  color: var(--ftta-success-green);
  padding: .5rem;
  border-radius: 7px;
}

.ftta-alert--warning {
  background: rgba(255, 196, 57, 0.1);
  border: 1px solid var(--ftta-warning-gold);
  color: #856404;
  padding: .5rem;
  border-radius: 7px;
}

.ftta-alert--danger {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--ftta-error-red);
  color: #721c24;
  padding: .5rem;
  border-radius: 7px;
}

.ftta-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

#reaction-info {
  display: none;
}

#medication-info {
  display: none;
}

#not-done-yet,
#validating-content {
  display: none;
}

@media screen and (max-width: 1025px) {
  table.stack tbody tr td {
    display: block;
    min-height: 2.75em;
  }

  /* Ensure empty cells have height even if they contain whitespace */
  table.stack tbody tr td:empty::after,
  table.stack tbody tr td:blank::after {
    content: "\00a0";
    display: inline-block;
    width: 0;
  }
}

/* Responsive Layout overrides for Apply Application */
@media screen and (min-width: 640px) {
  .sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

/* Print Styles for Apply Form */
@media print {
  body {
    background: #fff !important;
    font-size: 11pt !important;
  }

  /* Hide navigation, footers, buttons, sidebars & introductory text */
  footer,
  .top-bar,
  nav.topbar,
  .menu,
  .sidebar,
  .button,
  .breadcrumbs,
  .ftta-alert,
  .navlinks,
  .mobile-sticky-nav,
  #navLinks,
  .print-link,
  #start {
    display: none !important;
  }

  /* Fix grid dimensions and constraint width to 85% */
  .grid-x>.cell.large-2.medium-4 {
    display: none !important;
  }

  .grid-x>.cell.large-6.medium-8,
  .grid-x>.cell.large-8.medium-12 {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    width: 85% !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  /* Clean up tables */
  table {
    page-break-inside: avoid;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th,
  td {
    padding: 6px !important;
    font-size: 11pt !important;
    border: 1px solid #aaa !important;
  }

  /* Input fields */
  input,
  select,
  textarea {
    border: none !important;
    border-bottom: 1px dotted #666 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 4px !important;
    font-size: 11pt !important;
    height: auto !important;
  }

  .form-section {
    page-break-inside: avoid;
    margin-bottom: 2rem !important;
    padding-top: 1rem !important;
  }

  h2 {
    font-size: 16pt !important;
  }

  h2,
  h3,
  h4 {
    page-break-after: avoid;
    text-shadow: none !important;
  }

  @page {
    margin: 0.5in;
  }
}

/* Automatically append a red asterisk to any heading cell that sits next to a required input */
td.heading:has(+ td input[required])::after,
td.heading:has(+ td select[required])::after,
td.heading:has(+ td textarea[required])::after {
  content: " *";
  color: #f04124;
  font-weight: bold;
}

/* --- NEW MOBILE UX STICKY HEADER --- */
@media screen and (max-width: 800px) {

  /* Hide the original desktop Sidebar entirely */
  .desktop-sidebar {
    display: none !important;
  }

  /* Hide the global top Home | Logout Nav */
  .desktop-only-nav {
    display: none !important;
  }

  /* Hide the Title Banner text string to save space in the brown header */

  .page-title-bg.home {
    padding: 5px 0 !important;
    margin-bottom: 0;
  }


  /* Mobile Sticky Nav Configuration */
  .mobile-sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #f8f9fa;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    display: block !important;
  }

  .mobile-nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-nav-top button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-right: 0.5rem;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .mobile-nav-title {
    flex-grow: 1;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #694f2c;
    text-shadow: 1px 1px #ccc;
    font-family: 'Libre Baskerville', serif;
  }

  .mobile-nav-links {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .mobile-nav-links a {
    color: #0056b3;
  }

  .mobile-save-status {
    text-align: left;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0;
    margin-left: 3rem;
    /* Align vaguely with the title start */
  }

  .mobile-nav-content {
    margin-top: 1rem;
    border-top: 1px solid #ddd;
    padding-top: 0.5rem;
  }

  .mobile-nav-content .applinks ul {
    list-style: disc;
    padding-left: 0;
    margin-left: 2rem;
    margin-bottom: 1rem;
  }

  .mobile-nav-content .applinks li {
    margin-bottom: 0.25rem;
  }

  .mobile-nav-content .applinks a {
    color: #336;
    text-decoration: none;
  }

  /* Override the main grid layout so the form expands to fill the missing sidebar space */
  .grid-x>.cell.large-6.medium-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Dynamic Desktop Sidebar Spacing Fix */
@media screen and (min-width: 801px) and (max-width: 1100px) {
  #navLinks li {
    margin-bottom: 0.15rem;
    line-height: 1.2;
    font-size: 0.9em;
  }
}

@media screen and (min-width: 801px) {

  /* Hide the mobile nav entirely on desktop */
  .mobile-sticky-nav {
    display: none !important;
  }
}