/* Single post page. Palette and type match injectablemachines.net: Poppins, teal #3CC1C9 / #1F8A91, band #DEF3F4, text #1D2B2C. */

/* Title band */
.adinath-post-hero { text-align: center; }
.ap-badge { display: inline-block; margin: 0 0 4px; padding: 4px 12px; border-radius: 999px; background: #fff; color: #1F8A91; font-family: Poppins, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.ap-crumb { font-family: Poppins, sans-serif; font-size: 14px; line-height: 1.5; color: #555; text-align: center; }
.ap-crumb a { color: #17757B; text-decoration: none; }
.ap-crumb a:hover, .ap-crumb a:focus { text-decoration: underline; }
.ap-crumb span[aria-hidden] { margin: 0 6px; color: #888; }
.ap-meta { margin: 14px 0 0; font-family: Poppins, sans-serif; font-size: 14px; color: #444; text-align: center; }

/* Featured image */
.adinath-post-media img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #F3FAFA; border-radius: 12px; }

/* Article text */
.adinath-post { font-family: Poppins, sans-serif; font-size: 17px; line-height: 1.8; color: #2A3536; }
.adinath-post p, .adinath-post li { font-family: Poppins, sans-serif; font-size: 17px; line-height: 1.8; color: #2A3536; }
.adinath-post p { margin: 0 0 1.2em; text-align: left; }
.adinath-post h2, .adinath-post h3, .adinath-post h4, .adinath-post h5 { font-family: Poppins, sans-serif !important; color: #1D2B2C !important; font-weight: 600 !important; text-transform: none; scroll-margin-top: 30px; }
.adinath-post h2 { margin: 2em 0 .7em !important; font-size: 28px !important; line-height: 1.3 !important; }
.adinath-post h3 { margin: 1.6em 0 .6em !important; font-size: 21px !important; line-height: 1.4 !important; }
.adinath-post h4, .adinath-post h5 { margin: 1.4em 0 .5em !important; font-size: 18px !important; line-height: 1.4 !important; }
.adinath-post .elementor-widget-container > *:first-child, .adinath-post > *:first-child { margin-top: 0 !important; }
.adinath-post a { color: #17757B; text-decoration: underline !important; text-underline-offset: 2px; }
.adinath-post a:hover { color: #0F2A47; }
.adinath-post ul, .adinath-post ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.adinath-post li { margin: 0 0 .45em; }
.adinath-post img { display: block; max-width: 100%; height: auto; margin: 1.6em auto; border-radius: 8px; }
.adinath-post img.alignleft { float: left; margin: 6px 22px 12px 0; }
.adinath-post img.alignright { float: right; margin: 6px 0 12px 22px; }
.adinath-post iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 1.6em 0; border: 0; border-radius: 12px; }
.ap-table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid #E1EEEF; border-radius: 10px; -webkit-overflow-scrolling: touch; }
.adinath-post table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.adinath-post th, .adinath-post td { padding: 11px 14px; border: 0; border-bottom: 1px solid #E1EEEF; text-align: left; vertical-align: top; font-size: 15px; }
.adinath-post th, .adinath-post tr:first-child td { background: #DEF3F4; color: #1D2B2C; font-weight: 600; }
.adinath-post tbody tr:nth-child(even) td { background: #FAFDFD; }

/* Contents list */
.ap-toc { font-family: Poppins, sans-serif; }
.ap-toc ol { margin: 0; padding: 0; list-style: none; }
.ap-toc > ol { counter-reset: ap-toc; }
.ap-toc > ol > li { counter-increment: ap-toc; margin: 0 0 2px; }
.ap-toc li { margin: 0; }
.ap-toc a { position: relative; display: block; border-radius: 8px; text-decoration: none; transition: background-color .15s, color .15s; }
.ap-toc > ol > li > a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: 7px 10px; font-size: 14px; line-height: 1.45; font-weight: 500; color: #2E3E3F; }
.ap-toc > ol > li > a::before { content: counter(ap-toc, decimal-leading-zero); padding-top: 1px; font-size: 12px; font-weight: 600; color: #1F8A91; font-variant-numeric: tabular-nums; }
.ap-toc ol ol { margin: 0 0 4px; }
.ap-toc ol ol a { padding: 5px 10px 5px 40px; font-size: 13px; line-height: 1.45; color: #5A6B6C; }
.ap-toc ol ol a::before { content: ''; position: absolute; left: 29px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #BFE3E6; transition: background-color .15s; }
.ap-toc a:hover, .ap-toc a:focus-visible { background: #F3FAFA; color: #1F8A91; }
.ap-toc a.is-current, .ap-toc a.is-parent { color: #176E74; background: #E3F5F6; }
.ap-toc > ol > li > a.is-current, .ap-toc > ol > li > a.is-parent { font-weight: 600; }
.ap-toc ol ol a.is-current { background: transparent; font-weight: 600; }
.ap-toc ol ol a.is-current::before { background: #1F8A91; }
.ap-toc--inline { display: none; margin: 0 0 28px; border: 1px solid #E1EEEF; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(16, 72, 76, .06); overflow: hidden; }
.ap-toc--inline summary { position: relative; padding: 15px 52px 15px 18px; background: #F3FAFA; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #17757B; }
.ap-toc--inline summary::-webkit-details-marker { display: none; }
.ap-toc--inline summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid #17757B; border-bottom: 2px solid #17757B; transform: rotate(45deg); transition: transform .2s; }
.ap-toc--inline[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.ap-toc--inline > ol { padding: 10px 8px 12px; }
.ap-toc--side { padding: 20px 12px 14px; border: 1px solid #E1EEEF; border-radius: 14px; background: #fff; box-shadow: 0 2px 10px rgba(16, 72, 76, .06); }
.ap-toc--side > ol { max-height: calc(100vh - 340px); min-height: 120px; overflow: auto; scrollbar-width: thin; scrollbar-color: #BFE3E6 transparent; }
.ap-toc__title { margin: 0 10px 10px !important; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #17757B; }
.ap-toc__progress { height: 3px; margin: 0 10px 12px; border-radius: 3px; background: #E8F4F5; overflow: hidden; }
.ap-toc__progress span { display: block; width: 0; height: 100%; border-radius: 3px; background: #3CC1C9; transition: width .1s linear; }
.adinath-post-aside { position: sticky !important; top: 24px; align-self: flex-start; }

/* Machine category chips */
.ap-chips { margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid #E1EEEF; font-family: Poppins, sans-serif; }
.ap-chips p { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #1D2B2C; }
.ap-chips ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-chips a { display: inline-block; padding: 7px 14px; border: 1px solid #CFE6E8; border-radius: 999px; background: #fff; color: #1D2B2C; font-size: 14px; line-height: 1.3; text-decoration: none; transition: background .15s, border-color .15s; }
.ap-chips a:hover, .ap-chips a:focus { border-color: #3CC1C9; background: #F3FAFA; }

/* Related machines */
.ap-machines { margin-top: 40px; padding: 56px 20px; background: #F3FAFA; font-family: Poppins, sans-serif; }
.ap-machines__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.ap-eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #17757B; }
.ap-machines h2 { margin: 0 0 28px; font-family: Poppins, sans-serif; font-size: 30px; line-height: 1.3; font-weight: 700; color: #1D2B2C; }
.ap-machines__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; text-align: left; }
.ap-machine { display: flex; flex-direction: column; width: calc(25% - 17px); background: #fff; border: 1px solid #E1EEEF; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 10px rgba(16, 72, 76, .06); transition: transform .2s, box-shadow .2s; }
.ap-machine:hover, .ap-machine:focus { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 72, 76, .12); }
.ap-machine__img { display: block; aspect-ratio: 4 / 3; padding: 10px; background: #fff; }
.ap-machine__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ap-machine__name { display: block; padding: 12px 16px 16px; border-top: 1px solid #EEF5F5; font-size: 15px; line-height: 1.4; font-weight: 600; color: #1D2B2C; text-align: center; }

/* Related articles */
.ap-articles { max-width: 1200px; margin: 0 auto; padding: 44px 20px 8px; font-family: Poppins, sans-serif; }
.ap-articles > h2 { margin: 0 0 22px; font-family: Poppins, sans-serif; font-size: 26px; line-height: 1.3; font-weight: 600; color: #1D2B2C; }
.ap-articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ap-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E1EEEF; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(16, 72, 76, .06); transition: transform .2s, box-shadow .2s; }
.ap-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 72, 76, .12); }
.ap-card__media { display: block; aspect-ratio: 16 / 10; background: #F3FAFA; overflow: hidden; }
.ap-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ap-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ap-card__cat { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #17757B; }
.ap-card h3 { margin: 0 0 10px; font-family: Poppins, sans-serif; font-size: 18px; line-height: 1.4; font-weight: 600; }
.ap-card h3 a { color: #1D2B2C; text-decoration: none; }
.ap-card h3 a:hover, .ap-card h3 a:focus { color: #17757B; }
.ap-card p { margin: auto 0 0; font-size: 13px; color: #666; }

/* Enquiry band */
.ap-enquiry { margin-top: 44px; background: #17757B; color: #fff; font-family: Poppins, sans-serif; }
.ap-enquiry__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.ap-enquiry h2 { margin: 0 0 6px; font-family: Poppins, sans-serif; font-size: 22px; line-height: 1.35; font-weight: 600; color: #fff; }
.ap-enquiry p { margin: 0; font-size: 14px; line-height: 1.7; color: #E6F7F8; }
.ap-enquiry__btn { flex: none; display: inline-block; padding: 13px 28px; border-radius: 999px; background: #fff; color: #17757B !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.ap-enquiry__btn:hover, .ap-enquiry__btn:focus { background: #DEF3F4; }

@media (max-width: 1024px) {
    .ap-toc--inline { display: block; }
    .ap-machine { width: calc(50% - 11px); }
    .ap-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ap-crumb { font-size: 13px; }
    .adinath-post, .adinath-post p, .adinath-post li { font-size: 16px; line-height: 1.75; }
    .adinath-post h2 { font-size: 23px !important; }
    .adinath-post h3 { font-size: 19px !important; }
    .adinath-post img.alignleft, .adinath-post img.alignright { float: none; margin: 20px auto; }
    .ap-machines { padding: 40px 16px; }
    .ap-machines h2 { font-size: 24px; }
    .ap-machines__grid { gap: 14px; }
    .ap-machine { width: calc(50% - 7px); }
    .ap-articles { padding: 36px 16px 8px; }
    .ap-articles > h2 { font-size: 22px; }
    .ap-articles__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ap-enquiry__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 30px 16px; }
    .ap-enquiry h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-card, .ap-machine, .ap-toc a, .ap-toc__progress span { transition: none; }
    .ap-card:hover, .ap-machine:hover { transform: none; }
}
