/*
Theme Name: WAGate
Theme URI: https://wagate.app/
Author: Activated Digital
Author URI: https://activated.digital/
Description: The WAGate marketing site — the 2026 "slab" design (landing, blog, legal, integrations, developer docs). Styles and scripts are the app's own /assets files; this sheet only adapts them to WordPress.
Version: 1.0.0
Requires PHP: 8.3
Text Domain: wagate
*/

/* The language options are links here (Polylang URLs), buttons in the app. */
.wgh .lang-dd-opt, .wg-sheet .lang-dd-opt { text-decoration: none; }
.lang-dd-opt[hidden] { display: none !important; }

/* Logged-in editors: keep the fixed header and the sheet below the admin bar. */
body.admin-bar .wgh--overlay { top: 32px; }
body.admin-bar .wg-sheet { top: calc(var(--wg-head-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .wgh--overlay { top: 46px; }
  body.admin-bar .wg-sheet { top: calc(var(--wg-head-h) + 46px); }
}
@media (max-width: 600px) {
  /* WordPress un-fixes its bar on phones; let the header take the top again once it scrolls away. */
  #wpadminbar { position: absolute; }
}

/* WordPress markup inside articles and pages. */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wgb-body img, .lg-doc img { max-width: 100%; height: auto; border-radius: 14px; }
.wgb-body figure, .lg-doc figure { margin: 28px 0; max-width: 100%; }
.wgb-body figcaption, .lg-doc figcaption, .wp-caption-text {
  margin-top: 8px; font-size: 14px; color: var(--wg-muted, #5b6b5b); text-align: center;
}
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: inline-start; margin-inline-end: 20px; }
.alignright { float: inline-end; margin-inline-start: 20px; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin-inline: 0; } }
.wgb-body .wp-block-embed iframe, .lg-doc .wp-block-embed iframe { max-width: 100%; }
