/* Public browse child pages (Home::shaadi / url_search).
   Figma frames: phone 390px, desktop 1440px. Sizes scale fluidly between them with clamp(). */
body.nfc-page {
    margin: 0;
    background: #fff;
    font-family: "Instrument Sans", sans-serif;
    color: #170309;
}
.nfc,
.nfc * {
    font-family: "Instrument Sans", sans-serif;
}

.nfc {
    width: 100%;
    overflow: hidden;
    padding-top: 64px;
    -webkit-text-size-adjust: 100%;
}
.nfc-wrap {
    width: min(1280px, calc(100% - clamp(40px, -4.57px + 11.429vw, 160px)));
    margin: 0 auto;
}
.nfc-only-mobile { display: none; }
.nfc-readmore { display: none; }

/* Hero */
.nfc-hero {
    position: relative;
    min-height: clamp(355px, 256.57px + 25.238vw, 620px);
    display: flex;
    align-items: center;
    background: #1a1a1a url("../images/child-page/hero.jpg") center 30% / cover no-repeat;
    color: #fff;
}
.nfc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(259deg, rgba(226, 226, 226, 0) 21%, rgba(0, 0, 0, 0.7) 70%);
}
.nfc-hero__inner {
    position: relative;
    z-index: 1;
    width: min(608px, calc(100% - clamp(48px, 6.40px + 10.667vw, 160px)));
    margin-left: clamp(24px, 3.20px + 5.333vw, 80px);
    padding: clamp(41px, 26.51px + 3.714vw, 80px) 0;
}
.nfc-hero__title {
    margin: 0;
    font-size: clamp(32px, 17.14px + 3.810vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #fff;
}
.nfc-hero__sub {
    margin: clamp(12px, 9.03px + 0.762vw, 20px) 0 0;
    font-size: clamp(14px, 10.29px + 0.952vw, 24px);
    font-weight: 400;
    line-height: 1.42;
    color: #ddd;
}
.nfc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: #e21e5b;
    border-radius: 54px;
    text-decoration: none;
}
.nfc-btn:hover { background: #c91850; color: #fff; }
.nfc-hero__btn {
    margin-top: clamp(20px, 15.54px + 1.143vw, 32px);
    min-height: clamp(44px, 38.06px + 1.524vw, 60px);
    padding: 0 clamp(26px, 20.80px + 1.333vw, 40px);
    font-size: clamp(14px, 11.77px + 0.571vw, 20px);
    line-height: 1;
}

/* Bands */
.nfc-band {
    background: #fafafa;
    padding: clamp(24px, 16.57px + 1.905vw, 44px) 0 clamp(20px, 17.03px + 0.762vw, 28px);
}
.nfc-band--white { background: #fff; }
.nfc-band__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 18.51px + 0.381vw, 24px);
}
.nfc-band h1,
.nfc-band h2 {
    margin: 0;
    font-size: clamp(24px, 16.57px + 1.905vw, 44px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
    color: #170309;
}
.nfc-band h1 { color: #010101; }
.nfc-gender { display: flex; gap: clamp(12px, 9.03px + 0.762vw, 20px); flex-shrink: 0; }
.nfc-pill {
    border-radius: 56px;
    padding: clamp(8px, 6.51px + 0.381vw, 12px) clamp(16px, 14.51px + 0.381vw, 20px);
    font-size: clamp(16px, 14.51px + 0.381vw, 20px);
    line-height: 1.25;
    cursor: pointer;
    border: 1px solid #dbdbdb;
    background: #fff;
    color: #5b5b5b;
    font-weight: 500;
}
.nfc-pill.selected_bride,
.nfc-pill.selected_groom {
    background: #090909;
    color: #fff;
    border-color: #090909;
    font-weight: 700;
}

/* Profile cards */
.nfc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 21.03px + 0.762vw, 32px);
    margin-top: clamp(20px, 11.09px + 2.286vw, 44px);
}
.nfc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: clamp(16px, 13.03px + 0.762vw, 24px);
    overflow: hidden;
    min-width: 0;
}
.nfc-card__photo {
    position: relative;
    height: clamp(260px, 245.14px + 3.810vw, 300px);
    background: #eee;
    cursor: pointer;
    overflow: hidden;
}
.nfc-card__photo > .nfc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.nfc-card__photo > .nfc-card__premium {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    object-fit: contain;
    z-index: 1;
}
.nfc-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(20px, 18.51px + 0.381vw, 24px) 24px clamp(20px, 18.51px + 0.381vw, 24px) clamp(20px, 18.51px + 0.381vw, 24px);
}
.nfc-card__name {
    margin: 0;
    font-size: clamp(20px, 18.51px + 0.381vw, 24px);
    font-weight: 600;
    line-height: 1.25;
    color: #090909;
    text-transform: capitalize;
    overflow-wrap: anywhere;
}
.nfc-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(8px, 6.51px + 0.381vw, 12px);
    color: #343434;
    font-size: clamp(14px, 13.26px + 0.190vw, 16px);
    font-weight: 500;
    line-height: 1.2;
}
.nfc-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #343434;
    display: inline-block;
}
.nfc-card__facts {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 14.51px + 0.381vw, 20px);
    margin: clamp(20px, 18.51px + 0.381vw, 24px) 0 0;
    padding: clamp(20px, 18.51px + 0.381vw, 24px) 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    list-style: none;
}
.nfc-card__facts li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #343434;
    font-size: clamp(14px, 13.26px + 0.190vw, 16px);
    font-weight: 500;
    line-height: 1.2;
}
.nfc-card__facts svg { flex-shrink: 0; width: clamp(16px, 14.51px + 0.381vw, 20px); height: clamp(16px, 14.51px + 0.381vw, 20px); }
.nfc-card__cta {
    width: 100%;
    height: clamp(48px, 45.03px + 0.762vw, 56px);
    font-size: clamp(14px, 13.26px + 0.190vw, 16px);
}
.nfc-card__admin { margin-top: 4px; }
.nfc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: #343434;
}
.nfc-center { display: flex; justify-content: center; }
.nfc-viewall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: clamp(32px, 26.06px + 1.524vw, 48px) auto clamp(4px, -0.46px + 1.143vw, 16px);
    padding: 10px;
    background: transparent;
    color: #e21e5b;
    border: 0;
    font-size: clamp(14px, 11.77px + 0.571vw, 20px);
    font-weight: 600;
    cursor: pointer;
}
.nfc-viewall:hover { color: #c91850; }
.nfc-viewall svg { width: clamp(20px, 19.26px + 0.190vw, 22px); height: clamp(20px, 19.26px + 0.190vw, 22px); }

/* Stats + press */
.nfc-band--loved { padding-top: clamp(56px, 50.06px + 1.524vw, 72px); }
.nfc-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 15.54px + 1.143vw, 32px);
    padding: 44px 0 clamp(44px, 39.54px + 1.143vw, 56px);
}
.nfc-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 10.06px + 1.524vw, 32px);
    min-width: 0;
    padding: clamp(20px, 18.51px + 0.381vw, 24px) clamp(16px, 14.51px + 0.381vw, 20px);
    background: #fafafa;
    border: 1px solid rgba(1, 1, 1, 0.1);
    border-radius: 12px;
}
.nfc-stat__icon { display: block; width: clamp(32px, 27.54px + 1.143vw, 44px); height: clamp(32px, 27.54px + 1.143vw, 44px); }
.nfc-stat__text { display: flex; flex-direction: column; gap: clamp(4px, 2.51px + 0.381vw, 8px); }
.nfc-stat strong {
    font-size: clamp(20px, 15.54px + 1.143vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    color: #010101;
}
.nfc-stat span {
    font-size: clamp(14px, 12.51px + 0.381vw, 18px);
    font-weight: 500;
    line-height: 1.22;
    color: #676767;
}
.nfc-press {
    background: #e21e5b;
    padding: clamp(32px, 27.54px + 1.143vw, 44px) 0;
}
.nfc-press__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 28px;
}
.nfc-press__logo { display: block; width: auto; max-width: none; }
.nfc-press__logo--toi { height: clamp(20px, 14.80px + 1.333vw, 34px); }
.nfc-press__logo--yourstory { height: clamp(19px, 15.29px + 0.952vw, 29px); }
.nfc-press__logo--indianexpress { height: clamp(14px, 11.03px + 0.762vw, 22px); }
.nfc-press__logo--timesnow { height: clamp(14px, 12.51px + 0.381vw, 18px); }
.nfc-press__logo--news18 { height: clamp(21px, 15.43px + 1.429vw, 36px); }
.nfc-press__logo--theprint { height: clamp(14px, 9.54px + 1.143vw, 26px); }
.nfc-press__logo--entrepreneur { height: clamp(20px, 16.29px + 0.952vw, 30px); }

