/* Structure and responsive layout; the site's existing red, gold, and white remain. */
body.prs-reorg {
  --prs-red: #af0b0b;
  --prs-gold: #bd942f;
  --prs-border: #e5e5e5;
}

.prs-page-heading { padding-block: 28px 12px; }
.prs-page-heading h1 { margin: 0; }

body.prs-reorg img {
  max-width: 100%;
  height: auto;
}

body.prs-reorg :where(p, h1, h2, h3, h4, a, li) {
  overflow-wrap: anywhere;
}

body.prs-reorg :where(.prs-site-header, .prs-home, .prs-event-page, .prs-site-footer),
body.prs-reorg :where(.prs-site-header, .prs-home, .prs-event-page, .prs-site-footer) * {
  box-sizing: border-box;
}

.prs-container,
.prs-header-inner {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin-inline: auto;
}

.prs-site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--prs-border);
}

.prs-header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 0 18px;
  min-height: 90px;
  padding-block: 10px;
}

.prs-brand {
  display: flex;
  align-items: center;
  flex: 0 1 290px;
  gap: 12px;
  min-width: 0;
  color: #252525;
  text-decoration: none;
  grid-row: 1 / span 2;
  max-width: 290px;
}

.prs-language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  grid-column: 2;
}

.prs-language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 9px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.prs-language-switcher a[aria-current="true"] {
  color: var(--prs-red);
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 600;
}

.prs-brand:hover {
  color: var(--prs-red);
}

.prs-logo {
  display: block;
  flex: 0 0 auto;
  width: 50px;
  max-height: 68px;
  object-fit: contain;
}

.prs-site-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.prs-navigation {
  min-width: 0;
  margin-left: auto;
  grid-column: 2;
}

.prs-navigation[hidden] {
  display: none !important;
}

.prs-menu,
.prs-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prs-menu,
.prs-menu-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.prs-menu > li {
  min-width: 0;
  margin: 0;
}

.prs-menu a,
.prs-menu-fallback a,
.prs-submenu > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 11px;
  color: #292929;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
}

.prs-menu a:hover,
.prs-submenu > summary:hover,
.prs-menu a[aria-current="page"] {
  color: var(--prs-red);
  background: #faf6f6;
}

.prs-submenu {
  position: relative;
}

.prs-submenu > summary {
  list-style: none;
}

.prs-submenu > summary::-webkit-details-marker {
  display: none;
}

.prs-submenu > summary::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.prs-submenu[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}

.prs-submenu > ul {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  width: max-content;
  min-width: 210px;
  max-width: 300px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--prs-border);
  box-shadow: 0 5px 16px rgb(0 0 0 / 8%);
}

.prs-menu ul li {
  margin: 0;
}

.prs-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--prs-red);
  background: #fff;
  border: 1px solid var(--prs-red);
  border-radius: 3px;
  font: inherit;
  line-height: 1.4;
  cursor: pointer;
}

.prs-menu-toggle:hover,
.prs-menu-toggle[aria-expanded="true"] {
  color: var(--prs-red);
  background: #faf6f6;
}

body.prs-reorg :where(.prs-site-header, .prs-home, .prs-event-page, .prs-site-footer)
  :where(a, button, summary):focus-visible {
  outline: 3px solid var(--prs-red);
  outline-offset: 3px;
}

.prs-home,
.prs-event-page {
  color: #333;
  font-size: 16px;
  line-height: 1.65;
}

.prs-home > *,
.prs-event-page > *,
.prs-teacher > *,
.prs-resource-grid > *,
.prs-post-list > * {
  min-width: 0;
}

.prs-section {
  padding-block: 36px;
  border-bottom: 1px solid var(--prs-border);
}

.prs-section:last-child {
  border-bottom: 0;
}

.prs-home h1,
.prs-event-page h1 {
  margin: 0 0 20px;
  color: var(--prs-red);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.3;
}

.prs-section-heading,
.prs-teacher-copy > h2,
.prs-contact > h2 {
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--prs-red);
  color: var(--prs-red);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.prs-introduction {
  padding-top: 36px;
}

