/*!
 * The small templates: default pages, Thank You, Saved, 404 and blog archives.
 * Loaded by get_header( 'sl', array( 'page' => 'utility' ) ); see inc/sl-utility.php.
 * Default pages and archives also load sl-blog.css (article, prose, post cards),
 * Thank You loads sl-editorial.css (.sl-phero). Breakpoints: 1000, 760, 640, 420.
 */

/* ------------------------------------------------------------ sections */
.sl-usec { padding-block: clamp(48px, 6vw, 88px); }
.sl-usec--sand { background: var(--sl-sand); }
.sl-uh2 {
  margin: 0 0 clamp(18px, 2vw, 28px); font-family: var(--sl-font-display); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -.025em; color: var(--sl-ink); text-wrap: balance;
}
.sl-umore { margin: clamp(20px, 2.4vw, 32px) 0 0; font-size: var(--sl-fs-md); line-height: 1.6; color: var(--sl-muted); }
.sl-root .sl-umore a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Page head: Saved, archives */
.sl-uhead { padding: clamp(28px, 3.4vw, 56px) 0 clamp(24px, 3vw, 40px); background: var(--sl-white); }
.sl-uhead .sl-eyebrow { display: block; margin-bottom: 10px; }
.sl-uhead__title {
  margin: 0; font-family: var(--sl-font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04; letter-spacing: -.03em; color: var(--sl-ink); text-wrap: balance; overflow-wrap: break-word;
}
.sl-uhead__lead { max-width: 62ch; margin: 14px 0 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--sl-muted); }
.sl-uhead__sub { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--sl-muted); }
.sl-uhead__sub:empty { display: none; }
.sl-uhead--archive .sl-bcrumbs ol { margin-bottom: clamp(14px, 1.6vw, 22px); }

