/* ICPA session certificate of completion ([icpa_ce_certificate]). Letter landscape in print.
   Layout follows the Cvent certificate (corner bands, wave lines, Baskerville headings, CE marks bottom left);
   colours are icpainc.org's: ink, dark navy, 18K gold, with the session facts on an ink strip.
   Type scales with the certificate's width (cqw), so screen and print match.
   The theme stretches .wpprose images, sets h1 in Besley and justifies/hyphenates p, so key rules carry !important. */
@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:400 700;font-display:swap;src:url("fonts/libre-baskerville-latin.woff2") format("woff2")}
@font-face{font-family:"Libre Baskerville";font-style:italic;font-weight:400;font-display:swap;src:url("fonts/libre-baskerville-italic-latin.woff2") format("woff2")}

.tx-cert-page{--c-navy:#0B1F3A;--c-blue:#30588F;--c-dnavy:#232460;--c-ink:#0A1220;--c-ink2:#101B2E;--c-gold:#C9A227;--c-gold-bright:#E3C25B;
  --c-gold-deep:#8A6A17;--c-text:#262A33;--c-mute:#5A6478;--c-line:#D6DCE5;
  --g-gold:linear-gradient(90deg,#A8841E 0%,#C9A227 26%,#F3DA8C 50%,#C9A227 74%,#A8841E 100%);
  --f-serif:"Libre Baskerville",Baskerville,Georgia,serif;
  max-width:1000px;margin:0 auto;color:var(--c-text);font-family:"Open Sans","Segoe UI",Arial,sans-serif}
.tx-cert-page p,.tx-cert-page dd{text-align:center!important;hyphens:none!important;-webkit-hyphens:none!important}

.tx-cert-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 18px}
.tx-cert-page p.tx-cert-actions{text-align:left!important}
.tx-cert-btn{font:inherit;font-weight:600;padding:10px 18px;border-radius:8px;border:1px solid var(--c-blue);background:var(--c-blue);color:#fff;cursor:pointer}
.tx-cert-btn:hover{background:var(--c-navy);border-color:var(--c-navy)}
.tx-cert-btn:focus-visible{outline:3px solid #F2B705;outline-offset:2px}
.tx-cert-hint{font-size:.875rem;color:var(--c-mute)}

/* the sheet */
.tx-cert{container-type:inline-size;position:relative;overflow:hidden;aspect-ratio:11/8.5;display:flex;flex-direction:column;background:#fff;
  border:1px solid #E3E7EE;box-shadow:0 1px 3px rgba(11,31,58,.10),0 14px 36px rgba(11,31,58,.12)}
.tx-cert svg{position:absolute;z-index:2;display:block;pointer-events:none}
.tx-cert__band{width:66%;height:auto}
.tx-cert__band--tl{top:0;left:0}
.tx-cert__band--br{bottom:0;right:0;width:34%;transform:rotate(180deg)}
.tx-cert__waves{width:24%;height:auto}
.tx-cert__waves--tr{top:0;right:0}

.tx-cert__body{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;
  padding:9cqw 12cqw 1cqw}
.tx-cert-page .tx-cert__body p{margin:0}
.tx-cert-page p.tx-cert__word{font-family:var(--f-serif);font-weight:400;font-size:6.2cqw;line-height:1;letter-spacing:.03em;text-transform:uppercase;color:var(--c-ink)}
.tx-cert-page p.tx-cert__of{margin-top:1.4cqw;font-family:var(--f-serif);font-weight:700;font-size:2.3cqw;line-height:1;letter-spacing:.2em;text-transform:uppercase;color:var(--c-gold-deep)}
.tx-cert-page p.tx-cert__to{margin-top:2cqw;font-family:var(--f-serif);font-weight:700;font-size:1.55cqw;letter-spacing:.14em;text-transform:uppercase;color:var(--c-dnavy)}
.tx-cert-page p.tx-cert__name{margin-top:2.2cqw;padding:0 3cqw 1cqw;border-bottom:0;background:var(--g-gold) bottom/100% 2px no-repeat;
  font-family:var(--f-serif);font-style:italic;font-weight:400;font-size:4.4cqw;line-height:1.15;color:var(--c-dnavy)}
.tx-cert-page p.tx-cert__lead{margin-top:1.6cqw;font-size:1.35cqw;color:var(--c-mute);letter-spacing:.02em}
.tx-cert-page h1.tx-cert__title{margin:.5cqw 0 0!important;max-width:30ch;font-family:var(--f-serif)!important;font-size:2.15cqw!important;line-height:1.3!important;
  font-weight:700!important;color:var(--c-ink)!important;text-align:center}
.tx-cert-page p.tx-cert__series{margin-top:.5cqw;font-size:1.4cqw;font-weight:600;color:var(--c-blue)}
.tx-cert-page .tx-cert--speaker p.tx-cert__series{margin-top:1.3cqw;font-family:var(--f-serif);font-style:italic;font-weight:400;font-size:2.2cqw;line-height:1.3;color:var(--c-dnavy)}
/* 1.0.5: the attendance certificate's event name in the same navy italic as the speaker certificate */
.tx-cert-page .tx-cert--attend h1.tx-cert__title{max-width:34ch;font-style:italic!important;font-weight:400!important;font-size:2.4cqw!important;color:var(--c-dnavy)!important}
/* 1.0.5: the CE certificate's event name in the same navy italic (h1 for an event, the series line for a session), and a quiet city line under every event name */
.tx-cert-page h1.tx-cert__title--event{max-width:34ch;font-style:italic!important;font-weight:400!important;font-size:2.4cqw!important;color:var(--c-dnavy)!important}
.tx-cert-page p.tx-cert__series--event{margin-top:1cqw;font-family:var(--f-serif);font-style:italic;font-weight:400;font-size:2.2cqw;line-height:1.3;color:var(--c-dnavy)}
.tx-cert-page p.tx-cert__place{margin-top:.35cqw;font-family:"Open Sans","Segoe UI",Arial,sans-serif;font-size:1.2cqw;font-weight:600;letter-spacing:.04em;color:var(--c-mute)}
.tx-cert__at{display:block;margin-bottom:.3cqw;font-family:"Open Sans","Segoe UI",Arial,sans-serif;font-style:normal;font-size:1.35cqw;color:var(--c-mute);letter-spacing:.02em}
.tx-cert-page p.tx-cert__by{margin-top:1.3cqw;max-width:72ch;font-size:1.3cqw;line-height:1.5;color:var(--c-text)}
.tx-cert__by-label{display:block;margin:0 0 .2cqw;font-size:.9cqw;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--c-gold-deep)}
.tx-cert__who{display:block}
.tx-cert__sep{display:none}
.tx-cert__who strong{font-weight:700;color:var(--c-dnavy)}
.tx-cert-page p.tx-cert__blurb{margin-top:1.1cqw;max-width:52ch;font-family:var(--f-serif);font-size:1.3cqw;line-height:1.55;color:#3A3F4A}

.tx-cert__strip{position:relative;z-index:1;background:linear-gradient(100deg,var(--c-ink) 0%,var(--c-ink2) 55%,var(--c-dnavy) 100%);padding:1.5cqw 26cqw 1.6cqw 3cqw}
.tx-cert__strip::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--g-gold)}
.tx-cert__facts{display:flex;justify-content:flex-start;margin:0;padding:0}
.tx-cert__facts div{padding:0 2.4cqw;border-left:1px solid rgba(227,194,91,.45)}
.tx-cert__facts div:first-child{border-left:0;padding-left:0}
.tx-cert__facts dt{font-size:.95cqw;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--c-gold-bright);text-align:left}
.tx-cert-page .tx-cert__facts dd{margin:.35cqw 0 0;font-size:1.5cqw;font-weight:600;color:#fff;text-align:left!important}
.tx-cert__code{font-family:Consolas,"Courier New",monospace;letter-spacing:.02em;white-space:nowrap}
.tx-cert__types{display:block;font-size:1.05cqw;font-weight:400;color:#C9D3E3}
/* 1.0.5: five cells (Date, NEI LCB Code, Total CEUs, Reciprocity, Location) still clear the bottom-right band: tighter cells; Date, Reciprocity and Location wrap (never inside an item) instead of pushing past it */
.tx-cert__facts div{flex:none;padding:0 1.6cqw}
.tx-cert__facts div.tx-cert__fact--wrap{flex:0 1 auto;min-width:0}
.tx-cert__facts div.tx-cert__fact--recip{flex:1 1 auto;min-width:15cqw}
.tx-cert-page .tx-cert__facts .tx-cert__fact--wrap dd{white-space:normal}
.tx-cert__item{white-space:nowrap}
.tx-cert__line{display:block}
.tx-cert__lbl{color:var(--c-gold-bright)}

/* bottom: one ICPA mark left (ITC logo when it applies, else the regular logo; 0.4.7), fine print centred, CBP / NCBFAA EI marks right.
   The ITC height rules come after mark--icpa so they win on an ITC mark. */
.tx-cert__foot{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:2cqw;padding:1.6cqw 3cqw 1.5cqw}
.tx-cert__marks{display:contents}
.tx-cert__partners{grid-column:3;grid-row:1;display:flex;align-items:center;gap:1.8cqw}
.tx-cert-page img.tx-cert__mark{display:block;width:auto!important;max-width:none!important;margin:0!important}
.tx-cert-page img.tx-cert__mark--cbp{height:6.2cqw!important}
.tx-cert-page img.tx-cert__mark--icpa{height:6cqw!important}
.tx-cert-page img.tx-cert__mark--itc-full{height:7cqw!important}
.tx-cert-page img.tx-cert__mark--itc-short{height:5.4cqw!important}
.tx-cert-page img.tx-cert__mark--nei{height:6.4cqw!important}
.tx-cert__fine{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;gap:.5cqw;padding:0;font-size:1.05cqw;line-height:1.45;color:var(--c-mute)}
.tx-cert-page .tx-cert__fine p{margin:0;text-align:center!important}

.tx-cert-note{margin:16px 0 0;font-size:.875rem;color:var(--c-mute)}
.tx-cert-note a{color:var(--c-blue);font-weight:600}
.tx-cert-missing{padding:24px;border:1px dashed var(--c-line);border-radius:10px;background:#F4F6F9}
.tx-cert-page p.tx-cert-missing{text-align:left!important}
.tx-cert-page .tx-cert__fine p.tx-cert__verify{font-weight:600;color:var(--c-dnavy);letter-spacing:.01em}
/* Speaker certificate: no partner marks, so the fine print sits on the right edge opposite the logo. */
.tx-cert--speaker .tx-cert__fine{grid-column:2 / -1;align-items:flex-end}
.tx-cert-page .tx-cert--speaker .tx-cert__fine p{text-align:right!important}

/* 0.3.0: sign-in message for an owner-only certificate */
.tx-cert-signin{max-width:720px}
.tx-cert-page h2.tx-cert-signin__h{margin:0 0 10px;font-size:1.375rem;color:var(--c-navy)}
.tx-cert-page .tx-cert-signin p{margin:0 0 10px;text-align:left!important}
.tx-cert-signin a{color:var(--c-blue);font-weight:600}

/* 0.3.0: verify page [icpa_cert_verify] */
.tx-verify{max-width:760px}
.tx-cert-page.tx-verify p{text-align:left!important}
.tx-verify__intro{margin:0 0 14px}
.tx-verify__form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 22px}
.tx-verify__form label{font-weight:600;color:var(--c-navy)}
.tx-verify__form input{font:inherit;font-family:Consolas,"Courier New",monospace;font-size:1.0625rem;letter-spacing:.08em;text-transform:uppercase;
  width:12ch;padding:9px 12px;border:1px solid #AEB8C7;border-radius:8px}
.tx-verify__form input:focus-visible{outline:3px solid #F2B705;outline-offset:2px}
.tx-verify__result{padding:20px 22px;border-radius:10px;border:1px solid var(--c-line);background:#fff}
.tx-verify__result--ok{border-color:#9CC9A8;background:#F3FAF5}
.tx-verify__result--no{background:#F4F6F9}
.tx-cert-page h2.tx-verify__h{margin:0 0 4px;font-size:1.375rem;color:var(--c-navy)}
.tx-verify__result--ok h2.tx-verify__h{color:#1E6B3A}
.tx-verify__result--ok h2.tx-verify__h::before{content:"\2713";display:inline-block;margin-right:8px;color:#1E6B3A}
.tx-verify__code{margin:0 0 14px;font-size:.875rem;color:var(--c-mute)}
.tx-verify__facts{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:0 0 14px}
.tx-verify__facts div{display:contents}
.tx-verify__facts dt{font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--c-mute);padding-top:2px}
.tx-cert-page .tx-verify__facts dd{margin:0;font-weight:600;color:var(--c-ink);text-align:left!important}
.tx-verify__by,.tx-verify__note{margin:0 0 6px;font-size:.9375rem}
.tx-verify__note{color:var(--c-mute)}
.tx-verify__result a{color:var(--c-blue);font-weight:600}
@media screen and (max-width:560px){
  .tx-verify__facts{grid-template-columns:1fr;gap:2px}
  .tx-verify__facts dd{margin-bottom:8px}
}

.tx-cert-sample{margin:0 0 16px;padding:12px 16px;border-radius:8px;background:#FFF4D6;color:#5A4300;font-weight:600}

/* phones: the sheet grows to fit, type keeps a readable floor */
@media screen and (max-width:760px){
  .tx-cert{aspect-ratio:auto}
  .tx-cert__body{padding:22cqw 6cqw 0}
  .tx-cert__band{width:82%}
  .tx-cert__waves{width:34%}
  .tx-cert__band--br{width:60%}
  .tx-cert-page p.tx-cert__word{font-size:max(9cqw,28px)}
  .tx-cert-page p.tx-cert__of{font-size:max(3.6cqw,13px)}
  .tx-cert-page p.tx-cert__to{font-size:max(2.6cqw,11px)}
  .tx-cert-page p.tx-cert__name{font-size:max(6.6cqw,26px)}
  .tx-cert-page p.tx-cert__lead{font-size:14px}
  .tx-cert-page h1.tx-cert__title{font-size:max(4.2cqw,18px)!important}
  .tx-cert-page p.tx-cert__series{font-size:14px}
  .tx-cert-page .tx-cert--speaker p.tx-cert__series{margin-top:10px;font-size:17px}
  .tx-cert-page h1.tx-cert__title--event{font-size:max(4.2cqw,18px)!important}
  .tx-cert-page p.tx-cert__series--event{margin-top:8px;font-size:17px}
  .tx-cert-page p.tx-cert__place{margin-top:4px;font-size:13px}
  .tx-cert__at{margin-bottom:2px;font-size:14px}
  .tx-cert-page p.tx-cert__blurb{font-size:14px}
  .tx-cert-page p.tx-cert__by{font-size:14px}
  .tx-cert__by-label{display:block;font-size:11px;margin:0 0 2px}
  .tx-cert__strip{padding:18px 16px 16cqw}
  .tx-cert__facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 0}
  .tx-cert__facts div:nth-child(3){border-left:0;padding-left:0}
  .tx-cert__facts div:nth-child(5){border-left:0;padding-left:0}
  .tx-cert__facts div.tx-cert__fact--recip{max-width:none}
  .tx-cert__facts dt{font-size:11px}
  .tx-cert-page .tx-cert__facts dd{font-size:15px}
  .tx-cert-page .tx-cert__facts .tx-cert__code{font-size:14px}
  .tx-cert-page .tx-cert__facts .tx-cert__types{font-size:12px}
  .tx-cert__foot{display:flex;flex-direction:column;align-items:center;gap:14px;padding:22px 16px 18px}
  .tx-cert__marks{display:flex;flex-direction:column;align-items:center;gap:14px}
  .tx-cert__partners{padding:12px 0 0;border-left:0;border-top:1px solid #D5DBE6;gap:14px}
  .tx-cert-page img.tx-cert__mark--cbp{height:44px!important}
  .tx-cert-page img.tx-cert__mark--icpa{height:48px!important}
  .tx-cert-page img.tx-cert__mark--itc-full{height:64px!important}
  .tx-cert-page img.tx-cert__mark--itc-short{height:46px!important}
  .tx-cert__partners{flex-wrap:wrap;justify-content:center}
  .tx-cert-page img.tx-cert__mark--nei{height:48px!important}
  .tx-cert__fine{display:block;padding:0;font-size:12px}
  .tx-cert-page .tx-cert__fine p,.tx-cert-page .tx-cert--speaker .tx-cert__fine p{text-align:center!important}
}

@media print{
  @page{size:letter landscape;margin:0.3in}
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  html{margin-top:0!important}
  #wpadminbar,.skip-link,.siteheader,.mobile-menu,.phero,.crumbs,.footer,#wpdm-side-panel,#fb-root,.tx-cert-actions,.tx-cert-note,.tx-cert-sample{display:none!important}
  /* Plugins append tracking pixels to <body>; their line box pushed a blank second page. */
  body>:not(:has(.tx-cert,.tx-agenda)){display:none!important}
  #main,.wpband,.page-wrap,.shell{margin:0!important;padding:0!important;max-width:none!important;width:auto!important;background:none!important;border:0!important;box-shadow:none!important}
  .tx-cert-page{max-width:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  /* 0.9.1: iPhone Safari ignored 0.8.9's zoom and autosizes small text, so the fact strip still spilled onto page 2.
     Now the frame (.tx-cert-page) is a fixed 6.65in tall and the full-size sheet is scaled inside it: page breaks only see the frame. */
  html,body,.tx-cert-page,.tx-cert{-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}
  .tx-cert-page .tx-cert__facts dd{white-space:nowrap}
  .tx-cert-page .tx-cert__facts .tx-cert__fact--wrap dd{white-space:normal}
  /* 0.9.7: iPhone sets the text a little larger, which pushed the strip past the sheet edge; the middle gives up its spare space instead */
  .tx-cert__body{min-height:0;overflow:hidden} .tx-cert__foot,.tx-cert__strip{flex:none} /* 0.9.4: iPhone wrapped "March 9-" and the fixed frame clipped line 2 */
  /* 1.0.0: 0.9.9 left a sliver on page 2, so 74% in a 6.3in frame. 0.9.9: iPhone still drew the scaled sheet ~0.3in taller than 6.65in and the frame clipped the strip; the frame no longer clips, and the sheet is 80% (6.24in) */
  /* 1.0.4 (Heather): back to the full-size sheet; an iPhone print may not fit perfectly, and that is accepted. */
  .tx-cert-page:has(> .tx-cert){break-inside:avoid;page-break-inside:avoid}
  .tx-cert{aspect-ratio:auto;width:10.4in;height:7.8in;margin:0 auto;box-sizing:border-box;border:0;box-shadow:none}
}
