/* WordPress-specific additions on top of main.css. */

/* Keep the fixed header below the admin bar when logged in. */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Menu button shows the open or close icon depending on state. */
.menu-button .menu-icon-close,
.menu-button[aria-expanded="true"] .menu-icon-open {
  display: none;
}
.menu-button[aria-expanded="true"] .menu-icon-close {
  display: block;
}

/* Footer contact lines are links now (tel: / mailto:). */
.footer-grid .contact .icon {
  flex: 0 0 auto;
}

/* Quote form: hidden honeypot field, error notice, plugin form inside the modal. */
.mm-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-notice {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  color: #9b1342;
  background: #ea1e6814;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}
.plugin-form {
  margin-top: 1.7rem;
}
.plugin-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.plugin-form select,
.plugin-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: white;
  font-size: 0.9rem;
}
.plugin-form input[type="submit"],
.plugin-form button[type="submit"] {
  min-height: 3.25rem;
  border-radius: 999px;
  padding: 0.8rem 1.45rem;
  color: white;
  background: var(--pink);
  font-weight: 800;
  cursor: pointer;
}

/* Screen-reader-only text used by WordPress core and plugins. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Regular pages, posts and plugin pages (index.php) ---------- */

.page-main {
  padding: 9.5rem 0 6rem;
  background: var(--cream);
}
.entry-shell {
  width: min(100% - 3rem, 48rem);
  margin-inline: auto;
}
.entry-title {
  margin-top: 0.4rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.entry-thumbnail {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 2rem;
}
.entry-thumbnail img {
  width: 100%;
}
.front-page-content {
  padding: 4rem 0;
}

/* Restore readable defaults inside editor content (Tailwind's reset removes them). */
.entry-content {
  margin-top: 2rem;
  color: #51465a;
  font-size: 1.05rem;
  line-height: 1.75;
}
.entry-content > * + * {
  margin-top: 1.15em;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.8em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.entry-content h2 {
  font-size: 1.85rem;
}
.entry-content h3 {
  font-size: 1.4rem;
}
.entry-content h4 {
  font-size: 1.15rem;
}
.entry-content a:not(.button):not(.wp-block-button__link) {
  color: var(--pink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}
.entry-content ul {
  list-style: disc;
}
.entry-content ol {
  list-style: decimal;
}
.entry-content li + li {
  margin-top: 0.4em;
}
.entry-content blockquote {
  padding-left: 1.2rem;
  border-left: 4px solid var(--pink);
  color: var(--ink);
  font-style: italic;
}
.entry-content img,
.entry-content figure {
  border-radius: 1.25rem;
}
.entry-content figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.entry-content hr {
  border-color: var(--border);
}
.entry-content .wp-block-button__link {
  border-radius: 999px;
  background: var(--pink);
  font-weight: 800;
}

.post-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.post-summary {
  padding: 1.8rem;
  border-radius: 1.6rem;
  background: white;
  box-shadow: 0 12px 35px #4032510e;
}
.post-summary h2 {
  margin-top: 0.4rem;
  font-size: 1.4rem;
}
.post-summary h2 a {
  color: var(--ink);
  text-decoration: none;
}
.post-summary .entry-content {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 800;
}
.nav-links a,
.nav-links span {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  background: white;
  text-decoration: none;
}
.nav-links .current {
  color: white;
  background: var(--pink);
}

@media (max-width: 760px) {
  .page-main {
    padding-top: 7.5rem;
  }
  .entry-shell {
    width: min(100% - 2.25rem, 48rem);
  }
}
