
.tfd-ministry-tile{border:1.5px solid color-mix(in srgb,var(--tfd-ministry) 34%,#e6ebef);background:#fff;border-radius:16px;padding:15px;min-height:153px;display:flex;flex-direction:column;gap:7px;align-items:flex-start;text-align:left;cursor:pointer;color:#1a3143;box-shadow:0 4px 16px #1a31430a;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}

.tfd-ministry-tile:hover,.tfd-ministry-tile:focus-visible{background:var(--tfd-soft);transform:translateY(-2px);box-shadow:0 9px 19px #1a314316;outline-offset:3px}

.tfd-ministry-tile .tfd-ministry-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;color:#fff;background:var(--tfd-ministry);font-weight:800;font-size:22px}

.tfd-ministry-tile strong{font-size:14px;line-height:1.25}

.tfd-ministry-tile small{font-size:11px;color:#586f7e}

.tfd-ministry-enter{font-size:11px;font-weight:800;color:var(--tfd-ministry);margin-top:auto}
.tfd-ministry-tile{min-height:143px;padding:12px}
.tfd-ministry-tile{transition:none}
.tfd-ministry-tile:hover{transform:none}

.tfd-ministry-tile{transition:transform .18s,box-shadow .18s;box-shadow:0 10px 26px #1733480b!important}

.tfd-ministry-tile:hover{transform:translateY(-2px);box-shadow:0 15px 31px #17334814!important}

/* R32: premium TFD navigation and responsive system - original logo and backend untouched */
:root{--tfd32-ink:#183347;--tfd32-soft:#f5f9fd;--tfd32-line:#e2edf5;--tfd32-muted:#617b8d;--tfd32-blue:#82bfe1;--tfd32-gold:#b9975d;--tfd32-shadow:0 12px 29px rgba(24,51,71,.048)}
html,body{background:#f8fbff!important;color:var(--tfd32-ink)!important}
[hidden]{display:none!important}
.tfd32-sidebar{position:fixed;top:0;left:0;bottom:0;width:236px;overflow-y:auto;z-index:62;background:linear-gradient(165deg,#fff 0%,#fafdff 70%,#e6f2fb 100%);border-right:1px solid #e4eef5;padding:24px 14px 18px;display:flex;flex-direction:column;gap:28px;box-shadow:4px 0 24px #1a314307}
body:not(.tfd32-ready) .tfd32-sidebar{visibility:hidden}
.tfd32-sidebrand{display:flex;align-items:center;gap:12px;padding:5px 9px 20px;border-bottom:1px solid #e4edf3}
.tfd32-sidebrand img{width:51px;height:51px;object-fit:contain;flex-shrink:0}
.tfd32-sidebrand strong{font-size:16px;line-height:1.07;letter-spacing:-.45px;display:block}
.tfd32-sidebrand small{font-size:9px;letter-spacing:1.05px;color:#7891a1;font-weight:750;white-space:nowrap;display:block;margin-top:7px}
.tfd32-sidenav{display:flex;flex-direction:column;gap:5px}
.tfd32-sidenav button{font-size:13px;line-height:1.3;min-height:43px;padding:11px 12px;border:1px solid transparent;background:transparent;text-align:left;color:#2e4b61;font-weight:700;display:flex;align-items:center;gap:12px;border-radius:11px;transition:background-color .17s ease,border-color .17s ease,transform .17s ease}
.tfd32-sidenav button>span{font-size:20px;font-weight:500;color:#537c9b;width:22px;text-align:center;line-height:1}
.tfd32-sidenav button:hover{background:#eff8fd}
.tfd32-sidenav button.is-active{background:#e5f3ff;border-color:#d6eafb;color:#174d76}
.tfd32-sidenav button.is-active>span{color:#247ab8}
.tfd32-navsep{height:1px;background:#e1edf5;margin:10px 9px}
.tfd32-sidefoot{margin-top:auto;padding:15px 12px 7px;color:#6d8797;font-size:11px;display:flex;align-items:center;gap:9px}
.tfd32-online-dot{display:inline-block;height:8px;width:8px;border-radius:50%;background:#68b994;flex:none}
.tfd32-navscrim{position:fixed;inset:0;z-index:60;background:#152f44a3}
.tfd32-menu-toggle{display:none;border:1px solid #dfebf2;background:#fff;border-radius:11px;color:#254d65;width:40px;height:40px;place-items:center;font-size:21px;flex:none}
#tfd32TopSection{font-weight:800;font-size:17px;letter-spacing:-.3px;color:#19374e}
.wrap{margin-left:236px!important;margin-right:0!important;max-width:none!important;padding:0 24px 60px!important;min-width:0!important}
.mast{top:0!important;min-height:70px!important;padding:11px 9px!important;background:#ffffffed!important;z-index:40!important;box-shadow:0 1px 0 #eaf0f5;display:flex;gap:16px}
.mast .brand{display:none!important}
.mast .topactions{margin-left:auto}
.shell{border:0!important;box-shadow:none!important;background:transparent!important}
.shell .tabs{display:none!important}
.shell .body{padding:16px 0 44px!important}
.portal-backbar{margin:0 0 13px;align-items:center}
.portal-back{min-height:36px!important;border-radius:11px!important}
#safetyBar{max-width:100%;font-size:11px;border:0;background:transparent;padding:3px 5px;margin:0 0 9px;color:#64879e}
body.tfd-home #safetyBar{display:none!important}
#view{min-width:0}
.tfdu-name,.tfd32-name{font-family:'Allura','Brush Script MT',cursive!important;font-weight:500!important;font-style:normal!important;color:var(--ministry-accent,#258bc3)!important;letter-spacing:0!important;line-height:1.06!important}
.tfd-person-directory-row .tfd-person-name{color:var(--ministry-accent,#2b85b2)}
.tfd32-home-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px;align-items:start}
.tfd32-home-main{min-width:0;display:grid;gap:20px}
.tfd32-home-hero{min-height:220px;border:1px solid #e5eef5;border-radius:21px;padding:27px 33px;overflow:hidden;position:relative;background:linear-gradient(112deg,#fafdff 0%,#f3f8ff 47%,#dceefa 100%);box-shadow:var(--tfd32-shadow);display:flex;align-items:center}
.tfd32-home-hero:before{content:'';position:absolute;width:78%;height:200%;right:-22%;top:-60%;border:1px solid #ffffffb7;border-radius:50%;transform:rotate(24deg);background:linear-gradient(120deg,transparent,#c3e2f152);pointer-events:none}
.tfd32-hero-copy{position:relative;z-index:1;max-width:72%}
.tfd32-kicker{display:inline-flex;align-items:center;gap:13px;color:#315878;text-transform:uppercase;letter-spacing:2.2px;font-size:10px;font-weight:900}
.tfd32-kicker:after{content:'';width:38px;height:2px;background:#81bfe1}
.tfd32-home-hero h2{font-size:clamp(27px,3.2vw,43px)!important;line-height:1.08;margin:20px 0 12px;color:#142f45;font-weight:830;letter-spacing:-1.1px}
.tfd32-home-hero h2 .tfdu-name{font-size:1.35em}
.tfd32-home-hero p{font-size:14px;color:#58758b;line-height:1.55;margin:0;max-width:480px}
.tfd32-hero-logo{position:absolute;right:7%;width:clamp(120px,15vw,220px);height:clamp(120px,15vw,220px);object-fit:contain;filter:drop-shadow(0 9px 13px #1a314319)}
.tfd32-sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0 12px}
.tfd32-sectionhead h3{font-size:20px;letter-spacing:-.6px;margin:0;color:#183347;font-weight:850;padding-left:13px;border-left:4px solid #4c9dd0}
.tfd32-subheading{font-size:12px;color:#6b8496;margin:1px 0 0}
.tfd32-smallpill{padding:6px 13px;border-radius:30px;background:#e8f4ff;color:#266088;font-weight:800;font-size:11px;white-space:nowrap}
.tfd32-metricgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tfd32-metric{min-height:112px;border:1px solid var(--tfd32-line);border-radius:16px;padding:15px 17px;background:#fff;box-shadow:var(--tfd32-shadow);display:flex;flex-direction:column;gap:7px}
.tfd32-metric-icon{color:#287db3;font-size:17px}.tfd32-metric-title{font-size:11px;color:#698395;line-height:1.25}
.tfd32-metric strong{font-size:27px;line-height:1;letter-spacing:-.7px;color:#17384e;font-weight:820}
.tfd32-metric .tfd32-metric-meta{font-size:11px;color:#56809b}
.tfd32-ministry-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.tfd32-ministry-grid .tfd-ministry-tile{min-height:145px!important;border-radius:16px!important;border:1px solid color-mix(in srgb,var(--tfd-ministry) 35%,#e0e8ef)!important;background:#fff!important;padding:15px 14px!important;box-shadow:var(--tfd32-shadow)!important;gap:6px!important;position:relative}
.tfd32-ministry-grid .tfd-ministry-mark{width:39px!important;height:39px!important;border-radius:12px!important;font-size:20px!important;background:var(--tfd-ministry)!important;color:#fff!important}
.tfd32-ministry-grid .tfd-ministry-tile strong{font-size:13px!important}
.tfd32-ministry-grid .tfd-ministry-tile small{font-size:10px!important}
.tfd32-ministry-grid .tfd-ministry-enter{font-size:11px!important}
.tfd32-ministry-grid .tfd-request-tile{border-style:dashed!important}
.tfd32-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tfd32-tool{border:1px solid #e0edf5;background:#fff;border-radius:14px;padding:14px;text-align:left;color:#1f3e54;display:flex;align-items:center;gap:10px;min-width:0;min-height:76px;box-shadow:var(--tfd32-shadow)}
.tfd32-tool:hover{border-color:#abd4eb;background:#f7fcff}
.tfd32-tool>span{display:grid;place-items:center;flex:none;height:36px;width:36px;background:#e9f6fd;border-radius:10px;color:#2476a7;font-size:20px}
.tfd32-tool strong{display:block;font-size:12px}.tfd32-tool small{display:block;color:#688296;font-size:10px;line-height:1.3;margin-top:3px}
.tfd32-rail{display:grid;gap:13px;min-width:0}
.tfd32-railcard{background:#fff;border:1px solid #e1edf5;border-radius:17px;padding:17px;box-shadow:var(--tfd32-shadow)}
.tfd32-railcard h4{font-size:14px;margin:0 0 13px;color:#18374e;display:flex;align-items:center;gap:9px}
.tfd32-railcard h4>span{color:#2879ac;font-size:20px}
.tfd32-railcard button{border:0;background:none;color:#1d4058;font-size:12px;font-weight:700;padding:12px 3px;display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;border-top:1px solid #edf3f7;gap:6px}
.tfd32-railcard button:hover{color:#137cbd}
.tfd32-railcard button:first-of-type{border-top:0}
.tfd32-railcard button>span:last-child{color:#4c8bb0}
.tfd32-account-line{display:flex;gap:12px;align-items:center}
.tfd32-avatar{height:42px;width:42px;flex:none;border-radius:50%;background:#1d648e;color:#fff;display:grid;place-items:center;font-weight:900;font-size:12px}
.tfd32-account-line .tfd32-name{font-size:27px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px}
.tfd32-account-role{font-size:10px;background:#eaf4ff;color:#26618a;padding:4px 8px;border-radius:999px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tfd32-rail-event{display:flex;gap:9px;border-top:1px solid #edf3f7;padding:10px 0;align-items:flex-start;font-size:12px}
.tfd32-rail-event:first-of-type{border-top:0}
.tfd32-event-date{background:#eff7ff;border-radius:9px;min-width:46px;padding:6px;text-align:center;font-size:10px;font-weight:800;color:#376e94}
.tfd32-event-name{font-weight:750;color:#223d50}.tfd32-event-meta{color:#748b9a;font-size:11px;display:block;margin-top:3px}
.tfd32-home-status{font-size:11px;color:#71899a}
.tfd32-general-hero{border:1px solid #e3edf6;border-radius:20px;padding:26px 29px;background:linear-gradient(110deg,#fff,#ecf7ff);display:flex;align-items:center;justify-content:space-between;gap:15px;box-shadow:var(--tfd32-shadow)}
.tfd32-general-hero h2{font-size:clamp(25px,3vw,35px);letter-spacing:-1px;margin:9px 0 6px}
.tfd32-general-hero h2 em{font-family:Allura,cursive;font-weight:400;font-size:1.25em;color:#b9975d}
.tfd32-general-hero p{font-size:13px;color:#638095;margin:0;line-height:1.45}
.tfd32-general-hero img{max-width:120px;max-height:120px;object-fit:contain}
.tfd32-general-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.tfd32-general-action{background:#fff;border:1px solid #dfedf5;box-shadow:var(--tfd32-shadow);border-radius:16px;min-height:105px;padding:18px;display:flex;flex-direction:column;gap:7px;text-align:left;color:#18364b}
.tfd32-general-action:hover{border-color:#a7d3ea;background:#fbfeff}
.tfd32-general-action strong{font-size:14px}.tfd32-general-action small{font-size:11px;color:#6f8899}
.tfd32-general-action .tfd32-action-icon{font-size:21px;color:#3a91bb}
.tfd32-general-section{margin-top:20px;background:#fff;border:1px solid #e0eaf1;border-radius:16px;padding:18px 21px}
.tfd32-general-section h3{font-size:16px;margin:0 0 6px}
.tfd32-general-section p{font-size:12px;margin:0 0 11px;color:#6b8595}
.tfd32-general-details{display:flex;gap:8px;flex-wrap:wrap}
.tfd32-general-details .btn{border-radius:11px}
.card,.calendar-card,.tfdt-shell,.tfdu-control-head,.v10-tile,.tfdu-modal,.tfd-people-directory,.tfd32-general-action{box-shadow:var(--tfd32-shadow)}
.card,.calendar-card,.tfdt-shell,.tfdu-control-head{border-color:#e2edf4!important;border-radius:17px!important}
.btn,.subtlebtn,.drawer-link{border-radius:11px!important;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease!important}
.btn:focus-visible,.tfd32-sidenav button:focus-visible,.tfd32-tool:focus-visible,.tfd32-general-action:focus-visible,.tfd-ministry-tile:focus-visible{outline:2px solid #3e9acb!important;outline-offset:3px}
input,.input,select,textarea{border-radius:11px!important}
@media(min-width:1450px){.tfd32-home-layout{grid-template-columns:minmax(0,1fr) 310px}.tfd32-ministry-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1300px){.tfd32-home-layout{grid-template-columns:1fr}.tfd32-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.tfd32-railcard:first-child{grid-column:span 2}.tfd32-ministry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1060px){.tfd32-sidebar{width:225px}.wrap{margin-left:225px!important;padding-left:15px!important;padding-right:15px!important}.tfd32-home-hero{padding:22px}.tfd32-hero-logo{right:4%}.tfd32-metricgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.tfd32-ministry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tfd32-general-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:830px){.tfd32-sidebar{transform:translateX(-102%);transition:transform .2s ease;box-shadow:12px 0 44px #102c4a1f}.tfd32-sidebar.is-open{transform:translateX(0)}.tfd32-menu-toggle{display:grid}.wrap{margin-left:0!important;padding:0 12px calc(86px + env(safe-area-inset-bottom))!important}.mast .brand{display:flex!important}.mast .brand h1{font-size:15px!important}.mast .brand small{font-size:9px!important}#tfd32TopSection{display:none}.mast{min-height:64px!important}.tfd32-home-layout{grid-template-columns:1fr}.tfd32-rail{grid-template-columns:repeat(2,minmax(0,1fr))}.tfd32-home-hero{min-height:200px}.tfd32-home-hero h2{font-size:32px!important}}
@media(max-width:570px){.tfd32-rail{grid-template-columns:1fr}.tfd32-railcard:first-child{grid-column:span 1}.tfd32-home-hero{padding:22px 20px;min-height:190px}.tfd32-home-hero h2{font-size:30px!important;margin:16px 0 9px}.tfd32-hero-logo{opacity:.2;right:-14px;width:175px;height:175px}.tfd32-hero-copy{max-width:100%}.tfd32-metricgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.tfd32-ministry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tfd32-tool-grid{grid-template-columns:1fr 1fr}.tfd32-home-main{gap:13px}.tfd32-sectionhead h3{font-size:17px}.tfd32-general-actions{grid-template-columns:1fr 1fr}.tfd32-general-hero img{max-width:75px;max-height:75px}.tfd32-general-hero{padding:19px}.tfd32-general-hero h2{font-size:25px}.tfd32-general-action{min-height:100px;padding:14px}.tfd32-tool{padding:10px;min-height:80px}.tfd32-tool>span{width:31px;height:31px}.tfd32-tool small{display:none}}
@media(max-width:390px){.tfd32-tool-grid{grid-template-columns:1fr}.tfd32-metricgrid{gap:8px}.tfd32-metric{padding:12px 13px}.tfd32-ministry-grid{gap:8px}.tfd32-ministry-grid .tfd-ministry-tile{padding:12px 11px!important}}
@media(prefers-reduced-motion:reduce){.tfd32-sidebar,.tfd32-sidenav button,.btn,.tfd-ministry-tile{transition:none!important;animation:none!important}}

.tfd-person-directory-row .tfd-person-name>strong{font-family:'Allura','Segoe Script',cursive;font-size:23px;font-weight:500;color:var(--tfd-person-accent,#2a8fc2)}
.tfd-person-profile-modal [data-tfdu-profile-heading]{font-family:'Allura','Segoe Script',cursive;font-size:28px;font-weight:500;color:var(--ministry-accent,#2a8fc2);line-height:1.1}

/* Native Cloudflare integration */
body{padding:0 14px 28px}body.tfd32-ready{padding:0}.portal{max-width:none!important;margin:0!important}.tfd32-ready>.head{display:none}.tfd32-ready>.footer{margin-left:236px}.tfd32-ready .mast{position:sticky;display:flex;align-items:center;justify-content:space-between}.tfd32-ready .mast .brand{min-width:0}.tfd32-ready .mast .brand strong{font-size:13px}.tfd32-ready .mast .brand img{width:33px;height:33px}.tfd32-ready .mast .secondary{margin-left:auto;flex:none}.tfd32-home-hero h2{overflow-wrap:anywhere}.tfd32-home-hero p{overflow-wrap:anywhere}.tfd32-home-main{margin-top:16px}.tfd32-ministry-grid{margin-bottom:16px}.tfd32-ministry-tile{min-width:0;overflow-wrap:anywhere}.tfd32-tool>div{min-width:0}.tfd32-general-actions>*{text-decoration:none;min-width:0;overflow-wrap:anywhere}.tfd32-general-action .tfd32-action-icon{display:block}.tfd32-general-section summary{cursor:pointer;font-weight:800;min-height:36px}.tfd32-general-section .file-row{margin-top:8px}.tfd32-ready .portal-nav{display:none}.tfd32-ready .portal-hero{display:none}.tfd32-ready .sectionhead{flex-wrap:wrap}.tfd32-hero-copy .account-line{font-size:12px;overflow-wrap:anywhere}.portal-note{overflow-wrap:anywhere}.tfd32-sidenav a{font-size:13px;line-height:1.3;min-height:43px;padding:11px 12px;color:#2e4b61;font-weight:700;display:flex;align-items:center;gap:12px;border-radius:11px}.tfd32-sidenav a:hover{background:#eff8fd}.tfd32-sidenav a span{font-size:20px;width:22px;text-align:center;color:#537c9b}.tfd32-ready .portal-status{margin:8px 0}.tfd32-ready .tfd32-sidefoot{display:block}.tfd32-ready .tfd32-sidefoot small{display:block}.tfd32-ready .tfd32-home-layout{margin-top:12px}.tfd32-ready .tfd32-general-hero{margin-top:12px}.tfd32-ready .tfd32-ministry-grid .tfd-ministry-mark{color:var(--tfd-icon-ink,#fff)!important}.stage-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.stage-links a{display:block}.stage-links strong,.stage-links small{display:block}.stage-links small{color:var(--muted)}
@media(max-width:830px){.tfd32-ready>.footer{margin-left:0}.tfd32-ready .mast{gap:8px}.tfd32-ready .mast .secondary{padding:8px;font-size:11px}.tfd32-ready .mast .brand small{display:none}.tfd32-ready .mast .brand strong{font-size:12px}.tfd32-ready .tfd32-hero-logo{pointer-events:none}.tfd32-ready .tfd32-sidebar:not(.is-open){visibility:hidden}.tfd32-ready .tfd32-sidebar.is-open{visibility:visible}}
@media(max-width:370px){.tfd32-ready .mast .brand img{display:none}.tfd32-ready .tfd32-general-actions{grid-template-columns:1fr}.tfd32-ready .tfd32-ministry-grid{grid-template-columns:1fr 1fr}.tfd32-ready .tfd32-home-hero h2{font-size:26px!important}}
.tfd32-ready #dashboard{margin-left:236px!important;margin-right:0!important;max-width:none!important;width:auto!important}.tfd32-ready #dashboard .mast{justify-content:flex-start}.tfd32-ready #dashboard .mast a.secondary{margin-left:auto}.tfd32-ready #dashboard .mast #logout{margin-left:0}.tfd32-ready #dashboard .mast #logout{white-space:nowrap}
@media(max-width:1060px){.tfd32-ready #dashboard{margin-left:225px!important}}@media(max-width:830px){.tfd32-ready #dashboard{margin-left:0!important}.tfd32-ready #dashboard .mast .brand{flex:1}.tfd32-ready #dashboard .mast a.secondary{margin-left:0}.tfd32-ready #dashboard .mast #logout{padding:8px 6px}}@media(max-width:360px){.tfd32-ready #dashboard .mast a.secondary{font-size:10px}.tfd32-ready #dashboard .mast .brand strong{font-size:11px}}
