/* ════════════════════════════════════════════
   NEWS.CSS
   Powers /news/ — village-theme redesign:
   hero header (background image), quick category
   chips, bottom navigation, and a redesigned
   3-dot card menu bottom sheet.
   ════════════════════════════════════════════ */

* {
    -webkit-tap-highlight-color: transparent;
}

html.lang-te,
html.lang-te body,
body.lang-te {
    font-family: 'NTR', var(--fb);
}

/* ── NTR override for elements with their own heading font ── */
body.lang-te .app-hero-title .att-main,
body.lang-te .app-hero-title .att-tag,
body.lang-te .app-hero-sub,
body.lang-te .guest-hero-title,
body.lang-te .sheet-title,
body.lang-te .nf-card-title,
body.lang-te .nf-chip,
body.lang-te .abn-item {
    font-family: 'NTR', var(--fb);
}

body {
    background: var(--cream);
}

#nav {
    display: none !important;
}

/* ═══ VILLAGE HERO HEADER — full-width, uncropped image ═══ */
.app-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: var(--banner-h, 0px);
    transition: margin-top .2s;
}

.app-hero-img {
    display: block;
    width: 100%;
    height: auto;
}

.app-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Smooth wash: a light veil up top for text legibility, clear
       through the middle so the village scene shows through, then a
       long, gentle fade that reaches the page's own cream colour well
       before the bottom — so the search bar sits on a matching
       background instead of a visibly different photo edge. */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, .28) 0%,
            rgba(255, 255, 255, .05) 20%,
            rgba(255, 255, 255, 0) 38%,
            rgba(255, 255, 255, .32) 56%,
            rgba(255, 255, 255, .78) 72%,
            var(--cream) 88%,
            var(--cream) 100%);
    pointer-events: none;
}

.app-hero-profile-btn {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 12px);
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--g50);
    color: var(--g600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}

.app-hero-profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-hero-content {
    position: absolute;
    z-index: 1;
    top: calc(env(safe-area-inset-top) + 14px);
    left: 62px;
    right: 62px;
    text-align: center;
}

.app-hero-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-hero-title .att-main {
    font-family: var(--fh);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -.01em;
    text-transform: capitalize;
    text-shadow: 0 1px 3px rgba(255, 255, 255, .8), 0 1px 10px rgba(255, 255, 255, .55);
}

.app-hero-title .att-tag {
    display: inline-flex;
    align-items: center;
    font-family: var(--fh);
    font-size: .56rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--g500);
    color: #fff;
    padding: 5px 8px 4px;
    border-radius: 4px;
    margin-left: 6px;
}

.app-hero-sub {
    margin: 6px 0 0;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink2);
    text-shadow: 0 1px 3px rgba(255, 255, 255, .8), 0 1px 8px rgba(255, 255, 255, .55);
}

/* ═══ REPORT MODAL ═══ */
#report-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

#report-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

#report-modal {
    position: fixed;
    z-index: 9999;
    background: var(--white);
    border-radius: 22px;
    padding: 1.75rem;
    width: 360px;
    max-width: 90vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.94);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
}

#report-modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

#report-modal h3 {
    font-family: var(--fh);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: var(--ink3);
    padding: 6px 0;
    cursor: pointer;
}

#report-modal textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1.5px solid var(--rule);
    border-radius: 10px;
    font-family: inherit;
    font-size: .84rem;
    min-height: 60px;
}

.report-actions {
    display: flex;
    gap: 8px;
    margin-top: 1.2rem;
}

.report-actions button {
    flex: 1;
    padding: 10px;
    border-radius: 100px;
    border: none;
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    font-family: inherit;
}

#report-submit-btn {
    background: var(--g500);
    color: #fff;
}

#report-cancel-btn {
    background: var(--rule);
    color: var(--ink3);
}

/* ═══ TOASTS ═══ */
#toast-container {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    padding-top: calc(11px + env(safe-area-inset-top));
    font-size: .79rem;
    font-weight: 600;
    color: #fff;
    box-sizing: border-box;
    transform: translateY(-16px);
    opacity: 0;
    transition: transform .32s cubic-bezier(.2, .9, .3, 1.15), opacity .28s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast svg {
    flex-shrink: 0;
}

