:root { --public-heading-size: clamp(20px, 2.8vw, 30px); --public-menu-size: 18px; }

@font-face {
  font-family: "Charter eTXT";
  src: url("/teenistused/fonts/charter/charter_regular-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Charter eTXT";
  src: url("/teenistused/fonts/charter/charter_italic-webfont.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Charter eTXT";
  src: url("/teenistused/fonts/charter/charter_bold-webfont.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Charter eTXT";
  src: url("/teenistused/fonts/charter/charter_bold_italic-webfont.woff") format("woff");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #f5f1ea;
  color: #2d241d;
  font-family: "Charter eTXT", Georgia, "Times New Roman", serif;
  line-height: 1.45;
}

.public-services {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.public-services__header {
  margin-bottom: 1.4em;
}

.public-services__eyebrow {
  margin: 0 0 8px;
  font-size: var(--public-heading-size);
  line-height: 1.05;
  color: #2d241d;
}

.public-services__eyebrow-link {
  color: inherit;
  text-decoration: none;
}

.public-services__header h1 {
  margin: 0;
  font-size: var(--public-heading-size);
  font-weight: 400;
  line-height: 1.05;
  color: #7b6859;
}

.public-services__header h1 + .public-filterbar {
  margin-top: 14px;
}

.public-services__meta {
  margin: 12px 0 0;
  font-size: 15px;
  color: #7b6859;
}

.public-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  font-size: var(--public-menu-size);
}

.public-services__filters {
  margin-bottom: 3em;
}

.public-prayers__list {
  display: grid;
  gap: 0.35em;
  margin-top: 2em;
  font-size: 18px;
}

.public-prayers__list p {
  margin: 0;
}

.public-prayers__link {
  color: #8a1f16;
  text-decoration: none;
}

.public-prayer {
  width: min(50vw, 50rem);
  max-width: 100%;
  margin: 2em 0 0;
  font-size: 18pt;
  line-height: 1.3;
}

.public-prayer h2 {
  margin: 1em 0 0.2em;
  font-size: 1.6em;
  font-weight: 400;
  color: #7b6859;
}

.public-prayer__paragraph {
  margin: 0 0 0.75em;
  text-align: justify;
}

.public-prayer__paragraph--tight {
  margin-bottom: 0;
}

.public-prayer__rubric {
  color: #8a1f16;
}

.public-prayer__speaker {
  color: #8a1f16;
}

.public-prayer__icon {
  display: block;
  max-width: none;
  height: 300px;
  width: auto;
  margin: 0 0 1.2em;
}

.public-prayer::after {
  content: "";
  display: block;
  height: 16em;
}

@media (max-width: 1180px) {
  .public-prayer {
    width: auto;
    max-width: none;
  }
}

.public-filterbar--scope {
  margin-bottom: 0;
}

.public-filterbar__link {
  color: #8a1f16;
  text-decoration: none;
}

.public-filterbar__link--active {
  color: #8a1f16;
}

.public-filterbar__button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.public-filterbar__selection {
  color: #2d241d;
}

.public-filterbar__sep {
  color: #7b6859;
}

.public-filterbar--subscribe {
  margin-top: 0.7em;
  margin-bottom: 0;
}

.public-church-picker {
  margin: 0;
  padding: 0.7em 0 0;
}

.public-church-picker__row + .public-church-picker__row {
  margin-top: 6px;
}

.public-church-picker__link {
  color: #2d241d;
  text-decoration: none;
  font-size: 18px;
}

.public-church-picker__link:hover {
  color: #8a1f16;
}

.public-month {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 52, 36, 0.18);
}

.public-services > .public-month:first-of-type,
.public-services__filters + .public-month {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.public-month h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 400;
}

.public-month__empty {
  margin: 0;
  color: #7b6859;
}

.public-day + .public-day {
  margin-top: 24px;
}

.public-day h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.public-day__list {
  display: grid;
  gap: 8px;
}

.public-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.public-entry__time {
  font-size: 17px;
  white-space: nowrap;
}

.public-entry__church {
  font-size: 18px;
}

.public-entry__service {
  font-size: 16px;
  color: #655446;
}

.public-entry__clergy {
  color: #000;
}

.public-services__footer {
  margin-top: 9em;
  padding-top: 1em;
  border-top: 1px solid rgba(74, 52, 36, 0.18);
  padding-bottom: 2em;
}

.public-services__footer .public-services__meta {
  margin: 0;
}

@media (max-width: 640px) {
  .public-services {
    width: auto;
    margin: 0;
    padding: 32px 50px 48px;
  }

  .public-prayer {
    width: auto;
    max-width: none;
  }

  .public-entry {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .public-entry__time {
    color: #7b6859;
  }
}

.public-month__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.public-month__heading h2 {
  margin: 0;
}

.public-month__links {
  margin-left: auto;
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 400;
  color: #7b6859;
}

.public-month__links a {
  color: #8a1f16;
  text-decoration: none;
}

.public-month__links a.public-month__link--active,
.public-month__links a:hover {
  text-decoration: underline;
}

/* Shared public-site text sizes; content-management pages retain their own typography. */
body.public-typography {
  --public-text-size: 18px;
  font-family: "Charter eTXT", Georgia, "Times New Roman", serif;
  font-size: var(--public-text-size);
}
.public-typography .public-filterbar,
.public-typography .public-month__links,
.public-typography .public-church-picker__link,
.public-typography .public-day h3,
.public-typography .public-entry__time,
.public-typography .public-entry__church,
.public-typography .public-entry__service,
.public-typography .public-contact__meta,
.public-typography .public-contact__subhead,
.public-typography .public-contact__line,
.public-typography .public-services__gallery-label {
  font-family: inherit;
  font-size: var(--public-text-size);
}

/* Feast names use the public calendar colour in the selected church view. */
.church-holiday strong { color: #b12b2b; font-weight: 400; }

.public-day--sunday h3 { color: #b12b2b; }

.public-entry__church-link { color: inherit; text-decoration: none; }
.public-entry__church-link:hover { color: inherit; text-decoration: underline; }
.public-entry__church-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: .45em;
  border-top: .28em solid transparent;
  border-bottom: .28em solid transparent;
  border-left: .4em solid #b12b2b;
  vertical-align: .04em;
  position: relative;
  top: 1px;
}

.public-church-heading { flex-direction: column; align-items: flex-start; gap: 5px; }
.public-church-calendar-note { margin: -5px 0 0; font-size: .8em; font-weight: 400; }

/* These page titles match the diocesan heading in size, with a golden tone. */
.public-services__header.public-services__header--matched-title h1.public-services__title-after-menu {
  font-size: var(--public-heading-size);
  color: #a58232;
}

/* Main and secondary navigation share the same size, including active spans. */
.public-filterbar,
.public-typography .public-filterbar,
.calendar-site-header .public-filterbar { font-size: var(--public-menu-size); }
.public-filterbar > a, .public-filterbar > span { font-size: inherit; }
