/* ============================================================
   ISOFLEX — modern template (Cassiopeia child)
   ============================================================ */

:root {
    --brand: #3f96e5;
    --brand-dark: #3381c5;
    --brand-light: #eaf3fc;
    --ink: #2b2f36;
    --ink-soft: #4d5055;
    --muted: #7a818b;
    --line: #e4e7ec;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
    --shadow-lg: 0 10px 30px rgba(16,24,40,.10);
    --maxw: 1200px;
    --head: 'Open Sans', Arial, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.site {
    margin: 0;
    font-family: var(--body);
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .if-nav { font-family: var(--head); color: var(--ink); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 .6em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
a { color: var(--brand-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }

.if-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 5px; z-index: 1000; }

/* ---------- Header ---------- */
.if-header { background: #fff; border-bottom: 1px solid var(--line); }
.if-header.is-sticky { position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow); }

.if-topbar { background: var(--ink); color: #cfd6df; font-size: .82rem; }
.if-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.if-topbar a { color: #cfd6df; }
.if-topbar a:hover { color: #fff; }
.if-topbar__right { display: flex; align-items: center; gap: 18px; }

.if-header__inner { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.if-logo { flex: 0 0 auto; }
.if-logo img { display: block; }
.if-logo p { margin: 0; }
.if-nav { margin-left: auto; }

/* Menu */
.if-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.if-nav ul ul { display: none; }
.if-nav li { position: relative; }
.if-nav a, .if-nav .nav-header, .if-nav span {
    display: block; padding: 12px 14px; color: var(--ink); font-size: .95rem;
    font-family: var(--body); font-weight: 600; letter-spacing: .1px; border-radius: 5px; text-transform: uppercase;
}
.if-nav > ul > li > a:hover, .if-nav > ul > li.active > a, .if-nav > ul > li.current > a {
    color: var(--brand-dark); background: var(--brand-light);
}
/* Top-level dropdown is the positioned container */
.if-nav > ul > li > ul {
    position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0;
    background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    border-radius: 7px; padding: 8px; z-index: 50;
}
/* Hovering a top-level item reveals its ENTIRE subtree at once (no nested flyouts) */
.if-nav > ul > li:hover > ul,
.if-nav > ul > li:focus-within > ul { display: block; }
/* deeper levels render inline (static), indented — always visible while the dropdown is open */
.if-nav > ul > li > ul ul {
    display: block; position: static; box-shadow: none; border: 0;
    min-width: 0; margin: 0; padding-left: 14px;
}
.if-nav ul ul a, .if-nav ul ul span { text-transform: none; font-weight: 400; padding: 7px 12px; font-size: .9rem; }
.if-nav ul ul a:hover { background: var(--bg-soft); }
/* parent headings inside the dropdown (Radioisotopes / Specialties / Nuclear) */
.if-nav > ul > li > ul > li > a, .if-nav > ul > li > ul > li > span { font-weight: 600; }

.if-nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.if-nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

.if-headerbar { background: var(--bg-soft); border-top: 1px solid var(--line); }
.if-headerbar .if-container { padding-top: 8px; padding-bottom: 8px; }

/* ---------- Hero ---------- */
.if-hero { position: relative; background: var(--bg-soft); }
.if-hero img { width: 100%; display: block; }

/* ---------- Breadcrumbs ---------- */
.if-breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .86rem; }
.if-breadcrumbs .if-container { padding-top: 10px; padding-bottom: 10px; }
.if-breadcrumbs ol, .if-breadcrumbs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.if-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 8px; color: var(--muted); }
/* trail left, search right */
.if-breadcrumbs__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.if-breadcrumbs__trail { min-width: 0; }
.if-breadcrumbs__search { flex: 0 0 auto; margin-left: auto; }
.if-breadcrumbs__search form { margin: 0; }
/* magnifying-glass icon button overlaid inside the input's right edge */
.if-breadcrumbs__search .mod-finder__search { position: relative; display: block; width: 210px; max-width: 46vw; }
.if-breadcrumbs__search .awesomplete { display: block; width: 100%; }
.if-breadcrumbs__search input[type="search"], .if-breadcrumbs__search input.form-control {
    width: 100%; margin: 0; padding: 3px 32px 3px 11px; font-size: .85rem; line-height: 1.4;
}
.if-breadcrumbs__search button[type="submit"], .if-breadcrumbs__search .mod-finder__search > .btn {
    position: absolute; right: 1px; top: 1px; bottom: 1px; width: 34px;
    margin: 0; padding: 0; border: 0; background: transparent; color: var(--muted);
    cursor: pointer; font-size: 0; line-height: 1; border-radius: 0 5px 5px 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
}
.if-breadcrumbs__search button[type="submit"]::before, .if-breadcrumbs__search .mod-finder__search > .btn::before {
    content: "\f002"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85rem;
}
.if-breadcrumbs__search button[type="submit"]:hover, .if-breadcrumbs__search .mod-finder__search > .btn:hover { color: var(--brand); }
.if-breadcrumbs__search .awesomplete > ul { z-index: 60; }

/* ---------- Main layout ---------- */
.if-main { padding: 40px 0 56px; }
.if-layout--sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.if-content { min-width: 0; }

.if-strip { padding: 28px 0; }
.if-strip.if-top { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.if-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ---------- Cards (sidebar + strips) ---------- */
.if-sidebar { display: flex; flex-direction: column; gap: 22px; }
.card, .moduletable {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.card-body, .moduletable { padding: 20px; }
.card .card-body { padding: 20px; }
.card-header, .moduletable > h3, .moduletable > .module-title, .card > h3 {
    font-family: var(--head); font-size: 1.05rem; margin: 0 0 14px; padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-light); color: var(--ink); text-transform: uppercase; letter-spacing: .3px;
}
.if-sidebar img { border-radius: 5px; }

/* ---------- Buttons & forms ---------- */
.btn, button.btn, .button, input[type="submit"] {
    display: inline-block; background: var(--brand); color: #fff; border: 0; cursor: pointer;
    padding: 11px 20px; border-radius: 5px; font-weight: 600; font-family: var(--body);
    transition: background .15s, transform .05s;
}
.btn:hover, button.btn:hover, .button:hover, input[type="submit"]:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }

input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"],
select, textarea {
    width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 5px; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }

/* List filter bar (tags / category search tools) — input + buttons inline with spacing */
.com-tags-tags__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.com-tags-tags__filter .inputbox,
.com-tags-tags__filter input[type="text"],
.com-tags-tags__filter input[type="search"] { flex: 1 1 220px; width: auto; margin: 0; }
.com-tags-tags__filter .btn, .com-tags-tags__filter .btn-group { margin: 0; }
.com-tags .btn-group.float-end, .com-tags-tags .btn-group.float-end { margin: 0 0 16px; }
.com-tags select.form-select { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.if-footer { background: var(--ink); color: #aeb6c1; padding: 36px 0; margin-top: 0; font-size: .92rem; }
.if-footer a { color: #d6dde6; }
.if-footer a:hover { color: #fff; }
.if-footer p { margin: .3em 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .if-layout--sidebar { grid-template-columns: 1fr; }
    .if-nav-toggle { display: block; }
    .if-nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff;
        transform: translateX(100%); transition: transform .25s; z-index: 300; padding: 80px 18px 24px;
        box-shadow: var(--shadow-lg); overflow-y: auto; margin: 0; }
    body.if-nav-open .if-nav { transform: translateX(0); }
    .if-nav ul { flex-direction: column; gap: 2px; }
    .if-nav > ul > li > ul, .if-nav ul ul {
        position: static; display: block; box-shadow: none; border: 0;
        min-width: 0; margin: 0; padding-left: 12px; background: transparent;
    }
    .if-header__inner { min-height: 70px; }
}
@media (max-width: 600px) {
    h1 { font-size: 1.7rem; }
    .if-main { padding: 26px 0 36px; }
    .if-container { padding: 0 16px; }
}

/* ===== Review round 1 — refinements ===== */
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* hover dropdowns: hide the redundant submenu toggle button on desktop */
.if-nav .mod-menu__toggle-sub { display: none; }
/* article tag pills — not shown on the original site */
.tags.list-inline, .com-content-article__tags, .article-tags { display: none; }
/* card title must clear the rounded corner */
.card > .card-header, h3.card-header { padding: 16px 20px 12px; margin: 0 0 14px; }
.card > .card-body { padding: 0 20px 20px; }
/* Follow Us social icons */
.if-sidebar a [class*="fa-"] { font-size: 1.7rem; margin: 0 6px; color: var(--brand-dark); }

/* homepage slideshow now sits at the top of the content column */
.if-innertop { margin: 0 0 28px; }
.if-innertop .if-slideshow { margin: 0; max-width: 100%; }

/* ===== vquote quote form layout ===== */
.form-quote { max-width: 860px; }
.form-quote .page-title { margin-bottom: 22px; }
/* contact section: stable 2-up grid (label | field | label | field) */
.form-quote > form > .block {
    display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 12px 16px; align-items: center; margin-bottom: 14px;
}
.form-quote .block > label { text-align: right; font-weight: 600; color: var(--ink-soft); margin: 0; width: auto !important; }
.form-quote .block > input,
.form-quote .block > select,
.form-quote .block > textarea,
.form-quote .block > .chosen-container { width: 100% !important; min-width: 0; margin: 0; }
.form-quote .block > input[type="checkbox"] { width: 18px !important; justify-self: start; }
.form-quote .block > textarea { grid-column: 2 / -1; min-height: 90px; }
/* center the captcha widget + submit button across the form */
.form-quote > form > .if-captcha,
.form-quote > form > .block:has(> button[type="submit"]) { grid-template-columns: 1fr; justify-items: center; }
.form-quote > form > .if-captcha > label,
.form-quote > form > .block:has(> button[type="submit"]) > label { display: none; }
.form-quote .if-captcha > iframe { width: 320px; max-width: 100%; min-width: 302px; height: 90px; border: 0; }
.form-quote .clear { display: none; }
/* item rows: flexible (handles image + label + select + remove button) */
.form-quote .fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px 16px; margin: 18px 0; background: var(--bg-soft); }
.form-quote .fieldset legend { font-family: var(--head); font-weight: 600; font-size: 1.05rem; padding: 0 6px; }
.form-quote .fieldset .block { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.form-quote .fieldset .block > label { flex: 0 0 150px; text-align: right; line-height: 1.25; }
.form-quote .fieldset .block > select,
.form-quote .fieldset .block > input,
.form-quote .fieldset .block > textarea,
.form-quote .fieldset .block > .chosen-container { flex: 1 1 auto; width: auto !important; min-width: 0; }
.form-quote .fieldset .block > select.unit { flex: 0 0 110px; width: 110px !important; }
.form-quote .fieldset .block > .image { flex: 0 0 auto; }
.form-quote .fieldset .block > .image { flex: 0 0 auto; order: -1; }
.form-quote .fieldset .image img { max-height: 46px; width: auto; border-radius: 4px; }
.form-quote .fieldset .block > .remitem { flex: 0 0 auto; margin-left: auto; }
.form-quote .chosen-container { width: 100% !important; }
.form-quote .chosen-container .chosen-single { height: 40px; line-height: 38px; border-radius: 5px; border: 1px solid var(--line); background: #fff; box-shadow: none; padding: 4px 0 0 10px; }
.form-quote #iframeRecaptcha { border: 0; max-width: 320px; }
.form-quote .hidden, .form-quote .block.hidden { display: none !important; }
.form-quote .btn { margin-top: 2px; }
.form-quote .thank-quote { font-size: 1.1rem; padding: 16px 0; }
@media (max-width: 700px) {
    .form-quote > form > .block { grid-template-columns: 120px minmax(0, 1fr); }
    .form-quote > form > .block > textarea { grid-column: 1 / -1; }
}

/* ===== Article Prev/Next pagination ===== */
.pagenavigation { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pagenavigation .pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 0; }
.pagenavigation .previous { margin-right: auto; }
.pagenavigation .next { margin-left: auto; }
.pagenavigation .btn {
    padding: 7px 14px; font-size: .9rem; font-weight: 500;
    background: var(--bg-soft); color: var(--brand-dark); border: 1px solid var(--line);
}
.pagenavigation .btn:hover { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }

/* ===== List pagination (category / blog "More Articles") ===== */
.pagination__wrapper { display: block; }
ul.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; list-style: none; margin: 18px 0 6px; padding: 0; }
ul.pagination > li { margin: 0; }
ul.pagination .page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
    padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--brand-dark);
    background: #fff; font-size: .92rem; line-height: 1; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
ul.pagination .page-link:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand-dark); }
ul.pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
ul.pagination .disabled .page-link { color: var(--muted); background: var(--bg-soft); opacity: .55; cursor: default; }
.pagination-counter, .counter { display: block; text-align: center; color: var(--muted); font-size: .85rem; margin: 6px 0 0; }

/* category blog: hide empty Subcategories block; restore More Articles heading */
.com-content-category-blog__children { display: none; }
.com-content-blog__links-title { font-family: var(--head); font-size: 1.15rem; font-weight: 600; margin: 26px 0 8px; color: var(--ink); }
.com-content-blog__links { padding-left: 22px; margin: 0; }
.com-content-blog__links li { margin: 4px 0; }