/* ------------------------------------------------- the four ways to boat */
.sl-catlinks ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 0; padding: 0; list-style: none; }
.sl-catlinks li { display: flex; min-width: 0; }
.sl-root .sl-catlink {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--sl-r-lg); background: var(--sl-white); color: var(--sl-ink);
  box-shadow: 0 1px 2px rgba(16, 25, 33, .06), 0 0 0 1px var(--sl-line);
  transition: box-shadow var(--sl-t) ease, transform var(--sl-t) ease;
}
.sl-root .sl-catlink:hover { color: var(--sl-ink); box-shadow: var(--sl-shadow-hover), 0 0 0 1px var(--sl-line); transform: translateY(-2px); }
.sl-catlink__ico {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--sl-r-pill);
  background: var(--sl-mist); color: var(--sl-teal); transition: background var(--sl-t) ease, color var(--sl-t) ease;
}
.sl-catlink:hover .sl-catlink__ico { background: var(--sl-lime); color: var(--sl-ink); }
.sl-catlink__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sl-catlink__name { font-family: var(--sl-font-display); font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.sl-catlink__n { font-size: var(--sl-fs-xs); font-weight: 600; color: var(--sl-muted); font-variant-numeric: tabular-nums; }
.sl-catlink__arr { flex: 0 0 auto; display: grid; color: var(--sl-teal); transition: transform var(--sl-t) ease; }
.sl-catlink:hover .sl-catlink__arr { transform: translateX(3px); }
@media (max-width: 1000px) { .sl-catlinks ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .sl-catlinks ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sl-root .sl-catlink { padding: 14px 16px; }
  .sl-catlink__ico { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------------ 404 */
.sl-u404 { position: relative; isolation: isolate; overflow: hidden; background: var(--sl-ink); color: var(--sl-white); }
.sl-u404::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 90% at 100% 100%, rgba(217, 253, 111, .32) 0%, rgba(29, 90, 102, .22) 45%, rgba(29, 90, 102, 0) 75%),
    radial-gradient(ellipse 45% 70% at 0% 0%, rgba(29, 90, 102, .45) 0%, rgba(29, 90, 102, 0) 70%);
}
.sl-u404__inner {
  max-width: var(--sl-max); margin: 0 auto; padding: clamp(56px, 7vw, 112px) var(--sl-gutter) clamp(64px, 8vw, 128px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.sl-u404__eyebrow { font-size: var(--sl-fs-2xs); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sl-lime); }
.sl-u404__title {
  margin: 0; font-family: var(--sl-font-display); font-weight: 700; font-size: clamp(42px, 5.4vw, 76px);
  line-height: .98; letter-spacing: -.03em; color: var(--sl-white);
}
.sl-u404__lead { max-width: 52ch; margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(249, 248, 245, .84); }
.sl-u404__search { width: min(100%, 580px); margin-top: 14px; }
.sl-u404__search .sl-search__input { font-size: 16px; -webkit-appearance: none; appearance: none; }
.sl-u404__search .sl-search__input::-webkit-search-cancel-button { display: none; }
@media (max-width: 420px) {
  .sl-u404__search { padding-left: 18px; }
}

/* ------------------------------------------------------------ default pages */
/* No featured image between title and body, so the two columns line up. */
.sl-upage .sl-article__wrap { max-width: var(--sl-max-prose); }
.sl-upage .sl-article__title { font-size: clamp(34px, 4vw, 54px); }
.sl-upage .sl-article__body { padding-top: clamp(24px, 3vw, 40px); }
.sl-upage__spacer { height: clamp(40px, 6vw, 96px); }

/* ------------------------------------------- boating licence by state */
.sl-lic .sl-eyebrow { display: block; margin-bottom: 10px; }
.sl-lic__lede { max-width: 62ch; margin: 14px 0 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--sl-muted); }
.sl-lic .sl-lic__body { max-width: var(--sl-max-prose); }
.sl-lic__note { margin: 0 0 24px; font-size: 14px; line-height: 1.6; color: var(--sl-muted); }
.sl-lic__intro { margin-bottom: 28px; }
.sl-lic__tablewrap { margin: 0 0 clamp(40px, 5vw, 64px); }
.sl-lic__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.sl-lic__table caption { text-align: left; padding: 0 0 12px; font-size: 14px; color: var(--sl-muted); }
.sl-lic__table th, .sl-lic__table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--sl-line); }
.sl-lic__table thead th {
  font-size: var(--sl-fs-2xs); font-weight: 800; letter-spacing: var(--sl-track-eyebrow); text-transform: uppercase;
  color: var(--sl-muted); border-bottom: 2px solid var(--sl-line-strong);
}
.sl-lic__table tbody th { width: 168px; white-space: nowrap; font-weight: 700; }
.sl-lic__table tbody th a { color: var(--sl-teal); text-decoration: underline; text-underline-offset: 3px; }
.sl-lic__table tbody th a:hover { color: var(--sl-ink); }
.sl-lic__state { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--sl-line); scroll-margin-top: 96px; }
.sl-lic__state:last-child { border-bottom: 0; margin-bottom: 0; }
.sl-lic__h2 {
  margin: 0 0 6px; font-family: var(--sl-font-display); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.15; letter-spacing: -0.015em; color: var(--sl-ink);
}
.sl-lic__q { margin: 0 0 10px; font-weight: 700; color: var(--sl-ink); }
.sl-lic__a p { margin: 0 0 12px; line-height: 1.7; color: var(--sl-ink); }
.sl-lic__src { margin: 0 0 10px; font-size: 14px; color: var(--sl-muted); }
.sl-lic__src a, .sl-lic__links a { color: var(--sl-teal); text-decoration: underline; text-underline-offset: 3px; }
.sl-lic__links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) {
  .sl-lic__table, .sl-lic__table tbody, .sl-lic__table tr, .sl-lic__table th, .sl-lic__table td { display: block; }
  .sl-lic__table thead { display: none; }
  .sl-lic__table tr { padding: 12px 0; border-bottom: 1px solid var(--sl-line); }
  .sl-lic__table tbody th { width: auto; white-space: normal; }
  .sl-lic__table th, .sl-lic__table td { border: 0; padding: 2px 0; }
}
/* Empty pages (Login): the main column grows so the footer sits at the bottom of the window. */
body.sl-root:has(.sl-upage__spacer) { display: flex; flex-direction: column; min-height: 100vh; }
body.sl-root:has(.sl-upage__spacer) #sl-main { flex: 1 0 auto; }

