/* swim/styles v=2026-09-25.13 — unified drill finder table */

#swimHubPage,
#swimArticleListing,
#swimArticlePage,
#swimNewsPage,
#swimDonationPage,
#swimSupportListing,
.swim-promo {
  --swim-blue: #0789df;
  --swim-blue-dark: #056caf;
  --swim-blue-soft: #eaf7ff;
  --swim-ink: #142a42;
  --swim-muted: #52697f;
  --swim-line: #c9ddeb;
  --swim-surface: #ffffff;
  --swim-success: #0b7850;
  color: var(--swim-ink);
}

#swimHubPage *,
#swimHubPage *::before,
#swimHubPage *::after,
#swimArticleListing *,
#swimArticleListing *::before,
#swimArticleListing *::after,
#swimArticlePage *,
#swimArticlePage *::before,
#swimArticlePage *::after,
#swimNewsPage *,
#swimNewsPage *::before,
#swimNewsPage *::after,
#swimDonationPage *,
#swimDonationPage *::before,
#swimDonationPage *::after,
#swimSupportListing *,
#swimSupportListing *::before,
#swimSupportListing *::after {
  box-sizing: border-box;
}

#swimHubPage,
#swimArticleListing,
#swimArticlePage,
#swimNewsPage,
#swimDonationPage,
#swimSupportListing {
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(circle at 8% 0%, rgba(7, 137, 223, 0.12), transparent 30rem),
    linear-gradient(180deg, #f7fbfe 0%, #eef7fc 100%);
}

#swimHubPage h1,
#swimHubPage h2,
#swimHubPage h3,
#swimArticleListing h1,
#swimArticleListing h2,
#swimArticleListing h3,
#swimArticlePage h1,
#swimArticlePage h2,
#swimArticlePage h3,
#swimNewsPage h1,
#swimNewsPage h2,
#swimNewsPage h3,
#swimDonationPage h1,
#swimDonationPage h2,
#swimDonationPage h3,
#swimSupportListing h1,
#swimSupportListing h2,
#swimSupportListing h3 {
  color: var(--swim-ink);
  font-family: "Philosopher", Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

#swimHubPage p,
#swimArticleListing p,
#swimArticlePage p,
#swimNewsPage p,
#swimDonationPage p,
#swimSupportListing p {
  color: var(--swim-muted);
}

.swim-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.swim-eyebrow {
  margin: 0 0 9px;
  color: var(--swim-blue) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.swim-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--swim-blue);
  border-radius: 10px;
  background: var(--swim-blue);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 137, 223, 0.16);
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.swim-button:hover,
.swim-button:focus-visible {
  border-color: var(--swim-blue-dark);
  background: var(--swim-blue-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.swim-button--soft {
  background: #ffffff;
  color: var(--swim-blue-dark);
  box-shadow: none;
}

.swim-button--soft:hover,
.swim-button--soft:focus-visible {
  background: var(--swim-blue-soft);
  color: var(--swim-blue-dark);
}

/* Library */
#swimArticleListing .swim-library {
  padding: 58px 0 80px;
}

#swimHubPage .swim-page-heading,
#swimArticleListing .swim-page-heading,
#swimDonationPage .swim-page-heading,
#swimSupportListing .swim-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

#swimHubPage .swim-page-heading > div:first-child,
#swimArticleListing .swim-page-heading > div:first-child,
#swimDonationPage .swim-page-heading > div:first-child,
#swimSupportListing .swim-page-heading > div:first-child {
  max-width: 780px;
}

#swimHubPage .swim-page-heading h1,
#swimArticleListing .swim-page-heading h1,
#swimDonationPage .swim-page-heading h1,
#swimSupportListing .swim-page-heading h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.swim-page-heading__lead {
  max-width: 740px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.swim-page-heading__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 4px;
}

#swimArticleListing .swim-category-heading {
  margin: 0 0 26px;
  padding: 22px 26px;
  border: 1px solid #b9dcf2;
  border-left: 5px solid var(--swim-blue);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 75, 112, 0.07);
}

#swimArticleListing .swim-category-heading h2 {
  margin: 0;
  font-size: 30px;
}

