/* 2026-11-14 Wills, Trusts and Estate Planning: "the home".
   Sections composed by cinematic-preview/practice_pages/estate_planning.py on top of practice-design.css.
   Logical properties throughout so the Persian page mirrors; nothing here hides content when scripts are off. */

/* ---------- line breaks: this page's own titles and one-sentence notes set in even lines, so no word is left alone
   on a last line in any of the three languages. Section headings, tab titles and the diagram title are balanced by
   the shared practice-design.css; the panel title is named here because the shared rule sits on the toggle button,
   whose later `all:unset` resets it. ---------- */
#practice-documents .pd-panel__t,.pd .est-sit__lead,.pd .est-sit__label,.pd .est-paper__t,.pd .est-paper__q,.pd .est-paper__d,.pd .est-clip__lead,
.est-set .ul-visual__eyebrow,.est-pocket .ul-visual__callout,.est-pocket .ul-visual__note{text-wrap:balance}

/* ---------- 01 decisions: heading beside the intro, the situations gathered around the home ---------- */
body[data-design] .pd--estdecisions .pd-head .lead{margin:18px 0 0;max-width:64ch;font:400 clamp(1.02rem,1.2vw,1.1rem)/1.72 var(--f-text,Montserrat,sans-serif);color:var(--pd-text)}
.est-sit__lead{display:flex;align-items:center;gap:18px;margin:clamp(30px,4vw,56px) 0 clamp(16px,1.8vw,22px)}
body[data-design] .pd .est-sit__lead{font:600 clamp(1.25rem,1.8vw,1.5rem)/1.25 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
.est-sit__lead::after{content:"";flex:1 1 40px;height:1px;background:#c6d5ea}
.est-sit{list-style:none;margin:0;padding:0;display:grid;gap:clamp(16px,2vw,28px)}
.est-sit__item{display:grid;grid-template-columns:76px minmax(0,1fr);gap:18px;align-items:start;align-content:start;min-width:0;padding-block-start:clamp(18px,2vw,24px);border-block-start:1px solid #c6d5ea}
.est-sit__item .pd-art{width:76px}
.est-sit__copy{min-width:0}
body[data-design] .pd .est-sit__label{display:block;margin:0 0 6px;font:600 clamp(1.28rem,1.8vw,1.46rem)/1.2 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
body[data-design] .pd .est-sit__text{display:block;font:400 1rem/1.68 var(--f-text,Montserrat,sans-serif);color:var(--pd-text);overflow-wrap:anywhere}
.est-sit__item:first-child{padding:clamp(20px,2.6vw,36px);border:1px solid var(--pd-line);border-radius:26px;background:linear-gradient(150deg,#fff 0%,#eef4fc 100%);box-shadow:0 26px 50px -40px rgba(12,29,85,.6)}
@media (max-width:767px){
  .est-sit__lead::after{display:none}
  .est-sit__item:first-child{grid-template-columns:minmax(0,1fr);gap:14px}
  .est-sit__item:first-child .pd-art{width:108px}
  body[data-design] .pd .est-sit__item:first-child .est-sit__label{font-size:1.55rem}
  .est-funding .pd-aside .pd-art--hero{width:132px}
}
/* the closing statement: a whole card opened by the short yellow rule. On wide screens the rule sits beside the first
   line, the counterpart of the lead-in sentence above, which runs into a hairline. No stripe down one side. */
body[data-design] .pd .est-doorstep{margin:clamp(26px,3.4vw,46px) 0 0;padding:clamp(20px,2.2vw,28px) clamp(20px,2.8vw,38px);border:1px solid var(--pd-line);border-radius:22px;
  background:rgba(255,255,255,.86);box-shadow:0 22px 44px -40px rgba(12,29,85,.55);font:500 clamp(1.12rem,1.55vw,1.36rem)/1.55 var(--f-text,Montserrat,sans-serif);color:var(--pd-ink)}
.est-doorstep::before{content:"";display:block;width:44px;height:4px;margin-block-end:16px;border-radius:2px;background:var(--pd-yellow)}
@media (min-width:768px){
  body[data-design] .pd .est-doorstep{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:clamp(18px,2vw,28px);align-items:start}
  .est-doorstep::before{margin-block:calc(.775em - 2px) 0}
  .est-sit{grid-template-columns:repeat(2,minmax(0,1fr))}
  .est-sit__item:first-child{grid-column:1 / -1;grid-template-columns:minmax(0,1fr) clamp(130px,17vw,190px);align-items:center;gap:clamp(20px,3vw,44px)}
  .est-sit__item:first-child .pd-art{order:2;width:100%}
  body[data-design] .pd .est-sit__item:first-child .est-sit__label{font-size:clamp(1.6rem,2.5vw,2.1rem);margin-bottom:10px}
  body[data-design] .pd .est-sit__item:first-child .est-sit__text{font-size:clamp(1.02rem,1.25vw,1.12rem);max-width:46ch}
}
@media (min-width:1024px){
  .pd--estdecisions .pd-head{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(28px,4vw,64px);align-items:start}
  .pd--estdecisions .pd-head .pd-kicker{grid-column:1 / -1}
  /* Spanish: the longer heading gets half the width, so it sets in three lines instead of four with a word alone */
  html[lang|="es"] .pd--estdecisions .pd-head{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body[data-design] .pd--estdecisions .pd-head .lead{margin:6px 0 0;padding-inline-start:clamp(22px,3vw,44px);border-inline-start:1px solid var(--pd-line)}
  .est-sit{grid-template-columns:repeat(12,minmax(0,1fr))}
  .est-sit__item{grid-column:span 4;grid-template-columns:minmax(0,1fr);gap:14px}
  .est-sit__item .pd-art{width:84px}
  .est-sit__item:first-child{grid-column:span 7}
  /* the companion of the home card: the same outline and radius, flat (no shadow, no gradient), so the first row reads
     as one featured card and one quiet card, not as a card and an item that lost its frame */
  .est-sit__item:nth-child(2){grid-column:span 5;grid-template-columns:minmax(0,1fr) clamp(88px,8vw,112px);gap:clamp(14px,1.6vw,24px);align-items:center;align-content:center;
    padding:clamp(18px,2vw,28px);border:1px solid var(--pd-line);border-radius:26px;background:rgba(255,255,255,.5)}
  .est-sit__item:nth-child(2) .pd-art{order:2;width:100%}
  body[data-design] .pd .est-sit__item:nth-child(2) .est-sit__label{font-size:clamp(1.4rem,2vw,1.7rem);margin-bottom:8px}
}

/* ---------- 02 documents: on wide screens the open panel is one paper, the same paper that stands in the folder below ---------- */
@media (min-width:1024px){
  #practice-documents .is-tabs .pd-explorer__stage{filter:drop-shadow(0 0 1px #b9c9df) drop-shadow(0 22px 24px rgba(12,29,85,.13))}
  #practice-documents .is-tabs .pd-panel{position:relative;border:0;box-shadow:none;border-radius:12px;background:linear-gradient(165deg,#fff 0%,#f6f9fe 60%,#ebf1fa 100%);clip-path:polygon(0 0,calc(100% - 46px) 0,100% 46px,100% 100%,0 100%)}
  [dir=rtl] #practice-documents .is-tabs .pd-panel{clip-path:polygon(46px 0,100% 0,100% 100%,0 100%,0 46px)}
  #practice-documents .is-tabs .pd-panel::after{content:"";position:absolute;inset-block-start:0;inset-inline-end:0;width:46px;height:46px;background:linear-gradient(to top right,#b9cbe3 0%,#e3ecf8 50%,transparent 50%)}
  [dir=rtl] #practice-documents .is-tabs .pd-panel::after{background:linear-gradient(to top left,#b9cbe3 0%,#e3ecf8 50%,transparent 50%)}
  #practice-documents .is-tabs .pd-panel:focus-visible{outline:3px solid var(--pd-navy);outline-offset:-8px}
  #practice-documents .is-tabs .pd-panel__toggle{padding-inline-end:clamp(60px,5vw,76px)}
}
@media (forced-colors:active){#practice-documents .is-tabs .pd-panel{clip-path:none;border:1px solid CanvasText}#practice-documents .is-tabs .pd-panel::after{display:none}}

/* ---------- the diagram: four papers standing in one folder ---------- */
.ul-visual.ul-visual--pd.est-set{--est-pad:clamp(22px,3.4vw,40px);padding:var(--est-pad) var(--est-pad) 0;border-radius:24px}
.est-papers{position:relative;z-index:1;list-style:none;margin:clamp(22px,3vw,38px) 0 0;padding:0;display:grid;gap:12px}
.est-paper{min-width:0;display:grid;filter:drop-shadow(0 16px 14px rgba(2,8,30,.42))}
.est-paper__sheet{position:relative;display:grid;grid-template-columns:60px minmax(0,1fr);column-gap:16px;row-gap:6px;align-content:start;padding:18px 18px 20px;border-radius:10px;
  background:linear-gradient(168deg,#fff 0%,#f4f8fd 58%,#e4ecf8 100%);clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,0 100%)}
[dir=rtl] .est-paper__sheet{clip-path:polygon(28px 0,100% 0,100% 100%,0 100%,0 28px)}
.est-paper__sheet::after{content:"";position:absolute;inset-block-start:0;inset-inline-end:0;width:28px;height:28px;background:linear-gradient(to top right,#b9cbe3 0%,#dfe9f6 50%,transparent 50%)}
[dir=rtl] .est-paper__sheet::after{background:linear-gradient(to top left,#b9cbe3 0%,#dfe9f6 50%,transparent 50%)}
.est-paper__sheet .pd-art{width:60px;grid-row:1 / span 3;align-self:start}
.est-paper__sheet>:not(.pd-art){grid-column:2}
body[data-design] .pd .est-paper__t{margin:0;padding-inline-end:22px;font:600 clamp(1.26rem,1.7vw,1.42rem)/1.18 var(--f-head,'Barlow Condensed',sans-serif);color:#0c1d55}
body[data-design] .pd .est-paper__q{margin:0;font:600 1rem/1.45 var(--f-text,Montserrat,sans-serif);color:#16264a;overflow-wrap:anywhere}
body[data-design] .pd .est-paper__d{margin:4px 0 0;padding-block-start:10px;border-block-start:1px solid #cfdbec;font:400 .9rem/1.55 var(--f-text,Montserrat,sans-serif);color:#465b83;overflow-wrap:anywhere}
.est-paper:last-child .est-paper__sheet{padding-block-end:58px}
.est-pocket{position:relative;z-index:2;display:grid;gap:8px;margin:-38px calc(-1*var(--est-pad)) 0;padding:clamp(20px,2.4vw,28px) var(--est-pad) clamp(24px,2.8vw,36px);border-radius:0 0 24px 24px;
  background:linear-gradient(180deg,#1c3384 0%,#13266c 42%,#0d1c58 100%);border-block-start:1px solid rgba(196,216,244,.55);box-shadow:0 -16px 24px -14px rgba(2,8,30,.8)}
.est-pocket .ul-visual__callout{font-size:clamp(1.02rem,1.4vw,1.2rem)}
.est-pocket .ul-visual__note{max-width:88ch}   /* one sentence: one line where the band has room (Spanish needs about 700 px), two even lines where it has not */
.pd-js .est-paper[data-pd-reveal]{transform:translateY(34px)}
.pd-js .est-paper[data-pd-reveal].is-in{transform:none}
@media (min-width:768px){
  .est-papers{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.5vw,20px)}
  .est-paper__sheet{grid-template-columns:minmax(0,1fr);padding:22px 20px 24px}
  .est-paper__sheet .pd-art{width:82px;grid-row:auto;margin-block-end:6px}
  .est-paper__sheet>:not(.pd-art){grid-column:1}
  /* the title sits under the artwork here, well below the folded corner, so it can use the full width of the sheet */
  body[data-design] .pd .est-paper__t{padding-inline-end:0}
  .est-paper:nth-last-child(-n+2) .est-paper__sheet{padding-block-end:62px}
}
@media (min-width:1024px){
  .est-papers{grid-template-columns:repeat(4,minmax(0,1fr))}
  .est-paper .est-paper__sheet{padding-block-end:62px}
  .est-paper:nth-child(even){margin-block-start:24px}
}
@media (max-width:767px){
  .ul-visual.ul-visual--pd.est-set{--est-pad:16px;border-radius:18px}
  .est-pocket{border-radius:0 0 18px 18px}
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .est-paper__sheet{transition:transform .38s var(--ease-out,cubic-bezier(.22,1,.36,1))}
  .est-paper:hover .est-paper__sheet{transform:translateY(-10px)}
}
@media (prefers-reduced-motion:reduce){.pd-js .est-paper[data-pd-reveal]{transform:none}}
@media (forced-colors:active){.est-paper__sheet{border:1px solid CanvasText;clip-path:none}.est-paper__sheet::after{display:none}.est-pocket{border:1px solid CanvasText}}

/* ---------- 03 funding: editorial with the record-keeping paragraph as a note ---------- */
.est-funding .pd-note{margin-top:clamp(20px,2.4vw,28px);background:#fff;box-shadow:0 18px 36px -34px rgba(12,29,85,.6)}
body[data-design] .pd.est-funding .pd-body p.pd-lead{font:500 clamp(1.14rem,1.55vw,1.36rem)/1.55 var(--f-text,Montserrat,sans-serif);color:var(--pd-ink);margin-bottom:20px}
.est-funding .pd-art--hero{width:clamp(170px,19vw,264px)}
@media (min-width:1024px){.est-funding .pd-body{align-self:center}}
body[data-design] .pd.est-funding .pd-note p{font-size:1rem;max-width:none}

/* ---------- 04 parents: one statement, then the two separate decisions ---------- */
.pd--statement.est-parents .pd-navy{grid-template-columns:minmax(0,1fr);gap:clamp(22px,3vw,40px);align-items:start}
.est-duo__top{display:grid;gap:4px;min-width:0}
.est-duo__parts{display:grid;border-block-start:1px solid rgba(190,212,240,.3);min-width:0}
.est-duo__part{display:grid;gap:16px;align-content:start;justify-items:start;min-width:0;padding-block:clamp(22px,2.6vw,34px) clamp(18px,2vw,24px)}
.est-duo__part+.est-duo__part{border-block-start:1px solid rgba(190,212,240,.3);padding-block-end:0}
.est-duo__part .pd-art{width:clamp(96px,10vw,140px)}
body[data-design] .pd .est-duo__part p{margin:0;max-width:58ch;font:400 1.02rem/1.72 var(--f-text,Montserrat,sans-serif);color:#dce7f7;overflow-wrap:anywhere}
@media (min-width:1024px){
  .est-duo__top{grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:clamp(28px,4vw,64px);align-items:end}
  body[data-design] .pd--statement .pd-navy.est-duo .pd-lead{margin:0 0 8px;max-width:none}
  .est-duo__parts{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .est-duo__part{padding-block-end:0;padding-inline-end:clamp(26px,3.4vw,56px)}
  .est-duo__part+.est-duo__part{border-block-start:0;border-inline-start:1px solid rgba(190,212,240,.3);padding-inline:clamp(26px,3.4vw,56px) 0}
}

/* ---------- 05 prepare: the list as a sheet on a clipboard ---------- */
.est-clip{position:relative;margin-block-start:14px;padding:clamp(34px,3.6vw,48px) clamp(20px,3vw,42px) clamp(10px,1.4vw,18px);border:1px solid var(--pd-line);border-radius:24px;background:linear-gradient(170deg,#fff 0%,#f7faff 100%);box-shadow:0 28px 54px -42px rgba(12,29,85,.65)}
.est-clip::before{content:"";position:absolute;inset-block-start:-14px;inset-inline:0;margin-inline:auto;width:112px;height:30px;border-radius:10px;background:linear-gradient(180deg,#486d8c 0%,#223c58 55%,#10243e 100%);border:2px solid #b5d5ed;box-shadow:0 8px 12px -6px rgba(2,10,28,.55)}
.est-clip::after{content:"";position:absolute;inset-block-start:-3px;inset-inline:0;margin-inline:auto;width:34px;height:8px;border-radius:4px;background:#f9e900}
body[data-design] .pd .pd-body .est-clip__lead{margin:0 0 10px;max-width:none;font:600 clamp(1.3rem,1.9vw,1.58rem)/1.22 var(--f-head,'Barlow Condensed',sans-serif);color:var(--pd-navy)}
.est-clip__list{list-style:none;margin:0;padding:0}
.est-clip__list li{position:relative;padding-block:16px;padding-inline-start:46px;border-block-start:1px solid #dbe5f2}
.est-clip__list li::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:17px;width:26px;height:26px;box-sizing:border-box;border-radius:50%;background:linear-gradient(160deg,#fff796,#ffe800);border:1px solid #c6a600}
.est-clip__list li::after{content:"";position:absolute;inset-inline-start:7px;inset-block-start:24px;width:12px;height:6px;border-left:2.6px solid #102440;border-bottom:2.6px solid #102440;transform:rotate(-45deg)}
.est-prepare .pd-note{background:#fff}
@media (max-width:1023px){.est-prepare .pd-aside .pd-art{width:104px}}
