:root {
  --ink: #000000;
  --muted: #1a406f;
  --line: #9db5cf;
  --paper: #ffffff;
  --background: #ffffff;
  --navy: #1a406f;
  --navy-light: #275889;
  --red: #dd3333;
  --red-dark: #a12626;
  --sand: #ffbc7d;
  --green: #258c1c;
  --shadow: none;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family:
    "Source Sans Pro", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  border-bottom: 1px solid rgba(24, 34, 56, 0.09);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.brand-image {
  display: block;
  width: 60px;
  height: 60px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  object-fit: cover;
}

.brand-mark,
.publisher-avatar {
  display: grid;
  place-items: center;
  color: white;
  background: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  font-size: 26px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-self: stretch;
  gap: 38px;
}

.main-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: #69717e;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a.active {
  color: var(--ink);
}

.main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.icon-button,
.profile-button,
.more-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
}

.icon-button:hover {
  background: #f0f1f2;
}

.icon-button svg {
  width: 20px;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.profile-button > span:first-child {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--sand);
  font-size: 11px;
}

.profile-button svg {
  width: 14px;
}

.search-panel {
  position: fixed;
  z-index: 19;
  top: 76px;
  right: 0;
  left: 0;
  padding: 20px max(24px, calc((100vw - 760px) / 2));
  border-bottom: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid #cdd2d9;
  border-radius: 8px;
}

.search-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(24, 43, 75, 0.1);
}

.search-field svg {
  width: 20px;
}

.search-field input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
}

main {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 54px 0 29px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 39px);
  font-weight: 700;
  letter-spacing: 0;
}

.welcome-row > div > p:last-child,
.today {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.today {
  padding-bottom: 7px;
}

.event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid #dedfdc;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(24, 34, 56, 0.07);
}

.event-copy h2 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 500;
}

.event-copy p {
  margin: 0;
  color: var(--red-dark);
  font-size: 15px;
  font-weight: 750;
}

.event-actions {
  flex: 0 0 auto;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 196px;
  padding: 13px 16px;
  border: 0;
  border-radius: 5px;
  color: white;
  background: var(--red);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.primary-button:hover {
  background: #d34a43;
}

.primary-button svg {
  width: 16px;
}

.content-section {
  padding: 54px 0 70px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 21px;
}

.section-heading h2,
.library-preview h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 500;
}

.filters {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe2e6;
  border-radius: 8px;
  background: #efefed;
}

.filter {
  padding: 8px 13px;
  border: 0;
  border-radius: 5px;
  color: #6c727d;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.filter:hover {
  color: var(--ink);
}

.filter.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 7px rgba(24, 34, 56, 0.08);
}

.feed {
  display: grid;
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition:
    opacity 160ms,
    transform 160ms;
}

.post-card[hidden] {
  display: none;
}

.post-topline,
.post-copy,
.engagement,
.comments {
  padding-right: 27px;
  padding-left: 27px;
}

.post-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 18px;
}

.author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.publisher-avatar,
.member-avatar {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 50%;
}

.publisher-avatar {
  border-radius: 4px;
  font-size: 23px;
}

.author > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author strong,
.comment-body strong {
  font-size: 12px;
}

.author span {
  color: #8b9099;
  font-size: 10px;
}

.pinned,
.community-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pinned svg {
  width: 13px;
}

.community-label {
  color: var(--green);
}

.more-button {
  color: #959aa2;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.post-copy {
  padding-bottom: 18px;
}

.content-type {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-radius: 3px;
  color: var(--red-dark);
  background: #f9e8e5;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.content-type.recording {
  color: #315f8d;
  background: #e7f0f8;
}

.post-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 500;
  line-height: 1.18;
}

.post-copy p {
  max-width: 750px;
  margin: 0;
  color: #676e79;
  font-size: 13px;
  line-height: 1.6;
}

.video-cover {
  position: relative;
  display: flex;
  width: calc(100% - 54px);
  max-width: 760px;
  aspect-ratio: 16 / 9;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 22px;
  padding: 45px 10%;
  overflow: hidden;
  border: 0;
  color: white;
  text-align: left;
  cursor: pointer;
}

.video-cover:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--red);
}