#swimArticleListing .swim-category-heading > p:last-child:not(.swim-eyebrow) {
  margin: 9px 0 0;
}

#swimArticleListing .swim-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#swimArticleListing .swim-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--swim-line);
  border-radius: 18px;
  background: var(--swim-surface);
  box-shadow: 0 12px 30px rgba(25, 75, 112, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#swimArticleListing .swim-card:hover {
  border-color: #9dcce9;
  box-shadow: 0 18px 38px rgba(25, 75, 112, 0.14);
  transform: translateY(-3px);
}

#swimArticleListing .swim-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfeef7;
}

#swimArticleListing .swim-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

#swimArticleListing .swim-card:hover .swim-card__media img {
  transform: scale(1.025);
}

#swimArticleListing .swim-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

#swimArticleListing .swim-card__meta {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #70859a;
  font-size: 12px;
  font-weight: 700;
}

#swimArticleListing .swim-card__meta span {
  display: inline-flex;
  max-width: 65%;
  align-items: center;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--swim-blue-soft);
  color: var(--swim-blue-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#swimArticleListing .swim-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.16;
}

#swimArticleListing .swim-card h2 a {
  color: var(--swim-ink);
  text-decoration: none;
}

#swimArticleListing .swim-card h2 a:hover,
#swimArticleListing .swim-card h2 a:focus-visible {
  color: var(--swim-blue-dark);
}

#swimArticleListing .swim-card__excerpt {
  display: -webkit-box;
  margin-top: 13px;
  overflow: hidden;
  color: var(--swim-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#swimArticleListing .swim-card__excerpt br,
#swimArticleListing .swim-card__excerpt img,
#swimArticleListing .swim-card__excerpt iframe,
#swimArticleListing .swim-card__excerpt video,
#swimArticleListing .swim-card__excerpt style,
#swimArticleListing .swim-card__excerpt script {
  display: none !important;
}

#swimArticleListing .swim-card__excerpt p,
#swimArticleListing .swim-card__excerpt div,
#swimArticleListing .swim-card__excerpt span {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

#swimArticleListing .swim-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--swim-blue-dark);
  font-weight: 900;
  text-decoration: none;
}

#swimArticleListing .swim-card__link:hover,
#swimArticleListing .swim-card__link:focus-visible {
  color: var(--swim-blue);
  text-decoration: underline;
}

.swim-pagination {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid var(--swim-line);
  border-radius: 14px;
  background: #ffffff;
}

.swim-pagination p {
  margin: 0;
  font-weight: 800;
}

.swim-pagination div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.swim-pagination a,
.swim-pagination strong {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #b9d8eb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--swim-blue-dark);
  text-decoration: none;
}

.swim-pagination strong,
.swim-pagination a:hover,
.swim-pagination a:focus-visible {
  border-color: var(--swim-blue);
  background: var(--swim-blue);
  color: #ffffff;
}

.swim-empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed #afd2e8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.swim-empty-state i {
  color: var(--swim-blue);
  font-size: 34px;
}

.swim-empty-state h2 {
  margin: 16px 0 0;
  font-size: 30px;
}

.swim-empty-state p {
  margin: 9px 0 0;
}

/* Article and news reader */
#swimArticlePage,
#swimNewsPage {
  padding: 34px 20px 76px;
}

.swim-reader-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

/* Drill finders contain seven-column legacy tables and need a wider reader. */
#swimArticlePage .swim-reader-shell[data-article="freestyle-drills-finder"] {
  width: min(1280px, 100%);
}

.swim-breadcrumb {
  margin-bottom: 20px;
}

.swim-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--swim-blue-dark);
  font-weight: 800;
  text-decoration: none;
}

.swim-breadcrumb a:hover,
.swim-breadcrumb a:focus-visible {
  color: var(--swim-blue);
  text-decoration: underline;
}

.swim-reader {
  overflow: hidden;
  border: 1px solid var(--swim-line);
  border-radius: 24px;
  background: var(--swim-surface);
  box-shadow: 0 20px 50px rgba(25, 75, 112, 0.11);
}

#swimArticlePage .swim-reader__header,
#swimNewsPage .swim-reader__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 !important;
  padding: clamp(27px, 3.3vw, 38px) clamp(28px, 4vw, 46px);
  border-top: 5px solid var(--swim-blue);
  border-bottom: 1px solid #cfe3f0;
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 137, 223, 0.11), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f7fcff 68%, #edf8ff 100%);
}

