/* Legacy page markup on austraaliasse.ee (from the old theme 1.5.5, sections 13b and 13c).
   The 9 old builder pages were rendered to HTML once; these rules style that HTML. */
.entry-content{--lg-o:#FF681A;--lg-o-dark:#E25510;--lg-o-tint:#FFF2EB;--lg-head:#303030;--lg-body:#595959;--lg-dark:#2E2E2E;--lg-ink:#1C1C1C;--lg-line:#EAE7E4;--lg-paper:#FBFAF9;--lg-white:#FFFFFF;--lg-meta:#6B6560;--lg-t1:13px;--lg-t2:15px;--lg-t3:17px;--lg-t4:20px;--lg-t5:26px;--lg-t6:34px;--lg-s1:8px;--lg-s2:16px;--lg-s3:24px;--lg-s4:32px;--lg-s5:48px;--lg-s6:64px;--lg-fast:.15s ease;--lg-med:.2s ease;--lg-accent-text:#C2410C;--lg-ff-acc:"Playfair Display",Georgia,"Times New Roman",serif}
.entry-content .mkdf-btn,.entry-content .legacy-btn a.btn,.entry-content .legacy-cta a.btn{display:inline-flex;align-items:center;gap:10px;background:var(--lg-o);color:var(--lg-ink);font-size:var(--lg-t1);font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:15px 26px;border:0;border-radius:2px;text-decoration:none;transition:background var(--lg-fast)}
.entry-content .mkdf-btn:hover,.entry-content .legacy-btn a.btn:hover,.entry-content .legacy-cta a.btn:hover{background:var(--lg-ink);color:var(--lg-white)}
   13b. LEGACY BUILDER CONTENT
   The buttons, boxes, video, images and signup form that the imported
   WPBakery markup carries. inc/legacy-builder.php renders them; every
   string in them comes out of the database.
   ------------------------------------------------------------------------- */

/* Button, the same filled control as the dark band. */
.legacy-btn { margin-block: var(--lg-s4); }
.entry-content .legacy-btn a,
.entry-content .legacy-btn a { color: var(--lg-ink); text-decoration: none; }
.entry-content .legacy-btn a:hover,
.entry-content .legacy-btn a:hover { color: var(--lg-white); text-decoration: none; }

/* Call-to-action box: the tinted, hairlined card of the promo. */
.legacy-cta {
  display: block;
  background: var(--lg-o-tint);
  border-inline-start: 2px solid var(--lg-o);
  padding: var(--lg-s5);
  margin-block: var(--lg-s5);
}
.legacy-cta__t {
  font-size: var(--lg-t5);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.005em;
  color: var(--lg-ink);
}
/* The article rule above an H2 does not belong on a card heading. */
.entry-content .legacy-cta__t,
.entry-content .legacy-cta__t {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legacy-cta__body {
  margin-top: var(--lg-s2);
  font-size: var(--lg-t3);
  line-height: 1.6;
  color: var(--lg-body);
}
.legacy-cta__body > * + * { margin-top: 1em; }
.legacy-cta .legacy-btn { margin-block: var(--lg-s3) 0; }
.entry-content .legacy-cta,
.entry-content .legacy-cta { margin-block: 2.4em; }

/* Video: a 16:9 box, the embed fills it. */
.legacy-video {
  position: relative;
  margin-block: 2em;
  aspect-ratio: 16 / 9;
  background: var(--lg-paper);
}
.legacy-video iframe,
.legacy-video embed,
.legacy-video object,
.legacy-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* v1.5.0, the lite facade. Until the reader asks for the video, the block
   is one 480x360 poster from i.ytimg.com and one button; the 513 KiB of
   YouTube player JavaScript is fetched on the click, by main.js, and not
   before. That single change is what the koolitused page's LCP and TBT
   were made of. */
.legacy-video__btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--lg-dark);
  cursor: pointer;
}
.legacy-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.legacy-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 48px;
  border-radius: 2px;
  background: var(--lg-o);
  transition: background var(--lg-fast);
}
.legacy-video__btn:hover .legacy-video__play,
.legacy-video__btn:focus-visible .legacy-video__play { background: var(--lg-ink); }
.legacy-video__play svg { width: 22px; height: 22px; display: block; fill: var(--lg-ink); }
.legacy-video__btn:hover .legacy-video__play svg,
.legacy-video__btn:focus-visible .legacy-video__play svg { fill: var(--lg-white); }
.legacy-video noscript { position: absolute; inset: auto 0 0 0; padding: var(--lg-s1); }

