/* ATHRTY PX-129 | Obsidian Form System v1.
   Source reference: /contact. Opt-in only (.ath-form), site-brand tokens inherit.
   Never style builder canvas, published customer sites, or third-party forms. */
:where(.ath-form){
 --ath-form-ink:var(--ink,var(--athrty-ink,#eef3f0));
 --ath-form-muted:var(--muted,var(--athrty-subtle,#aabdb6));
 --ath-form-edge:var(--line,var(--athrty-edge,#4b6766));
 --ath-form-fill:var(--bg,var(--athrty-bg,#172229));
 --ath-form-focus:var(--focus,var(--athrty-accent,#b8dccc));
 --ath-form-radius:12px;
 --ath-form-space:10px;
 color:var(--ath-form-ink);
 min-width:0;
}
:where(.ath-form) .ath-form-field{
 display:flex;flex-direction:column;gap:var(--ath-form-space);
 min-width:0;max-width:100%;
}
:where(.ath-form) .ath-form-field > .ath-form-label{
 display:block;min-width:0;max-width:100%;
 font-size:inherit;font-weight:inherit;line-height:1.5;
 color:var(--ath-form-ink);white-space:normal;overflow-wrap:break-word;
}
:where(.ath-form) .ath-form-field > .ath-form-label .required,
:where(.ath-form) .ath-form-field > .ath-form-label .ath-form-required{
 display:inline;position:static;float:none;vertical-align:baseline;
 width:auto;height:auto;margin-inline-start:.18em;
 font-size:.94em;font-weight:750;line-height:inherit;
 color:var(--ath-form-focus);white-space:nowrap;
}
:where(.ath-form) .ath-form-field > .ath-form-label .optional,
:where(.ath-form) .ath-form-field > .ath-form-label .ath-form-optional{
 display:inline;color:var(--ath-form-muted);font-weight:450;font-size:.85em;
 margin-inline-start:.25em;white-space:nowrap;
}
:where(.ath-form) .ath-form-control{
 display:block;width:100%;min-width:0;max-width:100%;min-height:52px;
 padding:14px 15px;box-sizing:border-box;
 border:1px solid var(--ath-form-edge);border-radius:var(--ath-form-radius);
 background:var(--ath-form-fill);color:var(--ath-form-ink);
 font:inherit;font-size:16px;line-height:1.45;
 -webkit-appearance:none;appearance:none;
 transition:border-color .18s ease,box-shadow .18s ease;
 user-select:text;
}
:where(.ath-form) textarea.ath-form-control{min-height:130px;resize:vertical}
:where(.ath-form) .ath-form-control::placeholder{color:var(--ath-form-muted);opacity:.86}
:where(.ath-form) .ath-form-control:focus{
 border-color:var(--ath-form-focus);outline:0;box-shadow:none;
}
/* One keyboard focus indicator. The old shadow + outline created a double ring. */
:where(.ath-form) .ath-form-control:focus-visible{
 outline:2px solid var(--ath-form-focus);outline-offset:2px;
 box-shadow:none;
}
:where(.ath-form) .ath-form-control[aria-invalid="true"]{
 border-color:#df8f84;
}
:where(.ath-form) .ath-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0;
}
:where(.ath-form) .ath-form-field-description{
 display:block;color:var(--ath-form-muted);font-size:.83rem;line-height:1.55;
}
@media(max-width:680px){
 :where(.ath-form) .ath-form-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){
 :where(.ath-form) .ath-form-control{transition:none}
}
/* Contact source adopts the opt-in family without altering its dark-blue card palette. */
body.v66-contact .ath-form{
 --ath-form-ink:var(--ink);
 --ath-form-muted:var(--muted);
 --ath-form-edge:var(--line);
 --ath-form-fill:var(--bg);
 --ath-form-focus:var(--focus);
 --ath-form-radius:10px;
}
body.v66-contact .ath-form .ath-form-field>.ath-form-label{font-size:13px;font-weight:650}
body.v66-contact .ath-form .ath-form-control{font-size:16px}
/* PX-129.1 opt-in form refinement */
:where(.ath-form) .ath-form-field > .ath-form-label :is(.required,.ath-form-required){position:static!important;display:inline!important;inset:auto!important;transform:none!important;float:none!important;vertical-align:baseline!important;line-height:inherit!important;white-space:nowrap;margin-inline-start:.2em}
:where(.ath-form) :is(.ath-form-field,.ath-form-grid)>*{min-width:0;max-width:100%}
:where(.ath-form) .ath-form-control[aria-invalid="true"]{border-color:#df8f84;box-shadow:0 0 0 1px #df8f84}
:where(.ath-form) .ath-form-control[aria-invalid="true"]:focus-visible{outline-color:#df8f84}
:where(.ath-form) :is(.ath-form-field-description,[role="alert"]){overflow-wrap:anywhere}
@media(max-width:430px){:where(.ath-form) .ath-form-grid{gap:12px}}
/* PX-130: accessible validation state; retain matte controls and keyboard focus. */
:where(.ath-form) :is(input[type="checkbox"],input[type="radio"])[aria-invalid="true"]{
 outline:2px solid #bb625e;outline-offset:3px;
}
:where(.ath-form) .ath-form-control[aria-invalid="true"],
body.v66-contact .ath-form .ath-form-control[aria-invalid="true"]{
 --athrty-border-interactive:#bb625e;
 border-color:#bb625e;box-shadow:none;
}
/* Semantic error state must override the host appearance border without
   affecting resting surfaces, keyboard focus or generated client websites. */
html[data-theme][data-color-scheme] body.v66-contact form.ath-form
 :is(input,select,textarea).ath-form-control[aria-invalid="true"]{
 border-color:#bb625e!important;
 box-shadow:inset 0 0 0 2px #bb625e!important;
}
/* PX-131 | Theme-switch legibility: foreground and surface pigments must not
   tween through low-contrast intermediate colors. Keep geometry-only motion. */
html[data-theme][data-color-scheme] body.v66-contact .ath-form button[type="submit"]{
 transition-property:transform!important;
}
@media(prefers-reduced-motion:reduce){
 html[data-theme][data-color-scheme] body.v66-contact .ath-form button[type="submit"]{
  transition:none!important;
 }
}
@media(forced-colors:active){
 :where(.ath-form) :is(input,select,textarea)[aria-invalid="true"]{
  outline:2px solid Mark;outline-offset:2px;
 }
}