/* Round 7 (Henry, 2026-11-17): charter-rates. Loaded after every other stylesheet; see includes/header.php. */

/* The body block: the old 1226 px container with 15 px sides (1196 px of content, 360 px on a phone); every paragraph in it is
   15.6 px lines with 20 px under. */
.p7-cms { max-width: 1226px; margin: 0 auto; }
.p7-col { padding: 0 15px; }
.p7-cms p { margin: 0 0 20px; line-height: 15.6px; }

/* Photo slider: the old 420 px navy band, the photo cropped to fill, dots only. */
.p7-slider-band { background: #2b3990 url(../img/newloan/rates/main-bg.jpg) 50% 50% / cover no-repeat; color: #fff; padding: 0; position: relative; }
.p7-slider-container { max-width: 1226px; margin: 0 auto; padding: 0; }
.p7-slider { position: relative; }
.p7-stage-outer { position: relative; overflow: hidden; }
.p7-stage { position: relative; display: block; width: 1100%; transform: translateX(-27.2727%); transition: transform .25s ease; }
.p7-stage::after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.p7-item { float: left; width: calc(100% / 11); position: relative; }
.p7-item .slide img { display: block; width: 100%; height: 420px; object-fit: cover; }
.p7-dots { position: absolute; left: 0; right: 0; bottom: 11px; height: 23px; line-height: 1; text-align: center; }
.p7-dot { display: inline-block; position: relative; box-sizing: border-box; width: 20px; height: 20px; margin: 0 6px; border: 1px solid #000; border-radius: 50%;
  background: linear-gradient(#cacbcd, #f3f3f3); cursor: pointer; }
.p7-dot::before { content: ""; display: none; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: #000; }
.p7-dot.active::before { display: block; }
@media (max-width: 767px) { .p7-item .slide img { height: 220px; } }

/* Season tabs: side by side at equal width on phones, as the old redesign.css does below 768 px. */
.charter-rates .season-tab { line-height: 1.5; }
.charter-rates .season-tab small { line-height: 1.5; }
@media (max-width: 767px) { .charter-rates .season-tab { flex: 1 1 0; min-width: 0; } }

/* Text and table line heights as the old page (1.5 of each size). */
.charter-rates { line-height: 1.5; }
.charter-rates table { max-width: 100%; }
.charter-rates table td { line-height: 1.5; }
.charter-rates table tr:not(:first-child) td, .charter-rates table tr:nth-child(odd):not(:first-child) td { background: transparent; }
.charter-rates table tr:nth-child(odd) { background: rgba(0, 0, 0, .05); }
.charter-rates h4.charter-season { line-height: 1.2; }
@media (max-width: 767px) { .charter-rates h4.charter-season { font-size: 20px; } .charter-rates h4.charter-season small { font-size: 16px; } }

/* Footnotes: 10.4 px lines 15.6 px apart (the paragraph rule above), 20 px below. */

/* The two photos above the footer: square, no shadow; side by side at 588 x 412 on desktop, each at its own shape on phones. */
.p7-cms p.p7-pair { display: flex; gap: 20px; margin: 24px 0 20px; }
.p7-cms p.charter-cta { margin: 20px 0 10px; }
.p7-pair img { display: block; flex: 0 0 calc(50% - 10px); width: calc(50% - 10px); height: 412px; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
.p7-pair img + img { border: 0; }
@media (max-width: 767px) {
  .p7-cms p.p7-pair { display: block; margin-top: 0; }
  .p7-pair img { width: 100%; height: auto; margin: 12px 0; object-fit: fill; }
  .p7-pair img + img { border: 1px solid #333; }
}

/* Buttons: centred, one line each on desktop, as the old .btn. */
@media (min-width: 576px) { .charter-cta a { text-align: center; white-space: nowrap; } }
/* The footnote paragraph is 13 px like the old one (its text sits in a <small>, but the paragraph sets the line height). */
.charter-rates p.rates-footnote { font-size: 13px; }