/* Image out of the media library. */
.legacy-fig { margin-block: 2em; }
.legacy-fig img { display: block; max-width: 100%; height: auto; }

/* Separator, the same hairline the article body uses. */
.legacy-sep { border: 0; border-top: 1px solid var(--lg-line); margin-block: 2.4em; }

/* Raw HTML block: the site's own Mailchimp embed, styled like .nl-form. */
.legacy-raw { margin-block: var(--lg-s5); }
.legacy-raw #mc_embed_signup { background: none; font: inherit; width: auto; }
.legacy-raw form { display: flex; flex-wrap: wrap; gap: var(--lg-s1); align-items: stretch; margin: 0; }
.legacy-raw label {
  display: block;
  width: 100%;
  font-size: var(--lg-t1);
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--lg-head);
}
.legacy-raw input[type="email"],
.legacy-raw input[type="text"] {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--lg-white);
  border: 1px solid var(--lg-line);
  padding: 14px 16px;
  font-size: var(--lg-t2);
  color: var(--lg-ink);
  border-radius: 2px;
}
.legacy-raw input[type="email"]::placeholder,
.legacy-raw input[type="text"]::placeholder { color: var(--lg-meta); }
.legacy-raw input[type="email"]:focus,
.legacy-raw input[type="text"]:focus { outline: 0; border-color: var(--lg-o); }
.legacy-raw input[type="submit"],
.legacy-raw button[type="submit"],
.legacy-raw #mc-embedded-subscribe {
  flex: 0 0 auto;
  background: var(--lg-o);
  color: var(--lg-ink);
  border: 0;
  padding: 14px 26px;
  font-size: var(--lg-t1);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  width: auto;
  transition: background var(--lg-fast);
}
.legacy-raw input[type="submit"]:hover,
.legacy-raw button[type="submit"]:hover,
.legacy-raw #mc-embedded-subscribe:hover { background: var(--lg-ink); color: var(--lg-white); }
.legacy-raw #mce-responses,
.legacy-raw .mce_inline_error { width: 100%; font-size: var(--lg-t1); color: var(--lg-body); }
/* Mailchimp's bot trap stays where the embed puts it, off screen. */
.legacy-raw [aria-hidden="true"][style*="absolute"] { position: absolute; left: -5000px; }


/* =========================================================================
   13c. LEGACY MIKADO MARKUP
   Six imported pages carry raw HTML from the old "Roam" theme (mkdf-*
   classes) alongside the builder shortcodes. That theme's CSS and JS are
   gone, so the markup arrives unstyled: 55px icons stretched to the column,
   counters and columns stacked, carousels as broken images.

   This section restyles that markup with the tokens above. It adds no
   content and hides no text: only elements that are empty on the old site
   too (the carousel images, the icon-font glyph spans, the line breaks
   wpautop left inside the icon boxes) are taken out of the flow.

   Scope: `.entry-content`, which every content container carries alongside
   `.entry-content`, and which gives the specificity needed to beat the
   article typography above.
   ------------------------------------------------------------------------- */

/* Nothing imported may be wider than the reading column. */
.entry-content [class*="mkdf-"] { max-width: 100%; }

/* Line breaks wpautop dropped inside the icon boxes, the counters and the
   carousel links. They carry no text and only add height. */
.entry-content .mkdf-iwt-icon br,
.entry-content .mkdf-iwt-title br,
.entry-content .mkdf-counter-inner br,
.entry-content .mkdf-cc-link br { display: none; }


/* --- Layout holders ----------------------------------------------------- */

.entry-content .mkdf-elements-holder {
  display: grid;
  gap: var(--lg-s4);
  margin-block: var(--lg-s5);
}
.entry-content .mkdf-eh-item,
.entry-content .mkdf-eh-item-inner { min-width: 0; }

/* The imported inline padding was tuned for a 1200px canvas and only
   squeezes the 70 character column, so it is overridden here. */
.entry-content .mkdf-eh-item-content { padding: 0 !important; min-width: 0; }
.entry-content .mkdf-eh-item-content > *:first-child { margin-top: 0; }

.entry-content .mkdf-horizontal-alignment-center { text-align: center; }