.toast--success {
    background: var(--g600, #2d8a2d);
}

.toast--error {
    background: #c0392b;
}

@media (min-width: 768px) {
    #toast-container {
        padding: 0 16px;
    }

    .toast {
        width: auto;
        max-width: 400px;
        margin-top: 14px;
        border-radius: 10px;
        padding: 10px 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    }
}

/* ═══ REPORT SHEET ═══ */
.report-textarea {
    width: 100%;
    margin-top: 4px;
    padding: 11px 13px;
    border: 1.5px solid var(--rule);
    border-radius: 12px;
    font-family: inherit;
    font-size: .84rem;
    color: var(--ink);
    background: var(--cream);
    min-height: 70px;
    resize: vertical;
    box-sizing: border-box;
}

.sheet-btn--primary {
    background: var(--g500);
    color: #fff;
}

.sheet-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.comment-sheet-count-pill {
    font-family: var(--fb);
    font-size: .72rem;
    font-weight: 700;
    color: var(--g600);
    background: var(--g50);
    padding: 2px 9px;
    border-radius: 100px;
    margin-left: 6px;
    vertical-align: middle;
}

.comment-sheet-actions {
    margin-top: 7px;
    display: flex;
    gap: 16px;
}

.comment-sheet-actions button {
    background: none;
    border: none;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.comment-sheet-edit-input {
    width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
}

.comment-sheet-save-btn {
    background: var(--g500);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 7px 16px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.comment-sheet-cancel-btn {
    background: none;
    border: none;
    color: var(--ink3);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 7px 4px;
}

/* ═══ SIDE MENU — FULL WIDTH ═══ */
.side-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.side-menu-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.32, .72, 0, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu-top {
    padding-top: env(safe-area-inset-top);
    position: relative;
}

.side-menu-close-x {
    position: absolute;
    top: calc(env(safe-area-inset-top) + 14px);
    top: 38%;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink3);
    cursor: pointer;
    z-index: 2;
}

.side-menu-header {
    padding: 2.2rem 4.2rem 1.4rem 1.5rem;
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 14px;
}

.side-menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--g500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
    flex-shrink: 0;
}

.side-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-menu-name {
    font-size: .98rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.side-menu-email {
    font-size: .78rem;
    color: var(--muted);
}

.side-menu-guest-hero {
    padding: 2.6rem 1.75rem 2rem;
    border-bottom: 1px solid var(--rule);
    text-align: center;
}

.guest-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 22px -8px rgba(20, 20, 20, .2);
    overflow: hidden;
}

.guest-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guest-hero-title {
    font-family: var(--fh);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.01em;
    margin-bottom: 6px;
}

.guest-hero-sub {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 auto 22px;
    max-width: 260px;
}

#side-menu-google-btn-slot {
    display: flex;
    justify-content: center;
    padding: 6px 22px;
    font-family: 'Noto Sans Telugu', var(--fb) !important;
}

.side-menu-body {
    padding: .5rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 4px;
    font-size: .94rem;
    font-weight: 600;
    color: var(--ink2);
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.side-menu-item svg {
    flex-shrink: 0;
}

.side-menu-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin: 1.5rem 4px .6rem;
}

.lang-radio-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 4px 4px;
}

.lang-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lang-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--g500);
    cursor: pointer;
}

.lang-radio span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink2);
}

.side-menu-logout-row {
    border-top: 1px solid var(--rule);
    padding: .5rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
}

.side-menu-item--danger {
    color: #c0392b;
    margin: 5% 0 2% 0;
}

.side-menu-item--danger svg {
    color: #c0392b;
}

/* ═══ NOTIFICATION TOGGLE SWITCH (side menu) ═══ */
.notif-toggle-row {
    justify-content: flex-start;
}

.notif-toggle-track {
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--rule);
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
    transition: background .2s;
}

.notif-toggle-track.on {
    background: var(--g500);
}

.notif-toggle-track.disabled {
    opacity: .5;
}

