/**
 * File: /wp-content/plugins/ckut-amandla/assets/css/theme.css
 */

.amandla-theme,
.amandla-site {
  --amandla-yellow: #ffd900;
  --amandla-green: #008001;
  --amandla-lime: #c5f950;
  --amandla-dark: #200000;
  --amandla-white: #ffffff;
}

.amandla-site {
  --amandla-background: var(--amandla-white);
  --amandla-surface: #ffffff;
  --amandla-text: var(--amandla-dark);
  --amandla-muted: rgba(32, 0, 0, 0.72);
  --amandla-border: rgba(32, 0, 0, 0.28);
  --amandla-accent: var(--amandla-dark);
  --amandla-accent-contrast: var(--amandla-white);
  --amandla-header-background: #008001;
  --amandla-header-link: #ffcc00;
  --amandla-max-width: 1600px;
  --amandla-content-width: 1320px;
  --amandla-prose-width: 760px;
  --amandla-radius: 0;
  --amandla-gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --amandla-font-serif: Georgia, "Times New Roman", Times, serif;
  --amandla-font-body: var(--amandla-font-serif);
  --amandla-font-display: var(--amandla-font-serif);
  min-height: auto;
  color: var(--amandla-text);
  background: var(--amandla-background);
  font-family: var(--amandla-font-body);
  font-size: 16px;
  line-height: 1.25;
}

.amandla-theme {
  margin: 0;
  color: var(--amandla-dark);
  background: var(--amandla-white);
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.amandla-theme *,
.amandla-theme *::before,
.amandla-theme *::after {
  box-sizing: border-box;
}

.amandla-theme img,
.amandla-theme video,
.amandla-theme audio,
.amandla-theme iframe {
  max-width: 100%;
}

.amandla-theme img {
  height: auto;
}

.amandla-theme a {
  color: inherit;
}

.amandla-site button,
.amandla-site input,
.amandla-site select,
.amandla-site textarea {
  font-family: var(--amandla-font-body);
}

.amandla-site .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.amandla-site .screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto !important;
  height: auto !important;
  padding: 0.75rem 1rem !important;
  margin: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  color: #ffffff;
  background: #200000;
}

.amandla-skip-link {
  position: fixed;
  z-index: 100000;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #200000;
  text-decoration: none;
}

.amandla-skip-link:focus {
  top: 1rem;
}

.amandla-site-header {
  position: relative;
  z-index: 50;
  color: var(--amandla-header-link);
  background: var(--amandla-header-background);
  border-bottom: 1px solid var(--amandla-border);
}

.amandla-site-header__inner {
  display: grid;
  width: min(100% - 3rem, var(--amandla-max-width));
  min-height: auto;
  margin: 0 auto;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 3rem);
}