@media (min-width: 600px) {
  .entry-content .mkdf-elements-holder.mkdf-five-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .entry-content .mkdf-elements-holder.mkdf-five-columns { grid-template-columns: repeat(3, 1fr); }
}
/* v1.5.3. Two-column and three-quarter blocks stay ONE column at every
   width: inside a 70 character reading column a half is 316px of text,
   which is the narrow line M saw on the koolitused pages. Their images
   simply follow the text. */
.entry-content .mkdf-elements-holder.mkdf-two-columns,
.entry-content .mkdf-elements-holder.mkdf-three-quarters-columns { grid-template-columns: 1fr; }
/* v1.5.3. Old Bridge-theme page header markup (class "item") must not pick
   up the listing row grid; the Tax File Number post carries it. */
.entry-content .item { display: block; grid-template-columns: none; }
.entry-content .item > * { width: auto; }
.entry-content .col-md-8, .entry-content .col-md-4, .entry-content .container, .entry-content .rightside { width: auto; max-width: none; margin: 0; padding: 0; float: none; }


/* --- Icon with text ----------------------------------------------------- */

.entry-content .mkdf-iwt { margin-block: var(--lg-s4); }
.entry-content .mkdf-iwt.mkdf-iwt-icon-left {
  display: flex;
  align-items: flex-start;
  gap: var(--lg-s2);
}
.entry-content .mkdf-iwt.mkdf-iwt-icon-top { text-align: center; }

.entry-content .mkdf-iwt-icon { flex: 0 0 56px; width: 56px; }
.entry-content .mkdf-iwt.mkdf-iwt-icon-top .mkdf-iwt-icon { margin: 0 auto var(--lg-s2); }
.entry-content .mkdf-iwt-icon img {
  display: block;
  width: 56px;
  max-width: 56px;
  height: auto;
  margin: 0;
}
.entry-content .mkdf-iwt-icon a { text-decoration: none; }

.entry-content .mkdf-iwt-content { flex: 1 1 auto; min-width: 0; }

/* v1.5.0. The normaliser now renders these two as <p class="... mkdf-h6">
   rather than <h6>: they are card captions, not document structure, and as
   headings they broke the outline (h2 to h6 with nothing between). The
   class selectors below already carried every value, so the rendered text
   is pixel for pixel what it was; the h6 selectors stay for any body that
   has not been through the filter. */
.entry-content .mkdf-h6 { margin-top: 0; }
.entry-content h6.mkdf-iwt-title,
.entry-content .mkdf-iwt-title {
  margin: 0;
  font-size: var(--lg-t3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--lg-head);
}
.entry-content .mkdf-iwt-text {
  margin-top: var(--lg-s1);
  font-size: var(--lg-t2);
  line-height: 1.6;
  color: var(--lg-body);
}


/* --- Icon shortcode ----------------------------------------------------- */

/* The linear-icons and Font Awesome webfonts are not part of this theme, so
   the glyph spans are empty everywhere. The disc that framed them stays, at
   56px rather than the imported 100px, and the empty spans come out. */
.entry-content .mkdf-icon-shortcode {
  display: inline-block;
  width: 56px !important;
  height: 56px !important;
  line-height: 56px !important;
  background-color: var(--lg-o);
  border-radius: 50%;
  vertical-align: top;
}
.entry-content .mkdf-icon-element,
.entry-content .mkdf-icon-shortcode-hover-layer { display: none; }


/* --- Counters ----------------------------------------------------------- */

.entry-content .mkdf-counter-holder { text-align: center; }
.entry-content .mkdf-counter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 2px;
}
.entry-content .mkdf-counter,
.entry-content .mkdf-counter-symbol {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--lg-accent-text);
  font-variant-numeric: tabular-nums;
}
.entry-content h6.mkdf-counter-title,
.entry-content .mkdf-counter-title {
  flex: 0 0 100%;
  margin: var(--lg-s1) 0 0;
  font-size: var(--lg-t1);
  font-weight: 700;
  letter-spacing: .10em;
  line-height: 1.4;
  color: var(--lg-head);
}


/* --- Section titles ----------------------------------------------------- */

