/* Shared styles for karamai.co/guides pages.
   NOTE: the site's compiled Tailwind (dist/styles.css) ships preflight, which
   strips list markers globally — that is why list-style is re-declared here. */

html, body { background: #F6F9F9; color: #154762; overflow-x: hidden; margin: 0; }
body {
  font-family: "Zain", "Quicksand", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nav-glass { background: rgba(246,249,249,0.85); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.topbar { border-bottom: 1px solid #CDDFDC; position: sticky; top: 0; z-index: 40; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar img { height: 32px; width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #417C9C; color: #fff; font-weight: 700; border-radius: 8px;
  padding: 11px 20px; text-decoration: none; font-size: 15px; line-height: 1;
  transition: background-color 180ms ease, transform 120ms ease;
}
.btn:hover { background: #164863; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: #154762; border: 1px solid #CDDFDC; }
.btn-ghost:hover { background: #D6F2ED; color: #164863; }

article { padding: 40px 0 8px; }
.eyebrow { font-size: 14px; font-weight: 700; color: #4A6F84; margin: 0 0 10px; }
h1 { font-size: 40px; line-height: 1.2; font-weight: 800; color: #164863; margin: 0 0 16px; text-wrap: balance; }
.standfirst { font-size: 20px; line-height: 1.75; color: #3B6079; margin: 0 0 8px; }
article h2 { font-size: 26px; line-height: 1.35; font-weight: 800; color: #164863; margin: 40px 0 10px; text-wrap: balance; }
article h3 { font-size: 20px; line-height: 1.4; font-weight: 800; color: #164863; margin: 26px 0 8px; }
article p { font-size: 18px; line-height: 1.9; margin: 0 0 16px; }
article ul { list-style: disc; font-size: 18px; line-height: 1.9; padding-inline-start: 26px; margin: 0 0 16px; }
article ol { list-style: decimal; font-size: 18px; line-height: 1.9; padding-inline-start: 26px; margin: 0 0 16px; }
article li { margin-bottom: 6px; }
article li::marker { color: #417C9C; }
article strong { font-weight: 800; color: #164863; }

.tip { background: #fff; border: 1px solid #CDDFDC; border-radius: 14px; padding: 16px 20px; margin: 0 0 18px; font-size: 17px; line-height: 1.8; }
.tip strong { display: block; margin-bottom: 4px; }
.sample { background: #D6F2ED; border: 1px solid #A9D9D2; border-radius: 14px; padding: 16px 20px; margin: 0 0 18px; font-size: 17px; line-height: 1.9; }
.sample .label { display: block; font-weight: 800; color: #164863; margin-bottom: 6px; font-size: 15px; }

.cta { background: #fff; border: 1px solid #CDDFDC; border-radius: 18px; padding: 24px; margin: 40px 0 8px; }
.cta h2 { margin-top: 0; font-size: 24px; }
.cta ul { margin-bottom: 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 16px; line-height: 1.8; color: #4A6F84; margin: 16px 0 0; }

/* guides index */
.cards { display: grid; gap: 16px; margin: 28px 0 8px; }
.card { display: block; background: #fff; border: 1px solid #CDDFDC; border-radius: 16px; padding: 22px; text-decoration: none; color: inherit; transition: transform 140ms ease, border-color 140ms ease; }
.card:hover { transform: translateY(-2px); border-color: #417C9C; }
.card h2 { font-size: 22px; font-weight: 800; color: #164863; margin: 0 0 8px; line-height: 1.35; }
.card p { font-size: 16.5px; line-height: 1.8; color: #3B6079; margin: 0; }
.card .more { display: inline-block; margin-top: 12px; color: #417C9C; font-weight: 700; font-size: 15px; }

footer { border-top: 1px solid #CDDFDC; margin-top: 48px; padding: 24px 0 36px; color: #4A6F84; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
footer a { color: #4A6F84; }
a { color: #417C9C; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(65,124,156,0.35); border-radius: 8px; }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .standfirst { font-size: 18px; }
  article h2 { font-size: 22px; }
  article p, article ul, article ol { font-size: 17px; }
  .card h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .card { transition: none; } }
