/*
Theme Name: Kira Xosomayman Net
Theme URI: https://xosomayman.net/
Author: xosomayman.net
Description: Production WordPress theme for xosomayman.net with lottery result layouts, blog templates, local media seed data, and responsive UI.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: kira-xosomayman-net
*/

:root {
  --kxm-red: #c61f26;
  --kxm-red-dark: #9f141b;
  --kxm-green: #0b7a53;
  --kxm-gold: #f6c453;
  --kxm-blue: #123153;
  --kxm-ink: #162033;
  --kxm-muted: #65748b;
  --kxm-line: #dfe6ef;
  --kxm-bg: #f5f7fb;
  --kxm-card: #ffffff;
  --kxm-soft: #fff6df;
  --kxm-radius: 14px;
  --kxm-shadow: 0 18px 45px rgba(18, 49, 83, .10);
  --kxm-content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--kxm-bg);
  color: var(--kxm-ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--kxm-red);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

a:hover {
  color: var(--kxm-red-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kxm-container {
  width: min(var(--kxm-content), calc(100% - 32px));
  margin-inline: auto;
}

.kxm-topbar {
  background: #0d2238;
  color: #dbe7f5;
  font-size: 13px;
}

.kxm-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
}

.kxm-topbar a {
  color: #ffffff;
  font-weight: 700;
}

.kxm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(223, 230, 239, .92);
  backdrop-filter: blur(14px);
}

.kxm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.kxm-brand {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.kxm-brand img {
  width: 245px;
  max-height: 76px;
  object-fit: contain;
}

.kxm-brand__text {
  display: grid;
  line-height: 1.1;
}

.kxm-brand__name {
  color: var(--kxm-blue);
  font-size: 26px;
  font-weight: 800;
}

.kxm-brand__tagline {
  color: var(--kxm-muted);
  font-size: 13px;
  font-weight: 700;
}

.kxm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.kxm-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kxm-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--kxm-blue);
  font-size: 14px;
  font-weight: 800;
}

.kxm-nav .current-menu-item > a,
.kxm-nav a:hover {
  background: #eef4f9;
  color: var(--kxm-red);
}

.kxm-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--kxm-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--kxm-blue);
  cursor: pointer;
}

.kxm-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.kxm-result-nav {
  background: var(--kxm-red);
  box-shadow: 0 8px 24px rgba(198, 31, 38, .18);
}

.kxm-result-nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.kxm-result-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.kxm-result-nav a:hover,
.kxm-result-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .18);
}

.kxm-site-main {
  padding: 28px 0 52px;
}

.kxm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.kxm-content-area,
.kxm-sidebar {
  min-width: 0;
}

.kxm-sidebar {
  position: sticky;
  top: 126px;
}

.kxm-card,
.kxm-widget,
.kxm-post-card,
.kxm-result-box,
.kxm-page-card {
  background: var(--kxm-card);
  border: 1px solid var(--kxm-line);
  border-radius: var(--kxm-radius);
  box-shadow: 0 10px 28px rgba(18, 49, 83, .06);
}

.kxm-section {
  margin: 28px 0;
}

.kxm-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.kxm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kxm-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kxm-kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--kxm-gold);
}

.kxm-section h2,
.kxm-entry h2,
.kxm-archive-title,
.kxm-single-title {
  margin: 0;
  color: var(--kxm-blue);
  line-height: 1.2;
}

.kxm-section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.kxm-btn,
.wp-block-button__link,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--kxm-red);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(198, 31, 38, .18);
}

.kxm-btn:hover,
.wp-block-button__link:hover,
.search-submit:hover {
  color: #ffffff;
  background: var(--kxm-red-dark);
  transform: translateY(-1px);
}

.kxm-btn--ghost {
  background: #ffffff;
  color: var(--kxm-red);
  border: 1px solid rgba(198, 31, 38, .25);
  box-shadow: none;
}

.kxm-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: grid;
  align-items: end;
  border-radius: 24px;
  color: #ffffff;
  background: #10243c;
  box-shadow: var(--kxm-shadow);
}

.kxm-hero__image {
  position: absolute;
  inset: 0;
}

.kxm-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kxm-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 48, .92), rgba(10, 28, 48, .64) 45%, rgba(10, 28, 48, .20));
}

.kxm-hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 58px);
}

.kxm-hero h1 {
  margin: 12px 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
}

.kxm-hero p {
  margin: 0 0 22px;
  color: #e7eef8;
  font-size: 18px;
  max-width: 660px;
}

.kxm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kxm-hero__stats {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(430px, calc(100% - 56px));
}

.kxm-hero__stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
}

.kxm-hero__stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.kxm-hero__stat span {
  display: block;
  margin-top: 4px;
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 700;
}

.kxm-dashboard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 292px;
  gap: 20px;
  align-items: start;
}

.kxm-leftnav,
.kxm-rightcol {
  display: grid;
  gap: 14px;
}

.kxm-leftnav__box,
.kxm-rightbox {
  padding: 16px;
}

