/* === Visa pages: shared styling for the visa-eligibility template === */
/* Prefix: gj- (this file is shared template: future visa pages can reuse) */

/* === Section background fix: kill the blue/white sandwich.
   Hero stays blue, everything below sits on a single light background. === */
.playbook-article-page .pc-section,
.playbook-article-page .pc-prose-section {
    background: #fff !important;
}
.playbook-article-page .pc-section + .pc-prose-section,
.playbook-article-page .pc-prose-section + .pc-prose-section {
    border-top: 1px solid var(--border-default);
}

/* === Hero title: cap width so the long visa name wraps cleanly === */
.pc-hero .pc-hero-title {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* Headline score */
.pc-result-block-primary .hsp-points-value {
    font-size: 56px !important;
    letter-spacing: -0.04em !important;
    line-height: 1 !important;
}
.pc-result-block-primary .hsp-points-value .lc-days-suffix {
    font-size: 18px;
    margin-left: 4px;
    color: var(--text-muted);
    font-weight: 700;
}
@media (max-width: 480px) {
    .pc-result-block-primary .hsp-points-value { font-size: 40px !important; }
}

/* Verdict badge */
.gj-verdict {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: var(--small);
    font-weight: 800;
    line-height: 1.2;
    border: 1px solid transparent;
}
.gj-verdict::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    flex-shrink: 0;
}
.gj-verdict[data-state="high"]     { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(0,154,68,.28); }
.gj-verdict[data-state="likely"]   { background: var(--blue);  color: #fff; box-shadow: 0 4px 14px rgba(0,113,235,.28); }
.gj-verdict[data-state="border"]   { background: #f5a623; color: #fff; box-shadow: 0 4px 14px rgba(245,166,35,.28); }
.gj-verdict[data-state="unlikely"] { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(235,0,58,.28); }

/* Findings list */
.gj-findings { margin-top: 14px; padding: 0; list-style: none; }
.gj-findings-title {
    margin: 0 0 8px;
    font-size: var(--extra-small);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.gj-finding {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    font-size: var(--small);
    line-height: 1.5;
    align-items: start;
}
.gj-finding[data-kind="pos"]  { background: rgba(0,154,68,.07);   border: 1px solid rgba(0,154,68,.25); }
.gj-finding[data-kind="warn"] { background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.30); }
.gj-finding[data-kind="neg"]  { background: rgba(235,0,58,.06);   border: 1px solid rgba(235,0,58,.25); }
.gj-finding-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    align-self: start;
}
.gj-finding[data-kind="pos"]  .gj-finding-tag { background: var(--green); color: #fff; }
.gj-finding[data-kind="warn"] .gj-finding-tag { background: #f5a623;       color: #fff; }
.gj-finding[data-kind="neg"]  .gj-finding-tag { background: var(--red);   color: #fff; }
.gj-finding-text { color: var(--text-main); font-weight: 600; }

/* Recommended actions */
.gj-actions {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(0,113,235,.04);
    border: 1px dashed rgba(0,113,235,.25);
    border-radius: 10px;
    list-style: none;
    font-size: var(--small);
    line-height: 1.6;
    color: var(--text-main);
}
.gj-actions::before {
    content: attr(data-title);
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 6px;
}
.gj-actions li { padding: 4px 0 4px 18px; position: relative; }
.gj-actions li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }


/* ===========================================================================
   Sticky section nav: prominent + centered
   =========================================================================== */
.gj-toc {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-default);
    padding: 14px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.gj-toc-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    justify-content: center;
    align-items: center;
}
.gj-toc-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all .15s ease;
    line-height: 1;
}
.gj-toc-link:hover {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,113,235,.28);
}


/* ===========================================================================
   Document checklist: stacked, paper-document feel, wider span
   =========================================================================== */