.prs-introduction p {
  max-width: 68ch;
  margin: 0;
}

.prs-home p,
.prs-event-page p {
  line-height: 1.75;
}

.prs-teacher {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.prs-teacher-photo {
  width: 100%;
  margin: 0;
}

.prs-teacher-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.prs-teacher-copy h3 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
}

.prs-teacher-copy p {
  max-width: 68ch;
  margin: 0 0 16px;
}

.prs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 12px;
}

.prs-links a,
.prs-contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--prs-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prs-event-group h3 {
  margin: 0 0 18px;
  color: #333;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.prs-event-list {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.prs-event-list > li {
  min-width: 0;
  margin: 0;
}

.prs-event-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--prs-border);
  background: #fff;
}

.prs-event-card img {
  display: block;
  width: 100%;
  max-height: 300px;
  margin-bottom: 16px;
  object-fit: contain;
}

.prs-event-card h3,
.prs-event-card h4 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.prs-event-card h3 a,
.prs-event-card h4 a,
.prs-post-card h3 a {
  display: inline-block;
  min-height: 44px;
  color: var(--prs-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prs-event-card time,
.prs-event-date,
.prs-event-status {
  display: block;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.prs-event-date:last-child {
  margin-bottom: 0;
}

.prs-event-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--prs-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prs-empty {
  min-height: 44px;
  margin: 0;
  color: #555;
}

.prs-resource-grid,
.prs-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.prs-resource-grid > a,
.prs-resource-grid > li > a {
  display: flex;
  align-items: center;
  min-height: 60px;
  height: 100%;
  padding: 14px 18px;
  border: 1px solid var(--prs-border);
  border-top: 2px solid var(--prs-gold);
  color: var(--prs-red);
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prs-post-list {
  margin-top: 26px;
}

.prs-post-card {
  min-width: 0;
  margin: 0;
}

.prs-post-card img {
  display: block;
  width: 100%;
  max-height: 280px;
  margin-bottom: 14px;
  object-fit: contain;
}

.prs-post-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.5;
}

.prs-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

.prs-media-grid > * {
  min-width: 0;
  margin: 0;
}

.prs-media-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.prs-teaching-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 24px auto 0;
}

.prs-teaching-image > img {
  display: block;
  width: 100%;
  height: auto;
}

.prs-home-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.prs-home-photo-grid > li {
  min-width: 0;
  margin: 0;
}

.prs-home-photo-grid a,
.prs-home-photo-grid img {
  display: block;
  width: 100%;
}

.prs-home-photo-grid img {
  height: auto;
}

.prs-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prs-contact-list > li {
  margin: 0 0 8px;
}

.prs-site-footer {
  padding-block: 24px;
  border-top: 1px solid var(--prs-border);
  color: #555;
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
}

.prs-site-footer p:last-child {
  margin-bottom: 0;
}

.prs-event-page {
  padding-block: 36px;
}

.prs-original-content {
  min-width: 0;
  margin-top: 32px;
}

.prs-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.prs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--prs-border);
  color: var(--prs-red);
}

.prs-pagination .current {
  color: #fff;
  background: var(--prs-red);
  border-color: var(--prs-red);
}

.prs-teaching-library,
.prs-article {
  min-width: 0;
  font-size: 16px;
  line-height: 1.7;
}

.prs-teaching-library .prs-post-card h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.prs-resource-type { margin: 0 0 8px; font-size: 14px; }
.prs-resource-type a { color: var(--prs-red); text-decoration: underline; text-underline-offset: 3px; }

