/* ISHIR blog detail (redesign) - scoped under .ibd and body.ibd-page. Header/footer untouched. */

/* The old blog banner is not used by this layout. */
body.ibd-page #banner { display: none !important; }

.ibd {
    --ibd-ink: #111111;
    --ibd-ink-2: #2b2b2b;
    --ibd-muted: #5f5f5f;
    --ibd-yellow: #f5b318;
    --ibd-yellow-deep: #9a6a00;
    --ibd-cream: #faf8f2;
    --ibd-sand: #ebe3d1;
    --ibd-sand-2: #f2ecdf;
    --ibd-line: #d9d4c7;
    --ibd-white: #ffffff;
    font-family: 'Mulish', sans-serif;
    color: var(--ibd-ink);
    background: var(--ibd-white);
    -webkit-font-smoothing: antialiased;
}
.ibd *, .ibd *::before, .ibd *::after { box-sizing: border-box; }
.ibd a { color: inherit; }
.ibd img { max-width: 100%; height: auto; }
.ibd h1, .ibd h2, .ibd h3, .ibd h4, .ibd p { font-family: 'Mulish', sans-serif; letter-spacing: normal; text-transform: none; }
.ibd a:focus-visible, .ibd button:focus-visible, .ibd summary:focus-visible { outline: 3px solid var(--ibd-yellow); outline-offset: 2px; }

.ibd-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ibd-eyebrow {
    font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase !important;
    color: var(--ibd-yellow-deep); margin: 0 0 12px !important;
}
.ibd-eyebrow--sm { font-size: 11px; margin-bottom: 8px !important; }

/* Buttons */
.ibd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px;
    font-family: 'Mulish', sans-serif; font-size: 14px; font-weight: 800; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; transition: background-color .2s, color .2s;
}
.ibd-btn--yellow { background: var(--ibd-yellow); color: var(--ibd-ink) !important; }
.ibd-btn--yellow:hover { background: #ffc43d; }
.ibd-btn--block { width: 100%; }

/* ---------- Head ---------- */
.ibd-head { padding: 36px 0 0; }
.ibd-crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ibd-muted); }
.ibd-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b5ad99; }
.ibd-crumbs a { color: var(--ibd-yellow-deep) !important; text-decoration: none; font-weight: 600; }
.ibd-crumbs a:hover { text-decoration: underline; }

.ibd-title {
    font-size: 52px; line-height: 1.1; font-weight: 800; color: var(--ibd-ink) !important;
    max-width: 960px; margin: 0 0 18px !important;
}
.ibd-dek { font-size: 20px; line-height: 1.55; color: var(--ibd-ink-2); max-width: 780px; margin: 0 0 8px !important; }

.ibd-byline {
    display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
    margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--ibd-line); border-bottom: 1px solid var(--ibd-line);
}
.ibd-byline__author { display: flex; align-items: center; gap: 12px; }
.ibd-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--ibd-sand); flex: 0 0 40px; }
.ibd-byline__name { display: block; font-size: 15px; font-weight: 800; text-decoration: none !important; color: var(--ibd-ink) !important; }
.ibd-byline__name:hover { text-decoration: underline !important; }
.ibd-byline__role { display: block; font-size: 13px; color: var(--ibd-muted); }
.ibd-byline__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ibd-byline__dates { font-size: 13px; color: var(--ibd-muted); }
.ibd-actions { display: flex; align-items: center; gap: 8px; }

.ibd-listen {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 2px;
    background: var(--ibd-ink); color: var(--ibd-white); font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer;
}
.ibd-listen[hidden] { display: none; }
.ibd-listen svg { width: 14px; height: 14px; fill: currentColor; }
.ibd-listen .ibd-listen__pause { display: none; }
.ibd-listen[aria-pressed="true"] .ibd-listen__play { display: none; }
.ibd-listen[aria-pressed="true"] .ibd-listen__pause { display: inline; }

