/* Refinement layer for stikes-clone. Loaded after theme/PageLayer CSS. */
:root {
  --rf-brand: #6200ea;
  --rf-brand-dark: #4a00b4;
  --rf-ink: #1f2430;
  --rf-muted: #5b6472;
  --rf-line: #e4e0f2;
  --rf-soft: #f7f5fd;
  --rf-measure: 56rem;
  --rf-radius: 10px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Muli, "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--rf-ink);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--rf-brand); text-underline-offset: 0.15em; }
a:hover { color: var(--rf-brand-dark); }
:focus-visible { outline: 3px solid var(--rf-brand); outline-offset: 2px; }

.rf-skip {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: #fff; color: var(--rf-ink); padding: .6rem 1rem; border-radius: 0 0 var(--rf-radius) 0;
}
.rf-skip:focus { left: 0; }

/* ---------- Header ---------- */
.rf-topbar {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 0;
  font-size: .8rem; font-weight: 700; line-height: 1.4;
}
.rf-topbar a { color: #e6e6e6; text-decoration: none; padding: 0 .65rem; border-left: 1px solid rgba(255, 255, 255, .35); }
.rf-topbar a:first-child { border-left: 0; }
.rf-topbar a:hover { color: #fff; text-decoration: underline; }
.pagelayer-wp_menu-ul a { letter-spacing: .02em; }
.pagelayer-wp_menu-ul .sub-menu a { font-weight: 600; }

.rf-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
label.pagelayer-primary-menu-bar { cursor: pointer; }

@media (max-width: 1024px) {
  .rf-topbar { justify-content: flex-start; }
  .pagelayer-wp-menu-holder .pagelayer-wp-menu-container { display: none !important; position: static !important; width: 100% !important; transform: none !important; max-width: 100% !important; height: auto !important; background: #111; padding: .5rem 0; }
  .rf-nav-toggle:checked ~ .pagelayer-wp-menu-container { display: block !important; }
  .pagelayer-wp-menu-holder .pagelayer-primary-menu-bar { display: block !important; color: #fff; font-size: 1.5rem; padding: .5rem 1rem; }
  .pagelayer-wp-menu-container .pagelayer-wp_menu-close { display: none !important; }
  .pagelayer-wp-menu-container ul { display: block !important; padding: 0; margin: 0; }
  .pagelayer-wp-menu-container li { display: block !important; float: none !important; border-top: 1px solid rgba(255, 255, 255, .12); }
  .pagelayer-wp-menu-container a { display: block !important; padding: .75rem 1rem !important; color: #fff; }
  .pagelayer-wp-menu-container .sub-menu { position: static !important; display: block !important; opacity: 1 !important; visibility: visible !important; background: transparent !important; box-shadow: none !important; width: auto !important; padding-left: 1rem; }
}

/* ---------- Content containers ---------- */
main.site-main { min-height: 50vh; }
.entry-content > *:not([class*="pagelayer-"]):not(style),
.pagelayer-post_content > *:not([class*="pagelayer-"]):not(style):not(figure) {
  max-width: var(--rf-measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}
.entry-content > .rf-home,
.entry-content > .rf-article { max-width: none; padding: 0; }
.entry-content > *:not([class*="pagelayer-"]):first-child:not(.rf-title) { margin-top: 2rem; }
.entry-content > *:not([class*="pagelayer-"]):last-child { margin-bottom: 3rem; }

.rf-title {
  max-width: var(--rf-measure); margin: 2.5rem auto 1rem; padding: 0 1.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; font-weight: 800; color: var(--rf-ink);
  box-sizing: border-box;
}
.rf-title::after { content: ""; display: block; width: 4rem; height: 4px; margin-top: .75rem; background: var(--rf-brand); border-radius: 2px; }

/* ---------- Typography inside article content ---------- */
.entry-content p, .pagelayer-post_content p { margin: 0 0 1.1em; font-size: 1.02rem; line-height: 1.75; }
.entry-content li, .pagelayer-post_content li { line-height: 1.7; margin-bottom: .35em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4,
.pagelayer-post_content h1, .pagelayer-post_content h2, .pagelayer-post_content h3, .pagelayer-post_content h4 {
  line-height: 1.3; margin: 1.6em 0 .6em; color: var(--rf-ink); font-weight: 800;
}
.entry-content h2, .pagelayer-post_content h2 { font-size: 1.5rem; }
.entry-content h3, .pagelayer-post_content h3 { font-size: 1.2rem; }

/* Inline styles pasted from Word/Verdana make the text uneven; normalize them. */
.entry-content [style*="font-family"], .pagelayer-post_content [style*="font-family"] { font-family: inherit !important; }
.entry-content [style*="letter-spacing"], .pagelayer-post_content [style*="letter-spacing"],
.entry-content [style*="word-spacing"], .pagelayer-post_content [style*="word-spacing"] { letter-spacing: normal !important; word-spacing: normal !important; }
.entry-content [style*="line-height"], .pagelayer-post_content [style*="line-height"] { line-height: 1.75 !important; }
.entry-content p [style*="font-size"], .pagelayer-post_content p [style*="font-size"],
.entry-content p[style*="font-size"], .pagelayer-post_content p[style*="font-size"] { font-size: inherit !important; }
.entry-content [style*="text-align: justify"], .pagelayer-post_content [style*="text-align: justify"],
.entry-content [style*="text-align:justify"], .pagelayer-post_content [style*="text-align:justify"] { text-align: left !important; }
.entry-content [style*="background-image: initial"], .pagelayer-post_content [style*="background-image: initial"] { background: none !important; }
.entry-content [style*="margin-bottom: 0cm"], .pagelayer-post_content [style*="margin-bottom: 0cm"] { margin-bottom: 1.1em !important; }
.entry-content [style*="width:"] img, .entry-content img[width], .pagelayer-post_content img[width] { max-width: 100%; height: auto; }

.entry-content figure, .pagelayer-post_content figure { margin: 1.5rem auto; max-width: 100%; }
.entry-content figure img, .pagelayer-post_content figure img { display: block; margin: 0 auto; border-radius: 6px; }
.entry-content figcaption, .pagelayer-post_content figcaption { text-align: center; font-size: .9rem; color: var(--rf-muted); margin-top: .5rem; }
.pagelayer-post_content img { max-width: 100%; height: auto; }

.entry-content table, .pagelayer-post_content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.entry-content th, .entry-content td, .pagelayer-post_content th, .pagelayer-post_content td { border: 1px solid var(--rf-line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.entry-content th, .pagelayer-post_content th { background: var(--rf-soft); }
.rf-table { overflow-x: auto; }

/* ---------- Home sections ---------- */
.rf-home { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; display: grid; gap: 1.5rem; }
.rf-sec { background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 1.75rem 2rem; }
.rf-sec > h2 { margin: 0 0 1rem; font-size: 1.5rem; position: relative; padding-bottom: .6rem; }
.rf-sec > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3rem; height: 4px; border-radius: 2px; background: var(--rf-brand); }
.rf-sec p { margin: 0 0 1em; }
.rf-sec p:last-child { margin-bottom: 0; }
.rf-vm { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.rf-visi p { font-size: 1.15rem; font-weight: 700; line-height: 1.55; }
.rf-misi ol { margin: 0; padding-left: 1.25rem; }
.rf-misi li { margin-bottom: .6rem; }

/* ---------- Generated page sections ---------- */
.rf-article { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.25rem 3.5rem; display: grid; gap: 1.5rem; }
.rf-article .rf-sec h2 { font-size: 1.4rem; }
.rf-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.rf-card { margin: 0; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.rf-card:hover { box-shadow: 0 8px 24px rgba(98, 0, 234, .15); transform: translateY(-2px); }
.rf-card a { display: block; color: inherit; text-decoration: none; }
.rf-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rf-card span { display: block; padding: .9rem 1rem 1rem; font-weight: 800; }
.rf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.rf-links a { display: block; padding: .9rem 1rem; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); text-decoration: none; font-weight: 700; background: var(--rf-soft); }
.rf-links a:hover { border-color: var(--rf-brand); background: #fff; }
.rf-notice { border-left: 4px solid var(--rf-brand); background: var(--rf-soft); padding: 1.25rem 1.5rem; border-radius: 0 var(--rf-radius) var(--rf-radius) 0; }
.rf-notice p { margin: 0 0 .6em; }
.rf-notice p:last-child { margin: 0; }
.rf-contact { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.rf-contact li { border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 1.1rem 1.25rem; background: #fff; }
.rf-contact strong { display: block; color: var(--rf-brand); margin-bottom: .25rem; }

/* ---------- Posts / sidebar / footer ---------- */
.pagelayer-post_title { padding-top: 1.5rem; }
.pagelayer-post_info { font-size: .9rem; color: var(--rf-muted); }
.pagelayer-post_content { overflow-wrap: anywhere; }
aside .widget { background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
aside .widget-title { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 800; padding-bottom: .5rem; border-bottom: 2px solid var(--rf-brand); }
aside .widget ul { list-style: none; margin: 0; padding: 0; }
aside .widget li { padding: .45rem 0; border-bottom: 1px solid var(--rf-line); font-size: .93rem; line-height: 1.45; }
aside .widget li:last-child { border-bottom: 0; }
aside .widget a { text-decoration: none; }
aside .widget a:hover { text-decoration: underline; }
footer a { color: #fff; }
footer a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .rf-sec { padding: 1.25rem; }
  .entry-content p, .pagelayer-post_content p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rf-card { transition: none; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 720px) {
  body .entry-content .pagelayer-heading-holder,
  body .entry-content .pagelayer-heading-holder * {
    font-size: 2rem !important; line-height: 1.2 !important; padding-left: 1rem; padding-right: 1rem; box-sizing: border-box;
  }
  .pagelayer-wp-menu-container a, .pagelayer-wp-menu-container li { text-align: left !important; }
  .rf-sec { padding: 1.1rem; }
  .rf-home, .rf-article { padding: 1.5rem .75rem 2.5rem; }
  .rf-title { margin-top: 1.5rem; }
}
