/* Kairos — WordPress additions (account, magazine, post content). Loaded after kairos.css. */

/* Admin bar: keep the fixed header below it. */
body.admin-bar .header { top: 32px; }
body.admin-bar .tabs-wrap { top: calc(var(--header-h) + 38px); }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar .tabs-wrap { top: calc(var(--header-h) + 52px); }
  #wpadminbar { position: fixed !important; }
}
.skip-link:focus { position: fixed; z-index: 999; top: 8px; right: 8px; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: #1d1606; font-weight: 800; }
.header .icon-btn.is-in { color: var(--gold); }
/* The WordPress header has one more button (account) than the prototype: keep it on one line on small phones. */
@media (max-width: 440px) {
  .header .brand-name small { display: none; }
  .header .header-actions { gap: 6px; }
  .header .icon-btn { width: 38px; height: 38px; }
  .header .plus-pill { padding-inline: 11px; }
}
.ltr-inline { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- account ---------- */
.account-wrap { max-width: 480px; padding-top: 18px; }
.account-wrap.wide { max-width: 860px; }
.account-card { margin-top: 22px; }
.account-card .seg { position: relative; }
.auth-msg { min-height: 1.6em; color: var(--rose); margin: 0; }
.auth-msg:empty { min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.account-head { align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.account-head .btn svg { width: 18px; height: 18px; }
.plan-card.on { border-color: rgba(243, 205, 130, .38); background: linear-gradient(160deg, rgba(243, 205, 130, .09), transparent 60%), var(--surface); }
.plan-card .row h3, .account-wrap .card .row h3 { margin: 0; }
.acc-profiles .prof-item { text-decoration: none; color: inherit; } /* hover and press come from kairos.css (a.prof-item) */
.compare.orders td, .compare.orders th { white-space: nowrap; }
.compare.orders td:first-child { color: var(--text); }

/* ---------- magazine ---------- */
.blog-head { padding-top: 16px; }
.post-grid { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; }
.post-card .thumb { aspect-ratio: 12 / 7; background: radial-gradient(120% 90% at 30% 20%, rgba(167, 150, 255, .22), transparent 60%), radial-gradient(90% 80% at 80% 90%, rgba(243, 205, 130, .16), transparent 60%), var(--surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { font-size: 17px; font-weight: 800; line-height: 1.6; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.95; }
.post-card .meta { margin-top: auto; font-size: 12px; color: var(--dim); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.pagination .page-numbers.current { background: var(--gold); color: #1d1606; border-color: transparent; font-weight: 800; }

/* ---------- single post / generic page ---------- */
.entry { max-width: 720px; padding-top: 16px; }
.entry-head { margin-bottom: 22px; }
.entry-head .meta { color: var(--dim); font-size: 13px; margin-top: 10px; }
.entry-cover { border-radius: 22px; overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); }
.entry-cover img { width: 100%; height: auto; display: block; }
.entry-content { font-size: 16px; line-height: 2.15; color: #d9d6e6; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 22px; font-weight: 800; margin-top: 1.8em; color: var(--text); }
.entry-content h3 { font-size: 18px; font-weight: 800; margin-top: 1.5em; color: var(--text); }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 18px; border-inline-start: 3px solid var(--gold); background: var(--surface); border-radius: 12px; color: var(--muted); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img, .entry-content figure { max-width: 100%; height: auto; border-radius: 16px; }
.entry-content figcaption { font-size: 12.5px; color: var(--dim); text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px; border-bottom: 1px solid var(--line); }
.entry-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content .alignwide { max-width: 960px; }
.entry-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-nav { display: grid; gap: 10px; margin-top: 30px; }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.post-nav small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 4px; }

/* comments */
.comments { margin-top: 34px; }
.comments .comment-list { list-style: none; padding: 0; }
.comments .comment-body { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; font-size: 14px; line-height: 2; }
.comments .comment-meta { font-size: 12px; color: var(--dim); }
.comments .children { list-style: none; padding-inline-start: 18px; }
.comment-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit;
}
.comment-form .submit { height: 48px; padding: 0 24px; border-radius: 16px; border: 0; background: var(--gold); color: #1d1606; font: inherit; font-weight: 800; cursor: pointer; }

/* same press / hover feel as the theme's buttons (kairos.css → Interaction) */
.pagination a.page-numbers, .post-nav a, .comment-form .submit {
  transition-property: transform, background-color, border-color, color, filter;
  transition-duration: var(--release), var(--fast), var(--fast), var(--fast), var(--fast);
  transition-timing-function: var(--spring), var(--ease), var(--ease), var(--ease), var(--ease);
  -webkit-user-select: none; user-select: none;
}
@media (hover: hover) {
  .pagination a.page-numbers:hover, .post-nav a:hover { border-color: var(--line-2); background: var(--surface-2); }
  .comment-form .submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
}
.pagination a.page-numbers:active, .comment-form .submit:active { transform: scale(.94); transition-duration: var(--press); }
.post-nav a:active { transform: scale(.985); transition-duration: var(--press); }

.not-found { padding-top: 40px; }