#swimArticlePage .swim-reader__header::before,
#swimNewsPage .swim-reader__header::before {
  display: none;
}

#swimArticlePage .swim-reader__header::after,
#swimNewsPage .swim-reader__header::after {
  display: none;
}

#swimArticlePage .swim-reader__header > *,
#swimNewsPage .swim-reader__header > * {
  position: relative;
  z-index: 1;
}

#swimArticlePage .swim-reader__header .swim-eyebrow,
#swimNewsPage .swim-reader__header .swim-eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--swim-blue-dark) !important;
  letter-spacing: 0.14em;
}

#swimArticlePage .swim-reader__header h1,
#swimNewsPage .swim-reader__header h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: 920px;
  margin: 0;
  color: var(--swim-ink);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.025em;
  text-shadow: none;
}

#swimArticlePage .swim-reader__meta,
#swimNewsPage .swim-reader__meta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid #c9e4f4;
  border-radius: 999px;
  background: #eaf7ff;
  color: #49677f !important;
  font-size: 13px;
  font-weight: 800;
}

.swim-entry-content {
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
  color: #263d53;
  font-size: 17px;
  line-height: 1.75;
}

#swimArticlePage .swim-reader-shell[data-article="freestyle-drills-finder"] .swim-entry-content {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  padding: clamp(24px, 4vw, 48px);
}

.swim-entry-content > *:first-child {
  margin-top: 0 !important;
}

.swim-entry-content > *:last-child {
  margin-bottom: 0 !important;
}

.swim-entry-content p {
  margin: 0 0 1.25em;
  color: #334d65 !important;
  line-height: inherit;
}

.swim-entry-content h2,
.swim-entry-content h3,
.swim-entry-content h4 {
  scroll-margin-top: 90px;
}

.swim-entry-content h2 {
  margin: 1.7em 0 0.55em;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6e7f1;
  font-size: clamp(29px, 4vw, 39px);
  line-height: 1.15;
}

.swim-entry-content h3 {
  margin: 1.5em 0 0.5em;
  font-size: 27px;
}

.swim-entry-content h4 {
  margin: 1.35em 0 0.45em;
  font-size: 22px;
}

.swim-entry-content a {
  color: var(--swim-blue-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.swim-entry-content a:hover,
.swim-entry-content a:focus-visible {
  color: var(--swim-blue);
}

.swim-entry-content ul,
.swim-entry-content ol {
  margin: 1em 0 1.4em;
  padding-left: 1.35em;
}

.swim-entry-content li {
  margin: 0.45em 0;
}

.swim-entry-content li::marker {
  color: var(--swim-blue);
  font-weight: 800;
}

.swim-entry-content blockquote {
  margin: 1.7em 0;
  padding: 22px 24px;
  border-left: 5px solid var(--swim-blue);
  border-radius: 0 14px 14px 0;
  background: var(--swim-blue-soft);
  color: var(--swim-ink);
  font: italic 700 22px/1.5 "Philosopher", Georgia, serif;
}

.swim-entry-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 24px auto;
  border-radius: 14px;
}

/* Legacy lesson illustrations are stored inside floated Bootstrap figures.
   Keep them centred and compact on small screens. */
#swimArticlePage .swim-reader .swim-entry-content figure.figure {
  display: block !important;
  float: none !important;
  width: min(100%, 350px) !important;
  max-width: 100%;
  padding: 0 !important;
  margin: 28px auto 38px !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

#swimArticlePage .swim-reader .swim-entry-content figure.figure > a {
  display: block;
  width: 100%;
}

#swimArticlePage .swim-reader .swim-entry-content figure.figure img.figure-img {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  border: 1px solid #c9ddea;
  box-shadow: 0 9px 22px rgba(17, 66, 101, 0.1);
}

#swimArticlePage .swim-reader .swim-entry-content figure.figure figcaption {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  margin-top: 9px;
  color: #60778c;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center !important;
}

.swim-entry-content video,
.swim-entry-content iframe {
  display: block;
  max-width: 100%;
  margin: 24px auto;
  border: 0;
  border-radius: 14px;
}