.video-cover-one {
  background:
    radial-gradient(circle at 75% 42%, rgba(78, 132, 165, 0.5), transparent 18%),
    linear-gradient(120deg, #101e34 12%, #1e3a59 55%, #29677a 115%);
}

.video-cover-two {
  background:
    radial-gradient(circle at 86% 26%, rgba(204, 78, 61, 0.55), transparent 8%),
    linear-gradient(125deg, #202743 0%, #414067 58%, #792f36 125%);
}

.cover-decoration {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.decoration-one {
  top: -35%;
  right: 7%;
  width: 450px;
  height: 450px;
}

.decoration-two {
  right: -5%;
  bottom: -55%;
  width: 520px;
  height: 520px;
}

.grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(350px) rotateX(55deg) scale(1.4);
}

.video-kicker,
.video-cover strong,
.video-subtitle {
  position: relative;
  z-index: 2;
}

.video-kicker {
  margin-bottom: 16px;
  color: #d7e3ec;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.video-cover strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 7vw, 66px);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.035em;
}

.video-subtitle {
  margin-top: 17px;
  color: #d5dde5;
  font-size: 13px;
}

.play-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 72%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  transition: 170ms ease;
  backdrop-filter: blur(8px);
}

.play-button svg {
  width: 26px;
  fill: white;
  stroke: white;
}

.duration {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(5, 11, 20, 0.78);
  font-size: 10px;
}

.engagement {
  display: flex;
  gap: 22px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.engagement-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #747b86;
  background: none;
  cursor: pointer;
  font-size: 11px;
}

.engagement-button:hover,
.engagement-button.liked {
  color: var(--red);
}

.engagement-button.liked svg {
  fill: currentColor;
}

.engagement-button svg {
  width: 16px;
  height: 16px;
}

.comments {
  padding-top: 18px;
  padding-bottom: 21px;
  background: #fbfbfa;
}

.comments.compact {
  padding-top: 14px;
  padding-bottom: 15px;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.member-avatar {
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
}

.avatar-blue {
  color: #244c68;
  background: #cee1ea;
}

.avatar-sand {
  color: #635138;
  background: var(--sand);
}

.avatar-coral {
  color: #773c34;
  background: #efc9c1;
}

.comment-body {
  flex: 1;
  padding: 10px 13px;
  border-radius: 3px 10px 10px 10px;
  background: #f0f1f1;
}

.comment-body > div {
  display: flex;
  justify-content: space-between;
}

.comment-body span {
  color: #9a9ea5;
  font-size: 9px;
}

.comment-body p {
  margin: 5px 0;
  color: #4d5561;
  font-size: 11px;
  line-height: 1.5;
}

.comment-body button {
  padding: 0;
  border: 0;
  color: #787e87;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 9px;
}

.comment-form .member-avatar {
  width: 34px;
  height: 34px;
}

.comment-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 13px;
  border: 1px solid #dfe2e4;
  border-radius: 20px;
  outline: 0;
  background: white;
  font-size: 11px;
}

.comment-form input:focus {
  border-color: #8d9bae;
  box-shadow: 0 0 0 3px rgba(24, 43, 75, 0.07);
}

.comment-form button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  cursor: pointer;
}

.comment-form button:hover {
  background: var(--navy-light);
}

.comment-form button svg {
  width: 15px;
}

.community-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(145deg, transparent 57%, rgba(48, 67, 57, 0.3) 58%),
    linear-gradient(130deg, #aab9b2 0%, #e6dbca 42%, #a68264 43%, #7a5a45 100%);
}

.desk-shadow {
  position: absolute;
  right: 9%;
  bottom: 3%;
  width: 70%;
  height: 45%;
  border-radius: 50%;
  background: rgba(29, 25, 25, 0.28);
  filter: blur(30px);
}

.laptop {
  position: absolute;
  bottom: 16%;
  left: 17%;
  width: 54%;
  height: 61%;
  border: 9px solid #2c3033;
  border-radius: 8px 8px 3px 3px;
  background: #d9d9d6;
  box-shadow: 20px 25px 35px rgba(0, 0, 0, 0.23);
  transform: perspective(700px) rotateX(3deg) rotateZ(-2deg);
}

