/* Line & Loop site: the blog (index and posts). Loaded after legal.css, which gives the reading column.
   Still, like every reading page: no effect beyond the reveal. */

/* the index: one list, newest first */
.post-list{list-style:none; margin:0; padding:0}
.post-list li{border-top:var(--hair) solid var(--line)}
.post-list a{display:grid; gap:6px; padding:24px 0; color:var(--ink); text-decoration:none}
.post-list a:hover .post-title,.post-list a:focus-visible .post-title{text-decoration:underline; text-underline-offset:4px}
.post-date{font-size:15px; color:var(--muted)}
.post-title{font:500 clamp(22px,2.6vw,28px)/1.2 var(--display); letter-spacing:var(--d-tr)}
.post-desc{font-size:18px; line-height:1.55; color:var(--muted)}
.post-empty,.post-also{font-size:18px; line-height:1.6; color:var(--muted); padding-top:24px; border-top:var(--hair) solid var(--line)}
.post-also a{color:var(--ink); text-underline-offset:3px}

/* a post: the summary right after the opening answer */
.post-summary{margin:0 0 8px; padding:22px 24px; border-radius:var(--rd-sm,14px); background:var(--surface); box-shadow:var(--shadow)}
.post-summary h2{margin:0 0 10px; font-size:20px}
.post-summary ul{margin:0; padding-left:20px}
.legal-block h3{margin:20px 0 8px; font-size:clamp(20px,2.2vw,24px); line-height:1.2}

/* diagrams: inline SVG in a figure; the steps are also written in the text */
.post-fig{margin:20px 0 22px; padding:20px; border-radius:var(--rd-sm,14px); background:var(--surface); box-shadow:var(--shadow)}
.post-fig svg{display:block; width:100%; max-width:440px; height:auto; margin:0 auto; color:var(--ink)}
.post-fig figcaption{margin-top:12px; font-size:15px; line-height:1.5; color:var(--muted)}

/* how the post was made, one quiet line at the end */
.post-note{font-size:15px; line-height:1.5; color:var(--muted)}

/* 2026-11-26 (Eduardo): the reading column sits in the middle, with the same space on both sides,
   and is a little wider than the price guide (about 75 characters a line). */
.legal-in{max-width:98ch; margin-inline:auto}
.legal-body{max-width:none}

/* ---------- a post, layout B1 + M3 (Eduardo, 2026-11-26) ----------
   Desktop: hero text beside the semi-unique wave art, then a sticky "Neste artigo" side menu next to
   the reading column. Under 960px the side menu goes away and a floating "Seções" button opens the
   same list in a popover. Colour comes by position through data-h (soft fields, never small hue text). */
.bp{padding-top:clamp(24px,4vw,48px)}
.bp-hero{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:clamp(28px,4vw,56px); align-items:center; padding-bottom:clamp(40px,6vw,72px)}
.bp-hero-txt{display:grid; gap:20px; align-content:start}
.bp h1{font-size:clamp(38px,4.6vw,64px); line-height:1.04}
.bp h1 .thin{display:inline; color:var(--muted)}
.bp .lede{max-width:60ch; font-size:clamp(17px,1.4vw,19px); line-height:1.6}
.bp-tags{display:flex; flex-wrap:wrap; gap:8px}
.bp-tag{padding:8px 14px; border-radius:var(--r-pill); background:var(--h-soft); color:var(--ink)}
.bp-tag-line{background:none; border:var(--bw) solid var(--line); padding:6.5px 12.5px; color:var(--muted)}
.bp .byline{font-size:15px; color:var(--muted)}
.bp .byline a{color:var(--ink)}
.bp-art svg{display:block; width:100%; height:auto; border-radius:var(--r)}
.bp-art .w1{fill:var(--c1)} .bp-art .w2{fill:var(--c2)} .bp-art .w3{fill:var(--c3)} .bp-art .w4{fill:var(--c4)} .bp-art .w5{fill:var(--c5)}