/* Break the docs section out of its prose-inner column for a wider page */
#documents .pc-prose-inner > .gj-docs-wrap {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.gj-docs-wrap { position: relative; margin-top: 18px; }
.gj-docs-actions {
    display: none;
    justify-content: flex-end;
    margin-bottom: 14px;
}
.gj-docs-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,113,235,.20);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.gj-docs-pdf:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,113,235,.28); }
.gj-docs-pdf:disabled { opacity: 0.6; cursor: progress; }
.gj-docs-pdf::before {
    content: '↓';
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

/* Stacked single-column documents (instead of side-by-side) */
.gj-docs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Each "paper" is a wide page-like sheet */
.gj-doc-paper {
    background: #fffefb;
    border: 1px solid #e8e3d8;
    border-radius: 4px;
    padding: 32px 40px 28px;
    box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
    position: relative;
    font-family: ui-serif, Georgia, "Times New Roman", serif;
}
.gj-doc-paper::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 32px;
    right: 32px;
    height: 6px;
    background: linear-gradient(180deg, rgba(0,113,235,.10), transparent);
    border-radius: 4px 4px 0 0;
}
.gj-doc-paper-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid #e8e3d8;
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.gj-doc-paper-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), #0058b8);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.gj-doc-paper-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
}
.gj-doc-paper-meta {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gj-doc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    columns: 2;
    column-gap: 32px;
}
@media (max-width: 720px) {
    .gj-doc-list { columns: 1; }
    .gj-doc-paper { padding: 24px 22px 22px; }
}
.gj-doc-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px dashed #e8e3d8;
    break-inside: avoid;
}
.gj-doc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--blue);
    border-radius: 3px;
    background: #fff;
}
.gj-doc-list li strong { color: var(--text-main); font-weight: 700; display: block; }
.gj-doc-list li small {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 400;
    font-style: italic;
}


/* ===========================================================================
   Timeline: extra-wide (breaks out of content width), gradient + icons
   =========================================================================== */
/* Section override to allow the timeline to span wider */
#timeline .pc-prose-inner {
    max-width: 1280px;
}

.gj-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 36px 0 8px;
    padding: 0;
}
/* Gradient progress rail behind the nodes */
.gj-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg,
        var(--blue) 0%,
        #00a8e8 35%,
        #00d4a0 70%,
        var(--green) 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,113,235,.20);
    z-index: 0;
}
@media (max-width: 720px) {
    .gj-timeline { grid-template-columns: 1fr; gap: 14px; }
    .gj-timeline::before { display: none; }
}

.gj-step-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
    padding: 0 12px;
}
@media (max-width: 720px) {
    .gj-step-v2 { flex-direction: row; align-items: flex-start; gap: 14px; text-align: left; padding: 12px; background: #fff; border: 1px solid var(--border-default); border-radius: 12px; }
}

.gj-step-node {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(0,113,235,.30), 0 0 0 4px #fff, 0 0 0 6px var(--blue);
    margin-bottom: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
    flex-shrink: 0;
}
.gj-step-node svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}
.gj-step-num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.gj-step-v2:hover .gj-step-node {
    transform: translateY(-3px) scale(1.05);
}
@media (max-width: 720px) {
    .gj-step-node { margin-bottom: 0; width: 52px; height: 52px; }
    .gj-step-node svg { width: 22px; height: 22px; }
    .gj-step-num { min-width: 18px; height: 18px; font-size: 10px; }
}

/* Per-step color progression. Each step shifts further toward green to
   convey completion. Background, ring, and shadow all share the hue. */
