/* Round 5 base: type roles, buttons, card, slip, classified tile, report card, accordion.
   Ported from round5/theme.html component CSS. Every selector is .r5-* so nothing leaks into
   Horizon sections that stay on the old look. No element selectors, no body rules. */

.r5-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--r5-gutter); }
.r5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.r5-btn:focus-visible, .r5-link:focus-visible, .r5-acc summary:focus-visible, .r5-slip__acts button:focus-visible, .r5-card a:focus-visible, .r5-report a:focus-visible { outline: 2px solid var(--r5-red); outline-offset: 3px; }
/* red is 2.57:1 on black, under the 3:1 non-text minimum; gold-l is 11.7:1 */
.r5-on-black .r5-btn:focus-visible, .r5-on-black .r5-link:focus-visible, .r5-on-black a:focus-visible, .r5-on-black button:focus-visible, .r5-on-black summary:focus-visible { outline-color: var(--r5-gold-l); }

/* type roles */
.r5-read { font-family: var(--r5-read); font-size: var(--r5-fs-body); line-height: var(--r5-lh); font-variation-settings: var(--r5-read-vs); color: var(--r5-ink-body); }
.r5-caption { font-family: var(--r5-read); font-style: italic; font-size: var(--r5-fs-small); color: var(--r5-ink-2); margin-top: 8px; line-height: 1.45; }
.r5-disp { color: var(--r5-ink); font-family: var(--r5-disp); font-variation-settings: var(--r5-disp-vs); font-stretch: var(--r5-disp-stretch); font-weight: 800; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }
.r5-poster { color: var(--r5-ink); font-family: var(--r5-poster); font-stretch: 66%; font-weight: 800; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.005em; margin: 0; }
.r5-poster .r5-red { color: var(--r5-red); }
.r5-cap { font-family: var(--r5-ui); font-size: var(--r5-fs-cap); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.r5-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--r5-ui); font-size: var(--r5-fs-cap); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.r5-kicker i { width: 8px; height: 8px; background: var(--r5-red); display: inline-block; flex: none; }
.r5-han { font-family: var(--r5-han); font-weight: 500; }
.r5-lede { font-size: calc(var(--r5-fs-body) + 1px); line-height: var(--r5-lh); max-width: 34em; margin: 18px 0 0; }
.r5-price { color: var(--r5-ink); font-family: var(--r5-disp); font-variation-settings: var(--r5-disp-vs); font-stretch: var(--r5-disp-stretch); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.r5-price small { font-family: var(--r5-ui); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--r5-ink-2); margin-left: 6px; }
.r5-link { font-family: var(--r5-ui); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }

/* buttons: ink primary, red, light-on-black, ghost; sm and block sizes */
.r5-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: var(--r5-bw) solid var(--r5-ink); border-radius: var(--r5-r); background: var(--r5-ink); color: var(--r5-receipt); font-family: var(--r5-ui); font-weight: 700; font-size: 14px; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--r5-sh-press) var(--r5-red); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.r5-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--r5-red); }
.r5-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--r5-red); }
.r5-btn--red { background: var(--r5-red); border-color: var(--r5-red); box-shadow: var(--r5-sh-press) var(--r5-ink); }
.r5-btn--red:hover { background: var(--r5-red-d); box-shadow: 4px 4px 0 var(--r5-ink); }
.r5-btn--light { background: var(--r5-ivory); border-color: var(--r5-ivory); color: var(--r5-ink); }
.r5-btn--ghost { background: transparent; color: var(--r5-ink); box-shadow: none; }
.r5-btn--ghost:hover { background: var(--r5-ink); color: var(--r5-receipt); box-shadow: none; transform: none; }
.r5-btn--sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.r5-btn--block { width: 100%; }
.r5-btn[disabled], .r5-btn[aria-disabled='true'] { opacity: 0.4; pointer-events: none; }

