/* handbook-it-email-and-social-media-policy-template (build_handbook_it_email_and_social_media_policy_template.py). Every rule starts with .tj-it.
   Centrepiece: the policy drawn on a screen, its sections as the window's menu, ending in the confirmation line. */
.tj-it .it-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tj-it section[class^="it-"] 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-it .it-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:9px}
.tj-it .it-ln.s{width:58%}
.tj-it .it-ln.m{width:82%}
.tj-it .tpl{border:2px solid var(--ink);border-radius:14px;overflow:hidden;margin:0}
.tj-it .tplbar{display:none}
.tj-it .tpl:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.tj-it .tplcta .btn{white-space:normal}
.tj-it .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tj-it .tpldfy>p{margin-left:0;max-width:none}

/* subscription box: a narrow stacked card, the plan on pink over the drafting form */
.tj-it .tplgate{text-align:left;padding:30px 28px;background:var(--cfield)}
.tj-it .tplgate>h3{font-size:1.3rem;color:var(--ink)}
.tj-it .tplgate>p{color:var(--ink);margin-left:0;max-width:none}
.tj-it .tplcta{justify-content:flex-start;gap:14px}
.tj-it .tplcta .btn{background:var(--ink);border-color:var(--ink);color:#fff}
.tj-it .tpl .tplcta a:not(.btn){color:var(--ink);text-decoration:underline;font-weight:700}
.tj-it .tpldfy{background:#fff;margin:24px -28px -30px;padding:26px 28px 30px;border-top:2px solid var(--ink);text-align:left;max-width:none}

/* questions: heading at the side */
.tj-it .it-faq{padding:0 0 72px}
.tj-it .it-faq .it-in{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:48px;align-items:start}
.tj-it .it-qs{border-top:2px solid var(--ink)}
@media (max-width:900px){.tj-it .it-faq .it-in{grid-template-columns:1fr;gap:24px}}

/* related templates: a row of tabs */
.tj-it .art-rel{padding-block:0 72px}
.tj-it .art-rel-grid{display:flex;flex-wrap:wrap;gap:12px}
.tj-it .art-rel-grid a,.tj-it .art-rel-grid a:first-child{min-height:0;flex-direction:row;align-items:center;gap:14px;padding:13px 20px;border:2px solid var(--ink);border-radius:999px;background:#fff;font-size:.98rem}
.tj-it .art-rel-grid a:hover{transform:none;box-shadow:none;background:var(--ink);color:#fff}

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

/* this page's own sections */
/* the policy on a screen, on black, with the subscription box beside it */
.tj-it .it-doc{background:var(--ink);padding:64px 0 76px}
.tj-it .it-doc .it-in{display:grid;grid-template-columns:minmax(0,1fr) 384px;gap:48px;align-items:stretch}
.tj-it .it-main{display:flex;flex-direction:column}
.tj-it .it-win{flex:1;display:flex;flex-direction:column}
.tj-it .it-body{flex:1}
.tj-it .it-doc:has(.tpldoc:not(.hidden-guide)) .it-in{grid-template-columns:1fr}
.tj-it .it-doc h2{color:#fff}
.tj-it .it-lede{margin:10px 0 0;color:#e9e4e6;font-size:1.05rem}
.tj-it .it-side .tpl{border-color:#fff}
.tj-it .it-win{margin-top:36px;border-radius:12px;overflow:hidden;background:#fff;color:var(--ink)}
.tj-it .it-bar{display:flex;align-items:center;gap:8px;padding:14px 18px;background:var(--plum);color:#fff}
.tj-it .it-bar i{width:12px;height:12px;border-radius:50%;background:var(--cfield);flex:none}
.tj-it .it-bar i+i{background:#ffb3cb}
.tj-it .it-bar i+i+i{background:#fff}
.tj-it .it-bar span{margin-left:12px;font-family:var(--head);font-weight:600;font-size:.92rem;letter-spacing:-.01em;line-height:1.25}
.tj-it .it-body{display:grid;grid-template-columns:230px minmax(0,1fr)}
.tj-it .it-secs{list-style:none;margin:0;padding:14px 0;counter-reset:it;background:#fff0f4;border-right:2px solid var(--ink)}
.tj-it .it-secs li{counter-increment:it;display:flex;gap:10px;padding:15px 22px;font-family:var(--head);font-size:1.04rem;letter-spacing:-.012em;line-height:1.25}
.tj-it .it-secs li:before{content:counter(it) ".";font-weight:700;color:var(--c);min-width:18px}
.tj-it .it-secs b{font-weight:700}
.tj-it .it-secs .it-on{background:var(--cfield)}
.tj-it .it-secs .it-on:before{color:var(--ink)}
.tj-it .it-pane{padding:30px 34px 28px;display:flex;flex-direction:column}
.tj-it .it-pt{margin:0 0 8px;font-family:var(--head);font-weight:700;font-size:1.5rem;letter-spacing:-.03em}
.tj-it .it-ln.it-gap{margin-top:26px}
.tj-it .it-ok{display:flex;align-items:center;gap:12px;margin:auto 0 0;padding-top:20px;border-top:2px solid var(--ink);font-family:var(--head);font-weight:700;font-size:1rem;letter-spacing:-.012em}
.tj-it .it-pane>.it-ln:last-of-type{margin-bottom:34px}
.tj-it .it-ok>i:first-child{flex:none;width:24px;height:24px;border:2px solid var(--ink);border-radius:4px;background:var(--cfield)}
.tj-it .it-sig{flex:1;align-self:flex-end;border-bottom:2px solid var(--ink);min-width:40px;height:20px}

/* filling it in: the paragraph and the order of events beside the two lists to write */
.tj-it .it-fill{padding:84px 0 72px}
.tj-it .it-fill .it-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:72px;align-items:start}
.tj-it .it-fill-tx p{margin:16px 0 0;font-size:1.1rem;line-height:1.7;color:#2f2b2e}
.tj-it .it-order{list-style:none;margin:34px 0 0;padding:0;display:flex}
.tj-it .it-order li{flex:1;position:relative;padding:24px 14px 0 0;border-top:4px solid var(--ink);font-family:var(--head);font-weight:700;font-size:.98rem;letter-spacing:-.012em;line-height:1.3}
.tj-it .it-order li:before{content:"";position:absolute;left:0;top:-11px;width:18px;height:18px;border-radius:50%;background:var(--ink)}
.tj-it .it-order li:last-child{border-top-color:var(--cfield)}
.tj-it .it-order li:last-child:before{background:var(--cfield)}
.tj-it .it-tab{border:2px solid var(--ink);border-radius:10px;overflow:hidden}
.tj-it .it-tab+.it-tab{margin-top:24px}
.tj-it .it-th{margin:0;padding:13px 20px;background:var(--ink);color:#fff;font-family:var(--head);font-weight:700;font-size:1rem;letter-spacing:-.012em}
.tj-it .it-tab.two .it-th{display:grid;grid-template-columns:1fr 1fr;padding:0}
.tj-it .it-tab.two .it-th span{padding:13px 20px}
.tj-it .it-tab.two .it-th span+span{border-left:2px solid #fff}
.tj-it .it-tab>i{display:block;height:40px;border-top:1px solid var(--ink)}
.tj-it .it-tab>i:first-of-type{border-top:0}
.tj-it .it-tab.two>i{background:linear-gradient(var(--ink),var(--ink)) 50% 0/2px 100% no-repeat}

/* the two notes under one rule */
.tj-it .it-law{padding:0 0 76px}
.tj-it .it-law .it-in{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px}
.tj-it .it-law .it-in>div{border-top:6px solid var(--cfield);padding-top:20px}
.tj-it .it-law .it-b4{border-top-color:var(--ink)}
.tj-it .it-law h2{font-size:1.3rem}
.tj-it .it-law p{margin:12px 0 0;font-size:1.02rem;line-height:1.72;color:#2f2b2e}

@media (max-width:980px){
.tj-it .it-doc .it-in{grid-template-columns:1fr}
}
@media (max-width:900px){
.tj-it .it-fill .it-in,.tj-it .it-law .it-in{grid-template-columns:1fr;gap:32px}
}
@media (max-width:620px){
.tj-it .it-body{grid-template-columns:1fr}
.tj-it .it-secs{border-right:0;border-bottom:2px solid var(--ink)}
.tj-it .it-pane{padding:24px 20px}
.tj-it .it-order{flex-direction:column}
.tj-it .it-order li{padding:0 0 22px 30px;border-top:0;border-left:4px solid var(--ink)}
.tj-it .it-order li:last-child{border-left-color:var(--cfield);padding-bottom:0}
.tj-it .it-order li:before{left:-11px;top:0}
}