.entry-content .mkdf-section-title-holder { margin-block: var(--lg-s6) var(--lg-s4); }
.entry-content .mkdf-st-inner > *:first-child { margin-top: 0; }
.entry-content h5.mkdf-st-subtitle,
.entry-content .mkdf-st-subtitle {
  margin: 0 0 var(--lg-s1);
  font-family: var(--lg-ff-acc);
  font-style: italic;
  font-weight: 500;
  font-size: var(--lg-t4);
  line-height: 1.3;
  color: var(--lg-accent-text);
}
.entry-content h3.mkdf-st-title,
.entry-content .mkdf-st-title {
  margin: 0;
  padding-top: 0;
  border-top: 0;
  font-size: var(--lg-t6);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.014em;
  color: var(--lg-head);
}
.entry-content .mkdf-st-text {
  margin-top: var(--lg-s2);
  font-size: var(--lg-t3);
  line-height: 1.6;
  color: var(--lg-body);
}

/* The site's own accent face, kept with the inline family and colour the
   import carries. Only the heading rule above it is neutralised. */
.entry-content .mkdf-custom-font-holder {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* A page title that travelled inside the body is a heading, not a section
   rule: it keeps its size and loses the hairline. */
.entry-content .mkdf-page-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}


/* --- Info items: the package fact rows ---------------------------------- */

.entry-content .mkdf-info-items-holder {
  margin-block: var(--lg-s5);
  border-top: 1px solid var(--lg-line);
  border-bottom: 1px solid var(--lg-line);
}
.entry-content h3.mkdf-info-title,
.entry-content .mkdf-info-title {
  margin: 0;
  padding: var(--lg-s3) 0 var(--lg-s2);
  border-top: 0;
  font-size: var(--lg-t5);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--lg-head);
}
.entry-content .mkdf-info-item-row {
  padding-block: var(--lg-s2);
  border-top: 1px solid var(--lg-line);
}
.entry-content h6.mkdf-info-item-title,
.entry-content .mkdf-info-item-title {
  margin: 0;
  font-size: var(--lg-t2);
  font-weight: 700;
  line-height: 1.4;
  color: var(--lg-head);
}
.entry-content .mkdf-info-item-description {
  margin-top: 4px;
  font-size: var(--lg-t2);
  line-height: 1.6;
  color: var(--lg-body);
}


/* --- Image gallery and stacked images ----------------------------------- */

.entry-content .mkdf-image-gallery { margin-block: var(--lg-s5); }
.entry-content .mkdf-ig-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) {
  .entry-content .mkdf-ig-grid.mkdf-ig-two-columns { grid-template-columns: repeat(2, 1fr); }
  .entry-content .mkdf-ig-grid.mkdf-ig-three-columns { grid-template-columns: repeat(3, 1fr); }
}
.entry-content .mkdf-ig-image { min-width: 0; margin: 0; }
.entry-content .mkdf-ig-image-inner img,
.entry-content .mkdf-si-images img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.entry-content .mkdf-stacked-images-holder { margin-block: var(--lg-s5); }
.entry-content .mkdf-si-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
@media (min-width: 600px) {
  .entry-content .mkdf-si-images { grid-template-columns: 1fr 1fr; }
}


/* --- Call to action ----------------------------------------------------- */

.entry-content .mkdf-call-to-action-holder {
  margin-block: var(--lg-s5);
  padding: var(--lg-s4);
  border: 1px solid var(--lg-line);
  background: var(--lg-paper);
}
.entry-content .mkdf-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg-s3);
}
.entry-content .mkdf-cta-text-holder { flex: 1 1 260px; min-width: 0; }
.entry-content .mkdf-cta-text {
  font-size: var(--lg-t4);
  font-weight: 700;
  line-height: 1.4;
  color: var(--lg-head);
}
.entry-content .mkdf-cta-button-holder { flex: 0 0 auto; }

/* The button is the theme's own control (see the .btn rule above); only the
   article link styling has to be undone here. */
.entry-content .mkdf-btn { color: var(--lg-ink); text-decoration: none; }
.entry-content .mkdf-btn:hover { color: var(--lg-white); text-decoration: none; }


/* --- Carousels ---------------------------------------------------------- */

/* The clients carousel holds nothing but images that are empty on the old
   site as well, so there is nothing left to show. */
.entry-content .mkdf-clients-carousel-holder { display: none; }

/* Any other slider renders as a static grid: there is no carousel script. */
.entry-content .mkdf-owl-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}


/* =========================================================================
