/* Fishtail web: design tokens and shared styles (from the Fishtail Web Home design). */
:root {
  --ground: #ededf5;
  --indigo: #2a2657;
  --indigo-2: #6b67af;
  --indigo-pill: #332f6b;
  --teal: #3fc2c2;
  --teal-text: #1f9a9a;
  --teal-soft: #e6f7f7;
  --amber: #f0b429;
  --text: #26243a;
  --text-2: #4a4860;
  --muted: #5d5b70;
  --line: #d6d6e4;
  --line-2: #e6e6f0;
  --thumb: #f5f5fa;
  --white: #ffffff;
  --radius-card: 14px;
  --radius-item: 12px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-2); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* top bar */
.topbar { background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); color: var(--white); }
.topbar nav { max-width: 1200px; margin: 0 auto; padding: 10px 16px; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.topbar .links { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1 1 560px; font-size: 15px; }
.topbar .links a { display: inline-flex; align-items: center; gap: 7px; color: #e3e2f3; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.topbar .links a[aria-current="page"] { color: var(--white); font-weight: 600; border-bottom-color: var(--teal); }
.topbar .links img { width: 24px; height: 24px; display: block; }
.topbar .account { display: flex; align-items: center; gap: 10px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); color: var(--white); text-decoration: none; cursor: pointer; font-size: 14px; }
.pill-btn:hover { color: var(--white); background: rgba(255,255,255,0.2); }
.pill-btn.pill-amber { background: var(--amber); border-color: var(--amber); color: var(--text); font-weight: 600; }
.pill-btn.pill-amber:hover { color: var(--text); background: #f4c24d; }
/* Phone: the links show their icons only (each keeps its name for screen readers and as a tooltip) */
@media (max-width: 640px) {
  .topbar nav { padding: 6px 10px; gap: 6px; flex-wrap: nowrap; }
  .topbar .links { flex: 1 1 auto; flex-wrap: nowrap; gap: 0; justify-content: space-between; min-width: 0; }
  .topbar .links a { min-width: 40px; min-height: 44px; justify-content: center; padding: 0; }
  .topbar .account { flex: 0 0 auto; }
  .topbar .account .pill-amber { display: none; } /* one row: Sign in leads to both sign in and create an account */
  .topbar .links a svg, .topbar .links img { width: 26px; height: 26px; }
  .topbar .links .lbl, .topbar .account .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar .account .pill-btn:has(.avatar) { padding: 6px; }
}
.avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--teal); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

.upgrade-bar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; background: var(--amber); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 16px; }
.upgrade-bar:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 24px; }

.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,0.7); }
.site-footer div { max-width: 1200px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer .ig { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* shared pieces */
h1.page-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--indigo); }
.muted { color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-item); padding: 18px 20px; }
.btn-amber { display: inline-block; background: var(--amber); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; }
.btn-amber:hover { color: var(--text); }
.btn-teal { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--teal); color: var(--indigo); font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.btn-outline { min-height: 44px; padding: 0 24px; border: 2px solid var(--teal); border-radius: 999px; background: var(--white); color: var(--indigo); font-weight: 600; font-size: 15px; cursor: pointer; }
.segmented { display: flex; flex-wrap: wrap; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 4px; }
.segmented button { border: 0; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px; background: transparent; color: var(--indigo); }
.segmented button[aria-selected="true"], .segmented button[aria-pressed="true"] { background: var(--indigo-pill); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; min-height: 38px; background: var(--white); color: var(--indigo); border: 1px solid var(--line); }
.chips button[aria-pressed="true"] { background: var(--indigo); color: var(--white); border-color: var(--indigo); font-weight: 600; }
.label-caps { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.message { padding: 14px 16px; border-radius: var(--radius-item); background: var(--white); border: 1px solid var(--line); }
.message.error { border-color: #e2a39a; background: #fdeeeb; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--indigo); }
.form input, .form select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--white); }
@media (max-width: 600px) { h1.page-title { font-size: 28px; } .topbar .links { flex-basis: 100%; } }

/* text pages */
.prose { max-width: 760px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--indigo); margin: 28px 0 8px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--indigo); margin: 22px 0 6px; }
.prose h4 { font-size: 17px; margin: 18px 0 4px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.refs { max-width: 760px; display: flex; flex-direction: column; gap: 8px; }
.refs h2 { margin: 12px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--indigo); }
.refs p { margin: 0; }
.refs ul { list-style: none; margin: 8px 0 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-item); }
.refs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.refs li:first-child { border-top: 0; }
.refs .meta { font-size: 14px; color: var(--muted); }
