/* =========================================================================
   Yme Home — WordPress layer
   Loaded after base.css. Only contains rules that exist because this is a CMS
   rather than a static build: admin bar offset, block alignment, core widget
   markup, and the accessibility helpers core expects.
   ========================================================================= */

/* ---------- core accessibility helpers ---------- */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--paper);
  clip: auto !important;
  clip-path: none;
  color: var(--brass);
  display: block;
  font-size: .875rem;
  font-weight: 600;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: .9rem 1.2rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.skip-link { position: absolute; }

/* ---------- admin bar offset ---------- */
.admin-bar .site-header.is-stuck { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header.is-stuck { top: 46px; }
}

/* ---------- core alignment classes inside .prose ---------- */
.prose .alignwide { width: min(1120px, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
.prose .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; }
.prose .aligncenter { display: block; margin: 1.6em auto; }
.prose img { height: auto; border-radius: var(--radius); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .8rem; color: var(--ink-40); margin-top: .6em; text-align: center; }
.prose .wp-block-image img { border-radius: var(--radius); }

/* ---------- core blocks that may appear in edited content ---------- */
.prose .wp-block-quote {
  border-left: 2px solid var(--brass);
  padding-left: 1.4em;
  margin: 1.8em 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.prose .wp-block-quote cite { display: block; font-family: var(--sans); font-size: .78rem; color: var(--ink-40); font-style: normal; margin-top: .7em; }
.prose .wp-block-button__link {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: .9em 1.6em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .25s var(--ease);
}
.prose .wp-block-button__link:hover { background: var(--brass); }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose ul.wp-block-list, .prose ol.wp-block-list { padding-left: 1.2em; }

/* ---------- search form ---------- */
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; display: flex; }
.search-form .search-field {
  width: 100%;
  font-family: var(--sans);
  font-size: .9rem;
  padding: .8em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.search-form .search-field:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.search-form .search-submit {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .8em 1.4em;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .25s var(--ease);
}
.search-form .search-submit:hover { background: var(--brass); }

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  align-items: center;
}
.pagination .page-link a,
.pagination .page-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.pagination .page-link a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-link .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

/* ---------- comments (journal) ---------- */
.comments-area { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .comment-body {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  background: var(--paper);
}
.comment-list .comment-meta { font-size: .78rem; color: var(--ink-40); margin-bottom: .6rem; }
.comment-list .comment-author img { border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: .9rem;
  padding: .75em .9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.comment-form .submit {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  padding: .9em 1.7em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

/* ---------- WP editor parity ---------- */
.editor-styles-wrapper { font-family: var(--sans); color: var(--ink); }
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 { font-family: var(--serif); }

/* ---------- small fixes that only appear with dynamic content ---------- */
.prod-card h3 { overflow-wrap: anywhere; }
.post-card h3 { overflow-wrap: anywhere; }
.page-hero h1 { overflow-wrap: break-word; }

/* A dynamic widget or a long product title should never push the layout. */
.prod-grid > * { min-width: 0; }
.post-grid > * { min-width: 0; }
.fam-grid > * { min-width: 0; }

/* ---------- print ---------- */
@media print {
  .announce, .site-header, .mobile-nav, .site-footer, .pdp-actions, .chips, .signup { display: none !important; }
  body { background: #fff; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