.notif-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: left .2s;
}

.notif-toggle-track.on .notif-toggle-thumb {
    left: 20px;
}

/* ═══ NOTIFICATION BANNER (fixed top strip) ═══ */
#notif-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: var(--g500);
    color: #fff;
    padding: 10px 14px;
    padding-top: calc(10px + env(safe-area-inset-top));
    display: none;
    align-items: center;
    gap: 10px;
}

#notif-banner span {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

#notif-banner .nb-enable {
    background: #fff;
    color: var(--g600);
    border: none;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

#notif-banner .nb-dismiss {
    background: none;
    border: none;
    color: #fff;
    opacity: .85;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px;
}

/* ═══ BOTTOM SHEETS (filter + logout confirm + card menu) ═══ */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1999;
    background: var(--white);
    border-radius: 22px 22px 0 0;
    padding: .75rem 1.4rem calc(1.5rem + env(safe-area-inset-bottom));
    max-width: 560px;
    margin: 0 auto;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
    max-height: 78vh;
    overflow-y: auto;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 38px;
    height: 4px;
    background: var(--rule);
    border-radius: 3px;
    margin: 0 auto 1rem;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.sheet-title {
    font-family: var(--fh);
    font-size: .98rem;
    font-weight: 800;
    color: var(--ink);
}

.sheet-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink3);
    cursor: pointer;
}

.sheet-section {
    margin-bottom: 1.4rem;
}

.sheet-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    margin-bottom: .6rem;
}

.sheet-radio-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sheet-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 4px;
    cursor: pointer;
}

.sheet-radio input {
    width: 18px;
    height: 18px;
    accent-color: var(--g500);
    cursor: pointer;
}

.sheet-radio span {
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink2);
}

.sheet-radio svg {
    color: var(--g600);
    flex-shrink: 0;
}

.sheet-apply-btn {
    width: 100%;
    background: var(--g500);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 13px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-top: .5rem;
}

.logout-sheet-text {
    font-size: .92rem;
    color: var(--ink2);
    text-align: center;
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.logout-sheet-actions {
    display: flex;
    gap: 10px;
}

.sheet-btn {
    flex: 1;
    padding: 12px;
    border-radius: 100px;
    border: none;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.sheet-btn--ghost {
    background: var(--rule);
    color: var(--ink3);
}

.sheet-btn--danger {
    background: #c0392b;
    color: #fff;
}

#feed-signin-sheet {
    text-align: center;
    padding-top: .75rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.signin-sheet-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--g50);
    color: var(--g600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: .25rem auto 1rem;
}

.signin-sheet-msg {
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.3rem;
    padding: 0 1rem;
}

.signin-sheet-google-slot {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.signin-sheet-cancel {
    display: block;
    margin: 0 auto;
    background: none;
    border: none;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 8px;
}

/* ═══ CARD MENU SHEET — Report / Download / Save (village theme) ═══ */
#card-menu-sheet {
    padding-top: .75rem;
}

.card-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    width: 100%;
    padding: 12px 4px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-radius: 12px;
    transition: background .15s ease;
}

.card-menu-item:active {
    background: var(--cream);
}

.cmi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmi-icon--red {
    background: #fdecea;
    color: #c0392b;
}

.cmi-icon--green {
    background: var(--g50);
    color: var(--g600);
}

.cmi-icon--blue {
    background: #e8f0fe;
    color: #2563eb;
}

.cmi-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 2px;
}

.cmi-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
}

.cmi-sub {
    font-size: .7rem;
    color: var(--muted);
    line-height: 1.45;
}

#menu-save-icon.is-saved {
    fill: #2563eb;
    stroke: #2563eb;
}

