/* ==========================================================================
   WordPress-specific layer: editor output, prose, comments, pagination.
   Loads after site.css and uses the same tokens.
   ========================================================================== */

/* ---------------------------------------------------------------- prose */
.prose {
  font-size: clamp(1rem, .97rem + .14vw, 1.0625rem);
  line-height: 1.78;
  color: var(--text-soft);
}
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
  font-size: clamp(1.625rem, 1.16rem + 1.98vw, 2.5rem);
  color: var(--teal-900); margin-top: 2.2em; line-height: 1.14;
}
.prose h3 {
  font-size: clamp(1.25rem, 1.07rem + .77vw, 1.75rem);
  color: var(--teal-900); margin-top: 1.9em; line-height: 1.2;
}
.prose h4 { font-family: var(--ff-sans); font-weight: 600; font-size: clamp(1rem, .96rem + .18vw, 1.25rem); line-height: 1.4; letter-spacing: 0; color: var(--teal-900); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose p > strong { color: var(--teal-900); }
.prose a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color .25s var(--ease);
}
.prose a:hover { color: var(--gold-700); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 1.9rem; margin-top: .6em;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 18px; height: 9px;
  border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 18px 18px 0 0;
}
.prose ol { list-style: decimal; }
.prose ol li { margin-top: .6em; padding-left: .35rem; }
.prose ol li::marker { color: var(--gold-700); font-family: var(--ff-display); }
.prose blockquote {
  margin: 2em 0; padding: 1.6rem 0 1.6rem 1.9rem;
  border-left: 2px solid var(--gold);
  font-family: var(--ff-display); font-style: italic;
  font-size: clamp(1.2rem, 1.05rem + .8vw, 1.65rem);
  line-height: 1.4; color: var(--teal-800); letter-spacing: -.015em;
}
.prose blockquote p + p { margin-top: .5em; }
.prose blockquote cite {
  display: block; margin-top: 1rem; font-family: var(--ff-sans); font-style: normal;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute);
}
.prose img, .prose .wp-block-image img { border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption {
  margin-top: .8rem; font-size: .84rem; color: var(--text-mute); letter-spacing: .01em; line-height: 1.5;
}
.prose hr {
  border: 0; height: 1px; background: var(--line); margin: 2.75em 0;
  position: relative;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--sand); padding: .15em .45em; border-radius: 4px; color: var(--teal-900);
}
.prose pre {
  background: var(--teal-950); color: #E7EFEE; padding: 1.25rem 1.35rem;
  border-radius: var(--radius); overflow-x: auto; font-size: .92rem; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table {
  width: 100%; border-collapse: collapse; font-size: .95rem;
}
.prose th, .prose td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--teal-900); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }

/* Wide / full alignment inside the narrow shell */
.prose .alignwide { width: min(100vw - (2 * var(--gutter)), 1100px); margin-inline: calc(50% - min(50vw - var(--gutter), 550px)); }
.prose .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; }
.prose .alignfull img { border-radius: 0; }

/* --------------------------------------------------------- block styles */
.is-style-sv-arch img { border-radius: 999px 999px var(--radius-sm) var(--radius-sm) !important; }
.is-style-sv-arch-soft img { border-radius: clamp(60px, 16vw, 150px) clamp(60px, 16vw, 150px) var(--radius-sm) var(--radius-sm) !important; }
.is-style-sv-feature {
  text-align: center; border: 0; padding: 2.5rem 0;
}
.is-style-sv-feature p {
  font-family: var(--ff-display); font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); line-height: 1.24; color: var(--teal-800);
}
.is-style-sv-deep { background: var(--teal-900); color: var(--on-dark); padding-block: var(--section-y); }
.is-style-sv-deep h1, .is-style-sv-deep h2, .is-style-sv-deep h3 { color: #fff; }
.is-style-sv-cream { background: var(--cream); padding-block: var(--section-y); }
.wp-block-button.is-style-sv-gold .wp-block-button__link { background: var(--gold); color: #2A1C05; }

/* Core button/blocks aligned to the design language */
.wp-block-button__link {
  border-radius: 999px; font-size: .875rem; font-weight: 700;
  letter-spacing: .045em; text-transform: uppercase;
  padding: 1rem 1.6rem; background: var(--teal); color: #fff;
  transition: background-color .35s var(--ease);
}
.wp-block-button__link:hover { background: var(--teal-900); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--teal-800); border: 1.25px solid rgba(18,63,70,.28);
}

/* ------------------------------------------------------------ pagination */
.sv-pagination, .navigation.pagination {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.sv-pagination .nav-links, .navigation.pagination .nav-links {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.sv-pagination .page-numbers, .navigation.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--teal-800);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.sv-pagination .page-numbers:hover, .navigation.pagination .page-numbers:hover { background: var(--teal-050); }
.sv-pagination .page-numbers.current, .navigation.pagination .page-numbers.current {
  background: var(--teal-900); border-color: var(--teal-900); color: #fff;
}
.sv-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.page-links { margin-top: 2rem; display: flex; gap: .5rem; font-size: .9rem; }

/* -------------------------------------------------------------- comments */
.comments-area { margin-top: 0; }
.comments-title, .comment-reply-title {
  font-family: var(--ff-display); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.9rem);
  color: var(--teal-900); margin-bottom: 1.5rem; letter-spacing: -.02em;
}
.comment-list { display: grid; gap: 1.25rem; }
.comment-list ol { list-style: none; padding-left: clamp(1rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.comment-body {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.15rem, 3vw, 1.75rem);
}
.comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--teal-900); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .78rem; color: var(--text-mute); margin-top: .35rem; letter-spacing: .06em; text-transform: uppercase; }
.comment-content { margin-top: .9rem; color: var(--text-soft); }
.comment-content p + p { margin-top: .8em; }
.reply { margin-top: .9rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.reply a { color: var(--teal-700); border-bottom: 1.25px solid var(--gold); padding-bottom: .2rem; }

.comment-respond { margin-top: 2.5rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form p { display: grid; gap: .45rem; margin: 0; }
.comment-form label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal-800); }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem 1rem; min-height: 52px; font-size: 1rem;
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(44,122,131,.14);
}
.comment-form .form-submit { margin-top: .5rem; }
.comment-form input[type="submit"] {
  min-height: 52px; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--teal); color: #fff; border: 0;
  font-size: .875rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; cursor: pointer;
  transition: background-color .35s var(--ease);
}
.comment-form input[type="submit"]:hover { background: var(--teal-900); }
.comment-form .comment-form-cookies-consent { grid-template-columns: auto 1fr; align-items: start; }

/* ------------------------------------------------------------- utilities */
.wp-caption { max-width: 100%; }
.sticky .card { border-color: var(--gold); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Editor canvas */
.sv-editor .editor-styles-wrapper { background: var(--cream); }
