/* Fishing Reports: the list (/fishing-reports/) and one report (/fishing-reports/<slug>/).
   Figma: list 227:4 (1440) and 227:109 (390); report 228:6 (1440) and 228:108 (390).
   Pages are written by site-src/build-blog.mjs. Classes are prefixed rep-. */

.page-reports { --ink: #000942; --muted: #5a5f78; --light: #ebecf5;
  /* Coral for text on white: deeper than --action so 15px text reaches 4.5:1. */
  --link: #c2331f; }
/* These frames draw the header on the deeper navy, with the breadcrumb row on --dark under it. */

/* Focus ring on the light sections (the site-wide ring is white). */
.rep-list :focus-visible, .rep-main :focus-visible, .rep-more :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 6px #fff; }

/* ---------- breadcrumb ---------- */
.rep-crumb { background: var(--dark); font-size: 14px; line-height: 20px; letter-spacing: .02em; }
.rep-crumb ol { display: flex; padding-block: 14px; white-space: nowrap; }
.rep-crumb li { flex: none; }
.rep-crumb li + li::before { content: "/"; margin-inline: .85em; }
.rep-crumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rep-crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- text hero (list) ---------- */
.rep-hero { background: var(--deep); }
.rep-hero__in { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 560px); justify-content: space-between; gap: 40px; padding-block: 80px 81px; }
.rep-h1 { font-size: clamp(44px, 4.445vw, 64px); line-height: .9; }
.rep-hero__lead { margin-top: 8px; font-size: 18px; line-height: 1.55; }