.card-menu-close-btn {
    width: 100%;
    margin-top: .6rem;
    background: var(--g50);
    color: var(--g600);
    border: none;
    border-radius: 100px;
    padding: 13px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

/* ═══ FILTER SHEET — two-pane (Sort / Categories) ═══ */
#filter-sheet {
    max-height: 82vh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-sheet-body {
    display: flex;
    margin: 0 -1.4rem;
    flex: 1;
    min-height: 280px;
    max-height: 48vh;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.filter-tabs {
    width: 130px;
    flex-shrink: 0;
    background: var(--cream);
    overflow-y: auto;
    border-right: 1px solid #EEE;
}

.filter-tab {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 15px 14px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-family: inherit;
    font-size: .83rem;
    font-weight: 600;
    color: var(--ink3);
    cursor: pointer;
}

.filter-tab.active {
    background: var(--white);
    border-left-color: var(--g500);
    color: var(--g600);
}

.filter-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    margin-left: 7px;
    border-radius: 100px;
    background: var(--g500);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
}

.filter-panel {
    flex: 1;
    padding: 6px 1.4rem;
    overflow-y: auto;
}

.filter-panel-section {
    display: none;
}

.filter-panel-section.active {
    display: block;
}

.filter-sheet-footer {
    display: flex;
    gap: 10px;
    padding: 4% 0;
    background: var(--white);

    .filter-clear-btn,
    .filter-apply-btn {
        flex: 1 1 50%;
        width: 50%;
        box-sizing: border-box;
        min-width: 0;
    }
}

.filter-clear-btn {
    padding: 12px;
    border-radius: 100px;
    border: 1.5px solid var(--rule);
    background: var(--white);
    color: var(--ink3);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.filter-apply-btn {
    padding: 12px;
    border-radius: 100px;
    border: none;
    background: var(--g500);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

#report-sheet {
    max-height: 82vh;
    padding: .75rem 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#report-sheet .sheet-header {
    padding: 0 1.4rem;
    margin-bottom: .5rem;
}

.report-sheet-body {
    overflow-y: auto;
    padding: 0 1.4rem;
}

#report-sheet .sheet-radio {
    padding: 7px 4px;
}

.report-sheet-footer {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 1rem 1.4rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: var(--white);
}

/* ═══ COMMENT SHEET ═══ */
#comment-sheet {
    max-height: 86vh;
    padding: .75rem 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#comment-sheet .sheet-header {
    padding: 0 1.4rem;
    margin-bottom: .75rem;
}

.comment-sheet-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.4rem;
    border-top: 1px solid var(--rule);
}

.comment-sheet-item {
    display: flex;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.comment-sheet-item:last-child {
    border-bottom: none;
}

.comment-sheet-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--g500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-sheet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-sheet-name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.comment-sheet-date {
    font-size: .68rem;
    color: var(--muted);
    font-weight: 400;
    margin-left: 0;
}

.comment-sheet-text {
    font-size: .84rem;
    color: var(--ink3);
    line-height: 1.55;
    margin-top: 3px;
    word-break: break-word;
}

.comment-sheet-empty {
    text-align: center;
    font-size: .84rem;
    color: var(--muted);
    padding: 2.4rem 0;
}

.comment-sheet-box {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: .85rem 1.4rem calc(.6rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rule);
    background: var(--white);
}

.comment-sheet-input {
    flex: 1;
    resize: none;
    border: 1.5px solid var(--rule);
    border-radius: 18px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: .84rem;
    color: var(--ink);
    background: var(--cream);
    max-height: 90px;
    min-height: 40px;
    line-height: 1.4;
    box-sizing: border-box;
}

.comment-sheet-input:focus {
    outline: none;
    border-color: var(--g400);
    background: var(--white);
}

.comment-sheet-send-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--g500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.comment-sheet-send-btn:disabled {
    background: var(--rule);
    color: var(--muted);
    cursor: not-allowed;
}

.comment-sheet-signin {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: .5rem 0 .3rem;
}

.comment-sheet-signin p {
    font-size: .82rem;
    color: var(--ink3);
    margin: 0;
}

/* ═══ MAIN CONTENT ═══ */
.app-main {
    padding-top: .2rem;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
    max-width: 560px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Search row — sits right on the hero's fade zone. No card
   border/shadow/blur of its own: it blends because the hero fade
   (above) already reaches the exact same cream/white the page uses,
   so there's no visible seam between photo and search bar. ── */
.nf-search-section {
    position: relative;
    z-index: 3;
    margin-top: -35px;
    margin-bottom: .9rem;
}

.nf-search-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nf-search-wrap {
    flex: 1;
    position: relative;
    height: 40px;
}

.nf-search-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.nf-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 36px;
    border: 1.5px solid var(--rule);
    border-radius: 100px;
    font-size: .8rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--white);
    box-sizing: border-box;
    box-shadow: 0 8px 18px -12px rgba(20, 20, 20, .25);
}

