/* handbook-holiday-and-time-off-policy-template (build_handbook_holiday_and_time_off_policy_template.py). Every rule starts with .tj-hol.
   Centrepiece: the entitlement drawn as 5.6 weeks of day squares beside the policy's tabbed handbook page. */
.tj-hol .ho-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tj-hol section[class^="ho-"] h2{font-size:clamp(1.6rem,2.4vw,2.1rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0;max-width:none}
.tj-hol .ho-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:9px}
.tj-hol .ho-ln.s{width:58%}
.tj-hol .ho-ln.m{width:82%}
.tj-hol .tpl{border:2px solid var(--ink);border-radius:14px;overflow:hidden;margin:0}
.tj-hol .tplbar{display:none}
.tj-hol .tpl:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.tj-hol .tplcta .btn{white-space:normal}
.tj-hol .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tj-hol .tpldfy>p{margin-left:0;max-width:none}

/* subscription box: the plan on pink, the drafting form beside it */
.tj-hol .ho-get{padding:72px 0}
.tj-hol .tplgate{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-content:start;text-align:left;padding:38px 0 40px;background:var(--cfield)}
.tj-hol .tplgate>*{grid-column:1;padding-left:40px;padding-right:40px}
.tj-hol .tplgate>h3{font-size:1.5rem;color:var(--ink)}
.tj-hol .tplgate>p{max-width:none;margin-left:0;color:var(--ink)}
.tj-hol .tplcta{justify-content:flex-start;gap:16px}
.tj-hol .tplcta .btn{background:var(--ink);border-color:var(--ink);color:#fff}
.tj-hol .tpl .tplcta a:not(.btn){color:var(--ink);text-decoration:underline;font-weight:700}
.tj-hol .tplgate>.tpldfy{grid-column:2;grid-row:1/span 4;margin:-38px 0 -40px;max-width:none;background:#fff;border-top:0;border-left:2px solid var(--ink);padding:38px 40px 40px;text-align:left}
@media (max-width:900px){
.tj-hol .tplgate{grid-template-columns:1fr}
.tj-hol .tplgate>.tpldfy{grid-column:1;grid-row:auto;margin:30px 0 -40px;border-left:0;border-top:2px solid var(--ink)}
}
@media (max-width:620px){
.tj-hol .tplgate>*{padding-left:22px;padding-right:22px}
.tj-hol .tplgate>.tpldfy{padding:28px 22px 32px}
}

/* questions: a framed panel */
.tj-hol .ho-faq{padding:0 0 72px}
.tj-hol .ho-qs{margin-top:24px;border:2px solid var(--ink);border-radius:14px;padding:6px 28px 8px}
.tj-hol .ho-qs details.fq:last-child{border-bottom:0}
@media (max-width:620px){.tj-hol .ho-qs{padding:4px 16px 6px}}

/* related templates: four columns under one rule */
.tj-hol .art-rel{padding-block:0 72px}
.tj-hol .art-rel-grid{gap:0;border-top:2px solid var(--ink)}
.tj-hol .art-rel-grid a,.tj-hol .art-rel-grid a:first-child{min-height:120px;padding:20px 24px 20px 0;border:0;border-radius:0;background:none}
.tj-hol .art-rel-grid a+a{padding-left:24px;border-left:1px solid var(--ink)}
.tj-hol .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}
@media (max-width:900px){
.tj-hol .art-rel-grid{grid-template-columns:1fr 1fr}
.tj-hol .art-rel-grid a,.tj-hol .art-rel-grid a:first-child,.tj-hol .art-rel-grid a+a{min-height:0;padding:16px 0;border-left:0;border-bottom:1px solid var(--ink);flex-direction:row}
}
@media (max-width:620px){.tj-hol .art-rel-grid{grid-template-columns:1fr}}

/* closing band on plum */
.tj-hol .close{background:var(--plum)}
.tj-hol .close .closein{flex-direction:row;align-items:flex-end;justify-content:space-between;text-align:left;gap:48px;flex-wrap:nowrap}
.tj-hol .close h2{max-width:16ch}
.tj-hol .close .r{align-items:flex-start;max-width:520px}
.tj-hol .close .r a{background:var(--cfield);color:var(--ink)}
.tj-hol .close .r a:hover{background:#fff;color:var(--ink)}
@media (max-width:900px){.tj-hol .close .closein{flex-direction:column;align-items:flex-start;gap:20px}}

/* this page's own sections */
/* the policy's tabbed page beside the entitlement drawn as day squares */
.tj-hol .ho-doc{padding:64px 0 76px}
.tj-hol .ho-doc .ho-in{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:64px;align-items:stretch}
.tj-hol .ho-lede{margin:10px 0 0;font-size:1.05rem;color:#2f2b2e}
.tj-hol .ho-title{margin:34px 0 0;padding:18px 24px;background:var(--ink);color:#fff;border-radius:10px 10px 0 0;font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em;line-height:1.2}
.tj-hol .ho-title span{display:block;font-family:var(--body);font-size:.88rem;font-weight:700;letter-spacing:0;color:#ffb3cb;margin-bottom:2px}
.tj-hol .ho-secs{list-style:none;margin:0;padding:0;counter-reset:ho;border:2px solid var(--ink);border-top:0;border-radius:0 0 10px 10px;overflow:hidden}
.tj-hol .ho-secs li{counter-increment:ho;display:flex;align-items:center;gap:16px;padding:0 24px 0 0;border-top:1px solid var(--line);min-height:50px}
.tj-hol .ho-secs li:first-child{border-top:0}
.tj-hol .ho-secs li:before{content:counter(ho);flex:none;align-self:stretch;display:flex;align-items:center;justify-content:center;width:54px;background:#fff0f4;font-family:var(--head);font-weight:700;color:var(--c);border-right:2px solid var(--ink)}
.tj-hol .ho-secs li:after{content:"";flex:1;height:7px;border-radius:2px;background:var(--line);min-width:30px}
.tj-hol .ho-secs b{font-family:var(--head);font-weight:700;font-size:1.05rem;letter-spacing:-.012em;line-height:1.25}
.tj-hol .ho-secs .ho-hi{background:var(--cfield)}
.tj-hol .ho-secs .ho-hi:before{background:var(--ink);color:#fff}
.tj-hol .ho-secs .ho-hi:after{background:var(--ink)}
.tj-hol .ho-ent{background:var(--cfield);border-radius:18px;padding:40px 40px 36px;display:flex;flex-direction:column;justify-content:space-between}
.tj-hol .ho-big{margin:0;font-family:var(--head);font-weight:700;font-size:clamp(2.6rem,5.4vw,4.2rem);letter-spacing:-.05em;line-height:1}
.tj-hol .ho-days{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:30px 0;max-width:330px}
.tj-hol .ho-days i,.tj-hol .ho-days b{display:block;aspect-ratio:1;border-radius:6px;background:var(--ink)}
.tj-hol .ho-days b{background:none;border:2px dashed rgba(20,17,20,.45)}
.tj-hol .ho-cap{margin:0;font-family:var(--head);font-weight:600;font-size:1.1rem;line-height:1.45;letter-spacing:-.012em}

/* filling it in: five blanks on plum */
.tj-hol .ho-fill{background:var(--plum);color:#fff;padding:68px 0 72px}
.tj-hol .ho-fill h2{color:#fff}
.tj-hol .ho-fill-tx{max-width:760px}
.tj-hol .ho-fill-tx p{margin:14px 0 0;font-size:1.1rem;line-height:1.7;color:#f6e3ea}
.tj-hol .ho-cells{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:36px;background:#fff;color:var(--ink);border-radius:10px;overflow:hidden}
.tj-hol .ho-cells p{margin:0;padding:20px 20px 24px;display:flex;flex-direction:column;justify-content:space-between;min-height:132px;border-left:2px solid var(--plum)}
.tj-hol .ho-cells p:first-child{border-left:0}
.tj-hol .ho-cells span{font-family:var(--head);font-weight:700;font-size:1rem;letter-spacing:-.012em;line-height:1.25}
.tj-hol .ho-cells i{display:block;border-bottom:2px solid var(--ink);height:30px;background:#fff0f4}

/* the law: one column for each source, then the note */
.tj-hol .ho-law{padding:72px 0 0}
.tj-hol .ho-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:26px;border-top:2px solid var(--ink)}
.tj-hol .ho-acts>p,.tj-hol .ho-b4{margin:0;padding:22px 28px 6px 0;font-size:1rem;line-height:1.68;color:#2f2b2e}
.tj-hol .ho-acts>p+p,.tj-hol .ho-b4{padding-left:28px;border-left:1px solid var(--ink)}
.tj-hol .ho-b4{padding-right:0}
.tj-hol .ho-law .ho-b4 h2{font-size:1.1rem;letter-spacing:-.015em}
.tj-hol .ho-b4 p{margin:8px 0 0}

@media (max-width:900px){
.tj-hol .ho-doc .ho-in{grid-template-columns:1fr;gap:36px}
.tj-hol .ho-cells{grid-template-columns:1fr 1fr}
.tj-hol .ho-cells p{min-height:104px;border-left:0;border-top:2px solid var(--plum)}
.tj-hol .ho-cells p:nth-child(even){border-left:2px solid var(--plum)}
.tj-hol .ho-cells p:last-child{grid-column:1/-1}
.tj-hol .ho-acts{grid-template-columns:1fr 1fr}
.tj-hol .ho-acts>p:nth-child(3){padding-left:0;border-left:0}
.tj-hol .ho-acts>p:nth-child(3),.tj-hol .ho-b4{border-top:1px solid var(--ink)}
}
@media (max-width:620px){
.tj-hol .ho-ent{padding:30px 24px}
.tj-hol .ho-cells{grid-template-columns:1fr}
.tj-hol .ho-cells p,.tj-hol .ho-cells p:nth-child(even){border-left:0;min-height:96px}
.tj-hol .ho-acts{grid-template-columns:1fr}
.tj-hol .ho-acts>p,.tj-hol .ho-acts>p+p,.tj-hol .ho-b4{padding:20px 0 6px;border-left:0}
.tj-hol .ho-acts>p+p{border-top:1px solid var(--ink)}
.tj-hol .ho-secs li:after{display:none}
}
