/**
 * main.css - Parafia Świętego Brata Alberta w Przemyślu
 *
 * Visual language: light, airy, minimal - warm paper background, a single
 * muted brick-red accent, generous whitespace, restrained serif display
 * type over a plain neutral sans body.
 *
 * 1.  Variables & resets
 * 2.  Typography & shared components (kicker, rule, buttons, quotes)
 * 3.  Layout helpers
 * 4.  Header & navigation
 * 5.  Page banner (interior pages)
 * 6.  Hero (homepage) + info bar
 * 7.  About / history sections
 * 8.  Mass schedule table
 * 9.  News cards
 * 10. Pull quote
 * 11. Contact / donation / map
 * 12. Editable content (rich text from CMS)
 * 13. Sidebar & nav trees
 * 14. Footer
 * 15. Responsive
 * 16. Accessibility helpers
 */

/* 1. Variables & resets ------------------------------------------------- */

:root {
  --paper: #faf8f4;
  --surface: #ffffff;
  --tint: #f3ede4;
  --ink: #2a2723;
  --muted: #756e64;
  --line: #e6ded1;
  --accent: #9a4a3a;
  --accent-dark: #7c3a2d;
  --radius: 6px;
  --shadow: 0 16px 40px -22px rgba(42, 39, 35, 0.35);
  --font-head: "Fraunces", Georgia, serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

/* 2. Typography & shared components ------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.7em;
}

.rule {
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  margin: 0.9rem 0 1.6rem;
  border-radius: 2px;
}

.section__head {
  max-width: 40rem;
  margin: 0 0 2.6rem;
}

blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 1.2em;
  border-left: 2px solid var(--line);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 0.85em 1.9em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: var(--accent);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 3. Layout helpers -------------------------------------------------------*/

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: var(--tint);
}

/* 4. Header & navigation ---------------------------------------------------*/

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}

.brand__text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand__break {
  display: block;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4em 1.1rem;
}

.topnav li a {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.topnav li a:hover {
  color: var(--ink);
  text-decoration: none;
}

.topnav li.current a {
  color: var(--ink);
  border-color: var(--accent);
}

.topnav li.edit a {
  color: var(--accent);
}

.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
}

/* 5. Page banner (interior pages) -------------------------------------- */

.page-banner {
  background: var(--tint);
  padding: 3.5rem 0 2.8rem;
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  margin: 0.2em 0 0;
}

.page-banner .rule {
  margin-bottom: 0;
}

.page-banner .breadcrumbs {
  font-size: 0.8rem;
  color: var(--muted);
}

.page-banner .breadcrumbs a {
  color: var(--muted);
}

.page-banner .breadcrumbs span {
  margin: 0 0.25em;
}

/* 6. Hero (homepage) + info bar ------------------------------------------*/

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 1.5rem 3.5rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.hero__figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.infobar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 1.5rem;
}

.infobar__item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0 1.4rem;
  border-left: 1px solid var(--line);
  font-size: 0.92rem;
}

.infobar__item:first-child {
  border-left: none;
  padding-left: 0;
}

.infobar__label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent);
}

.events-strip {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.events-strip__label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--accent);
  flex-shrink: 0;
}

.events-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.events-strip__list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3em 0.5em;
  font-size: 0.88rem;
  max-width: 100%;
}

.events-strip__date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.events-strip__title {
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
  overflow-wrap: break-word;
}

.events-strip__more {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.calendar-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendar-embed iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}

/* 7. About / history sections --------------------------------------------*/

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.about__text {
  max-width: 34rem;
}

.about__figure img {
  border-radius: var(--radius);
}

.about__caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7em;
}

.history__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.history__lead {
  position: sticky;
  top: 6rem;
}

.history__carousel {
  position: relative;
  max-width: 22rem;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
}

.carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(42, 39, 35, 0.45);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.carousel__btn:hover {
  background: rgba(42, 39, 35, 0.7);
}

.carousel__btn--prev {
  left: 0.6rem;
}

.carousel__btn--next {
  right: 0.6rem;
}

.carousel__dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: #fff;
}