.nf-search-input:focus {
    outline: none;
    border-color: var(--g400);
}

.nf-filter-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    background: var(--white);
    color: var(--ink3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 18px -12px rgba(20, 20, 20, .25);
}

.nf-filter-btn.active {
    background: var(--g50);
    border-color: var(--g400);
    color: var(--g600);
}

.nf-filter-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g500);
    display: none;
}

.nf-filter-btn.active .nf-filter-dot {
    display: block;
}

/* ── Quick category chips — a separate row below the search bar
   (kept apart from it, not merged into one block), plain solid pills. ── */
.nf-chip-row {
    display: flex;
    gap: .4rem;
    margin-top: .85rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.nf-chip-row::-webkit-scrollbar {
    display: none;
}

.nf-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid var(--rule);
    background: var(--white);
    font-size: .66rem;
    font-weight: 700;
    color: var(--ink2);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.nf-chip svg {
    flex-shrink: 0;
    color: var(--g600);
}

.nf-chip.active {
    background: var(--g500);
    border-color: var(--g500);
    color: #fff;
}

.nf-chip.active svg {
    color: #fff;
}

/* ═══ CARDS ═══ */
.nf-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nf-card {
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
}

.nf-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--g50);
    overflow: hidden;
}

.nf-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Photo carousel (used when a card has 2–3 images) ── */
.nf-carousel {
    position: relative;
}

.nf-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.nf-carousel-track::-webkit-scrollbar {
    display: none;
}

.nf-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 16/10;
    background: var(--g50);
    overflow: hidden;
}

.nf-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.nf-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 4px;
    width: max-content;
}

.nf-carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width .2s, background .2s;
}

.nf-carousel-dot.active {
    background: #fff;
    width: 13px;
    border-radius: 3px;
}

.nf-carousel-count {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .64rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
}

.nf-carousel-count svg {
    flex-shrink: 0;
}

.nf-card-body {
    padding: .95rem 1.1rem 1rem;
}

.nf-card-cat {
    display: inline-block;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--g600);
    background: var(--g50);
    padding: 3px 9px;
    border-radius: 100px;
    margin-bottom: .5rem;
}

.nf-card-title {
    font-family: var(--fh);
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: .4rem;
}

.nf-card-title a {
    color: inherit;
}

.nf-card-excerpt {
    font-size: .8rem;
    color: var(--ink3);
    line-height: 1.6;
    margin-bottom: .7rem;
}

/* ── Meta row: location · reporter · time ── */
.nf-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    font-size: .68rem;
    color: var(--muted);
    margin-bottom: .75rem;
}

.nf-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nf-card-meta svg {
    color: var(--muted);
    flex-shrink: 0;
}

.nf-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--rule);
    flex-shrink: 0;
}

.nf-card-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: .65rem;
    border-top: 1px solid var(--rule);
}

/* .nf-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink3);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
} */

.nf-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
    color: var(--ink3);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.nf-burst-dot {
    position: absolute;
    left: 9px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.nf-burst-dot.go {
    animation: nf-burst-fly .55s ease-out forwards;
}

@keyframes nf-burst-fly {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--a)) translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--a)) translateX(18px) scale(.4);
    }
}

.nf-action-btn svg {
    transition: transform .15s;
}

.nf-action-btn:active svg {
    transform: scale(1.15);
}

.nf-like-btn.liked {
    color: #e0245e;
}

.nf-like-btn.liked svg {
    fill: #e0245e;
    stroke: #e0245e;
}

.nf-dislike-btn svg {
    transform: rotate(180deg);
}

.nf-dislike-btn.liked {
    color: var(--ink);
}

