/* ==========================================================================
   FastUTM articles and guide hub (v1.7.0)
   Loaded only through $extra_css = ['article'] on /guide/ PHP pages.
   Every selector starts with .fu-article or .fu-hub, so nothing here can
   reach the tools. Fonts are inherited (not set here), so the site's
   dyslexia-friendly mode still switches the typeface on these pages.
   ========================================================================== */

/* ---------- Layout ---------- */
.fu-article .fu-article-card,
.fu-article .fu-related,
.fu-hub .fu-hub-group {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.fu-article .fu-article-card { padding: 1.8rem 2rem; }
@media (max-width: 640px) {
  .fu-article .fu-article-card { padding: 1.2rem 1.1rem; }
}

/* ---------- Breadcrumb ---------- */
.fu-article .fu-crumbs,
.fu-hub .fu-crumbs {
  max-width: 780px;
  margin: 0 auto 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-3);
}
.fu-article .fu-crumbs a,
.fu-hub .fu-crumbs a { color: var(--text-3); text-decoration: none; }
.fu-article .fu-crumbs a:hover,
.fu-hub .fu-crumbs a:hover { color: var(--accent); }

/* ---------- Article header ---------- */
.fu-article .fu-kicker,
.fu-hub .fu-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.fu-article .fu-article-head h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}
.fu-article .fu-byline {
  margin: 0 0 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
}
.fu-article .fu-byline a { color: var(--text-2); font-weight: 800; }

/* ---------- Body copy ---------- */
.fu-article .fu-article-card h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
}
.fu-article .fu-article-card h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.fu-article .fu-article-card p,
.fu-article .fu-article-card li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}
.fu-article .fu-article-card p { margin: 0 0 1rem; }
.fu-article .fu-article-card ul,
.fu-article .fu-article-card ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.fu-article .fu-article-card li { margin-bottom: 0.4rem; }
.fu-article .fu-article-card a { color: var(--accent); font-weight: 700; }
.fu-article .fu-article-card strong { color: var(--text); }
.fu-article .fu-lede {
  font-size: 1.08rem !important;
  color: var(--text) !important;
}

/* Inline code and example URLs */
.fu-article code {
  font-family: 'DM Mono', monospace;
  font-size: 0.86em;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--code-bg, var(--bg2));
  word-break: break-word;
}
.fu-article .fu-url {
  display: block;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--code-bg, var(--bg2));
  font-family: 'DM Mono', monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* Tables */
.fu-article .fu-table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.fu-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.fu-article th,
.fu-article td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.55;
}
.fu-article th { background: var(--bg2); color: var(--text); font-weight: 800; }

/* Callouts */
.fu-article .fu-note,
.fu-article .fu-example {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg2);
}
.fu-article .fu-example { border-left-color: var(--purple, #7c3aed); }
.fu-article .fu-note p:last-child,
.fu-article .fu-example p:last-child { margin-bottom: 0; }
.fu-article .fu-callout-label {
  margin: 0 0 0.35rem !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text) !important;
}

/* Isa's real example (only printed once filled in) */
.fu-article .fu-isa {
  margin: 1.6rem 0 1.2rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--accent-light, rgba(37, 99, 235, 0.08));
}
.fu-article .fu-isa .fu-isa-label {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Tool link at the end */
.fu-article .fu-tool-cta {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Related guides */
.fu-article .fu-related { margin-top: 1.4rem; padding: 1.4rem 1.6rem; }
.fu-article .fu-related h2 { margin: 0 0 0.8rem; font-size: 1.1rem; font-weight: 900; color: var(--text); }
.fu-article .fu-related ul { list-style: none; margin: 0; padding: 0; }
.fu-article .fu-related li { padding: 0.6rem 0; border-top: 1px solid var(--border); }
.fu-article .fu-related li:first-child { border-top: 0; }
.fu-article .fu-related li a { display: block; font-weight: 800; color: var(--accent); text-decoration: none; }
.fu-article .fu-related li a:hover { text-decoration: underline; }
.fu-article .fu-related li span { display: block; font-size: 0.86rem; line-height: 1.55; color: var(--text-3); }
.fu-article .fu-all-guides { margin: 0.8rem 0 0; font-weight: 800; }

/* ---------- Guide hub ---------- */
.fu-hub .fu-hub-intro {
  max-width: 780px;
  margin: 0 auto 1.6rem;
  text-align: center;
}
.fu-hub .fu-hub-intro h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 900;
  color: var(--text);
}
.fu-hub .fu-hub-intro p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--text-2); }
.fu-hub .fu-hub-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.fu-hub .fu-hub-jump a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-2);
  text-decoration: none;
  background: var(--surface);
}
.fu-hub .fu-hub-jump a:hover { border-color: var(--accent); color: var(--accent); }

.fu-hub .fu-hub-group { margin-bottom: 1.4rem; padding: 1.4rem 1.6rem; }
.fu-hub .fu-hub-group h2 { margin: 0 0 0.2rem; font-size: 1.25rem; font-weight: 900; color: var(--text); }
.fu-hub .fu-hub-group > p { margin: 0 0 0.8rem; font-size: 0.9rem; color: var(--text-3); }
.fu-hub .fu-hub-list { list-style: none; margin: 0; padding: 0; }
.fu-hub .fu-hub-list li { padding: 0.9rem 0; border-top: 1px solid var(--border); }
.fu-hub .fu-hub-list li:first-child { border-top: 0; }
.fu-hub .fu-hub-list h3 { margin: 0 0 0.25rem; font-size: 1.02rem; font-weight: 800; line-height: 1.4; }
.fu-hub .fu-hub-list h3 a { color: var(--text); text-decoration: none; }
.fu-hub .fu-hub-list h3 a:hover { color: var(--accent); text-decoration: underline; }
.fu-hub .fu-hub-list p { margin: 0 0 0.3rem; font-size: 0.92rem; line-height: 1.6; color: var(--text-2); }
.fu-hub .fu-hub-date { font-size: 0.78rem; font-weight: 700; color: var(--text-3); }

@media (max-width: 640px) {
  .fu-hub .fu-hub-group { padding: 1.1rem 1rem; }
}
