/* CloseEase Blog: a warm, mid-2000s personal-blog look (centred two columns, dotted rules, Georgia + Trebuchet).
   Every rule is scoped to .ceb (or body.ceb-page) so the desktop's Blog window can load this same file safely.
   Layout switches use container queries, so it adapts to the browser window on the desktop as well as to phones. */
.ceb{
  --bg:#EAE3D2; --paper:#FFFDF7; --text:#35302A; --muted:#675E51; --rule:#CDBFA3; --soft:#F4EEE1;
  --link:#1D5689; --visited:#6A3D78; --hover:#A8401C; --date:#76603F;
  --navy:#021E59; --gold:#E2B740; --cream:#F6EFDF;
  --serif:Georgia,"Times New Roman",Times,serif;
  --sans:"Trebuchet MS","Lucida Grande","Lucida Sans Unicode",Verdana,"DejaVu Sans",sans-serif;
  container-type:inline-size;
  background:var(--bg); color:var(--text); font:15px/1.65 var(--serif); min-height:100%;
  padding-bottom:28px; text-align:left;
}
body.ceb-page{margin:0;background:#EAE3D2}
.ceb *,.ceb *::before,.ceb *::after{box-sizing:border-box}
/* ".wbody .ceb" lets these win over the desktop window's own link colours when shown in the Blog window */
.ceb a,.wbody .ceb a{color:var(--link);text-decoration:none}
.ceb a:visited,.wbody .ceb a:visited{color:var(--visited)}
.ceb a:hover,.wbody .ceb a:hover{color:var(--hover);text-decoration:underline}
.ceb :focus-visible{outline:2px solid var(--link);outline-offset:2px;border-radius:2px}
.ceb img{max-width:100%;height:auto}
.ceb-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- top toolbar ---------- */
.ceb-nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:5px 14px;min-height:34px;
  background:linear-gradient(#24386A,#021E59);border-bottom:1px solid #000C2A;font:12px/1.3 var(--sans);color:#E9EEF8}
.ceb .ceb-nav a,.ceb .ceb-nav a:visited{color:#F6EFDF}
.ceb .ceb-nav a:hover{color:var(--gold)}
.ceb-nav-home{display:inline-flex;align-items:center;gap:6px;font-weight:bold}
.ceb-nav-home img{background:#fff;border-radius:3px;padding:1px}
.ceb-search{display:flex;gap:4px;align-items:center}
.ceb .ceb-search input{width:170px;font:12px var(--sans);padding:3px 6px;border:1px solid #0A1C47;border-radius:3px;background:#fff;color:#222;margin:0;height:auto;box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}
.ceb .ceb-search button{font:bold 11px var(--sans);padding:3px 9px;border-radius:3px;border:1px solid #0A1C47;background:linear-gradient(#FBF4E2,#E2D6BB);color:#1C2440;cursor:pointer;margin:0;min-width:0;min-height:0;height:auto}
.ceb .ceb-search button:hover{background:linear-gradient(#fff,#EADFC5)}
.ceb-nav-links{margin-left:auto;display:flex;gap:14px}

/* ---------- page frame ---------- */
.ceb-outer{max-width:940px;margin:22px auto 0;background:var(--paper);border:1px solid var(--rule);border-radius:10px;padding:14px 26px 6px;box-shadow:0 1px 3px rgba(80,60,20,.08)}
.ceb-header{border:1px solid var(--rule);border-radius:8px;padding:4px;margin-bottom:22px}
.ceb-header-inner{border-radius:5px;padding:28px 26px 24px;text-align:center;color:var(--cream);
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 2px,transparent 2px 9px),var(--navy);box-shadow:inset 0 -4px 0 var(--gold)}
.ceb .ceb-title{margin:0;font:normal 40px/1.1 var(--serif);letter-spacing:.5px}
.ceb .ceb-title a,.ceb .ceb-title a:visited{color:var(--gold);text-decoration:none}
.ceb .ceb-title a:hover{color:#F3D27A}
.ceb p.ceb-desc{display:inline-block;margin:12px auto 4px;padding-top:10px;border-top:1px dotted rgba(226,183,64,.7);max-width:46em;font:13px/1.5 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#E6DECB}

.ceb-columns{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:40px;align-items:start}
.ceb-main{min-width:0}

/* ---------- posts ---------- */
.ceb .ceb-date{margin:6px 0 10px;font:bold 12px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--date)}
.ceb-entry{margin-bottom:26px}
.ceb-entry + .ceb-entry{border-top:1px dotted var(--rule);padding-top:18px}
.ceb-post{margin:0}
.ceb .ceb-post-title{margin:0 0 14px;font:normal 25px/1.3 var(--serif);color:var(--link);text-wrap:pretty}
.ceb h1.ceb-post-title{font-size:28px}
.ceb .ceb-post-title a,.ceb .ceb-post-title a:visited{color:var(--link)}
.ceb .ceb-post-title a:hover{color:var(--hover)}
.ceb-hero,.ceb-figure{margin:0 0 18px;padding:5px;background:#fff;border:1px solid #DCD1BA;border-radius:4px;box-shadow:1px 1px 4px rgba(80,60,20,.12)}
.ceb-hero img,.ceb-figure img{display:block;width:100%;height:auto;border-radius:2px}
.ceb-hero a{display:block}
.ceb-figure{margin:22px 0}
.ceb-figure figcaption{font:12.5px/1.5 var(--sans);color:var(--muted);text-align:center;padding:7px 6px 2px}
.ceb-post-body{font-size:15.5px}
.ceb-post-body p,.ceb-post-body li{max-width:66ch}
.ceb-post-body p{margin:0 0 1em;line-height:1.65}
.ceb .ceb-post-body h2{font:bold 17px/1.35 var(--serif);color:var(--text);margin:26px 0 8px}
.ceb-post-body ul{padding-left:1.3em;margin:0 0 1em}
.ceb-post-body li{margin-bottom:.45em}
.ceb-post-body li::marker{color:var(--gold)}
.ceb-post-body .lead{font-size:17px;line-height:1.6;color:#2A2520}
.ceb p.ceb-more{font:bold 13px/1.5 var(--sans)}

.ceb-post-footer{margin:18px 0 0;padding:10px 0 2px;border-top:1px dotted var(--rule);font:12.5px/1.55 var(--sans);color:var(--muted)}
.ceb-post-footer p{margin:0 0 4px;line-height:1.55}
.ceb-share{display:flex;flex-wrap:wrap;gap:4px 18px}
.ceb-share a{display:inline-flex;align-items:center;gap:5px}
.ceb-share svg{flex:none}
.ceb-draft{background:#FFF3A6;border:1px dashed #9A7A00;padding:0 4px;color:#4D3D00}

.ceb-cta{margin:26px 0 8px;padding:14px 18px;background:var(--soft);border:1px dashed var(--rule);border-radius:8px;font:14px/1.55 var(--sans)}
.ceb-cta p{margin:0 0 6px;line-height:1.55}
.ceb a.ceb-cta-btn,.ceb a.ceb-cta-btn:visited{display:inline-block;margin-top:4px;padding:7px 14px;border-radius:5px;background:var(--navy);color:#fff;font:bold 13px var(--sans);text-decoration:none;border:1px solid #000C2A}
.ceb a.ceb-cta-btn:hover{background:#0B2D78;color:#fff;text-decoration:none}

.ceb-pager{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;margin:22px 0 10px;padding-top:12px;border-top:1px dotted var(--rule);font:13px var(--sans)}
.ceb-pager span:last-child{text-align:right}

.ceb p.ceb-filter{margin:0 0 20px;line-height:1.5;padding:10px 14px;background:var(--soft);border:1px solid var(--rule);border-radius:6px;font:13px var(--sans)}
.ceb-filter b{color:var(--text)}

/* ---------- sidebar ---------- */
.ceb-sidebar{font:13px/1.55 var(--sans);color:var(--muted)}
.ceb-widget{margin-bottom:26px}
.ceb .ceb-widget h2{margin:0 0 10px;padding-bottom:5px;border-bottom:1px dotted var(--rule);font:bold 11.5px/1.4 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--date)}
.ceb-widget p{margin:0 0 8px;line-height:1.55}
.ceb-avatar{float:left;margin:2px 10px 6px 0;padding:4px;background:#fff;border:1px solid #DCD1BA;border-radius:4px}
.ceb-name b{color:var(--text);font-size:14px}
.ceb-widget ul{list-style:none;margin:0;padding:0}
.ceb-labels li,.ceb-links li{padding:3px 0 3px 14px;position:relative}
.ceb-labels li::before,.ceb-links li::before{content:"";position:absolute;left:2px;top:.82em;width:5px;height:5px;background:var(--gold);border-radius:1px}
.ceb-links a{display:inline-flex;align-items:center;gap:6px}
.ceb-count{color:var(--muted)}
.ceb-archive ul{padding-left:16px}
.ceb-archive summary{list-style:none;cursor:pointer;padding:2px 0;color:var(--link);display:block}
.ceb-archive summary::-webkit-details-marker{display:none}
.ceb-archive summary::before{content:"►";display:inline-block;width:14px;font-size:9px;color:var(--muted);vertical-align:1px}
.ceb-archive details[open]>summary::before{content:"▼"}
.ceb-archive summary:hover{color:var(--hover)}
.ceb-arch-posts li{padding:2px 0 3px 10px;line-height:1.4}
.ceb-arch-posts b{color:var(--text);font-weight:bold}

/* ---------- footer ---------- */
.ceb-footer{clear:both;margin-top:12px;padding:12px 0 8px;border-top:1px dotted var(--rule);text-align:center;font:12px var(--sans);color:var(--muted)}
.ceb-footer p{margin:0}
.ceb-footer p.ceb-foot-pages{margin:0 0 6px;line-height:1.9}
.ceb-footer a{white-space:nowrap}

/* ---------- answer-first posts: the short answer, tables, FAQ and sources ---------- */
.ceb-updated{letter-spacing:.08em;color:var(--muted)}
.ceb .ceb-answer{margin:0 0 1.2em;padding:12px 16px;background:var(--soft);border-left:4px solid var(--gold);border-radius:0 6px 6px 0;max-width:none}
.ceb .ceb-answer b:first-child{display:block;font:bold 11.5px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--date);margin-bottom:4px}
.ceb .ceb-post-body h3{font:bold 15.5px/1.4 var(--serif);color:var(--text);margin:18px 0 6px}
.ceb-post-body ol{padding-left:1.5em;margin:0 0 1em}
.ceb-post-body ol li{margin-bottom:.5em}
.ceb-table{overflow-x:auto;margin:0 0 1.2em;-webkit-overflow-scrolling:touch}
.ceb-table table{border-collapse:collapse;width:100%;min-width:480px;font:13.5px/1.5 var(--sans);background:#fff}
.ceb-table th,.ceb-table td{border:1px solid #DCD1BA;padding:7px 10px;text-align:left;vertical-align:top}
.ceb-table th{background:var(--soft);color:var(--text);font-weight:bold}
.ceb .ceb-table-note{margin:-.6em 0 1.2em;font:12.5px/1.5 var(--sans);color:var(--muted)}
.ceb-faq{margin-top:28px;padding-top:6px;border-top:1px dotted var(--rule)}
.ceb-sources{margin-top:24px;font:12.5px/1.55 var(--sans);color:var(--muted)}
.ceb .ceb-sources h2{font:bold 11.5px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--date)}
.ceb-sources ol{padding-left:1.4em}
.ceb-sources li{max-width:none;overflow-wrap:anywhere}
.ceb-post-body sup{line-height:0;font-size:.72em}

/* ---------- narrow screens and narrow windows ---------- */
@container (max-width: 760px){
  .ceb-columns{grid-template-columns:minmax(0,1fr);gap:8px}
  .ceb-sidebar{border-top:1px dotted var(--rule);padding-top:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 28px}
  .ceb-outer{margin:14px 12px 0}
}
@container (max-width: 560px){
  .ceb-table table:not(:has(th:nth-child(4))){min-width:0;font-size:12.5px}
  .ceb-outer{margin:10px 8px 0;padding:10px 14px 4px;border-radius:8px}
  .ceb-nav{gap:8px 12px;padding:6px 10px}
  .ceb-search{order:3;flex:1 1 100%}
  .ceb .ceb-search input{flex:1;width:auto;font-size:16px;padding:5px 8px}
  .ceb .ceb-search button{font-size:13px;padding:6px 10px}
  .ceb-header-inner{padding:20px 14px 18px}
  .ceb .ceb-title{font-size:30px}
  .ceb-desc{font-size:11.5px;letter-spacing:.08em}
  .ceb .ceb-post-title{font-size:21px}
  .ceb h1.ceb-post-title{font-size:23px}
  .ceb-post-body{font-size:16px}
  .ceb-hero,.ceb-figure{padding:3px}
  .ceb-share a{padding:4px 0}
}
@media print{.ceb-nav,.ceb-sidebar,.ceb-cta,.ceb-pager{display:none}.ceb,.ceb-outer{background:#fff;border:0;box-shadow:none}}
/* inside the desktop's Blog window: the window is the browser, so no "back to the desktop" links */
.ceb-in-app .ceb-page-only{display:none!important}
.ceb-in-app{min-height:100%}
.ceb-in-app .ceb-header-inner{padding:18px 20px 16px}
.ceb-in-app .ceb-outer{margin-top:14px}
