/* ---------------------------------------------------------------------------
   Global Conference 2027 - Registration section
   Beaver Builder row with the custom class `ifip-gc2027-ref`.

   Every selector starts with `.fl-row.ifip-gc2027-ref` so it outweighs the
   per-node CSS UABB writes for each module (`.fl-node-xxxx .uabb-...`), which
   loads after the theme stylesheets.
--------------------------------------------------------------------------- */

.fl-row.ifip-gc2027-ref {
  --gc-blue: #0095be;
  --gc-link: #2192b9;
  --gc-orange: #e65926;
  --gc-orange-light: #ed7230;
  --gc-brown: #895d3b;
  --gc-coffee: #3a2416;

  /* Pricing table cell fills (light rows, then the slightly deeper rows). */
  --gc-sand-1: #f0e6d4;
  --gc-sand-2: #eadbc2;
  --gc-salmon-1: #f5bda8;
  --gc-salmon-2: #f3ac92;
  --gc-sky-1: #99d5e5;
  --gc-sky-2: #7fcade;

  --gc-gap: 18px;
  --gc-section-gap: clamp(48px, 4vw + 24px, 80px);
  /* Gap between a heading box and the block it introduces (pricing table,
     FAQ list) and between the stacked FAQ questions. */
  --gc-block-gap: clamp(26px, 2vw + 12px, 38px);
  --gc-faq-gap: clamp(22px, 1.4vw + 12px, 30px);
  --gc-radius: 4px;
}

/* Section spacing --------------------------------------------------------
   The whole section sits in one outer column, with the registration-rates
   row, the FAQ answers and the closing photo in nested column groups inside
   it. Space out the modules of that outer column only - the rules must not
   reach the info boxes inside a nested column, which are spaced separately
   below. */

.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > :is(.fl-module-info-box, .fl-module-button, .fl-col-group-nested):not(
    :first-child
  ) {
  margin-top: var(--gc-section-gap);
}

/* Blocks that belong to the heading box right above them sit closer to it:
   the pricing table and the FAQ questions. */
.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-html:not(:first-child) {
  margin-top: calc(var(--gc-block-gap) + var(--gc-gap) * 0.67);
}

.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-info-box:has(h3.uabb-infobox-title-prefix):not(:first-child),
.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-col-group-nested:has(h3.uabb-infobox-title-prefix) {
  margin-top: var(--gc-block-gap);
}

/* Inside a nested column: the stacked FAQ questions. */
.fl-row.ifip-gc2027-ref
  .fl-col-group-nested
  .fl-col-content
  > .fl-module-info-box:not(:first-child) {
  margin-top: var(--gc-faq-gap);
}

/* An empty nested column (the spacer beside the FAQ answers) only holds the
   text width on desktop; once the columns stack it is dead space, padding
   included. Columns with a background stay. */
@media (max-width: 767px) {
  .fl-row.ifip-gc2027-ref
    .fl-col-group-nested
    > .fl-col:not(.fl-col-bg-photo, .fl-col-bg-color):has(
      > .fl-col-content:empty
    ) {
    display: none;
  }
}

/* Section headings ------------------------------------------------------- */

