.namayan-ai-content{
    --namayan-ai-bg:#f8fafc;
    --namayan-ai-text:#0f172a;
    --namayan-ai-muted:#475569;
    --namayan-ai-link:#1d4ed8;
    --namayan-ai-border:rgba(30,64,175,.16);
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    margin:1.4em 0;
    padding:1.1em 1.2em;
    border:1px solid var(--namayan-ai-border);
    border-radius:12px;
    background:var(--namayan-ai-bg);
    color:var(--namayan-ai-text);
    direction:inherit;
    text-align:start;
    overflow-wrap:anywhere;
}
.namayan-ai-content *,
.namayan-ai-content *::before,
.namayan-ai-content *::after{box-sizing:border-box}
.namayan-ai-content h2{margin:0 0 .75em;font-size:1.15em;line-height:1.6;color:inherit}
.namayan-ai-content h3{font-size:1em;line-height:1.75;margin:0 0 .35em;color:inherit}
.namayan-ai-content p,.namayan-ai-content li{line-height:1.85}
.namayan-ai-content p:last-child,.namayan-ai-content ul:last-child,.namayan-ai-content ol:last-child{margin-bottom:0}
.namayan-ai-content ul,.namayan-ai-content ol{padding-inline-start:1.4em;padding-inline-end:0}
.namayan-ai-content a{color:var(--namayan-ai-link);text-decoration-thickness:.08em;text-underline-offset:.15em;overflow-wrap:anywhere}
.namayan-ai-content--answer{border-inline-start:4px solid #2563eb}
.namayan-ai-content--keypoints{border-inline-start:4px solid #14b8a6}
.namayan-ai-content--sources{border-inline-start:4px solid #7c3aed}

/* FAQ — self-contained, accessible accordion with no JavaScript dependency. */
.namayan-ai-content--faq{
    --namayan-faq-accent:#0f766e;
    --namayan-faq-accent-strong:#0b5f59;
    --namayan-faq-soft:#ecfdf8;
    --namayan-faq-border:#d9e5e3;
    --namayan-faq-card:#fff;
    --namayan-faq-text:#172033;
    --namayan-faq-muted:#556274;
    margin:2em 0;
    padding:clamp(18px,2.4vw,28px);
    border:1px solid #dde7e5;
    border-radius:20px;
    background:linear-gradient(180deg,#fbfefd 0%,#f7fbfa 100%);
    color:var(--namayan-faq-text);
    box-shadow:0 14px 36px rgba(15,23,42,.06);
    overflow:hidden;
}
.namayan-faq__header{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    margin:0 0 18px;
    padding:0 2px;
}
.namayan-faq__icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:var(--namayan-faq-accent);
    color:#fff;
    font:800 24px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
    box-shadow:0 8px 20px rgba(15,118,110,.18);
}
.namayan-faq__heading-copy{display:grid;gap:2px;min-width:0}
.namayan-faq__eyebrow{
    color:var(--namayan-faq-accent);
    font-size:.72em;
    font-weight:800;
    letter-spacing:.08em;
    line-height:1.2;
}
.namayan-ai-content--faq .namayan-faq__heading-copy h2{
    margin:0;
    color:var(--namayan-faq-text);
    font-size:clamp(1.15em,2vw,1.42em);
    font-weight:800;
    line-height:1.55;
}
.namayan-faq__count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:5px 11px;
    border:1px solid #cce2de;
    border-radius:999px;
    background:var(--namayan-faq-soft);
    color:var(--namayan-faq-accent-strong);
    font-size:.78em;
    font-weight:700;
    white-space:nowrap;
}
.namayan-faq__list{display:grid;gap:10px}
.namayan-faq__item{
    min-width:0;
    margin:0;
    border:1px solid var(--namayan-faq-border);
    border-radius:14px;
    background:var(--namayan-faq-card);
    box-shadow:0 2px 8px rgba(15,23,42,.025);
    overflow:hidden;
    transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.namayan-faq__item[open]{
    border-color:#a9d3cc;
    box-shadow:0 8px 20px rgba(15,118,110,.07);
}
.namayan-faq__question{
    display:grid;
    grid-template-columns:minmax(0,1fr) 34px;
    align-items:center;
    gap:14px;
    min-width:0;
    padding:16px 18px;
    color:var(--namayan-faq-text);
    cursor:pointer;
    list-style:none;
    user-select:none;
    font-size:1em;
    font-weight:750;
    line-height:1.8;
    overflow-wrap:anywhere;
}
.namayan-faq__question::-webkit-details-marker{display:none}
.namayan-faq__question::marker{display:none;content:""}
.namayan-faq__question:focus-visible{
    outline:3px solid rgba(15,118,110,.2);
    outline-offset:-3px;
    border-radius:12px;
}
.namayan-faq__question-text{min-width:0}
.namayan-faq__toggle{
    position:relative;
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border:1px solid #d7e5e2;
    border-radius:10px;
    background:#f6faf9;
    color:var(--namayan-faq-accent);
    justify-self:end;
    transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.namayan-faq__toggle::before,
.namayan-faq__toggle::after{
    content:"";
    position:absolute;
    width:12px;
    height:2px;
    border-radius:2px;
    background:currentColor;
}
.namayan-faq__toggle::after{transform:rotate(90deg);transition:transform .18s ease,opacity .18s ease}
.namayan-faq__item[open] .namayan-faq__toggle{
    border-color:#b5d8d2;
    background:var(--namayan-faq-soft);
}
.namayan-faq__item[open] .namayan-faq__toggle::after{transform:rotate(0);opacity:0}
.namayan-faq__answer{
    min-width:0;
    padding:0 18px 17px;
    color:var(--namayan-faq-muted);
    overflow-wrap:anywhere;
}
.namayan-faq__answer::before{
    content:"";
    display:block;
    height:1px;
    margin:0 0 13px;
    background:linear-gradient(90deg,transparent,#e3ecea 12%,#e3ecea 88%,transparent);
}
.namayan-faq__answer p{
    margin:0;
    color:inherit;
    font-size:.96em;
    line-height:1.95;
}
.namayan-faq__answer a{overflow-wrap:anywhere;word-break:break-word}

@media (hover:hover){
    .namayan-faq__item:hover{border-color:#bfd9d4;box-shadow:0 6px 16px rgba(15,23,42,.045)}
    .namayan-faq__question:hover .namayan-faq__toggle{border-color:#acd1cb;background:var(--namayan-faq-soft)}
}
@media (max-width:600px){
    .namayan-ai-content{margin:1.1em 0;padding:.9em 1em;border-radius:10px}
    .namayan-ai-content h2{font-size:1.08em}
    .namayan-ai-content h3{font-size:1em}
    .namayan-ai-content--faq{margin:1.5em 0;padding:15px;border-radius:16px}
    .namayan-faq__header{grid-template-columns:40px minmax(0,1fr);gap:11px;margin-bottom:14px}
    .namayan-faq__icon{width:40px;height:40px;border-radius:12px;font-size:20px}
    .namayan-faq__count{grid-column:2;justify-self:start;margin-top:2px}
    .namayan-faq__question{grid-template-columns:minmax(0,1fr) 30px;gap:10px;padding:14px;font-size:.96em}
    .namayan-faq__toggle{width:30px;height:30px;border-radius:9px}
    .namayan-faq__answer{padding:0 14px 15px}
    .namayan-faq__answer p{font-size:.94em;line-height:1.9}
}
@media (prefers-reduced-motion:reduce){
    .namayan-ai-content *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