/* Legacy article video markup uses Bootstrap columns that become too narrow.
   Expand only columns that actually contain a video wrapper. */
#swimArticlePage .swim-entry-content .container:has(.thumb-wrap) {
  width: 100%;
  max-width: 100%;
  margin: 24px auto;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

#swimArticlePage .swim-entry-content .container:has(.thumb-wrap) > .row {
  margin-right: 0;
  margin-left: 0;
}

#swimArticlePage .swim-entry-content .row > [class*="col-"]:has(.thumb-wrap) {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-right: 0;
  padding-left: 0;
}

#swimArticlePage .swim-entry-content .thumb-wrap {
  position: relative;
  width: min(100%, 820px);
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  padding-bottom: 0;
  overflow: hidden;
  border: 1px solid #c9ddea;
  border-radius: 15px;
  background: #071b2b;
  box-shadow: 0 12px 28px rgba(17, 66, 101, 0.13);
}

#swimArticlePage .swim-entry-content .thumb-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* Bootstrap's responsive-sm wrapper scrolls only at its small breakpoint.
   Article tables must remain contained at every viewport width. */
.swim-entry-content .table-responsive,
.swim-entry-content .table-responsive-sm,
.swim-entry-content .table-responsive-md,
.swim-entry-content .table-responsive-lg,
.swim-entry-content .table-responsive-xl {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.swim-entry-content .table-responsive > table,
.swim-entry-content .table-responsive-sm > table,
.swim-entry-content .table-responsive-md > table,
.swim-entry-content .table-responsive-lg > table,
.swim-entry-content .table-responsive-xl > table {
  min-width: 880px;
  margin: 0;
}

#swimArticlePage .swim-reader-shell[data-article="freestyle-drills-finder"]
  .table-responsive-sm > table {
  display: table;
  min-width: 820px;
  overflow: visible;
  white-space: normal;
}

.swim-entry-content table {
  width: 100%;
  margin: 24px 0;
  overflow: hidden;
  border-collapse: separate;
  border: 1px solid var(--swim-line);
  border-spacing: 0;
  border-radius: 12px;
}

.swim-entry-content th,
.swim-entry-content td {
  padding: 11px 13px;
  border-right: 1px solid #dbe9f2;
  border-bottom: 1px solid #dbe9f2;
  text-align: left;
  vertical-align: top;
}

.swim-entry-content th {
  background: var(--swim-blue);
  color: #ffffff;
}

.swim-entry-content tr:last-child td {
  border-bottom: 0;
}

.swim-entry-content th:last-child,
.swim-entry-content td:last-child {
  border-right: 0;
}

.swim-entry-content .accordion {
  margin: 24px 0;
}

.swim-entry-content .accordion-item {
  overflow: hidden;
  border-color: var(--swim-line);
}

.swim-entry-content .accordion-button {
  color: var(--swim-ink);
  font-weight: 800;
}

.swim-entry-content .accordion-button:not(.collapsed) {
  background: var(--swim-blue-soft);
  color: var(--swim-blue-dark);
}

.swim-reader-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 clamp(28px, 5vw, 56px);
  padding: 20px 0;
  border-top: 1px solid #d6e7f1;
}

.swim-reader-pagination p {
  margin: 0;
  font-weight: 800;
}

.swim-reader-pagination a {
  color: var(--swim-blue-dark);
  font-weight: 800;
}

#swimArticlePage .swim-reader > footer.swim-reader__footer,
#swimNewsPage .swim-reader > footer.swim-reader__footer {
  display: flex;
  width: 100%;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 26px clamp(28px, 5vw, 56px) 36px !important;
  border: 0 !important;
  border-top: 1px solid #d6e7f1 !important;
  border-radius: 0;
  background: linear-gradient(135deg, #f8fbfd 0%, #eef8fe 100%);
}

.swim-reader__footer .swim-eyebrow {
  margin-bottom: 10px;
}

.swim-promo {
  padding: 0 0 72px;
  background: #eef7fc;
}

/* Swimming resources hub */
#swimHubPage .swim-hub,
#swimSupportListing .swim-support {
  padding: 58px 0 80px;
}