/* ---------- trip tabs ---------- */
.rep-tabs { display: flex; gap: 40px; border-bottom: 1px solid #fff; }
.rep-tabs button { margin-bottom: -1px; padding: 8px 0 9px; border-bottom: 3px solid transparent; font: 500 16px/23px var(--body); white-space: nowrap; }
.rep-tabs button:hover { border-bottom-color: #fff; }
.rep-tabs button[aria-pressed="true"] { font-weight: 600; border-bottom-color: var(--accent); }

/* ---------- report cards ---------- */
.rep-list { background: #fff; color: var(--text); padding-block: 72px 120px; }
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 20px; }
.rep-card { display: block; }
.rep-card__photo { display: block; aspect-ratio: 413 / 280; overflow: hidden; background: var(--dark); }
.rep-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rep-card:hover .rep-card__photo img { transform: scale(1.03); }
.rep-card__photo--none { display: grid; place-items: center; }
.rep-card__photo--none img.rep-card__logo { width: 166px; height: auto; object-fit: contain; transform: none; }
.rep-card__meta { display: block; margin-top: 20px; font: 500 13px/19px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rep-card__title { max-width: 400px; margin-top: 10px; font: 600 21px/1.35 var(--body); color: var(--ink); }
.rep-card:hover .rep-card__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.rep-card__more { display: inline-block; margin-top: 13px; font: 500 15px/22px var(--body); color: var(--link); }

.rep-btn { display: inline-flex; align-items: center; justify-content: center; width: 262px; min-height: 60px; padding: 16px; border: 1.5px solid var(--ink); color: var(--ink);
  font: 500 15px/1.45 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: center; transition: background-color .2s, color .2s; }
.rep-btn:hover { background: var(--ink); color: #fff; }
.rep-list .rep-btn[data-older] { margin-top: 64px; }
.rep-link { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font: 500 15px/22px var(--body); color: var(--link); }
.rep-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* no reports yet */
.rep-list--empty { padding-block: 96px 112px; }
.rep-empty__title { font: 600 21px/1.35 var(--body); color: var(--ink); }
.rep-empty__text { max-width: 560px; margin-top: 10px; font-size: 18px; line-height: 1.6; }
.rep-empty__text a { text-decoration: underline; text-underline-offset: 3px; }
.rep-empty__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; }

/* ---------- booking strip ---------- */
.rep-strip { background: var(--deep); }
.rep-strip__in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-block: 100px; }
.rep-strip h2 { font-size: clamp(40px, 4.445vw, 64px); line-height: 1; }
.rep-strip p { margin-top: 14px; font-size: 18px; line-height: 26px; }
.rep-strip .btns { flex: none; flex-wrap: nowrap; gap: 12px; margin-top: 8px; }
.rep-strip .btns .btn { width: 280px; }

/* ---------- one report ---------- */
.rep-title { background: var(--deep); padding-block: 88px 72px; }
.rep-title__meta { font: 500 14px/20px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.rep-title__h1 { max-width: 1100px; margin-top: 18px; font-size: clamp(40px, 5vw, 72px); line-height: .9; overflow-wrap: break-word; }
.rep-photo { height: 600px; background: var(--dark); overflow: hidden; }
.rep-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.rep-main { background: #fff; color: var(--text); padding-block: 96px; }
.rep-main__grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 440px); grid-template-rows: auto auto 1fr; justify-content: space-between; column-gap: 40px; }
.rep-body { grid-column: 1; grid-row: 1 / 4; min-width: 0; font-size: 20px; line-height: 1.7; overflow-wrap: break-word; }
/* Details and the Request a booking button stay in view beside a long post (moves down while the header is showing). */
.rep-side { grid-column: 2; grid-row: 1 / 4; align-self: start; position: sticky; top: calc(24px + var(--hdr-vis, 0px)); transition: top .25s ease; }
.rep-details { padding: 32px 32px 0; background: var(--light); }
.rep-book { display: flex; flex-direction: column; align-items: flex-start; padding: 24px 32px 21px; background: var(--light); }
.rep-book--alone { padding-top: 32px; }
.rep-book .btn { width: 100%; }
.rep-book .rep-link { margin-top: 1px; }
.rep-details h2 { font-size: 32px; line-height: 1; color: var(--ink); }
.rep-details dl { margin-top: 16px; border-top: 1px solid var(--ink); }
.rep-details dl div { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: baseline; padding: 12px 0 11px; border-bottom: 1px solid var(--ink); }
.rep-details dt { font: 500 13px/19px var(--body); color: var(--muted); }
.rep-details dd { font-size: 16px; line-height: 23px; }

/* the report text: whatever the client's editor produced, already cleaned by the build */
.rep-body > :first-child { margin-top: 0; }
.rep-body p, .rep-body ul, .rep-body ol, .rep-body blockquote, .rep-body figure, .rep-body hr { margin-top: 28px; }
.rep-body h2, .rep-body h3, .rep-body h4 { margin-top: 40px; font: 600 24px/1.35 var(--body); color: var(--ink); }
.rep-body h3 { font-size: 20px; }
.rep-body h4 { font-size: 18px; }
.rep-body h2 + *, .rep-body h3 + *, .rep-body h4 + * { margin-top: 14px; }
.rep-body ul, .rep-body ol { padding-left: 1.3em; }
.rep-body ul { list-style: disc; }
.rep-body ol { list-style: decimal; }
.rep-body li + li { margin-top: 8px; }
.rep-body li > ul, .rep-body li > ol { margin-top: 8px; }
.rep-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rep-body a:hover { color: var(--link); }
.rep-body blockquote { padding-left: 20px; border-left: 3px solid var(--action); }
.rep-body hr { border: 0; border-top: 1px solid var(--ink); }
.rep-body img { width: auto; max-width: 100%; height: auto; max-height: 760px; }
.rep-body p > img + img, .rep-body p > br + img { margin-top: 16px; }
.rep-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- more reports ---------- */
.rep-more { background: var(--light); color: var(--text); padding-block: 96px; }
.rep-more__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rep-more h2 { font-size: clamp(36px, 3.89vw, 56px); line-height: .92; color: var(--ink); }
.rep-more__all { flex: none; margin-block: -11px; }
.rep-grid--more { margin-top: 40px; }
.rep-grid--more .rep-card__photo { aspect-ratio: 413 / 260; }
.rep-grid--more .rep-card__title { font-size: 20px; }
.rep-more--only { padding-block: 40px; }
.rep-more--only .rep-more__all { margin-block: 0; }

/* =============== small desktop =============== */
@media (max-width: 1279px) {
  .rep-strip__in { flex-direction: column; gap: 28px; padding-block: 80px; }
  .rep-strip .btns { margin-top: 0; }
  .rep-main__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); column-gap: 56px; }
}

/* =============== tablet and phone =============== */
@media (max-width: 1023px) {
  .rep-crumb a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
  .rep-hero__in { display: block; padding-block: 56px; }
  .rep-hero__lead { max-width: 620px; margin-top: 20px; }
  .rep-tabs button { min-height: 44px; }
  .rep-list { padding-block: 56px 80px; }
  .rep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; }
  .rep-title { padding-block: 56px 48px; }
  .rep-photo { height: 420px; }
  .rep-main { padding-block: 56px 64px; }
  .rep-main__grid { display: flex; flex-direction: column; }
  .rep-side { display: contents; }   /* phones and tablets: details above the text, the button after it */
  .rep-book { order: 1; }
  .rep-details { padding: 20px; }
  .rep-details h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rep-details dl { margin-top: 0; border-top: 0; }
  .rep-details dl div { grid-template-columns: 90px minmax(0, 1fr); padding: 10px 0 9px; }
  .rep-details dl div:first-child { padding-top: 10px; }
  .rep-details dt { font-size: 12px; line-height: 17px; }
  .rep-details dd { font-size: 15px; line-height: 22px; }
  .rep-body { margin-top: 28px; }
  .rep-details + .rep-body { margin-top: 28px; }
  .rep-book, .rep-book--alone { margin-top: 28px; padding: 0; background: none; }
  .rep-book .btn { max-width: 376px; }
  .rep-book .rep-link { margin-top: 8px; }
  .rep-more { padding-block: 64px; }
  .rep-grid--more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =============== phone =============== */
