/* Fiber optic connectors guide: /solutions/fiber-optic-connectors-lc-sc-upc-apc
   Scoped under .fcg-page so it never leaks into other pages. Loaded after header.css. */

.fcg-page {
    --fcg-navy: #16306b;
    --fcg-blue: #2c5ad6;
    --fcg-blue-dark: #1f45a8;
    --fcg-blue-soft: #e8efff;
    --fcg-bg: #f5f8ff;
    --fcg-card: #ffffff;
    --fcg-line: #d9e3f5;
    --fcg-text: #1e293b;
    --fcg-muted: #4b5a70;
    --fcg-warn-bg: #fef3f2;
    --fcg-warn-line: #f4b4ae;
    --fcg-warn-text: #8a1c14;
    --fcg-ok-bg: #ecfdf3;
    --fcg-ok-line: #a6e3bf;
    --fcg-ok-text: #0b5d2e;
    --fcg-radius: 16px;
    background: var(--fcg-bg);
    color: var(--fcg-text);
    height: auto;
    line-height: 1.65;
    /* header.css sets overflow-x:hidden on body, which makes body a scroll container and breaks
       position:sticky (TOC and header). clip hides overflow without creating a scroll container. */
    overflow: visible;
    overflow-x: clip;
}

.fcg-page main,
.fcg-page .fcg-wrap { font-size: 1rem; }
.fcg-hero a,
.fcg-layout a { color: var(--fcg-blue-dark); }
.fcg-hero a:hover,
.fcg-layout a:hover { color: var(--fcg-navy); }
.fcg-hero img,
.fcg-layout img { max-width: 100%; height: auto; }
.fcg-page [id] { scroll-margin-top: calc(var(--site-header-h, 72px) + 18px); }
.fcg-hero :focus-visible,
.fcg-layout :focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 4px; }
.fcg-hero ul, .fcg-hero ol,
.fcg-layout ul, .fcg-layout ol { padding-left: 1.25rem; }
.fcg-hero p,
.fcg-layout p { margin: 0 0 0.9rem; }
.fcg-hero h1, .fcg-hero h2, .fcg-hero h3, .fcg-hero h4,
.fcg-layout h1, .fcg-layout h2, .fcg-layout h3, .fcg-layout h4 { color: var(--fcg-navy); line-height: 1.25; }
.fcg-page h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 0.9rem; font-weight: 700; }
.fcg-page h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; font-weight: 700; }
.fcg-page h4 { font-size: 1.02rem; margin: 0 0 0.35rem; font-weight: 700; }

.fcg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Hero ---------- */
.fcg-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--fcg-bg) 100%);
    border-bottom: 1px solid var(--fcg-line);
    padding: 28px 0 40px;
}
.fcg-hero-grid { display: grid; gap: 28px; align-items: center; }
.fcg-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fcg-blue-dark);
    background: var(--fcg-blue-soft);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.fcg-hero h1 { font-size: clamp(1.95rem, 5vw, 3.1rem); font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.fcg-lead { font-size: 1.1rem; color: var(--fcg-muted); max-width: 62ch; }
.fcg-byline { font-size: 0.86rem; color: var(--fcg-muted); margin-top: 6px; }
.fcg-concepts { list-style: none; padding: 0 !important; margin: 20px 0 22px; display: grid; gap: 10px; grid-template-columns: 1fr; }
.fcg-concepts li {
    background: var(--fcg-card);
    border: 1px solid var(--fcg-line);
    border-left: 4px solid var(--fcg-blue);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--fcg-muted);
}
.fcg-concepts strong { display: block; color: var(--fcg-navy); font-size: 1rem; }
.fcg-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 18px; }
.fcg-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--fcg-muted); }
.fcg-jump a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--fcg-line);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    font-weight: 500;
    min-height: 36px;
}
.fcg-jump a:hover { border-color: var(--fcg-blue); background: var(--fcg-blue-soft); }
.fcg-hero-figure { margin: 0; }
.fcg-hero-figure img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--fcg-line);
    box-shadow: 0 18px 40px rgba(22, 48, 107, 0.12);
    background: #fff;
}