#swimHubPage .swim-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#swimHubPage .swim-resource-card {
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--swim-line);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 13px 32px rgba(25, 75, 112, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#swimHubPage .swim-resource-card:hover {
  border-color: #9dcce9;
  box-shadow: 0 18px 40px rgba(25, 75, 112, 0.14);
  transform: translateY(-3px);
}

#swimHubPage .swim-resource-card--featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 137, 223, 0.14), transparent 17rem),
    #ffffff;
}

#swimHubPage .swim-resource-card__icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--swim-blue);
  color: #ffffff;
  font-size: 21px;
  box-shadow: 0 9px 20px rgba(7, 137, 223, 0.2);
}

#swimHubPage .swim-resource-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

#swimHubPage .swim-resource-card > p:not(.swim-eyebrow) {
  margin: 14px 0 0;
  line-height: 1.65;
}

#swimHubPage .swim-resource-card > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--swim-blue-dark);
  font-weight: 900;
  text-decoration: none;
}

#swimHubPage .swim-resource-card > a:hover,
#swimHubPage .swim-resource-card > a:focus-visible {
  color: var(--swim-blue);
  text-decoration: underline;
}

#swimHubPage .swim-hub-library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 26px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 20px;
  background: linear-gradient(135deg, #087dca, #045a98);
  box-shadow: 0 18px 42px rgba(4, 90, 152, 0.2);
}

#swimHubPage .swim-hub-library > div {
  max-width: 720px;
}

#swimHubPage .swim-hub-library h2,
#swimHubPage .swim-hub-library p,
#swimHubPage .swim-hub-library .swim-eyebrow {
  color: #ffffff !important;
}

#swimHubPage .swim-hub-library h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

#swimHubPage .swim-hub-library > div > p:last-child {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Support library */
#swimSupportListing .swim-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#swimSupportListing .swim-guide-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--swim-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(25, 75, 112, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#swimSupportListing .swim-guide-card:hover {
  border-color: #9dcce9;
  box-shadow: 0 18px 38px rgba(25, 75, 112, 0.14);
  transform: translateY(-3px);
}

#swimSupportListing .swim-guide-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px 22px;
  border-bottom: 1px solid #d6e8f3;
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 137, 223, 0.15), transparent 10rem),
    #eef8ff;
  color: var(--swim-blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#swimSupportListing .swim-guide-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--swim-blue);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(7, 137, 223, 0.22);
}

#swimSupportListing .swim-guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

#swimSupportListing .swim-guide-card h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.16;
}

#swimSupportListing .swim-guide-card h2 a {
  color: var(--swim-ink);
  text-decoration: none;
}

#swimSupportListing .swim-guide-card h2 a:hover,
#swimSupportListing .swim-guide-card h2 a:focus-visible {
  color: var(--swim-blue-dark);
}

#swimSupportListing .swim-guide-card__excerpt {
  display: -webkit-box;
  margin-top: 13px;
  overflow: hidden;
  color: var(--swim-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#swimSupportListing .swim-guide-card__excerpt br,
#swimSupportListing .swim-guide-card__excerpt img,
#swimSupportListing .swim-guide-card__excerpt iframe,
#swimSupportListing .swim-guide-card__excerpt video,
#swimSupportListing .swim-guide-card__excerpt style,
#swimSupportListing .swim-guide-card__excerpt script {
  display: none !important;
}

#swimSupportListing .swim-guide-card__excerpt p,
#swimSupportListing .swim-guide-card__excerpt div,
#swimSupportListing .swim-guide-card__excerpt span {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

#swimSupportListing .swim-guide-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--swim-blue-dark);
  font-weight: 900;
  text-decoration: none;
}

#swimSupportListing .swim-guide-card__link:hover,
#swimSupportListing .swim-guide-card__link:focus-visible {
  color: var(--swim-blue);
  text-decoration: underline;
}

#swimSupportListing .swim-support-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--swim-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(25, 75, 112, 0.07);
}

#swimSupportListing .swim-support-contact > span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--swim-blue);
  color: #ffffff;
  font-size: 21px;
}

#swimSupportListing .swim-support-contact h2 {
  margin: 0;
  font-size: 30px;
}

