/* =========================================================
   Sand Dollar Boat Tours — silo.css
   Supplemental styles for location hubs, pillar pages & blog.
   Reuses the tokens + design language from styles.css / tour.css.
   ========================================================= */

/* ---------- Internal-link / "related" cards ---------- */
.relgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.relcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 56px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.relcard::after {
  content: "→";
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-weight: 700;
  color: var(--coral);
  transition: transform .35s, color .35s;
}
.relcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.relcard:hover::after { transform: translateX(6px); }
.relcard__ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--aqua-2), var(--aqua));
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.relcard__k {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--deep);
  line-height: 1.25;
}
.relcard__d { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.relcard--dark { background: var(--deep); border-color: rgba(255,255,255,.1); }
.relcard--dark .relcard__k { color: #fff; }
.relcard--dark .relcard__d { color: rgba(255,253,246,.78); }

/* ---------- Audience ("who it's for") cards ---------- */
.audgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.audcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-2);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.audcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.audcard:nth-child(2) { border-top-color: var(--coral); }
.audcard:nth-child(3) { border-top-color: var(--sun); }
.audcard:nth-child(4) { border-top-color: var(--aqua); }
.audcard__ic { font-size: 1.7rem; margin-bottom: 10px; display: block; }
.audcard h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--deep);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.audcard p { color: var(--muted); font-size: .97rem; }

/* ---------- Stat strip ---------- */
.statstrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  text-align: center;
}
.statstrip__item b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--coral);
  line-height: 1.05;
}
.statstrip__item span { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* ---------- Blog article ---------- */
.thero--post { min-height: 52vh; }
.thero--post .thero__title { max-width: 17ch; }

.article { background: var(--paper); }
.article__wrap {
  max-width: 760px;
  margin: 0 auto;
}
.article__lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
}
.article__body > h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--deep);
  margin: 40px 0 14px;
  line-height: 1.2;
  scroll-margin-top: 100px;
}
.article__body > h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--teal);
  margin: 26px 0 10px;
}
.article__body p { margin-bottom: 18px; color: var(--ink); font-size: 1.06rem; line-height: 1.78; }
.article__body a { color: var(--teal-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.article__body a:hover { color: var(--coral); }
.article__body ul, .article__body ol { margin: 0 0 20px 4px; }
.article__body ul li, .article__body ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}
.article__body ul li::before {
  content: "🐚";
  position: absolute; left: 0; top: 1px;
  font-size: .95rem;
}
.article__body ol { counter-reset: li; }
.article__body ol li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px;
  display: grid; place-items: center;
  background: var(--teal-2); color: #fff;
  border-radius: 50%; font-size: .8rem; font-weight: 700;
}
.article__body blockquote {
  margin: 26px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--coral);
  background: var(--sand);
  border-radius: 0 12px 12px 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--deep);
}
.article__body figure { margin: 28px 0; }
.article__body figure img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.article__body figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ---- AIO / reference content: data tables, key-facts box, direct-answer callout ---- */
.article__body .tablewrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.article__body table {
  width: 100%; min-width: 480px; border-collapse: collapse; font-size: .97rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.article__body .tablewrap table { box-shadow: var(--shadow-md); }
.article__body table caption {
  caption-side: top; text-align: left; font-family: var(--display); font-weight: 700;
  color: var(--deep); font-size: 1.04rem; margin-bottom: 10px; padding-left: 2px;
}
.article__body thead th {
  background: var(--teal); color: #fff; font-family: var(--display); font-weight: 700;
  text-align: left; padding: 11px 14px; font-size: .9rem; vertical-align: bottom;
}
.article__body tbody td {
  padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink);
  line-height: 1.55; vertical-align: top;
}
.article__body tbody tr:nth-child(even) td { background: var(--sand); }
.article__body tbody td:first-child { font-weight: 700; color: var(--deep); }

/* Key-facts "at a glance" box — an AIO-extractable summary */
.kf {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal-2);
  border-radius: var(--radius); padding: 20px 24px; margin: 4px 0 30px; box-shadow: var(--shadow-md);
}
.kf__title {
  font-family: var(--display); font-weight: 800; color: var(--deep);
  font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.kf dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 18px; margin: 0; }
.kf dt { font-weight: 700; color: var(--teal-2); font-size: .98rem; }
.kf dd { margin: 0; color: var(--ink); font-size: .99rem; line-height: 1.5; }

/* Direct-answer callout — the concise answer AIO can lift verbatim */
.tldr {
  background: var(--sand); border-radius: var(--radius); border-left: 4px solid var(--coral);
  padding: 15px 20px; margin: 0 0 26px; font-size: 1.07rem; line-height: 1.7; color: var(--deep);
}
.tldr strong:first-child { color: var(--teal-2); }

@media (max-width: 600px) {
  .article__body thead th, .article__body tbody td { padding: 8px 10px; font-size: .9rem; }
  .kf dl { grid-template-columns: 1fr; gap: 2px 0; }
  .kf dt { margin-top: 8px; }
}

