/* Article layout for the diving guide pages and the 404 page.
   Loaded only by those pages, after style.css and gallery.css. */

.guide-article,
.guide-faq {
  max-width: 780px;
  margin: 0 auto;
}

.guide-header {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(26,184,184,0.16);
}

.guide-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.guide-header h1 em,
.guide-article h2 em,
.guide-faq h2 em {
  color: var(--foam);
  font-style: italic;
  font-weight: 300;
}

.guide-article .guide-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 0;
}

.guide-article h2,
.guide-faq h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin: 3.5rem 0 1rem;
}

.guide-article h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  margin: 2rem 0 0.5rem;
}

.guide-article p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.guide-article ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}

.guide-article li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.75;
}

.guide-article li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
}

.guide-article a:not(.btn) {
  color: var(--foam);
  text-decoration: underline;
  text-decoration-color: rgba(125,232,232,0.4);
  text-underline-offset: 3px;
  transition: color 0.3s;
}

.guide-article a:not(.btn):hover {
  color: var(--white);
}

.guide-article a:focus-visible {
  outline: 2px solid var(--foam);
  outline-offset: 3px;
}

.guide-figure {
  margin: 2.5rem 0;
  overflow: hidden;
  background: rgba(7,30,56,0.6);
  border: 1px solid rgba(26,184,184,0.12);
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.guide-figure figcaption {
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
}

.guide-table th,
.guide-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  border-bottom: 1px solid rgba(26,184,184,0.16);
}

.guide-table th {
  color: var(--foam);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-table td:last-child,
.guide-table th:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.guide-article strong {
  color: var(--white);
  font-weight: 400;
}

.guide-faq .faq-list {
  display: grid;
  gap: 0.7rem;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 620px) {
  .guide-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .guide-article h2,
  .guide-faq h2 {
    margin-top: 2.75rem;
  }

  .guide-figure img {
    aspect-ratio: 4 / 3;
  }
}