.history__body {
  max-width: 38rem;
  position: relative;
}

.timeline__heading {
  margin: 2rem 0 0;
  font-size: 1.1rem;
}

.history__vicars-link {
  margin-top: 1.2rem;
  text-align: right;
}

.history__vicars-link a {
  font-size: 0.85rem;
  color: var(--muted);
}

.history__vicars-link a:hover {
  color: var(--accent);
}

.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
}

.timeline li {
  font-size: 0.92rem;
  color: var(--ink);
}

.timeline span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 8. Mass schedule table ---------------------------------------------------*/

.mass-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.mass-table tr {
  border-bottom: 1px solid var(--line);
}

.mass-table th,
.mass-table td {
  text-align: left;
  padding: 1.1rem 0.5rem;
  font-weight: 400;
  vertical-align: top;
}

.mass-table th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  width: 40%;
  color: var(--ink);
}

.mass-table td {
  color: var(--muted);
}

.mass-table__note {
  display: block;
  font-size: 0.85rem;
}

/* 9. News cards -----------------------------------------------------------*/

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.news__card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.news__card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ink);
}

.news__card h3 {
  margin-bottom: 0.4em;
}

.news__card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.news__more {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
}

/* 10. Pull quote ------------------------------------------------------------*/

.pull-quote {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  border: none;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
}

.pull-quote__mark {
  display: block;
  font-size: 3rem;
  color: var(--accent);
  font-style: normal;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.pull-quote footer {
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 11. Contact / donation / map ----------------------------------------------*/

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.contact__list li {
  padding: 0.9em 0;
  border-bottom: 1px solid var(--line);
}

.contact__list li:first-child {
  border-top: 1px solid var(--line);
}

.contact__list strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25em;
}

.donation-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.donation-box__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4em;
}

.donation-box .acct {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 0.6em;
}

.donation-box__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.map-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* 11c. Intentions form (skrzynka intencji) ---------------------------------*/

.notice {
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
}

.notice--success {
  background: #eef4ea;
  border: 1px solid #cddec2;
  color: #3c5c2c;
}

.notice--error {
  background: #f8ece9;
  border: 1px solid #e3beb5;
  color: var(--accent-dark);
}

.notice--error p {
  margin: 0;
}

.intentions__form {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.intentions__form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.intentions__form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.intentions__form input[type="text"],
.intentions__form select,
.intentions__form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.intentions__form input[type="text"]:focus,
.intentions__form select:focus,
.intentions__form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.intentions__form button {
  align-self: flex-start;
}

.about__patron-bio {
  margin-top: 1rem;
}

/* 11b. Blog (listing + single post) -----------------------------------------*/

.post-meta {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6em;
}

.text-muted {
  color: var(--muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ink);
}

.blog-card__figure {
  display: block;
  aspect-ratio: 3 / 2;
  max-width: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
  margin: 0 0 1.4rem;
}

.blog-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  display: block;
  padding: 1.8rem 1.4rem;
}

.blog-card__body h3 {
  margin-bottom: 0.3em;
}

.blog-card__body p {
  color: var(--muted);
  font-size: 0.94rem;
}

.blog-post__featured {
  max-width: 300px;
  margin: 0 0 1.75rem;
}

.blog-post__featured img {
  width: 100%;
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.gallery-grid__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* 12. Editable content (from CMS body fields) ----------------------------*/

.editable-content h2,
.editable-content h3 {
  color: var(--ink);
}

.editable-content blockquote {
  margin: 1.5em 0;
}

.editable-content pre,
.editable-content code {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.editable-content pre {
  padding: 1em;
  border-left: 2px solid var(--accent);
}

.editable-content figure {
  display: table;
  margin: 1em 0;
}

.editable-content figcaption {
  font-size: smaller;
  color: var(--muted);
}

.editable-content .align_left {
  float: left;
  margin: 0 1.2em 0.5em 0;
  max-width: 50%;
}

.editable-content .align_right {
  float: right;
  margin: 0 0 0.5em 1.2em;
  max-width: 50%;
}

.editable-content .align_center {
  display: block;
  margin: 1.5em auto;
}

.edit-hint {
  margin-top: 1.5em;
}

.edit-hint a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5em 1.1em;
  font-size: 0.78rem;
  color: var(--muted);
}

.edit-hint a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Generic content wrapper for interior pages, rendered via #content */

#content-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 3.5rem 1.5rem;
}

