/* Dedicated cRUD Collab adjustments layered over the Company design. */
/* The typography role tokens and per-surface focus tokens of the cRUD Webinar site.css, so the
   page styles shared with that site (listings, sitemap, documentation) size their type the same way. */
:root {
  --type-hero-title: clamp(2.125rem, 5.4vw, 3.75rem); --leading-hero-title: 1.1; --tracking-hero-title: -0.03em;
  --type-hero-sub: clamp(0.9375rem, 1.5vw, 1.125rem); --leading-hero-sub: 1.6;
  --type-doc-title: clamp(1.875rem, 3.6vw, 2.5rem); --leading-doc-title: 1.1125; --tracking-doc-title: -0.025em;
  --type-section-title: clamp(1.6875rem, 3.6vw, 2.625rem); --leading-section-title: 1.15; --tracking-section-title: -0.025em;
  --type-section-intro: clamp(0.9375rem, 1.4vw, 1.0625rem); --leading-section-intro: 1.65;
  --type-cta-title: clamp(1.875rem, 4.4vw, 3.125rem); --leading-cta-title: 1.12;
  --type-cta-sub: clamp(0.9375rem, 1.4vw, 1rem); --leading-cta-sub: 1.65;
  --type-body: 1rem; --leading-body: 1.6; --type-body-long: 1.0625rem; --leading-body-long: 1.75; --leading-doc-body: 1.5625;
  --type-body-sm: 0.9375rem; --leading-body-sm: 1.6; --type-small: 0.875rem; --leading-small: 1.5;
  --type-meta: 0.8125rem; --type-label: 0.75rem; --tracking-label: 0.06em;
  --type-card-title: 1.25rem; --type-card-title-sm: 1rem; --leading-card-title: 1.15;
  --type-faq-q: 1.0625rem; --leading-faq-q: 1.6; --leading-faq-a: 1.7;
  --type-nav: 0.9375rem; --type-nav-menu: 1.0625rem;
  --type-button: 0.9375rem; --type-button-lg: 1rem; --type-button-sm: 0.875rem;
  --type-table: 0.90625rem; --type-table-head: 0.8125rem; --leading-table: 1.55;
  --type-footer-fine: clamp(0.75rem, 0.92vw, 0.96875rem);
  --measure-display: 60rem; --measure-lede: 44rem;
}
:is(.hero, .phero, .bcover, .endcap__cta) { --focus-solid: var(--identity-on-dark); --focus-gap: var(--teal-black); --focus-lift: var(--shadow-cta-dark); }
:is(.hero--light, .phero--light, .dhero, .ahead, .cform) { --focus-solid: var(--identity); --focus-gap: var(--white); --focus-lift: var(--shadow-cta-light); }
.site-header .header__actions .btn { min-width: 118px; white-space: nowrap; }
.footer__grid--collab { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1024px) {
  .split--sticky > .sec-head,
  .split:has(> .split__body > .cform) > .sec-head { position: sticky; top: calc(var(--header-top) + var(--header-h) + 24px); align-self: start; height: auto; }
  .rblock--sticky { overflow: clip; }
  .rblock--sticky > .rblock__head { position: sticky; top: calc(var(--header-top) + var(--header-h) + 24px); }
}
/* From the cRUD Webinar site.css: the open-block heading measure and the focus ring each
   surface draws with the tokens above. */
.dhero .sec-head h1 { width: min(100%, 52rem); max-width: 52rem; }
:is(.hero, .phero, .dhero, .ahead, .endcap__cta) :is(a, button):focus-visible { box-shadow: 0 0 0 3px var(--focus-solid); }
:is(.hero, .phero, .dhero, .ahead, .endcap__cta) .btn:is(.btn-on-dark, .btn-ghost-on-dark, .btn-primary, .btn-secondary):focus-visible {
  box-shadow: 0 0 0 2px var(--focus-gap), 0 0 0 5px var(--focus-solid), var(--focus-lift);
}
@media (prefers-reduced-motion: reduce) { :is(.hero, .phero, .dhero, .ahead, .endcap__cta) :is(a, button):focus-visible { transition: none; } }
/* The listing parts the cRUD Webinar scripts hide (a single page of posts needs no pager)
   stay hidden: their page styles set a display that would otherwise win over [hidden]. */
:is(.lst__pager, .rnone, .rblock__nav, .pfilter__menu, .rfilter)[hidden] { display: none; }
/* The 404 route check: the cRUD Collab terminal in the site's own type and colours, on the
   warm open block of the cRUD Webinar and Company 404s. */
.rcheck__wrap { position: relative; z-index: 1; display: grid; place-items: center; min-height: calc(var(--view) - var(--header-h) - 48px); }
.rcheck { width: min(100%, 900px); overflow: hidden; background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(1.05); backdrop-filter: blur(10px) saturate(1.05);
  border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 30px 70px -40px rgba(8, 24, 23, 0.35); }