@media (max-width: 767px) {
  .page-reports main .wrap { padding-inline: 24px; }

  /* the breadcrumb moves into the hero; a report page has none on phones (the list link is under "More fishing reports") */
  .rep-crumb { background: var(--deep); font-size: 12px; line-height: 17px; letter-spacing: 0; }
  .rep-crumb ol { padding-block: 24px 0; }
  .rep-crumb li + li::before { margin-inline: .6em; }
  .rep-crumb a { margin-block: -14px; }
  .rep-crumb--report { display: none; }
  .rep-hero__in { padding-block: 12px 32px; }
  .rep-hero__lead { margin-top: 13px; font-size: 16px; }

  .rep-tabs { gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .rep-tabs::-webkit-scrollbar { display: none; }
  .rep-tabs button { position: relative; padding: 4px 0 5px; font-size: 15px; line-height: 22px; }
  .rep-tabs button::before { content: ""; position: absolute; inset: 0 -12px; }   /* wider tap area */

  .rep-list { padding-block: 32px 48px; }
  .rep-grid { grid-template-columns: 1fr; gap: 36px; }
  .rep-card__photo { aspect-ratio: 342 / 210; }
  .rep-card__meta { margin-top: 16px; font-size: 12px; line-height: 17px; }
  .rep-card__title { max-width: none; margin-top: 8px; font-size: 19px; }
  .rep-card__more { margin-top: 11px; }
  .rep-btn { width: 100%; min-height: 56px; font-size: 14px; }
  .rep-list .rep-btn[data-older] { margin-top: 36px; }
  .rep-list--empty { padding-block: 48px 56px; }
  .rep-empty__title { font-size: 19px; }
  .rep-empty__text { font-size: 16px; }
  .rep-empty__links { margin-top: 24px; }

  .rep-strip__in { display: block; padding-block: 48px; }
  .rep-strip p { margin-top: 12px; font-size: 15px; line-height: 1.55; }
  .rep-strip .btns { flex-direction: column; gap: 12px; margin-top: 20px; }
  .rep-strip .btns .btn { flex: none; width: 100%; font-size: 14px; }

  .rep-title { padding-block: 32px 33px; }
  .rep-title__meta { font-size: 12px; line-height: 17px; }
  .rep-title__capt { display: none; }
  .rep-title__h1 { margin-top: 12px; line-height: .92; }
  .rep-photo { height: 240px; }
  .rep-main { padding-block: 32px 48px; }
  .rep-body { font-size: 17px; line-height: 1.65; }
  .rep-body p, .rep-body ul, .rep-body ol, .rep-body blockquote, .rep-body figure, .rep-body hr { margin-top: 20px; }
  .rep-body h2, .rep-body h3, .rep-body h4 { margin-top: 32px; font-size: 20px; }
  .rep-body h3 { font-size: 18px; }
  .rep-body h4 { font-size: 16px; }
  .rep-body h2 + *, .rep-body h3 + *, .rep-body h4 + * { margin-top: 12px; }
  .rep-body > :first-child { margin-top: 0; }
  .rep-book .btn { max-width: none; font-size: 14px; }

  /* more reports: a plain list of titles */
  .rep-more { padding-block: 48px; }
  .rep-more__head { display: contents; }
  .rep-more .wrap { display: flex; flex-direction: column; align-items: flex-start; }
  .rep-grid--more { order: 2; width: 100%; grid-template-columns: 1fr; gap: 0; margin-top: 20px; border-bottom: 1px solid var(--ink); }
  .rep-grid--more li { border-top: 1px solid var(--ink); }
  .rep-grid--more .rep-card { padding: 16px 0 20px; }
  .rep-grid--more .rep-card__photo, .rep-grid--more .rep-card__more { display: none; }
  .rep-grid--more .rep-card__meta { margin-top: 0; }
  .rep-grid--more .rep-card__title { margin-top: 6px; font-size: 17px; }
  .rep-more__all { order: 3; margin-block: 12px -11px; }
  .rep-more--only { padding-block: 24px; }
  .rep-more--only .rep-more__all { margin-block: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rep-side { transition: none; }
  .rep-card:hover .rep-card__photo img { transform: none; }
}
