@font-face{
    font-family:Naskh;
    src:url('fonts/NotoNaskhArabic-Regular.ttf') format('truetype');
    font-display:swap}
*{
    box-sizing:border-box}
html{
    scroll-behavior:smooth}
body{
    margin:0;
    background:#FAF8F3;
    color:#172B4D;
    font-family:Tahoma,Arial,sans-serif;
    font-size:15px;
    line-height:1.9}
a{
    color:inherit;
    text-decoration:none}
button,input,select{
    font:inherit}
button,a,input,select{
    touch-action:manipulation}
button{
    cursor:pointer}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{
    outline:3px solid #C9A35B;
    outline-offset:4px}
main{
    max-width:1200px;
    margin:auto;
    padding:0 32px}
.header{
    height:104px;
    max-width:1200px;
    padding:0 32px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #E5DDCF}
.brand{
    display:flex;
    gap:12px;
    align-items:center}
.brand>span{
    font-family:Naskh,serif;
    font-size:32px;
    font-weight:600;
    line-height:1.1}
.brand small{
    display:block;
    font-family:Arial,sans-serif;
    font-size:9px;
    letter-spacing:2px;
    margin-top:7px;
    font-weight:400;
    color:#667085}
.header nav{
    display:flex;
    gap:32px;
    align-items:center;
    font-size:13px}
.header nav .selected{
    color:#172B4D}
.nav-cta{
    border:1px solid #E5DDCF;
    padding:10px 20px;
    border-radius:8px;
    display:flex;
    gap:24px}
.hero{
    display:grid;
    grid-template-columns:1.05fr 1fr;
    gap:72px;
    align-items:center;
    padding:72px 0 65px}
.eyebrow{
    font-size:11px;
    font-weight:700;
    letter-spacing:.4px;
    color:#172B4D;
    display:inline-flex;
    gap:8px;
    align-items:center}
.eyebrow i,.mini-dot{
    height:7px;
    width:7px;
    border-radius:50%;
    display:inline-block;
    background:#172B4D}
.hero h1{
    font-size:49px;
    line-height:1.55;
    letter-spacing:-1.8px;
    margin:20px 0 18px;
    font-weight:600}
.hero h1 em{
    color:#C9A35B;
    font-style:normal;
    position:relative}
.hero h1 em:after{
    content:'';
    position:absolute;
    bottom:-8px;
    left:0;
    right:0;
    border-bottom:3px solid #E5DDCF;
    transform:rotate(-3deg)}
.lead{
    font-size:15px;
    line-height:2.1;
    color:#667085;
    margin-bottom:27px}
.hero-actions{
    display:flex;
    gap:12px;
    align-items:center}
.button{
    border:0;
    border-radius:8px;
    padding:12px 21px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:27px;
    font-size:13px;
    font-weight:600;
    line-height:1.9;
    transition:background .2s,transform .2s}
.button:hover{
    transform:translateY(-1px)}
.primary{
    background:#172B4D;
    color:white;
    box-shadow:0 5px 15px #172B4D12}
.primary:hover{
    background:#102039}
.secondary{
    background:#FFFFFF;
    color:#172B4D;
    border:1px solid #E5DDCF}
.hero-points{
    display:flex;
    gap:18px;
    margin-top:22px;
    font-size:9px;
    color:#667085}
.hero-art{
    position:relative;
    padding:20px 27px 42px;
    border-radius:28px;
    background:#F5F0E6;
    background-image:radial-gradient(#E5DDCF 1px,transparent 1px);
    background-size:20px 20px}
.art-label{
    display:flex;
    gap:7px;
    align-items:center;
    font-size:9px;
    color:#667085;
    margin-bottom:17px}
.latin{
    font-family:Arial,sans-serif;
    direction:ltr;
    letter-spacing:2px;
    font-size:9px}
.art-label .latin{
    margin-right:auto}
.sample-card{
    background:#FAF8F3;
    padding:22px 25px 19px;
    border-top:5px solid #172B4D;
    border-bottom:5px solid #C9A35B;
    border-radius:6px;
    box-shadow:0 18px 34px #172B4D15;
    min-height:352px;
    display:flex;
    flex-direction:column;
    position:relative}
.sample-card:after{
    content:'';
    border:1px solid #E5DDCF;
    position:absolute;
    inset:10px;
    pointer-events:none}
.card-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#172B4D}
.card-top>span:first-child{
    font-family:Naskh;
    font-size:27px}
.verse-ornament{
    text-align:center;
    color:#667085;
    font-size:25px;
    margin-top:13px}
.quran{
    font-family:Naskh,serif;
    font-weight:400;
    line-height:2.1;
    font-size:30px;
    white-space:pre-wrap}
.hero-verse{
    font-size:35px;
    text-align:center;
    margin:12px 0 22px;
    flex:1;
    display:grid;
    align-content:center}
.verse-source{
    font-size:12px;
    color:#C9A35B;
    text-align:center}
.card-bottom{
    border-top:1px solid #E5DDCF;
    padding-top:14px;
    margin-top:27px;
    display:flex;
    justify-content:space-between;
    font-size:7px;
    color:#667085;
    direction:ltr}
.card-bottom span{
    direction:rtl}
.floating-note{
    position:absolute;
    bottom:13px;
    left:-16px;
    background:#FFFFFF;
    border:1px solid #E5DDCF;
    box-shadow:0 6px 18px #172B4D0a;
    border-radius:12px;
    display:flex;
    gap:12px;
    align-items:center;
    padding:11px 15px;
    width:260px;
    font-size:11px}
.floating-note small{
    display:block;
    font-size:8px;
    color:#667085}
.floating-note>span:last-child{
    margin-right:auto;
    color:#172B4D}
.note-icon{
    font-size:25px;
    color:#172B4D;
    background:#F5F0E6;
    border-radius:8px;
    padding:0 9px}
.facts{
    border-top:1px solid #E5DDCF;
    border-bottom:1px solid #E5DDCF;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    padding:27px 0}
.facts>div{
    display:flex;
    align-items:center;
    gap:14px;
    justify-content:center;
    border-left:1px solid #E5DDCF}
.facts>div:last-child{
    border:0}
.facts strong{
    font-size:24px;
    font-weight:500;
    color:#172B4D}
.facts span{
    font-size:10px;
    color:#667085}
.how{
    padding:58px 0}
.section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:24px}
.section-heading h2{
    font-size:26px;
    margin:8px 0;
    font-weight:600}
.section-heading p{
    font-size:11px;
    color:#667085}
.steps{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px}
.steps article{
    position:relative;
    padding:23px;
    border:1px solid #E5DDCF;
    border-radius:12px;
    background:white}
.step-number{
    font-family:Arial;
    font-size:12px;
    color:#C9A35B;
    background:#FBF4E6;
    padding:5px 9px;
    border-radius:6px}
.steps h3{
    font-size:17px;
    margin:17px 0 7px}
.steps p{
    font-size:12px;
    color:#667085;
    margin:0;
    max-width:250px}
.quiet-banner{
    background:#F5F0E6;
    border:1px solid #E5DDCF;
    border-radius:14px;
    padding:30px;
    display:flex;
    gap:40px;
    align-items:center;
    justify-content:space-between}
.quiet-banner h2{
    font-size:23px;
    margin:9px 0}
.quiet-banner p{
    font-size:12px;
    color:#667085;
    max-width:630px;
    margin:0}
.quiet-banner .button{
    flex-shrink:0}
.status-line{
    font-size:10px;
    color:#667085;
    text-align:center;
    margin:24px 0 0}
.status-line .mini-dot{
    width:5px;
    height:5px;
    margin-left:6px}
footer{
    border-top:1px solid #E5DDCF;
    padding:26px 0;
    margin-top:55px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px}
footer .brand>span{
    font-size:24px}
footer p{
    font-size:10px;
    color:#667085}
footer>div{
    display:flex;
    gap:18px;
    font-size:9px;
    color:#667085}
.page-title{
    padding:46px 0 25px}
.page-title h1,.dashboard-title h1{
    font-size:34px;
    line-height:1.6;
    margin:10px 0}
.page-title p{
    font-size:13px;
    color:#667085}
.panel{
    background:white;
    border:1px solid #E5DDCF;
    border-radius:14px;
    padding:28px;
    margin-bottom:22px}
.narrow{
    max-width:560px;
    margin:70px auto}
.panel h2{
    margin:5px 0 22px;
    font-size:22px}
.panel-heading{
    margin-bottom:23px}
.notice{
    border:1px solid #E5DDCF;
    border-radius:9px;
    padding:13px 18px;
    font-size:12px;
    background:#F5F0E6;
    margin:0 0 20px}
.notice.error{
    background:#FBF4E6;
    border-color:#F5F0E6;
    color:#C9A35B}
.notice.success{
    background:#F5F0E6}
.toolbar{
    display:flex;
    gap:15px;
    align-items:center;
    border-bottom:1px solid #E5DDCF;
    padding-bottom:22px}
.toolbar select{
    max-width:320px}
.toolbar label{
    white-space:nowrap}
.surah-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:24px}
.surah-heading span{
    font-size:12px;
    color:#667085}
.verse-list article{
    border-top:1px solid #F5F0E6;
    display:flex;
    gap:20px;
    align-items:center;
    padding:17px 0}
.verse-list p{
    flex:1;
    margin:0;
    font-size:29px}
.ayah-number{
    border:1px solid #E5DDCF;
    border-radius:50%;
    min-width:32px;
    min-height:32px;
    font-size:11px;
    display:grid;
    place-items:center;
    color:#172B4D}
.small-link{
    font-size:10px;
    white-space:nowrap;
    color:#172B4D}
.preview-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:22px}
.preview-card{
    background:#FAF8F3;
    border-top:5px solid #172B4D;
    border-bottom:5px solid #C9A35B;
    border-radius:6px;
    padding:28px;
    text-align:center;
    min-height:400px;
    margin-bottom:20px}
.preview-brand{
    color:#172B4D;
    font-family:Naskh;
    font-size:30px}
.preview-card .quran{
    font-size:32px;
    margin:35px 0}
.preview-card small{
    display:block;
    margin-top:35px;
    font-size:10px;
    color:#667085}
.center{
    text-align:center}
.muted{
    font-size:11px;
    color:#667085}
.dashboard-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:35px 0 25px}
.handle{
    text-align:right;
    color:#667085;
    font-size:12px;
    margin:0}
.badge{
    display:inline-block;
    border:1px solid #E5DDCF;
    background:#F5F0E6;
    color:#667085;
    font-size:10px;
    padding:4px 12px;
    border-radius:20px;
    white-space:nowrap}
.badge.enabled{
    background:#F5F0E6;
    color:#172B4D;
    border-color:#E5DDCF}
.dashboard-grid{
    display:grid;
    grid-template-columns:1.7fr 1fr;
    gap:24px;
    align-items:start}
.schedule-form{
    display:grid;
    gap:24px}
.schedule-form label{
    display:block;
    font-size:12px;
    font-weight:600}
.schedule-form small{
    display:block;
    color:#667085;
    font-size:10px;
    line-height:1.8;
    font-weight:400;
    margin-top:6px}
input:not([type=checkbox]):not([type=radio]),select{
    display:block;
    width:100%;
    background:#FAF8F3;
    border:1px solid #E5DDCF;
    border-radius:7px;
    padding:11px 13px;
    margin-top:7px;
    color:#172B4D;
    min-height:47px}
fieldset{
    border:0;
    padding:0;
    margin:0}
legend{
    font-size:12px;
    margin-bottom:12px}
.choice-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px}
.choice{
    border:1px solid #E5DDCF;
    padding:12px 9px;
    border-radius:8px;
    position:relative;
    text-align:center;
    cursor:pointer}
.choice:has(input:checked){
    border-color:#172B4D;
    background:#F5F0E6}
.choice input{
    accent-color:#172B4D}
.choice strong{
    display:block;
    font-size:12px}
.choice small{
    font-size:8px}
.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px}
.consent,.check-line{
    display:flex!important;
    align-items:flex-start;
    gap:10px;
    line-height:1.9}
.consent{
    padding:14px;
    background:#F5F0E6;
    border-radius:8px;
    font-size:10px!important;
    font-weight:400!important}
.consent input,.check-line input{
    margin-top:5px;
    accent-color:#172B4D}
.full{
    width:100%}
.text-btn{
    background:none;
    border:0;
    color:#667085;
    padding:9px;
    font-size:12px}
.danger{
    color:#C9A35B}
.inline{
    display:inline}
.next-time{
    font-size:17px;
    margin:13px 0;
    color:#172B4D}
.mini-preview{
    text-align:center;
    padding:19px;
    background:#FAF8F3;
    border-top:4px solid #172B4D;
    border-bottom:3px solid #C9A35B;
    border-radius:6px;
    margin-bottom:20px}
.mini-preview .quran{
    font-size:25px;
    max-height:350px;
    overflow:auto}
.mini-preview .verse-source{
    font-size:10px}
.empty-state{
    padding:55px 15px;
    text-align:center;
    color:#667085;
    font-size:12px}
.compact{
    padding:22px}
.stat-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:12px;
    margin-bottom:17px}
.stat-row strong{
    font-size:27px;
    color:#172B4D}
.table-wrap{
    overflow:auto}
table{
    width:100%;
    border-collapse:collapse;
    text-align:right;
    font-size:12px}
th{
    color:#667085;
    font-size:10px;
    background:#F5F0E6}
td,th{
    padding:13px;
    border-bottom:1px solid #F5F0E6}
td a{
    color:#172B4D}
.prose{
    max-width:850px;
    margin:40px auto}
.prose h2{
    margin:30px 0 8px;
    font-size:20px}
.prose p{
    font-size:14px;
    line-height:2.1;
    color:#667085}
.prose a{
    color:#172B4D;
    text-decoration:underline}
.metrics{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin:22px 0}
.metrics .panel{
    padding:22px}
.metrics strong{
    display:block;
    font-size:34px;
    color:#172B4D}
.metrics span{
    font-size:11px;
    color:#667085}
.admin-nav{
    display:flex;
    gap:20px;
    font-size:12px;
    margin-bottom:22px}
.form-stack{
    display:grid;
    gap:17px}
.checklist{
    font-size:13px;
    line-height:2.3}
.error-code{
    direction:ltr;
    text-align:left;
    font-family:monospace}
.narrow h1{
    font-size:26px}
@media(max-width:960px){
    .hero{
    gap:30px}
.hero h1{
    font-size:38px}
.hero-art{
    padding:17px}
.floating-note{
    left:-5px}
.facts>div{
    display:block;
    text-align:center}
.facts span{
    display:block}
.header nav{
    gap:18px}
.hero-points{
    gap:9px;
    font-size:8px}
.dashboard-grid{
    grid-template-columns:1.5fr 1fr}
footer>div{
    gap:10px}
}
@media(max-width:700px){
    main,.header{
    padding-left:20px;
    padding-right:20px}
.header{
    height:84px}
.header nav{
    gap:14px;
    font-size:11px}
.header .nav-cta{
    padding:7px 10px;
    gap:7px}
.header .brand>span{
    font-size:27px}
.brand small{
    font-size:7px}
.header .brand img{
    width:35px;
    height:35px}
.hero{
    grid-template-columns:1fr;
    padding:36px 0;
    gap:35px}
.hero h1{
    font-size:39px;
    letter-spacing:-1px;
    margin-top:14px}
.lead{
    font-size:13px}
.hero-points{
    font-size:8px;
    gap:13px}
.hero-art{
    max-width:440px;
    width:100%;
    margin:auto;
    padding:18px 22px 39px}
.sample-card{
    min-height:320px}
.floating-note{
    left:-7px;
    width:240px}
.facts{
    grid-template-columns:repeat(2,1fr);
    gap:20px}
.facts>div{
    display:flex;
    border:0}
.facts span{
    max-width:90px;
    font-size:9px}
.facts strong{
    font-size:24px}
.section-heading h2{
    font-size:22px}
.section-heading p{
    display:none}
.steps{
    grid-template-columns:1fr;
    gap:12px}
.steps article{
    padding:20px}
.steps p{
    max-width:none}
.steps h3{
    margin-top:10px}
.how{
    padding:36px 0}
.quiet-banner{
    display:block;
    padding:23px}
.quiet-banner h2{
    font-size:20px}
.quiet-banner .button{
    margin-top:20px}
.quiet-banner p{
    font-size:11px}
.status-line{
    font-size:8px}
footer{
    flex-wrap:wrap;
    margin-top:32px;
    gap:10px}
footer>div{
    width:100%;
    justify-content:space-between}
.dashboard-grid{
    grid-template-columns:1fr}
.panel{
    padding:20px}
.form-grid{
    grid-template-columns:1fr}
.dashboard-title h1,.page-title h1{
    font-size:27px}
.toolbar{
    flex-wrap:wrap}
.verse-list article{
    gap:12px;
    flex-wrap:wrap}
.verse-list p{
    font-size:26px}
.verse-list .small-link{
    margin-right:43px}
.metrics{
    grid-template-columns:1fr 1fr}
.choice-grid{
    gap:5px}
.choice strong{
    font-size:10px}
.preview-card{
    padding:19px}
.preview-card .quran{
    font-size:28px}
}


.actual-card{
    display:block;
    width:100%;
    height:auto;
    border-radius:15px;
    box-shadow:0 18px 45px #172B4D17;
    margin-bottom:24px}
.share-preview-panel{
    padding:20px}
.share-options{
    display:grid;
    gap:17px;
    margin:22px 0 12px}
.share-options legend{
    font-weight:700;
    font-size:13px}
.share-options .choice{
    padding:13px 6px}
.share-confirm{
    max-width:650px;
    margin:0 auto}
.share-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-top:24px;
    font-size:12px}
.tweet-text{
    border-right:4px solid #C9A35B;
    background:#F5F0E6;
    padding:22px;
    font-size:27px;
    border-radius:8px;
    margin-bottom:23px}
.share-options input{
    accent-color:#172B4D}


textarea.tweet-text {
    width:100%;
    box-sizing:border-box;
    resize:vertical;
    line-height:2.2}
 .share-confirm>.button,.share-confirm>form {
    margin-block:12px}


[hidden]{
    display:none!important}
button:disabled{
    opacity:.55;
    cursor:wait}
textarea:focus-visible{
    outline:3px solid #C9A35B;
    outline-offset:4px}
@media(prefers-reduced-motion:reduce){
    html{
    scroll-behavior:auto}
.button{
    transition:none}
.button:hover{
    transform:none}
}

.hadith-full{font-size:28px;line-height:2.2}.excerpt{font-size:25px}.pagination{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.share-confirm>.button{margin:12px 0}.hero-art.panel{padding:36px}.hero-art h2{font-size:38px;line-height:1.6}.hero-art p{font-size:15px}.panel fieldset{margin-bottom:18px}.panel form+.button{margin-top:15px}@media(max-width:700px){.hadith-full{font-size:24px}.header nav{gap:10px}.brand small{letter-spacing:0}.page-title h1{overflow-wrap:anywhere}}

/* Haddith identity 1.1.0: approved navy/gold logo. */
:root{--brand-navy:#172B4D;--brand-gold:#C9A35B}
.header .brand .brand-logo{display:block;width:180px;height:auto;max-width:100%}
footer .brand .brand-logo{display:block;width:132px;height:auto}
.header .brand{flex-shrink:0}.header{border-bottom-color:#E5DDCF}
.hero h1 em{color:#172B4D}.hero h1 em:after{border-color:#C9A35B}
.hero-art{background-color:#F5F0E6;background-image:radial-gradient(#DCC79E 1px,transparent 1px)}
.hero-art.panel{border-top:4px solid #C9A35B}
.notice.error{color:#172B4D;border-color:#C9A35B;background:#FBF4E6}
.step-number{color:#172B4D;background:#F0E5CF}
.verse-source,.danger{color:#172B4D}.tweet-text{border-right-color:#C9A35B}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#172B4D}
@media(max-width:700px){.header .brand .brand-logo{width:140px}.header{gap:14px}.header nav{gap:10px}}
@media(max-width:430px){.header{height:auto;min-height:84px;flex-wrap:wrap;justify-content:center;padding-top:15px;padding-bottom:15px}.header nav{justify-content:center;width:100%;gap:20px}}

/* Narration typography 1.2.0. Isnad and reference share one size token. */
:root{--isnad-size:20px;--matn-size:32px;--isnad-color:#667085}
.hadith-full{font-size:28px;line-height:2.2;white-space:pre-wrap}
.hadith-isnad,.hadith-reference{font-family:Naskh,serif;font-size:var(--isnad-size)!important;line-height:2;color:var(--isnad-color)!important;font-weight:400}
.hadith-matn{font-family:Naskh,serif;font-size:var(--matn-size);line-height:2.1;color:#172B4D;font-weight:400}
.hadith-isnad+.hadith-matn{border-top:1px solid #E5DDCF;padding-top:12px;margin-top:12px}
.hadith-full .hadith-isnad,.hadith-full .hadith-matn{display:block}
.typography-editor{width:100%;font-family:Naskh,serif;font-size:24px;line-height:2.1;min-height:380px;resize:vertical;border:1px solid #E5DDCF;border-radius:10px;padding:20px;box-sizing:border-box}
.typography-actions{display:flex;gap:10px;flex-wrap:wrap;margin-block:16px}
@media(max-width:700px){:root{--isnad-size:18px;--matn-size:28px}}

/* Unified text, cards, share flow */
.share-content .actual-card{display:block;width:100%;height:auto;margin:20px auto;max-width:1080px}.share-content .share-original{white-space:pre-wrap;overflow-wrap:anywhere}.share-content [data-share-status]{font-size:14px;line-height:1.8}.share-content button:disabled{opacity:.6;cursor:wait}

.permalink{overflow-wrap:anywhere;font-size:15px;line-height:1.8}.permalink bdi{unicode-bidi:isolate}

.permalink a{text-decoration:underline;text-underline-offset:4px;color:#172B4D}