#swimSupportListing .swim-support-contact p:last-child {
  margin: 8px 0 0;
}

/* Donation */
#swimDonationPage {
  padding: 58px 0 80px;
}

#swimDonationPage .swim-page-heading--support {
  max-width: 900px;
}

#swimDonationPage .swim-donation-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--swim-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(25, 75, 112, 0.11);
}

#swimDonationPage .swim-donation-card__content > h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
}

#swimDonationPage .swim-donation-card__content > p:not(.swim-eyebrow) {
  max-width: 720px;
  margin: 17px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

#swimDonationPage .swim-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 30px;
}

#swimDonationPage .swim-support-grid article {
  padding: 22px;
  border: 1px solid #d1e5f1;
  border-radius: 15px;
  background: #f7fbfe;
}

#swimDonationPage .swim-support-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--swim-blue);
  color: #ffffff;
}

#swimDonationPage .swim-support-grid h3 {
  margin: 14px 0 0;
  font-size: 22px;
}

#swimDonationPage .swim-support-grid p {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

#swimDonationPage .swim-donation-box {
  padding: 28px;
  border: 1px solid #a9d3ed;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(7, 137, 223, 0.14), transparent 15rem),
    #eef8ff;
}

#swimDonationPage .swim-donation-box__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--swim-blue);
  color: #ffffff;
  font-size: 21px;
  box-shadow: 0 9px 20px rgba(7, 137, 223, 0.22);
}

#swimDonationPage .swim-donation-box h2 {
  margin: 0;
  font-size: 31px;
}

#swimDonationPage .swim-donation-box > p:not(.swim-eyebrow) {
  margin: 13px 0 0;
  line-height: 1.65;
}

#swimDonationPage #paypal-container-4PTSEVZY8SHUN {
  min-height: 48px;
  margin-top: 24px;
}

#swimDonationPage .swim-donation-box__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #c7dfed;
  font-size: 12px;
}

#swimDonationPage .swim-donation-box__note i {
  margin-top: 3px;
  color: var(--swim-success);
}

#swimDonationPage .swim-support-thanks {
  margin: 26px 0 0;
  text-align: center;
  font-weight: 800;
}

/* On desktop the instructional screenshots should use more of the reader width.
   Mobile and tablet keep the original compact 350px presentation. */
@media (min-width: 981px) {
  #swimArticlePage .swim-reader .swim-entry-content figure.figure {
    width: min(100%, 500px) !important;
    margin-top: 32px !important;
    margin-bottom: 44px !important;
  }
}