.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-title-prefix {
  margin: 0 0 0.35em;
  color: var(--gc-blue);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Lead heading: "IFIP Global Conference - Registration Now Open". Scoped to
   the first module of the outer column, so the first info box of a nested
   column (the registration rates, the first FAQ question) keeps its own
   size. */
.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-info-box:first-child
  .uabb-infobox
  .uabb-infobox-title-prefix {
  font-size: clamp(2.25rem, 1.5rem + 2.2vw, 2.875rem);
}

/* FAQ questions: smaller than a section heading, and brown rather than
   blue. They are the h3 prefixes; every section heading is an h2. */
.fl-row.ifip-gc2027-ref .uabb-infobox h3.uabb-infobox-title-prefix {
  margin-bottom: 0.3em;
  color: var(--gc-brown);
  font-size: clamp(1.4375rem, 1.2rem + 0.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Sub-headings: the h3 title is orange, an h3 in the body text is blue
   ("Early Bird ... " / "Regular Rates ..."). */
.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-title,
.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-text h3 {
  margin: 0 0 0.75em;
  color: var(--gc-orange);
  font-family: Roboto, sans-serif;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-text h3 {
  color: var(--gc-blue);
  font-size: 1.1875rem;
}

/* Body copy -------------------------------------------------------------- */

.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-text {
  color: #000;
  line-height: 1.6;
}

.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-text p {
  margin: 0 0 1.25em;
}

.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-text p:last-child {
  margin-bottom: 0;
}

.fl-row.ifip-gc2027-ref .uabb-infobox-text a {
  color: var(--gc-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fl-row.ifip-gc2027-ref .uabb-infobox-text a:is(:hover, :focus) {
  color: var(--gc-orange);
}

/* "Questions?" box: the bold lead-in of each line is blue. */
.fl-row.ifip-gc2027-ref .fl-node-68kmqo2pcjxr .uabb-infobox-text strong {
  color: var(--gc-blue);
  font-weight: 700;
}

/* The lead box's text is only an empty link placeholder; drop it, and the
   sub-heading's trailing margin with it, so nothing dangles under the
   opening heading. Scoped to the outer column's first module so the FAQ
   answers are not caught by it. */
.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-info-box:first-child
  .uabb-infobox-text-wrap {
  display: none;
}

.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-info-box:first-child
  .uabb-infobox-title {
  margin-bottom: 0;
}

/* Buttons ---------------------------------------------------------------- */

/* "Register Now" (UABB creative button): left aligned orange pill. */
.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-button-wrap {
  text-align: left;
}

.fl-row.ifip-gc2027-ref .uabb-infobox .uabb-infobox-button {
  margin-top: 0.5em;
}

.fl-row.ifip-gc2027-ref .uabb-infobox a.uabb-button,
.fl-row.ifip-gc2027-ref .uabb-infobox a.uabb-button:visited {
  display: inline-block;
  padding: 0.55em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--gc-orange-light);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s linear;
}

.fl-row.ifip-gc2027-ref .uabb-infobox a.uabb-button .uabb-button-text {
  color: inherit;
}

/* BB buttons ("Register now" beside the rates, "Register Now and Join Us in
   Darwin" lower down): orange Bebas pills that keep the alignment chosen on
   the module. */
.fl-row.ifip-gc2027-ref .fl-module-button.fl-button-left {
  text-align: left;
}

.fl-row.ifip-gc2027-ref .fl-module-button.fl-button-center {
  text-align: center;
}

.fl-row.ifip-gc2027-ref .fl-module-button.fl-button-right {
  text-align: right;
}

.fl-row.ifip-gc2027-ref .fl-module-button a.fl-button,
.fl-row.ifip-gc2027-ref .fl-module-button a.fl-button:visited {
  display: inline-block;
  padding: 0.3em 1.05em;
  border: 0;
  border-radius: 999px;
  background: var(--gc-orange);
  color: #fff;
  cursor: pointer;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.5rem, 1.15rem + 0.9vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 0.2s linear;
}

/* The closing Darwin button, straight in the outer column, is the big one. */
.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-button a.fl-button,
.fl-row.ifip-gc2027-ref
  .fl-col-group:not(.fl-col-group-nested)
  > .fl-col
  > .fl-col-content
  > .fl-module-button a.fl-button:visited {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem);
}

/* Phones: the rates button stacks under its heading, so it lines up with
   the copy instead of hanging off to the right. */
@media (max-width: 767px) {
  .fl-row.ifip-gc2027-ref .fl-col-group-nested .fl-module-button.fl-button-right {
    margin-top: var(--gc-block-gap);
    text-align: left;
  }
}

.fl-row.ifip-gc2027-ref .fl-module-button a.fl-button .fl-button-text {
  color: inherit;
  font: inherit;
}

/* Both buttons go site dark blue on hover, like .fm-button. */
.fl-row.ifip-gc2027-ref .uabb-infobox a.uabb-button:is(:hover, :focus),
.fl-row.ifip-gc2027-ref .fl-module-button a.fl-button:is(:hover, :focus) {
  background: var(--gc-link);
  color: #fff;
}

/* Focus rings ------------------------------------------------------------
   Shown on every focus, mouse click included, not only :focus-visible.
   Covers the links in the copy and both register buttons. */
.fl-row.ifip-gc2027-ref
  :is(
    a[href],
    button,
    input,
    select,
    textarea,
    [tabindex]:not([tabindex="-1"])
  ):is(:focus, :focus-visible) {
  outline: 3px solid var(--gc-link);
  outline-offset: 2px;
  box-shadow: none;
}

/* Pills: a little more room so the ring clears the rounded edge. */
.fl-row.ifip-gc2027-ref :is(a.uabb-button, a.fl-button):is(:focus, :focus-visible) {
  outline-offset: 3px;
}

/* Pricing table ---------------------------------------------------------- */

.fl-row.ifip-gc2027-ref table.pricing {
  width: calc(100% + 2 * var(--gc-gap));
  margin: calc(-1 * var(--gc-gap) * 0.67) calc(-1 * var(--gc-gap));
  border: 0;
  border-collapse: separate;
  border-spacing: var(--gc-gap) calc(var(--gc-gap) * 0.67);
  table-layout: fixed;
  font-family: Roboto, sans-serif;
}

.fl-row.ifip-gc2027-ref table.pricing :is(th, td) {
  height: 86px;
  padding: 0.75em 1em;
  border: 0;
  border-radius: var(--gc-radius);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.25;
  vertical-align: middle;
}

/* Column widths: type ~50%, prices ~25% each. */
.fl-row.ifip-gc2027-ref table.pricing .col-type {
  width: 50%;
}

.fl-row.ifip-gc2027-ref table.pricing th {
  color: #fff;
  text-align: center;
}

.fl-row.ifip-gc2027-ref table.pricing th br {
  display: none;
}

.fl-row.ifip-gc2027-ref table.pricing th.col-type {
  background: var(--gc-brown);
  text-align: left;
}

.fl-row.ifip-gc2027-ref table.pricing th.col-usd {
  background: var(--gc-orange);
}

.fl-row.ifip-gc2027-ref table.pricing th.col-aud {
  background: var(--gc-blue);
}

.fl-row.ifip-gc2027-ref table.pricing td {
  text-align: center;
}

.fl-row.ifip-gc2027-ref table.pricing td.type {
  background: var(--gc-sand-2);
  color: var(--gc-coffee);
  text-align: left;
}

.fl-row.ifip-gc2027-ref table.pricing td.usd {
  background: var(--gc-salmon-2);
  color: var(--gc-orange);
}

.fl-row.ifip-gc2027-ref table.pricing td.aud {
  background: var(--gc-sky-2);
  color: var(--gc-blue);
}

/* Lighter fills on the first rows, per the design. */
.fl-row.ifip-gc2027-ref table.pricing tbody tr:first-child td.type {
  background: var(--gc-sand-1);
}

.fl-row.ifip-gc2027-ref table.pricing tbody tr:nth-child(-n + 3) td.usd {
  background: var(--gc-salmon-1);
}

.fl-row.ifip-gc2027-ref table.pricing tbody tr:nth-child(-n + 3) td.aud {
  background: var(--gc-sky-1);
}

/* Phones: drop the header row and show each registration type as a card,
   the type across the top and the two prices side by side, each labelled
   from its data-label. */
@media (max-width: 767px) {
  .fl-row.ifip-gc2027-ref table.pricing,
  .fl-row.ifip-gc2027-ref table.pricing tbody {
    display: block;
    width: 100%;
    margin: 0;
  }

  .fl-row.ifip-gc2027-ref table.pricing thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .fl-row.ifip-gc2027-ref table.pricing tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }

  .fl-row.ifip-gc2027-ref table.pricing td {
    display: block;
    height: auto;
    padding: 0.7em 0.9em;
    font-size: 1.0625rem;
  }

  .fl-row.ifip-gc2027-ref table.pricing td.type {
    grid-column: 1 / -1;
  }

  .fl-row.ifip-gc2027-ref table.pricing td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2em;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.85;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-row.ifip-gc2027-ref :is(a.uabb-button, a.fl-button) {
    transition: none;
  }
}
