.fm-tribal [hidden] { display: none !important; }
.fm-tribal-table-scroll { overflow-x: auto; max-width: 100%; }
.fm-tribal table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.fm-tribal th, .fm-tribal td { padding: 14px; text-align: left; border-bottom: 1px solid #d4d1c8; vertical-align: top; }
.fm-tribal caption { text-align: left; padding: 12px 0; font-weight: 600; }
.fm-tribal dt { font-weight: 650; margin-top: 1rem; }
.fm-tribal dd { margin: .35rem 0 1rem; line-height: 1.65; }
.fm-tribal [data-tribal-portfolio] select { font: inherit; padding: 12px; max-width: 100%; background: #fff; border: 1px solid #aaa38f; display: block; margin-top: .65rem; }
.fm-tribal [data-tribal-project] { padding: 24px; border: 1px solid #d4d1c8; }
.fm-tribal-context .fm-tribal-section-inner { max-width: 1120px; margin: 0 auto; padding: 40px 24px; }
/* Tribal practice pages: deliberately scoped to avoid changing shared site chrome. */
.fm-tribal,
.fm-tribal * {
  box-sizing: border-box;
}

.fm-tribal {
  --tribal-ink: #172b43;
  --tribal-muted: #536270;
  --tribal-paper: #f7f6f1;
  --tribal-sand: #eae8e1;
  --tribal-line: #d4d4cd;
  --tribal-gold: #9a8158;
  --tribal-deep: #14263d;
  color: var(--tribal-ink);
  background: var(--tribal-paper);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.fm-tribal a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.fm-tribal :is(a, summary):focus-visible {
  outline: 3px solid #92723c;
  outline-offset: 4px;
}

.fm-tribal [id] {
  scroll-margin-top: 110px;
}

.fm-tribal-shell {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.fm-tribal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px) 0 clamp(42px, 6vw, 76px);
  color: #f4f2ed;
  background: var(--tribal-deep);
}

.fm-tribal-hero::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(198, 178, 138, .08));
  content: "";
  pointer-events: none;
}

.fm-tribal-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .82fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
}

.fm-tribal-hero-copy { min-width: 0; }
.fm-tribal-eyebrow {
  margin: 0 0 14px;
  color: var(--tribal-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.fm-tribal-hero .fm-tribal-eyebrow { color: #d1bd91; }
.fm-tribal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 5.1vw, 64px);
  font-weight: 500;
  letter-spacing: -.052em;
  line-height: 1.07;
}

.fm-tribal-intro {
  max-width: 720px;
  margin-top: 20px;
  color: #d9dfe2;
  font-size: clamp(16px, 1.65vw, 19px);
  line-height: 1.75;
}
.fm-tribal-intro p { margin: 0 0 10px; }
.fm-tribal-intro p:last-child { margin-bottom: 0; }

.fm-tribal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 25px;
}
.fm-tribal-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(237, 234, 224, .62);
  color: #f4f2ed !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.fm-tribal-action:hover { background: rgba(255, 255, 255, .08); border-color: #d0bd95; }
.fm-tribal-action-primary {
  border-color: #c4ae7e;
  background: #c4ae7e;
  color: #172b43 !important;
}
.fm-tribal-action-primary:hover { border-color: #d4c39e; background: #d4c39e; }

.fm-tribal-image {
  position: relative;
  margin: 0;
  border: 1px solid rgba(230, 225, 212, .3);
  background: #263d56;
}
.fm-tribal-image img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 1.28;
  object-fit: cover;
}
.fm-tribal-image figcaption {
  padding: 10px 13px;
  color: #e1e1dc;
  background: #1b3049;
  font-size: 11px;
  line-height: 1.55;
}