.ibd-iconbtn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 1px solid var(--ibd-ink); background: var(--ibd-white); border-radius: 2px; cursor: pointer; padding: 0;
}
.ibd-iconbtn svg { width: 16px; height: 16px; fill: none; stroke: var(--ibd-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ibd-iconbtn:hover { background: var(--ibd-sand-2); }
.ibd-share { position: relative; }
.ibd-share__menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 180px; padding: 6px 0;
    background: var(--ibd-white); border: 1px solid var(--ibd-line); box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.ibd-share__menu[hidden] { display: none; }
.ibd-share__menu a, .ibd-share__menu button {
    display: block; width: 100%; padding: 9px 16px; border: 0; background: none; text-align: left;
    font-family: 'Mulish', sans-serif; font-size: 14px; font-weight: 600; color: var(--ibd-ink) !important; text-decoration: none !important; cursor: pointer;
}
.ibd-share__menu a:hover, .ibd-share__menu button:hover { background: var(--ibd-sand-2); }

.ibd-hero { margin: 28px 0 0; background: var(--ibd-ink); overflow: hidden; }
.ibd-hero__img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; }

/* ---------- Layout ---------- */
.ibd-layout {
    display: grid; grid-template-columns: 190px minmax(0, 1fr) 300px; gap: 48px;
    padding-top: 48px; padding-bottom: 72px; align-items: start;
}
.ibd-layout--no-toc { grid-template-columns: minmax(0, 1fr) 300px; }
.ibd-main { min-width: 0; max-width: 760px; }
/* Side columns span the full article height so their sticky inner boxes can travel with the scroll. */
.ibd-toc, .ibd-rail { align-self: stretch; }

/* Table of contents */
.ibd-toc__inner { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; }
.ibd-toc__title, .ibd-hub__title, .ibd-rail-cta__eyebrow {
    font-size: 11px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase !important; margin: 0 0 12px !important;
}
.ibd-toc__title { color: var(--ibd-muted); }
.ibd-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ibd-line); }
.ibd-toc__list li { margin: 0; padding: 0; }
.ibd-toc__list a {
    display: block; margin-left: -2px; padding: 7px 0 7px 12px; border-left: 2px solid transparent;
    font-size: 13px; line-height: 1.4; color: var(--ibd-muted) !important; text-decoration: none !important;
}
.ibd-toc__list a:hover { color: var(--ibd-ink) !important; }
.ibd-toc__list a.is-active { border-left-color: var(--ibd-yellow); color: var(--ibd-ink) !important; font-weight: 800; }

.ibd-toc-mobile { display: none; margin: 0 0 28px; background: var(--ibd-white); border: 1px solid var(--ibd-line); }
.ibd-toc-mobile summary { cursor: pointer; padding: 14px 18px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; list-style: none; position: relative; }
.ibd-toc-mobile summary::-webkit-details-marker { display: none; }
.ibd-toc-mobile summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 20px; font-weight: 400; }
.ibd-toc-mobile[open] summary::after { content: "\2212"; }
.ibd-toc-mobile ol { margin: 0; padding: 0 18px 14px 36px; }
.ibd-toc-mobile li { padding: 5px 0; font-size: 14px; line-height: 1.4; }
.ibd-toc-mobile a { text-decoration: none !important; }

