/* =========================================================
   Altamayuz — blog.css
   Blog home, archives, single posts, search, 404, comments, prose.
   Loads: blog/archive/single/search/404 views
   ========================================================= */

/* ---- Prose (editor content) ---- */
.tmz-prose{font-size:16.5px;line-height:2.05;color:var(--tmz-body);overflow-wrap:break-word}
.tmz-prose > * + *{margin-block-start:16px}
.tmz-prose h2{font-size:clamp(21px,2vw,25px);font-weight:600;line-height:1.55;margin-block-start:46px;display:flex;align-items:center;gap:12px}
.tmz-prose h2:first-child{margin-block-start:0}
.tmz-prose--num{counter-reset:tmzh}
.tmz-prose--num > h2{counter-increment:tmzh}
.tmz-prose--num > h2::before{content:counter(tmzh,decimal-leading-zero);flex:none;inline-size:36px;block-size:36px;border-radius:11px;background:var(--tmz-primary-soft);color:var(--tmz-primary);display:grid;place-items:center;font-size:14px}
.tmz-prose h3{font-size:clamp(17.5px,1.6vw,19px);font-weight:600;margin-block-start:30px}
.tmz-prose h4{font-size:17px;margin-block-start:24px}
.tmz-prose strong,.tmz-prose b{color:var(--tmz-ink);font-weight:600}
.tmz-prose a{color:var(--tmz-primary);text-decoration:underline;text-decoration-color:rgba(var(--tmz-primary-rgb),.35);text-underline-offset:4px;text-decoration-thickness:1.5px;transition:text-decoration-color .25s}
.tmz-prose a:hover{text-decoration-color:var(--tmz-primary)}
.tmz-prose ul{list-style:none;padding:0;display:grid;gap:10px}
.tmz-prose ul > li{position:relative;padding-inline-start:30px}
.tmz-prose ul > li::before{content:"";position:absolute;inset-inline-start:5px;inset-block-start:.82em;inline-size:9px;block-size:9px;border-radius:50%;background:linear-gradient(135deg,var(--tmz-primary),var(--tmz-primary-2));box-shadow:0 0 0 5px var(--tmz-primary-soft)}
.tmz-prose ol{list-style:none;padding:0;display:grid;gap:12px;counter-reset:tmzol}
.tmz-prose ol > li{counter-increment:tmzol;position:relative;padding:16px 18px;padding-inline-start:68px;border-radius:16px;background:#fff;border:1px solid var(--tmz-line)}
.tmz-prose ol > li::before{content:counter(tmzol);position:absolute;inset-inline-start:16px;inset-block-start:15px;inline-size:36px;block-size:36px;border-radius:11px;background:linear-gradient(135deg,var(--tmz-primary),var(--tmz-primary-2));color:#fff;display:grid;place-items:center;font-family:var(--tmz-font-h);font-size:14.5px;font-weight:600}
.tmz-prose li > ul,.tmz-prose li > ol{margin-block-start:10px}
.tmz-prose img{border-radius:18px;margin-inline:auto}
.tmz-prose figure{margin-inline:0}
.tmz-prose figcaption{text-align:center;font-size:13.5px;color:var(--tmz-muted);margin-block-start:8px}
.tmz-prose blockquote{margin-inline:0;padding:22px 26px;border-radius:18px;background:var(--tmz-primary-soft);color:var(--tmz-ink-2);font-size:17px;position:relative}
.tmz-prose blockquote p{margin:0}
.tmz-prose table{inline-size:100%;border-collapse:separate;border-spacing:0;font-size:14.5px;line-height:1.75;border:1px solid var(--tmz-line);border-radius:16px;overflow:hidden;margin:0}
.tmz-prose table th,.tmz-prose table td{border:0;padding:14px 18px;text-align:start;vertical-align:top}
.tmz-prose th{background:var(--tmz-bg-soft);color:var(--tmz-ink);font-family:var(--tmz-font-h);font-weight:500}
.tmz-prose table td{border-top:1px solid var(--tmz-line)}
.tmz-prose table > tbody:first-child > tr:first-child > td{border-top:0}
.tmz-prose table th + th,.tmz-prose table td + td{border-inline-start:1px solid var(--tmz-line)}
.tmz-prose thead,.tmz-prose tfoot{border:0}
.tmz-prose tbody tr{transition:background-color .25s}
.tmz-prose tbody tr:hover{background:rgba(var(--tmz-primary-rgb),.035)}
.tmz-prose td:first-child{color:var(--tmz-ink);font-weight:500}
/* Block tables scroll inside their figure on small screens; the page never scrolls sideways. */
.tmz-prose figure.wp-block-table{margin-inline:0;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:16px}
.tmz-prose figure.wp-block-table table{min-inline-size:520px}
.tmz-prose figure.wp-block-table figcaption{font-size:13px;color:var(--tmz-muted);margin-top:8px}
@media (max-width:700px){.tmz-prose :not(figure) > table{display:block;overflow-x:auto}}
.tmz-prose hr{border:0;block-size:1px;background:var(--tmz-line);margin-block:36px}
.tmz-prose iframe,.tmz-prose video{inline-size:100%;border-radius:18px}
.tmz-prose .wp-block-buttons,.tmz-prose .wp-block-button{display:flex;gap:10px;flex-wrap:wrap}
.tmz-prose .wp-block-button__link{display:inline-flex;align-items:center;min-block-size:48px;padding-inline:22px;border-radius:14px;background:var(--tmz-primary);color:#fff!important;text-decoration:none!important;font-family:var(--tmz-font-h)}
.tmz-prose .alignwide,.tmz-prose .alignfull{max-inline-size:100%}
.tmz-prose .lead,.tmz-prose > p:first-child{font-size:18px;line-height:2}

/* ---- Blog archive ---- */
/* ---------- blog archive ---------- */
.tmz-pills{display:flex;gap:8px;flex-wrap:wrap}
.tmz-pill{display:inline-flex;align-items:center;gap:8px;min-block-size:42px;padding-inline:18px;border-radius:999px;border:1px solid var(--tmz-line-2);background:#fff;font-family:var(--tmz-font-b);font-size:14.5px;font-weight:500;color:var(--tmz-ink-2);cursor:pointer;transition:all .25s}
.tmz-pill small{font-size:12px;color:var(--tmz-muted)}
.tmz-pill:hover{border-color:var(--tmz-primary);color:var(--tmz-primary)}
.tmz-pill.is-active{background:var(--tmz-ink);border-color:var(--tmz-ink);color:#fff}
.tmz-pill.is-active small{color:#9DB2CB}
.tmz-search{display:flex;align-items:center;gap:10px;min-block-size:46px;padding-inline:16px;border-radius:14px;border:1px solid var(--tmz-line-2);background:#fff;min-inline-size:280px;color:var(--tmz-muted)}
.tmz-search input{border:0;outline:0;background:transparent;font:inherit;font-size:14.5px;color:var(--tmz-ink);flex:1;min-inline-size:0}
.tmz-fpost{display:grid;grid-template-columns:1.05fr 1fr;border-radius:28px;overflow:hidden;background:#fff;border:1px solid var(--tmz-line);transition:box-shadow .45s var(--tmz-ease)}
.tmz-fpost:hover{box-shadow:var(--tmz-shadow-m)}
.tmz-fpost .tmz-cover{aspect-ratio:auto;min-block-size:380px}
.tmz-fpost .tmz-cover .tmz-ic{inline-size:96px;block-size:96px;border-radius:28px}
.tmz-fpost .tmz-cover .tmz-ic svg{width:42px;height:42px}
.tmz-fpost .tmz-cover .tmz-rings{inline-size:440px;block-size:440px}
.tmz-fpost-b{padding:clamp(28px,4vw,48px);display:flex;flex-direction:column;justify-content:center;gap:16px}
.tmz-fpost-b h2{font-size:clamp(22px,2.2vw,28px);font-weight:600;line-height:1.55}
.tmz-pager{display:flex;gap:8px;justify-content:center;margin-top:48px}
.tmz-pager .page-numbers{inline-size:46px;block-size:46px;border-radius:13px;border:1px solid var(--tmz-line-2);background:#fff;display:grid;place-items:center;font-family:var(--tmz-font-h);font-size:14.5px;color:var(--tmz-ink-2)}
.tmz-pager a.page-numbers:hover{border-color:var(--tmz-primary);color:var(--tmz-primary)}
.tmz-pager .current{background:var(--tmz-primary);border-color:var(--tmz-primary);color:#fff}
.tmz-pager .tmz-i{width:17px;height:17px}

.tmz-pager .dots{border:0;background:none}
.tmz-pager ul{display:flex;gap:8px;margin:0;padding:0;list-style:none;flex-wrap:wrap;justify-content:center}
.tmz-archive-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-block-end:32px}
.tmz-fpost{position:relative}
.tmz-fpost .tmz-cover img{transition:transform 1.2s var(--tmz-ease)}
.tmz-fpost:hover .tmz-cover img{transform:scale(1.05)}
.tmz-grid-posts{margin-block-start:28px}
.tmz-search button{border:0;background:none;padding:0;color:var(--tmz-muted);cursor:pointer;display:grid}

/* ---- Single article ---- */
/* ---------- article ---------- */
.tmz-art-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-bottom:24px;margin-bottom:32px;border-bottom:1px solid var(--tmz-line)}
.tmz-author{display:flex;align-items:center;gap:12px}
.tmz-author img{inline-size:46px;block-size:46px;border-radius:14px;background:var(--tmz-primary-soft);padding:6px;object-fit:contain;border:1px solid var(--tmz-line)}
.tmz-author b{display:block;font-family:var(--tmz-font-h);font-size:14.5px;color:var(--tmz-ink);font-weight:500;line-height:1.4}
.tmz-author small{font-size:12.5px;color:var(--tmz-muted)}
.tmz-share{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--tmz-muted)}
.tmz-share a{inline-size:38px;block-size:38px;border-radius:11px;border:1px solid var(--tmz-line-2);display:grid;place-items:center;color:var(--tmz-ink-2);background:#fff}
.tmz-share a:hover{border-color:var(--tmz-primary);color:var(--tmz-primary)}
.tmz-share svg{width:16px;height:16px}
.tmz-art-cover{border-radius:24px;overflow:hidden;margin-bottom:36px}
.tmz-art-cover .tmz-cover{aspect-ratio:21/9}
.tmz-art-cover .tmz-cover .tmz-rings{inline-size:520px;block-size:520px}
.tmz-art-cover .tmz-cover .tmz-ic{inline-size:92px;block-size:92px;border-radius:26px}
.tmz-art-cover .tmz-cover .tmz-ic svg{width:40px;height:40px}
.tmz-inline-cta{position:relative;isolation:isolate;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:28px 30px;border-radius:22px;background:linear-gradient(140deg,var(--tmz-dark-2),var(--tmz-dark));color:#B8CADD}
.tmz-inline-cta h3{color:#fff;font-size:19px;margin:0}
.tmz-inline-cta .tmz-rings{inline-size:300px;block-size:300px;left:-110px;top:-120px;z-index:-1}
.tmz-pn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:40px}
.tmz-pn a{display:grid;gap:6px;padding:20px 22px;border-radius:18px;border:1px solid var(--tmz-line);background:#fff;transition:all .3s var(--tmz-ease)}
.tmz-pn a:hover{border-color:var(--tmz-primary);box-shadow:var(--tmz-shadow-s)}
.tmz-pn small{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--tmz-muted)}
.tmz-pn small svg{width:14px;height:14px}
.tmz-pn b{font-family:var(--tmz-font-h);font-size:15px;color:var(--tmz-ink);font-weight:500;line-height:1.6}
.tmz-pn a:last-child{text-align:end}
.tmz-pn a:last-child small{justify-content:flex-end}

.tmz-art-cover img{inline-size:100%;block-size:auto;aspect-ratio:21/9;object-fit:cover}
.tmz-tags{display:flex;gap:8px;flex-wrap:wrap;margin-block-start:36px}
.tmz-share button{inline-size:38px;block-size:38px;border-radius:11px;border:1px solid var(--tmz-line-2);display:grid;place-items:center;color:var(--tmz-ink-2);background:#fff;cursor:pointer;padding:0;transition:border-color .25s,color .25s}
.tmz-share button:hover{border-color:var(--tmz-primary);color:var(--tmz-primary)}
.tmz-share button.is-copied{border-color:#16A34A;color:#16A34A}
.tmz-share .tmz-i{width:16px;height:16px}
.tmz-toc{display:grid;gap:2px;counter-reset:tmzt;max-block-size:60vh;overflow-y:auto}
.tmz-toc a{counter-increment:tmzt;display:flex;gap:10px;padding:9px 12px;border-radius:10px;font-size:14px;color:var(--tmz-body);line-height:1.6;transition:background .25s,color .25s}
.tmz-toc a::before{content:counter(tmzt,decimal-leading-zero);font-family:var(--tmz-font-h);font-size:12px;color:#9DB0C4;padding-top:2px}
.tmz-toc a:hover{background:var(--tmz-bg-soft);color:var(--tmz-primary)}
.tmz-toc a.is-active{background:var(--tmz-primary-soft);color:var(--tmz-primary);font-weight:500}
.tmz-toc a.is-sub{padding-inline-start:26px;font-size:13.5px}
.tmz-rel-list{display:grid;gap:14px}
.tmz-rel-list a{display:flex;gap:12px;align-items:center}
.tmz-rel-list span:last-child{font-size:14px;line-height:1.7;color:var(--tmz-ink-2);font-weight:500;transition:color .25s}
.tmz-rel-list a:hover span:last-child{color:var(--tmz-primary)}

/* ---- Comments ---- */
.tmz-comments{margin-block-start:48px;padding-block-start:36px;border-top:1px solid var(--tmz-line)}
.tmz-comments h3{font-size:20px;margin-block-end:20px}
.tmz-comments ol{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.tmz-comments .comment-body{padding:20px 22px;border-radius:18px;background:var(--tmz-bg-soft)}
.tmz-comments .comment-author{display:flex;align-items:center;gap:10px;font-family:var(--tmz-font-h);color:var(--tmz-ink)}
.tmz-comments .comment-author img{border-radius:50%}
.tmz-comments .comment-metadata{font-size:12.5px;color:var(--tmz-muted)}
.tmz-comments .children{margin-block-start:14px;padding-inline-start:24px}
.comment-respond{margin-block-start:28px;display:grid;gap:14px}
.comment-form{display:grid;gap:14px}
.comment-form p{margin:0;display:grid;gap:6px}
.comment-form label{font-family:var(--tmz-font-h);font-size:13.5px;color:var(--tmz-ink)}
.comment-form input:not([type=submit]):not([type=checkbox]),.comment-form textarea{inline-size:100%;min-block-size:50px;border-radius:14px;border:1px solid var(--tmz-line-2);background:var(--tmz-bg-soft);padding:12px 16px;outline:0}
.comment-form input:focus,.comment-form textarea:focus{border-color:var(--tmz-primary);background:#fff}
.comment-form .comment-form-cookies-consent{display:flex;gap:8px;align-items:center;font-size:13.5px}
.comment-form .submit{min-block-size:50px;padding-inline:26px;border:0;border-radius:14px;background:var(--tmz-primary);color:#fff;font-family:var(--tmz-font-h);cursor:pointer;inline-size:max-content}

/* ---- 404 / empty ---- */
.tmz-404{position:relative;isolation:isolate;overflow:hidden;text-align:center;display:grid;justify-items:center;gap:18px;padding-block:clamp(70px,10vw,130px)}
.tmz-404__num{font-family:var(--tmz-font-h);font-size:clamp(90px,16vw,180px);font-weight:700;line-height:1;background:linear-gradient(135deg,var(--tmz-primary),var(--tmz-primary-2),var(--tmz-aqua));-webkit-background-clip:text;background-clip:text;color:transparent}
.tmz-404 .tmz-rings{inline-size:620px;block-size:620px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:-1}
.tmz-404 form{inline-size:min(520px,100%)}
.tmz-none{text-align:center;display:grid;justify-items:center;gap:14px;padding:48px 24px;border-radius:24px;background:var(--tmz-bg-soft)}

@media (max-width:1120px){
  .tmz-fpost{grid-template-columns:1fr}
  .tmz-fpost .tmz-cover{min-block-size:260px}
}
@media (max-width:700px){
  .tmz-pn{grid-template-columns:1fr}
  .tmz-archive-bar .tmz-search{min-inline-size:0;inline-size:100%}
  .tmz-pills{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-block-end:4px;inline-size:100%}
  .tmz-pills::-webkit-scrollbar{display:none}
  .tmz-pill{flex:none}
  .tmz-art-head{flex-direction:column;align-items:flex-start}
  .tmz-prose{font-size:16px}
}