.fm-tribal-navigation {
  border-bottom: 1px solid var(--tribal-line);
  background: #eeece5;
}
.fm-tribal-navigation-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 24px;
  padding-block: 15px;
}
.fm-tribal-navigation-label {
  color: #4d5b68;
  margin-right: 4px;
  color: #68747d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Readable inquiry labels and hints, scoped to the new Tribal practice. */
.fm-tribal .fm-inquiry .fm-inquiry-index,
.fm-tribal .fm-inquiry .fm-inquiry-side h2 em { color: #6c5735; }
.fm-tribal .fm-inquiry .fm-field label { font-size: 14px; }
.fm-tribal .fm-inquiry .fm-field label > span {
  color: #5e5340;
  font-size: 12px;
}
.fm-tribal .fm-inquiry .fm-field > small {
  color: #4d5b68;
  font-size: 13px;
}
.fm-tribal .fm-inquiry .fm-inquiry-consent label > span,
.fm-tribal .fm-inquiry .fm-inquiry-side-block p {
  color: #4d5b68;
  font-size: 14px;
}
.fm-tribal .fm-inquiry .fm-inquiry-contact > span {
  color: #6c5735;
  font-size: 12px;
}
.fm-tribal .fm-inquiry .fm-field input,
.fm-tribal .fm-inquiry .fm-field select,
.fm-tribal .fm-inquiry .fm-field textarea { font-size: 16px; }
.fm-tribal .fm-tribal-navigation-label {
  color: #4d5b68;
  font-size: 13px;
}
.fm-tribal-navigation a {
  padding: 5px 0;
  color: #34485a;
  font-size: 12px;
  font-weight: 600;
  text-decoration-color: transparent;
}
.fm-tribal-navigation a:hover { color: #806b49; text-decoration-color: #a58b5c; }

.fm-tribal-section {
  padding-block: clamp(42px, 6.2vw, 78px);
  border-bottom: 1px solid var(--tribal-line);
}
.fm-tribal-section:nth-of-type(even) { background: #eeece5; }
.fm-tribal-section-inner { width: min(1000px, calc(100% - 56px)); margin-inline: auto; }
.fm-tribal-section h2 {
  max-width: 850px;
  margin: 0 0 22px;
  color: var(--tribal-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.18;
}
.fm-tribal-section-copy { max-width: 850px; }
.fm-tribal-section p {
  margin: 0 0 17px;
  color: var(--tribal-muted);
  font-size: 17px;
  line-height: 1.82;
}
.fm-tribal-section p:last-child { margin-bottom: 0; }
.fm-tribal-section ul {
  max-width: 850px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.fm-tribal-section li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid rgba(125, 132, 131, .24);
  color: #435363;
  font-size: 16px;
  line-height: 1.7;
}
.fm-tribal-section li::before {
  position: absolute;
  top: 23px;
  left: 2px;
  width: 7px;
  height: 1px;
  background: var(--tribal-gold);
  content: "";
}
.fm-tribal-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}
.fm-tribal-section-links a {
  color: #344b60;
  font-size: 14px;
  font-weight: 650;
  text-decoration-color: #ac9871;
}
.fm-tribal-section-links a:hover { color: #806b49; }

/* Trusted supplied section HTML remains within this typography and layout system. */
.fm-tribal-rich-content {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.fm-tribal-rich-content :is(h3, h4) {
  margin: 30px 0 12px;
  color: var(--tribal-ink);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  line-height: 1.35;
}
.fm-tribal-rich-content h3 { font-size: clamp(21px, 2.5vw, 27px); }
.fm-tribal-rich-content h4 { font-size: 18px; }
.fm-tribal-rich-content p,
.fm-tribal-rich-content li { color: var(--tribal-muted); font-size: 16px; line-height: 1.8; }
.fm-tribal-rich-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  background: #f9f8f4;
}
.fm-tribal-rich-content th,
.fm-tribal-rich-content td {
  min-width: 130px;
  padding: 12px 14px;
  border: 1px solid #d0d1cb;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.65;
}
.fm-tribal-rich-content th { background: #e7e4dc; color: #263b51; font-weight: 700; }
.fm-tribal-rich-content blockquote {
  margin: 24px 0;
  padding: 5px 0 5px 22px;
  border-left: 2px solid var(--tribal-gold);
  color: #3d5060;
}
.fm-tribal-rich-content :is(a, button, input, select):focus-visible {
  outline: 3px solid #92723c;
  outline-offset: 4px;
}

.fm-tribal-faqs {
  padding-block: clamp(44px, 6vw, 76px);
  background: #eae8e1;
}
.fm-tribal-faqs h2 {
  margin: 0 0 24px;
  font: 500 clamp(29px, 3.8vw, 43px)/1.2 "Manrope", sans-serif;
  letter-spacing: -.04em;
}
.fm-tribal-faq-list { border-top: 1px solid #c9c9c1; }
.fm-tribal-faq {
  border-bottom: 1px solid #c9c9c1;
}
.fm-tribal-faq summary {
  position: relative;
  padding: 18px 42px 18px 0;
  color: #243a50;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}
.fm-tribal-faq summary::-webkit-details-marker { display: none; }
.fm-tribal-faq summary::after {
  position: absolute;
  top: 17px;
  right: 3px;
  color: #806b49;
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.fm-tribal-faq[open] summary::after { content: "−"; }
.fm-tribal-faq-answer { max-width: 850px; padding: 0 30px 18px 0; }
.fm-tribal-faq-answer p { margin: 0; color: var(--tribal-muted); font-size: 15px; line-height: 1.8; }

.fm-tribal-related {
  padding-block: 35px 48px;
  background: #f2f0e9;
}
.fm-tribal-related h2 {
  margin: 0 0 15px;
  font: 600 16px/1.4 "Manrope", sans-serif;
}
.fm-tribal-related-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.fm-tribal-related-links a { color: #344b60; font-size: 13px; }

@media (max-width: 800px) {
  .fm-tribal-hero-inner { grid-template-columns: 1fr; gap: 27px; }
  .fm-tribal-image { max-width: 640px; }
  .fm-tribal-image img { max-height: 300px; }
  .fm-tribal-navigation-inner { gap: 4px 18px; }
}

@media (max-width: 600px) {
  .fm-tribal { font-size: 16px; }
  .fm-tribal-shell, .fm-tribal-section-inner { width: min(100% - 38px, 540px); }
  .fm-tribal-hero { padding-block: 32px 40px; }
  .fm-tribal-hero h1 { font-size: clamp(35px, 10vw, 47px); }
  .fm-tribal-intro { font-size: 16px; }
  .fm-tribal-actions { display: grid; grid-template-columns: 1fr; }
  .fm-tribal-action { width: 100%; justify-content: flex-start; }
  .fm-tribal-navigation-inner { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 14px; }
  .fm-tribal-navigation-label { margin-bottom: 2px; }
  .fm-tribal-section { padding-block: 42px; }
  .fm-tribal-section p { font-size: 16px; }
  .fm-tribal-section li { font-size: 15px; }
  .fm-tribal-section-links { flex-direction: column; gap: 13px; }
  .fm-tribal-rich-content th, .fm-tribal-rich-content td { min-width: 145px; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-tribal *,
  .fm-tribal *::before,
  .fm-tribal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
