/* Footer: logo-blue band on top, pure white ground below, and a line-drawing herbalist sitting on that ground.
 * Colours come from tokens.css only. */
.tml-footer{--ft-art-w:clamp(440px,42vw,660px);position:relative;margin-top:72px;background:var(--tml-foot);color:var(--tml-foot-ink);font-size:15px;overflow:hidden}
.tml-footer a{color:inherit}
.tml-footer :focus-visible{outline-color:var(--tml-white)}

/* Doctor strip */
.tml-ft-strip{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-block:26px 22px;border-bottom:1px solid var(--tml-foot-line)}
.tml .tml-ft-ask{margin:0;font:400 clamp(26px,3vw,36px)/1.12 var(--tml-serif);letter-spacing:-.01em;color:var(--tml-white);text-wrap:balance}
.tml-ft-ask em{color:var(--tml-foot-label);font-style:italic}
.tml .tml-ft-wa{display:flex;align-items:center;justify-content:space-between;gap:22px;flex:0 1 540px;min-width:0;padding:6px 6px 6px 26px;border-radius:var(--tml-r-pill);background:var(--tml-foot-deep);color:var(--tml-foot-soft);transition:background .2s}
.tml .tml-ft-wa:hover{background:color-mix(in srgb,var(--tml-foot-deep) 82%,var(--tml-black))}
.tml-ft-wa b{flex:none;padding:13px 26px;border-radius:var(--tml-r-pill);background:var(--tml-white);color:var(--tml-leaf);font-weight:700;transition:transform .2s}
.tml-ft-wa:hover b{transform:translateX(2px)}

/* Columns. They keep to the left of the picture. */
.tml-ft-stage{position:relative;min-height:calc(var(--ft-art-w)*.565 - 70px)}
/* On desktop the footer fills the space under the sticky header when scrolled to the end, so no page-coloured strip shows above it.
 * 114px is the sticky header; the admin bar adds 32px for signed-in editors. */
@media (min-width:1041px){
	.tml-footer{display:flex;flex-direction:column;min-height:calc(100vh - 114px)}
	.admin-bar .tml-footer{min-height:calc(100vh - 146px)}
	.tml-footer .tml-ft-stage{flex:1 0 auto}
}
.tml-ft-cols{display:grid;grid-template-columns:minmax(0,200px) minmax(0,224px) minmax(0,1fr);gap:22px 40px;max-width:none;padding-block:24px 0}
.tml-footer .tml-fh{margin:0 0 12px;color:var(--tml-foot-label)}
.tml-ft-logo{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--tml-white);overflow:hidden;color:var(--tml-leaf);font:400 20px/1 var(--tml-serif)}
.tml-ft-logo img{width:100%;height:100%;object-fit:contain;padding:8px}
/* Logo on the left; the description and social icons sit beside it. Links run underneath. */
.tml-ft-brand{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:24px;align-items:center}
.tml-ft-brand .tml-ft-logo{grid-row:1/span 2}
.tml-ft-brand .tml-ft-social{grid-column:3;grid-row:1/span 2;justify-self:end}
.tml-ft-brand p{margin:0 0 14px;max-width:46ch;color:var(--tml-foot-soft);font-size:14px;line-height:1.6}
.tml-ft-social{display:flex;gap:10px;list-style:none;margin:0;padding:0}
.tml-ft-social a{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--tml-white);color:var(--tml-leaf);transition:transform .2s}
.tml-ft-social a:hover{transform:translateY(-2px)}
.tml-ft-social .tml-i{width:21px;height:21px}
.tml-ft-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.tml-ft-list a{color:var(--tml-foot-ink);transition:color .2s,padding .2s}
.tml-ft-list a:hover{color:var(--tml-white);padding-left:4px;text-decoration:underline;text-underline-offset:4px}
.tml-ft-list .sub-menu{list-style:none;margin:8px 0 0;padding-left:12px;display:grid;gap:8px}
.tml-ft-contact p{margin:0 0 10px;line-height:1.6;color:var(--tml-foot-ink)}
.tml-ft-contact small{display:block;margin-bottom:2px;color:var(--tml-foot-label);font-weight:700;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.tml-ft-contact a{display:block;width:max-content;max-width:100%;overflow-wrap:anywhere}
.tml-ft-contact a:hover{text-decoration:underline;text-underline-offset:4px}
.tml-ft-contact .tml-ft-map{margin-top:6px;font-weight:700;color:var(--tml-white)}

/* White ground, the picture, and the bottom bar */
.tml-ft-ground{position:relative}
.tml-ft-art{position:absolute;right:clamp(0px,1.5vw,40px);bottom:calc(100% - 112px);width:var(--ft-art-w);height:auto;z-index:2;pointer-events:none;user-select:none}
.tml-ft-wave{display:block;width:100%;height:48px;color:var(--tml-ground);margin-bottom:-1px}
.tml-ft-bar{background:var(--tml-ground);color:var(--tml-ground-ink);padding-block:22px 30px;font-size:13px}
.tml-ft-bar-in{max-width:min(100%,52%);display:grid;gap:6px}
.tml-ft-bar p{margin:0}
.tml-ft-copy{display:flex;flex-wrap:wrap;gap:6px 22px}
.tml-ft-copy strong{color:var(--tml-leaf);font-weight:600}
.tml-footer .tml-ft-copy a{color:inherit}
.tml-footer .tml-ft-copy a:hover{color:var(--tml-leaf-2);text-decoration:underline;text-underline-offset:3px}
.tml-footer .tml-ft-bar :focus-visible{outline-color:var(--tml-leaf-2)}

@media (max-width:1040px){
	.tml-footer{margin-top:56px}
	.tml-ft-stage{min-height:0}
	.tml-ft-cols{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}
	.tml-ft-brand{grid-column:1/-1}
	.tml-ft-art{position:relative;right:auto;bottom:auto;display:block;width:min(660px,94%);margin:6px 0 -64px auto}
	.tml-ft-bar-in{max-width:none}
	.tml-ft-bar{padding-top:46px}
}
@media (max-width:720px){
	.tml-ft-strip{flex-direction:column;align-items:stretch;padding-block:34px 24px;gap:20px}
	.tml .tml-ft-wa{flex:none;padding-left:20px}
	.tml-ft-wa span{font-size:14px}
	.tml-ft-wa b{padding:12px 18px}
	.tml-ft-cols{padding-top:30px}
	.tml-ft-contact{grid-column:1/-1}
	.tml-ft-art{width:112%;margin:0 -6% -46px auto}
	.tml-ft-bar{padding-top:40px}
}
@media (prefers-reduced-motion:reduce){.tml-ft-wa,.tml-ft-wa b,.tml-ft-social a,.tml-ft-list a{transition:none}}