.amandla-site-brand {
  display: inline-flex;
  padding: 1rem 0;
  width: fit-content;
  align-items: center;
  color: var(--amandla-header-link);
  font-family: var(--amandla-font-display);
  font-size: clamp(1.8rem, 4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.8;
  text-decoration: none;
}

.amandla-site-brand__name::before {
  content: "(";
}

.amandla-site-brand__name::after {
  content: ")";
}

.amandla-site-brand:focus-visible,
.amandla-site-secondary-logo:focus-visible,
.amandla-site-navigation__link:focus-visible,
.amandla-button:focus-visible,
.amandla-episode-card__play:focus-visible,
.amandla-episode-card__title-link:focus-visible,
.amandla-youtube__button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.amandla-site-navigation__list {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(0.8rem, 1.5vw, 1.75rem);
}

.amandla-site-navigation__link {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  color: var(--amandla-header-link);
  font-family: var(--amandla-font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.amandla-site-navigation__link--current,
.amandla-site-navigation__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.28em;
}

.amandla-site-navigation__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.amandla-site-menu-toggle {
  display: none;
  padding: 0.5rem 0;
  color: var(--amandla-header-link);
  background: transparent;
  border: 0;
  font: inherit;
  font-family: var(--amandla-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.amandla-site-main {
  display: block;
  width: min(100% - 2rem, var(--amandla-max-width));
  margin: 0 auto;
}

.amandla-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--amandla-accent-contrast);
  background: var(--amandla-accent);
  border: 1px solid var(--amandla-accent);
  border-radius: var(--amandla-radius);
  font: inherit;
  font-family: var(--amandla-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.amandla-button:hover {
  opacity: 0.78;
}

.amandla-button--secondary {
  color: var(--amandla-text);
  background: transparent;
  border-color: currentColor;
}

.amandla-prose {
  width: 100%;
  max-width: none;
  color: inherit;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
}

.amandla-prose > *:first-child {
  margin-top: 0;
}

.amandla-prose > *:last-child {
  margin-bottom: 0;
}

.amandla-prose :where(p) {
  margin: 0 0 0.9em;
}

.amandla-prose :where(ul, ol) {
  margin: 1em 0;
  padding-left: 1.5em;
}

.amandla-prose :where(li + li) {
  margin-top: 0.35em;
}

.amandla-prose :where(a) {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.amandla-prose :where(h2, h3, h4, h5, h6) {
  margin: 1.8em 0 0.55em;
  font-family: var(--amandla-font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.amandla-prose :where(blockquote) {
  margin: 1.5rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid currentColor;
}

.amandla-site-footer {
  margin-top: 0;
  color: var(--amandla-text);
  background: #ffffff;
  border-top: 1px solid var(--amandla-border);
}

.amandla-site-footer__inner {
  display: none;
}

.amandla-site-footer__identity {
  display: grid;
  gap: 0.25rem;
}

.amandla-site-footer__title {
  font-family: var(--amandla-font-display);
  font-size: clamp(1.8rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.amandla-site-footer__description,
.amandla-site-footer__meta {
  font-size: 0.9rem;
}

.amandla-site-footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--amandla-border);
}

.amandla-site-footer__acknowledgements {
  font-size: 0.95rem;
}

.amandla-site-footer__connections {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
}

.amandla-site-footer__contact {
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}

.amandla-site-footer__social-links {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  list-style: none;
}

.amandla-site-footer__social-links a {
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.amandla-page-view,
.amandla-generic-view,
.amandla-not-found {
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 7rem);
}

.amandla-page-view__article {
  max-width: 960px;
  margin: 0 auto;
}

.amandla-page-view__title,
.amandla-generic-view__title,
.amandla-not-found__title {
  max-width: 18ch;
  margin: 0 0 2rem;
  font-family: var(--amandla-font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.amandla-page-view__featured-image {
  margin: 0 0 2.5rem;
}

.amandla-generic-view__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--amandla-border);
  border: 1px solid var(--amandla-border);
}

.amandla-generic-card {
  padding: 2rem;
  background: var(--amandla-background);
}

.amandla-generic-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--amandla-font-display);
  font-size: 1.5rem;
}

.amandla-generic-card__link {
  text-decoration: none;
}

.amandla-not-found {
  min-height: 60vh;
  text-align: center;
}

.amandla-not-found__code {
  font-family: var(--amandla-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.amandla-not-found__title {
  margin-right: auto;
  margin-left: auto;
}

.amandla-not-found__message {
  max-width: 38rem;
  margin: 0 auto 2rem;
}


/*
 * CKUT plugin integration
 * -----------------------
 * The Amandla shell is rendered without the CKUT header, while the active
 * CKUT theme still supplies wp_head() and its footer. Keep the project area
 * isolated and full-width without resetting the CKUT footer below it.
 */
body.amandla-plugin-view > .amandla-site {
  width: 100%;
  max-width: none;
  isolation: isolate;
}

body.amandla-plugin-view > .amandla-site,
body.amandla-plugin-view > .amandla-site * {
  box-sizing: border-box;
}

/*
 * Large desktop layout.
 * Above 1440px the project can use more of the available viewport instead of
 * staying at the original 1320px content cap. This especially gives single
 * Episode mastheads enough room for long titles beside their featured image.
 */
@media (min-width: 1441px) {
  .amandla-site {
    --amandla-max-width: 1900px;
    --amandla-content-width: 1680px;
    --amandla-prose-width: 820px;
  }

  .amandla-episode-single__title {
    max-width: none;
    overflow-wrap: normal;
    word-break: normal;
  }
}