#content {
  flex: 1 1 0;
  min-width: 0;
}

body.has-sidebar #content {
  flex: 2 1 0;
}

/* The home template builds its own full-bleed sections and never sets
   $sidebar, so it always gets the unpadded, full-width wrapper below. */

body.page-home #content-wrap {
  padding: 0;
  display: block;
}

body:not(.has-sidebar) #content {
  width: 100%;
}

/* 13. Sidebar & nav trees ------------------------------------------------*/

#sidebar {
  flex: 1 1 240px;
  max-width: 300px;
}

#sidebar h3,
#sidebar h2 {
  font-size: 1.1rem;
}

.nav {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}

.nav .nav {
  padding-left: 1.2em;
  margin-top: 0.4em;
}

.nav li {
  margin: 0.6em 0;
}

.nav a {
  font-weight: 500;
}

.nav .summary {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2em;
}

.nav-tree a {
  color: var(--muted);
  font-weight: 400;
}

.nav-tree .current > a {
  color: var(--accent);
}

.subpage-children {
  margin-top: 1rem;
}

/* 14. Footer ---------------------------------------------------------------*/

#footer {
  background: var(--tint);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer__inner {
  padding: 3rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer__col--brand {
  flex: 1 1 240px;
}

.footer__brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.social-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.social-links a:hover {
  color: var(--surface);
  background: var(--accent);
  border-color: var(--accent);
}

.social-links--header {
  display: none;
  margin-top: 0;
  gap: 0.5rem;
  flex-shrink: 0;
}

.social-links--header a {
  width: 28px;
  height: 28px;
}

.social-links--header a svg {
  width: 15px;
  height: 15px;
}

@media only screen and (min-width: 1100px) {
  .social-links--header {
    display: flex;
  }
}

.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8em;
}

.footer__col p {
  margin: 0;
  font-size: 0.9rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer__bottom p {
  margin: 0;
}

/* 15. Responsive ------------------------------------------------------------*/

@media only screen and (max-width: 960px) {
  .hero,
  .about__grid,
  .history__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    order: -1;
  }

  .history__lead {
    position: static;
  }

  .infobar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .infobar__item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .news__grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .calendar-embed iframe {
    height: 480px;
  }
}

@media only screen and (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .events-strip__list {
    gap: 0.9rem;
  }

  .events-strip__list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1em;
    width: 100%;
  }

  .brand {
    min-width: 0;
  }

  .brand__text {
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: normal;
  }

  .brand__break {
    display: block;
  }

  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-toggle-input:checked ~ .site-header .topnav {
    display: flex;
  }

  .topnav ul {
    flex-direction: column;
    gap: 0.9rem;
  }

  .social-links--header {
    display: flex;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .social-links--header a {
    width: 34px;
    height: 34px;
  }

  .social-links--header a svg {
    width: 18px;
    height: 18px;
  }

  .infobar {
    grid-template-columns: 1fr;
  }

  .infobar__item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .infobar__item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .news__grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .mass-table th,
  .mass-table td {
    display: block;
    width: 100%;
    padding: 0.3rem 0.5rem;
  }

  .mass-table tr {
    display: block;
    padding: 1rem 0;
  }

  .section {
    padding: 3rem 0;
  }

  .pull-quote {
    font-size: 1.2rem;
  }

  #content-wrap {
    flex-direction: column;
  }
}

@media only screen and (min-width: 1400px) {
  body {
    font-size: 17.5px;
  }
}

/* 16. Accessibility helpers --------------------------------------------*/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  white-space: nowrap;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  border: 0;
}

.element-focusable:focus {
  clip: auto;
  overflow: visible;
  height: auto;
}

.bypass-to-main:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  z-index: 200;
}