.bp-grid{display:grid; grid-template-columns:260px minmax(0,1fr); gap:clamp(40px,5vw,72px); align-items:start}
.bp-side{position:sticky; top:96px; display:grid; gap:18px}
.bp-progress{height:6px; border-radius:var(--r-pill); background:var(--surface); overflow:hidden}
.bp-progress i{display:block; height:100%; border-radius:inherit; background:var(--ink); transform:scaleX(.08); transform-origin:0 50%}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    @keyframes bp-grow{from{transform:scaleX(0)} to{transform:scaleX(1)}}
    .bp-progress i{animation:bp-grow auto linear; animation-timeline:scroll(root)}
  }
}
.bp-toc{display:grid; gap:2px; scroll-target-group:auto}
.bp-toc a{display:flex; gap:10px; align-items:center; min-height:40px; padding:0 12px; border-radius:var(--r-pill); color:var(--muted); text-decoration:none; font-size:15px; line-height:1.3}
.bp-toc a::before{content:""; flex:0 0 8px; height:8px; border-radius:50%; background:var(--line)}
.bp-toc a:hover{background:var(--surface); color:var(--ink)}
.bp-toc a:is(:target-current,.is-current){background:var(--h-soft); color:var(--ink); font-weight:600}
.bp-toc a:is(:target-current,.is-current)::before{background:var(--h)}
.bp-side-card{display:grid; gap:10px; padding:20px; border-radius:var(--r); background:var(--surface)}
.bp-side-card p{font-size:15px; line-height:1.5}
.bp-btn{justify-self:start; display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:var(--r-pill); background:var(--ink); color:var(--paper); text-decoration:none; font-weight:500; font-size:15px}

.bp-body{display:grid; gap:clamp(40px,5vw,56px); max-width:800px; min-width:0}
.bp-body section{scroll-margin-top:96px}
.bp-body section:focus{outline:none}
.bp-body h2{font-size:clamp(26px,2.6vw,34px); line-height:1.15; letter-spacing:-.025em}
.bp-body p,.bp-body li{font-size:18px; line-height:1.7}
.bp-body a{color:var(--ink); text-underline-offset:3px}
.bp-sec{display:grid; gap:16px}
.bp-sec ul{margin:0; padding-left:22px; display:grid; gap:8px}
.bp-step-tag{justify-self:start; padding:8px 14px; border-radius:var(--r-pill); background:var(--h-soft); color:var(--ink)}

.bp-summary{display:grid; gap:14px; padding:28px; border-radius:var(--r); border:var(--bw) solid var(--line)}
.bp-summary h2{font:500 11.5px/1.4 var(--label); letter-spacing:var(--l-tr); text-transform:uppercase; color:var(--muted)}
.bp-summary ul{list-style:none; margin:0; padding:0; display:grid; gap:12px}
.bp-summary li{display:flex; gap:12px}
.bp-summary li::before{content:""; flex:0 0 12px; height:12px; margin-top:.55em; border-radius:50%; background:var(--h)}

.bp-steps{list-style:none; margin:4px 0 0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}
.bp-steps li{display:grid; gap:10px; align-content:start; padding:22px; border-radius:var(--r); background:var(--h-soft); font:500 20px/1.2 var(--display); letter-spacing:-.02em}
.bp-num{display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--h); color:var(--on-hue); font:600 18px/1 var(--display)}
.bp-result{padding:18px 24px; border-radius:var(--r-pill); background:var(--ink); color:var(--paper); text-align:center; font:500 19px/1.3 var(--display) !important}
.bp-cap{font-size:15px !important; line-height:1.5 !important; color:var(--muted)}

.bp-band{display:grid; gap:12px; padding:clamp(36px,5vw,52px) clamp(24px,4vw,44px); border-radius:var(--r); background:var(--h-soft); text-align:center}
.bp-band .lab{color:var(--ink)}
.bp-band-txt{font:400 clamp(24px,2.6vw,32px)/1.25 var(--display) !important; letter-spacing:-.025em; text-wrap:balance}

