/*
Theme Name: ID English
Theme URI: https://idenglish.online/
Author: ID English
Description: Быстрая тема для главной страницы и SEO-блога ID English.
Version: 1.0.24
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: id-english
*/

:root {
  --id-blue: #2864f0;
  --id-blue-dark: #1546c8;
  --id-orange: #ff5736;
  --id-orange-dark: #e94124;
  --id-ink: #101a31;
  --id-muted: #667086;
  --id-paper: #fffdf8;
  --id-cream: #f7f1e8;
  --id-line: #dfe5ef;
  --id-lavender: #eef2ff;
  --id-mint: #e8f9f2;
  --id-shadow: 0 24px 70px rgba(17, 32, 62, .12);
  --id-radius: 26px;
  --id-wide: 1180px;
  --id-copy: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--id-ink);
  background: var(--id-paper);
  font-family: Manrope, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--id-blue); }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.id-wp-shell { width: min(var(--id-wide), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(211, 218, 231, .72);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(18px);
}
.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-brand img { width: 142px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--id-ink); font-size: 15px; font-weight: 750; text-decoration: none; }
.site-nav a:hover { color: var(--id-blue); }
.site-nav .site-nav__cta {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--id-orange);
}
.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--id-line);
  border-radius: 13px;
  color: var(--id-ink);
  background: #fff;
  cursor: pointer;
}