/* ---------- Article content (classic editor output) ---------- */
.ibd-content { font-size: 18px; line-height: 1.75; color: var(--ibd-ink-2); overflow-wrap: break-word; }
.ibd-content > *:first-child { margin-top: 0 !important; }
.ibd-content p { font-size: 18px !important; line-height: 1.75 !important; color: var(--ibd-ink-2); margin: 0 0 22px !important; }
.ibd-content h2 {
    font-size: 30px !important; line-height: 1.25 !important; font-weight: 800 !important; color: var(--ibd-ink) !important;
    margin: 52px 0 18px !important; padding: 0 !important; scroll-margin-top: 120px; text-align: left !important;
}
.ibd-content h3 { font-size: 23px !important; line-height: 1.35 !important; font-weight: 800 !important; color: var(--ibd-ink) !important; margin: 36px 0 14px !important; }
.ibd-content h4 { font-size: 19px !important; line-height: 1.4 !important; font-weight: 800 !important; color: var(--ibd-ink) !important; margin: 32px 0 12px !important; }
.ibd-content h4 strong, .ibd-content h3 strong { font-weight: 800; }
.ibd-content a { color: var(--ibd-ink) !important; text-decoration: underline !important; text-decoration-color: var(--ibd-yellow) !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
.ibd-content a:hover { background: var(--ibd-sand-2); }
.ibd-content strong, .ibd-content b { color: var(--ibd-ink); font-weight: 800; }
.ibd-content ul, .ibd-content ol { margin: 0 0 24px !important; padding-left: 24px !important; }
.ibd-content ul li { list-style: disc !important; }
.ibd-content ol li { list-style: decimal !important; }
.ibd-content li { font-size: 18px !important; line-height: 1.65 !important; margin: 0 0 10px !important; padding-left: 4px; color: var(--ibd-ink-2); }
.ibd-content li::marker { color: var(--ibd-yellow-deep); font-weight: 800; }
.ibd-content img { display: block; height: auto !important; margin: 32px auto; }
.ibd-content .alignleft { float: left; margin: 6px 24px 16px 0; }
.ibd-content .alignright { float: right; margin: 6px 0 16px 24px; }
.ibd-content .aligncenter, .ibd-content .alignnone { margin-left: auto; margin-right: auto; }
.ibd-content figure { margin: 32px 0; max-width: 100%; }
.ibd-content figcaption, .ibd-content .wp-caption-text { font-size: 13px !important; color: var(--ibd-muted); text-align: center; margin-top: 8px !important; }
.ibd-content .wp-caption { max-width: 100%; }
.ibd-content blockquote {
    margin: 40px 0 !important; padding: 26px 0 !important; border: 0 !important; border-top: 2px solid var(--ibd-ink) !important; border-bottom: 2px solid var(--ibd-ink) !important;
    background: none !important; font-size: 24px; line-height: 1.4; font-weight: 800; color: var(--ibd-ink);
}
.ibd-content blockquote p { font-size: 24px !important; line-height: 1.4 !important; font-weight: 800; color: var(--ibd-ink); margin: 0 0 8px !important; }
.ibd-content blockquote cite { display: block; font-size: 13px; font-style: normal; font-weight: 600; color: var(--ibd-muted); }
.ibd-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 28px; font-size: 15px; }
.ibd-content th, .ibd-content td { border: 1px solid var(--ibd-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.ibd-content th { background: var(--ibd-sand-2); font-weight: 800; }
.ibd-content iframe, .ibd-content video { max-width: 100%; }
.ibd-content::after { content: ""; display: table; clear: both; }
.ibd-content pre { overflow-x: auto; background: var(--ibd-ink); color: #f1f1f1; padding: 18px; font-size: 14px; }

/* In-article call to action (existing .ctaThreeWrapper markup, unchanged in content) */
.ibd-content .ctaThreeWrapper {
    margin: 44px 0 !important; padding: 0 !important; background: var(--ibd-ink) !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; max-width: none !important; width: auto !important; float: none !important;
}
.ibd-content .ctaThreeWrapper .ctaThreeContent,
.ibd-content .ctaThreeWrapper .ctaThreeConList,
.ibd-content .ctaThreeWrapper .content {
    margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; width: auto !important; max-width: none !important; float: none !important; display: block !important;
}
.ibd-content .ctaThreeWrapper .content { padding: 30px 32px !important; color: #d9d9d9 !important; font-size: 16px; line-height: 1.6; }
.ibd-content .ctaThreeWrapper .content::before {
    content: "ISHIR perspective"; display: block; margin-bottom: 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ibd-yellow);
}
.ibd-content .ctaThreeWrapper h2, .ibd-content .ctaThreeWrapper h3 {
    font-size: 24px !important; line-height: 1.3 !important; color: var(--ibd-white) !important; margin: 0 0 10px !important; scroll-margin-top: 120px;
}
.ibd-content .ctaThreeWrapper p { color: #d9d9d9 !important; font-size: 16px !important; margin: 0 0 10px !important; }
.ibd-content .ctaThreeWrapper .linkWrapper { margin: 18px 0 0 !important; padding: 0 !important; text-align: left !important; display: block !important; }
.ibd-content .ctaThreeWrapper .linkWrapper a {
    display: inline-flex !important; align-items: center; min-height: 44px; padding: 11px 22px !important; border: 0 !important; border-radius: 2px !important;
    background: var(--ibd-yellow) !important; color: var(--ibd-ink) !important; font-size: 14px !important; font-weight: 800 !important; text-decoration: none !important; width: auto !important;
}
.ibd-content .ctaThreeWrapper .linkWrapper a:hover { background: #ffc43d !important; }

/* FAQ accordion (built by blog-detail.js from the existing H2 + H4 Q&A content) */
.ibd-faq { margin: 0 0 24px; border-top: 1px solid var(--ibd-line); }
.ibd-faq__item { border-bottom: 1px solid var(--ibd-line); }
.ibd-faq__q { margin: 0 !important; }
.ibd-faq__btn {
    display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0;
    background: none; border: 0; text-align: left; cursor: pointer; font-family: 'Mulish', sans-serif;
    font-size: 17px; line-height: 1.45; font-weight: 800; color: var(--ibd-ink);
}
.ibd-faq__btn strong { font-weight: 800; }
.ibd-faq__icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; position: relative; }
.ibd-faq__icon::before, .ibd-faq__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; height: 2px; background: var(--ibd-ink); transition: transform .2s; }
.ibd-faq__icon::after { transform: rotate(90deg); }
.ibd-faq__btn[aria-expanded="true"] .ibd-faq__icon::after { transform: rotate(0); }
.ibd-faq__a { padding: 0 34px 18px 0; }
.ibd-faq__a[hidden] { display: none; }
.ibd-faq__a p, .ibd-faq__a li { font-size: 16px !important; line-height: 1.65 !important; color: var(--ibd-ink-2); }
.ibd-faq__a > *:last-child { margin-bottom: 0 !important; }

/* About ISHIR (existing option content) */
.ibd-about { margin: 40px 0 0; padding: 26px 28px; background: var(--ibd-sand-2); border-left: 4px solid var(--ibd-yellow); font-size: 16px; line-height: 1.65; }
.ibd-about h2, .ibd-about h3, .ibd-about h4 { font-size: 20px !important; font-weight: 800 !important; color: var(--ibd-ink) !important; margin: 0 0 10px !important; }
.ibd-about p { font-size: 16px !important; line-height: 1.65 !important; margin: 0 0 10px !important; color: var(--ibd-ink-2); }
.ibd-about p:last-child { margin-bottom: 0 !important; }
.ibd-about a { text-decoration: underline !important; text-decoration-color: var(--ibd-yellow) !important; }

/* Author card */
.ibd-author { display: flex; gap: 20px; margin: 40px 0 0; padding: 26px 28px; background: var(--ibd-white); border: 1px solid var(--ibd-line); }
.ibd-author__img { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; background: var(--ibd-sand); }
.ibd-author__name { font-size: 18px !important; font-weight: 800; margin: 0 0 2px !important; }
.ibd-author__role { font-size: 13px !important; color: var(--ibd-muted); margin: 0 0 8px !important; }
.ibd-author__bio { font-size: 14px !important; line-height: 1.6 !important; color: var(--ibd-ink-2); margin: 0 0 10px !important; }
.ibd-author__more { font-size: 14px; font-weight: 800; color: var(--ibd-yellow-deep) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Right rail */
.ibd-rail__inner { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.ibd-rail-cta { background: var(--ibd-ink); color: var(--ibd-white); padding: 24px; }
.ibd-rail-cta__eyebrow { color: var(--ibd-yellow); }
.ibd-rail-cta__title { font-size: 20px !important; line-height: 1.3 !important; font-weight: 800; color: var(--ibd-white) !important; margin: 0 0 10px !important; }
.ibd-rail-cta__text { font-size: 14px !important; line-height: 1.55 !important; color: #cfcfcf !important; margin: 0 0 18px !important; }
.ibd-hub { background: var(--ibd-white); border: 1px solid var(--ibd-line); padding: 22px 24px; }
.ibd-hub__title { color: var(--ibd-muted); }
.ibd-hub ul { list-style: none; margin: 0 0 14px; padding: 0; }
.ibd-hub li { padding: 10px 0; border-bottom: 1px solid var(--ibd-sand); margin: 0; }
.ibd-hub li:first-child { padding-top: 0; }
.ibd-hub li a { font-size: 14px; line-height: 1.45; font-weight: 800; color: var(--ibd-ink) !important; text-decoration: none !important; }
.ibd-hub li a:hover { text-decoration: underline !important; text-decoration-color: var(--ibd-yellow) !important; }
.ibd-hub__all { font-size: 13px; font-weight: 800; color: var(--ibd-yellow-deep) !important; text-decoration: none !important; }
.ibd-hub__all::after { content: " \2192"; }

/* Keep reading */
.ibd-keep { background: var(--ibd-white); border-top: 1px solid var(--ibd-line); padding: 56px 0 64px; }
.ibd-keep__title { font-size: 30px !important; line-height: 1.2 !important; font-weight: 800 !important; color: var(--ibd-ink) !important; margin: 0 0 28px !important; }
.ibd-keep__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ibd-card { display: flex; flex-direction: column; }
.ibd-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 16px; }
.ibd-card__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .4s ease; }
.ibd-card__media:hover .ibd-card__img { transform: scale(1.03); }
.ibd-tile--dark { background: var(--ibd-ink); }
.ibd-tile--yellow { background: var(--ibd-yellow); }
.ibd-tile--sand { background: var(--ibd-sand); }
.ibd-card__title { font-size: 19px !important; line-height: 1.35 !important; font-weight: 800 !important; margin: 0 !important; }
.ibd-card__title a { color: var(--ibd-ink) !important; text-decoration: none !important; }
.ibd-card__title a:hover { text-decoration: underline !important; text-decoration-color: var(--ibd-yellow) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }

/* Closing band */
.ibd-band { background: var(--ibd-ink); padding: 60px 0; }
.ibd-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ibd-band__title { font-size: 36px !important; line-height: 1.2 !important; font-weight: 800 !important; color: var(--ibd-white) !important; margin: 0 !important; max-width: 760px; }
.ibd-band .ibd-btn { flex: 0 0 auto; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .ibd-layout, .ibd-layout--no-toc { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
    .ibd-toc { display: none; }
    .ibd-toc-mobile { display: block; }
    .ibd-title { font-size: 44px; }
}
@media (max-width: 900px) {
    .ibd-layout, .ibd-layout--no-toc { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 56px; }
    .ibd-main { max-width: none; }
    .ibd-rail__inner { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .ibd-keep__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ibd-keep__grid .ibd-card:nth-child(3) { display: none; }
    .ibd-band__inner { flex-direction: column; align-items: flex-start; }
    .ibd-band__title { font-size: 30px !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .ibd-wrap { padding: 0 18px; }
    .ibd-head { padding-top: 24px; }
    .ibd-title { font-size: 32px; line-height: 1.15; }
    .ibd-dek { font-size: 17px; }
    .ibd-byline { align-items: flex-start; flex-direction: column; }
    .ibd-byline__meta { width: 100%; justify-content: space-between; }
    .ibd-hero { margin: 20px -18px 0; }
    .ibd-content, .ibd-content p, .ibd-content li { font-size: 17px !important; }
    .ibd-content h2 { font-size: 25px !important; margin-top: 40px !important; }
    .ibd-content h4 { font-size: 18px !important; }
    .ibd-content blockquote, .ibd-content blockquote p { font-size: 20px !important; }
    .ibd-content .alignleft, .ibd-content .alignright { float: none; margin: 24px auto; }
    .ibd-content .ctaThreeWrapper .content { padding: 24px 20px !important; }
    .ibd-content .ctaThreeWrapper .linkWrapper a { width: 100% !important; justify-content: center; }
    .ibd-rail__inner { grid-template-columns: 1fr; }
    .ibd-author { flex-direction: column; gap: 14px; padding: 22px 20px; }
    .ibd-about { padding: 22px 20px; }
    .ibd-keep { padding: 44px 0 48px; }
    .ibd-keep__title { font-size: 24px !important; }
    .ibd-keep__grid { grid-template-columns: 1fr; gap: 32px; }
    .ibd-keep__grid .ibd-card:nth-child(3) { display: flex; }
    .ibd-band { padding: 44px 0; }
    .ibd-band__title { font-size: 26px !important; }
    .ibd-band .ibd-btn { width: 100%; }
    .ibd-share__menu { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ibd *, .ibd *::before, .ibd *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .ibd-toc, .ibd-rail, .ibd-actions, .ibd-keep, .ibd-band, .ibd-toc-mobile { display: none !important; }
    .ibd-layout { display: block; }
}
