
/* =========================================================
   ANTIBE ARTICLE TEMPLATE
   ========================================================= */

.article-page {
  color:var(--ink);
  background:#fff;
}

.article-shell {
  width:min(calc(100% - 56px),1320px);
  margin-inline:auto;
}

.article-hero {
  position:relative;
  overflow:hidden;
  min-height:800px;
  background:#edf6fb;
}

.article-hero__backdrop {
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 86% 13%,rgba(74,177,255,.55),transparent 31%),
    radial-gradient(circle at 10% 88%,rgba(255,103,48,.32),transparent 30%),
    linear-gradient(135deg,#e8f4fb,#f7fafb 54%,#fff5ef);
}

.article-hero__shell {
  position:relative;
  z-index:2;
  width:min(calc(100% - 56px),var(--page-max));
  min-height:800px;
  margin-inline:auto;
  display:flex;
  flex-direction:column;
}

.article-breadcrumbs {
  width:min(calc(100% - 80px),1320px);
  margin:28px auto 0;
  display:flex;
  gap:10px;
  color:#718287;
  font-size:15px;
}

.article-breadcrumbs a {
  color:var(--ink);
  font-weight:500;
}

.article-hero__content {
  width:min(calc(100% - 80px),1320px);
  margin:auto;
  padding:70px 0 90px;
}

.article-category {
  color:#697b80;
  font-size:15px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.article-hero h1 {
  max-width:1120px;
  margin:18px 0 0;
  color:#050505;
  font-size:clamp(56px,4.8vw,80px);
  line-height:1.035;
  letter-spacing:-.055em;
  font-weight:400;
}

.article-deck {
  max-width:920px;
  margin:25px 0 0;
  color:#3f5962;
  font-size:20px;
  line-height:1.62;
}

.article-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px 26px;
  margin-top:34px;
  color:#687b80;
}

.article-meta span {
  font-size:15px;
  font-weight:500;
}

.article-cover {
  position:relative;
  z-index:3;
  margin-top:-75px;
}

.article-cover figure {
  overflow:hidden;
  min-height:680px;
  margin:0;
  border-radius:28px;
  box-shadow:0 28px 65px rgba(16,55,79,.14);
}

.article-cover img {
  width:100%;
  height:680px;
  display:block;
  object-fit:cover;
}

.article-content {
  padding:115px 0 120px;
  background:#fff;
}

.article-layout {
  display:grid;
  grid-template-columns:240px minmax(0,820px);
  gap:90px;
  justify-content:center;
  align-items:start;
}

.article-toc {
  position:static;
  padding:24px;
  border:1px solid rgba(8,45,50,.08);
  border-radius:18px;
  background:#f7fafb;
}

