/* ==========================================================
   Onezega — Extras
   Small progressive-enhancement styles layered on top of
   theme.json presets and style.css. Also loaded in the editor
   so admins see something close to the live result.
   ========================================================== */

/* Utility: hide visually but keep for screen readers */
.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;
}

/* Buttons: softer hover lift */
.wp-block-button .wp-block-button__link {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31, 36, 40, 0.1);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--ink) !important;
  border-color: var(--wp--preset--color--border);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--ink);
}

/* Lists: clean "none" style */
.wp-block-list.is-style-none {
  list-style: none !important;
  padding-left: 0;
}
.wp-block-list.is-style-none li a {
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  transition: color 220ms ease;
}
.wp-block-list.is-style-none li a:hover {
  color: var(--wp--preset--color--accent);
}

/* Post title links */
.wp-block-post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 220ms ease;
}
.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* Featured image rounding + soft lift */
.wp-block-post-featured-image img {
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wp-block-post-featured-image a:hover img {
  transform: scale(1.02);
}

/* Pagination */
.wp-block-query-pagination {
  font-size: 0.95rem;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--wp--preset--color--ink-soft);
  margin: 0 0.15rem;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current {
  background: var(--wp--preset--color--accent);
  color: #fff;
}

/* Navigation (FSE) spacing on mobile */
@media (max-width: 782px) {
  .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--background);
    padding: 2rem 1.5rem;
  }
}

/* Separator spacing */
.wp-block-separator {
  max-width: 100%;
  opacity: 1;
}

/* Quote polish */
.wp-block-quote {
  font-style: italic;
  padding-left: 1.5rem;
  border-left: 3px solid var(--wp--preset--color--accent);
  margin: 2rem 0;
}

/* Table polish */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}
.wp-block-table th,
.wp-block-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Code polish */
.wp-block-code, .wp-block-preformatted {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--wp--preset--color--soft);
  font-size: 0.92rem;
}

/* Editor tweaks: keep the editor visual close to front-end */
.editor-styles-wrapper {
  background: var(--wp--preset--color--background);
}


/* Onezega v1.4 visual clarity */
.site-header, header.wp-block-group.alignfull { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(180%) blur(10px); }
header.wp-block-group.alignfull.has-background-background-color { background: rgba(255,255,255,0.94); }
.oz-home-section { position: relative; }
main.wp-block-group.alignfull > .oz-home-section:not(.oz-home-section--hero):not(.oz-home-section--ecosystem) { margin-block: clamp(0.6rem, 1.4vw, 1rem); border: 1px solid var(--wp--preset--color--border); border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(30,41,59,.04); }
main.wp-block-group.alignfull > .oz-home-section .oz-section-heading { margin-bottom: .35rem; }
.oz-card { border: 1px solid var(--wp--preset--color--border); box-shadow: 0 8px 24px rgba(15,23,42,.04); }
.oz-card__link { font-weight: 600; }
.oz-hero { border-bottom: 1px solid var(--wp--preset--color--border); }
.oz-hero .wp-block-group.has-global-padding { max-width: var(--oz-max-content-width, 1180px); margin-inline: auto; }
.oz-page-intro { max-width: 920px; margin: 0 auto; padding: clamp(2rem,4vw,3rem); background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 24px; box-shadow: 0 10px 30px rgba(30,41,59,.04); }
.oz-page-intro > div { padding-block: 1rem; border-top: 1px dashed var(--wp--preset--color--border); }
.oz-page-intro > div:first-of-type { border-top: 0; padding-top: 0; }
.oz-inline-buttons { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem; }
.oz-btn { display:inline-flex; align-items:center; justify-content:center; gap:.35rem; text-decoration:none; border-radius:999px; padding:.8rem 1.15rem; font-weight:600; }
.oz-btn--primary { background: var(--wp--preset--color--accent); color:#fff; }
.oz-btn--ghost { background:#fff; border:1px solid var(--wp--preset--color--border); color:var(--wp--preset--color--ink); }
.oz-card__eyebrow { display:inline-block; margin-bottom:.5rem; color:var(--wp--preset--color--accent); font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
@media (max-width: 900px){ main.wp-block-group.alignfull > .oz-home-section:not(.oz-home-section--hero):not(.oz-home-section--ecosystem){border-radius:18px;} .oz-page-intro{border-radius:18px;padding:1.25rem;} }


/* Onezega v1.4.2 responsive header safeguards */
@media (max-width: 1179px){
  header.wp-block-group.alignfull .wp-block-group.alignwide{flex-wrap:nowrap !important; gap:1rem;}
  header.wp-block-group.alignfull .wp-block-site-title{font-size:clamp(1.05rem,2.4vw,1.25rem) !important;}
  header.wp-block-group.alignfull .wp-block-template-part .oz-lang-switcher,
  header.wp-block-group.alignfull .wp-block-template-part .oz-lang{display:none !important;}
}
@media (max-width: 599px){
  .oz-site-nav__panel{width:min(94vw,340px);}
  header.wp-block-group.alignfull{padding-inline:1rem !important;}
  header.wp-block-group.alignfull .wp-block-site-logo img{max-width:32px; height:auto;}
}

/* Dynamic content hubs for Read + Stream pages */
.oz-auto-hub{max-width:1180px;margin:clamp(1rem,2vw,1.5rem) auto 0;padding:0 clamp(1rem,2.2vw,1.5rem) clamp(1rem,2vw,1.5rem)}
.oz-auto-hub__intro{margin-bottom:1rem}
.oz-auto-grid{display:grid;gap:1rem}
.oz-auto-grid--read{grid-template-columns:repeat(2,minmax(0,1fr))}
.oz-auto-grid--media{grid-template-columns:repeat(3,minmax(0,1fr))}
.oz-auto-column{background:#fff;border:1px solid var(--wp--preset--color--border);border-radius:22px;padding:1.1rem;box-shadow:0 10px 30px rgba(30,41,59,.04);min-width:0}
.oz-auto-column h3{margin:0 0 .8rem;font-size:clamp(1.25rem,2vw,1.6rem)}
.oz-list-card{padding:.85rem 0;border-top:1px dashed var(--wp--preset--color--border)}
.oz-list-card:first-of-type{border-top:0;padding-top:0}
.oz-list-card h4{margin:0 0 .35rem;font-size:1.06rem;line-height:1.35;overflow-wrap:anywhere}
.oz-list-card h4 a{text-decoration:none;color:var(--wp--preset--color--ink)}
.oz-list-card__excerpt{color:var(--wp--preset--color--ink-soft);font-size:.95rem;line-height:1.6;overflow-wrap:anywhere}
.oz-list-card__more{display:inline-block;margin-top:.45rem;font-weight:600;text-decoration:none;color:var(--wp--preset--color--accent)}
.oz-empty-note{margin:0;color:var(--wp--preset--color--ink-soft);font-size:.96rem;line-height:1.7}
@media (max-width:1000px){.oz-auto-grid--read,.oz-auto-grid--media{grid-template-columns:1fr 1fr}}
@media (max-width:680px){.oz-auto-hub{padding-inline:.9rem}.oz-auto-grid--read,.oz-auto-grid--media{grid-template-columns:1fr}.oz-auto-column{padding:1rem;border-radius:18px}}