.prs-teaching-library .prs-post-card h2 a {
  display: inline-block;
  min-height: 44px;
  color: var(--prs-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.prs-article {
  width: 100%;
  max-width: 76ch;
  margin-inline: auto;
  padding-top: 0;
}

.prs-article > header {
  margin-bottom: 28px;
}

.prs-event-details {
  margin: 24px 0 0;
  padding: 16px 20px;
  background: var(--prs-paper, #faf8f4);
  border-left: 3px solid var(--prs-red);
}

.prs-event-details > div {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
  gap: 8px 20px;
  margin-block: 8px;
}

.prs-event-details dt { font-weight: 600; }
.prs-event-details dd { margin: 0; overflow-wrap: anywhere; }
.prs-event-poster { display: block; }
.prs-event-poster img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.prs-event-location { overflow-wrap: anywhere; }

.prs-article > header time,
.prs-teaching-library .prs-post-card time {
  color: #555;
  font-size: 14px;
}

.prs-article-body {
  min-width: 0;
  max-width: 76ch;
  margin: 28px auto 0;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.prs-article-body :where(h1, h2, h3, h4, h5, h6) {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.prs-article-body :where(p, li) {
  line-height: 1.7;
}

.prs-article-body :where(img, video, iframe),
.prs-article > img {
  max-width: 100%;
}

.prs-article-body img,
.prs-article > img {
  width: auto;
  height: auto;
}

.prs-article-body figure {
  max-width: 100%;
  margin-inline: 0;
}

.prs-article-body pre {
  max-width: 100%;
  overflow: auto;
  white-space: pre;
  overflow-wrap: normal;
}

.prs-article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.prs-pdf-document,
.prs-pdf-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
}

.prs-pdf-object {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(75vh, 900px);
  min-height: 500px;
  border: 1px solid var(--prs-border);
}

.prs-pdf-source,
.prs-pdf-link {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.prs-pdf-source a,
.prs-pdf-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--prs-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .prs-brand {
    flex-basis: 230px;
  }

  .prs-site-name {
    font-size: 16px;
  }

  .prs-menu a,
  .prs-menu-fallback a,
  .prs-submenu > summary {
    padding-inline: 8px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .prs-header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-height: 80px;
  }

  .prs-brand {
    flex: 1 1 0;
    max-width: 420px;
    order: 1;
  }

  .prs-menu-toggle { order: 2; }
  .prs-language-switcher { order: 3; flex: 1 0 100%; justify-content: center; }
  .prs-navigation { order: 4; }

  .prs-logo {
    width: 44px;
    max-height: 60px;
  }

  body.prs-js .prs-menu-toggle {
    display: inline-flex;
  }

  .prs-navigation {
    flex: 1 0 100%;
    width: 100%;
    margin: 4px 0 0;
    padding-top: 6px;
    border-top: 1px solid var(--prs-border);
  }

  .prs-menu,
  .prs-menu-fallback {
    display: block;
  }

  .prs-menu a,
  .prs-menu-fallback a,
  .prs-submenu > summary {
    padding-inline: 10px;
    font-size: 16px;
  }

  .prs-submenu > ul {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 0 6px 18px;
    border: 0;
    border-left: 2px solid var(--prs-gold);
    box-shadow: none;
  }

  .prs-teacher {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 24px;
  }

  .prs-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .prs-container,
  .prs-header-inner {
    width: calc(100% - 32px);
  }

  .prs-header-inner {
    gap: 6px 10px;
  }

  .prs-brand {
    gap: 9px;
  }

  .prs-site-name {
    font-size: 15px;
  }

  .prs-menu-toggle {
    padding-inline: 9px;
    font-size: 14px;
  }

  .prs-section {
    padding-block: 28px;
  }

  .prs-section-heading,
  .prs-teacher-copy > h2,
  .prs-contact > h2 {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .prs-teacher,
  .prs-home-photo-grid,
  .prs-resource-grid,
  .prs-post-list,
  .prs-media-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .prs-teacher-photo {
    width: min(100%, 230px);
    margin-inline: auto;
  }

  .prs-event-card {
    padding: 16px;
  }

  .prs-links {
    gap: 4px 18px;
  }

  .prs-article {
    padding-top: 0;
  }

  .prs-article > header {
    margin-bottom: 22px;
  }

  .prs-pdf-object {
    height: 480px;
    min-height: 0;
  }
}
