/*
 * PIAT 7 brand layer.
 * Tokens follow the pesantren's green identity (#2e6000).
 * NDS owns layout and component internals; only project-scoped overrides live here.
 */

:root {
  --colors-primary-50: #f3f8ec;
  --colors-primary-100: #e4efd6;
  --colors-primary-200: #c8dfae;
  --colors-primary-300: #a7cb82;
  --colors-primary-400: #86b658;
  --colors-primary-500: #5f9a2f;
  --colors-primary-600: #2e6000;
  --colors-primary-700: #275200;
  --colors-primary-800: #1f4200;
  --colors-primary-900: #163000;
}

html[data-theme~="dark"] {
  --colors-primary-400: #9ccb74;
  --colors-primary-500: #7fb54e;
  --colors-primary-600: #6aa63a;
  --colors-primary-700: #7fb54e;
}

/* Project brand: keep the crest at the navigation's icon height. */
.piat7-brand .nds-brand-logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

/* Project content wrappers. */
.piat7-search-block {
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.piat7-section-footer {
  margin-top: 1.5rem;
}

/* Project post media and navigation. */
.piat7-post-thumb {
  margin: 0 0 1.5rem;
}

.piat7-post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.piat7-post-meta {
  margin-top: 0.75rem;
}

.piat7-post-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-neutral-primary, #e5e7eb);
}

/* Legacy [embedyt] shortcode output. */
.piat7-embed {
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
}

.piat7-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
}

/* Shorts inline player: no modal, no backdrop. */
.piat7-video-player {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.piat7-video-player[hidden] {
  display: none;
}

.piat7-video-frame {
  aspect-ratio: 9 / 16;
  width: min(92vw, 380px, calc(70vh * 0.5625));
  height: auto;
  margin: 0 auto 1rem;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
}

.piat7-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