/* paper devices: card, slip, leaders, stamp */
.r5-card { background: var(--r5-sheet); border: var(--r5-bw) solid var(--r5-ink); border-radius: var(--r5-r); position: relative; min-width: 0; }
.r5-receipt { background: var(--r5-receipt); box-shadow: var(--r5-sh-slip); }
.r5-torn { -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/13px 9px repeat-x; mask: linear-gradient(#000 0 0) top/100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/13px 9px repeat-x; }
.r5-slip { position: relative; padding: 24px 24px 34px; font-family: var(--r5-type); font-variation-settings: var(--r5-type-vs); font-weight: var(--r5-type-w); font-size: var(--r5-fs-slip); line-height: 1.55; color: var(--r5-ink); }
.r5-slip__co { text-align: center; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.r5-slip__no { text-align: center; text-transform: uppercase; }
.r5-slip__blank { letter-spacing: 0.05em; }
.r5-slip__wait { font-family: var(--r5-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; margin-top: 18px; }
.r5-slip__sug { font-family: var(--r5-ui); font-size: var(--r5-fs-cap); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.r5-slip__rec { font-family: var(--r5-disp); font-variation-settings: var(--r5-disp-vs); font-stretch: var(--r5-disp-stretch); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.015em; margin: 6px 0 4px; }
.r5-slip__pair { font-weight: 700; text-transform: uppercase; }
.r5-slip__why { margin: 10px 0 0; }
.r5-slip__pic { position: relative; margin: 14px 0 4px; background: var(--r5-tin); }
.r5-slip__pic img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.r5-slip__pic img.r5-cut { object-fit: contain; padding: 12px 0; }
.r5-slip__pic .r5-stamp { position: absolute; right: 12px; top: 12px; background: rgba(251, 250, 246, 0.9); mix-blend-mode: normal; }
.r5-slip__tot { font-weight: 700; }
.r5-slip .r5-btn { margin-top: 18px; }
.r5-slip__acts { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.r5-slip__acts button { font-family: var(--r5-ui); font-size: 14px; font-weight: 600; background: none; border: 0; padding: 4px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: inherit; }
.r5-dash { border: 0; border-top: var(--r5-bw) dashed var(--r5-rule); margin: 12px 0; }
.r5-l { display: flex; gap: 8px; align-items: baseline; }
.r5-l > span:nth-child(2) { flex: 1; border-bottom: 1.5px dotted var(--r5-rule); transform: translateY(-4px); min-width: 14px; }
.r5-l > span:first-child { white-space: nowrap; }
.r5-l > span:last-child { text-align: right; flex: 0 1 auto; min-width: 0; white-space: nowrap; }
.r5-slip .r5-l > span:last-child { white-space: normal; }
.r5-stamp { display: inline-block; font-family: var(--r5-ui); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--r5-red); border: 2.5px solid var(--r5-red); border-radius: var(--r5-r); outline: 1px solid var(--r5-red); outline-offset: 2px; padding: 4px 10px 3px; line-height: 1.05; font-size: 15px; transform: rotate(-8deg); mix-blend-mode: multiply; opacity: 0.88; -webkit-mask-image: var(--r5-noise); mask-image: var(--r5-noise); -webkit-mask-size: 180px; mask-size: 180px; pointer-events: none; }

/* report card (home "three reports", collection) */
.r5-reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--r5-bw) solid var(--r5-ink); }
.r5-report { padding: 26px 26px 30px; border-right: 1px solid var(--r5-ink); display: flex; flex-direction: column; min-width: 0; }
.r5-report:first-child { padding-left: 0; }
.r5-report:last-child { border-right: 0; padding-right: 0; }
.r5-report__pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 3/2.5; }
.r5-report__pics img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.r5-report__pics .r5-report__leaf { grid-row: 1/3; }
.r5-report__pics .r5-report__tin { object-fit: contain; background: var(--r5-tin); padding: 6px 0; }
.r5-report__pics--solo { display: block; }
.r5-report__rk { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin: 18px 0 8px; }
.r5-report__rk > span:first-child { white-space: nowrap; }
.r5-report__title { font-size: var(--r5-fs-d3); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.r5-report__title .r5-han { font-size: 20px; color: var(--r5-red); letter-spacing: 0.06em; }
.r5-report__taste { font-family: var(--r5-read); font-size: 19px; margin: 8px 0 4px; color: var(--r5-ink-body); }
.r5-report__for { font-family: var(--r5-read); font-size: var(--r5-fs-body); color: var(--r5-ink-body); margin: 0 0 18px; line-height: var(--r5-lh); }
.r5-report__buy { margin-top: auto; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--r5-ink); padding-top: 14px; }
.r5-report__buy .r5-link { margin-left: auto; }
@media (max-width: 980px) {
  .r5-reports { grid-template-columns: 1fr; }
  .r5-report { padding: 26px 0 30px !important; border-right: 0; border-bottom: 1px solid var(--r5-ink); }
  .r5-report:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  .r5-report__pics { aspect-ratio: 4/3; }
  .r5-report__buy { flex-wrap: wrap; }
  .r5-report__buy .r5-link { margin-left: 0; order: 3; width: 100%; }
  .r5-report__buy form { margin-left: auto; }
}

/* classified ad tile (home Classifieds, PDP "Goes well with") */
.r5-classi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px 0 0; }
.r5-classi--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.r5-ad { padding: 22px; display: flex; flex-direction: column; }
.r5-ad__no { position: absolute; right: 14px; top: 12px; font-family: var(--r5-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.09em; }
.r5-ad__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: 10px 0 14px; }
.r5-classi--four .r5-ad__img { aspect-ratio: 4/3; }
.r5-ad__title { font-size: var(--r5-fs-d4); margin: 0 0 6px; }
.r5-ad__title a { color: inherit; text-decoration: none; }
.r5-ad__title a:hover, .r5-ad__title a:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.r5-ad__text { font-family: var(--r5-read); font-size: var(--r5-fs-body); margin: 0 0 16px; line-height: var(--r5-lh); color: var(--r5-ink-body); }
.r5-ad__foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.r5-ad__foot form { margin-left: auto; }
.r5-ad__sold { font-family: var(--r5-ui); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--r5-ink); margin-left: auto; }
@media (max-width: 1100px) { .r5-classi, .r5-classi--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .r5-classi, .r5-classi--four { grid-template-columns: 1fr; gap: 12px; }
  .r5-ad { padding: 18px; }
  .r5-ad__no { display: none; }
}

/* accordion */
.r5-acc { margin-top: 22px; border-top: var(--r5-bw) solid var(--r5-ink); }
.r5-acc details { border-bottom: var(--r5-bw) solid var(--r5-ink); }
.r5-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 17px 0; font-family: var(--r5-ui); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--r5-ink); }
.r5-acc summary::-webkit-details-marker { display: none; }
.r5-acc summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; }
.r5-acc details[open] summary::after { content: '\2212'; }
.r5-acc__in { padding: 0 0 20px; font-family: var(--r5-read); font-size: var(--r5-fs-body); line-height: var(--r5-lh); color: var(--r5-ink-body); }
.r5-acc__in p { margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) {
  .r5-btn { transition: none; }
}