.kxm-leftnav h3,
.kxm-rightbox h3 {
  margin: 0 0 12px;
  color: var(--kxm-blue);
  font-size: 17px;
}

.kxm-leftnav ul,
.kxm-widget ul,
.kxm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kxm-leftnav li + li,
.kxm-widget li + li {
  border-top: 1px solid var(--kxm-line);
}

.kxm-leftnav a,
.kxm-widget a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: var(--kxm-ink);
  font-weight: 800;
}

.kxm-leftnav a:hover,
.kxm-widget a:hover {
  color: var(--kxm-red);
}

.kxm-result-stack {
  display: grid;
  gap: 18px;
}

.kxm-result-box {
  overflow: hidden;
}

.kxm-result-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fbff;
  border-bottom: 1px solid var(--kxm-line);
}

.kxm-result-box__head h2,
.kxm-result-box__head h3 {
  margin: 0;
  color: var(--kxm-blue);
  font-size: 19px;
}

.kxm-result-box__date {
  color: var(--kxm-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.kxm-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.kxm-result-table th,
.kxm-result-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--kxm-line);
  vertical-align: top;
}

.kxm-result-table th {
  width: 96px;
  color: var(--kxm-muted);
  background: #fbfcfe;
  text-align: left;
  font-size: 13px;
}

.kxm-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kxm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 3px 9px;
  border-radius: 9px;
  background: #eef4fa;
  color: var(--kxm-blue);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.kxm-num--special {
  min-width: 96px;
  background: #fff0f1;
  color: var(--kxm-red);
  font-size: 25px;
}

.kxm-num--small {
  min-width: 40px;
  min-height: 30px;
  font-size: 15px;
}

.kxm-result-box__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  color: var(--kxm-muted);
  font-size: 13px;
}

.kxm-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kxm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4f9;
  color: var(--kxm-blue);
  font-size: 13px;
  font-weight: 900;
}

.kxm-calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  text-align: center;
}

.kxm-calendar th {
  color: var(--kxm-muted);
  font-size: 12px;
}

.kxm-calendar td a,
.kxm-calendar td span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 9px;
  color: var(--kxm-ink);
  font-weight: 800;
}

.kxm-calendar td a {
  background: #eef4f9;
}

.kxm-calendar td a:hover,
.kxm-calendar .is-today a {
  background: var(--kxm-red);
  color: #ffffff;
}

.kxm-mini-list {
  display: grid;
  gap: 8px;
}

.kxm-mini-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f9fc;
  color: var(--kxm-blue);
  font-weight: 900;
}

.kxm-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kxm-feature {
  overflow: hidden;
  min-height: 240px;
}

.kxm-feature img {
  width: 100%;
  height: 124px;
  object-fit: cover;
}

.kxm-feature__body {
  padding: 15px;
}

.kxm-feature h3 {
  margin: 0 0 8px;
  color: var(--kxm-blue);
  font-size: 18px;
  line-height: 1.25;
}

.kxm-feature p {
  margin: 0;
  color: var(--kxm-muted);
  font-size: 14px;
}

.kxm-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kxm-post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kxm-post-card__image {
  aspect-ratio: 16 / 10;
  background: #e8eef6;
}

.kxm-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kxm-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.kxm-post-card__cat,
.kxm-single-meta,
.kxm-entry-meta {
  color: var(--kxm-muted);
  font-size: 13px;
  font-weight: 800;
}

.kxm-post-card h3 {
  margin: 8px 0 10px;
  color: var(--kxm-blue);
  font-size: 20px;
  line-height: 1.28;
}

.kxm-post-card p {
  margin: 0 0 16px;
  color: var(--kxm-muted);
}

.kxm-post-card__body .kxm-more {
  margin-top: auto;
}

.kxm-more {
  color: var(--kxm-red);
  font-weight: 900;
}

.kxm-entry,
.kxm-page-card {
  padding: clamp(22px, 4vw, 38px);
}

.kxm-entry-header {
  margin-bottom: 24px;
}

.kxm-single-title,
.kxm-page-title {
  margin: 8px 0 12px;
  color: var(--kxm-blue);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.kxm-featured-image {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--kxm-shadow);
}

.kxm-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.kxm-entry-content {
  color: #273449;
  font-size: 17px;
}

.kxm-entry-content > *:first-child {
  margin-top: 0;
}

.kxm-entry-content h2,
.kxm-entry-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--kxm-blue);
  line-height: 1.25;
}

.kxm-entry-content h2 {
  font-size: 28px;
}

.kxm-entry-content h3 {
  font-size: 22px;
}

.kxm-entry-content p,
.kxm-entry-content ul,
.kxm-entry-content ol,
.kxm-entry-content table {
  margin: 0 0 18px;
}

.kxm-entry-content ul,
.kxm-entry-content ol {
  padding-left: 24px;
}

.kxm-entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.kxm-entry-content th,
.kxm-entry-content td {
  padding: 12px;
  border: 1px solid var(--kxm-line);
}