.nf-dislike-btn.liked svg {
    fill: var(--ink);
    stroke: var(--ink);
}

.nf-whatsapp-btn {
    color: #25a24a;
}

.nf-menu-btn {
    margin-left: auto;
    color: var(--ink3);
    padding: 2px;
}

.nf-empty {
    text-align: center;
    font-size: .88rem;
    color: var(--muted);
    padding: 3rem 0;
}

.nf-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 1.5rem 1.25rem 2.5rem; */
    padding: 6.5rem 1.25rem 2.5rem;
    text-align: center;
}

.nf-empty-illustration {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
}

.nf-load-more-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

.nf-load-more-btn {
    background: var(--white);
    border: 1.5px solid var(--rule);
    color: var(--ink3);
    padding: 9px 26px;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* ═══ SKELETON LOADER ═══ */
@keyframes nf-shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.nf-skeleton-block {
    background: linear-gradient(90deg, var(--rule) 25%, #eef5ee 37%, var(--rule) 63%);
    background-size: 400px 100%;
    animation: nf-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

.nf-skeleton-card {
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
}

.nf-skeleton-img {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 0;
}

.nf-skeleton-body {
    padding: .95rem 1.1rem 1rem;
}

.nf-skeleton-cat {
    width: 70px;
    height: 16px;
    margin-bottom: .65rem;
    border-radius: 100px;
}

.nf-skeleton-title {
    height: 15px;
    margin-bottom: 8px;
}

.nf-skeleton-excerpt {
    height: 11px;
    margin-bottom: 6px;
}

.nf-skeleton-meta {
    display: flex;
    gap: 12px;
    margin: .85rem 0 .1rem;
}

.nf-skeleton-meta span {
    width: 64px;
    height: 11px;
}

.nf-skeleton-footer {
    display: flex;
    gap: 16px;
    padding-top: .75rem;
    margin-top: .75rem;
    border-top: 1px solid var(--rule);
}

.nf-skeleton-footer span {
    width: 26px;
    height: 18px;
}

/* ═══ SIGN-IN MODAL ═══ */
.nf-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.nf-modal-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

.nf-modal {
    position: fixed;
    z-index: 9999;
    background: var(--white);
    border-radius: 22px;
    padding: 1.75rem;
    width: 320px;
    max-width: 90vw;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.94);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s, opacity .25s;
}

.nf-modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* ═══ BOTTOM NAVIGATION ═══ */
.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    max-width: 560px;
    margin: 0 auto;
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: space-around;
    background: var(--white);
    border-top: 1px solid var(--rule);
    padding: 8px 4px calc(6px + env(safe-area-inset-bottom));
}

.abn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 0;
    color: var(--muted);
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    font-size: .58rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease;
}

.abn-item.active {
    color: var(--g600);
    font-weight: 700;
}

@media (min-width: 640px) {
    .app-bottom-nav {
        border-radius: 20px 20px 0 0;
    }
}

/* ═══ iOS NOTIFICATIONS HELP SHEET ═══ */
.ios-notif-intro {
    font-size: .85rem;
    color: var(--ink3);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.ios-notif-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--rule);
}

.ios-notif-step:first-of-type {
    border-top: none;
}

.ios-notif-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--g500);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ios-notif-step-icon {
    color: var(--g600);
    flex-shrink: 0;
    margin-top: 1px;
}

.ios-notif-step-text {
    font-size: .86rem;
    color: var(--ink2);
    line-height: 1.55;
}

.ios-notif-step:last-of-type {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.install-installed-pill {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: #2d8a2d;
    background: rgba(45, 138, 45, 0.1);
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

.install-installed-pill svg {
    stroke: #2d8a2d;
}

/* ═══ INSTALL MENU ITEM — detected platform/browser label ═══ */
.install-device-label {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    background: var(--cream);
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.verified-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: default;
}

.verified-badge-wrap svg {
    display: block;
}

.verified-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 10;
}

.verified-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--ink);
}

.verified-badge-wrap:hover .verified-tooltip,
.verified-badge-wrap:focus .verified-tooltip {
    opacity: 1;
}