/* The one stylesheet of the member app: page frame, header, footer with its version line, section heading, list of closures, form field, date field, option group, button, quiet button, link, link of several lines, new-window icon and focus,
   of the practice page: its name, status sentence, days panel and list of later closures, and of the platform pages: bands, heading and legal text (DESIGN.md, Elements). */

@font-face {
  font-family: "Radio Canada";
  src: url("/static/fonts/RadioCanada-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Radio Canada";
  src: url("/static/fonts/RadioCanada-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f5f2ea;
  --text: #1e2a32;
  --link: #2f6b55;
  --border: #263238;
  --highlight: #d9a52e;
  --highlight-text: #1e2a32;
  --tint: #eedcae;
  --error: #9b2c1d;
  --focus: #1e2a32;
  --mark-standing: #263238;
  --mark-stepping: #2f6b55;
  --panel: #263238;
}

.page {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Radio Canada", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

@supports (min-height: 100dvh) {
  .page {
    min-height: 100dvh;
  }
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 8px;
  padding: 8px 16px;
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 32px;
}

.page-footer {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
}

.footer-version {
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 600px) {
  .page-header {
    padding: 16px 32px;
  }

  .page-main {
    padding: 48px 32px;
  }

  .page-footer {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 24px;
    padding: 8px 32px 16px;
  }
}

.lockup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.lockup-line {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.3em;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
}

.lockup-icon {
  display: block;
  flex: none;
  width: 1.125em;
  height: 0.75em;
  margin-top: 0.0955em;
}

.mark-standing {
  fill: var(--mark-standing);
}

.mark-stepping {
  fill: var(--mark-stepping);
}

.header-form {
  display: flex;
  margin: 0;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 432px;
}

.heading {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.heading-section {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
}

.text {
  margin: 0;
}

.text-address,
.heading-value,
.field-hint {
  overflow-wrap: break-word;
}

.text-url {
  overflow-wrap: anywhere;
}

.text-line {
  display: block;
}

.closures {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style-type: "";
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  display: block;
}

.field-error {
  margin: 0;
  color: var(--error);
}

.field-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--ground);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.field-date {
  display: revert;
  width: 200px;
  max-width: 100%;
}

.field-input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-fixed {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.options-label {
  display: block;
  padding: 0;
}

.options-error {
  margin: 4px 0 0;
  color: var(--error);
}

.options-list {
  display: flex;
  flex-direction: column;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  cursor: pointer;
}

.option-circle {
  display: block;
  box-sizing: border-box;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 4px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--ground);
  -webkit-appearance: none;
  appearance: none;
}

.options[aria-describedby] .option-circle {
  border-color: var(--error);
}

.option-circle:checked {
  background: var(--border);
  background-clip: content-box;
}

@media (forced-colors: active) {
  .option-circle:checked {
    background-color: CanvasText;
  }
}

.button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--highlight-text);
  border-radius: 4px;
  background: var(--highlight);
  color: var(--highlight-text);
  font: inherit;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.button-alone {
  align-self: flex-start;
  width: auto;
}

.button-quiet {
  display: block;
  box-sizing: border-box;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--ground);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  align-self: flex-start;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--highlight-text);
  border-radius: 4px;
  background: var(--highlight);
  color: var(--highlight-text);
  font: inherit;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--link);
  text-decoration: underline;
}

.link-lines {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  padding: 8px 0 9px;
  color: var(--link);
  text-decoration: none;
}

.link-lines-text {
  text-decoration: underline;
}

.icon-new-window {
  margin-left: 8px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.practice {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 576px;
  padding: 32px 16px;
}

.practice-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.practice-name {
  margin: 0;
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.practice-closure {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.statement {
  margin: 0;
  font-size: 36px;
  line-height: 48px;
  font-weight: 400;
}

.days {
  margin: 0;
}

.days-panel {
  align-self: flex-start;
  box-sizing: border-box;
  max-width: 100%;
  padding: 16px;
  background: var(--tint);
}

.days-date {
  display: block;
  font-weight: 600;
}

.days-rest {
  display: block;
}

.practice-later {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.later-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style-type: "";
}

@media (min-width: 600px) {
  .practice {
    padding: 48px;
  }

  .days-end {
    display: inline-block;
  }
}

/* On Slate text, links, the mark and the focus ring take their colours on Slate (DESIGN.md, Palette). */
.platform-band {
  --text: #e9e4d8;
  --link: #8ccbb0;
  --mark-standing: #e9e4d8;
  --mark-stepping: #8ccbb0;
  --focus: #e9e4d8;
  padding: 16px;
  background: var(--panel);
  color: var(--text);
}

.platform-band-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 8px;
  max-width: 576px;
  margin: 0 auto;
}

.platform-header-line {
  justify-content: space-between;
}

.platform-main {
  flex: 1;
  padding: 32px 16px 48px;
  overflow-wrap: break-word;
}

.platform-column {
  max-width: 576px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .platform-band {
    padding: 24px 48px;
  }

  .platform-main {
    padding: 48px;
  }
}

.platform-heading {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.platform-text {
  margin: 16px 0 0;
}

.legal-section {
  margin: 48px 0 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.legal-subsection {
  margin: 32px 0 0;
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
}

.legal-paragraph {
  margin: 16px 0 0;
}

.legal-list {
  margin: 16px 0 0;
  padding: 0 0 0 24px;
}

.legal-list > li + li {
  margin-top: 8px;
}

/* The block before decides the space above a block (DESIGN.md, Legal text). */
.platform-heading + :is(.legal-section, .legal-subsection, .legal-paragraph, .legal-list) {
  margin-top: 32px;
}

.legal-section + * {
  margin-top: 16px;
}

.legal-subsection + * {
  margin-top: 8px;
}

.legal-link {
  color: var(--link);
  text-decoration: underline;
}

.platform-main strong {
  font-weight: 600;
}

.lockup:focus-visible,
.legal-link:focus-visible,
.field-input:focus-visible,
.field-date:focus,
.option-circle:focus-visible,
.button:focus-visible,
.button-quiet:focus-visible,
.button-link:focus-visible,
.link:focus-visible,
.link-lines:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