.rcheck__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.rcheck__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--status-no); }
.rcheck__dot:nth-child(2) { background: #D99A2B; }
.rcheck__dot:nth-child(3) { background: var(--identity); }
.rcheck__title { margin-left: 10px; font-size: var(--type-label); font-weight: 700; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); }
.rcheck__body { display: grid; justify-items: start; gap: 10px; padding: clamp(26px, 4.4vw, 52px) clamp(20px, 5vw, 56px) clamp(28px, 4.4vw, 52px); }
.rcheck__body p { margin: 0; font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-primary); overflow-wrap: anywhere; }
.rcheck__body .rcheck__prompt { font-weight: 600; color: var(--identity-strong); }
.rcheck__body .rcheck__muted { color: var(--text-muted); }
.rcheck__body .rcheck__error { font-weight: 600; color: var(--status-no); }
.rcheck__body .rcheck__success { font-weight: 600; color: var(--identity-strong); }
.rcheck__404 { margin: 6px 0 2px; font-size: clamp(76px, min(11vw, 17vh), 156px); font-weight: 700; line-height: 0.92; letter-spacing: -0.05em; color: var(--identity); }
.rcheck__body .rcheck__lead { font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.rcheck__input-row { width: 100%; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rcheck__input-row label { font-weight: 600; color: var(--text-primary); }
.rcheck__input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--radius-control); background: var(--white);
  border: 1px solid var(--border-strong); font: inherit; font-size: var(--type-body-sm); color: var(--text-primary); transition: border-color var(--t-fast) var(--ease); }
.rcheck__input:focus { border-color: var(--identity); }
.rcheck__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
/* An article's hashtags close its body as one row of pills. The shared article styles draw the
   pills from --brand and --ink-secondary, which no site stylesheet defines, and the body's list
   rule would otherwise stack them (the cRUD Webinar articles show the same fault). */
.abody > .post-tags { display: flex; padding-left: 0; margin: 38px 0 0; --brand: var(--identity); --ink-secondary: var(--text-secondary); }
.abody > .post-tags + .afaqs { margin-top: 28px; }
/* The first frame (tools/templates/restore.html): a reload is held until it is back at the
   reading position, and the fixed breadcrumb until crumb.js has measured it. */
html.is-restoring body { visibility: hidden; }
@media (min-width: 1200px) { html.crumb-pending nav.crumb-rail { visibility: hidden; transition: none; } }
/* The ownership line under the footer columns, set as on the cRUD Webinar site. */
.footer__note { margin-top: 40px; font-size: var(--type-meta, 0.8125rem); line-height: 1.5; color: var(--text-muted); }
.footer__note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.footer__note a:hover { color: var(--text-primary); }
.endcap__eyebrow { margin: 0 0 .75rem; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 750; }
@media (max-width: 760px) {
  .footer__grid--collab { grid-template-columns: 1fr; }
}

/* ------------------------------ form fields ------------------------------ */
/* The approved form field design on the Contact form, layered over the field
   rules of the copied Company bundle, as on the Company website's forms (its
   company.css). cform.js puts each control in a box with its status icon and
   marks the field .is-invalid or .is-valid; the written reason or the field's
   note says what the colour and icon say. */
.cform {
  --field-edge: #4A4A4A;
  --field-focus: var(--teal-black);   /* focus: the site's primary colour, edge and glow */
  --field-bad: #A92216;
  --field-ok: var(--status-yes);
  --field-placeholder: #757575;
}
/* One box for every state: 48px tall (the message box keeps its own height),
   the control corner, a 1px edge, text 16px in. A state changes only the edge
   colour and a soft glow, which takes no space. */
.cfield input, .cfield select, .cfield textarea { padding: 12px 16px; border-color: var(--field-edge); }
.cfield input, .cfield select { height: 48px; }
.cfield input::placeholder, .cfield textarea::placeholder { color: var(--field-placeholder); opacity: 1; }
.cselect__btn { min-height: 48px; padding: 12px 16px; border-color: var(--field-edge); }
/* the label 8px above its box, a note, count or reason 2px under it, ending at
   its right edge, at the hint size, in regular weight */
.cfield { gap: 0; }
.cfield > label { margin-bottom: 8px; }
.cfield > .cfield__hint, .cfield > .cform__count { margin-top: 2px; }
.cfield__hint { font-weight: 400; line-height: 1.45; }
.cfield .cfield__hint, .cfield .cform__err { text-align: right; }
.cfield__hint.is-bad { color: var(--field-bad); }
.cform .cform__err { margin: 2px 0 0; font-size: 12.5px; font-weight: 400; line-height: 1.45; color: var(--field-bad); }
/* the count says how many characters are still needed, steps aside once the
   floor is met, and turns red only as the reason for a field that fails */