/* Table of contents */
.toc {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.toc__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.toc ol { counter-reset: toc; }
.toc li { margin-bottom: 7px; }
.toc a {
  color: var(--deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted var(--line);
  transition: color .25s;
}
.toc a:hover { color: var(--coral); }

/* Inline CTA callout inside articles */
.post-cta {
  margin: 32px 0;
  padding: 28px 30px;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.post-cta h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 6px;
}
.post-cta p { color: rgba(255,253,246,.86); margin-bottom: 16px; }

.post-key {
  background: var(--sand);
  border: 1px dashed var(--shell-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.post-key h3 { font-family: var(--display); color: var(--shell); font-size: 1.05rem; margin-bottom: 8px; }
.post-key p { margin-bottom: 0 !important; }

/* ---------- Blog index ---------- */
.bloggrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.blogcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.blogcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blogcard__media { aspect-ratio: 16/10; overflow: hidden; }
.blogcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blogcard:hover .blogcard__media img { transform: scale(1.06); }
.blogcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blogcard__tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-2);
}
.blogcard__title {
  font-family: var(--display); font-weight: 700; font-size: 1.18rem; color: var(--deep); line-height: 1.3;
}
.blogcard__excerpt { color: var(--muted); font-size: .96rem; flex: 1; }
.blogcard__more { color: var(--coral); font-weight: 700; font-size: .95rem; margin-top: 4px; }

/* ---------- Prose section on hub/pillar pages ---------- */
.prose-narrow { max-width: 820px; }
.prose-narrow p { margin-bottom: 16px; color: var(--ink); line-height: 1.78; }

@media (max-width: 640px) {
  .relcard { padding: 20px 18px 52px; }
  .article__body p, .article__body ul li, .article__body ol li { font-size: 1.01rem; }
}

/* ============================================================
   Step infographic ("From Beach to Shelf") — reusable how-to poster.
   NOTE: selectors are prefixed with .article__body where they must beat
   the existing .article__body p / ol / li::before prose rules.
   ============================================================ */
.article__body .shineig {
  margin: 36px 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.shineig__head {
  text-align: center;
  padding: 26px 24px 22px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(30,200,216,.35), transparent 60%),
    linear-gradient(135deg, var(--deep) 0%, var(--teal) 100%);
}
.shineig__kicker {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 8px;
}
.shineig .shineig__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.05; color: #fff; margin: 0;
}
.shineig .shineig__sub { margin: 8px 0 0; color: var(--aqua-2); font-size: 1rem; }
.article__body .shineig__steps {
  list-style: none; margin: 0; padding: 26px 22px 8px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.article__body .shineig__steps li { margin: 0; }
.article__body .shineig__steps li::before { content: none; }   /* kill the ol counter */
.shineig__step {
  position: relative;
  text-align: center;
  padding: 30px 12px 18px;
  background: var(--sand);
  border-radius: 14px;
  height: 100%;
}
.shineig__num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, var(--coral-2), var(--coral-d));
  box-shadow: 0 4px 12px rgba(232,84,43,.4);
}
.shineig__ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 50%; background: #fff; color: var(--teal-2);
  box-shadow: var(--shadow-sm);
}
.shineig__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shineig__step h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--deep); margin: 0 0 5px; }
.shineig .shineig__step p { font-size: .86rem; line-height: 1.45; color: var(--muted); margin: 0; }
/* connector arrows between steps (desktop) */
.shineig__step::after {
  content: "→"; position: absolute; top: 50%; right: -11px; transform: translateY(-50%);
  font-size: 1.1rem; font-weight: 700; color: var(--coral); z-index: 2;
}
.shineig__steps li:last-child .shineig__step::after { content: none; }

.shineig__methods { padding: 14px 22px 4px; }
.shineig .shineig__methodtitle {
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); text-align: center; margin: 8px 0 12px;
}
.shineig__mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shineig__m {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal-2);
  border-radius: 12px; padding: 14px 14px 16px; text-align: center;
}
.shineig__m:nth-child(2) { border-top-color: var(--coral); }
.shineig__m:nth-child(3) { border-top-color: var(--sun); }
.shineig__m b { display: block; font-family: var(--display); color: var(--deep); font-size: 1rem; margin-bottom: 4px; }
.shineig__m span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.shineig .shineig__foot {
  margin: 18px 0 0; padding: 16px 24px; color: rgba(255,253,246,.92);
  background: var(--deep-2); font-size: .95rem; line-height: 1.55; text-align: center;
}
.shineig__foot b { color: var(--sun-2); }
@media (max-width: 760px) {
  .article__body .shineig__steps { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding-top: 28px; }
  .shineig__step::after { content: none; }
  .shineig__mgrid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .article__body .shineig__steps { grid-template-columns: 1fr; }
}
