/* Regens theme: WordPress-only additions. regens.css is the approved design and stays untouched. */

/* ---- Admin bar: the sticky nav and the 3D stage sit under it (32px; 46px up to 782px; below 601px the bar scrolls away). */
html.regens-adminbar { --regens-wpbar: 32px; --nav-h: calc(72px + var(--regens-wpbar)); scroll-padding-top: calc(88px + var(--regens-wpbar)); }
html.regens-adminbar .nav { top: calc(var(--regens-wpbar) + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { html.regens-adminbar { --regens-wpbar: 46px; } }
@media (max-width: 600px) { html.regens-adminbar { --regens-wpbar: 0px; } }

/* ---- MD assessment form while the request is being sent */
.form .btn:disabled { opacity: .6; cursor: progress; }
.form .err a { color: inherit; text-decoration: underline; }
#sendAlert { margin: 0; }

/* ---- Generic pages and posts (title + content) */
.regens-content > * { max-width: 100%; }
.regens-content h2 { font-size: 22px; margin-top: 22px; }
.regens-content h3 { font-size: 18px; margin-top: 14px; }
.regens-content a { color: var(--blue-300); }
.regens-content a:hover { color: var(--text-strong); }
.regens-content ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.regens-content img, .regens-content video, .regens-content iframe, .regens-content figure { max-width: 100%; height: auto; }
.regens-content figure { margin: 0; }
.regens-content figcaption { color: var(--text-muted); font-size: 14px; }
.regens-content blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--border-hairline); }
.regens-content hr { width: 100%; border: 0; border-top: 1px solid var(--border-hairline); }
.regens-content table { width: 100%; border-collapse: collapse; }
.regens-content th, .regens-content td { padding: 8px 10px; border-bottom: 1px solid var(--border-hairline); text-align: left; }
.regens-content pre, .regens-content code { font-family: var(--font-mono); font-size: .92em; }
.regens-content pre { overflow-x: auto; padding: 12px 14px; background: var(--bg-sunken); border-radius: var(--r-md); }
.regens-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.regens-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.regens-content .aligncenter { margin-left: auto; margin-right: auto; }
.regens-entry h2 { margin-top: 0; }
.regens-entry h2 a { color: var(--text-strong); text-decoration: none; }
.regens-entry p { margin: 0; }
.regens-content .nav-links, .regens-content .page-numbers { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.regens-pages { color: var(--text-muted); }

/* ---- Privacy notice: the "Draft for legal review" note is a plain paragraph with the class "draft" in the editor; the icon is drawn here.
   Same box as the original markup (22px icon, 12px gap, 14px/16px padding). */
p.draft { display: block; position: relative; padding: 14px 16px 14px 50px; }
p.draft::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; background-color: var(--warn);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
p.draft strong { color: var(--warn); }

/* ---- WordPress utility classes */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
