:root { --ti-ink:#233b34; --ti-green:#256e59; --ti-deep:#21493e; --ti-gold:#b9965b; --ti-line:#e2e9e2; --ti-muted:#64776e; --ti-paper:#f9f8f4; }
html { scroll-behavior:smooth; }
body.fprtr-ti-page { color:var(--ti-ink); background:var(--ti-paper); line-height:1.6; }
.fprtr-ti-wrap { width:min(calc(100% - 32px),1040px); margin:0 auto; padding:30px 0 68px; }
.fprtr-ti-hero { position:relative; isolation:isolate; overflow:hidden; min-height:330px; border:1px solid #d9dfd2; border-radius:20px; background:#f7f5ee url('imam-reza-watercolor.webp') center 47%/cover no-repeat; box-shadow:0 12px 35px rgba(35,61,42,.065); }
.fprtr-ti-hero::before { position:absolute; z-index:-1; inset:0; content:""; background:linear-gradient(90deg,rgba(248,247,240,.97) 0%,rgba(248,247,240,.89) 44%,rgba(248,247,240,.13) 100%); }
.fprtr-ti-hero-inner { max-width:710px; padding:clamp(25px,4.5vw,48px); }
.fprtr-ti-breadcrumb { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin-bottom:35px; color:#4d695a; font-size:.79rem; }
.fprtr-ti-breadcrumb a { text-decoration:none; }
.fprtr-ti-breadcrumb a:hover { color:var(--ti-green); text-decoration:underline; }
.fprtr-ti-hero h1 { max-width:660px; margin:0 0 9px; color:#213d33; font-size:clamp(1.65rem,3.3vw,2.55rem); font-weight:680; line-height:1.24; }
.fprtr-ti-subtitle { margin:0 0 13px; color:#395a4b; font-size:clamp(1rem,1.8vw,1.22rem); font-weight:600; }
.fprtr-ti-intro { max-width:630px; margin:0; color:#486358; font-size:.95rem; line-height:1.76; }
.fprtr-ti-tabs { display:flex; flex-wrap:wrap; gap:10px; padding:22px 0 3px; }
.fprtr-ti-tabs a { padding:9px 15px; border:1px solid #d4e2d7; border-radius:9px; color:var(--ti-deep); background:#f1f5ef; font-size:.88rem; font-weight:600; text-decoration:none; }
.fprtr-ti-tabs a:hover,.fprtr-ti-tabs a:focus-visible { border-color:var(--ti-green); background:#e6f0e9; outline:2px solid var(--ti-gold); outline-offset:2px; }
.fprtr-ti-year-tabs { display:flex; width:max-content; max-width:100%; gap:4px; margin-top:30px; padding:4px; border:1px solid #d8e6dc; border-radius:12px; background:#edf3ed; scroll-margin-top:80px; }
.fprtr-ti-year-tabs a { display:block; min-width:112px; padding:8px 18px; border-radius:9px; color:var(--ti-deep); font-size:.94rem; font-weight:600; text-align:center; text-decoration:none; }
.fprtr-ti-year-tabs a:hover { background:#dceadd; }
.fprtr-ti-year-tabs a:focus-visible { outline:2px solid var(--ti-gold); outline-offset:2px; }
.fprtr-ti-year-tabs a.is-active { color:#fff; background:var(--ti-green); box-shadow:0 2px 7px rgba(20,76,51,.16); }
.fprtr-ti-year-tabs + .fprtr-ti-section { margin-top:21px; }
.fprtr-ti-section { margin-top:37px; scroll-margin-top:84px; }
.fprtr-ti-section h2 { margin:0 0 16px; color:var(--ti-deep); font-size:clamp(1.25rem,2.5vw,1.65rem); font-weight:670; line-height:1.35; }
.fprtr-ti-table-shell { overflow-x:auto; border:1px solid var(--ti-line); border-radius:13px; background:#fff; box-shadow:0 6px 23px rgba(26,64,46,.055); }
.fprtr-ti-table { width:100%; border-collapse:separate; border-spacing:0; font-size:.84rem; line-height:1.45; }
.fprtr-ti-table th,.fprtr-ti-table td { padding:12px 9px; border-bottom:1px solid var(--ti-line); text-align:left; vertical-align:middle; overflow-wrap:anywhere; }
.fprtr-ti-table thead th { color:var(--ti-deep); background:#eef4ed; font-weight:680; }
.fprtr-ti-table tbody tr:last-child > * { border-bottom:0; }
.fprtr-ti-table tbody tr:nth-child(even) { background:#fdfcf9; }
.fprtr-ti-table tbody tr:hover { background:#f3f7f1; }
.fprtr-ti-row-number { width:35px; color:var(--ti-muted); }
.fprtr-ti-row-name { min-width:150px; color:var(--ti-deep); font-weight:670; }
.fprtr-ti-cell-birth { border-left:1px solid #e0ece4; }
.fprtr-ti-cell-martyr { border-left:1px solid #eee7d9; }
.fprtr-ti-cell-hijri { color:#24614e; font-weight:400; }
.fprtr-ti-cell-martyr.fprtr-ti-cell-hijri { color:#80653c; }
.fprtr-ti-cell-gregorian { color:#53685c; }
.fprtr-ti-table .fprtr-ti-mobile-events { display:none; }
.fprtr-ti-cell-action { text-align:center !important; }
.fprtr-ti-detail { display:inline-flex; align-items:center; gap:5px; padding:4px 0; border:0; color:var(--ti-green); background:transparent; font-size:12px; font-weight:400; text-decoration:none; white-space:nowrap; }
.fprtr-ti-detail span { display:none; font-size:.78em; line-height:1; }
.fprtr-ti-detail:hover { color:var(--ti-deep); text-decoration:underline; text-underline-offset:3px; }
.fprtr-ti-detail:focus-visible { outline:2px solid var(--ti-gold); outline-offset:2px; }
.fprtr-ti-error { padding:20px; border:1px solid var(--ti-line); border-radius:9px; background:#fff; }
.fprtr-ti-short-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.fprtr-ti-short-card { display:flex; flex-direction:column; min-width:0; scroll-margin-top:85px; overflow:hidden; border:1px solid var(--ti-line); border-radius:14px; background:#fff; box-shadow:0 7px 25px rgba(30,65,46,.065); }
.fprtr-ti-short-card:target { outline:3px solid var(--ti-gold); outline-offset:3px; }
.fprtr-ti-short-card > img { display:block; width:100%; height:190px; object-fit:cover; background:#e8eee7; }
.fprtr-ti-short-body { display:flex; flex:1; flex-direction:column; padding:19px; }
.fprtr-ti-short-card h3 { margin:0 0 4px; color:var(--ti-deep); font-size:1.17rem; line-height:1.3; }
.fprtr-ti-short-card p { overflow-wrap:anywhere; }
.fprtr-ti-card-intro { margin:0 0 12px; color:var(--ti-muted); font-size:.86rem; }
.fprtr-ti-card-bio { margin:0 0 13px; color:#455a4e; font-size:.9rem; }
.fprtr-ti-card-occasions { display:grid; gap:10px; margin-top:3px; }
.fprtr-ti-card-occasion { padding:12px 14px; border:1px solid #dce9df; border-radius:10px; background:#f5f9f5; }
.fprtr-ti-card-occasion--martyr { border-color:#e9e3d5; background:#faf8f1; }
.fprtr-ti-occasion-kind { display:inline-block; margin-bottom:5px; padding:2px 8px; border-radius:30px; color:#216149; background:#e1efe4; font-size:.76rem; font-weight:700; }
.fprtr-ti-card-occasion--martyr .fprtr-ti-occasion-kind { color:#775d33; background:#efe8d8; }
.fprtr-ti-card-occasion strong { display:block; color:var(--ti-deep); font-size:.91rem; line-height:1.42; overflow-wrap:anywhere; }
.fprtr-ti-occasion-dates { display:block; margin-top:5px; color:#587062; font-size:.79rem; }
.fprtr-ti-card-occasion p { margin:9px 0 0; color:#4c6156; font-size:.85rem; line-height:1.65; }
.fprtr-ti-biography { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-top:auto; padding:15px 1px 0; color:var(--ti-green); font-size:.88rem; font-weight:700; text-decoration:none; text-align:right; }
.fprtr-ti-biography:hover,.fprtr-ti-biography:focus-visible { color:var(--ti-deep); text-decoration:underline; text-underline-offset:4px; outline:none; }
.fprtr-ti-note { display:flex; align-items:center; gap:15px; margin-top:27px; padding:18px 20px; border:1px solid #d4e5d7; border-radius:13px; background:#eef5eb; }
.fprtr-ti-note > span { display:grid; flex:none; place-items:center; width:43px; height:43px; border-radius:50%; color:#fff; background:var(--ti-green); font-size:1.3rem; }
.fprtr-ti-note > div { flex:1; min-width:0; }
.fprtr-ti-note h3 { margin:0 0 4px; font-size:1.07rem; }
.fprtr-ti-note p { margin:0; color:#51685b; font-size:.87rem; }
.fprtr-ti-note > a { flex:none; padding:9px 13px; border-radius:8px; color:#fff; background:var(--ti-deep); font-size:.85rem; font-weight:650; text-decoration:none; }
.fprtr-ti-note > a:hover,.fprtr-ti-note > a:focus-visible { background:var(--ti-green); outline:2px solid var(--ti-gold); outline-offset:2px; }
.fprtr-ti-faq details { margin:9px 0; padding:13px 17px; border:1px solid var(--ti-line); border-radius:9px; background:#fff; }
.fprtr-ti-faq summary { cursor:pointer; font-weight:600; }
.fprtr-ti-faq p { margin:11px 0 0; color:var(--ti-muted); }
.fprtr-ti-footer { display:flex; justify-content:space-between; gap:16px; width:min(calc(100% - 32px),1040px); margin:auto; padding:25px 0; border-top:1px solid var(--ti-line); color:var(--ti-muted); font-size:.87rem; }
@media(max-width:960px) and (min-width:861px) { .fprtr-ti-table { min-width:850px; } }
@media(max-width:860px) {
    .fprtr-ti-wrap { width:min(calc(100% - 24px),720px); padding:18px 0 48px; }
    .fprtr-ti-hero { min-height:0; background-position:65% center; }
    .fprtr-ti-hero::before { background:linear-gradient(90deg,rgba(248,247,240,.97),rgba(248,247,240,.78)); }
    .fprtr-ti-hero-inner { padding:22px 20px 26px; }
    .fprtr-ti-breadcrumb { margin-bottom:24px; font-size:.72rem; }
    .fprtr-ti-intro { font-size:.87rem; }
    .fprtr-ti-tabs { display:none; }
    .fprtr-ti-year-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; margin-top:22px; }
    .fprtr-ti-year-tabs a { min-width:0; }
    .fprtr-ti-section { margin-top:31px; }
    .fprtr-ti-table-shell { overflow:visible; border:0; background:transparent; box-shadow:none; }
    .fprtr-ti-table,.fprtr-ti-table tbody { display:block; width:100%; }
    .fprtr-ti-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
    .fprtr-ti-table tbody { display:grid; gap:12px; }
    .fprtr-ti-table tr { position:relative; display:grid; grid-template-columns:1fr; gap:0; padding:16px; border:1px solid var(--ti-line); border-radius:14px; background:#fff; box-shadow:0 5px 17px rgba(25,65,44,.045); }
    .fprtr-ti-table tbody tr:nth-child(even),.fprtr-ti-table tbody tr:hover { background:#fff; }
    .fprtr-ti-table th,.fprtr-ti-table td { display:block; min-width:0; padding:0; border:0; text-align:left !important; font-size:.86rem; }
    .fprtr-ti-row-number { position:absolute; top:14px; left:14px; display:grid !important; place-items:center; width:27px; height:27px; border-radius:50%; color:var(--ti-green); background:#e9f3eb; font-size:.78rem !important; }
    .fprtr-ti-row-name { min-height:30px; margin:1px 0 12px; padding-left:37px !important; color:var(--ti-deep); font-size:1.04rem !important; }
    .fprtr-ti-table .fprtr-ti-cell-birth,.fprtr-ti-table .fprtr-ti-cell-martyr { display:none; }
    .fprtr-ti-table .fprtr-ti-mobile-events { display:block; }
    .fprtr-ti-mobile-events { padding:0 !important; }
    .fprtr-ti-mobile-event { padding:8px 14px; border:0; border-left:1px solid var(--ti-green); border-radius:0; background:#f3f7f4; }
    .fprtr-ti-mobile-event + .fprtr-ti-mobile-event { margin-top:1px; }
    .fprtr-ti-mobile-event--martyr { border-left-color:var(--ti-gold); background:#faf8f1; }
    .fprtr-ti-mobile-kind { display:block; margin-bottom:7px; color:var(--ti-deep); font-size:.81rem; font-weight:650; }
    .fprtr-ti-mobile-event--martyr .fprtr-ti-mobile-kind { color:#735d3b; }
    .fprtr-ti-mobile-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .fprtr-ti-mobile-dates > div { min-width:0; }
    .fprtr-ti-mobile-dates small { display:block; margin-bottom:2px; color:#6c7d70; font-size:.7rem; }
    .fprtr-ti-mobile-dates span { display:block; color:#2b493c; font-size:.87rem; font-weight:400; overflow-wrap:anywhere; }
    .fprtr-ti-table .fprtr-ti-cell-action { margin-top:9px; text-align:right !important; }
    .fprtr-ti-detail { justify-content:flex-end; width:auto; padding:2px 0; }
    .fprtr-ti-detail span { display:inline; }
    .fprtr-ti-short-grid { grid-template-columns:1fr; gap:16px; }
    .fprtr-ti-short-card > img { height:190px; }
    .fprtr-ti-note { flex-wrap:wrap; padding:16px; }
    .fprtr-ti-note > div { flex-basis:calc(100% - 60px); }
    .fprtr-ti-note > a { margin-left:58px; }
}
@media(max-width:360px) {
    .fprtr-ti-table tr { padding:12px; }
    .fprtr-ti-mobile-event { padding:10px; }
    .fprtr-ti-mobile-dates { gap:8px; }
    .fprtr-ti-mobile-dates span { font-size:.8rem; }
    .fprtr-ti-occasion-dates { font-size:.75rem; }
}