/* ------------------------------------------------------------ Thank You */
.sl-phero--thanks .sl-phero__inner { min-height: clamp(440px, 38vw, 560px); gap: 16px; }
.sl-phero--thanks .sl-phero__title { max-width: 12em; font-size: clamp(36px, 4.3vw, 62px); line-height: 1.02; text-wrap: balance; }
.sl-uthanks__sub {
  display: block; max-width: 30em; margin-top: 18px;
  font: 500 clamp(18px, 1.6vw, 23px)/1.45 var(--sl-font-body); letter-spacing: 0; color: rgba(255, 255, 255, .86); text-wrap: pretty;
}
.sl-uthanks__back {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 20px;
  border-radius: var(--sl-r-pill); background: rgba(255, 255, 255, .95); color: var(--sl-ink);
  box-shadow: 0 2px 10px rgba(16, 25, 33, .18); transition: color var(--sl-t) ease, transform var(--sl-t) ease;
}
.sl-uthanks__back[hidden] { display: none; }
.sl-uthanks__back:hover { color: var(--sl-teal); transform: translateX(-2px); }
.sl-uthanks__badge {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--sl-r-pill);
  background: var(--sl-lime); color: var(--sl-ink); box-shadow: 0 10px 30px rgba(217, 253, 111, .25);
}
.sl-uthanks__badge svg { stroke-width: 2.2; }
@media (max-width: 760px) {
  .sl-phero--thanks .sl-phero__title { font-size: 34px; }
  .sl-uthanks__sub { margin-top: 12px; font-size: 17px; }
}

/* ------------------------------------------------------------ Saved */
/* favourites.js builds the cards (.ss-saved__*); these are the new card's looks. */
.sl-usaved { padding: clamp(8px, 1.4vw, 16px) 0 clamp(48px, 6vw, 88px); }
.sl-usaved__intro { max-width: 760px; margin-bottom: clamp(20px, 2.4vw, 32px); font-size: 17px; line-height: 1.65; color: var(--sl-muted); }
.sl-usaved__note { margin: clamp(24px, 3vw, 40px) 0 0; font-size: var(--sl-fs-sm); line-height: 1.6; color: var(--sl-muted); }
.sl-root .sl-usaved__note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ss-saved__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.8vw, 24px);
}
.ss-saved__grid[hidden], .sl-uempty[hidden] { display: none; }
.ss-saved__card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: var(--sl-r-lg); background: var(--sl-white);
  box-shadow: 0 1px 2px rgba(16, 25, 33, .06), 0 0 0 1px var(--sl-line-soft);
  transition: box-shadow var(--sl-t) ease, transform var(--sl-t) ease;
}
.ss-saved__card:hover { box-shadow: var(--sl-shadow-hover), 0 0 0 1px var(--sl-line-soft); transform: translateY(-2px); }
.ss-saved__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sl-line); }
.sl-root .ss-saved__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sl-ease); }
.ss-saved__card:hover .ss-saved__media img { transform: scale(1.05); }
.ss-saved__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 6px; min-width: 0; }
.sl-root .ss-saved__name {
  font-family: var(--sl-font-display); font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  color: var(--sl-ink); overflow-wrap: break-word;
}
.sl-root .ss-saved__name:hover { color: var(--sl-teal); text-decoration: underline; }
.ss-saved__address { margin: 0; font-size: var(--sl-fs-sm); font-weight: 500; line-height: 1.45; color: var(--sl-muted); }
.ss-saved__remove {
  align-self: flex-start; display: inline-flex; align-items: center; height: 36px; margin: 8px 16px 16px; padding: 0 16px;
  border: 1px solid var(--sl-line); border-radius: var(--sl-r-pill); background: var(--sl-white);
  font: 700 var(--sl-fs-xs)/1 var(--sl-font-body); color: var(--sl-ink); cursor: pointer;
  transition: border-color var(--sl-t) ease, color var(--sl-t) ease;
}
.ss-saved__remove:hover { border-color: var(--sl-danger); color: var(--sl-danger); }

.sl-uempty {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: clamp(40px, 5vw, 72px) 24px; border: 1.5px dashed #C9D0CD; border-radius: 22px;
}
.sl-uempty__ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--sl-r-pill); background: var(--sl-lime-tint); color: var(--sl-ink); }
.sl-uempty__title { margin: 4px 0 0; font-family: var(--sl-font-display); font-weight: 700; font-size: 26px; letter-spacing: -.025em; color: var(--sl-ink); }
.sl-uempty__text { max-width: 44ch; margin: 0; font-size: var(--sl-fs-md); line-height: 1.6; color: var(--sl-muted); }
.sl-uempty .sl-btn { margin-top: 8px; }

/* ------------------------------------------------------------ archives, /?s= */
.sl-uarchive .sl-bgrid__head { padding-bottom: clamp(12px, 1.6vw, 20px); }
.sl-root .sl-usearch-posts { background: var(--sl-white); border-top: 1px solid var(--sl-line); }
.sl-usearch-posts .sl-blog-h2 { overflow-wrap: anywhere; }
