/**
 * SocialTec: tokens, layout e componentes. Enfileirado pelo plugin.
 * Não modifica o Astra pai. Fontes devem ser hospedadas localmente.
 */
:root {
  --st-dark: #112240;
  --st-orange: #ec6d41;
  --st-white: #ffffff;
  --st-card: #1f3a60;
  --st-light: #f8f9fa;
  --st-link: #b74420; /* derivação funcional para links em superfícies claras */
  --st-heading: "Montserrat", sans-serif;
  --st-body: "Open Sans", sans-serif;
}
.socialtec-page,
.socialtec-scratch,
.socialtec-transparency {
  font-family: var(--st-body);
  line-height: 1.6;
  color: var(--st-dark);
}
.socialtec-page { background: var(--st-white); }
.socialtec-page h1, .socialtec-page h2, .socialtec-page h3, .socialtec-page h4,
.socialtec-scratch h3 {
  font-family: var(--st-heading);
  font-weight: 700;
  line-height: 1.25;
}
.socialtec-page h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; }
.socialtec-page h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
.socialtec-page h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.socialtec-page h4 { font-size: 1.125rem; font-weight: 600; }
.socialtec-page a:not(.socialtec-button):not(.elementor-button),
.socialtec-transparency a:not(.socialtec-button),
.socialtec-fallback a { color: var(--st-link); text-decoration: underline; }
.socialtec-page .socialtec-hero {
  background: var(--st-dark);
  color: var(--st-white);
  padding: clamp(2rem, 6vw, 6rem) max(1rem, calc((100vw - 1200px) / 2));
}
.socialtec-page .socialtec-hero :is(h1,h2,h3,h4) { color: var(--st-white); }
.socialtec-page .socialtec-hero a:not(.socialtec-button):not(.elementor-button) { color: var(--st-orange); }
.socialtec-card { background: var(--st-card); color: var(--st-white); border-radius: .75rem; padding: 1.5rem; }
.socialtec-page .socialtec-card :is(h2,h3,h4) { color: var(--st-white); }
.socialtec-page .socialtec-card a:not(.socialtec-button):not(.elementor-button) { color: var(--st-orange); }
.socialtec-page .socialtec-light { background: var(--st-light); padding: 2rem 1rem; }
.socialtec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.socialtec-scratch, .socialtec-transparency,
.socialtec-scratch *, .socialtec-transparency * { box-sizing: border-box; }
.socialtec-scratch {
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto;
  overflow: hidden;
  border: 3px solid var(--st-card);
  border-top: 5px solid var(--st-orange);
  border-radius: .75rem;
  background: var(--st-white);
}
.socialtec-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--st-dark);
  padding: .75rem 1rem;
}
.socialtec-scratch .socialtec-toolbar h3 {
  margin: 0;
  color: var(--st-white);
  font-size: 1.125rem;
}
.socialtec-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--st-light);
}
.socialtec-ratio-16-9 .socialtec-stage { aspect-ratio: 16 / 9; }
.socialtec-stage iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.socialtec-stage iframe[hidden], .socialtec-placeholder[hidden] { display: none; }
.socialtec-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 2rem);
  text-align: center;
  overflow: auto;
}
.socialtec-placeholder p { max-width: 60ch; margin: 0 0 1rem; }
.socialtec-scratch .socialtec-button,
.socialtec-transparency .socialtec-button,
.socialtec-page .socialtec-button,
.socialtec-page .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 2px solid var(--st-dark);
  border-radius: .4rem;
  background: var(--st-orange);
  color: var(--st-dark);
  font-family: var(--st-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.socialtec-page .elementor-button:hover,
.socialtec-button:hover { background: var(--st-dark); color: var(--st-white); }
.socialtec-toolbar .socialtec-button:hover { border-color: var(--st-white); }
.socialtec-page :is(a,button,input,select,textarea):focus-visible,
.socialtec-scratch :is(a,button,iframe):focus-visible,
.socialtec-transparency :is(a,button,input,select,[tabindex]):focus-visible {
  outline: 3px solid var(--st-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--st-white);
}
.socialtec-toolbar button:focus-visible { outline-color: var(--st-orange); box-shadow: 0 0 0 6px var(--st-dark); }
.socialtec-status, .socialtec-fallback, .socialtec-help { margin: .75rem 1rem; font-size: .95rem; }
.socialtec-status:empty { display: none; }
.socialtec-fallback a, .socialtec-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}
.socialtec-scratch:fullscreen {
  max-width: none;
  height: 100%;
  height: 100dvh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.socialtec-scratch:fullscreen .socialtec-stage { flex: 1 0 55vh; aspect-ratio: auto; }
.socialtec-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.socialtec-filters label { display: block; font-weight: 600; margin-bottom: .25rem; }
.socialtec-filters input, .socialtec-filters select {
  min-height: 44px;
  max-width: 100%;
  padding: .5rem;
  border: 2px solid var(--st-card);
  background: var(--st-white);
  color: var(--st-dark);
  border-radius: .25rem;
}
.socialtec-table-scroll { overflow-x: auto; max-width: 100%; }
.socialtec-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--st-white); }
.socialtec-table caption { text-align: left; font-weight: 600; padding: .75rem 0; }
.socialtec-table th, .socialtec-table td { text-align: left; padding: .75rem; border: 1px solid var(--st-card); vertical-align: top; }
.socialtec-table thead th { background: var(--st-dark); color: var(--st-white); }
.socialtec-table tbody tr:nth-child(even) { background: var(--st-light); }
.socialtec-expired { display: block; color: var(--st-link); }
.socialtec-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.socialtec-pagination .page-numbers { min-width: 44px; min-height: 44px; padding: .5rem .75rem; }
.socialtec-pagination .current { background: var(--st-dark); color: var(--st-white); }
.socialtec-notice { padding: 1rem; border-left: 4px solid var(--st-link); background: var(--st-light); color: var(--st-dark); }
@supports not (aspect-ratio: 4 / 3) {
  .socialtec-stage { height: 0; padding-bottom: 75%; }
  .socialtec-ratio-16-9 .socialtec-stage { padding-bottom: 56.25%; }
}
@media (max-width: 1024px) {
  .socialtec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .socialtec-grid { grid-template-columns: 1fr; }
  .socialtec-toolbar { align-items: flex-start; }
  /* Proporção define o mínimo; altura maior evita editor e aviso ilegíveis. */
  .socialtec-mode-editor .socialtec-stage { min-height: 620px; }
  .socialtec-mode-player .socialtec-stage { min-height: 300px; }
  .socialtec-filters > div { flex: 1 1 100%; }
  .socialtec-filters input, .socialtec-filters select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .socialtec-page *, .socialtec-scratch * { scroll-behavior: auto; transition: none; animation: none; }
}
