/* ==========================================================================
   SEEKDIGIT · SINGLE BLOG POST                                        v1.0.0
   Loaded only on single blog posts (seekdigit/single-post.php).
   Uses the SeekDigit UI tokens (--sk-*) with fallbacks, so it also works alone.
   Every selector starts with body.skd-single, so nothing else on the site changes.
   ========================================================================== */

body.skd-single{
  --skd-ink:var(--sk-ink,#052D46);
  --skd-text:var(--sk-text,#4A5866);
  --skd-muted:var(--sk-muted,#6B7B89);
  --skd-blue:var(--sk-blue,#1A75BB);
  --skd-blue-dk:var(--sk-blue-dk,#13609C);
  --skd-sky:var(--sk-sky,#8CC4F0);
  --skd-soft:var(--sk-soft,#F7F9FB);
  --skd-tint:var(--sk-tint,#F1F7FD);
  --skd-tint-line:var(--sk-tint-line,#DCE9F6);
  --skd-line:var(--sk-line,#E3EAF1);
  --skd-navy:var(--sk-navy,#052D46);
  --skd-r:var(--sk-r,18px);
  --skd-font:var(--sk-font,'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif);
  --skd-sticky-top:110px;   /* distance of the sticky sidebar from the top (header height + gap) */
}
body.skd-single.admin-bar{--skd-sticky-top:142px}

/* ---- OceanWP spacing -------------------------------------------------------- */
body.skd-single #main #content-wrap{padding-top:44px;padding-bottom:72px}
body.skd-single .skd-post-hero ~ #content-wrap{padding-top:44px}
body.skd-single #content article{margin:0}

/* ---- Reading progress bar --------------------------------------------------- */
body.skd-single .skd-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:9999;pointer-events:none;background:transparent}
body.skd-single.admin-bar .skd-progress{top:32px}
body.skd-single .skd-progress__bar{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:0 50%;background:var(--skd-blue)}

/* ---- Hero ------------------------------------------------------------------- */
body.skd-single .skd-post-hero{padding:28px 0 0;font-family:var(--skd-font)}
body.skd-single .skd-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:13px;line-height:1.5;color:var(--skd-muted);margin:0 0 22px}
body.skd-single .skd-crumbs a{color:var(--skd-muted);text-decoration:none}
body.skd-single .skd-crumbs a:hover{color:var(--skd-blue)}
body.skd-single .skd-crumbs a:last-child{color:var(--skd-ink);font-weight:500}
body.skd-single .skd-crumbs__sep{color:#B5C3D0}
body.skd-single .skd-post-cover{margin:0 0 36px;border-radius:24px;overflow:hidden;background:var(--skd-tint);aspect-ratio:2.2/1}
body.skd-single .skd-post-cover__img{display:block;width:100%;height:100%;object-fit:cover}
body.skd-single .skd-post-cat{display:inline-block;padding-left:12px;border-left:2px solid var(--skd-blue);font-size:13px;line-height:1.3;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--skd-blue);text-decoration:none;margin:0 0 16px}
body.skd-single .skd-post-cat:hover{color:var(--skd-blue-dk)}
body.skd-single .skd-post-hero .skd-post-title{border:0;padding:0;font-family:var(--skd-font);font-size:44px;line-height:1.18;font-weight:600;letter-spacing:-.01em;color:var(--skd-ink);margin:0 0 16px;max-width:920px}
body.skd-single .skd-post-lead{font-size:18px;line-height:1.7;color:var(--skd-text);max-width:820px;margin:0 0 8px}
body.skd-single .skd-post-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin-top:24px;padding:20px 0 0;border-top:1px solid var(--skd-line)}
body.skd-single .skd-post-author{display:flex;align-items:center;gap:14px}
body.skd-single .skd-post-author__img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:var(--skd-tint);flex:0 0 48px}
body.skd-single .skd-post-author__text{display:flex;flex-direction:column;gap:2px}
body.skd-single .skd-post-author__name{font-size:15px;color:var(--skd-text)}
body.skd-single .skd-post-author__name a{color:var(--skd-ink);font-weight:600;text-decoration:none}
body.skd-single .skd-post-author__name a:hover{color:var(--skd-blue)}
body.skd-single .skd-post-author__info{font-size:13.5px;color:var(--skd-muted);display:flex;flex-wrap:wrap;gap:0 6px}
body.skd-single .skd-post-tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
body.skd-single .skd-post-tags li{margin:0}
body.skd-single .skd-post-tags a{display:inline-block;padding:6px 14px;border:1px solid var(--skd-line);border-radius:999px;background:#fff;font-size:13px;line-height:1.4;color:var(--skd-text);text-decoration:none;transition:border-color .2s,color .2s}
body.skd-single .skd-post-tags a:hover{border-color:var(--skd-blue);color:var(--skd-blue)}

/* ---- Two-column layout ------------------------------------------------------ */
body.skd-single .skd-post-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:64px;align-items:start}
body.skd-single .skd-post-aside{align-self:stretch}
body.skd-single .skd-post-aside__inner{position:sticky;top:var(--skd-sticky-top);display:flex;flex-direction:column;gap:28px}
body.skd-single .skd-post-main{min-width:0;max-width:780px}
body.skd-single .skd-aside-title{margin:0 0 14px;font-size:12.5px;line-height:1.4;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--skd-ink)}

/* table of contents */
body.skd-single .skd-toc summary{list-style:none;cursor:default}
body.skd-single .skd-toc summary::-webkit-details-marker{display:none}
body.skd-single .skd-toc__list{list-style:none;margin:0;padding:0;border-left:2px solid var(--skd-line);max-height:calc(100vh - var(--skd-sticky-top) - 260px);overflow:auto;scrollbar-width:thin}
body.skd-single .skd-toc__list li{margin:0}
body.skd-single .skd-toc__list a{display:block;margin-left:-2px;padding:7px 0 7px 14px;border-left:2px solid transparent;font-size:14px;line-height:1.45;color:var(--skd-muted);text-decoration:none;transition:color .2s,border-color .2s}
body.skd-single .skd-toc__list a:hover{color:var(--skd-ink)}
body.skd-single .skd-toc__list a.is-active{color:var(--skd-ink);font-weight:600;border-left-color:var(--skd-blue)}
body.skd-single .skd-aside-block{padding-top:24px;border-top:1px solid var(--skd-line)}
body.skd-single .skd-toc + .skd-aside-block{margin-top:0}

/* share buttons */
body.skd-single .skd-share{display:flex;flex-wrap:wrap;gap:8px}
body.skd-single .skd-share__btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid var(--skd-line);border-radius:10px;background:#fff;color:var(--skd-ink);cursor:pointer;transition:background .2s,border-color .2s,color .2s;font:inherit;line-height:1;box-shadow:none}
body.skd-single .skd-share__btn .skd-ico{width:15px;height:15px;fill:currentColor}
body.skd-single .skd-share__btn:hover,body.skd-single .skd-share__btn:focus-visible{background:var(--skd-blue);border-color:var(--skd-blue);color:#fff}
body.skd-single .skd-copy__done{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:3px 8px;border-radius:6px;background:var(--skd-ink);color:#fff;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s}
body.skd-single .skd-copy.is-copied .skd-copy__done{opacity:1}

/* service links */
body.skd-single .skd-aside-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
body.skd-single .skd-aside-links li{margin:0}
body.skd-single .skd-aside-links a{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:var(--skd-text);text-decoration:none}
body.skd-single .skd-aside-links .skd-ico{width:14px;height:14px;color:var(--skd-blue);transition:transform .2s}
body.skd-single .skd-aside-links a:hover{color:var(--skd-ink)}
body.skd-single .skd-aside-links a:hover .skd-ico{transform:translateX(3px)}

/* ---- Article typography ----------------------------------------------------- */
body.skd-single .skd-post-main .entry-content{font-family:var(--skd-font);font-size:17px;line-height:1.85;color:var(--skd-text)}
body.skd-single .skd-post-main .entry-content > *{margin-top:0;margin-bottom:22px}
body.skd-single .skd-post-main .entry-content > *:last-child{margin-bottom:0}
body.skd-single .skd-post-main .entry-content :is(h2,h3,h4,h5){font-family:var(--skd-font);color:var(--skd-ink);font-weight:600;letter-spacing:-.005em;scroll-margin-top:var(--skd-sticky-top)}
body.skd-single .skd-post-main .entry-content h2{font-size:30px;line-height:1.3;margin:52px 0 18px}
body.skd-single .skd-post-main .entry-content h3{font-size:24px;line-height:1.35;margin:44px 0 16px}
body.skd-single .skd-post-main .entry-content h4{font-size:19px;line-height:1.45;margin:32px 0 12px}
body.skd-single .skd-post-main .entry-content h5{font-size:17px;line-height:1.5;margin:28px 0 10px}
body.skd-single .skd-post-main .entry-content > :is(h2,h3,h4):first-child{margin-top:0}
body.skd-single .skd-post-main .entry-content p{margin:0 0 22px}
body.skd-single .skd-post-main .entry-content > p:first-child{font-size:19px;line-height:1.75;color:var(--skd-ink);font-weight:500}
body.skd-single .skd-post-main .entry-content strong{color:var(--skd-ink);font-weight:600}
body.skd-single .skd-post-main .entry-content a{color:var(--skd-blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.skd-single .skd-post-main .entry-content a:hover{color:var(--skd-blue-dk)}
body.skd-single .skd-post-main .entry-content :is(ul,ol){margin:0 0 24px;padding-left:24px}
body.skd-single .skd-post-main .entry-content li{margin:0 0 10px;padding-left:4px}
body.skd-single .skd-post-main .entry-content ul > li::marker{color:var(--skd-blue)}
body.skd-single .skd-post-main .entry-content ol > li::marker{color:var(--skd-blue);font-weight:600}
body.skd-single .skd-post-main .entry-content blockquote{margin:32px 0;padding:24px 28px;border:0;border-left:3px solid var(--skd-blue);border-radius:0 var(--skd-r) var(--skd-r) 0;background:var(--skd-tint);font-size:18px;line-height:1.7;color:var(--skd-ink);font-style:normal}
body.skd-single .skd-post-main .entry-content blockquote p:last-child{margin-bottom:0}
body.skd-single .skd-post-main .entry-content blockquote cite{display:block;margin-top:10px;font-size:14px;font-style:normal;color:var(--skd-muted)}
body.skd-single .skd-post-main .entry-content :is(figure,.wp-block-image){margin:32px 0}
body.skd-single .skd-post-main .entry-content img{max-width:100%;height:auto;border-radius:14px}
body.skd-single .skd-post-main .entry-content figcaption{margin-top:10px;font-size:14px;line-height:1.5;color:var(--skd-muted);text-align:center}
body.skd-single .skd-post-main .entry-content hr{border:0;border-top:1px solid var(--skd-line);margin:40px 0}
body.skd-single .skd-post-main .entry-content :not(pre) > code{padding:2px 6px;border-radius:6px;background:var(--skd-tint);color:var(--skd-ink);font-size:.9em}
body.skd-single .skd-post-main .entry-content pre{padding:20px;border-radius:14px;background:var(--skd-navy);color:#E6EEF5;font-size:14px;line-height:1.6;overflow:auto}

/* tables */
body.skd-single .skd-post-main .entry-content .wp-block-table{margin:32px 0;overflow-x:auto;border:1px solid var(--skd-line);border-radius:14px}
body.skd-single .skd-post-main .entry-content table{width:100%;border-collapse:collapse;border:0;margin:0;font-size:15px;line-height:1.55}
body.skd-single .skd-post-main .entry-content table :is(th,td){padding:13px 16px;border:0;border-bottom:1px solid var(--skd-line);text-align:left;vertical-align:top}
body.skd-single .skd-post-main .entry-content table thead :is(th,td){background:var(--skd-navy);color:#fff;font-weight:600;font-size:13px;letter-spacing:.04em;text-transform:uppercase;border-bottom:0}
body.skd-single .skd-post-main .entry-content table tbody tr:nth-child(even) :is(td,th){background:var(--skd-soft)}
body.skd-single .skd-post-main .entry-content table tbody tr:last-child :is(td,th){border-bottom:0}
body.skd-single .skd-post-main .entry-content .wp-block-table.is-style-stripes{border-bottom:1px solid var(--skd-line)}
body.skd-single .skd-post-main .entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd){background:transparent}

/* ---- After the article ------------------------------------------------------ */
body.skd-single .skd-post-share-row{display:none;margin-top:40px;padding-top:24px;border-top:1px solid var(--skd-line)}
body.skd-single .skd-author-box{display:flex;gap:20px;align-items:flex-start;margin-top:48px;padding:28px;border:1px solid var(--skd-line);border-radius:var(--skd-r);background:#fff}
body.skd-single .skd-author-box__img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:0 0 72px;background:var(--skd-tint)}
body.skd-single .skd-author-box__label{margin:0 0 2px;font-size:12.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--skd-blue)}
body.skd-single .skd-author-box__name{margin:0 0 8px;font-size:19px;line-height:1.35;font-weight:600;color:var(--skd-ink)}
body.skd-single .skd-author-box__bio{margin:0;font-size:15px;line-height:1.7;color:var(--skd-text)}
body.skd-single .skd-post-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px;margin-top:24px;padding:32px;border:1px solid var(--skd-tint-line);border-radius:var(--skd-r);background:var(--skd-tint)}
body.skd-single .skd-post-cta__text{flex:1 1 320px}
body.skd-single .skd-post-cta__title{margin:0 0 8px;font-size:22px;line-height:1.35;font-weight:600;color:var(--skd-ink)}
body.skd-single .skd-post-cta__text p:last-child{margin:0;font-size:15px;line-height:1.7;color:var(--skd-text)}
body.skd-single .skd-post-cta__btns{display:flex;flex-wrap:wrap;gap:10px}
body.skd-single .skd-btn{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;border:1px solid var(--skd-blue);border-radius:10px;background:var(--skd-blue);color:#fff;font-size:15px;font-weight:500;line-height:1.3;text-decoration:none;transition:background .2s,border-color .2s,color .2s}
body.skd-single .skd-btn .skd-ico{width:15px;height:15px}
body.skd-single .skd-btn:hover{background:var(--skd-blue-dk);border-color:var(--skd-blue-dk);color:#fff}
body.skd-single .skd-btn--ghost{background:#fff;border-color:var(--skd-line);color:var(--skd-ink)}
body.skd-single .skd-btn--ghost:hover{background:#fff;border-color:var(--skd-blue);color:var(--skd-blue)}

/* comments (only if enabled): line up with the article column */
body.skd-single #comments{max-width:780px;margin:48px 0 0 314px;padding:0}

/* ---- Related articles ------------------------------------------------------- */
body.skd-single .skd-related{padding:72px 0 80px;background:var(--skd-soft);font-family:var(--skd-font)}
body.skd-single .skd-related__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:32px}
body.skd-single .skd-related .skd-related__title{margin:0;font-size:30px;line-height:1.3;font-weight:600;color:var(--skd-ink)}
body.skd-single .skd-related__all{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:500;color:var(--skd-blue);text-decoration:none}
body.skd-single .skd-related__all .skd-ico{width:15px;height:15px}
body.skd-single .skd-related__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body.skd-single .skd-card{display:flex;flex-direction:column;margin:0;border:1px solid var(--skd-line);border-radius:var(--skd-r);background:#fff;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}
body.skd-single .skd-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(5,45,70,.08)}
body.skd-single .skd-card__img{display:block;aspect-ratio:16/9;background:var(--skd-tint);overflow:hidden}
body.skd-single .skd-card__img img{display:block;width:100%;height:100%;object-fit:cover}
body.skd-single .skd-card__body{padding:22px 24px 24px}
body.skd-single .skd-card__cat{margin:0 0 8px;font-size:12.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--skd-blue)}
body.skd-single .skd-card .skd-card__title{margin:0 0 10px;font-size:18px;line-height:1.4;font-weight:600}
body.skd-single .skd-card__title a{color:var(--skd-ink);text-decoration:none}
body.skd-single .skd-card__title a:hover{color:var(--skd-blue)}
body.skd-single .skd-card__meta{margin:0;font-size:13.5px;color:var(--skd-muted)}

/* ---- Tablet ----------------------------------------------------------------- */
@media (max-width:1024px){
  body.skd-single .skd-post-hero .skd-post-title{border:0;padding:0;font-size:36px}
  body.skd-single .skd-post-cover{border-radius:20px;margin-bottom:30px}
  body.skd-single .skd-post-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  body.skd-single .skd-post-aside__inner{position:static}
  body.skd-single .skd-post-main{max-width:none}
  body.skd-single .skd-aside-block{display:none}
  body.skd-single .skd-toc{border:1px solid var(--skd-line);border-radius:14px;background:#fff}
  body.skd-single .skd-toc summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;margin:0;padding:16px 20px}
  body.skd-single .skd-toc summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--skd-ink);border-bottom:2px solid var(--skd-ink);transform:rotate(45deg);margin:-4px 2px 0 12px;transition:transform .2s}
  body.skd-single .skd-toc[open] summary::after{transform:rotate(225deg);margin-top:4px}
  body.skd-single .skd-toc nav{padding:0 20px 16px}
  body.skd-single .skd-toc__list{max-height:none}
  body.skd-single .skd-post-share-row{display:block}
  body.skd-single #comments{max-width:none;margin-left:0}
  body.skd-single .skd-related__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.skd-single .skd-related__grid > :nth-child(3){display:none}
}

/* ---- Mobile ----------------------------------------------------------------- */
@media (max-width:767px){
  body.skd-single #main #content-wrap,body.skd-single .skd-post-hero ~ #content-wrap{padding-top:28px;padding-bottom:48px}
  body.skd-single .skd-post-hero{padding-top:18px}
  body.skd-single .skd-crumbs{margin-bottom:16px}
  body.skd-single .skd-post-cover{border-radius:16px;margin-bottom:24px;aspect-ratio:16/9}
  body.skd-single .skd-post-hero .skd-post-title{border:0;padding:0;font-size:28px;line-height:1.25}
  body.skd-single .skd-post-lead{font-size:16px}
  body.skd-single .skd-post-meta{margin-top:18px;padding-top:16px}
  body.skd-single .skd-post-main .entry-content{font-size:16px;line-height:1.8}
  body.skd-single .skd-post-main .entry-content > p:first-child{font-size:17px}
  body.skd-single .skd-post-main .entry-content h2{font-size:24px;margin-top:40px}
  body.skd-single .skd-post-main .entry-content h3{font-size:21px;margin-top:36px}
  body.skd-single .skd-post-main .entry-content h4{font-size:18px}
  body.skd-single .skd-post-main .entry-content blockquote{padding:18px 20px;font-size:16px}
  body.skd-single .skd-post-main .entry-content table{font-size:14px}
  body.skd-single .skd-post-main .entry-content table :is(th,td){padding:11px 12px;min-width:120px}
  body.skd-single .skd-author-box{flex-direction:column;gap:14px;padding:22px}
  body.skd-single .skd-post-cta{padding:24px 20px}
  body.skd-single .skd-post-cta__btns,body.skd-single .skd-post-cta__btns .skd-btn{width:100%;justify-content:center}
  body.skd-single .skd-related{padding:52px 0 56px}
  body.skd-single .skd-related .skd-related__title{font-size:24px}
  body.skd-single .skd-related__grid{grid-template-columns:minmax(0,1fr)}
  body.skd-single .skd-related__grid > :nth-child(3){display:flex}
}

@media (prefers-reduced-motion:reduce){
  body.skd-single .skd-card,body.skd-single .skd-card:hover{transition:none;transform:none}
  html:has(body.skd-single){scroll-behavior:auto}
}
html:has(body.skd-single){scroll-behavior:smooth}