.article-toc__label {
  color:#718287;
  font-size:15px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.article-toc nav {
  display:grid;
  gap:12px;
  margin-top:18px;
}

.article-toc a {
  color:#5d7177;
  font-size:15px;
  line-height:1.45;
}

.article-toc a:hover {
  color:var(--ink);
}

.article-body {
  min-width:0;
}

.article-quick-answer {
  padding:30px;
  border:1px solid rgba(8,45,50,.08);
  border-radius:22px;
  background:
    radial-gradient(circle at 90% 10%,rgba(74,177,255,.16),transparent 30%),
    linear-gradient(145deg,#eef8fd,#fff7f0);
}

.article-quick-answer > span {
  color:#ff5b32;
  font-size:15px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.article-quick-answer p {
  margin:12px 0 0;
  color:var(--ink);
  font-size:20px;
  line-height:1.58;
}

.article-intro {
  margin-top:42px !important;
  color:#334f58 !important;
  font-size:21px !important;
}

.article-body > p,
.article-body section > p {
  margin:20px 0 0;
  color:#5f747a;
  font-size:17px;
  line-height:1.82;
}

.article-body section {
  scroll-margin-top:100px;
  margin-top:72px;
}

.article-section-number {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:linear-gradient(135deg,var(--orange-1),var(--orange-2));
  font-size:15px;
  font-weight:600;
}

.article-body h2 {
  margin:17px 0 0;
  color:var(--ink);
  font-size:clamp(36px,3vw,49px);
  line-height:1.1;
  letter-spacing:-.042em;
  font-weight:400;
}

.article-body blockquote {
  margin:42px 0 0;
  padding:30px 32px;
  border-left:4px solid #4ab1ff;
  border-radius:0 18px 18px 0;
  background:#f5f8fa;
}

.article-body blockquote p {
  margin:0;
  color:var(--ink);
  font-size:24px;
  line-height:1.5;
}

.article-callout {
  margin-top:65px;
  padding:34px;
  border-radius:22px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 12%,rgba(74,177,255,.25),transparent 30%),
    linear-gradient(135deg,#151822,#102e3e 62%,#07383a);
}

.article-callout > span {
  color:#9bd5ff;
  font-size:15px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.article-callout h3 {
  margin:12px 0 0;
  color:#fff;
  font-size:30px;
  line-height:1.18;
  font-weight:400;
}

.article-callout p {
  margin:15px 0 0;
  color:rgba(255,255,255,.65);
  font-size:15px;
  line-height:1.65;
}

.article-summary {
  margin-top:76px;
  padding:40px;
  border:1px solid rgba(8,45,50,.08);
  border-radius:24px;
  background:#f6f9fb;
}

.article-summary > span {
  color:#ff5b32;
  font-size:15px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.article-summary h2 {
  max-width:680px;
}

.article-summary ul {
  display:grid;
  gap:12px;
  margin:28px 0 0;
  padding:0;
  list-style:none;
}

.article-summary li {
  position:relative;
  padding-left:26px;
  color:#586f76;
  font-size:16px;
  line-height:1.55;
}

.article-summary li::before {
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#1462cf;
  font-weight:700;
}

.article-related {
  padding:110px 0 120px;
  background:#f6f9fb;
}

.article-related__grid {
  margin-top:50px;
}

.article-final-cta h2 {
  max-width:1030px;
  margin-left:auto;
  margin-right:auto;
}

@media (max-width:1100px) {
  .article-layout {
    grid-template-columns:1fr;
    gap:45px;
  }

  .article-toc {
    position:static;
  }

  .article-toc nav {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:980px) {
  .article-hero,
  .article-hero__shell {
    min-height:auto;
  }

  .article-hero__shell {
    width:calc(100% - 40px);
  }

  .article-breadcrumbs,
  .article-hero__content {
    width:100%;
  }

  .article-shell {
    width:calc(100% - 40px);
  }
}

@media (max-width:720px) {
  .article-hero__shell,
  .article-shell {
    width:calc(100% - 30px);
  }

  .article-hero__content {
    padding-top:50px;
  }

  .article-hero h1 {
    font-size:8vw;
    line-height:1.08;
  }

  .article-deck {
    font-size:18px;
  }

  .article-cover {
    margin-top:-30px;
  }

  .article-cover figure,
  .article-cover img {
    min-height:320px;
    height:320px;
  }

  .article-toc nav {
    grid-template-columns:1fr;
  }
}

@media (max-width:560px) {
  .article-content,
  .article-related {
    padding-top:80px;
    padding-bottom:86px;
  }

  .article-quick-answer,
  .article-callout,
  .article-summary {
    padding:26px 22px;
  }

  .article-body h2 {
    font-size:37px;
  }

  .article-intro,
  .article-quick-answer p {
    font-size:18px !important;
  }
}


/* =========================================================
   V36 — ARTICLE TEMPLATE REFINEMENTS
   ========================================================= */

/* Smaller editorial feature image. Keep the full visual visible and align it left. */
.article-cover figure {
  min-height: 0;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #f5f8fa;
}

.article-cover img {
  width: 100%;
  height: 520px;
  object-fit: contain;
  object-position: left center;
}

/* Keep the TOC and sharing controls together while the article scrolls. */
.article-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 14px;
  align-self: start;
}

.article-share {
  padding: 22px 24px;
  border: 1px solid rgba(8,45,50,.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 10%, rgba(74,177,255,.13), transparent 33%),
    #f7fafb;
}

.article-share__label {
  display: block;
  color: #718287;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.article-share__links button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8,45,50,.10);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.article-share__links button:hover {
  transform: translateY(-2px);
  background: #eef6fa;
}

.article-share__status {
  display: block;
  min-height: 23px;
  margin-top: 10px;
  color: #62767c;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .article-sidebar {
    position: static;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .article-cover figure,
  .article-cover img {
    height: 300px;
    min-height: 300px;
  }

  .article-cover img {
    object-fit: contain;
    object-position: left center;
  }

  .blog-card {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-share__links button {
    transition: none;
  }
}


/* =========================================================
   V37 — ARTICLE LAYOUT + SIDEBAR REFINEMENTS
   ========================================================= */

.article-layout {
  grid-template-columns: 300px minmax(0, 1000px);
  gap: 40px;
}

/* Keep the feature image clean: no panel background, border or shadow. */
.article-cover figure {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.article-cover img {
  border-radius: 30px;
}

/* Sticky sidebar starts at the top of the reading layout and includes sharing. */
.article-sidebar {
  top: 0;
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-sidebar {
    top: auto;
  }
}


/* =========================================================
   V38 — ARTICLE TEMPLATE RESPONSIVE REFINEMENTS
   ========================================================= */

/* Related article cards on desktop */
.blog-card {
  min-height: 460px;
}

@media (max-width: 720px) {
  .article-content {
    padding-top: 40px;
  }
}


/* =========================================================
   V54 — WORDPRESS EXPORT CONTENT
   Exact post content is preserved inside `.wp-export-content`.
   ========================================================= */

.wp-export-content {
  min-width: 0;
}

.wp-export-content > *:first-child {
  margin-top: 0;
}

.wp-export-content p {
  margin: 20px 0 0;
  color: #5f747a;
  font-size: 17px;
  line-height: 1.82;
}

.wp-export-content h2,
.wp-export-content h3,
.wp-export-content h4,
.wp-export-content h5,
.wp-export-content h6 {
  color: var(--ink);
  font-weight: 400;
  text-wrap: balance;
  scroll-margin-top: 100px;
}

.wp-export-content h2 {
  margin: 62px 0 0;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.11;
  letter-spacing: -.04em;
}

.wp-export-content h3 {
  margin: 45px 0 0;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.wp-export-content h4 {
  margin: 34px 0 0;
  font-size: 23px;
  line-height: 1.3;
}

.wp-export-content h5,
.wp-export-content h6 {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

.wp-export-content ul,
.wp-export-content ol {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 24px;
  color: #5f747a;
}

.wp-export-content li {
  padding-left: 3px;
  font-size: 17px;
  line-height: 1.72;
}

.wp-export-content li > ul,
.wp-export-content li > ol {
  margin-top: 10px;
}

.wp-export-content a {
  color: #1462cf;
  text-decoration: underline;
  text-decoration-color: rgba(20,98,207,.32);
  text-underline-offset: 3px;
}

.wp-export-content strong {
  color: #213f47;
  font-weight: 600;
}

.wp-export-content blockquote {
  margin: 36px 0 0;
  padding: 28px 30px;
  border-left: 4px solid #4ab1ff;
  border-radius: 0 18px 18px 0;
  background: #f5f8fa;
}

.wp-export-content blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.55;
}

.wp-export-content figure,
.wp-export-content .wp-block-image {
  width: 100%;
  margin: 38px 0 0;
}

.wp-export-content figure img,
.wp-export-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

.wp-export-content figcaption {
  margin-top: 10px;
  color: #728389;
  font-size: 15px;
  line-height: 1.5;
}

.wp-export-content .wp-block-table {
  width: 100%;
  overflow-x: auto;
  margin: 36px 0 0;
  border-radius: 18px;
  border: 1px solid rgba(8,45,50,.08);
  background: #fff;
}

.wp-export-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.wp-export-content th,
.wp-export-content td {
  padding: 16px;
  border: 1px solid rgba(8,45,50,.08);
  color: #526a72;
  font-size: 15px;
  line-height: 1.55;
  vertical-align: top;
}

.wp-export-content th {
  color: var(--ink);
  background: #f5f8fa;
  font-weight: 600;
}

.wp-export-content iframe,
.wp-export-content video {
  max-width: 100%;
}

.wp-export-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-top: 34px;
}

.wp-export-content .wp-block-column {
  min-width: 0;
}

.wp-export-content .wp-block-button__link,
.wp-export-content a.wp-element-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg,var(--orange-1),var(--orange-2));
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.article-meta a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.article-meta a:hover {
  color: var(--ink);
}

.article-cover--remote figure {
  height: 520px;
}

.article-cover--remote img {
  object-fit: contain;
  object-position: left center;
}

.article-toc nav {
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding-right: 5px;
}

@media (max-width: 720px) {
  .wp-export-content p,
  .wp-export-content li {
    font-size: 16px;
  }

  .wp-export-content .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .article-cover--remote figure,
  .article-cover--remote img {
    height: 300px;
  }
}


/* =========================================================
   V55 — BLOG VISUALS + INTERNAL LINKING + EMBEDDED CALCULATOR
   ========================================================= */

.article-cover--brand figure {
  height: 520px;
  overflow: hidden;
  border-radius: 30px;
}

.article-cover--brand figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wp-export-content .article-internal-link {
  color: #1462cf;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(74,177,255,.55);
  text-underline-offset: 4px;
}

.article-related-links {
  margin: 58px 0 0;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 14%,rgba(74,177,255,.16),transparent 34%),
    linear-gradient(145deg,#f7fbfd,#fff7f2);
  border: 1px solid rgba(8,45,50,.08);
}

.article-related-links > span {
  color: #73858a;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-related-links h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
}

.article-related-links__grid {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.article-related-links__grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(8,45,50,.07);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.article-calculator-embed {
  margin: 46px 0;
}

.article-calculator-embed .website-calculator {
  margin: 0;
}

.article-calculator-embed__intro {
  margin-bottom: 18px;
}

.article-calculator-embed__intro span {
  color: #73858a;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-calculator-embed__intro h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 400;
}

@media (max-width:720px) {
  .article-cover--brand figure,
  .article-cover--brand figure img {
    height: 300px;
  }
}
