.roger-notes-page .content,
.roger-notes-page .content_inner {
  background: #f6f6f6;
}

.roger-notes-main {
  --rn-text: #202124;
  --rn-muted: #72757a;
  --rn-line: #e5e5e5;
  --rn-accent: #b4372f;
  box-sizing: border-box;
  min-height: 60vh;
  padding: clamp(48px, 7vw, 88px) 20px 80px;
  background: #f6f6f6;
  color: var(--rn-text);
  font-family: inherit;
}

/* Bridge uses an overlay header on desktop. Keep every Notes view below it. */
@media (min-width: 1001px) {
  .roger-notes-main {
    padding-top: clamp(132px, 12vw, 156px);
  }
}

.roger-notes-main *,
.roger-notes-main *::before,
.roger-notes-main *::after { box-sizing: border-box; }

.roger-notes-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.roger-notes-header {
  padding: 0 0 42px;
  border-bottom: 1px solid var(--rn-line);
  text-align: center;
}

.roger-notes-header .roger-notes-kicker {
  margin: 0 0 7px;
  color: var(--rn-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
}

.roger-notes-header h1 {
  margin: 0;
  color: var(--rn-text);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .08em;
}

.roger-notes-header > p:last-child {
  margin: 13px 0 0;
  color: var(--rn-muted);
  font-size: 15px;
  line-height: 1.6;
}

.roger-note-card {
  position: relative;
  margin: 0;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--rn-line);
}