.laptop::after {
  position: absolute;
  right: -13%;
  bottom: -18px;
  left: -13%;
  height: 14px;
  border-radius: 2px 2px 8px 8px;
  background: #b9b9b5;
  content: "";
}

.laptop-screen {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: 1fr 1fr;
  gap: 11px;
  padding: 20px;
  background: #f5f3ee;
}

.laptop-screen i {
  display: block;
  border-radius: 4px;
  background:
    linear-gradient(165deg, #536f77 0 36%, transparent 37%),
    repeating-linear-gradient(#c2c5c3 0 3px, transparent 3px 9px);
}

.laptop-screen i:nth-child(2) {
  grid-row: span 2;
  background:
    linear-gradient(165deg, #ca755c 0 24%, transparent 25%),
    repeating-linear-gradient(#b8b9b6 0 3px, transparent 3px 9px);
}

.notebook {
  position: absolute;
  right: 7%;
  bottom: 12%;
  width: 20%;
  height: 31%;
  border-left: 5px solid #8f4d3f;
  border-radius: 3px;
  background:
    repeating-linear-gradient(transparent 0 14px, #b6b6ae 15px),
    #e9e1cb;
  box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.25);
  transform: rotate(8deg);
}

.coffee {
  position: absolute;
  right: 19%;
  top: 8%;
  width: 70px;
  height: 70px;
  border: 10px solid #e5e1d6;
  border-radius: 50%;
  background: #6f4029;
  box-shadow: 7px 10px 17px rgba(0, 0, 0, 0.22);
}

.plant {
  position: absolute;
  top: -7%;
  left: -1%;
  width: 100px;
  height: 130px;
}

.plant i {
  position: absolute;
  display: block;
  width: 40px;
  height: 95px;
  border-radius: 100% 0 100% 0;
  background: #4a745d;
  transform: rotate(20deg);
}

.plant i:nth-child(2) {
  left: 42px;
  transform: rotate(70deg);
}

.plant i:nth-child(3) {
  top: 37px;
  left: 22px;
  transform: rotate(115deg);
}

.empty-state {
  padding: 55px 20px;
  border: 1px dashed #c9cdd2;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state button {
  display: block;
  margin: 15px auto 0;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.library-preview {
  margin-bottom: 70px;
  padding: 44px;
  border: 1px dashed #cfd3d6;
  border-radius: var(--radius);
  text-align: center;
}

.library-preview p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px max(24px, calc((100vw - 980px) / 2));
  border-top: 1px solid #dddeda;
  color: #8b8f94;
  background: #ecebe7;
  font-size: 10px;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a:hover {
  color: var(--ink);
}

.video-dialog {
  width: min(92vw, 1000px);
  padding: 0 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.video-dialog::backdrop {
  background: rgba(11, 18, 29, 0.68);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 11px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 24px;
}

.dialog-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 70% 30%, rgba(81, 141, 159, 0.55), transparent 25%),
    linear-gradient(140deg, #172b4b, #244f63);
}

.dialog-player .play-button {
  left: 50%;
}

.video-dialog h2,
.video-dialog p {
  margin-right: 25px;
  margin-left: 25px;
}

.video-dialog h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 25px;
}

.video-dialog p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 18px;
  border-radius: 7px;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(20px);
  transition: 180ms ease;
  pointer-events: none;
  font-size: 12px;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Klassischer Rusch-Stil: klare Flächen, kräftige Farben, hohe Lesbarkeit */
.site-header {
  border-bottom: 4px solid var(--navy);
  background: #ffffff;
  backdrop-filter: none;
}

.brand-mark,
.publisher-avatar {
  border-radius: 10px;
}

.brand-copy small,
.main-nav a,
.welcome-row > div > p:last-child,
.today,
.author span,
.post-copy p,
.engagement-button,
.comment-body p,
.comment-body span,
.comment-body button,
.library-preview p:last-child,
footer {
  color: #000000;
}

.main-nav a {
  font-size: 16px;
}

.main-nav a.active {
  color: var(--navy);
}

.main-nav a.active::after {
  height: 5px;
  background: var(--red);
}

.profile-button > span:first-child,
.member-avatar {
  border: 1px solid var(--navy);
  border-radius: 0;
  color: #000000;
  background: #ffffff;
}

.eyebrow {
  color: var(--red-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.welcome-row {
  padding-top: 42px;
  border-bottom: 1px solid var(--line);
}

.welcome-row > div > p:last-child,
.today {
  font-size: 16px;
}

.event-card {
  margin-top: 25px;
  padding: 20px 24px;
  border: 2px solid var(--navy);
  border-left: 9px solid var(--red);
  border-radius: 0;
  background: #f1f7fc;
  box-shadow: none;
}

.event-copy h2 {
  color: var(--navy);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  letter-spacing: 0;
}

.event-copy p {
  color: #000000;
  font-size: 17px;
}

.primary-button {
  min-width: 260px;
  padding: 13px 18px;
  border-radius: 5px;
  background: var(--red);
  box-shadow: none;
  font-size: 14px;
}

.content-section {
  padding-top: 46px;
}

.section-heading {
  padding-bottom: 13px;
  border-bottom: 3px solid var(--navy);
}

.section-heading h2,
.library-preview h2 {
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
}

.filters {
  gap: 0;
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.filter {
  padding: 9px 14px;
  border-right: 1px solid var(--navy);
  border-radius: 0;
  color: #000000;
  font-size: 13px;
}

.filter:last-child {
  border-right: 0;
}

.filter.active {
  color: #ffffff;
  background: var(--navy);
  box-shadow: none;
}

.feed {
  gap: 30px;
}

.post-card {
  border: 2px solid var(--navy);
  border-radius: 10px;
  box-shadow: none;
}

.post-topline {
  padding-top: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.author strong,
.comment-body strong {
  color: #000000;
  font-size: 14px;
}

.author span,
.comment-body span {
  font-size: 11px;
}

.pinned,
.community-label {
  font-size: 11px;
}

.more-button {
  color: var(--navy);
}

.post-copy {
  padding-top: 20px;
  padding-bottom: 20px;
}

.content-type {
  border-radius: 0;
  color: #ffffff;
  background: var(--red);
  font-size: 10px;
}

.content-type.recording {
  color: #ffffff;
  background: var(--navy);
}

.post-copy h3 {
  color: var(--navy);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0;
}

.post-copy p {
  font-size: 15px;
  line-height: 1.55;
}

.video-cover {
  min-height: 0;
  border-radius: 7px;
  background-color: var(--navy);
}

.video-cover-one {
  background:
    linear-gradient(90deg, rgba(26, 64, 111, 0.98) 0 58%, rgba(39, 88, 137, 0.88)),
    #1a406f;
}

.video-cover-two {
  background:
    linear-gradient(90deg, rgba(26, 64, 111, 0.98) 0 58%, rgba(161, 38, 38, 0.88)),
    #1a406f;
}

.video-cover strong {
  font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.video-kicker,
.video-subtitle {
  color: #ffffff;
}

.play-button {
  border: 3px solid #ffffff;
  background: var(--red);
  backdrop-filter: none;
}

.engagement {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.engagement-button {
  font-size: 13px;
  font-weight: 600;
}

.comments {
  background: #f1f7fc;
}

.comment {
  gap: 12px;
  margin-bottom: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.comment .member-avatar {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.comment-body {
  padding: 15px 17px;
  border: 2px solid #9db5cf;
  border-radius: 16px;
  background: #ffffff;
}

.comment-body > div {
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
}

.comment-body strong {
  font-size: 17px;
}

.comment-body span {
  color: var(--navy);
  font-size: 15px;
}

.comment-body p {
  margin: 7px 0 9px;
  color: #000000;
  font-size: 18px;
  line-height: 1.55;
}

.comment-body button {
  color: var(--navy);
  font-size: 14px;
}

.comment-form input {
  font-size: 16px;
}

.comment-form input {
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: #000000;
}

.comment-form input::placeholder,
.search-field input::placeholder {
  color: var(--navy);
  opacity: 1;
}

.comment-form button {
  border-radius: 7px;
  background: var(--red);
}

.community-image {
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.library-preview {
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: #f1f7fc;
}

footer {
  border-top: 4px solid var(--navy);
  background: #ffffff;
  font-size: 12px;
}

.search-panel {
  border-bottom: 3px solid var(--navy);
  box-shadow: none;
}

.search-field,
.empty-state,
.empty-state button {
  border-color: var(--navy);
  border-width: 2px;
  border-radius: 8px;
}

.toast,
.video-dialog {
  border-radius: 10px;
}

.community-composer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 35px;
  padding: 17px 20px;
  border: 2px solid #c69200;
  border-radius: 10px;
  background: #fff0ad;
}

.community-composer .member-avatar {
  width: 46px;
  height: 46px;
  font-size: 13px;
}

.community-composer > button {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: #000000;
  background: #fffdf3;
  cursor: pointer;
  text-align: left;
}

.community-composer > button span {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-composer > button strong {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--red);
  font-size: 14px;
}

.post-dialog {
  width: min(92vw, 680px);
  padding: 0;
  border: 2px solid var(--navy);
  border-radius: 10px;
  color: #000000;
  background: #ffffff;
}

.post-dialog::backdrop {
  background: rgba(11, 18, 29, 0.68);
}

.post-dialog .dialog-close {
  background: var(--navy);
}

.post-form {
  padding: 28px;
}

.post-form h2 {
  margin: 0 40px 7px 0;
  color: var(--navy);
  font-size: 27px;
}

.post-form > p {
  margin-bottom: 24px;
  color: #000000;
  font-size: 15px;
  line-height: 1.5;
}

.post-form > label:not(.upload-field) {
  display: block;
  margin-bottom: 7px;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
}

.post-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px;
  resize: vertical;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: #000000;
  outline: 0;
  font: 17px/1.5 Arial, Helvetica, sans-serif;
}

.post-form textarea:focus,
.upload-field:focus-within {
  box-shadow: 0 0 0 3px rgba(26, 64, 111, 0.16);
}

.post-form textarea::placeholder {
  color: var(--navy);
  opacity: 1;
}

.upload-field {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 2px dashed var(--navy);
  border-radius: 8px;
  color: var(--navy);
  background: #f1f7fc;
  cursor: pointer;
}

.upload-field svg {
  width: 28px;
  height: 28px;
}

.upload-field span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-field strong {
  color: #000000;
  font-size: 15px;
}

.upload-field small {
  color: var(--navy);
  font-size: 13px;
}

.post-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.secondary-button {
  padding: 12px 17px;
  border: 2px solid var(--navy);
  border-radius: 5px;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.member-post-media {
  display: block;
  width: calc(100% - 54px);
  max-width: 760px;
  max-height: 560px;
  margin: 0 auto 22px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  background: #000000;
  object-fit: contain;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 78px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    height: 58px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    background: white;
  }

  .main-nav a.active::after {
    top: 0;
    bottom: auto;
  }

  .event-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .event-actions {
    width: 100%;
  }

  .event-actions .primary-button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
  }

  .filter {
    flex: 0 0 auto;
  }

  .community-composer > button {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    margin-bottom: 58px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand-image {
    width: 48px;
    height: 48px;
  }

  .brand-copy small,
  .profile-name,
  .profile-button > svg,
  .today {
    display: none;
  }

  .brand-copy strong {
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .search-panel {
    top: 66px;
  }

  main {
    width: min(100% - 24px, 980px);
  }

  .welcome-row {
    padding: 36px 3px 22px;
  }

  .event-card {
    gap: 16px;
    padding: 20px;
  }

  .community-composer {
    align-items: flex-start;
    padding: 14px;
  }

  .community-composer > button span {
    max-width: 100%;
    white-space: normal;
  }

  .post-form {
    padding: 22px 18px;
  }

  .post-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .post-form-actions .primary-button,
  .post-form-actions .secondary-button {
    width: 100%;
  }

  .event-copy p {
    line-height: 1.5;
  }

  .content-section {
    padding-top: 40px;
  }

  .post-topline,
  .post-copy,
  .engagement,
  .comments {
    padding-right: 17px;
    padding-left: 17px;
  }

  .post-media,
  .post-library-link {
    margin-right: 17px;
    margin-left: 17px;
  }

  .pinned,
  .community-label {
    max-width: 90px;
    text-align: right;
  }

  .video-cover {
    width: 100%;
    min-height: 0;
    margin-bottom: 16px;
    padding: 32px 24px;
  }

  .video-cover strong {
    font-size: 42px;
  }

  .play-button {
    top: 74%;
    left: 78%;
    width: 56px;
    height: 56px;
  }

  .dialog-player .play-button {
    top: 50%;
    left: 50%;
  }

  .community-image {
    min-height: 260px;
  }

  .coffee {
    width: 54px;
    height: 54px;
  }

  .library-preview {
    padding: 35px 20px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .video-dialog {
    width: calc(100vw - 24px);
  }

  .dialog-player {
    height: auto;
  }
}

.member-admin {
  padding-bottom: 80px;
}

.member-admin .welcome-row p:last-child {
  max-width: 46rem;
  color: var(--navy);
}

.member-form,
.member-card {
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: #ffffff;
}

.member-form {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.member-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.member-form label,
.member-search {
  margin-top: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.member-form input,
.member-form textarea,
.member-admin input[type="search"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  color: #000000;
  background: #ffffff;
  font: inherit;
}

.member-form textarea {
  resize: vertical;
}

.member-form input:focus,
.member-form textarea:focus,
.member-admin input[type="search"]:focus {
  outline: 3px solid rgba(26, 64, 111, 0.25);
}

.form-error {
  margin: 8px 0 0;
  color: var(--red);
  font-weight: 700;
}

.member-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.member-search {
  display: block;
  margin-top: 28px;
}

.member-empty {
  margin: 18px 0 0;
  color: var(--navy);
}

.member-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.member-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.member-card strong {
  display: block;
  font-size: 18px;
}

.member-card span,
.member-card p {
  margin: 4px 0 0;
  color: var(--navy);
}

.member-card-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.member-card-actions button {
  padding: 8px 12px;
  border: 2px solid var(--navy);
  border-radius: 5px;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.member-card-actions button:hover {
  color: #ffffff;
  background: var(--navy);
}

@media (max-width: 820px) {
  .member-form-grid,
  .member-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .member-form-actions {
    flex-direction: column;
  }

  .member-form-actions .primary-button,
  .member-form-actions .secondary-button {
    width: 100%;
  }
}

.logout-button {
  padding: 8px 12px;
  border: 2px solid var(--navy);
  border-radius: 5px;
  color: var(--navy);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.logout-button:hover {
  color: #ffffff;
  background: var(--navy);
}

.login-page {
  padding-bottom: 80px;
}

.login-form {
  max-width: 520px;
}

.login-form [data-secret] {
  -webkit-text-security: disc;
}

.access-dialog textarea {
  min-height: 260px;
  white-space: pre-wrap;
}

.library {
  margin-bottom: 70px;
  padding: 32px 28px 28px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: #f1f7fc;
  scroll-margin-top: 96px;
}

.library-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
}

.library-heading p:last-child,
.library-intro {
  margin: 8px 0 0;
  color: #000000;
}

.library-intro {
  margin-bottom: 18px;
}

.library-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.library-tools input,
.library-tools select {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
}

.library-tools select {
  flex: 0 1 220px;
}

.library-tools input::placeholder {
  color: var(--navy);
  opacity: 1;
}

.library-list {
  display: grid;
  gap: 16px;
}

.library-lesson {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: #ffffff;
  scroll-margin-top: 96px;
}

.post-media {
  margin: 0 27px 16px;
}

.post-media .video-cover {
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: center;
  text-align: center;
}

.post-media .play-button {
  top: 50%;
  left: 50%;
}

.post-library-link {
  margin: 0 27px 22px;
  font-size: 14px;
  font-weight: 700;
}

.post-library-link a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.library-copy {
  min-width: 0;
}

.library-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 14px;
}

.library-meta .content-type {
  margin-bottom: 0;
}

.library-lesson h3 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
}

.library-lesson p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.45;
}

.library-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #1a406f;
}

.library-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.library-player-pending {
  display: grid;
  place-items: center;
  color: #ffffff;
  text-align: center;
}

.library-player-pending p {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.library-empty {
  margin: 8px 0 0;
  text-align: center;
}

.dialog-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

@media (max-width: 820px) {
  .library {
    padding: 22px 16px;
  }

  .library-heading h2 {
    font-size: 28px;
  }

  .library-tools,
  .library-tools .filters {
    width: 100%;
  }

  .library-lesson {
    padding: 12px;
  }

  .library-lesson h3 {
    font-size: 18px;
  }

  .library-tools select {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