.bp-stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px}
.bp-stat{display:grid; gap:8px; align-content:start; padding:24px; border-radius:var(--r); background:var(--h-soft)}
.bp-stat b{font:600 46px/1 var(--display); letter-spacing:-.03em; color:var(--h)}
.bp-stat p{font-size:16px !important; line-height:1.5 !important}
.bp-stat a{font-size:14px; color:var(--muted) !important}

.bp-read{list-style:none !important; padding:0 !important; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px !important}
.bp-read a{display:grid; gap:12px; align-content:start; height:100%; padding:22px; border-radius:var(--r); background:var(--surface); text-decoration:none; font:500 18px/1.3 var(--display)}
.bp-read a::before{content:""; width:28px; height:8px; border-radius:var(--r-pill); background:var(--h)}
.bp-read a:hover{background:var(--h-soft)}

/* the floating button and its list exist only on narrow screens */
.bp-fab,.bp-pop{display:none}
@media (max-width:959px){
  .bp-hero,.bp-grid{grid-template-columns:minmax(0,1fr)}
  /* M3 hero: the art becomes a full-width background under the site nav, and the title sits on a
     rounded paper card that overlaps its lower edge. --bp-lift is the nav's height (set by blog.js). */
  .bp{padding-top:0}
  .bp-hero{gap:0}
  .bp-art{order:-1; margin:calc(-1 * var(--bp-lift,60px)) calc(-1 * var(--pad)) 0}
  .bp-art svg{height:calc(300px + var(--bp-lift,60px)); border-radius:0}
  .bp-hero-txt{position:relative; margin:-56px -4px 0; padding:24px 20px 0; border-radius:var(--r); background:var(--paper)}
  .bp-side{display:none}
  .bp-steps li{padding:16px; font-size:17px}
  .bp-fab{position:fixed; z-index:70; left:50%; bottom:max(16px,env(safe-area-inset-bottom)); transform:translateX(-50%); display:inline-flex; align-items:center; gap:10px; height:48px; padding:0 18px 0 6px; border:0; border-radius:var(--r-pill); background:var(--ink); color:var(--paper); font-weight:500; font-size:15px; box-shadow:0 10px 30px -12px rgba(0,0,0,.5); cursor:pointer}
  .bp-fab-bars{display:flex; gap:2px; padding:9px 10px; border-radius:var(--r-pill); background:var(--paper)}
  .bp-fab-bars i{width:6px; height:14px; border-radius:var(--r-pill)}
  .bp-fab-bars i:nth-child(1){background:var(--c1)} .bp-fab-bars i:nth-child(2){background:var(--c2)} .bp-fab-bars i:nth-child(3){background:var(--c3)} .bp-fab-bars i:nth-child(4){background:var(--c4)} .bp-fab-bars i:nth-child(5){background:var(--c5)}
  .bp-fab-n{opacity:.7}
  /* With blog.js running (.bp-fab-auto) the button appears when the reader scrolls down and leaves
     after 2 seconds without scrolling. Without the script it simply stays visible. */
  .bp-fab.bp-fab-auto{opacity:0; visibility:hidden; translate:0 28px; scale:.92; transition:opacity .35s var(--ease),translate .45s var(--ease),scale .45s var(--ease),visibility 0s linear .45s}
  .bp-fab.bp-fab-auto.is-shown{opacity:1; visibility:visible; translate:0 0; scale:1; transition:opacity .3s var(--ease),translate .5s var(--spring),scale .5s var(--spring),visibility 0s}
  @media (prefers-reduced-motion:reduce){.bp-fab.bp-fab-auto,.bp-fab.bp-fab-auto.is-shown{translate:none; scale:none}}
  .bp-pop:is(:popover-open,.is-open){display:block; position:fixed; inset:auto 12px 76px 12px; margin:0; width:auto; max-height:70vh; overflow:auto; padding:10px; border:var(--bw) solid var(--line); border-radius:var(--r); background:var(--paper); color:var(--ink); box-shadow:var(--shadow)}
  .bp-pop .bp-toc a{min-height:44px; font-size:16px}
  .bp ~ .sec{padding-bottom:96px}
}
