/*
 * Hand-written additions to the precompiled Tailwind build in style.css.
 * style.css has no source/config and can't be rebuilt, so any utility class
 * that isn't already in it does nothing. Put new styles here instead.
 */

[x-cloak] { display: none !important; }

/* ---- Header -------------------------------------------------------------- */
.header-cta {
  font-family: "Wix Madefor Display", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: .875rem;
  color: #fff;
  background: #0ea5e9;
  border-radius: .375rem;
  padding: .5rem .875rem;
  white-space: nowrap;
}
.header-cta:hover { background: #0284c7; }

/* ---- Mobile navigation drawer ------------------------------------------- */
.mobile-nav { position: fixed; inset: 0; z-index: 60; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgb(15 23 42 / .5); }
.mobile-nav__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(20rem, 85vw);
  overflow-y: auto;
  background: #fff;
  padding: 3.5rem 1.5rem 2rem;
  box-shadow: 0 10px 30px rgb(15 23 42 / .2);
}
.mobile-nav__close {
  position: absolute; top: .75rem; right: 1rem;
  font-size: 1.75rem; line-height: 1; color: #64748b;
}
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---- Article content ----------------------------------------------------- */

/* A UI label the reader should look for (button, menu item, field). */
.ui {
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: .3rem;
  padding: .05rem .35rem;
  font-size: .925em;
  white-space: nowrap;
}

/* Inline URL / code snippets inside articles. */
.article-body code {
  font-size: .85em;
  background: #f1f5f9;
  border-radius: .25rem;
  padding: .1rem .3rem;
  word-break: break-word;
}
.article-body code::before,
.article-body code::after { content: none; }

/* The template's step list: keep nested content readable. */
.article-body .ol-pretty li { text-indent: 0; padding-left: 2.25rem; position: relative; margin-left: 0; }
.article-body .ol-pretty li::before { position: absolute; left: 0; top: .1rem; text-indent: 0; text-align: center; }

/* Simple data tables inside prose. */
.article-body table { font-size: .9rem; }
.article-body th { white-space: nowrap; }

/* ---- Home page cards ----------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.topic-card {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  transition: border-color .15s, box-shadow .15s;
}
.topic-card:hover { border-color: #0ea5e9; box-shadow: 0 6px 20px rgb(15 23 42 / .06); }
.topic-card h3 {
  font-family: "Wix Madefor Display", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 .5rem;
}
.topic-card ul { margin: 0; padding: 0; list-style: none; }
.topic-card li { margin: .35rem 0; font-size: .9rem; }
.topic-card a { color: #475569; }
.topic-card a:hover { color: #0284c7; }
.home-heading { margin-bottom: 1.5rem; }
.topic-card p { margin: 0 0 .75rem; }

/* ---- Footer (matches https://go.flyraven.io/) ----------------------------- */
.site-footer { background: #14181c; color: rgb(255 255 255 / .6); margin-top: 6rem; }
.site-footer__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 4rem 0;
}
.site-footer__brand { grid-column: span 2 / span 2; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.site-footer__logo-link { display: inline-flex; align-items: center; }
.site-footer__logo { height: 3.5rem; width: auto; }
.site-footer__heading { color: #fff; font-weight: 600; margin: 0; }
.site-footer__links { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .875rem; }
.site-footer__links li + li { margin-top: .75rem; }
.site-footer a { color: inherit; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid rgb(255 255 255 / .1);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .875rem;
}
.site-footer__bottom p { margin: 0; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__legal { display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .5rem; }

/* ---- Cookie banner (matches https://go.flyraven.io/) ---------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 0 1rem 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__card {
  max-width: 48rem; margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid rgb(255 255 255 / .1);
  background: rgb(20 24 28 / .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 0 80px -10px rgba(37, 124, 255, .45);
  padding: 1.25rem;
}
.cookie-banner__text { margin: 0; font-size: .875rem; line-height: 1.625; color: rgb(255 255 255 / .7); }
.cookie-banner__text a { color: #5a9bff; text-decoration: underline; }
.cookie-banner__text a:hover { color: #90b6ff; }
.cookie-banner__actions { margin-top: 1rem; display: flex; flex-shrink: 0; gap: .75rem; }
.cookie-banner__btn {
  flex: 1 1 0%;
  border-radius: .75rem;
  padding: .625rem 1.25rem;
  font-size: .875rem; font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color .15s;
}
.cookie-banner__btn--reject { border: 1px solid rgb(255 255 255 / .15); background: rgb(255 255 255 / .05); }
.cookie-banner__btn--reject:hover { background: rgb(255 255 255 / .1); }
.cookie-banner__btn--accept { background: #cf4216; box-shadow: 0 12px 30px -8px rgba(244, 90, 42, .55); }
.cookie-banner__btn--accept:hover { background: #b3360d; }
@media (min-width: 640px) {
  .cookie-banner { padding: 0 1.5rem 1.5rem; }
  .cookie-banner__card { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; }
  .cookie-banner__actions { margin-top: 0; }
  .cookie-banner__btn { flex: none; }
}
.not-found-links { margin-top: 2.5rem; }