.gj-step-v2:nth-child(1) .gj-step-node { background: #0071eb; box-shadow: 0 8px 22px rgba(0,113,235,.30), 0 0 0 4px #fff, 0 0 0 6px #0071eb; }
.gj-step-v2:nth-child(2) .gj-step-node { background: #008cc8; box-shadow: 0 8px 22px rgba(0,140,200,.30), 0 0 0 4px #fff, 0 0 0 6px #008cc8; }
.gj-step-v2:nth-child(3) .gj-step-node { background: #00a8b4; box-shadow: 0 8px 22px rgba(0,168,180,.30), 0 0 0 4px #fff, 0 0 0 6px #00a8b4; }
.gj-step-v2:nth-child(4) .gj-step-node { background: #00c48c; box-shadow: 0 8px 22px rgba(0,196,140,.30), 0 0 0 4px #fff, 0 0 0 6px #00c48c; }
.gj-step-v2:nth-child(5) .gj-step-node { background: #009a44; box-shadow: 0 8px 22px rgba(0,154,68,.30), 0 0 0 4px #fff, 0 0 0 6px #009a44; }
.gj-step-v2:nth-child(1) .gj-step-num { color: #0071eb; }
.gj-step-v2:nth-child(2) .gj-step-num { color: #008cc8; }
.gj-step-v2:nth-child(3) .gj-step-num { color: #00a8b4; }
.gj-step-v2:nth-child(4) .gj-step-num { color: #00c48c; }
.gj-step-v2:nth-child(5) .gj-step-num { color: #009a44; }

.gj-step-body { flex: 1; }
.gj-step-time {
    margin: 0 0 8px;
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0,113,235,.10);
    color: var(--blue);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gj-step-name {
    margin: 8px 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}
.gj-step-detail {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
}


/* ===========================================================================
   Costs: bill / invoice component
   =========================================================================== */
#costs .pc-prose-inner > .gj-costs {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.gj-costs {
    display: block;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    padding: 0;
    margin-top: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Receipt-style top serration */
.gj-costs::before {
    content: '';
    display: block;
    height: 12px;
    background:
        linear-gradient(135deg, transparent 50%, #fff 51%) 0 0 / 12px 12px,
        linear-gradient(45deg,  transparent 50%, #fff 51%) 6px 0 / 12px 12px;
    background-color: #d9dde3;
    background-repeat: repeat-x;
}
.gj-costs-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px 28px 12px;
    border-bottom: 2px solid var(--text-main);
}
.gj-costs-header-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.gj-costs-header-num {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.gj-cost {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px dashed var(--border-default);
}
.gj-cost:last-of-type { border-bottom: none; }
.gj-cost-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: none;
    letter-spacing: 0;
}
.gj-cost small {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 400;
    font-style: italic;
}
.gj-cost-amount {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.gj-costs-footer {
    padding: 18px 28px;
    background: #fafafa;
    border-top: 1px solid var(--border-default);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}
/* Bottom serration mirroring the top */
.gj-costs::after {
    content: '';
    display: block;
    height: 12px;
    background:
        linear-gradient(225deg, transparent 50%, #fff 51%) 0 100% / 12px 12px,
        linear-gradient(315deg, transparent 50%, #fff 51%) 6px 100% / 12px 12px;
    background-color: #d9dde3;
    background-repeat: repeat-x;
}


/* ===========================================================================
   Rejection cards: numbered with red flag-shaped container
   =========================================================================== */
.gj-rejections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 24px;
    counter-reset: rej-num;
}
@media (max-width: 720px) { .gj-rejections { grid-template-columns: 1fr; } }
.gj-rejection {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 22px 22px 22px 18px;
    background: #fff;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    transition: transform .15s ease, box-shadow .15s ease;
    counter-increment: rej-num;
    overflow: visible;
}
.gj-rejection:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(235,0,58,.10); }

/* The flag: a red banner with a notched right edge */
.gj-rejection-num {
    position: relative;
    width: 56px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ff3a5c, var(--red));
    /* Pennant/flag shape: rectangle with a triangular notch cut from the right */
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
    box-shadow: 0 6px 14px rgba(235,0,58,.30);
    margin-top: -2px;
    align-self: start;
}
.gj-rejection-num::before {
    content: counter(rej-num, decimal-leading-zero);
}
.gj-rejection-body { min-width: 0; }
.gj-rejection-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}
.gj-rejection-text {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}


/* ===========================================================================
   FAQ section: blue background like the hero
   =========================================================================== */
.playbook-article-page .pc-faq-section[id="faq"] {
    background: linear-gradient(135deg, #003e82 0%, #0058b8 60%, #0071eb 100%) !important;
    color: #fff;
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-eyebrow {
    color: rgba(255,255,255,.75);
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-title {
    color: #fff;
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    padding: 4px 16px;
    margin-bottom: 10px;
    transition: background .15s ease;
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item:hover {
    background: rgba(255,255,255,.10);
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item[open] {
    background: rgba(255,255,255,.10);
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item summary {
    color: #fff;
    font-weight: 700;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 32px;
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item summary::-webkit-details-marker { display: none; }
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    transition: transform .15s ease;
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-item[open] summary::after {
    content: '−';
    color: #fff;
}
.playbook-article-page .pc-faq-section[id="faq"] .pc-faq-answer {
    color: rgba(255,255,255,.85);
    padding: 0 0 14px;
    line-height: 1.6;
}


/* ===========================================================================
   Sources section: external citations to authoritative gov sites.
   Simple list, no boxes. Links use rel="nofollow noopener" + target="_blank"
   so the page benefits from citing reputable sources without passing PageRank.
   =========================================================================== */
.pc-sources {
    padding: 28px 24px 16px;
    border-top: 1px solid var(--border-default);
}
.pc-sources-inner {
    max-width: 760px;
    margin: 0 auto;
}
.pc-sources-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.pc-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pc-sources-list li {
    padding: 6px 0;
    line-height: 1.55;
}
.pc-sources-list a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    word-break: break-word;
}
.pc-sources-list a:hover { color: var(--text-main); }
.pc-sources-note {
    display: block;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 2px;
}
