/* =========================================================
   Image Search Techniques — Full Guide
   Mobile-first stylesheet. Namespaced under .isrg- to avoid
   clashing with theme / Elementor / other plugin styles.
   ========================================================= */

.isrg-wrap {
    --isrg-navy: #0f172a;
    --isrg-muted: #64748b;
    --isrg-blue: #2563eb;
    --isrg-blue-dark: #1d4ed8;
    --isrg-green: #0f766e;
    --isrg-purple: #7c3aed;
    --isrg-orange: #d97706;
    --isrg-red: #dc2626;
    --isrg-border: #e2e8f0;
    --isrg-bg-soft: #f8fafc;
    --isrg-bg-soft2: #f1f5f9;

    max-width: 820px;
    margin: 0 auto;
    padding: 8px 18px 32px;
    font-family: inherit;
    color: #1e293b;
    line-height: 1.65;
    font-size: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.isrg-wrap * { box-sizing: border-box; }

.isrg-wrap img { max-width: 100%; height: auto; }

/* ---------- Headings ---------- */
.isrg-wrap h2 {
    font-size: clamp(21px, 4.6vw, 27px);
    font-weight: 800;
    color: var(--isrg-navy);
    margin: 44px 0 14px;
    line-height: 1.28;
    scroll-margin-top: 90px;
}

.isrg-wrap h2:first-of-type { margin-top: 8px; }

.isrg-wrap h3 {
    font-size: clamp(17px, 3.8vw, 20px);
    font-weight: 700;
    color: var(--isrg-navy);
    margin: 28px 0 10px;
    scroll-margin-top: 90px;
}

.isrg-wrap h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--isrg-navy);
    margin: 18px 0 6px;
}

.isrg-wrap p { margin: 0 0 14px; }

.isrg-wrap ul, .isrg-wrap ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.isrg-wrap li { margin-bottom: 7px; }

.isrg-wrap a {
    color: var(--isrg-blue);
    text-decoration: underline;
    text-decoration-color: rgba(37,99,235,0.35);
    text-underline-offset: 2px;
}

.isrg-wrap a:hover { text-decoration-color: currentColor; }

/* Small inline source/reference links */
.isrg-ref {
    font-size: 12.5px;
    color: var(--isrg-muted) !important;
    text-decoration: underline dotted !important;
    white-space: nowrap;
}

/* ---------- Eyebrow / kicker over headings ---------- */
.isrg-kicker {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--isrg-blue);
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* ---------- Byline ---------- */
.isrg-byline {
    font-size: 13.5px;
    color: var(--isrg-muted);
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--isrg-border);
}

.isrg-byline a { color: var(--isrg-muted); text-decoration-color: rgba(100,116,139,0.4); }

/* ---------- Quick answer callout ---------- */
.isrg-quick-answer {
    background: var(--isrg-bg-soft);
    border: 1px solid var(--isrg-border);
    border-left: 4px solid var(--isrg-blue);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 10px;
}

.isrg-quick-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA button / box ---------- */
.isrg-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 22px 0 30px;
}

.isrg-cta p {
    margin: 0;
    font-weight: 600;
    color: var(--isrg-navy);
    font-size: 14.5px;
    flex: 1 1 220px;
}

.isrg-cta-btn {
    display: inline-block;
    flex: 0 0 auto;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--isrg-blue), var(--isrg-blue-dark));
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
}

.isrg-cta-btn:hover { opacity: 0.92; }

/* ---------- Table of contents ---------- */
.isrg-toc {
    background: #fff;
    border: 1px solid var(--isrg-border);
    border-radius: 14px;
    margin: 22px 0 34px;
    overflow: hidden;
}

.isrg-toc summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--isrg-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--isrg-bg-soft);
}

.isrg-toc summary::-webkit-details-marker { display: none; }

.isrg-toc summary:after {
    content: "▾";
    color: var(--isrg-muted);
    transition: transform 0.2s;
}

.isrg-toc[open] summary:after { transform: rotate(180deg); }

.isrg-toc-list {
    columns: 1;
    padding: 14px 18px 18px;
    margin: 0;
    list-style: none;
}

@media (min-width: 560px) {
    .isrg-toc-list { columns: 2; column-gap: 20px; }
}

.isrg-toc-list li {
    font-size: 13.5px;
    margin-bottom: 8px;
    break-inside: avoid;
}