.kxm-entry-content th {
  background: #f3f7fb;
  text-align: left;
}

.wp-block-image,
.kxm-entry-content figure {
  margin: 26px 0;
}

.wp-block-image img,
.kxm-entry-content figure img {
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(18, 49, 83, .10);
}

.wp-element-caption,
.kxm-entry-content figcaption {
  margin-top: 8px;
  color: var(--kxm-muted);
  font-size: 13px;
  text-align: center;
}

.kxm-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 22px;
  background: var(--kxm-blue);
  color: #ffffff;
}

.kxm-cta h2,
.kxm-cta h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

.kxm-cta p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #dce8f6;
}

.kxm-archive-header {
  margin-bottom: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--kxm-line);
  border-radius: var(--kxm-radius);
}

.kxm-archive-title {
  font-size: clamp(28px, 4vw, 44px);
}

.kxm-archive-description {
  max-width: 780px;
  margin-top: 10px;
  color: var(--kxm-muted);
}

.kxm-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.kxm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin: 0 3px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--kxm-line);
  color: var(--kxm-blue);
  font-weight: 900;
}

.kxm-pagination .current,
.kxm-pagination a:hover {
  background: var(--kxm-red);
  color: #ffffff;
  border-color: var(--kxm-red);
}

.kxm-widget {
  padding: 18px;
  margin-bottom: 18px;
}

.kxm-widget-title {
  margin: 0 0 12px;
  color: var(--kxm-blue);
  font-size: 18px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--kxm-line);
  border-radius: 12px;
  background: #ffffff;
}

.kxm-related {
  margin-top: 34px;
}

.kxm-footer {
  background: #0d2238;
  color: #dbe7f5;
  padding-top: 42px;
}

.kxm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.kxm-footer h3,
.kxm-footer h4 {
  margin: 0 0 12px;
  color: #ffffff;
}

.kxm-footer p {
  margin: 0;
  color: #bfd0e2;
}

.kxm-footer a {
  color: #dbe7f5;
}

.kxm-footer a:hover {
  color: #ffffff;
}

.kxm-footer li + li {
  margin-top: 7px;
}

.kxm-footer__logo img {
  width: 260px;
  margin-bottom: 14px;
}

.kxm-footer__bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #b9c9db;
  text-align: center;
  font-size: 14px;
}

.kxm-not-found {
  text-align: center;
  padding: 70px 24px;
}

.kxm-skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-120%);
}

.kxm-skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .kxm-dashboard,
  .kxm-layout {
    grid-template-columns: 1fr;
  }

  .kxm-leftnav,
  .kxm-rightcol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kxm-sidebar {
    position: static;
  }

  .kxm-feature-grid,
  .kxm-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .kxm-topbar__inner {
    display: none;
  }

  .kxm-header__inner {
    min-height: 72px;
  }

  .kxm-brand img {
    width: 210px;
  }

  .kxm-menu-toggle {
    display: block;
  }

  .kxm-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--kxm-line);
    box-shadow: 0 18px 36px rgba(18, 49, 83, .12);
  }

  .kxm-nav.is-open {
    display: block;
  }

  .kxm-nav ul {
    display: grid;
    gap: 6px;
  }

  .kxm-nav a {
    justify-content: space-between;
    border-radius: 12px;
    background: #f6f9fc;
  }

  .kxm-site-main {
    padding-top: 18px;
  }

  .kxm-hero {
    min-height: 520px;
    border-radius: 18px;
  }

  .kxm-hero__content {
    padding: 28px;
  }

  .kxm-hero__stats {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 20px 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .kxm-container {
    width: min(100% - 24px, var(--kxm-content));
  }

  .kxm-result-nav__inner {
    padding: 8px 0;
  }

  .kxm-hero {
    min-height: auto;
  }

  .kxm-hero__image {
    opacity: .9;
  }

  .kxm-hero__image::after {
    background: linear-gradient(180deg, rgba(10, 28, 48, .70), rgba(10, 28, 48, .94));
  }

  .kxm-hero__content {
    padding: 30px 20px 18px;
  }

  .kxm-hero p {
    font-size: 16px;
  }

  .kxm-hero__stats {
    grid-template-columns: 1fr;
  }

  .kxm-leftnav,
  .kxm-rightcol,
  .kxm-feature-grid,
  .kxm-post-grid {
    grid-template-columns: 1fr;
  }

  .kxm-result-box__head,
  .kxm-result-box__foot,
  .kxm-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kxm-result-table th,
  .kxm-result-table td {
    display: block;
    width: 100%;
  }

  .kxm-result-table th {
    border-bottom: 0;
  }

  .kxm-num {
    min-width: 48px;
    font-size: 16px;
  }

  .kxm-num--special {
    min-width: 84px;
    font-size: 22px;
  }

  .kxm-entry,
  .kxm-page-card,
  .kxm-archive-header {
    padding: 20px;
  }

  .kxm-footer__grid {
    grid-template-columns: 1fr;
  }

  .search-form {
    flex-direction: column;
  }
}
