/* Tifli Radar v3.31 — a deliberately simple family schedule. */
:root{--tr331-navy:#26365e;--tr331-blue:#5062a9;--tr331-red:#d7616b;--tr331-text:#27304a;--tr331-muted:#6e7588;--tr331-line:#e0e5ef;--tr331-soft:#f5f7fb;--tr331-white:#fff}
.tr-family-week,.tr-family-week-widget,.tr-family-week-place-cta,.tr-v331-week-plan-link{font-family:Tajawal,"Noto Sans Arabic",Arial,sans-serif}
.tr-family-week{width:min(calc(100% - 28px),1120px);margin:34px auto 58px;color:var(--tr331-text)}
.tr-family-week__hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:28px 30px;border:1px solid #e1e6ef;border-radius:26px;background:linear-gradient(135deg,#fff,#f4f6fb);box-shadow:0 18px 48px rgba(38,54,94,.08)}
.tr-family-week__hero span,.tr-family-week__timeline>header span,.tr-family-week-widget header span,.tr-family-week__access>span{color:var(--tr331-red);font-size:12px;font-weight:900}
.tr-family-week__hero h1{margin:3px 0;color:var(--tr331-navy);font-size:clamp(30px,4vw,44px);line-height:1.25}.tr-family-week__hero p{margin:0;color:var(--tr331-muted);font-size:15px}
.tr-family-week__hero>a,.tr-family-week__access>a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 20px;border-radius:14px;background:var(--tr331-navy);color:#fff!important;font-weight:900;text-decoration:none!important;white-space:nowrap}
.tr-family-week__message{margin:16px 0 0;padding:12px 16px;border:1px solid #cfe5d7;border-radius:13px;background:#f0faf4;color:#28643d;font-weight:800}.tr-family-week__message--error{border-color:#f0cdd1;background:#fff4f5;color:#9a3e48}
.tr-family-week__layout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);align-items:start;gap:22px;margin-top:22px}
.tr-family-week__form-card,.tr-family-week__timeline{border:1px solid var(--tr331-line);border-radius:22px;background:#fff;box-shadow:0 13px 34px rgba(38,54,94,.06)}
.tr-family-week__form-card{overflow:hidden}.tr-family-week__form-card summary{display:flex;align-items:center;justify-content:space-between;padding:19px 20px;color:var(--tr331-navy);font-size:17px;font-weight:900;cursor:pointer;list-style:none}.tr-family-week__form-card summary::-webkit-details-marker{display:none}.tr-family-week__form-card summary small{color:var(--tr331-muted);font-size:11px;font-weight:700}.tr-family-week__form-card[open] summary{border-bottom:1px solid var(--tr331-line)}
.tr-family-week__form-card form{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:20px}.tr-family-week__form-card label{display:grid;gap:6px;min-width:0}.tr-family-week__form-card label>span{color:var(--tr331-navy);font-size:13px;font-weight:900}.tr-family-week__form-card label small{color:var(--tr331-muted);font-size:10px}.tr-family-week__wide,.tr-family-week__submit{grid-column:1/-1}
.tr-family-week__form-card input,.tr-family-week__form-card select,.tr-family-week__form-card textarea{width:100%;min-height:45px;margin:0;padding:10px 11px;border:1px solid #d9dfeb;border-radius:11px;background:#fff;color:var(--tr331-text);font:inherit;font-size:13px;box-sizing:border-box}.tr-family-week__form-card textarea{min-height:74px;resize:vertical}.tr-family-week__form-card input:focus,.tr-family-week__form-card select:focus,.tr-family-week__form-card textarea:focus{border-color:var(--tr331-blue);outline:3px solid rgba(80,98,169,.13)}
.tr-family-week__submit{min-height:46px;border:0;border-radius:12px;background:var(--tr331-blue);color:#fff;font:inherit;font-weight:900;cursor:pointer}
.tr-family-week__timeline{padding:22px}.tr-family-week__timeline>header{display:flex;align-items:end;justify-content:space-between;gap:18px;padding-bottom:17px;border-bottom:1px solid var(--tr331-line)}.tr-family-week__timeline h2{margin:3px 0 0;color:var(--tr331-navy);font-size:25px}.tr-family-week__timeline>header small{color:var(--tr331-muted);font-size:11px}.tr-family-week__timeline>header small a{color:var(--tr331-blue);font-weight:900}
.tr-family-week__day{padding-top:18px}.tr-family-week__day>h3{margin:0 0 10px;color:var(--tr331-navy);font-size:14px}.tr-family-week__item{position:relative;display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:10px;padding:15px;border:1px solid #e4e8f0;border-radius:15px;background:#fff}.tr-family-week__item:before{content:"";position:absolute;inset-block:13px;inset-inline-start:0;width:4px;border-radius:5px;background:var(--tr331-blue)}.tr-family-week__item--health:before{background:#d55d68}.tr-family-week__item--education:before{background:#3f8a68}.tr-family-week__item--activity:before{background:#c08a35}
.tr-family-week__item>time{color:var(--tr331-navy);font-size:12px;font-weight:900}.tr-family-week__item-body>span{color:var(--tr331-red);font-size:10px;font-weight:900}.tr-family-week__item-body h4{margin:2px 0;color:var(--tr331-text);font-size:15px}.tr-family-week__item-body p,.tr-family-week__item-body small{display:block;margin:0;color:var(--tr331-muted);font-size:11px;line-height:1.55}.tr-family-week__item.is-done{opacity:.58}.tr-family-week__item.is-done h4{text-decoration:line-through}
.tr-family-week__item-actions{display:flex;gap:6px}.tr-family-week__item-actions form{margin:0}.tr-family-week__item-actions button,.tr-family-week__item-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border:1px solid #dce2ed;border-radius:9px;background:var(--tr331-soft);color:var(--tr331-navy)!important;font:inherit;font-size:11px;font-weight:900;text-decoration:none!important;cursor:pointer}.tr-family-week__item-actions form[data-tr-week-delete] button{color:#a33f49!important}
.tr-family-week__empty{padding:44px 20px;text-align:center}.tr-family-week__empty strong{display:block;color:var(--tr331-navy);font-size:19px}.tr-family-week__empty p{margin:5px 0;color:var(--tr331-muted);font-size:13px}.tr-family-week__empty>div{display:flex;justify-content:center;gap:8px;margin-top:15px}.tr-family-week__empty a{display:inline-flex;min-height:38px;align-items:center;padding:7px 12px;border:1px solid #dce2ed;border-radius:10px;background:var(--tr331-soft);color:var(--tr331-navy)!important;font-size:11px;font-weight:900;text-decoration:none!important}
.tr-family-week__access{max-width:620px;margin:80px auto;padding:36px;border:1px solid var(--tr331-line);border-radius:25px;background:#fff;text-align:center;box-shadow:0 18px 50px rgba(38,54,94,.08)}.tr-family-week__access h1{margin:5px 0;color:var(--tr331-navy);font-size:31px}.tr-family-week__access p{margin:0 0 20px;color:var(--tr331-muted)}
.tr-family-week-widget{width:min(calc(100% - 28px),1180px);margin:24px auto;padding:22px;border:1px solid var(--tr331-line);border-radius:22px;background:#fff;box-shadow:0 13px 34px rgba(38,54,94,.06);color:var(--tr331-text)}.tr-family-week-widget>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.tr-family-week-widget h2{margin:2px 0;color:var(--tr331-navy);font-size:22px}.tr-family-week-widget header>a{color:var(--tr331-blue);font-size:12px;font-weight:900}.tr-family-week-widget>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tr-family-week-widget article{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:10px;padding:12px;border-radius:13px;background:var(--tr331-soft)}.tr-family-week-widget time{color:var(--tr331-red);font-size:11px;font-weight:900}.tr-family-week-widget p{margin:0}.tr-family-week-widget strong,.tr-family-week-widget p span{display:block}.tr-family-week-widget strong{overflow:hidden;color:var(--tr331-navy);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.tr-family-week-widget p span{color:var(--tr331-muted);font-size:10px}.tr-family-week-widget article.is-done{opacity:.55}
.tr-family-week-place-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0;padding:18px 20px;border:1px solid #dfe4ee;border-radius:17px;background:var(--tr331-soft)}.tr-family-week-place-cta span,.tr-family-week-place-cta strong{display:block}.tr-family-week-place-cta span{color:var(--tr331-red);font-size:11px;font-weight:900}.tr-family-week-place-cta strong{color:var(--tr331-navy);font-size:16px}.tr-family-week-place-cta>a,.tr-v331-week-plan-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 13px;border:1px solid #cfd7e6;border-radius:11px;background:#fff;color:var(--tr331-navy)!important;font-size:12px;font-weight:900;text-decoration:none!important;white-space:nowrap}
.tr-v328-planning-actions .tr-v331-week-plan-link{flex:1 1 100%;margin-top:2px}
@media(max-width:820px){.tr-family-week__layout{grid-template-columns:1fr}.tr-family-week__form-card{order:2}.tr-family-week__timeline{order:1}.tr-family-week-widget>div{grid-template-columns:1fr}.tr-family-week-widget article{grid-template-columns:88px minmax(0,1fr)}}
@media(max-width:560px){.tr-family-week{width:min(calc(100% - 18px),1120px);margin-top:18px}.tr-family-week__hero{align-items:flex-start;padding:21px;border-radius:20px}.tr-family-week__hero h1{font-size:30px}.tr-family-week__hero p{font-size:13px}.tr-family-week__hero>a{min-height:42px;padding:9px 13px;font-size:12px}.tr-family-week__timeline{padding:16px}.tr-family-week__timeline>header{align-items:flex-start}.tr-family-week__timeline>header small{max-width:110px;text-align:left}.tr-family-week__item{grid-template-columns:58px minmax(0,1fr);gap:10px;padding:13px}.tr-family-week__item-actions{grid-column:2;justify-content:flex-start}.tr-family-week__form-card form{grid-template-columns:1fr}.tr-family-week__form-card label,.tr-family-week__submit{grid-column:1}.tr-family-week-place-cta{align-items:flex-start;padding:16px}.tr-family-week-place-cta strong{font-size:14px}}
@media(max-width:390px){.tr-family-week__hero{display:grid}.tr-family-week__hero>a{width:100%}.tr-family-week-place-cta{display:grid}.tr-family-week-place-cta>a{width:100%}}
@media(prefers-reduced-motion:reduce){.tr-family-week *{scroll-behavior:auto!important}}