.roger-note-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.roger-note-card__author,
.roger-note-card__header time {
  display: inline;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.roger-note-card__author { color: var(--rn-text); font-weight: 600; }
.roger-note-card__header time { margin-left: 8px; color: var(--rn-muted); }

.roger-note-card__title {
  margin: 0 0 16px;
  color: var(--rn-text);
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

.roger-note-card__title a { color: inherit; text-decoration: none; }
.roger-note-card__title a:hover { color: var(--rn-accent); }

.roger-note-card__image {
  display: block;
  overflow: hidden;
  margin: 0 0 21px;
  border-radius: 3px;
  background: #f4f4f2;
}

.roger-note-card__image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.roger-note-card__content {
  color: var(--rn-text);
  font-size: 17px;
  line-height: 1.85;
}

.roger-note-card__content > :first-child { margin-top: 0; }
.roger-note-card__content > :last-child { margin-bottom: 0; }
.roger-note-card__content p { margin: 0 0 1.2em; }
.roger-note-card__content img { max-width: 100%; height: auto; }
.roger-note-card__content a { color: var(--rn-accent); text-decoration: underline; text-underline-offset: 2px; }

.roger-note-card__excerpt {
  margin: 0;
  color: var(--rn-text);
  font-size: 17px;
  line-height: 1.85;
}

.roger-note-card__details { margin-top: 13px; }
.roger-note-card__details summary {
  width: fit-content;
  color: var(--rn-accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.roger-note-card__details summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.roger-note-card__details[open] summary { margin-bottom: 18px; }
.roger-note-card__collapse-label { display: none; }
.roger-note-card__details[open] .roger-note-card__expand-label { display: none; }
.roger-note-card__details[open] .roger-note-card__collapse-label { display: inline; }

.roger-notes-gallery {
  position: relative;
  width: 100%;
  margin: 1.5em 0;
}

/* No-JavaScript fallback: every image remains visible in document order. */
.roger-notes-gallery__slide {
  width: 100%;
  margin: 0 0 18px;
}

.roger-notes-gallery__media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.roger-notes-gallery__caption {
  margin: 9px 0 0;
  color: var(--rn-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.roger-notes-gallery__button,
.roger-notes-gallery__counter { display: none; }

.roger-notes-gallery.is-enhanced .roger-notes-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #f4f4f2;
  touch-action: pan-y;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transition: transform .28s ease;
  will-change: transform;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__media {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__media a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__caption {
  min-height: 38px;
  margin: 0;
  padding: 9px 54px 10px;
  background: #fff;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__button {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  outline-offset: 3px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
  color: var(--rn-text);
  font: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__button--previous { left: 12px; }
.roger-notes-gallery.is-enhanced .roger-notes-gallery__button--next { right: 12px; }
.roger-notes-gallery.is-enhanced .roger-notes-gallery__button:disabled {
  opacity: .28;
  cursor: default;
}
.roger-notes-gallery.is-enhanced .roger-notes-gallery__button:focus-visible {
  outline: 2px solid var(--rn-accent);
}

.roger-notes-gallery.is-enhanced .roger-notes-gallery__counter {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: block;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(24, 24, 24, .74);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.roger-note-card__external { margin: 20px 0 0; }
.roger-note-card__external a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--rn-line);
  border-radius: 3px;
  color: var(--rn-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.roger-note-card__external a:hover { border-color: #aaa; }

.roger-note-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.roger-note-card__tags li { margin: 0; padding: 0; }
.roger-note-card__tags a { color: var(--rn-muted); font-size: 13px; text-decoration: none; }
.roger-note-card__tags a:hover { color: var(--rn-accent); }

.roger-note-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 23px;
}

.roger-note-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  outline-offset: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--rn-muted);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}

.roger-note-action:hover,
.roger-note-action:focus-visible { color: var(--rn-text); background: transparent; }
.roger-note-action > .fa { width: 16px; font-size: 15px; line-height: 1; text-align: center; }
.roger-note-like > span:first-child { font-size: 23px; line-height: .8; }
.roger-note-like.is-liked { color: var(--rn-accent); }
.roger-note-like.is-liked > span:first-child { font-size: 0; }
.roger-note-like.is-liked > span:first-child::after { content: "♥"; font-size: 20px; }
.roger-note-like.is-loading { opacity: .55; }

.roger-note-share { position: relative; }
.roger-note-share__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: 148px;
  padding: 6px;
  border: 1px solid var(--rn-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(0, 0, 0, .11);
}

.roger-note-share__menu[hidden] { display: none; }
.roger-note-share__menu a,
.roger-note-share__menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  color: var(--rn-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.roger-note-share__menu a:hover,
.roger-note-share__menu button:hover { background: #f5f5f3; }

.roger-notes-pagination { padding: 34px 0 0; }
.roger-notes-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.roger-notes-pagination .page-numbers {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--rn-line);
  color: var(--rn-text);
  font-size: 13px;
  text-decoration: none;
}
.roger-notes-pagination .current { border-color: var(--rn-text); background: var(--rn-text); color: #fff; }

.roger-notes-back { margin: 0 0 13px; }
.roger-notes-back a { color: var(--rn-muted); font-size: 13px; text-decoration: none; }
.roger-notes-single .roger-note-card { padding-top: 16px; }
.roger-notes-single .roger-note-card__title { font-size: clamp(26px, 5vw, 38px); }

.roger-notes-comments { padding: 40px 0 0; }
.roger-notes-comments #comments { margin: 0; }
.roger-notes-comments .comment-list { margin-left: 0; padding-left: 0; }
.roger-notes-comments textarea,
.roger-notes-comments input[type="text"],
.roger-notes-comments input[type="email"],
.roger-notes-comments input[type="url"] { max-width: 100%; border: 1px solid #d8d8d8; background: #fff; }
.roger-notes-comments input[type="submit"] { border: 0; background: var(--rn-text); color: #fff; }
.roger-notes-empty { padding: 45px 0; color: var(--rn-muted); text-align: center; }

@media (max-width: 600px) {
  .roger-notes-main { padding: 36px 10% 60px; }
  .roger-notes-header { padding-bottom: 31px; }
  .roger-note-card { padding: 29px 0 24px; }
  .roger-note-card__content { font-size: 16px; line-height: 1.78; }
  .roger-note-actions { gap: 22px; }
  .roger-note-share__menu { right: 0; left: auto; }
  .roger-notes-gallery.is-enhanced .roger-notes-gallery__button {
    width: 36px;
    height: 36px;
    font-size: 30px;
  }
  .roger-notes-gallery.is-enhanced .roger-notes-gallery__button--previous { left: 8px; }
  .roger-notes-gallery.is-enhanced .roger-notes-gallery__button--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .roger-note-action { transition: none; }
  .roger-notes-gallery.is-enhanced .roger-notes-gallery__track { transition: none; }
}
