/* UpProfio blog: a plain reading page. The site header and footer keep their dark styling from /css/styles.css;
   the article itself sits on light paper with a serif body, like an ordinary company blog. */

body.bl { background: #faf9f6; color: #1f2328; overflow-x: clip; } /* site CSS sets overflow-x:hidden on body, which breaks position:sticky */
.bl .nav { background: #0b1326; }
.bl .nav .brand { color: var(--ink); }

.bl-main { padding: 56px 20px 72px; }
.bl-main a { color: #4c2fb5; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.bl-main a:hover { color: #2e1a7a; }

/* Index */
.bl-index { max-width: 760px; margin: 0 auto; }
.bl-wrap { max-width: 1120px; margin: 0 auto; }
.bl-two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.bl-side { align-self: stretch; } /* full row height so the sticky panel can travel */
.bl-list, .post { align-self: start; }
.bl-index h1 { font: 700 2.4rem/1.15 Inter, sans-serif; color: #111; margin: 0 0 12px; letter-spacing: -.01em; }
.bl-lede { font: 400 1.15rem/1.6 'Source Serif 4', Georgia, serif; color: #444; margin: 0 0 36px; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e4e2dc; }
.post-list li { border-bottom: 1px solid #e4e2dc; }
.post-list a { display: flex; gap: 24px; align-items: flex-start; padding: 24px 0; text-decoration: none; color: inherit; }
.post-list a:hover .pl-title { text-decoration: underline; text-underline-offset: 3px; }
.pl-text { flex: 1; display: block; }
.pl-date { display: block; font: 500 .85rem Inter, sans-serif; color: #777; margin-bottom: 6px; }
.pl-title { display: block; font: 600 1.35rem/1.3 'Source Serif 4', Georgia, serif; color: #111; margin-bottom: 6px; }
.pl-desc { display: block; font: 400 1rem/1.55 'Source Serif 4', Georgia, serif; color: #555; }
.post-list img { flex: none; width: 160px; height: 120px; object-fit: cover; border-radius: 4px; }
.bl-rss { margin-top: 28px; font: 500 .9rem Inter, sans-serif; }

/* Article */
.post { max-width: 720px; min-width: 0; }
.post-kicker { font: 600 .85rem Inter, sans-serif; margin: 0 0 14px; }
.post-kicker a { color: #666; text-decoration: none; }
.post h1 { font: 700 2.5rem/1.15 'Source Serif 4', Georgia, serif; color: #111; margin: 0 0 14px; letter-spacing: -.01em; }
.post-byline { font: 400 .92rem Inter, sans-serif; color: #6b6b6b; margin: 0 0 28px; }
.post-cover { margin: 0 0 32px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 4px; }
.post-cover figcaption, .post-body figcaption { font: 400 .82rem/1.45 Inter, sans-serif; color: #777; margin-top: 8px; }
.post-cover figcaption a, .post-body figcaption a { color: #777; }

.post-body { font: 400 1.16rem/1.72 'Source Serif 4', Georgia, serif; color: #1f2328; }
.post-body p { margin: 0 0 1.15em; }
.post-body h2 { font: 700 1.5rem/1.3 Inter, sans-serif; color: #111; margin: 1.9em 0 .6em; letter-spacing: -.01em; }
.post-body h3 { font: 700 1.15rem/1.3 Inter, sans-serif; color: #111; margin: 1.5em 0 .5em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post-body li { margin: .4em 0; }
.post-body strong { font-weight: 600; }
.post-body blockquote { margin: 0 0 1.2em; padding-left: 1em; border-left: 3px solid #d8d4ca; color: #444; font-style: italic; }

/* Plain monospace lines for the odd formula; no boxes. */
.formula { font: 400 .95rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #f1efe9; padding: 12px 14px; border-radius: 4px; margin: 0 0 1.2em; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; font: 400 .95rem/1.45 Inter, sans-serif; color: #222; }
.table-wrap th, .table-wrap td { padding: 9px 10px; text-align: right; border-bottom: 1px solid #e4e2dc; white-space: nowrap; }
.table-wrap th:first-child, .table-wrap td:first-child { text-align: left; white-space: normal; }
.table-wrap thead th { font-weight: 600; color: #111; border-bottom: 2px solid #cfcac0; font-size: .85rem; }
.table-wrap tr.total td { font-weight: 700; color: #111; }
.table-wrap td.neg { color: #b42318; }
.table-wrap caption { caption-side: bottom; text-align: left; padding-top: 8px; font-size: .82rem; color: #777; }

.note { border-left: 3px solid #e0b44c; padding: 2px 0 2px 14px; margin: 0 0 1.2em; }
.note p { margin: 0; }

.figure { margin: 0 0 1.5em; }
.figure svg { display: block; width: 100%; height: auto; }
.figure .fig-tall { display: none; }

.post-end { margin-top: 44px; padding-top: 22px; border-top: 1px solid #e4e2dc; font: 400 1.02rem/1.65 'Source Serif 4', Georgia, serif; color: #444; }
.post-more { margin-top: 28px; }
.post-more h2 { font: 700 1rem Inter, sans-serif; color: #111; margin: 0 0 10px; }
.post-more ul { margin: 0; padding-left: 1.2em; font: 400 1.02rem/1.6 'Source Serif 4', Georgia, serif; }
.post-more li { margin: .3em 0; }

.bl .bx-footer { margin-top: 0; }
.bx-footer .brand { color: var(--ink); font-weight: 800; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; padding: 0; }
.bx-footer__about { color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 14px 0 0; max-width: 34ch; }

@media (max-width: 640px) {
  .bl-main { padding: 36px 16px 56px; }
  .bl-index h1 { font-size: 2rem; }
  .post h1 { font-size: 1.95rem; }
  .post-body { font-size: 1.08rem; }
  .post-body h2 { font-size: 1.3rem; }
  .post-list a { gap: 14px; }
  .post-list img { width: 96px; height: 72px; }
  .pl-title { font-size: 1.15rem; }
  .table-wrap table { font-size: .84rem; }
  .table-wrap th, .table-wrap td { padding: 8px 6px; white-space: normal; }
  .table-wrap td:not(:first-child) { white-space: nowrap; }
  .figure .fig-wide { display: none; }
  .figure .fig-tall { display: block; max-width: 360px; margin: 0 auto; }
}

.shot { margin: 0 0 1.5em; }
.shot img { display: block; width: 100%; max-width: 340px; height: auto; border: 1px solid #e4e2dc; border-radius: 12px; }
.shot figcaption { font: 400 .82rem/1.45 Inter, sans-serif; color: #777; margin-top: 8px; max-width: 340px; }

/* Index: heading, featured post, list + sidebar */
.bl-head { margin-bottom: 28px; }
.bl-head h1 { font: 700 2.4rem/1.15 Inter, sans-serif; color: #111; margin: 0 0 8px; letter-spacing: -.01em; }
.bl-head .bl-lede { margin: 0; }
.feat { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; text-decoration: none !important; color: inherit !important; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #e4e2dc; }
.feat__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.feat__text { display: flex; flex-direction: column; gap: 10px; }
.feat__title { font: 600 2rem/1.2 'Source Serif 4', Georgia, serif; color: #111; }
.feat:hover .feat__title { text-decoration: underline; text-underline-offset: 4px; }
.feat__more { font: 600 .92rem Inter, sans-serif; color: #4c2fb5; }
.pl-meta { display: block; font: 500 .82rem Inter, sans-serif; color: #777; margin-bottom: 6px; }
.bl-list__head { font: 700 .82rem Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #777; margin: 0 0 6px; }
.bl-list .post-list a { flex-direction: row-reverse; justify-content: flex-end; }
.bl-list .post-list img { width: 180px; height: 135px; }

/* Sidebar (index and posts) */
.bl-side__sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 26px; }
.bl-side__top { display: flex; flex-direction: column; gap: 26px; margin-bottom: 26px; }
.side-label { font: 700 .78rem Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #777; margin: 0 0 10px; }
.side-text { font: 400 .98rem/1.6 'Source Serif 4', Georgia, serif; color: #444; margin: 0; }
.side-toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e4e2dc; }
.side-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; font: 400 .9rem/1.4 Inter, sans-serif; color: #555; text-decoration: none; }
.side-toc a:hover { color: #111; }
.side-toc a.is-on { color: #111; border-left-color: #4c2fb5; font-weight: 600; }
.side-share, .post-share { display: flex; flex-wrap: wrap; gap: 8px; }
.side-share a, .side-share button, .post-share a, .post-share button { font: 500 .85rem Inter, sans-serif; color: #333; background: #fff; border: 1px solid #dcd8cf; border-radius: 6px; padding: 6px 10px; text-decoration: none; cursor: pointer; }
.side-share a:hover, .side-share button:hover, .post-share a:hover, .post-share button:hover { border-color: #9a93ff; color: #111; }
.post-share { align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #e4e2dc; }
.post-share > span { font: 600 .9rem Inter, sans-serif; color: #444; margin-right: 6px; }
.side-topics { list-style: none; margin: 0; padding: 0; }
.side-topics li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #ece9e2; font: 400 .95rem Inter, sans-serif; }
.side-topics a { color: #222 !important; text-decoration: none !important; }
.side-topics a.is-on { font-weight: 700; color: #4c2fb5 !important; }
.side-topics span { color: #888; }
.side-card { background: #fff; border: 1px solid #e4e2dc; border-radius: 8px; padding: 14px; }
.side-card img { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 12px; }
.side-card .side-card__title { font: 700 1rem/1.35 Inter, sans-serif; color: #111; margin: 0 0 6px; }
.side-card p { font: 400 .9rem/1.55 Inter, sans-serif; color: #555; margin: 0 0 12px; }
.side-card__btn { display: inline-block; font: 600 .9rem Inter, sans-serif; color: #fff !important; background: #5b3fd1; border-radius: 6px; padding: 9px 14px; text-decoration: none !important; }
.side-card__btn:hover { background: #4c2fb5; }
.side-card__demo { display: block; margin-top: 10px; font: 500 .88rem Inter, sans-serif; color: #4c2fb5 !important; }
.side-rss { font: 500 .88rem Inter, sans-serif; margin: 0; }

@media (max-width: 1000px) {
  .bl-two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bl-side__sticky { position: static; }
  .post-page .side-block:first-child { display: none; }
}
@media (max-width: 700px) {
  .feat { grid-template-columns: 1fr; gap: 18px; }
  .feat__title { font-size: 1.5rem; }
  .bl-list .post-list img { width: 96px; height: 72px; }
}

/* Free tools */
.tool-intro { font: 400 1.12rem/1.6 'Source Serif 4', Georgia, serif; color: #333; margin: 0 0 28px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.tool__inputs { background: #fff; border: 1px solid #e4e2dc; border-radius: 8px; padding: 6px 18px 14px; }
.tg { border: 0; margin: 0; padding: 14px 0 6px; border-bottom: 1px solid #efece6; min-width: 0; }
.tg:last-of-type { border-bottom: 0; }
.tg legend { font: 700 .78rem Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #777; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.tg__grid { clear: both; }
.tf { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.tf__label { font: 400 .95rem/1.35 Inter, sans-serif; color: #2a2a2a; }
.tf__input { flex: none; display: flex; align-items: center; width: 132px; border: 1px solid #d6d2c8; border-radius: 6px; background: #fff; }
.tf__input:focus-within { border-color: #5b3fd1; box-shadow: 0 0 0 3px rgba(91, 63, 209, .15); }
.tf__input i { font: normal 500 .9rem Inter, sans-serif; color: #888; padding: 0 0 0 10px; }
.tf__input i:last-child { padding: 0 10px 0 0; }
.tf__input input, .tf__input select { width: 100%; min-width: 0; border: 0; background: transparent; font: 500 .98rem Inter, sans-serif; color: #111; padding: 8px 10px; outline: none; text-align: right; -moz-appearance: textfield; }
.tf__input select { text-align: left; padding-right: 4px; font-size: .9rem; }
.tf__input--select { width: 170px; }
.tf__input input::-webkit-outer-spin-button, .tf__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tc { display: flex; gap: 10px; align-items: center; font: 400 .95rem/1.35 Inter, sans-serif; color: #2a2a2a; padding: 12px 0 4px; border-top: 1px solid #efece6; }
.tc input { width: 18px; height: 18px; accent-color: #5b3fd1; }
.tool__results { position: sticky; top: 92px; background: #f3f0ff; border: 1px solid #ddd5ff; border-radius: 8px; padding: 16px 16px 8px; }
.tr { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid #e3dcfb; }
.tr:last-of-type { border-bottom: 0; }
.tr span { font: 400 .84rem/1.35 Inter, sans-serif; color: #555; }
.tr strong { font: 700 1.2rem/1.3 Inter, sans-serif; color: #111; font-variant-numeric: tabular-nums; }
.tr strong.neg { color: #b42318; }
.tool-note { font: 500 .85rem/1.45 Inter, sans-serif; color: #7a2e0e; background: #fff4e5; border-radius: 6px; padding: 9px 10px; margin: 6px 0 8px; }
.tool-privacy { font: 400 .85rem Inter, sans-serif; color: #777; margin: 12px 0 36px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 7px 0; border-bottom: 1px solid #ece9e2; font: 400 .95rem/1.4 Inter, sans-serif; }
.side-list a { color: #222 !important; text-decoration: none !important; }
.side-list a:hover { color: #4c2fb5 !important; }
.bl-list .tools-list a { flex-direction: column; justify-content: flex-start; gap: 6px; }
@media (max-width: 760px) {
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool__results { position: static; }
  .tf__input { width: 120px; }
  .tf__input--select { width: 150px; }
}