.isrg-toc-list a { text-decoration: none; color: #334155; }
.isrg-toc-list a:hover { color: var(--isrg-blue); }
.isrg-toc-list a:before { content: "→ "; color: var(--isrg-blue); }

/* ---------- Section subtitle (used above visual components) ---------- */
.isrg-subtitle {
    color: var(--isrg-muted);
    font-size: 14.5px;
    margin: -6px 0 18px;
}

/* ============================================================
   VISUAL COMPONENT: 5 technique cards (replaces Figure 1)
   ============================================================ */
.isrg-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 26px;
}

@media (min-width: 620px) {
    .isrg-card-grid { grid-template-columns: 1fr 1fr; }
}

.isrg-card {
    background: var(--isrg-bg-soft);
    border: 1px solid var(--isrg-border);
    border-left: 4px solid var(--c, var(--isrg-blue));
    border-radius: 12px;
    padding: 16px 18px;
}

.isrg-card h4 { margin: 0 0 4px; font-size: 16px; }

.isrg-card .isrg-card-tag {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--c, var(--isrg-blue));
    display: block;
    margin-bottom: 6px;
}

.isrg-card p {
    font-size: 13.5px;
    margin: 0 0 6px;
    color: #334155;
}

.isrg-card .isrg-card-best {
    font-size: 12.5px;
    color: var(--isrg-muted);
    margin: 0;
}

.isrg-c-blue   { --c: var(--isrg-blue); }
.isrg-c-green  { --c: var(--isrg-green); }
.isrg-c-purple { --c: var(--isrg-purple); }
.isrg-c-orange { --c: var(--isrg-orange); }
.isrg-c-red    { --c: var(--isrg-red); }

/* ============================================================
   VISUAL COMPONENT: numbered stage steps (replaces Figure 2)
   ============================================================ */
.isrg-stage-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 16px;
}

@media (min-width: 700px) {
    .isrg-stage-row { grid-template-columns: repeat(5, 1fr); }
}

.isrg-stage {
    background: #fff;
    border: 1px solid var(--isrg-border);
    border-radius: 12px;
    padding: 14px 14px 16px;
}

