/* Site additions (2026-12-03): "From the Field" photo gallery and its photo viewer. */

.field-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 190px;
    grid-auto-flow: dense;
    gap: 14px;
}
.fg-item {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
.fg-item.fg-wide { grid-column: span 2; grid-row: span 2; }
.fg-item a { display: block; width: 100%; height: 100%; }
.fg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.fg-item:hover img, .fg-item a:focus-visible img { transform: scale(1.05); }
.fg-item a:focus-visible { outline: 3px solid var(--saffron, #f97316); outline-offset: -3px; }
.fg-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 14px 10px;
    color: #fff;
    font-size: 0.85rem;
    line-height: 1.3;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0));
    pointer-events: none;
}
.fg-item figcaption strong {
    display: block;
    font-family: var(--font-heading, inherit);
    font-size: 0.95rem;
    color: #fdba74;
}

@media (max-width: 900px) {
    .field-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
}
@media (max-width: 520px) {
    .field-gallery { gap: 8px; grid-auto-rows: 130px; }
    .fg-item figcaption { font-size: 0.75rem; padding: 20px 10px 8px; }
}

/* Photo viewer */
.qi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: rgba(2, 6, 23, 0.92);
}
.qi-lightbox[hidden] { display: none; }
.qi-lightbox img {
    max-width: min(1600px, 100%);
    max-height: calc(100vh - 120px);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.qi-lightbox p { margin: 0; color: #e2e8f0; text-align: center; font-size: 0.95rem; }
.qi-lightbox button {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 46px; height: 46px;
    font-size: 26px; line-height: 46px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}
.qi-lightbox button:hover, .qi-lightbox button:focus-visible { background: rgba(249, 115, 22, 0.85); outline: none; }
.qi-lb-close { top: 16px; right: 16px; }
.qi-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.qi-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 520px) {
    .qi-lb-prev, .qi-lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ===== Help assistant (js/help_bot.js) ===== */
.qh-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 4000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    font: 600 0.95rem var(--font-main, system-ui, sans-serif);
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.35);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.qh-fab:hover, .qh-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 58, 138, 0.45); outline: none; }
.qh-fab.qh-hide { display: none; }
.qh-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 4001;
    width: min(400px, calc(100vw - 24px));
    height: min(600px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.28);
    font-family: var(--font-main, system-ui, sans-serif);
}
.qh-panel[hidden] { display: none; }
.qh-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}
.qh-title strong { display: block; font-family: var(--font-heading, inherit); font-size: 1.05rem; }
.qh-title span { font-size: 0.8rem; opacity: 0.85; }
.qh-close {
    border: 0; background: rgba(255, 255, 255, 0.15); color: #fff;
    width: 34px; height: 34px; border-radius: 999px; font-size: 22px; line-height: 34px; cursor: pointer;
}
.qh-close:hover, .qh-close:focus-visible { background: rgba(255, 255, 255, 0.3); outline: none; }
.qh-log { flex: 1; overflow-y: auto; padding: 14px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.qh-msg { max-width: 92%; font-size: 0.9rem; line-height: 1.5; }
.qh-msg p { margin: 0 0 6px; }
.qh-bot { align-self: flex-start; padding: 10px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 4px 14px 14px 14px; }
.qh-user { align-self: flex-end; padding: 8px 12px; color: #fff; background: #1e3a8a; border-radius: 14px 4px 14px 14px; white-space: pre-wrap; word-break: break-word; }
.qh-q { margin: 0 0 6px; font-size: 0.95rem; color: #1e3a8a; }
.qh-steps { margin: 0; padding-left: 1.2rem; }
.qh-steps li { margin: 3px 0; }
.qh-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qh-link {
    display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
    color: #fff; background: #f97316; text-decoration: none;
}
.qh-link:hover, .qh-link:focus-visible { background: #c2410c; outline: none; }
.qh-chipwrap { display: flex; flex-direction: column; gap: 6px; }
.qh-note { margin: 0; font-size: 0.8rem; color: #64748b; }
.qh-chip {
    text-align: left; padding: 7px 10px; border-radius: 10px; font: inherit; font-size: 0.85rem; cursor: pointer;
    color: #1e3a8a; background: #eff6ff; border: 1px solid #bfdbfe;
}
.qh-chip:hover, .qh-chip:focus-visible { background: #dbeafe; outline: none; }
.qh-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e2e8f0; background: #fff; }
.qh-form input {
    flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid #cbd5e1; font: inherit; font-size: 0.9rem;
}
.qh-form input:focus { outline: 2px solid #2563eb; outline-offset: 0; border-color: transparent; }
.qh-send { padding: 0 16px; border: 0; border-radius: 12px; font-family: inherit; font-weight: 600; font-size: 0.9rem; color: #fff; background: #1e3a8a; cursor: pointer; }
.qh-send:hover, .qh-send:focus-visible { background: #172554; outline: none; }
.qh-foot { padding: 0 12px 10px; text-align: center; font-size: 0.8rem; background: #fff; }
.qh-foot a { color: #2563eb; }
@media (max-width: 520px) {
    .qh-fab { right: 12px; bottom: 12px; padding: 11px 14px; }
    .qh-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); border-radius: 16px; }
}

/* Help Center page (help.html) */
.qh-page { padding-top: 7rem; padding-bottom: 4rem; max-width: 900px; }
.qh-page-hero { text-align: center; margin-bottom: 2rem; }
.qh-page-hero h1 { font-family: var(--font-heading, inherit); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5rem; }
.qh-page-hero p { color: var(--text-secondary, #475569); margin: 0 0 1.5rem; }
.qh-page-search {
    width: 100%; max-width: 620px; padding: 14px 18px; border-radius: 14px; font: inherit; font-size: 1rem;
    border: 1px solid #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.qh-page-search:focus { outline: 2px solid #2563eb; border-color: transparent; }
.qh-cat h2 { font-family: var(--font-heading, inherit); font-size: 1.2rem; color: #1e3a8a; margin: 2rem 0 0.75rem; }
.qh-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.qh-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #1e293b; list-style-position: inside; }
.qh-item summary:hover { background: #f8fafc; }
.qh-item[open] summary { color: #1e3a8a; border-bottom: 1px solid #e2e8f0; }
.qh-item .qh-answer { padding: 12px 18px 16px; line-height: 1.6; }
.qh-page-contact { text-align: center; margin-top: 2.5rem; color: var(--text-secondary, #475569); }

/* Footer "Connect" links */
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    color: inherit; background: rgba(148, 163, 184, 0.15);
    transition: background 0.2s, color 0.2s;
}
.social-icons a:hover, .social-icons a:focus-visible { background: #f97316; color: #fff; outline: none; }
.social-icons svg { width: 20px; height: 20px; }

/* "Why QRZ India, when there is QRZ.com?" comparison (index.html #why-qrzindia), 2026-12-03 */
.vs-block { background: #fff; border: 1px solid var(--border-color, #e2e8f0); border-radius: 20px; padding: 1.75rem; margin: 0 0 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04); }
.vs-block h3 { margin: 0 0 0.5rem; font-size: 1.5rem; color: var(--accent-color, #12305E); }
.vs-intro, .vs-note { color: #475569; margin: 0 0 1.25rem; line-height: 1.6; }
.vs-note { margin: 1.25rem 0 0; font-weight: 600; color: #334155; }
.vs-table { display: grid; border: 1px solid var(--border-color, #e2e8f0); border-radius: 14px; overflow: hidden; }
.vs-row { display: grid; grid-template-columns: 1.1fr 2fr 1.5fr; }
.vs-row > span { padding: 0.85rem 1rem; border-top: 1px solid var(--border-color, #e2e8f0); line-height: 1.5; color: #475569; }
.vs-row > span[role="rowheader"] { font-weight: 700; color: #1e293b; display: flex; gap: 0.5rem; align-items: flex-start; }
.vs-row > span[role="rowheader"] svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--saffron, #F97316); }
.vs-row > .vs-us { background: rgba(249, 115, 22, 0.07); color: #1e293b; font-weight: 500; }
.vs-head > span { border-top: 0; font-weight: 800; color: #1e293b; background: #f8fafc; }
.vs-head > .vs-us { background: rgba(249, 115, 22, 0.15); color: var(--saffron-text, #B4400B); }
@media (max-width: 720px) {
    .vs-row { grid-template-columns: 1fr 1fr; }
    .vs-row > span[role="rowheader"] { grid-column: 1 / -1; background: #f8fafc; }
    .vs-head > span:first-child { display: none; }
    .vs-block { padding: 1.25rem; }
}