/* Forever Stories: photos keep their own 2:3 / 3:4 portrait shape, no zoom */
.nfc-band--stories { background: #fafafa; padding: clamp(44px, 33.60px + 2.667vw, 72px) 0; }
.nfc-stories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-top: clamp(32px, 27.54px + 1.143vw, 44px);
}
.nfc-story__photo {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
}
.nfc-story__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.nfc-story__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: clamp(16px, 14.51px + 0.381vw, 20px);
}
.nfc-story h3 {
    margin: 0;
    font-size: clamp(20px, 18.51px + 0.381vw, 24px);
    font-weight: 600;
    line-height: 1.2;
    color: #170309;
}
.nfc-story p {
    margin: 4px 0 0;
    font-size: clamp(14px, 13.26px + 0.190vw, 16px);
    font-weight: 500;
    color: #676767;
    line-height: 1.3;
}
.nfc-story__arrow { flex-shrink: 0; margin-top: 4px; }
.nfc-link {
    color: #e21e5b;
    font-size: clamp(14px, 11.77px + 0.571vw, 20px);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.nfc-link:hover { color: #c91850; }

/* Editorial (SEO copy) */
.nfc-editorial { padding: clamp(56px, 50.06px + 1.524vw, 72px) 0 clamp(28px, 33.49px - 0.381vw, 32px); }
.nfc-editorial__lead,
.nfc-editorial__body p {
    font-size: clamp(14px, 12.51px + 0.381vw, 18px);
    line-height: clamp(28px, 27.26px + 0.190vw, 30px);
    color: #343434;
    margin: 0 0 clamp(20px, 17.03px + 0.762vw, 28px);
}
.nfc-editorial__body h2,
.nfc-editorial__body h3 {
    font-size: clamp(20px, 15.54px + 1.143vw, 32px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.25;
    color: #170309;
    margin: clamp(32px, 26.06px + 1.524vw, 48px) 0 clamp(16px, 21.49px - 0.381vw, 20px);
    padding-top: clamp(32px, 26.06px + 1.524vw, 48px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.nfc-editorial__body h2:first-child,
.nfc-editorial__body h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Invite */
.nfc-invite {
    background: #3c1422;
    padding: clamp(44px, 33.60px + 2.667vw, 72px) 0;
}
.nfc-invite__title {
    margin: 0;
    max-width: 860px;
    color: #fff;
    font-size: clamp(20px, 11.09px + 2.286vw, 44px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -0.5px;
}
.nfc-invite .nfc-btn {
    margin-top: clamp(24px, 16.57px + 1.905vw, 44px);
    padding: clamp(16px, 13.03px + 0.762vw, 24px) clamp(20px, 16.29px + 0.952vw, 30px);
    font-size: clamp(16px, 14.51px + 0.381vw, 20px);
}
.nfc-invite .nfc-btn svg { width: clamp(20px, 18.51px + 0.381vw, 24px); height: clamp(20px, 18.51px + 0.381vw, 24px); }

/* Browse accordions */
.nfc-browse { padding: clamp(8px, 57.37px - 3.429vw, 44px) 0 clamp(44px, 39.54px + 1.143vw, 56px); }
.nfc-browse .nfc-band__head h2 { margin-bottom: clamp(8px, 40.91px - 2.286vw, 32px); }
.nfc-acc { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.nfc-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(20px, 14.06px + 1.524vw, 36px) 0;
    font-size: clamp(16px, 10.06px + 1.524vw, 32px);
    font-weight: 600;
    color: #090909;
}
.nfc-acc summary::-webkit-details-marker { display: none; }
.nfc-acc summary::after {
    content: "";
    width: clamp(8px, 6.51px + 0.381vw, 12px);
    height: clamp(8px, 6.51px + 0.381vw, 12px);
    border-right: 2px solid #090909;
    border-bottom: 2px solid #090909;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-right: 8px;
}
.nfc-acc[open] summary::after { transform: rotate(-135deg); margin-top: 8px; }
.nfc-acc__list a {
    display: block;
    padding: clamp(20px, 17.03px + 0.762vw, 28px) 16px;
    border-bottom: 1px solid #e6e6e6;
    color: #676767;
    font-size: clamp(14px, 10.29px + 0.952vw, 24px);
    font-weight: 500;
    text-decoration: none;
}
.nfc-acc__list a:hover { color: #e21e5b; }
.nfc-acc__list a.nfc-acc__all { color: #e21e5b; }

/* FAQ */
.nfc-faq { background: #fafafa; padding: clamp(44px, 60.46px - 1.143vw, 56px) 0 clamp(56px, 50.06px + 1.524vw, 72px); }
.nfc-faq h2 { margin-bottom: clamp(24px, 22.51px + 0.381vw, 28px); }
.nfc-faq__item {
    background: #fff;
    border: 1px solid rgba(1, 1, 1, 0.1);
    border-radius: clamp(16px, 14.51px + 0.381vw, 20px);
    margin: 0 0 clamp(16px, 14.51px + 0.381vw, 20px);
    padding: 0;
}
.nfc-faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(16px, 11.54px + 1.143vw, 28px) clamp(17px, 14.40px + 0.667vw, 24px);
    font-size: clamp(16px, 13.03px + 0.762vw, 24px);
    font-weight: 500;
    line-height: 1.5;
    color: #010101;
}
.nfc-faq__item summary::-webkit-details-marker { display: none; }
.nfc-faq__item summary::after {
    content: "+";
    font-size: clamp(24px, 21.03px + 0.762vw, 32px);
    font-weight: 400;
    line-height: 1;
    color: #090909;
}
.nfc-faq__item[open] summary::after { content: "\2212"; }
.nfc-faq__item p {
    margin: 0;
    padding: 0 clamp(17px, 14.40px + 0.667vw, 24px) clamp(16px, 11.54px + 1.143vw, 28px);
    font-size: clamp(14px, 12.51px + 0.381vw, 18px);
    line-height: 1.6;
    color: #343434;
}

/* Tablet: fewer columns */
@media (max-width: 1100px) {
    .nfc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfc-press__row { justify-content: center; gap: 24px 36px; }
}

/* Phone: layout only; text sizes come from clamp() above */
@media (max-width: 700px) {
    .nfc-only-desktop { display: none; }
    .nfc-only-mobile { display: inline; }
    .nfc { padding-top: 65px; }

    .nfc-hero {
        align-items: flex-end;
        background-image: url("../images/child-page/hero-mobile.jpg");
        background-position: center 20%;
    }
    .nfc-hero::after {
        background: linear-gradient(205deg, rgba(105, 105, 105, 0) 50%, rgba(0, 0, 0, 0.7) 68%);
    }
    .nfc-hero__inner { width: min(287px, calc(100% - 48px)); padding-top: 0; }

    .nfc-band__head { flex-direction: column; align-items: flex-start; }
    .nfc-band--stories .nfc-band__head { flex-direction: row; align-items: center; }
    .nfc-grid { grid-template-columns: 1fr; }

    .nfc-press__row { justify-content: space-between; gap: 10px 12px; }
    .nfc-press__row::after { content: ""; order: 5; flex-basis: 100%; height: 0; }
    .nfc-press__logo--toi { order: 1; }
    .nfc-press__logo--news18 { order: 2; }
    .nfc-press__logo--timesnow { order: 3; }
    .nfc-press__logo--yourstory { order: 4; }
    .nfc-press__logo--theprint { order: 6; }
    .nfc-press__logo--indianexpress { order: 7; }
    .nfc-press__logo--entrepreneur { order: 8; }

    .nfc-stories { grid-template-columns: 1fr; }
    .nfc-story:nth-child(n+3) { display: none; }

    .nfc-editorial__clip.is-clipped { max-height: 900px; overflow: hidden; position: relative; }
    .nfc-editorial__clip.is-clipped::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 80px;
        background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    }
    .nfc-readmore {
        display: inline-block;
        margin-top: 20px;
        padding: 0;
        border: 0;
        background: none;
        font-size: 16px;
        font-weight: 600;
        color: #e21e5b;
        cursor: pointer;
    }
    .nfc-editorial__clip:not(.is-clipped) + .nfc-readmore { display: none; }

    .nfc-faq__item summary { align-items: flex-start; }
}

/* Very small phones (< 360px): let the press logos wrap instead of overflowing */
@media (max-width: 359px) {
    .nfc-press__row { justify-content: center; gap: 16px 20px; }
    .nfc-press__row::after { display: none; }
}