.isrg-stage-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c, var(--isrg-blue));
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.isrg-stage h4 { margin: 0 0 5px; font-size: 13.5px; letter-spacing: 0.02em; text-transform: uppercase; }
.isrg-stage p { font-size: 13px; margin: 0; color: #475569; }

.isrg-keyidea {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: #134e4a;
    margin: 0 0 26px;
}

.isrg-keyidea strong { color: var(--isrg-green); }

/* ============================================================
   VISUAL COMPONENT: responsive table wrapper (replaces the
   table figures + keeps every body-copy table usable on phones)
   ============================================================ */
.isrg-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 26px;
    border: 1px solid var(--isrg-border);
    border-radius: 12px;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.isrg-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.isrg-table th {
    background: var(--isrg-navy);
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-weight: 700;
    white-space: nowrap;
}

.isrg-table td {
    padding: 11px 14px;
    border-top: 1px solid var(--isrg-border);
    vertical-align: top;
}

.isrg-table tr:nth-child(even) td { background: var(--isrg-bg-soft); }

.isrg-table td strong { color: var(--isrg-navy); }

.isrg-scroll-hint {
    font-size: 11.5px;
    color: var(--isrg-muted);
    text-align: right;
    margin: -18px 0 22px;
    display: none;
}

@media (max-width: 640px) {
    .isrg-scroll-hint { display: block; }
}

/* ============================================================
   VISUAL COMPONENT: callout labels used inside components
   ============================================================ */
.isrg-callout {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    margin: 4px 0 26px;
}

.isrg-callout strong { display: block; margin-bottom: 3px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }

.isrg-callout.isrg-c-blue   { background: #eff6ff; color: #1e3a5f; border: 1px solid #dbeafe; }
.isrg-callout.isrg-c-blue strong { color: var(--isrg-blue); }
.isrg-callout.isrg-c-red    { background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.isrg-callout.isrg-c-red strong  { color: var(--isrg-red); }

/* ============================================================
   VISUAL COMPONENT: decision tree (replaces Figure 4)
   ============================================================ */
.isrg-tree {
    margin: 0 0 6px;
}

.isrg-tree-root {
    background: var(--isrg-navy);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 12px;
    margin: 0 0 14px;
}

.isrg-tree-branches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .isrg-tree-branches { grid-template-columns: repeat(3, 1fr); }
}

.isrg-branch {
    background: var(--isrg-bg-soft);
    border: 1px solid var(--isrg-border);
    border-radius: 12px;
    padding: 15px 16px;
}

.isrg-branch h4 { margin: 0 0 6px; font-size: 14.5px; }

.isrg-branch .isrg-branch-tag {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--isrg-blue);
    margin-bottom: 6px;
}

.isrg-branch p { font-size: 12.5px; color: var(--isrg-muted); margin: 0; }

/* ============================================================
   VISUAL COMPONENT: numbered vertical workflow (replaces Fig 5)
   ============================================================ */
.isrg-workflow {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    counter-reset: isrg-step;
}

.isrg-workflow li {
    counter-increment: isrg-step;
    position: relative;
    padding: 2px 0 18px 42px;
    margin: 0;
    border-left: 2px solid var(--isrg-border);
}

.isrg-workflow li:last-child { border-left-color: transparent; padding-bottom: 0; }

.isrg-workflow li:before {
    content: counter(isrg-step);
    position: absolute;
    left: -17px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--isrg-blue);
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isrg-workflow h4 { margin: 0 0 3px; font-size: 14.5px; }
.isrg-workflow p { margin: 0; font-size: 13px; color: #475569; }

/* ============================================================
   VISUAL COMPONENT: verification stack (replaces Figure 6)
   ============================================================ */
.isrg-stack { margin: 0 0 4px; }

.isrg-pass {
    border: 1.5px solid var(--c, var(--isrg-blue));
    background: var(--isrg-bg-soft);
    border-radius: 12px;
    padding: 13px 16px;
    margin: 0 0 10px;
}

.isrg-pass:nth-child(2) { margin-left: 4%; }
.isrg-pass:nth-child(3) { margin-left: 8%; }
.isrg-pass:nth-child(4) { margin-left: 12%; }

@media (max-width: 480px) {
    .isrg-pass:nth-child(2),
    .isrg-pass:nth-child(3),
    .isrg-pass:nth-child(4) { margin-left: 0; }
}

.isrg-pass-label {
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--c, var(--isrg-blue));
    display: block;
    margin-bottom: 3px;
}

.isrg-pass h4 { margin: 0 0 3px; font-size: 15px; }
.isrg-pass p { margin: 0; font-size: 13px; color: #475569; }

/* ============================================================
   VISUAL COMPONENT: SEO checklist grid (replaces Figure 7)
   ============================================================ */
.isrg-check-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 26px;
}

@media (min-width: 620px) {
    .isrg-check-grid { grid-template-columns: 1fr 1fr; }
}

.isrg-check-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--isrg-border);
    border-radius: 12px;
    padding: 13px 15px;
}

.isrg-check-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.isrg-check-item h4 { margin: 0 0 3px; font-size: 14px; }
.isrg-check-item p { margin: 0; font-size: 12.5px; color: var(--isrg-muted); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.isrg-faq { margin: 0 0 12px; }

.isrg-faq-item {
    border: 1px solid var(--isrg-border);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.isrg-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 44px 15px 16px;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--isrg-navy);
    position: relative;
}

.isrg-faq-item summary::-webkit-details-marker { display: none; }

.isrg-faq-item summary:after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--isrg-blue);
    font-weight: 400;
    transition: transform 0.2s;
}

.isrg-faq-item[open] summary:after { transform: translateY(-50%) rotate(45deg); }

.isrg-faq-item .isrg-faq-a {
    padding: 0 16px 16px;
    font-size: 13.5px;
    color: #475569;
}

.isrg-faq-item .isrg-faq-a p:last-child { margin-bottom: 0; }

/* ---------- internal-link box ---------- */
.isrg-inline-links {
    background: var(--isrg-bg-soft2);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    margin: 0 0 22px;
}

/* ---------- hr ---------- */
.isrg-wrap hr {
    border: none;
    border-top: 1px solid var(--isrg-border);
    margin: 34px 0;
}

/* ---------- Mobile tightening ---------- */
@media (max-width: 480px) {
    .isrg-wrap { padding: 6px 14px 26px; font-size: 15px; }
    .isrg-quick-answer, .isrg-cta { padding: 14px 15px; }
    .isrg-table th, .isrg-table td { padding: 9px 11px; font-size: 12.5px; }
    .isrg-stage-num { width: 26px; height: 26px; }
}