/* ---------- Buttons ---------- */
.fcg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.fcg-page a.fcg-btn--primary { background: var(--fcg-blue); color: #fff; }
.fcg-page a.fcg-btn--primary:hover { background: var(--fcg-blue-dark); color: #fff; }
.fcg-page a.fcg-btn--secondary { background: #fff; color: var(--fcg-navy); border-color: var(--fcg-blue); }
.fcg-page a.fcg-btn--secondary:hover { background: var(--fcg-blue-soft); color: var(--fcg-navy); }
.fcg-page a.fcg-btn--whatsapp { background: #0f7a3d; color: #fff; }
.fcg-page a.fcg-btn--whatsapp:hover { background: #0b5f2f; color: #fff; }

/* ---------- Layout with TOC ---------- */
.fcg-layout { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 8px; }
.fcg-toc-wrap { min-width: 0; }
.fcg-toc {
    background: var(--fcg-card);
    border: 1px solid var(--fcg-line);
    border-radius: var(--fcg-radius);
    padding: 4px 16px 12px;
}
.fcg-toc summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--fcg-navy);
    padding: 12px 0;
    min-height: 44px;
}
.fcg-toc ol { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 2px; counter-reset: toc; }
.fcg-toc li { counter-increment: toc; }
.fcg-toc a {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--fcg-text);
    line-height: 1.35;
}
.fcg-toc a::before { content: counter(toc) "."; color: var(--fcg-muted); min-width: 1.5em; font-variant-numeric: tabular-nums; }
.fcg-toc a:hover { background: var(--fcg-blue-soft); }
.fcg-toc a[aria-current="true"] { background: var(--fcg-blue-soft); color: var(--fcg-navy); font-weight: 700; }

/* ---------- Sections ---------- */
.fcg-article { min-width: 0; }
.fcg-section { margin: 0 0 44px; }
.fcg-section > p:first-of-type { max-width: 75ch; }
.fcg-kicker { color: var(--fcg-muted); max-width: 75ch; }

.fcg-card {
    background: var(--fcg-card);
    border: 1px solid var(--fcg-line);
    border-radius: var(--fcg-radius);
    padding: 20px;
}
.fcg-card h3:first-child, .fcg-card h4:first-child { margin-top: 0; }
.fcg-grid { display: grid; gap: 14px; margin: 16px 0; }
.fcg-grid > *, .fcg-layout > *, .fcg-split > *, .fcg-hero-grid > *, .fcg-products > *,
.fcg-steps > *, .fcg-tree > *, .fcg-links > *, .fcg-concepts > * { min-width: 0; }
.fcg-grid--2, .fcg-grid--3, .fcg-grid--4 { grid-template-columns: 1fr; }
.fcg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--fcg-blue-soft);
    color: var(--fcg-blue-dark);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.fcg-card p:last-child { margin-bottom: 0; }
.fcg-card--tight { padding: 16px; }
.fcg-card .fcg-small { font-size: 0.92rem; color: var(--fcg-muted); }

.fcg-figure { margin: 18px 0; }
.fcg-figure img {
    width: 100%;
    border: 1px solid var(--fcg-line);
    border-radius: var(--fcg-radius);
    background: #fff;
    display: block;
}
.fcg-figure figcaption { font-size: 0.86rem; color: var(--fcg-muted); margin-top: 8px; }
/* Diagrams keep readable labels on phones: the image is wider than the screen and scrolls sideways. */
.fcg-figure-scroll { overflow-x: auto; border-radius: var(--fcg-radius); -webkit-overflow-scrolling: touch; }
.fcg-figure-scroll img { min-width: var(--fcg-min, 640px); }
/* Real photographs: never wider than their native size, centred in the column. */
.fcg-figure--photo { max-width: var(--fcg-max, 100%); margin-left: auto; margin-right: auto; }
.fcg-grid > .fcg-figure { margin: 0; }
.fcg-figure img { height: auto; }
/* Two photos side by side: the wide one gets more room. */
.fcg-pair { display: grid; gap: 16px; margin: 16px 0; align-items: start; grid-template-columns: minmax(0, 1fr); }
.fcg-pair > .fcg-figure { margin: 0; max-width: none; }
.fcg-pair > .fcg-figure--narrow { max-width: 300px; }
@media (min-width: 640px) { .fcg-pair { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .fcg-pair > .fcg-figure--narrow { max-width: none; } }
.fcg-split > .fcg-figure--photo { margin-left: 0; margin-right: 0; }
.fcg-figure-hint { display: none; font-size: 0.78rem; color: var(--fcg-muted); margin: 6px 0 0; }
@media (max-width: 679px) {
    .fcg-figure-hint { display: block; }
    .fcg-cta-row .fcg-btn { width: 100%; justify-content: center; text-align: center; }
}
@media (min-width: 680px) { .fcg-figure-scroll img { min-width: 0; } }

.fcg-split { display: grid; gap: 16px; align-items: start; margin: 16px 0; }
.fcg-split .fcg-figure { margin: 0; }

.fcg-list { margin: 0 0 1rem; display: grid; gap: 6px; }
.fcg-list li::marker { color: var(--fcg-blue); }
.fcg-pros li::marker { color: #0f7a3d; }
.fcg-cons li::marker { color: #b54708; }

.fcg-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 0 0 12px; }
.fcg-tags li {
    font-size: 0.82rem;
    background: var(--fcg-blue-soft);
    color: var(--fcg-navy);
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 500;
}

/* ---------- Callouts ---------- */
.fcg-callout {
    border: 1px solid var(--fcg-line);
    border-left-width: 5px;
    border-radius: 12px;
    background: #fff;
    padding: 14px 16px;
    margin: 18px 0;
}
.fcg-callout > :last-child { margin-bottom: 0; }
.fcg-callout--info { border-left-color: var(--fcg-blue); background: #f4f8ff; }
.fcg-callout--warn { border-color: var(--fcg-warn-line); border-left-color: #d92d20; background: var(--fcg-warn-bg); color: var(--fcg-warn-text); }
.fcg-callout--warn strong, .fcg-callout--warn h3, .fcg-callout--warn h4 { color: var(--fcg-warn-text); }
.fcg-callout--ok { border-color: var(--fcg-ok-line); border-left-color: #12b76a; background: var(--fcg-ok-bg); color: var(--fcg-ok-text); }
.fcg-callout--ok strong { color: var(--fcg-ok-text); }
.fcg-callout h3, .fcg-callout h4 { margin: 0 0 6px; font-size: 1.05rem; }

/* ---------- Tables ---------- */
.fcg-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--fcg-line);
    border-radius: var(--fcg-radius);
    background: #fff;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}
.fcg-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.fcg-table caption {
    text-align: left;
    font-weight: 700;
    color: var(--fcg-navy);
    padding: 12px 14px 6px;
    caption-side: top;
}
.fcg-table th, .fcg-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--fcg-line); }
.fcg-table thead th { background: var(--fcg-blue-soft); color: var(--fcg-navy); border-top: 0; font-weight: 700; }
.fcg-table tbody th { font-weight: 700; color: var(--fcg-navy); background: #fafcff; width: 24%; }
.fcg-table tbody tr:nth-child(even) td { background: #fbfdff; }
.fcg-scroll-hint { font-size: 0.8rem; color: var(--fcg-muted); margin: -8px 0 12px; }

.fcg-matrix { min-width: 600px; }
.fcg-matrix td { width: 38%; }
.fcg-matrix .fcg-combo { font-weight: 700; color: var(--fcg-navy); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fcg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.fcg-dot--upc { background: #1d6fdc; }
.fcg-dot--apc { background: #2e9e4f; }

/* ---------- Steps and decision tree ---------- */
.fcg-steps { list-style: none; padding: 0 !important; margin: 16px 0; display: grid; gap: 10px; counter-reset: step; }
.fcg-steps li {
    counter-increment: step;
    position: relative;
    background: #fff;
    border: 1px solid var(--fcg-line);
    border-radius: 12px;
    padding: 12px 14px 12px 56px;
    min-height: 54px;
}
.fcg-steps li::before {
    content: counter(step);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fcg-blue);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fcg-steps strong { color: var(--fcg-navy); }

.fcg-tree { list-style: none; padding: 0 !important; margin: 14px 0; display: grid; gap: 10px; }
.fcg-tree li {
    background: #fff;
    border: 1px solid var(--fcg-line);
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
}
.fcg-tree .fcg-if { font-weight: 700; color: var(--fcg-navy); }
.fcg-tree .fcg-then::before { content: "\2192\00a0"; color: var(--fcg-blue); font-weight: 700; }

/* ---------- Use case / mistake cards ---------- */
.fcg-use h3, .fcg-mistake h3 { font-size: 1.05rem; margin: 0 0 6px; }
.fcg-use .fcg-small, .fcg-mistake .fcg-small { margin: 0; }
.fcg-use .fcg-label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fcg-blue-dark); font-weight: 700; margin-bottom: 2px; }
.fcg-mistake { border-left: 4px solid #d92d20; }
.fcg-mistake .fcg-fix { color: var(--fcg-ok-text); margin-top: 6px; font-size: 0.92rem; }

/* ---------- Buy section & products ---------- */
.fcg-buy {
    background: linear-gradient(135deg, #16306b 0%, #2c5ad6 100%);
    color: #eaf1ff;
    border-radius: 22px;
    padding: 28px 22px;
}
.fcg-buy h2, .fcg-buy h3 { color: #fff; }
.fcg-buy p { color: #eaf1ff; max-width: 70ch; }
.fcg-buy .fcg-cta-row { margin-top: 16px; }
.fcg-page .fcg-buy a.fcg-btn--secondary { background: #fff; color: var(--fcg-navy); border-color: #fff; }
.fcg-page .fcg-buy a.fcg-btn--secondary:hover { background: #dfe9ff; }
.fcg-page .fcg-buy a.fcg-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); background: transparent; }
.fcg-page .fcg-buy a.fcg-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.fcg-buy-checklist { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.fcg-buy-checklist h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fcg-buy-checklist ul { margin: 0; display: grid; gap: 4px; }

.fcg-products { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0 4px; }
.fcg-product {
    background: #fff;
    color: var(--fcg-text);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.fcg-product img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f8fafc; }
.fcg-product-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fcg-product h3 { font-size: 1rem; margin: 0; color: var(--fcg-navy); }
.fcg-product .fcg-meta { font-size: 0.85rem; color: var(--fcg-muted); margin: 0; }
.fcg-product .fcg-price { font-weight: 700; color: var(--fcg-navy); margin: 0; }
.fcg-product .fcg-price s { color: #64748b; font-weight: 400; margin-left: 6px; }
.fcg-product .fcg-stock { font-size: 0.82rem; font-weight: 700; margin: 0; }
.fcg-product .fcg-stock--in { color: var(--fcg-ok-text); }
.fcg-product .fcg-stock--out { color: var(--fcg-warn-text); }
.fcg-product .fcg-btn { margin-top: auto; min-height: 42px; }
.fcg-page .fcg-product a.fcg-btn--secondary { background: #fff; color: var(--fcg-navy); border-color: var(--fcg-blue); }
.fcg-empty {
    background: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 18px;
}
.fcg-empty p { margin: 0; }

/* ---------- FAQ ---------- */
.fcg-faq { display: grid; gap: 10px; margin-top: 16px; }
.fcg-faq details { background: #fff; border: 1px solid var(--fcg-line); border-radius: 12px; }
.fcg-faq details[open] { border-color: var(--fcg-blue); }
.fcg-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 48px 14px 16px;
    font-weight: 700;
    color: var(--fcg-navy);
    position: relative;
    min-height: 48px;
    border-radius: 12px;
}
.fcg-faq summary::-webkit-details-marker { display: none; }
.fcg-faq summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    font-size: 1.3rem;
    color: var(--fcg-blue-dark);
    border: 1px solid var(--fcg-line);
    border-radius: 50%;
}
.fcg-faq details[open] summary::after { content: "\2212"; }
.fcg-faq .fcg-answer { padding: 0 16px 14px; max-width: 75ch; }
.fcg-faq .fcg-answer > :last-child { margin-bottom: 0; }

/* ---------- Related links ---------- */
.fcg-links { list-style: none; padding: 0 !important; margin: 16px 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.fcg-links a {
    display: block;
    background: #fff;
    border: 1px solid var(--fcg-line);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    min-height: 56px;
    color: var(--fcg-navy);
    font-weight: 700;
}
.fcg-links a span { display: block; font-weight: 400; color: var(--fcg-muted); font-size: 0.88rem; margin-top: 2px; }
.fcg-links a:hover { border-color: var(--fcg-blue); background: var(--fcg-blue-soft); }

.fcg-summary { background: #fff; border: 1px solid var(--fcg-line); border-radius: 22px; padding: 24px 20px; }
.fcg-summary .fcg-list { margin-bottom: 16px; }
.fcg-disclaimer { font-size: 0.84rem; color: var(--fcg-muted); margin: 18px 0 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
    .fcg-concepts { grid-template-columns: 1fr 1fr; }
    .fcg-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .fcg-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .fcg-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .fcg-products { grid-template-columns: repeat(2, 1fr); }
    .fcg-links { grid-template-columns: repeat(2, 1fr); }
    .fcg-toc ol { grid-template-columns: 1fr 1fr; }
    .fcg-steps--cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .fcg-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 36px; }
    .fcg-split { grid-template-columns: 1fr 1fr; }
    .fcg-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .fcg-grid--4 { grid-template-columns: repeat(4, 1fr); }
    .fcg-products { grid-template-columns: repeat(3, 1fr); }
    .fcg-links { grid-template-columns: repeat(3, 1fr); }
    .fcg-buy { padding: 36px 36px; }
    .fcg-tree li { grid-template-columns: 220px 1fr; align-items: baseline; }
}
@media (min-width: 1080px) {
    .fcg-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
    .fcg-toc-wrap { position: sticky; top: calc(var(--site-header-h, 72px) + 16px); align-self: start; max-height: calc(100vh - var(--site-header-h, 72px) - 32px); overflow-y: auto; }
    .fcg-toc ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .fcg-page * { transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.fcg-page) { scroll-behavior: smooth; }
}
