/**
 * Armchair Journal Footer Styles
 */

#colophon.aj-site-footer {
  background-color: #163259;
  color: #ffffff;
  padding: 48px 24px 30px;
  font-family: var(--aj-font-sans, sans-serif);
  margin-top: auto;
}

.ft-grid {
  max-width: var(--aj-width-editorial, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.ft-brand {
  grid-row: span 2;
  min-width: 0;
}

.ft-brand-header {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ft-brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--aj-radius-full, 50%);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ft-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ft-brand-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--aj-font-serif, serif);
  font-size: var(--aj-fs-20, 20px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.35;
}

.ft-brand-mission {
  font-size: var(--aj-fs-13, 13px);
  color: rgba(255,255,255,.64);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 16px;
}

.ft-theel-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--aj-radius-7, 7px);
  padding: 9px 12px;
  width: max-content;
  max-width: 100%;
}

.ft-theel-coin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: var(--aj-radius-full, 50%);
  box-shadow: var(--aj-shadow-theel-glow, 0 0 0 1.5px rgba(224, 168, 120, 0.85), 0 0 8px rgba(224, 168, 120, 0.45));
}

.ft-theel-text {
  min-width: 0;
  white-space: normal;
  font-size: var(--aj-fs-11-5, 11.5px);
  color: rgba(255, 255, 255, 0.75);
}

/* Nav Columns */
.ft-col-title {
  font-size: var(--aj-fs-10, 10px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  margin-bottom: 14px;
}

.ft-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--aj-fs-13, 13px);
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-links a {
  text-decoration: none;
  color: inherit;
  transition: color var(--aj-transition-color, 0.3s ease);
}

.ft-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ft-brand-mission em { display: block; font: italic 17px/1.35 var(--aj-font-serif, serif); color: rgba(255,255,255,.96); }
.ft-brand-mission [lang="sa"] { display: block; margin-top: 4px; font: 15.5px/1.4 var(--aj-font-serif, serif); color: #dcb352; }
.ft-social { max-width: 1180px; margin: 30px auto 0; display: flex; align-items: center; gap: 10px; }
.ft-social > span { margin-right: 4px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.ft-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.78); text-decoration: none; }
.ft-social a:hover { color: #fff; border-color: rgba(255,255,255,.55); }
.aj-site-footer a:focus-visible { outline: 2px solid #dcb352; outline-offset: 4px; }

.ft-support-col p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}

.ft-support-link {
  display: inline-flex;
  padding: 8px 14px;
  border: 0;
  border-radius: 5px;
  background: #c33d29;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}
.ft-support-link:hover { background: #a83424; color: #fff; }

/* Footer Bottom Strip */
.ft-bottom {
  max-width: var(--aj-width-editorial, 1180px);
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: var(--aj-fs-11-5, 11.5px);
  color: rgba(255,255,255,.58);
}

.ft-credo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ft-privacy-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color var(--aj-transition-color, 0.3s ease);
}

.ft-privacy-link:hover {
  color: #ffffff;
}

.ft-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 860px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ft-brand {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .ft-grid {
    grid-template-columns: 1fr;
  }
  .ft-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
