/* Module 05: four rectangular editorial files, with no nested cards. */
.runner-field-notes {
  --heading: #293c45;
  --copy: #46545a;
  --muted: #647980;
  --accent: #397b94;
  padding: 36px 0;
  background: #f7f6f2;
  border: none;
  color: var(--copy);
}
.field-notes-eyebrow { color: #527f91; font-size: 12px; line-height: 18px; letter-spacing: 1px; margin-bottom: 8px; }
.field-notes-heading h2 { font: 400 32px/44px var(--serif); color: var(--heading); letter-spacing: 1px; }
.field-notes-subtitle { margin-top: 6px; font-size: 14px; line-height: 28px; color: var(--muted); }
.field-notes-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 28px; }
.field-note {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #eeefec;
}
.field-note:nth-child(1) { background: #e5eff4; }
.field-note:nth-child(4) { background: #f0e8df; }
.field-note-kicker { display: flex; gap: 12px; align-items: baseline; color: #6c8179; font-size: 12px; line-height: 18px; }
.field-note-kicker > span:first-child { color: var(--accent); letter-spacing: 1px; }
.field-note .field-note-kicker { justify-content: space-between; align-items: center; color: #527f91; }
.field-note .field-note-kicker > span:first-child { color: #527f91; }
.field-note-number { color: #9ab3bc; font: 400 40px/42px var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.field-note h3 { margin: 6px 0 0; color: var(--heading); font: 500 22px/32px var(--serif); }
.field-note-anchor { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 20px; align-items: center; min-height: 140px; margin-top: 14px; }
.note-preview { position: relative; width: 110px; height: 110px; min-width: 0; overflow: hidden; justify-self: end; border: none; border-radius: 0; box-shadow: none; }
.field-note .note-preview img { position: absolute; display: block; max-width: none; max-height: none; object-fit: cover; border: none; border-radius: 0; box-shadow: none; }
/* Reproduce each source image placement inside its 110px Figma clipping frame. */
.note-preview--portion img { left: 0; top: -26px; width: 110.25px; height: 147px; }
.note-preview--training img { left: 0; top: -26px; width: 119px; height: 158px; }
.note-preview--repeat img { left: 0; top: -18px; width: 109.5px; height: 146px; }
.note-preview--days img { left: -13px; top: 0; width: 147px; height: 111px; }
.note-anchor-reading { min-width: 0; }
.note-core-number { color: var(--accent); font: 400 44px/54px var(--serif); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.note-core-number > span, .note-core-number > data > span { font-size: 22px; }
.note-core-number > .note-core-slash { font-size: 28px; color: #647980; }
.note-core-number > .note-days-unit { font-size: 22px; letter-spacing: 1px; }
.note-anchor-caption { font-size: 12px; line-height: 20px; color: var(--muted); margin-top: 6px; }
.note-training-pair { display: grid; grid-template-columns: max-content max-content; gap: 20px; align-items: start; }
.note-training-pair > div { display: flex; flex-direction: column; min-width: 0; }
.note-training-pair dt { order: 1; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 20px; }
.field-note-summary { margin-top: 14px; color: var(--copy); font-size: 14px; line-height: 1.75; }
.field-note-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 22px; }
.field-note-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; color: var(--muted); }
.field-note-sports { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: 11px; line-height: 22px; }
.field-note-sports > div { display: flex; align-items: baseline; gap: 0; white-space: nowrap; }
.field-note-sports dt { order: 1; }
.field-note-sports dt, .field-note-sports dd { margin: 0; }
.field-note-sports data { font-variant-numeric: tabular-nums; }
.note-read-link { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
.note-read-link:hover { text-decoration: underline; }
.field-note-reader { box-sizing: border-box; color: var(--copy); background: #faf9f6; border: 0; padding: 0; max-width: 760px; width: 100%; margin: 32px auto 0; }
/* Open non-modal dialogs provide complete reading when JavaScript is disabled. */
.field-note-reader[open] { display: block; position: static; }
.note-reader-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 32px; border-bottom: 1px solid #dce4de; color: #697e74; font-size: 12px; line-height: 20px; }
.note-reader-top form { margin: 0; }
.note-reader-close { display: none; align-items: center; gap: 6px; min-height: 36px; border: 0; padding: 4px 8px; color: #536c62; background: transparent; cursor: pointer; font-size: 13px; }
.note-reader-close > span { font-size: 22px; font-weight: 300; }
.note-reader-content { padding: 28px 40px 36px; }
.note-reader-content h3 { color: var(--heading); font: 500 28px/40px var(--serif); margin: 10px 0 12px; }
.note-reader-editing { color: #7b847c; font-size: 12px; line-height: 20px; }
.note-reader-background { margin-top: 24px; padding-block: 16px; border-block: 1px solid #dce4de; }
.note-reader-background h4 { margin: 0 0 6px; font-size: 13px; line-height: 22px; font-weight: 500; color: var(--accent); }
.note-reader-background p, .note-reader-prose { font-size: 16px; line-height: 30px; }
.note-reader-prose { margin-top: 24px; }
.note-reader-prose > p + p { margin-top: 16px; }
.note-reader-quote { margin: 24px 0; padding-left: 18px; border-left: 1px solid #a8c2b5; color: var(--accent); font: 400 20px/32px var(--serif); }
.note-reader-photo { margin: 26px auto; max-width: 520px; }
.note-reader-photo--training { max-width: 440px; }
.note-reader-photo img { display: block; width: 100%; height: auto; }
.note-reader-photo figcaption { font-size: 12px; line-height: 20px; color: #7b847c; margin-top: 8px; }
.note-reader-boundary { color: #617b6e; font-size: 13px; line-height: 24px; }
.note-reader-source { border-top: 1px solid #dce4de; margin-top: 24px; padding-top: 14px; font-size: 12px; line-height: 20px; color: #7b847c; }
.has-note-dialogs .field-note-reader { width: min(760px,calc(100% - 48px)); max-width: none; height: min(420px,calc(100dvh - 64px)); max-height: calc(100dvh - 64px); margin: auto; overflow: hidden; }
.has-note-dialogs .field-note-reader[open] { display: flex; flex-direction: column; position: fixed; inset: 0; }
.has-note-dialogs .field-note-reader::backdrop { background: rgb(30 44 38 / 48%); }
.has-note-dialogs .note-reader-top { flex-shrink: 0; }
.has-note-dialogs .note-reader-close { display: inline-flex; }
.has-note-dialogs .note-reader-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
/* Desktop cards share the viewport; reduce open space before reducing reading space. */
@media (min-width: 901px) {
  .runner-field-notes {
    --note-preview-height: clamp(64px,calc(50svh - 345px),140px);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-block: clamp(24px,3svh,40px);
  }
  .runner-field-notes > .shell { flex: 1; display: flex; flex-direction: column; }
  .field-notes-heading { flex-shrink: 0; }
  .field-notes-grid { flex: 1; grid-template-rows: repeat(2,minmax(min-content,1fr)); margin-top: clamp(18px,2.5svh,28px); gap: clamp(16px,2.2svh,24px); }
  .field-note { padding: clamp(20px,calc(5svh - 20px),28px); }
  .field-note .field-note-kicker { position: relative; padding-right: 52px; }
  .field-note-number { position: absolute; top: 0; right: 0; }
  .field-note h3 { padding-right: 44px; }
  .field-note-anchor { flex: 1; min-height: var(--note-preview-height); margin-top: clamp(10px,1.3svh,14px); }
  .field-note-summary { margin-top: clamp(10px,1.3svh,14px); }
  .field-note-footer { padding-top: clamp(10px,1.3svh,16px); }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .field-note-anchor { gap: 16px; }
  .note-training-pair { gap: 12px; }
  .note-training-pair .note-core-number { font-size: 36px; line-height: 46px; }
  .note-training-pair .note-core-number > data > span { font-size: 17px; }
}
@media (max-width: 900px) {
  .field-notes-heading h2 { font-size: 24px; line-height: 34px; font-weight: 500; letter-spacing: 0; }
  .field-notes-subtitle { font-size: 14px; line-height: 26px; }
  .field-notes-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .field-note-anchor { min-height: 0; margin-top: 20px; }
  .field-note-summary { margin-top: 20px; }
  .field-note-footer { padding-top: 24px; }
}
@media (max-width: 480px) {
  .field-notes-heading h2 { text-wrap: balance; }
  .field-note { padding: 22px 20px; }
  .field-note-kicker { font-size: 12px; }
  .field-note-number { font-size: 36px; line-height: 40px; }
  .field-note h3 { font-size: 22px; line-height: 32px; }
  .field-note-anchor { grid-template-columns: minmax(0,1fr) 110px; gap: 12px; }
  .note-core-number { font-size: 40px; line-height: 50px; }
  .note-core-number > span, .note-core-number > data > span, .note-core-number > .note-days-unit { font-size: 18px; }
  .note-core-number > .note-core-slash { font-size: 24px; }
  .note-training-pair { gap: 12px; }
  .note-training-pair .note-core-number { font-size: 30px; line-height: 40px; }
  .note-training-pair .note-core-number > data > span { font-size: 14px; }
  .has-note-dialogs .field-note-reader { width: calc(100% - 24px); height: min(420px,calc(100dvh - 32px)); max-height: calc(100dvh - 32px); }
  .note-reader-top { padding: 12px 18px; }
  .note-reader-content { padding: 22px 20px 28px; }
  .note-reader-content h3 { font-size: 24px; line-height: 36px; }
  .note-reader-background p, .note-reader-prose { font-size: 15px; line-height: 28px; }
}

@media (max-width: 360px) {
  .field-note-anchor { grid-template-columns: minmax(0,1fr); row-gap: 16px; }
  .note-training-pair { gap: 10px; }
  .note-training-pair .note-core-number { font-size: 26px; line-height: 36px; }
  .note-training-pair .note-core-number > data > span { font-size: 12px; }
}

/* Shared original-feedback reader: account identity, platform history and original text. */
.profile-feedback-reader { --heading: #293c45; --copy: #46545a; --accent: #397b94; }
.profile-feedback-reader .note-reader-top { justify-content: flex-end; padding: 8px 18px 0; border: 0; }
.profile-feedback-reader .note-reader-content { padding: 8px 36px 28px; }
.reader-profile { display: flex; align-items: center; gap: 18px; padding: 8px 0 24px; }
.reader-avatar { display: block; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; object-fit: contain; }
.reader-profile-details { min-width: 0; }
.profile-feedback-reader .reader-profile h3 { margin: 0 0 12px; font: 500 18px/26px system-ui,"Microsoft YaHei",sans-serif; overflow-wrap: anywhere; }
.reader-profile-sports { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.reader-profile-sports > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.reader-profile-sports dt { color: #748088; font-size: 12px; line-height: 20px; }
.reader-profile-sports dd { color: #46545a; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.reader-original-body { position: relative; isolation: isolate; min-height: 240px; padding: 24px; overflow: hidden; }
.reader-prose-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .07; pointer-events: none; }
.profile-feedback-reader .note-reader-prose { margin: 0; font-size: 14px; line-height: 27px; overflow-wrap: anywhere; }
.reader-original-record > p { margin: 0; }
.reader-original-record > p + p { margin-top: 14px; }
.reader-original-record + .reader-original-record { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgb(100 121 128 / 15%); }
.profile-feedback-reader .reader-record-date { margin-bottom: 12px; font-size: 12px; line-height: 20px; color: #748088; }
.profile-feedback-reader .note-reader-source { margin-top: 20px; padding-top: 12px; border-color: rgb(100 121 128 / 15%); color: #748088; }
.reader-source-status { margin-top: 4px; }
@media (max-width: 480px) {
  .profile-feedback-reader .note-reader-top { padding: 6px 10px 0; }
  .profile-feedback-reader .note-reader-content { padding: 8px 20px 24px; }
  .reader-profile { align-items: flex-start; gap: 12px; padding-bottom: 20px; }
  .reader-avatar { flex-basis: 52px; width: 52px; height: 52px; }
  .profile-feedback-reader .reader-profile h3 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
  .reader-profile-sports { gap: 4px 14px; }
  .reader-profile-sports > div { column-gap: 6px; }
  .reader-profile-sports dd { font-size: 12px; }
  .reader-original-body { margin-inline: -8px; padding: 18px 12px; min-height: 200px; }
  .profile-feedback-reader .note-reader-prose { font-size: 14px; line-height: 26px; }
}

/* Text-only feedback readers. */
.profile-feedback-reader .reader-original-body { min-height: 0; padding: 0; margin-inline: 0; }
