/*
 * What a retreatant sees wears the website's clothes. Someone who clicks Register on
 * jesuitretreat.org should not feel they have left it, so these pages take the website's
 * look (bjrh2's stylesheets: variables.scss, styles.scss, footer.scss and Bootstrap's
 * form and button defaults) and not the office's.
 *
 * Linked by the public layout only, and every rule sits under body.public-site, so the
 * office is untouched. The pages keep the app's own markup (card, row, btn, input,
 * notice); this restyles those names. Plain CSS, no Tailwind layers: nothing here may be
 * dropped by the build, and nothing needs a browser newer than the house's floor.
 *
 * The website's values, so a change there can be found here:
 *   red #911d21, hover red #d93f44, page-title green #787e46, header band #aaa694,
 *   top bar purple #45204d, olive #babf95, cream #faf7f0 with a #e7dfcd edge
 *   (the page's own cream, #fcf7ee, is this app's),
 *   headings in Philosopher, everything else in Lato.
 */

/* The website's heading face, served from here (Open Font License, from Google Fonts,
   Latin set), because this app does not load fonts from anyone else at runtime. */
@font-face { font-family: "Philosopher"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/philosopher-400-0d17aa50.woff2") format("woff2"); }
@font-face { font-family: "Philosopher"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/philosopher-400-italic-bbd09e05.woff2") format("woff2"); }
@font-face { font-family: "Philosopher"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/philosopher-700-1b94ab8d.woff2") format("woff2"); }
@font-face { font-family: "Philosopher"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/philosopher-700-italic-d2044335.woff2") format("woff2"); }

/* Under the header the page is the house's cream, so the questions stand out as white
   panels on it (Nathaniel, 2026-11-24: the form's white background is to stay). */
html.public-site-root { background: #fcf7ee; }

body.public-site {
  background: #fcf7ee;
  color: #212529;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* --- The top bar: the website's purple one, holding the way out where it holds search. --- */
.public-site .site-bar { background: #45204d; color: #ffffff; }
.public-site .site-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1140px; margin: 0 auto; padding: 0 16px; min-height: 52px;
}
.public-site .site-bar a { color: #ffffff; font-size: 15px; padding: 12px 0; }
.public-site .site-bar a.site-bar-name { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.public-site .site-bar a:hover { color: #e7dfcd; }
.public-site .site-bar a.site-bar-out { border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 6px 16px; }
.public-site .site-bar a.site-bar-out:hover { background: #ffffff; color: #45204d; }

/* --- The header, as the website has it: paper, the menu either side of the signature,
   the olive-gray band, and the signature's disc hanging over the band onto the page.
   The measures are the website's (styles.scss: 180px of paper, a 15px band, a 280px
   signature). The website runs a photograph under the band; these pages do not
   (Nathaniel, 2026-11-24), so the page leaves room for the disc instead.

   The paper is see-through and has to lie on white, as it does on the website: the
   signature's disc is the same paper on white, and on any other colour the disc shows
   as a paler circle against it. --- */
.public-site .site-header {
  position: relative; z-index: 1;
  height: 180px;
  background-color: #ffffff;
  background-image: url("https://res.cloudinary.com/crossedi-innovations-llc/image/upload/v1480638341/jesuit-header-texture-cropped_hwsedg.png");
  border-bottom: 15px solid #aaa694;
}
.public-site .site-nav {
  display: flex; align-items: flex-end; justify-content: center;
  height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px;
}
.public-site .site-nav-side {
  display: flex; flex: 1 1 0; margin: 0; padding: 0 0 4px; list-style: none;
  font-family: "Poppins", sans-serif; font-size: 19px; line-height: 1.5; text-transform: uppercase; white-space: nowrap;
}
.public-site .site-nav-left { justify-content: flex-end; }
.public-site .site-nav-side li { margin: 0 8px; }
.public-site .site-nav a, .public-site .site-menu a { color: #86171a; }
.public-site .site-nav a:hover, .public-site .site-menu a:hover { color: #da252b; }
.public-site .site-logo { flex: none; align-self: flex-start; width: 280px; margin: 3px 10px 0; position: relative; z-index: 2; }
.public-site .site-logo img { display: block; width: 100%; height: auto; }
.public-site .site-menu { display: none; }

/* Between a tablet and a full screen the six still fit, a little smaller. */
@media (max-width: 1199px) {
  .public-site .site-nav-side { font-size: 15px; }
  .public-site .site-nav-side li { margin: 0 6px; }
  .public-site .site-logo { width: 240px; }
}

/* Narrow: the signature alone on the paper, and the menu folded under it. */
@media (max-width: 991px) {
  .public-site .site-header { height: auto; text-align: center; }
  .public-site .site-nav { display: block; height: auto; }
  .public-site .site-nav-side { display: none; }
  .public-site .site-logo { display: inline-block; width: 200px; margin: 3px 0 -64px; }
  .public-site .site-menu { display: block; position: absolute; left: 12px; top: 10px; text-align: left; z-index: 3; }
  .public-site .site-menu summary {
    display: inline-block; cursor: pointer; list-style: none; font-family: "Poppins", sans-serif; text-transform: uppercase; font-size: 14px;
    color: #86171a; border: 1px solid #aaa694; border-radius: 6px; background: rgba(255, 255, 255, 0.85); padding: 8px 12px;
  }
  .public-site .site-menu summary::-webkit-details-marker { display: none; }
  .public-site .site-menu ul {
    margin: 6px 0 0; padding: 6px 0; list-style: none; background: #ffffff; border: 1px solid #e7dfcd; border-radius: 6px;
    box-shadow: 0 6px 18px rgba(33, 37, 41, 0.18); min-width: 220px;
  }
  .public-site .site-menu li a { display: block; padding: 10px 14px; font-family: "Poppins", sans-serif; text-transform: uppercase; font-size: 15px; }
}

/* The top of the page clears the half of the disc that hangs below the band. */
.public-site .site-main { max-width: 1140px; margin: 0 auto; padding: 112px 16px 24px; }
/* The column a public page's form and cards sit in. One width, set here (Nathaniel,
   2026-11-26: "widen the form; it feels unnecessarily narrow"; it was 640px). */
.public-site .public-col { max-width: 880px; }
@media (max-width: 1199px) { .public-site .site-main { padding-top: 80px; } }
@media (max-width: 991px) { .public-site .site-main { padding-top: 68px; } }

/* --- The footer: the website's, in red, centred. --- */
.public-site .site-footer { color: #911d21; text-align: center; font-size: 16px; margin: 20px 0; padding: 20px 16px 28px; }
.public-site .site-footer p { margin: 0 0 6px; }

/* --- Type: Philosopher for headings, the page title in green and the rest in red. --- */
.public-site h1, .public-site h2, .public-site h3, .public-site .card-title {
  font-family: "Philosopher", "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}
.public-site h1 { color: #787e46; line-height: 1.2; }
.public-site h2, .public-site h3, .public-site .card-title { color: #911d21; }
.public-site .card-title { font-size: 22px; line-height: 1.25; }

.public-site a { color: #911d21; text-decoration: none; }
.public-site a:hover { color: #d93f44; }
.public-site ::selection { background: #e7dfcd; }

/* --- Sections: white panels on the cream, edged and lifted a little, as the website's
   own newer forms have them (facility_request_forms.scss). --- */
.public-site .card { background: #ffffff; border: 1px solid #e7dfcd; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.public-site .card-foot { border-top: 1px solid #e7dfcd; }
.public-site .row { border-top: 1px solid #efe9da; }
/* A row that is a choice to follow ("Myself", "Someone else"): under the pointer, or
   reached by the keyboard, it turns the site's red with white words, the way its
   buttons are, so there is no doubt which one is about to be chosen (Nathaniel,
   2026-11-26: "hover needs a different color. red maybe?"; it was cream on white). */
.public-site a.row:focus-visible { background: #911d21; outline: none; }
.public-site a.row:focus-visible * { color: #ffffff; }
@media (hover: hover) {
  .public-site a.row:hover { background: #911d21; outline: none; }
  .public-site a.row:hover * { color: #ffffff; }
}
.public-site .row-title { font-size: 16px; color: #212529; }
.public-site .row-meta { font-size: 15px; color: #4a443d; }

/* The lines that explain. To the office these are fine print; to someone registering
   they are what tells them what will happen, so here they are darker and larger than
   the office's (Nathaniel, 2026-11-26: "all those descriptive lines need to stand out
   more (more color contrast and bigger font)"). The pages mark such a line with the
   app's small muted text, which is restyled here by its own name. */
.public-site .text-ink-muted { color: #4a443d; }
.public-site .text-\[12px\],
.public-site .text-\[12\.5px\],
.public-site .text-\[13px\],
.public-site .text-\[13\.5px\],
.public-site .text-\[14px\] { font-size: 15px; line-height: 1.5; }
/* Said beside a box when what was entered cannot be taken: the site's red, and plain to see. */
.public-site .too-young { color: #911d21; font-size: 15px; line-height: 1.5; font-weight: 700; }
.public-site .card-note { font-size: 16px; line-height: 1.5; color: #212529; gap: 6px; }

/* What the house already has on file, the way the website's questionnaire shows it. */
.public-site .on-file {
  background: #faf7f0; border: 1px solid #e7dfcd; border-left: 4px solid #911d21;
  border-radius: 10px; color: #5a534c; padding: 12px 16px; font-size: 15px;
}

/* Who it is for, and what is settled and not a box to change: shaded, so it is not taken for one. */
.public-site .registering-as { background: #f3ead2; border: 1px solid #e3d3a5; border-radius: 10px; padding: 14px 18px; font-size: 15px; line-height: 1.5; color: #363020; }
.public-site .registering-as-who { font-size: 18px; margin-bottom: 4px; }
.public-site .settled { background: #f3ead2; border: 1px solid #e3d3a5; border-radius: 6px; padding: 8px 12px; min-height: 44px; font-size: 16px; }
.public-site .input.settled { background: #f3ead2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23363020'%3E%3Cpath d='M8 1a3.5 3.5 0 0 0-3.5 3.5V7H3v8h10V7h-1.5V4.500A3.500 3.500 0 0 0 8 1zm-2 3.500a2 2 0 1 1 4 0V7H6z'/%3E%3C/svg%3E") no-repeat right 12px center; border-color: #e3d3a5; padding-right: 36px; }
.public-site .input.settled:focus { box-shadow: none; border-color: #e3d3a5; }

.public-site .others-here { font-size: 17px; line-height: 1.5; margin-top: 8px; }
.public-site .public-col > .others-here { background: #f3ead2; border: 1px solid #e3d3a5; border-radius: 10px; padding: 16px 18px; }
.public-site .registering-as, .public-site .registering-as p { font-size: 17px; }
.public-site .registering-as .registering-as-who { font-size: 20px; }
.public-site [hidden] { display: none !important; }

/* --- Forms: Bootstrap's, as the website's own forms are. --- */
.public-site .label { font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: 0; color: #212529; }
.public-site .input {
  height: auto; min-height: 44px; padding: 8px 12px; font-size: 16px; color: #212529;
  background: #ffffff; border: 1px solid #ced4da; border-radius: 6px;
}
.public-site .input:focus { border-color: #911d21; outline: none; box-shadow: 0 0 0 4px rgba(145, 29, 33, 0.15); }
.public-site .input::placeholder { color: #8a8f94; }
/* A drop-down shows that it opens (Nathaniel, 2026-12-02): the box's white above would otherwise paint over the arrow. */
.public-site select.input, .public-site select.select {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23495057' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.public-site textarea.input { min-height: 110px; }
.public-site input[type="radio"], .public-site input[type="checkbox"] { accent-color: #911d21; }

/* --- Buttons: red and filled to go on, outlined to do something else, gray to go back. --- */
.public-site .btn {
  height: auto; min-height: 44px; padding: 9px 20px; font-size: 16px; font-weight: 400; line-height: 1.2;
  border-radius: 6px; border: 1px solid transparent; box-shadow: none;
}
.public-site .btn-sm { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.public-site .btn-primary, .public-site a.btn-primary { background: #911d21; border-color: #7c181c; color: #ffffff; }
/* Only where there is a pointer: on a phone it stays on whatever is under the last tap, a button of the next step. */
@media (hover: hover) { .public-site .btn-primary:hover, .public-site a.btn-primary:hover { background: #d93f44; border-color: #d93f44; color: #ffffff; } }
.public-site .btn-secondary, .public-site a.btn-secondary { background: #ffffff; border-color: #911d21; color: #911d21; }
@media (hover: hover) { .public-site .btn-secondary:hover, .public-site a.btn-secondary:hover { background: #911d21; color: #ffffff; } }
.public-site .btn-quiet, .public-site a.btn-quiet { background: #ffffff; border-color: #a5a69d; color: #5a534c; }
@media (hover: hover) { .public-site .btn-quiet:hover, .public-site a.btn-quiet:hover { background: #a5a69d; border-color: #a5a69d; color: #ffffff; } }

/* --- Notices: Bootstrap's alerts. --- */
.public-site .notice { border: 1px solid #a3cfbb; background: #d1e7dd; color: #0a3622; border-radius: 6px; padding: 14px 16px; font-size: 16px; font-weight: 400; }
.public-site .notice-ok { border-color: #d6d9bc; background: #eaecdf; color: #3d4222; }
/* A question someone finishing still has to answer: marked out in the notices' warning colours. */
.public-site .still-needed { background: #fff3cd; border: 1px solid #ffe69c; border-radius: 6px; padding: 12px 14px; }
.public-site .still-needed-tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #664d03; margin-bottom: 6px; }
/* Still needed on a form that opens filled in: marked without taking any room, so nothing moves as it goes. */
.public-site .is-needed { position: relative; background: #fff3cd; box-shadow: 0 0 0 6px #fff3cd, 0 0 0 7px #e0b84a; border-radius: 2px; }
.public-site .is-needed::before { content: "Still needed"; position: absolute; top: -15px; right: 0; padding: 1px 8px; border-radius: 4px; background: #664d03; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; }
/* Filled in: the olive of what is done, lightly. White again while it is being changed. */
.public-site .input.is-filled:not(:focus) { background-color: #eef1e0; border-color: #babf95; }
.public-site .still-list { margin-top: 8px; font-weight: 700; color: #212529; }
.public-site .still-list ul { list-style: disc; padding-left: 22px; margin-top: 4px; }
.public-site .still-list li.is-done { text-decoration: line-through; font-weight: 400; color: #5a6b3a; }
.public-site .registering-as-email { overflow-wrap: anywhere; }
/* Safari on a phone gives a date a width of its own, out past the edge of its box. */
.public-site input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; }
.public-site input[type="date"].input::-webkit-date-and-time-value { text-align: left; min-height: 1.5em; }
@media (min-width: 640px) { .public-site input[type="date"].input { max-width: 220px; } }
.public-site .is-needed .input { border-color: #664d03; }
.public-site .notice-warn { border-color: #ffe69c; background: #fff3cd; color: #664d03; }
.public-site .notice-error { border-color: #f1aeb5; background: #f8d7da; color: #58151c; }

/* The choices on the pay page. */
.public-site .choice { border: 1px solid #ced4da; border-radius: 6px; }
@media (hover: hover) { .public-site .choice:hover { background: #faf7f0; } }
.public-site .choice-selected { border: 2px solid #911d21; }
.public-site .chip { border: 1px solid #ced4da; border-radius: 6px; font-weight: 400; font-size: 15px; }
.public-site .chip-selected { background: #911d21; border-color: #911d21; color: #ffffff; }

@media (max-width: 767px) {
  .public-site .card-title { font-size: 20px; }
}

/* The steps of registering, drawn one in place of another (steps_controller). */
.public-site turbo-frame#registering { display: flow-root; }

/* Kept on the page and out of sight until the last step of the form (form_steps_controller.js). */
.public-site .off-stage { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Back, then what goes on, then Cancel at the far right of the form (Nathaniel, 2026-12-02: "the whole world knows: Back, Next, Cancel"). */
.public-site .btn-cancel { margin-left: auto; }
