/* Home-only refinements: preserve the original header and its existing popovers. */
header[data-home-nav="true"] {width:100%;max-width:1536px;left:max(0px,calc((100% - 1536px)/2));transform:none;padding-inline:clamp(8px,1.1vw,16px)}
header[data-home-nav="true"] > div:last-child {gap:24px;padding-inline:16px}
header[data-home-nav="true"] > div:last-child > div:first-child {flex:0 0 170px;min-width:170px}
header[data-home-nav="true"] > div:last-child > div:first-child a[href="/"] {min-height:44px;display:flex;align-items:center}
header[data-home-nav="true"] > div:last-child > div:first-child img {object-fit:contain}
header[data-home-nav="true"] > div:last-child > div:last-child {flex:0 1 auto;min-width:0;overflow:visible;gap:12px!important}
header[data-home-nav="true"] > div:last-child > div:last-child a,
header[data-home-nav="true"] > div:last-child > div:last-child button {min-height:44px;display:inline-flex;align-items:center;justify-content:center}
header[data-home-nav="true"] a:focus-visible,header[data-home-nav="true"] button:focus-visible {outline:2px solid #1b4451!important;outline-offset:3px}
@media(min-width:1320px){
 header[data-home-nav="true"] > div:last-child > div:last-child > div[class*="max-lg:hidden"] a {padding-inline:12px!important}
}
@media(max-width:1319px){
 header[data-home-nav="true"] > div:last-child > div:last-child > .max-lg\:hidden {display:none!important}
 header[data-home-nav="true"] > div:last-child > div:last-child > .lg\:hidden {display:flex!important}
 header[data-home-nav="true"] > div:last-child > div:last-child > .lg\:hidden > div > button {flex-direction:column;min-width:48px}
}
@media(max-width:639px){
 header[data-home-nav="true"] > div:last-child {gap:12px;padding-inline:8px}
 header[data-home-nav="true"] > div:last-child > div:first-child {flex-basis:132px;min-width:132px}
 header[data-home-nav="true"] > div:last-child > div:first-child > div,
 header[data-home-nav="true"] > div:last-child > div:first-child a[href="/"] {width:132px!important}
 header[data-home-nav="true"] > div:last-child > div:last-child {gap:4px!important}
 header[data-home-nav="true"] > div:last-child > div:last-child > .lg\:hidden {gap:0!important}
 header[data-home-nav="true"] > div:last-child > div:last-child > .lg\:hidden > a {display:none!important}
 header[data-home-nav="true"] [id*="popover-panel"] {max-width:100vw}
}
/* Keep the existing download card, with a reachable close button and less occlusion. */
body:has(header[data-home-nav="true"]) #tf-dl#tf-dl {width:280px;height:198px;right:12px;bottom:12px}
body:has(header[data-home-nav="true"]) #tf-dl#tf-dl .tf-wedge,body:has(header[data-home-nav="true"]) #tf-dl#tf-dl .tf-wedge2 {width:160px;height:160px;opacity:.85}
body:has(header[data-home-nav="true"]) #tf-dl#tf-dl a.tf-card {right:12px;bottom:12px;width:240px;padding:14px 16px;box-shadow:0 6px 22px #1f2e3626}
body:has(header[data-home-nav="true"]) #tf-dl#tf-dl button.tf-x {width:44px;height:44px;line-height:44px;top:0;right:6px}
@media(max-width:1023px),(max-height:650px){body:has(header[data-home-nav="true"]) #tf-dl#tf-dl {display:none}}
/* Support diagrams: aligned reading columns, consistent rule and type hierarchy. */
#tiffin-range-sec .tfr-status,#tiffin-range-sec .tfr-range {border:1px solid #dce4e6;border-radius:12px!important}
#tiffin-range-sec .tfr-phases {gap:8px!important}
#tiffin-range-sec .tfr-steps {gap:12px!important}
#tiffin-range-sec .tfr-steps > div {padding:22px 16px!important;border:1px solid #e2e8ea;border-radius:8px!important}
#tiffin-range-sec .tfr-steps > div > div:nth-child(4) {min-height:3.2em;line-height:1.6;text-wrap:pretty}
#tiffin-range-sec .tfr-steps > div > div:last-child {font-size:14px!important;line-height:1.9!important;color:#4a5a63!important}
#tiffin-range-sec .tfr-range {background:#f1f5f6!important;gap:24px!important}
#tiffin-range-sec .tfr-range .tfr-service-heading {color:#253d4a!important;border-bottom:1px solid #cddade;margin-bottom:12px;padding-bottom:10px!important;line-height:1.7}
#tiffin-range-sec .tfr-range svg {fill:#3a7d8c;flex-shrink:0}
#tiffin-range-sec .tfr-tiles {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));background:#dce4e6!important;border:1px solid #dce4e6}
#tiffin-range-sec .tfr-tiles > div {padding:18px 12px!important;min-width:0!important;gap:10px!important}
#tiffin-range-sec .tfr-tiles > div:last-child {grid-column:1/-1}
#tiffin-range-sec .tfr-tiles span:last-child {font-size:15px!important}
#tiffin-range-sec .tfr-col > div:last-child > div:last-child {padding:20px!important;border:1px solid #e2e8ea;border-radius:8px!important;gap:16px!important}
#tiffin-range-sec .tfr-col > div:last-child > div:last-child > div:last-child {margin-left:0!important;gap:8px!important}
#tiffin-range-sec .tfr-side > div:last-child {border:1px solid #e2e8ea;border-radius:8px!important;text-align:center}
#tiffin-range-sec .tfr-links {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 16px;border-color:#cddade}
#tiffin-range-sec .tfr-links a {color:#253d4a;padding:8px 12px;border:1px solid #d5e0e3;border-radius:6px;background:#fff;text-decoration-thickness:1px}
#tiffin-range-sec .tfr-links a:hover {background:#e8f2f4;border-color:#8aa7b5}
@media(max-width:1023px){
 #tiffin-range-sec .tfr-range > div:first-child {align-items:flex-start!important;width:100%}
 #tiffin-range-sec .tfr-side {width:100%}
}
@media(max-width:640px){
 #tiffin-range-sec .tfr-steps > div > div:nth-child(4) {min-height:0}
 #tiffin-range-sec .tfr-tiles {grid-template-columns:1fr}
 #tiffin-range-sec .tfr-tiles > div {flex-direction:row!important;justify-content:flex-start!important;padding:16px!important}
 #tiffin-range-sec .tfr-links {grid-template-columns:1fr;gap:8px}
 #tiffin-range-sec .tfr-col > div:last-child > div:last-child {padding:16px!important}
}
/* Popovers retain their own flow; toolbar sizing must not centre or clip menu copy. */
header[data-home-nav="true"] [aria-label="Service menu panel"] {top:88px!important;bottom:auto!important;max-height:calc(100dvh - 104px);overflow-y:auto!important;overscroll-behavior:contain;white-space:normal}
header[data-home-nav="true"] [aria-label="Service menu panel"] a {display:block!important;min-height:44px;text-align:left;white-space:normal;padding:8px 0!important}
header[data-home-nav="true"] [aria-label="Service menu panel"] a > div {align-items:flex-start!important;gap:6px!important;flex-wrap:wrap}
header[data-home-nav="true"] [aria-label="Service menu panel"] a span {white-space:normal;overflow-wrap:anywhere}
header[data-home-nav="true"] [id*="popover-panel"] {white-space:normal}
header[data-home-nav="true"] [id*="popover-panel"] div[class*="h-[calc(100%"] {height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);margin:16px;overflow-y:auto}
body:has(header[data-home-nav="true"] button[aria-expanded="true"]) #tf-dl#tf-dl {display:none}
@media(max-width:1023px){
 header[data-home-nav="true"] [aria-label="Service menu panel"] {top:8px!important;max-height:calc(100dvh - 16px);height:calc(100dvh - 16px);margin:0 8px!important}
 header[data-home-nav="true"] [aria-label="Service menu panel"] > div {gap:8px!important}
 header[data-home-nav="true"] [aria-label="Service menu panel"] a > div {flex-direction:column!important}
}
@media(max-width:640px){
 body:has(header[data-home-nav="true"]) div[class*="border-zinc-50"][class*="text-center"] {padding-inline:20px}
 body:has(header[data-home-nav="true"]) div[class*="border-zinc-50"][class*="text-center"] h3.font-bold {font-size:26px;line-height:1.5}
 body:has(header[data-home-nav="true"]) div[class*="border-zinc-50"][class*="text-center"] h3.text-gray-500 {font-size:16px;line-height:1.8;word-break:normal;line-break:strict;text-wrap:balance}
 body:has(header[data-home-nav="true"]) div[class*="border-zinc-50"][class*="text-center"] > a {max-width:100%}
}
/* Keep the mobile document link in its existing main footer position, without covering reading. */
@media(max-width:1023px){
 body:has(header[data-home-nav="true"]) main > a.fixed[href="/company_guide/"][class*="bottom-0"] {position:static!important;display:flex;width:calc(100% - 32px);height:auto;min-height:53px;margin:16px auto;border-radius:8px;box-shadow:none}
}
@media(max-width:640px){
 body:has(header[data-home-nav="true"]) div[class*="border-zinc-50"][class*="text-center"] h3.text-gray-500 p {word-break:normal!important;line-break:strict!important;overflow-wrap:normal;text-wrap:balance}
}
@media(max-width:1023px){
 body:has(header[data-home-nav="true"]) main > a.fixed[href="/company_guide/"][class*="bottom-0"] > div > span:first-child {flex:none;white-space:nowrap}
}