.cform__count { justify-self: end; text-align: right; font-weight: 400; line-height: 1.45; color: var(--text-muted); }
.cform__count.is-short { color: var(--text-muted); }
.cform__count.is-ok { display: none; }
.cfield.is-invalid .cform__count.is-short { color: var(--field-bad); }

.cfield__box { position: relative; display: block; min-width: 0; }
/* the control fills its box, as it filled the field before it had one */
.cfield__box > input, .cfield__box > select, .cfield__box > textarea, .cfield__box > .cselect { width: 100%; }
/* Room beside the text for the icon in every state, so nothing moves when it
   appears. The icon sits in that padding: clear of a number box's steppers
   and the browser's own autofill button, which stay inside the text area, and
   left of a select's chevron. */
.cfield__box input, .cfield__box textarea { padding-right: 46px; }
.cfield__box select { padding-right: 70px; }
.cfield__box .cselect__btn { gap: 44px; }
/* The icon is the state colour seen through the glyph: a filled circle with the
   exclamation or the checkmark cut out, the preview's own drawing. */
.cfield__icon {
  position: absolute; top: 50%; right: 13px; width: 20px; height: 20px; margin-top: -10px;
  display: none; background-color: var(--field-state); pointer-events: none;
  -webkit-mask: var(--field-glyph) center / 20px 20px no-repeat; mask: var(--field-glyph) center / 20px 20px no-repeat;
}
.cfield:is(.is-invalid, .is-valid) .cfield__icon { display: block; }
.cfield__box--area .cfield__icon { top: 13px; margin-top: 0; }
.cfield__box--select .cfield__icon { right: 40px; }

.cfield.is-invalid, .cconsent.is-invalid { --field-state: var(--field-bad); }
.cfield.is-invalid { --field-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23fff'/%3E%3Cpath d='M10 6v3.5' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='13.9' r='1.2'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='9' mask='url(%23m)'/%3E%3C/svg%3E"); }
.cfield.is-valid { --field-state: var(--field-ok); --field-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Ccircle cx='10' cy='10' r='9' fill='%23fff'/%3E%3Cpath d='m6.1 10.3 2.7 2.7 5.1-5.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='9' mask='url(%23m)'/%3E%3C/svg%3E"); }
.cfield:is(.is-invalid, .is-valid) :is(input, select, textarea, .cselect__btn) {
  border-color: var(--field-state); box-shadow: 0 0 10px var(--field-state);
}
/* Focus: a neutral field takes the primary-colour edge and glow. A field already
   judged keeps its red or green edge, icon and reason while its glow turns to the
   primary colour. The
   glow replaces the site's focus ring on these controls. */
.cform .cfield :is(input, select, textarea, .cselect__btn):focus,
.cform .cfield .cselect__btn[aria-expanded="true"] {
  outline: none; border-color: var(--field-focus); box-shadow: 0 0 10px var(--field-focus);
}
.cform .cfield:is(.is-invalid, .is-valid) :is(input, select, textarea, .cselect__btn):focus,
.cform .cfield:is(.is-invalid, .is-valid) .cselect__btn[aria-expanded="true"] {
  border-color: var(--field-state);
}

/* The terms box: its own tick is its success, so it shows focus and a
   problem only, with the reason under its sentence. */
.cform .cconsent input:focus-visible { outline: 1px solid var(--field-focus); outline-offset: 1px; box-shadow: 0 0 10px var(--field-focus); }
.cconsent.is-invalid input { outline: 1px solid var(--field-bad); outline-offset: 1px; box-shadow: 0 0 10px var(--field-bad); }
.cform .cconsent.is-invalid input:focus-visible { outline-color: var(--field-bad); box-shadow: 0 0 10px var(--field-focus); }
.cform .cconsent + .cform__err { margin-top: -6px; text-align: right; }

/* The browser marks a field it fills from a saved profile; cform.js listens for
   this animation's start, so a fill that announces nothing is still judged. */
@keyframes cfield-autofill { from { opacity: 1; } to { opacity: 1; } }
.cfield input:-webkit-autofill { animation: cfield-autofill 1ms; }
.cfield input:autofill { animation: cfield-autofill 1ms; }

/* On touch screens the text is 16px, so iOS Safari does not zoom the page when
   a field takes focus; the box keeps its size. */
@media (hover: none) and (pointer: coarse) {
  .cfield input, .cfield select, .cfield textarea, .cselect__btn { font-size: 16px; }
}
/* Forced colours (Windows contrast themes) drop shadows, so focus is a
   system-coloured outline there. */
@media (forced-colors: active) {
  .cform .cfield :is(input, select, textarea, .cselect__btn):focus,
  .cform .cfield .cselect__btn[aria-expanded="true"],
  .cform .cconsent input:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  .cfield__icon { forced-color-adjust: none; background-color: CanvasText; }
}
