/* WordPress-specific additions for the Gftiq theme. */
/* Logged-in admin bar should not cover the sticky header. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Fluent Forms styled to match the original .form-grid / .field look. */
.gftiq-form .fluentform { margin: 0; }
.gftiq-form .fluentform form.frm-fluent-form > fieldset { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 1rem; }
.gftiq-form .fluentform .ff-el-group { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.gftiq-form .fluentform .field--full, .gftiq-form .fluentform .ff_submit_btn_wrapper,
.gftiq-form .fluentform .ff-errors-in-stack, .gftiq-form .fluentform .ff-message-success { grid-column: 1 / -1; }
.gftiq-form .fluentform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.gftiq-form .fluentform .ff-el-input--label { margin: 0; padding: 0; }
.gftiq-form .fluentform .ff-el-input--label label { font-weight: 700; font-size: .95rem; color: var(--ink); margin: 0; display: inline; }
.gftiq-form .fluentform .ff-el-input--label.asterisk-right label::after,
.gftiq-form .fluentform .ff-el-is-required.asterisk-right label::after { content: none; }
.gftiq-form .fluentform .ff-el-form-control {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid #9AA3B5; border-radius: 12px; padding: .7rem .85rem; width: 100%; line-height: 1.4; height: auto; box-shadow: none; }
.gftiq-form .fluentform select.ff-el-form-control { appearance: auto; -webkit-appearance: auto; padding-right: .6rem; }
.gftiq-form .fluentform .ff-el-form-control:focus { border-color: var(--teal); outline: 3px solid rgba(127,219,212,.5); outline-offset: 0; box-shadow: none; }
.gftiq-form .fluentform .ff-el-input--content { display: block; }
.gftiq-form .fluentform .ff_list_inline .ff-el-input--content, .gftiq-form .fluentform .radio-row-wrap .ff-el-input--content { display: flex; gap: .8rem 1.4rem; flex-wrap: wrap; }
.gftiq-form .fluentform .ff-el-form-check { margin: 0; display: inline-flex; }
.gftiq-form .fluentform .ff-el-form-check-label { font-weight: 400; display: inline-flex; gap: .4rem; align-items: center; color: var(--ink); cursor: pointer; }
.gftiq-form .fluentform .ff-el-form-check-input { accent-color: var(--teal); width: 1.05rem; height: 1.05rem; margin: 0; }
.gftiq-form .fluentform .ff-el-is-error .ff-el-form-control { border-color: #7A4E12; }
.gftiq-form .fluentform .error, .gftiq-form .fluentform .text-danger, .gftiq-form .fluentform .ff-el-is-error .text-danger { color: #6B4A12; font-weight: 700; font-size: .9rem; margin-top: .2rem; }
.gftiq-form .fluentform .ff_submit_btn_wrapper { margin: 0; }
.gftiq-form .fluentform .ff-btn-submit.btn { font: inherit; font-weight: 800; cursor: pointer; }
.gftiq-form .fluentform .ff-btn-submit:disabled { opacity: .7; cursor: progress; }
.gftiq-form .ff-message-success { border: 0; background: rgba(255,255,255,.6); border-radius: 16px; padding: 1rem 1.2rem; box-shadow: none; color: var(--ink); font-weight: 700; margin: 0 0 1rem; }
.gftiq-form .ff-message-success p { margin: 0; }
.gftiq-form .ff-errors-in-stack { color: #6B4A12; font-weight: 700; }
@media (max-width: 600px) { .gftiq-form .fluentform form.frm-fluent-form > fieldset { grid-template-columns: minmax(0,1fr); } }
/* Hide the accessible-but-visible honeypot and FF's own loading spinner overlay quirks. */
.gftiq-form .ff-el-group.ff_hidden_field { display: none; }

/* Fluent Forms: restore the original Gftiq button and spacing over the plugin defaults. */
.gftiq-form .fluentform .ff-el-group { margin-bottom: 1rem; }
.gftiq-form .fluentform .ff-el-input--label { margin-bottom: .35rem; }
.gftiq-form .fluentform .ff_submit_btn_wrapper { margin-top: .25rem; }
.gftiq-form .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn,
.gftiq-form .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn:focus {
  width: auto; display: inline-flex; background: var(--brand); color: var(--brand-ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: .8rem 1.4rem;
  box-shadow: 0 3px 0 var(--ink); font-size: 1.02rem; line-height: 1.2; opacity: 1; }
.gftiq-form .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn:hover {
  background: var(--brand-dark); color: var(--brand-ink); transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); opacity: 1; }
.gftiq-form .fluentform .ff-el-form-check { margin-bottom: 0; }
.gftiq-form .fluentform .ff-el-form-check-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; }
.gftiq-form .fluentform .ff-el-group.ff_submit_btn_wrapper { display: block; }
.gftiq-form .fluentform .ff_submit_btn_wrapper .ff-btn-submit.btn { width: auto !important; max-width: 100%; }
.gftiq-form .fluentform .ff-el-group { margin-bottom: .85rem; gap: .3rem; }
.gftiq-form .fluentform .ff-el-input--label { margin-bottom: 0; }
.gftiq-form .fluentform .ff_submit_btn_wrapper { margin: .2rem 0 1rem; }
/* Error text floats under its field so the layout doesn't jump when errors clear. */
.gftiq-form .fluentform .ff-el-group { position: relative; margin-bottom: 1.35rem; }
.gftiq-form .fluentform .ff-el-group .error.text-danger { position: absolute; left: 0; top: 100%; margin: .15rem 0 0; font-size: .82rem; line-height: 1.2; }

/* Mobile overflow fix (2026-10-24): grid and flex children may shrink below their content width. */
.hero .wrap, .waitlist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .hero .wrap, .waitlist { grid-template-columns: minmax(0, 1fr); } }
.wrap > *, .waitlist > *, .gftiq-form, fieldset { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }
h1, h2, h3, p, li, dd, dt { overflow-wrap: break-word; }
.fluentform, .fluentform form, .fluentform fieldset, .fluentform .ff-el-group,
.fluentform .ff-el-input--label, .fluentform .ff-el-input--content { max-width: 100%; min-width: 0; box-sizing: border-box; }
.fluentform input, .fluentform select, .fluentform textarea { max-width: 100%; box-sizing: border-box; }
.fluentform .ff-el-input--label { white-space: normal; }
.fluentform .ff-t-container { flex-wrap: wrap; }
.site-footer .wrap, .site-footer [class*="grid"], .site-footer [class*="cols"] { min-width: 0; }
.site-footer * { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .site-footer [class*="grid"], .site-footer [class*="cols"] { flex-wrap: wrap; }
  .table-wrap { max-width: 100%; }
  .int-table th, .int-table td { white-space: normal; }
}
/* Product demo on small screens */
.app-shell > * , .main > *, .card { min-width: 0; }
@media (max-width: 600px) {
  .app-shell { grid-template-columns: minmax(0, 74px) minmax(0, 1fr); }
  .gm-prof { grid-template-columns: minmax(0, 1fr); }
  .gm-prof dd { flex-wrap: wrap; }
  .gm-prof .d-chip { white-space: normal; max-width: 100%; }
  .card > div[style*="flex"], .card div[style*="display:flex"], .card div[style*="display: flex"] { flex-wrap: wrap; min-width: 0; }
  .card .small-print { min-width: 0; overflow-wrap: anywhere; }
}
.status, .d-chip { max-width: 100%; }
@media (max-width: 600px) { p > .status, .status--example { white-space: normal; height: auto; line-height: 1.35; text-align: left; } }

/* Footer links on phones (2026-10-24): two link columns, the third wraps below. */
@media (max-width: 600px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.5rem; row-gap: 1.8rem; }
  .site-footer .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Product family row (home, 2026-10-24) */
.family { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.family a { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .9rem 1rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.family a:hover, .family a:focus-visible { border-color: var(--teal, #0E7C86); }
.family strong { font-size: 1.05rem; color: var(--teal, #0E7C86); }
.family span { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 1000px) { .family { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .family { grid-template-columns: minmax(0, 1fr); } }

/* Main nav between the mobile menu and wide screens: keep every item on one line. */
@media (min-width: 1001px) and (max-width: 1240px) {
  #site-nav ul { gap: .1rem; }
  #site-nav a { padding: .45rem .55rem; font-size: .95rem; white-space: nowrap; }
  #site-nav a.btn { padding: .45rem .85rem; }
}