.blog-hero { padding: 72px 0 52px; background: linear-gradient(180deg, #fffdf8, #f7f1e8); }
.blog-hero__eyebrow {
  margin: 0 0 14px;
  color: var(--id-blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.blog-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.055em;
}
.blog-hero h1 span { color: var(--id-blue); }
.blog-hero p { max-width: 760px; margin: 22px 0 0; color: #4f596d; font-size: 21px; line-height: 1.55; }
.blog-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.blog-tools form { display: flex; gap: 8px; }
.blog-tools input[type="search"] {
  min-width: 280px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--id-line);
  border-radius: 13px;
  background: #fff;
}
.blog-tools button, .blog-tools__link {
  min-height: 48px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--id-blue);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.category-pills { display: flex; gap: 9px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.category-pills a { display: block; padding: 9px 13px; border: 1px solid var(--id-line); border-radius: 999px; color: #4f596d; background: #fff; font-size: 13px; font-weight: 750; text-decoration: none; }
.category-pills a:hover { border-color: var(--id-blue); color: var(--id-blue); }

.blog-featured-wrap { padding-top: 56px; }
.blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  overflow: hidden;
  border: 1px solid var(--id-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--id-shadow);
}
.blog-featured__media { min-height: 460px; overflow: hidden; background: var(--id-lavender); }
.blog-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.blog-featured:hover .blog-featured__media img { transform: scale(1.02); }
.blog-featured__copy { padding: clamp(34px, 5vw, 62px); display: flex; flex-direction: column; justify-content: center; }
.blog-featured__meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--id-blue); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.blog-featured h2 { margin: 18px 0 16px; font-size: clamp(33px, 4.2vw, 52px); line-height: 1.07; letter-spacing: -.045em; }
.blog-featured__copy p { margin: 0; color: #586278; font-size: 18px; line-height: 1.6; }
.blog-featured__read { display: inline-flex; align-items: center; gap: 8px; margin-top: 25px; color: var(--id-blue); font-weight: 850; text-underline-offset: 5px; }
.blog-featured__read span { font-size: 21px; }
.blog-more-posts .post-grid { padding-bottom: 30px; }

.blog-section { padding-top: 96px; }
.blog-section__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 54px; align-items: end; }
.blog-section__eyebrow { margin: 0 0 12px; color: var(--id-blue); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.blog-section h2, .blog-offer h2, .blog-coming h2 { margin: 0; font-size: clamp(35px, 4.8vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.blog-section__note { margin: 0; color: var(--id-muted); font-size: 17px; line-height: 1.6; }
.blog-path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 35px; }
.blog-path { min-width: 0; padding: 29px; border: 1px solid var(--id-line); border-radius: 24px; background: #fff; box-shadow: 0 13px 40px rgba(17, 32, 62, .06); }
.blog-path > span { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--id-blue); font-size: 12px; font-weight: 850; }
.blog-path h3 { margin: 20px 0 10px; font-size: 25px; letter-spacing: -.025em; }
.blog-path p { margin: 0; color: #5b6578; line-height: 1.6; }

.blog-offer { margin-top: 92px; padding: clamp(34px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: center; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #101a31, #18336d); box-shadow: 0 25px 70px rgba(16, 26, 49, .2); }
.blog-offer .blog-section__eyebrow { color: #91aeff; }
.blog-offer h2 { max-width: 760px; color: #fff; }
.blog-offer > div > p:last-child { max-width: 720px; margin: 18px 0 0; color: #d2daea; font-size: 17px; line-height: 1.6; }
.blog-offer__action { min-width: 215px; text-align: center; }
.blog-offer__action small { display: block; margin-top: 11px; color: #aebbd2; font-size: 11px; }

.blog-coming { margin-top: 92px; margin-bottom: 96px; padding: clamp(34px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 55px; border: 1px solid var(--id-line); border-radius: 30px; background: var(--id-lavender); }
.blog-coming__copy > p:last-child { margin: 18px 0 0; color: #5c667a; line-height: 1.6; }
.blog-coming__list { display: grid; gap: 10px; }
.blog-coming__list > div { padding: 17px 19px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; border: 1px solid rgba(40, 100, 240, .12); border-radius: 15px; background: rgba(255,255,255,.76); font-weight: 750; line-height: 1.35; }
.blog-coming__list span { color: var(--id-blue); font-size: 11px; font-weight: 900; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 54px 0 90px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--id-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgba(17, 32, 62, .06); }
.post-card__media { display: block; overflow: hidden; background: var(--id-lavender); aspect-ratio: 16 / 10; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card__media img { transform: scale(1.025); }
.post-card__body { padding: 23px; }
.post-card__meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--id-muted); font-size: 12px; }
.post-card__category { color: var(--id-blue); font-weight: 800; }
.post-card h2, .post-card h3 { margin: 12px 0 11px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.post-card h2 a, .post-card h3 a { color: var(--id-ink); text-decoration: none; }
.post-card p { margin: 0; color: #596377; line-height: 1.55; }
.post-card__more { display: inline-block; margin-top: 18px; color: var(--id-blue); font-weight: 800; text-underline-offset: 4px; }
.pagination { grid-column: 1 / -1; padding-top: 20px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--id-line); border-radius: 11px; color: var(--id-ink); background: #fff; text-decoration: none; }
.pagination .current { border-color: var(--id-blue); color: #fff; background: var(--id-blue); }

.article-hero { padding: 48px 0 34px; background: linear-gradient(180deg, #fffdf8, #f7f1e8); }
.breadcrumbs { margin: 0 0 22px; color: var(--id-muted); font-size: 13px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.article-hero__category { display: inline-flex; padding: 8px 12px; border-radius: 999px; color: var(--id-blue); background: #e9efff; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.article-hero h1 { max-width: 1000px; margin: 17px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: 1.03; letter-spacing: -.05em; }
.article-hero__intro { max-width: 820px; margin: 0; color: #4f596d; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.48; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 23px; color: var(--id-muted); font-size: 13px; }
.article-featured { width: min(1020px, calc(100% - 40px)); margin: 28px auto 0; overflow: hidden; border: 7px solid #fff; border-radius: 30px; box-shadow: var(--id-shadow); background: var(--id-lavender); }
.article-featured img { width: 100%; max-height: 560px; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--id-copy)) 270px; justify-content: center; gap: 62px; padding: 62px 0 96px; }
.article-content { min-width: 0; font-size: 18px; line-height: 1.72; }
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.35em; }
.article-content h2 { margin: 2.1em 0 .72em; font-size: clamp(31px, 4vw, 45px); line-height: 1.13; letter-spacing: -.035em; scroll-margin-top: 105px; }
.article-content h3 { margin: 1.8em 0 .65em; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 105px; }
.article-content ul, .article-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.article-content li { margin: .5em 0; padding-left: .25em; }
.article-content a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.article-content blockquote { margin: 2em 0; padding: 25px 28px; border: 0; border-left: 5px solid var(--id-blue); border-radius: 0 20px 20px 0; color: #25314b; background: var(--id-lavender); font-size: 21px; line-height: 1.55; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content figure { margin: 2.1em 0; }
.article-content figure img { width: 100%; border-radius: 22px; }
.article-content figcaption { margin-top: 9px; color: var(--id-muted); font-size: 13px; line-height: 1.45; text-align: center; }
.article-content table { width: 100%; margin: 2em 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--id-line); border-radius: 17px; font-size: 15px; line-height: 1.45; }
.article-content th, .article-content td { padding: 14px 15px; border-right: 1px solid var(--id-line); border-bottom: 1px solid var(--id-line); text-align: left; vertical-align: top; }
.article-content th { background: #f2f5fb; }
.article-content tr:last-child td { border-bottom: 0; }
.article-content th:last-child, .article-content td:last-child { border-right: 0; }
.article-content .wp-block-details { margin: 1.8em 0; padding: 18px 21px; border: 1px solid var(--id-line); border-radius: 17px; background: #fff; }
.article-content .wp-block-details summary { font-weight: 800; cursor: pointer; }

/* Rich editorial blocks used by the ID English reference article. */
.article-content section { scroll-margin-top: 104px; }
.article-content .ide-overline,
.article-content .ide-section-kicker {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--id-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-content .ide-quick,
.article-content .ide-note {
  margin: 0 0 2.2em;
  padding: 28px;
  border: 1px solid #cad7ff;
  border-radius: 24px;
  background: linear-gradient(145deg, #f4f7ff, #eef2ff);
}
.article-content .ide-quick h2,
.article-content .ide-note h2 { margin: 0 0 14px; font-size: clamp(27px, 3.5vw, 36px); }
.article-content .ide-quick p:last-child,
.article-content .ide-note p:last-child { margin-bottom: 0; }
.article-content .ide-paths,
.article-content .ide-diagnosis-grid,
.article-content .ide-phrases,
.article-content .ide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 1.5em 0 2.2em;
}
.article-content .ide-steps {
  padding: 0;
  list-style: none;
}
/* WordPress may insert empty paragraphs between block-level tags. Keep those
   helpers out of editorial grids so content never falls into a 42/76px cell. */
.article-content .ide-steps > p:empty,
.article-content .ide-steps > * > p:empty,
.article-content .ide-expert > p:empty { display: none; }
.article-content .ide-path,
.article-content .ide-diagnosis,
.article-content .ide-phrases > *,
.article-content .ide-steps > * {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--id-line);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 32, 62, .055);
}
.article-content .ide-steps > * {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  list-style: none;
}
.article-content .ide-steps > *::marker { content: ""; }
.article-content .ide-steps > * > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--id-blue);
  background: #e9efff;
  font-size: 12px;
  font-weight: 850;
}
.article-content .ide-path-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-content .ide-path-slow { border-top: 5px solid #9aa6ba; }
.article-content .ide-path-fast { border-top: 5px solid var(--id-blue); background: #f7f9ff; }
.article-content .ide-diagnosis h3,
.article-content .ide-phrases h3,
.article-content .ide-steps h3 { margin: 0 0 10px; font-size: 21px; }
.article-content .ide-diagnosis p:last-child,
.article-content .ide-phrases p:last-child,
.article-content .ide-steps p:last-child { margin-bottom: 0; }
.article-content .ide-dialogue {
  margin: 1.7em 0;
  padding: 24px 26px;
  border-left: 5px solid var(--id-orange);
  border-radius: 0 20px 20px 0;
  background: var(--id-cream);
}
.article-content .ide-checklist { margin: 1.5em 0 2em; padding: 26px; border-radius: 20px; background: var(--id-mint); }
.article-content .ide-checklist h3 { margin: 0 0 15px; }
.article-content .ide-checklist label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 11px 0;
  line-height: 1.5;
  cursor: pointer;
}
.article-content .ide-checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--id-blue);
}
.article-content .ide-timeline { margin: 1.5em 0 2.2em; padding: 0; list-style: none; counter-reset: ide-days; }
.article-content .ide-timeline > * { position: relative; margin: 0 0 13px; padding: 18px 20px 18px 56px; border: 1px solid var(--id-line); border-radius: 17px; background: #fff; }
.article-content .ide-timeline > *::before { counter-increment: ide-days; content: counter(ide-days); position: absolute; left: 17px; top: 17px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--id-blue); font-size: 12px; font-weight: 850; }
.article-content .ide-offer {
  margin: 2.5em 0;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 230px);
  gap: 24px;
  align-items: center;
  border-radius: 25px;
  color: #fff;
  background: linear-gradient(135deg, #101a31, #18336d);
  box-shadow: 0 22px 54px rgba(16, 26, 49, .2);
}
.article-content .ide-offer .ide-overline { color: #91aeff; }
.article-content .ide-offer h2 { margin: 0 0 10px; color: #fff; font-size: clamp(27px, 3.4vw, 36px); }
.article-content .ide-offer p { color: #d8e0ef; }
.article-content .ide-offer ul { margin-bottom: 0; }
.article-content .ide-offer-copy { min-width: 0; }
.article-content .ide-offer-copy p:last-child { margin-bottom: 0; }
.article-content .ide-offer-action {
  min-width: 0;
  display: grid;
  gap: 10px;
  justify-items: stretch;
  text-align: center;
}
.article-content .ide-offer-action small { display: block; color: #aebbd2; font-size: 12px; line-height: 1.4; }
.article-content .ide-button { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; background: var(--id-blue); font-size: 15px; font-weight: 850; text-decoration: none; }
.article-content .ide-button-hot { background: var(--id-orange); box-shadow: 0 12px 28px rgba(255, 87, 54, .28); }
.article-content .ide-button:hover { color: #fff; filter: brightness(.95); }
.article-content .ide-comic-image,
.article-content .ide-editorial-image,
.article-content .ide-photo-image { width: 100%; margin: 2.1em 0; overflow: hidden; border-radius: 24px; background: var(--id-cream); box-shadow: 0 14px 38px rgba(17, 32, 62, .08); }
.article-content .ide-comic-image img,
.article-content .ide-editorial-image img,
.article-content .ide-photo-image img { width: 100%; }
.article-content .ide-muted { color: var(--id-muted); font-size: 15px; }
.article-content .ide-expert {
  margin: 2.5em 0;
  padding: 28px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border-radius: 24px;
  color: #fff;
  background: var(--id-ink);
}
.article-content .ide-expert-avatar { width: 76px; height: 76px; overflow: hidden; border: 4px solid rgba(255,255,255,.15); border-radius: 50%; object-fit: cover; background: #2f66e8; }
.article-content .ide-expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-content .ide-expert h2 { margin: 0 0 10px; color: #fff; font-size: 28px; }
.article-content .ide-expert p { color: #dbe2ef; }
.article-content .ide-expert p:last-child { margin-bottom: 0; }
.article-content .ide-faq details,
.article-content .ide-sources {
  margin: 12px 0;
  padding: 18px 20px;
  border: 1px solid var(--id-line);
  border-radius: 17px;
  background: #fff;
}
.article-content .ide-faq summary,
.article-content .ide-sources summary { font-weight: 800; cursor: pointer; }
.article-content .ide-faq details p,
.article-content .ide-sources p,
.article-content .ide-sources ol { margin-top: 14px; margin-bottom: 0; }

.article-sidebar { align-self: start; position: sticky; top: 106px; }
.article-toc, .article-side-cta { padding: 21px; border: 1px solid var(--id-line); border-radius: 20px; background: #fff; }
.article-toc h2, .article-side-cta h2 { margin: 0 0 13px; font-size: 16px; }
.article-toc ol { margin: 0; padding: 0; list-style: none; }
.article-toc li + li { margin-top: 9px; }
.article-toc a { display: block; color: #556076; font-size: 13px; line-height: 1.4; text-decoration: none; }
.article-toc a:hover, .article-toc a.is-active { color: var(--id-blue); }
.article-toc { margin-top: 14px; }
.article-toc.is-collapsed li:nth-child(n+6) { display: none; }
.article-toc__more { width: 100%; margin-top: 15px; padding: 10px 12px; border: 1px solid #d8e0ee; border-radius: 11px; color: var(--id-blue); background: #f6f8fd; font-size: 12px; font-weight: 800; cursor: pointer; }
.article-toc__more:hover { border-color: #b8c9ed; background: #eef3ff; }
.article-side-cta { margin: 0; padding: 0; overflow: hidden; color: var(--id-ink); background: #fff; border-color: #e7ded5; box-shadow: 0 18px 45px rgba(17, 32, 62, .11); }
.article-side-cta__media { height: 142px; overflow: hidden; background: #e7edf8; }
.article-side-cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 27%; }
.article-side-cta__copy { padding: 17px; }
.article-side-cta__copy > span { display: inline-block; margin-bottom: 9px; color: #bd1627; font-size: 10px; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
.article-side-cta h2 { margin-bottom: 9px; font-size: 17px; line-height: 1.22; letter-spacing: -.02em; }
.article-side-cta p { margin: 0 0 13px; color: #5d6678; font-size: 12px; line-height: 1.48; }
.article-side-cta .id-wp-button { width: 100%; min-height: 46px; padding-inline: 12px; color: #fff; background: #e8135a; font-size: 13px; white-space: nowrap; box-shadow: 0 11px 25px rgba(232, 19, 90, .22); }
.article-side-cta .id-wp-button:hover { color: #fff; background: #ce104d; }
.article-inline-cta { margin: 2.2em 0; padding: 27px; border-radius: 23px; color: #fff; background: linear-gradient(135deg, var(--id-blue), var(--id-blue-dark)); box-shadow: 0 18px 46px rgba(40, 100, 240, .22); }
.article-inline-cta__eyebrow { display: block; margin-bottom: 9px; color: #cbd9ff; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-inline-cta h2 { margin: 0 0 10px; color: #fff; font-size: 28px; }
.article-inline-cta p { margin: 0 0 18px; color: #e8eeff; font-size: 16px; line-height: 1.5; }
.id-wp-button { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff !important; background: var(--id-orange); box-shadow: 0 12px 28px rgba(255, 87, 54, .24); font-size: 15px; font-weight: 850; text-decoration: none; }
.id-wp-button:hover { background: var(--id-orange-dark); }
.id-wp-button--small { min-height: 44px; padding-inline: 16px; font-size: 13px; }

.article-author { margin-top: 54px; padding: 25px; display: grid; grid-template-columns: 74px 1fr; gap: 18px; border: 1px solid var(--id-line); border-radius: 22px; background: #fff; }
.article-author__avatar { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; background: var(--id-lavender); }
.article-author h2 { margin: 0 0 7px; font-size: 19px; }
.article-author p { margin: 0; color: var(--id-muted); font-size: 14px; line-height: 1.55; }
.related-posts { padding: 76px 0; background: var(--id-lavender); }
.related-posts > .id-wp-shell > h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.04em; }
.related-posts .post-grid { padding: 34px 0 0; }
.related-posts .post-card h2 { margin: 12px 0 11px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }

/* WordPress.com adds these blocks after the article; the original editorial page did not use them. */
.single .sharedaddy,
.single #jp-relatedposts,
.single .jp-relatedposts,
.single .wp-block-jetpack-subscriptions { display: none !important; }

.site-footer { padding: 62px 0 24px; color: #fff; background: var(--id-ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 35px; }
.site-footer__brand img { width: 135px; filter: brightness(0) invert(1); }
.site-footer__brand p { max-width: 350px; color: #aeb9cc; line-height: 1.55; }
.site-footer h2 { margin: 0 0 14px; color: #8fa0bd; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; margin: 9px 0; color: #e2e8f3; text-decoration: none; }
.site-footer__legal { margin-top: 34px; padding-top: 21px; display: flex; justify-content: space-between; gap: 28px; border-top: 1px solid rgba(255,255,255,.12); color: #8290a8; font-size: 12px; line-height: 1.6; }

.id-cookie { position: fixed; z-index: 120; left: 18px; right: auto; bottom: 18px; display: flex; align-items: center; gap: 18px; max-width: 480px; padding: 17px 18px; border: 1px solid var(--id-line); border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(16,26,49,.2); }
.id-cookie[hidden] { display: none; }
.id-cookie p { margin: 0; color: var(--id-muted); font-size: 13px; line-height: 1.45; }
.id-cookie p a { color: var(--id-blue); }
.id-cookie button { flex: 0 0 auto; padding: 11px 15px; border: 0; border-radius: 11px; background: var(--id-ink); color: #fff; font-weight: 800; cursor: pointer; }

.article-mobile-cta { display: none; }
.empty-state { padding: 80px 0 120px; text-align: center; }
.empty-state h1 { font-size: clamp(40px, 6vw, 70px); }
.empty-state p { color: var(--id-muted); font-size: 18px; }

@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__media { min-height: 0; aspect-ratio: 16 / 9; }
  .blog-section__head, .blog-coming { grid-template-columns: 1fr; gap: 25px; }
  .blog-path-grid { grid-template-columns: 1fr 1fr; }
  .blog-offer { grid-template-columns: 1fr; gap: 28px; }
  .blog-offer__action { text-align: left; }
  .article-layout { grid-template-columns: minmax(0, var(--id-copy)); }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .article-toc { margin-top: 0; }
  .article-side-cta { margin-top: 0; }
}

@media (max-width: 700px) {
  .id-wp-shell { width: min(100% - 28px, var(--id-wide)); }
  .site-header__inner { min-height: 66px; }
  .site-brand img { width: 119px; }
  .site-menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 14px; right: 14px; padding: 18px; flex-direction: column; align-items: stretch; border: 1px solid var(--id-line); border-radius: 18px; background: #fff; box-shadow: var(--id-shadow); }
  .site-nav.is-open { display: flex; }
  .blog-hero { padding: 48px 0 38px; }
  .blog-hero h1 { font-size: 48px; }
  .blog-hero p { font-size: 18px; }
  .blog-tools, .blog-tools form { align-items: stretch; flex-direction: column; width: 100%; }
  .blog-tools input[type="search"] { min-width: 0; width: 100%; }
  .blog-featured-wrap { padding-top: 34px; }
  .blog-featured { border-radius: 23px; }
  .blog-featured__copy { padding: 27px 23px 31px; }
  .blog-featured h2 { font-size: 34px; }
  .blog-featured__copy p { font-size: 16px; }
  .blog-section { padding-top: 68px; }
  .blog-path-grid { grid-template-columns: 1fr; }
  .blog-offer, .blog-coming { margin-top: 68px; padding: 28px 23px; border-radius: 23px; }
  .blog-coming { margin-bottom: 72px; }
  .post-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .article-hero { padding-top: 34px; }
  .article-hero h1 { font-size: 43px; }
  .article-hero__intro { font-size: 18px; }
  .article-featured { width: calc(100% - 28px); border-width: 4px; border-radius: 22px; }
  .article-layout { padding: 43px 0 90px; }
  .article-content { font-size: 17px; line-height: 1.68; }
  .article-content h2 { font-size: 33px; }
  .article-content h3 { font-size: 25px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .article-content .ide-paths,
  .article-content .ide-diagnosis-grid,
  .article-content .ide-phrases,
  .article-content .ide-steps { grid-template-columns: 1fr; }
  .article-content .ide-steps > * { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 19px; }
  .article-content .ide-steps > * > span:first-child { width: 38px; height: 38px; }
  .article-content .ide-checklist { padding: 22px 19px; }
  .article-content .ide-checklist label { grid-template-columns: 20px minmax(0, 1fr); gap: 9px; }
  .article-content .ide-offer { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .article-content .ide-offer-action { width: 100%; text-align: center; }
  .article-content .ide-button { width: 100%; }
  .article-content .ide-expert { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .article-content .ide-expert-avatar { width: 72px; height: 72px; }
  .article-content .ide-expert h2 { font-size: 27px; line-height: 1.15; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-toc { order: -1; }
  .article-side-cta { height: min(68svh, 680px); display: grid; grid-template-rows: 42% minmax(0, 1fr); border-radius: 24px; }
  .article-side-cta__media { height: auto; min-height: 0; }
  .article-side-cta__copy { min-height: 0; padding: clamp(20px, 5vw, 27px); display: flex; flex-direction: column; }
  .article-side-cta__copy > span { margin-bottom: 11px; font-size: 11px; }
  .article-side-cta h2 { margin-bottom: 11px; font-size: clamp(23px, 6.5vw, 30px); line-height: 1.14; }
  .article-side-cta p { margin-bottom: 17px; font-size: 14px; line-height: 1.5; }
  .article-side-cta .id-wp-button { margin-top: auto; min-height: 50px; font-size: 14px; }
  .article-author { grid-template-columns: 58px 1fr; padding: 20px; }
  .article-author__avatar { width: 58px; height: 58px; }
  .site-footer { padding-bottom: 96px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; }
  .id-cookie { left: 12px; right: 12px; bottom: 82px; max-width: none; }
  .article-mobile-cta { position: fixed; z-index: 80; left: 10px; right: 10px; bottom: 10px; padding: 10px 10px 10px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; color: #fff; background: rgba(16, 26, 49, .96); box-shadow: 0 14px 45px rgba(0,0,0,.27); backdrop-filter: blur(16px); }
  .article-mobile-cta span { max-width: 245px; font-size: 12px; font-weight: 750; line-height: 1.3; }
}
