/* /estudantes, "Residência médica, da prática à aprovação" (the block after the dossier).
   One composition from the art direction, in two arrangements:
   - up to 1023px, stacked: Dr. Jassonio in front of the navy shape with the kidney study,
     with a line in capitals, a quotation card, his name on his coat, a handwritten note
     and a proof card around him; then the heading, the actions, the benefits and a
     signature, centred;
   - from 1024px, side by side: the same picture on the left, running off the edge of the
     screen, and the heading, actions and benefits on the right, over one baseline.
   The picture's measures are in cqw (the figure is the container), so it keeps its
   proportions from a 360px phone to a tablet. The navy shape is darkened to the tone of
   the dossier's navy cards. */

/* pieces that only the side-by-side arrangement uses */
.academy-students .residency-block :is(.rs-note,.rs-end){display:none}

@media (max-width:1023px){
 .academy-students .residency-block{padding:18px 0 34px}
 .academy-students .residency-layout{display:flex;flex-direction:column;gap:0}
 .academy-students .residency-portrait{container-type:inline-size;display:block;position:relative;align-self:stretch;width:auto;max-width:none;height:auto;aspect-ratio:100/95;margin:0 calc(-1 * var(--m-gutter,20px))}
 .academy-students .residency-panel{display:none}
 .academy-students .rs-blob{display:block;position:absolute;z-index:0;left:-14cqw;top:1cqw;width:126cqw;max-width:none;height:auto;pointer-events:none;filter:brightness(.62) saturate(1.12)}
 .academy-students .residency-portrait .residency-doctor{left:9cqw;right:auto;top:4cqw;bottom:auto;width:94cqw;max-width:none;height:auto;filter:none;-webkit-mask:linear-gradient(#000 74%,transparent 96%);mask:linear-gradient(#000 74%,transparent 96%)}
 /* top left: the line in capitals */
 .academy-students .rs-tag{display:block;position:absolute;z-index:2;left:6.5cqw;top:14cqw;margin:0;font:500 max(8.5px,2.3cqw)/1.95 var(--acad-mono);letter-spacing:.2em;text-transform:uppercase;color:#eef2f6}
 .academy-students .rs-tag::after{content:'';display:block;width:22px;height:1.5px;margin-top:9px;background:#d9b566}
 /* top right: the quotation card */
 .academy-students .rs-quote{display:block;position:absolute;z-index:3;right:2cqw;top:7cqw;width:30.5cqw;margin:0;padding:3.2cqw 2.6cqw 3cqw 3.2cqw;border-radius:14px;background:#fffdf8;box-shadow:0 18px 30px -18px #03101f99,0 2px 6px #03101f1f;transform:rotate(3deg);transform-origin:50% 0}
 .academy-students .rs-quote-mark{display:block;width:19px;height:14px;margin-bottom:6px;fill:#c49a4a}
 .academy-students .rs-quote p{margin:0;font:400 max(12px,3.2cqw)/1.12 var(--acad-display);letter-spacing:-.012em;color:#0f2744}
 .academy-students .rs-quote .rs-quote-sign{margin-top:9px;font:500 max(7.5px,2.05cqw)/1.7 var(--acad-mono);letter-spacing:.14em;text-transform:uppercase;color:#43566c}
 .academy-students .rs-quote .rs-quote-sign::before{content:'';display:block;width:16px;height:1px;margin-bottom:6px;background:#c49a4a}
 /* his name, on the plain part of the coat under the card, clear of his arm */
 .academy-students .residency-portrait .residency-legend{display:grid;left:auto;right:3cqw;top:48cqw;width:35cqw;gap:0;padding:0;background:none;filter:none}
 .academy-students .residency-legend::before{content:'';width:20px;height:1.5px;margin-bottom:9px;background:#b8893a}
 .academy-students .residency-legend-name{font:400 max(16px,4.35cqw)/1.04 var(--acad-display);letter-spacing:-.01em;color:#071d35;text-wrap:balance;text-shadow:0 1px 0 #fff,0 0 9px #fffd}
 .academy-students .residency-legend-role{display:none}
 .academy-students .rs-role{display:block;margin-top:6px;font:500 max(9.5px,2.6cqw)/1.35 Inter,sans-serif;color:#18324b;text-wrap:balance;text-shadow:0 1px 0 #fff,0 0 7px #fffd}
 /* bottom left, on the navy: the handwritten note, never under the card */
 .academy-students .rs-hand{display:block;position:absolute;z-index:3;left:4cqw;top:75.5cqw;margin:0;font:600 max(17px,4.9cqw)/1.04 'Dossier Hand',cursive;color:#f2cf7f;transform:rotate(-6deg);transform-origin:0 0;text-shadow:0 2px 10px #020c18cc,0 0 1px #020c18}
 .academy-students .rs-hand br:nth-of-type(1),.academy-students .rs-hand br:nth-of-type(3){display:none}
 .academy-students .rs-hand svg{display:block;width:max(58px,17cqw);height:12px;margin-top:5px;fill:none;stroke:#e6bd62;stroke-width:2.2;stroke-linecap:round;overflow:visible}
 /* bottom right: the proof card */
 .academy-students .rs-proof{display:flex;position:absolute;z-index:3;right:4cqw;top:77cqw;align-items:center;gap:2.2cqw;margin:0;padding:2.6cqw 3cqw 2.6cqw 3.2cqw;border-radius:12px;background:#fffdf8;box-shadow:0 18px 30px -18px #03101f99,0 2px 6px #03101f1f;transform:rotate(-4deg)}
 .academy-students .rs-proof-bars{flex:none;width:max(20px,5.6cqw);height:max(20px,5.6cqw);fill:#c1953f}
 .academy-students .rs-proof span{display:grid;font:500 max(9px,2.45cqw)/1.25 Inter,sans-serif;color:#33475d}
 .academy-students .rs-proof b{font:700 max(17px,4.9cqw)/1 Inter,sans-serif;letter-spacing:-.02em;color:#0f2744;margin-bottom:3px}
 .academy-students .rs-proof-chart{flex:none;width:max(30px,8.6cqw);height:auto;aspect-ratio:64/48;margin-left:1cqw;overflow:visible}
 .academy-students .rs-proof-chart .rs-bar{fill:#efe2c4}
 .academy-students .rs-proof-chart .rs-arrow{fill:none;stroke:#c1953f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
 /* the copy, centred */
 .academy-students .residency-copy{padding:10px 0 0;text-align:center}
 .academy-students .residency-copy>.kicker{display:none}
 .academy-students .rs-kicker{display:flex;justify-content:center;align-items:center;gap:16px;margin:0;font:500 10.5px/1.5 var(--acad-mono);letter-spacing:.3em;text-transform:uppercase;color:#a4741f}
 .academy-students .rs-kicker::before,.academy-students .rs-kicker::after{content:'';width:30px;height:1px;background:#c9a458}
 .academy-students .residency-copy h2{margin:14px 0 0;font-size:clamp(38px,10.4vw,58px)!important;line-height:.98!important;letter-spacing:-.02em}
 .academy-students .residency-lead,.academy-students .residency-signature{display:none}
 .academy-students .rs-lead{display:block;max-width:34ch;margin:16px auto 0;font:400 clamp(18px,4.9vw,22px)/1.3 var(--acad-display);color:#1b3149;text-wrap:balance}
 .academy-students .residency-block .path-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}
 .academy-students .residency-block .path-button{width:100%;justify-content:center;gap:14px;min-height:56px;padding:0 22px;border-radius:999px;font-size:16px;font-weight:500;box-shadow:0 16px 30px -20px #0b203699}
 .academy-students .residency-block .path-text-link{align-self:stretch;justify-content:center;min-height:52px;padding:0 20px;border:1px solid #d6bd8a;border-radius:999px;font:500 16px/1.2 Inter,sans-serif;color:#0f2e52;text-decoration:none}
 .academy-students .residency-benefits{display:grid;grid-template-columns:minmax(0,1fr);margin:26px 0 0;padding:0;border:0;text-align:left}
 .academy-students .residency-benefits li,.academy-students .residency-benefits li+li{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;column-gap:18px;align-items:center;padding:14px 0;border:0;border-bottom:1px solid #e8dcc4;text-align:left}
 .academy-students .residency-benefits li:last-child{border-bottom:0}
 .academy-students .residency-benefits li>span{grid-row:1/3;width:56px;height:56px;margin:0;background:#f3e9d6}
 .academy-students .residency-benefits img{width:26px;height:26px;opacity:.9}
 .academy-students .residency-benefits b{align-self:end;font:400 21px/1.1 var(--acad-display)!important;letter-spacing:-.01em;color:#0a1f35}
 .academy-students .residency-benefits b br{display:none}
 .academy-students .rs-bd{display:block;align-self:start;margin-top:4px;font:400 14px/1.4 Inter,sans-serif;color:#4b5a6d}
 .academy-students .rs-foot{display:block}
 .academy-students .rs-sign{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:12px 0 0;font:500 9.5px/1.9 var(--acad-mono);letter-spacing:.24em;text-transform:uppercase;color:#1d3558;text-align:center}
 .academy-students .rs-sign::before,.academy-students .rs-sign::after{content:'';height:1px;background:#c9a458}
}

/* tablet: the same stacked composition, at a tablet's size */
@media (min-width:768px) and (max-width:1023px){
 .academy-students .residency-block{padding:40px 0 64px}
 .academy-students .residency-portrait{width:min(100%,640px);margin-inline:auto}
 .academy-students .residency-copy{width:min(100%,640px);margin-inline:auto}
 .academy-students .rs-foot{width:min(100%,640px);margin-inline:auto}
 .academy-students .residency-benefits li>span{width:60px;height:60px}
}

/* side by side, as the art direction's desktop: the picture takes the left 54% of the
   screen and runs off its left edge; the copy sits on the right; one baseline under both.
   The picture's measures are in cqw of the figure, the copy's in vw, both taken from the
   1672px reference. */
@media (min-width:1024px){
 .academy-students .residency-block{padding:36px 0 72px}
 .academy-students .residency-block .residency-layout{display:grid;width:100%;max-width:1800px;margin:0 auto;grid-template-columns:minmax(0,54.1%) minmax(0,1fr);grid-template-areas:"art copy" "foot foot";gap:0;align-items:start}
 .academy-students .residency-portrait{container-type:inline-size;grid-area:art;position:relative;align-self:start;width:100%;max-width:none;height:auto;aspect-ratio:905/790;margin:0}
 .academy-students .residency-panel,.academy-students .residency-legend-role{display:none}
 .academy-students .rs-blob{display:block;position:absolute;z-index:0;left:-15cqw;top:-1cqw;width:116cqw;max-width:none;height:auto;pointer-events:none;filter:brightness(.62) saturate(1.12)}
 .academy-students .residency-portrait .residency-doctor{left:13cqw;right:auto;top:3.5cqw;bottom:auto;width:85cqw;max-width:none;height:auto;filter:none;-webkit-mask:linear-gradient(#000 84%,transparent 100%);mask:linear-gradient(#000 84%,transparent 100%)}
 .academy-students .rs-tag{display:block;position:absolute;z-index:2;left:8.3cqw;top:13.6cqw;margin:0;font:500 1.22cqw/2.05 var(--acad-mono);letter-spacing:.34em;text-transform:uppercase;color:#eef2f6}
 .academy-students .rs-tag::after{content:'';display:block;width:3.4cqw;height:2px;margin-top:2.6cqw;background:#d9b566}
 .academy-students .rs-quote{display:block;position:absolute;z-index:3;left:68.6cqw;top:7.6cqw;width:28cqw;margin:0;padding:2.6cqw 2.4cqw 2.6cqw 2.8cqw;border-radius:1.8cqw;background:#fffdf8;box-shadow:0 26px 44px -26px #03101fa6,0 2px 8px #03101f1f;transform:rotate(4deg);transform-origin:50% 0}
 .academy-students .rs-quote-mark{display:block;width:3.5cqw;height:2.6cqw;margin-bottom:1.3cqw;fill:#c49a4a}
 .academy-students .rs-quote p{margin:0;font:400 2.55cqw/1.12 var(--acad-display);letter-spacing:-.012em;color:#0f2744}
 .academy-students .rs-quote .rs-quote-sign{margin-top:2.2cqw;font:500 1.12cqw/1.75 var(--acad-mono);letter-spacing:.3em;text-transform:uppercase;color:#43566c}
 .academy-students .rs-quote .rs-quote-sign br{display:inline}
 .academy-students .rs-quote .rs-quote-sign::before{content:'';display:block;width:3cqw;height:1.5px;margin-bottom:1.4cqw;background:#c49a4a}
 .academy-students .residency-portrait .residency-legend{display:grid;left:65.5cqw;right:auto;top:57cqw;width:25cqw;gap:0}
 .academy-students .residency-legend::before{content:'';width:3.4cqw;height:2px;margin-bottom:2cqw;background:#c49a4a}
 .academy-students .residency-legend-name{font:400 2.35cqw/1.08 var(--acad-display);letter-spacing:-.01em;color:#0a1f35;white-space:nowrap}
 .academy-students .rs-role{display:block;margin-top:.7cqw;font:500 1.58cqw/1.4 Inter,sans-serif;color:#2c3e53}
 .academy-students .rs-role br{display:inline}
 .academy-students .rs-hand{display:block;position:absolute;z-index:3;left:2.2cqw;top:63cqw;margin:0;font:600 2.6cqw/1.04 'Dossier Hand',cursive;color:#f2cf7f;transform:rotate(-11deg);transform-origin:0 0;text-shadow:0 2px 12px #020c18cc,0 0 1px #020c18}
 .academy-students .rs-hand svg{display:block;width:6cqw;height:1.4cqw;margin-top:1cqw;fill:none;stroke:#e6bd62;stroke-width:2.4;stroke-linecap:round;overflow:visible}
 .academy-students .rs-proof{display:flex;position:absolute;z-index:3;left:18.5cqw;top:71cqw;align-items:center;gap:1.4cqw;margin:0;padding:1.9cqw 2.2cqw 1.9cqw 2.4cqw;border-radius:1.6cqw;background:#fffdf8;box-shadow:0 26px 44px -26px #03101fa6,0 2px 8px #03101f1f;transform:rotate(-6deg)}
 .academy-students .rs-proof-bars{flex:none;width:3.8cqw;height:3.8cqw;fill:#c1953f}
 .academy-students .rs-proof span{display:grid;font:500 1.6cqw/1.25 Inter,sans-serif;color:#33475d}
 .academy-students .rs-proof b{font:700 3.2cqw/1 Inter,sans-serif;letter-spacing:-.02em;color:#0f2744;margin-bottom:.5cqw}
 .academy-students .rs-proof-chart{flex:none;width:5.6cqw;height:auto;aspect-ratio:64/48;margin-left:.6cqw;overflow:visible}
 .academy-students .rs-proof-chart .rs-bar{fill:#efe2c4}
 .academy-students .rs-proof-chart .rs-arrow{fill:none;stroke:#c1953f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
 /* the copy */
 .academy-students .residency-copy{grid-area:copy;position:relative;align-self:start;width:auto;max-width:none;padding:6.4vw 2.6vw 0 3vw;text-align:left}
 .academy-students .residency-copy>.kicker,.academy-students .residency-lead,.academy-students .residency-signature{display:none}
 .academy-students .residency-block .rs-note{display:block;position:absolute;top:3.9vw;right:4.2vw;margin:0;font:500 max(9px,.6vw)/1.95 var(--acad-mono);letter-spacing:.34em;text-transform:uppercase;color:#6b778a;text-align:left}
 .academy-students .residency-block .rs-note::after{content:'';display:block;width:2vw;height:2px;margin:1.1vw 0 0 auto;background:#c9a458}
 .academy-students .rs-kicker{display:flex;align-items:center;gap:1.4vw;margin:0;font:500 max(10px,.72vw)/1.5 var(--acad-mono);letter-spacing:.36em;text-transform:uppercase;color:#a4741f}
 .academy-students .rs-kicker::before{content:'';width:2.3vw;height:1.5px;background:#c9a458}
 .academy-students .residency-copy h2{margin:1.9vw 0 0;font-size:clamp(48px,4.85vw,92px)!important;line-height:.95!important;letter-spacing:-.028em;white-space:nowrap}
 .academy-students .rs-lead{display:block;max-width:41ch;margin:1.4vw 0 0;font:400 clamp(19px,1.52vw,27px)/1.32 var(--acad-display);color:#1b3149}
 .academy-students .residency-block .path-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1.4vw 2.4vw;margin-top:1.8vw}
 .academy-students .residency-block .path-button{min-height:max(52px,3.7vw);padding:0 2.6vw;border-radius:999px;gap:1.2vw;font:500 max(15px,1.08vw)/1 Inter,sans-serif;box-shadow:0 18px 32px -20px #0b2036b3}
 .academy-students .residency-block .path-text-link{padding-block:.9vw;font-size:max(18px,1.38vw);border-bottom:1.5px solid #c9a458}
 .academy-students .residency-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:3.4vw 0 0 -5.7vw;padding:0;border:0}
 .academy-students .residency-benefits li,.academy-students .residency-benefits li+li{display:grid;grid-template-columns:4.3vw minmax(0,1fr);grid-template-areas:"icon title" "desc desc";align-items:center;column-gap:1.2vw;padding:.4vw 1.5vw .4vw 0;text-align:left;border:0}
 .academy-students .residency-benefits li+li{padding-left:1.5vw;border-left:1px solid #e1d2b6}
 .academy-students .residency-benefits li>span{grid-area:icon;width:4.3vw;height:4.3vw;min-width:44px;min-height:44px;margin:0;background:#f3e9d6}
 .academy-students .residency-benefits img{width:2vw;height:2vw;min-width:20px;min-height:20px;opacity:.9}
 .academy-students .residency-benefits b{grid-area:title;font:400 clamp(18px,1.55vw,27px)/1.05 var(--acad-display)!important;letter-spacing:-.01em;color:#0a1f35}
 .academy-students .rs-bd{display:block;grid-area:desc;margin:1.1vw 0 0 2vw;font:400 clamp(12.5px,.93vw,16px)/1.45 Inter,sans-serif;color:#4b5a6d}
 /* one baseline under both halves */
 .academy-students .rs-foot{grid-area:foot;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:2.6vw;margin-top:1.4vw;padding:0 4.2vw 0 4.5vw}
 .academy-students .rs-foot::after{content:'';grid-column:2;grid-row:1;height:1px;margin-bottom:.35vw;background:#d8c9aa}
 .academy-students .rs-sign{display:block;grid-column:1;grid-row:1;margin:0;font:500 max(9px,.66vw)/1.95 var(--acad-mono);letter-spacing:.34em;text-transform:uppercase;color:#43566c;text-align:left}
 .academy-students .rs-sign::before,.academy-students .rs-sign::after{content:none}
 .academy-students .residency-block .rs-end{display:flex;grid-column:3;grid-row:1;align-items:center;gap:1.4vw;margin:0;font:500 max(9px,.66vw)/1.95 var(--acad-mono);letter-spacing:.34em;text-transform:uppercase;color:#43566c}
 .academy-students .residency-block .rs-end::before{content:'';width:2.2vw;height:1.5px;background:#c9a458}
}
