/* VelvetVerde on WordPress: what the static design needs once it runs inside WordPress, Kadence and Kadence Blocks.
   Loaded after styles.css. Tokens only; no literal colours or fonts. */

/* Logged-in admin bar: keep the sticky header below it. */
.admin-bar .slab { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .slab { top: 0; } }

/* WordPress's own screen-reader class, for plugin output. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip-path: none; }

/* Header menu from Appearance > Menus. */
.slab__links .current-menu-item > a { border-bottom-color: var(--color-accent); }

/* Listing intro under the heading (category description). */
.journal-intro { margin-top: var(--space-lg); max-width: 60ch; }
.listing-empty { padding-block: var(--space-3xl); }

/* Post content from the block editor. */
.prose .alignwide, .prose .alignfull { max-width: none; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-block-image img { height: auto; }
.prose .wp-block-table { margin: var(--space-2xl) 0; }
.prose .wp-block-table table { border-top: var(--rule-head) solid var(--color-ink); }
.prose .wp-block-table td, .prose .wp-block-table th { border-inline: 0; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--color-ink); color: var(--color-paper); }
.prose .wp-block-button__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Comments. */
.respond .comment-list { margin: var(--space-lg) 0 0; padding: 0; list-style: none; border-top: var(--rule-head) solid var(--color-ink); }
.respond .comment-list .children { margin: 0; padding-left: var(--space-xl); list-style: none; }
.respond .comment-body { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.respond .comment-meta { font-size: var(--text-sm); color: var(--color-muted); }
.respond .comment-author { color: var(--color-ink); }
.respond .comment-author .says { color: var(--color-muted); }
.respond .comment-content { margin-top: var(--space-sm); }
.respond .reply a { font-size: var(--text-sm); color: var(--color-ink); }
.respond .comment-respond { margin-top: var(--space-2xl); }
.respond .comment-reply-title small { display: block; margin-top: var(--space-xs); font: 400 var(--text-sm)/1.4 var(--font-body); }
.respond .form-submit { grid-column: 1 / -1; }
.respond .logged-in-as { grid-column: 1 / -1; font-size: var(--text-sm); }

/* Newsletter: the Kadence form block rendered on the postcard's back. */
.postcard__form { align-self: center; min-width: 0; }
.postcard__form .kb-form, .postcard__form form { display: grid; gap: var(--space-sm); }
.postcard__form .kb-form .kb-field, .postcard__form .kb-form input[type="email"], .postcard__form .kb-form input[type="text"] { width: 100%; min-height: 48px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); }
.postcard__form .kb-form input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.postcard__form .kb-form label { font-size: var(--text-sm); color: var(--color-ink-2); }
.postcard__form .kb-form button, .postcard__form .kb-form .kb-button { min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 400 var(--text-md)/1 var(--font-body); cursor: pointer; box-shadow: none; }
.postcard__form .kb-form button:hover, .postcard__form .kb-form .kb-button:hover { background: var(--color-ink); color: var(--color-paper); }
.postcard__form .kb-form button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.postcard__note { font-size: var(--text-sm); color: var(--color-muted); }

/* Header dropdowns: the link still goes to its section; the small button beside it opens the list.
   Mouse users also get it on hover. Without scripting the button hides and hover still works. */
.slab__links > li { position: relative; display: flex; align-items: center; }
.slab__toggle { display: inline-grid; place-items: center; width: 22px; min-height: 44px; margin-left: var(--space-3xs); padding: 0; border: 0; background: transparent; color: var(--color-ink-2); cursor: pointer; }
.slab__toggle::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.slab__toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.slab__toggle:hover { color: var(--color-ink); }
.slab__toggle:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
html:not(.js) .slab__toggle { display: none; }

.slab__links .sub-menu { position: absolute; top: 100%; left: calc(-1 * var(--space-md)); z-index: var(--z-dropdown); min-width: 14rem; margin: 0; padding: var(--space-xs) 0; list-style: none; background: var(--color-paper); border-top: 2px solid var(--color-accent); box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.slab__toggle[aria-expanded="true"] + .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (pointer: fine) {
  .slab__links > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.slab__links .sub-menu li { display: block; }
.slab__links .sub-menu a { display: flex; width: 100%; min-height: 44px; padding: 0 var(--space-md); border-bottom: 0; white-space: nowrap; }
.slab__links .sub-menu a:hover, .slab__links .sub-menu a[aria-current="page"] { background: var(--color-paper-2); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.slab__links .sub-menu a:focus-visible { outline-offset: -2px; }

@media (max-width: 60rem) {
  .slab nav { position: relative; }
  .slab__links > li { position: static; }
  .slab__links .sub-menu { left: 0; right: 0; min-width: 0; }
  .slab__links .sub-menu a { white-space: normal; }
  .slab__links { gap: 0 var(--space-md); }
}

/* Room for the dropdown buttons: tighter spacing up to 1440px, and the links on their own row below 1280px. */
@media (max-width: 89.9rem) {
  .slab__links { gap: var(--space-md); }
  .search input[type="search"] { width: 8rem; }
}
@media (min-width: 60.01rem) and (max-width: 79.9rem) {
  .slab__inner { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; }
  .slab nav { grid-column: 1 / -1; order: 3; }
  .slab__links { justify-content: flex-start; flex-wrap: wrap; gap: 0 var(--space-lg); }
}

/* Author box under an article: the author's own bio from their WordPress profile. */
.prose .author-card { margin-top: var(--space-3xl); padding: var(--space-xl); background: var(--color-paper-2); border-top: var(--rule-head) solid var(--color-ink); }
.prose .author-card h2 { margin: 0; padding: 0; border: 0; font: var(--serif-small) var(--text-md)/1.3 var(--font-display); letter-spacing: 0; color: var(--color-muted); }
.prose .author-card__name { margin-top: var(--space-sm); font: var(--display-weight) var(--text-2xl)/1.15 var(--font-display); color: var(--color-ink); }
.prose .author-card__name a { text-decoration: none; }
.prose .author-card__name a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; }
.prose .author-card__bio { margin-top: var(--space-sm); max-width: 62ch; }
.prose .author-card__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: var(--space-md) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.prose .author-card__links li { max-width: none; margin: 0; }
.prose .author-card__links a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 40rem) { .prose .author-card { padding: var(--space-lg); } }