@media (max-width: 980px) {
  #swimHubPage .swim-resource-grid,
  #swimArticleListing .swim-card-grid,
  #swimSupportListing .swim-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #swimDonationPage .swim-donation-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #swimHubPage .swim-hub,
  #swimArticleListing .swim-library,
  #swimSupportListing .swim-support,
  #swimDonationPage {
    padding-top: 38px;
  }

  #swimHubPage .swim-page-heading,
  #swimArticleListing .swim-page-heading,
  #swimDonationPage .swim-page-heading,
  #swimSupportListing .swim-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  #swimHubPage .swim-hub-library {
    align-items: flex-start;
    flex-direction: column;
  }

  #swimSupportListing .swim-support-contact {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #swimSupportListing .swim-support-contact .swim-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .swim-page-heading__actions {
    justify-content: flex-start;
  }

  .swim-reader__footer,
  .swim-reader-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .swim-shell {
    width: min(100% - 24px, 1180px);
  }

  #swimHubPage .swim-resource-grid,
  #swimArticleListing .swim-card-grid,
  #swimSupportListing .swim-guide-grid,
  #swimDonationPage .swim-support-grid {
    grid-template-columns: 1fr;
  }

  #swimHubPage .swim-page-heading h1,
  #swimArticleListing .swim-page-heading h1,
  #swimDonationPage .swim-page-heading h1,
  #swimSupportListing .swim-page-heading h1 {
    font-size: 44px;
  }

  #swimHubPage .swim-resource-card {
    min-height: 0;
    padding: 24px;
  }

  #swimHubPage .swim-hub-library,
  #swimSupportListing .swim-support-contact {
    padding: 24px;
  }

  #swimSupportListing .swim-support-contact {
    grid-template-columns: 1fr;
  }

  #swimSupportListing .swim-support-contact .swim-button {
    grid-column: auto;
  }

  .swim-page-heading__actions {
    display: grid;
    width: 100%;
  }

  .swim-button {
    width: 100%;
  }

  #swimArticlePage,
  #swimNewsPage {
    padding: 24px 12px 52px;
  }

  .swim-reader {
    border-radius: 17px;
  }

  #swimArticlePage .swim-reader__header,
  #swimNewsPage .swim-reader__header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 20px 24px;
    border-top-width: 4px;
  }

  #swimArticlePage .swim-reader__header .swim-eyebrow,
  #swimNewsPage .swim-reader__header .swim-eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  #swimArticlePage .swim-reader__header h1,
  #swimNewsPage .swim-reader__header h1 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(31px, 9vw, 39px);
  }

  #swimArticlePage .swim-reader__meta,
  #swimNewsPage .swim-reader__meta {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 5px;
  }

  .swim-entry-content {
    font-size: 16px;
  }

  #swimArticlePage .swim-reader > footer.swim-reader__footer,
  #swimNewsPage .swim-reader > footer.swim-reader__footer {
    padding: 24px 20px 30px !important;
  }

  .swim-entry-content table {
    display: block;
    overflow-x: auto;
  }

  .swim-entry-content .table-responsive > table,
  .swim-entry-content .table-responsive-sm > table,
  .swim-entry-content .table-responsive-md > table,
  .swim-entry-content .table-responsive-lg > table,
  .swim-entry-content .table-responsive-xl > table {
    display: table;
    overflow: visible;
  }

  #swimDonationPage .swim-donation-card {
    padding: 24px;
    border-radius: 17px;
  }

  #swimDonationPage .swim-donation-box {
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swim-button,
  #swimHubPage .swim-resource-card,
  #swimArticleListing .swim-card,
  #swimArticleListing .swim-card__media img,
  #swimSupportListing .swim-guide-card {
    transition: none;
  }
}

/* =========================================================
   FREESTYLE DRILLS FINDER — UNIFIED TABLE
   The article body contains legacy light-green/light-blue cells.
   Override them only on this finder page.
   ========================================================= */

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  .table-responsive-sm {
  border: 1px solid var(--swim-line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 75, 112, 0.08);
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--swim-ink);
  font-size: 15px;
  line-height: 1.5;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 15px 13px;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, #0789df, #0677c2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
  vertical-align: middle;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td {
  padding: 14px 13px;
  border-color: #dbe8f0;
  background: #ffffff !important;
  color: #29445c;
  vertical-align: top;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table tbody tr:nth-child(even) td {
  background: #f7fbfe !important;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table tbody tr:hover td {
  background: #eef8fe !important;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table th:first-child,
#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td:first-child {
  width: 64px;
  text-align: center;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td.light-green {
  background: #eaf7ff !important;
  color: var(--swim-blue-dark);
  font-weight: 900;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table tbody tr:nth-child(even) td.light-green {
  background: #e2f3fd !important;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td.light-blue {
  min-width: 118px;
  background: #f1f9fe !important;
  text-align: center;
  vertical-align: middle;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td.light-blue a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid #9ecfeb;
  border-radius: 9px;
  background: #ffffff;
  color: var(--swim-blue-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(7, 137, 223, 0.08);
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td.light-blue a::after {
  content: "\2192";
  margin-left: 6px;
}

#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td.light-blue a:hover,
#swimArticlePage
  .swim-reader-shell[data-article="freestyle-drills-finder"]
  table.table td.light-blue a:focus-visible {
  border-color: var(--swim-blue);
  background: var(--swim-blue);
  color: #ffffff;
}

@media (max-width: 620px) {
  #swimArticlePage
    .swim-reader-shell[data-article="freestyle-drills-finder"]
    table.table {
    font-size: 14px;
  }

  #swimArticlePage
    .swim-reader-shell[data-article="freestyle-drills-finder"]
    table.table th,
  #swimArticlePage
    .swim-reader-shell[data-article="freestyle-drills-finder"]
    table.table td {
    padding: 11px 10px;
  }
}
