@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap');

:root {
  --color-bg: #f2f7fc;
  --color-bg-soft: #e7f0f9;
  --color-surface: #ffffff;
  --color-shell: rgba(248, 252, 255, 0.74);
  --color-unified: #f1f7fd;
  --color-unified-soft: #edf4fb;
  --color-text: #1b2c3e;
  --color-muted: #5f7388;
  --color-primary: #0a7ed6;
  --color-primary-strong: #0864ac;
  --color-secondary: #10b8ce;
  --color-accent: #ff6b2f;
  --color-border: rgba(20, 53, 86, 0.13);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 35px rgba(16, 43, 74, 0.1);
  --shadow-card: 0 6px 20px rgba(15, 42, 72, 0.08);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  color: var(--color-text) !important;
  background:
    linear-gradient(180deg, var(--color-unified-soft) 0%, var(--color-unified) 100%) !important;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left !important;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: none;
  position: fixed;
  z-index: 0;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.2;
}

body::before {
  top: -10vw;
  right: -8vw;
  background: #8fdaf2;
}

body::after {
  bottom: -12vw;
  left: -10vw;
  background: #7fb7f1;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-primary-strong);
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

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

hr {
  display: none !important;
}

#wrapper {
  width: min(1500px, calc(100% - 1.2rem)) !important;
  margin: 0.8rem auto 1.4rem !important;
  overflow: visible !important;
  position: relative;
  z-index: 2;
}

header {
  overflow: visible !important;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(241, 247, 253, 0.95) 0%, rgba(237, 244, 251, 0.95) 100%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  padding: 1rem 1.2rem 1.1rem;
  position: sticky;
  top: 0.7rem;
  z-index: 50;
  animation: slide-in 0.45s ease-out both;
}

header .hgroup {
  display: flex;
  align-items: center;
  min-height: 0;
  flex: 0 0 auto;
}

header .hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

header h1,
header .description {
  text-align: left !important;
}

header h1 {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.8vw, 2rem) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  text-shadow: none !important;
  height: auto !important;
}

header h1,
header h1 a {
  color: #13293f !important;
}

header h1 a:hover {
  color: var(--color-primary) !important;
}

header .description {
  margin: 0.35rem 0 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
  color: var(--color-muted) !important;
  font-size: 0.96rem !important;
  font-style: normal !important;
  text-shadow: none !important;
}

header .logo {
  float: none !important;
  display: inline-flex;
  align-items: center;
  width: auto !important;
  height: auto !important;
  max-width: min(48vw, 520px);
  margin: 0 !important;
  background: none !important;
  text-indent: 0;
  overflow: visible;
}

header .logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(48vw, 520px);
  max-height: 92px;
  object-fit: contain;
}

header nav {
  clear: none !important;
  overflow: visible !important;
  width: fit-content;
  max-width: 100%;
  min-height: 0 !important;
  height: auto !important;
  margin-top: 0;
  margin-left: auto;
  padding: 0.34rem 0.42rem;
  border-top: 0;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.95) 0%, rgba(239, 247, 255, 0.95) 100%) !important;
  border: 1px solid rgba(20, 53, 86, 0.12);
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  text-align: left !important;
}

header .nav-toggle {
  display: none;
  border: 1px solid rgba(12, 85, 145, 0.28);
  background: linear-gradient(130deg, #0f73c4, #1195cb);
  border-radius: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.56rem 0.72rem;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(13, 102, 170, 0.26);
}

header .nav-toggle:hover,
header .nav-toggle:focus {
  border-color: rgba(12, 85, 145, 0.36);
  color: #fff;
  background: linear-gradient(130deg, #0d6cb6, #0f88b5);
}

header .feedrss {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.35rem !important;
  height: 2.35rem !important;
  margin: 0 !important;
  border-radius: var(--radius-md);
  border: 1px solid rgba(13, 105, 178, 0.2);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  box-shadow: var(--shadow-card);
  text-indent: 0 !important;
  font-size: 0;
}

header .feedrss::before {
  content: 'RSS';
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

header .feedrss:hover {
  transform: translateY(-1px);
}

header .menu {
  float: none !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
}

header nav #navmenus,
header nav .menu > ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

header nav #navmenus li,
header nav .menu > ul > li {
  float: none !important;
  list-style: none;
  margin: 0;
  position: relative;
}

header nav #navmenus > li > a,
header nav .menu > ul > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  line-height: 1.05 !important;
  padding: 0.45rem 0.68rem !important;
  border-radius: 10px;
  border: 1px solid rgba(13, 105, 178, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(239, 247, 255, 0.8) 100%) !important;
  color: #1d3853 !important;
  text-shadow: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

header nav #navmenus > li > a:hover,
header nav #navmenus > li > a:focus,
header nav .menu > ul > li > a:hover,
header nav .menu > ul > li > a:focus {
  background: linear-gradient(180deg, #ffffff 0%, #ebf5ff 100%) !important;
  border-color: rgba(13, 105, 178, 0.34);
  color: #0d5fa5 !important;
  transform: translateY(-1px);
}

/* Highlight the Inicio button as primary action. */
header nav #navmenus > li.menu-item-home > a,
header nav #navmenus > li.page_item:first-child > a,
header nav .menu > ul > li.menu-item-home > a,
header nav .menu > ul > li.page_item:first-child > a,
header nav .menu > ul > li:first-child > a {
  background: #f6fbff !important;
  color: #0a5e9f !important;
  border-color: rgba(10, 94, 159, 0.24) !important;
  font-weight: 700;
  box-shadow: none;
  padding: 0.45rem 0.74rem !important;
}

header nav #navmenus > li.menu-item-home > a:hover,
header nav #navmenus > li.page_item:first-child > a:hover,
header nav .menu > ul > li.menu-item-home > a:hover,
header nav .menu > ul > li.page_item:first-child > a:hover,
header nav .menu > ul > li:first-child > a:hover,
header nav #navmenus > li.menu-item-home > a:focus,
header nav #navmenus > li.page_item:first-child > a:focus,
header nav .menu > ul > li.menu-item-home > a:focus,
header nav .menu > ul > li.page_item:first-child > a:focus,
header nav .menu > ul > li:first-child > a:focus {
  background: #edf7ff !important;
  color: #0a5e9f !important;
  border-color: rgba(10, 94, 159, 0.34) !important;
  transform: translateY(-1px);
}

header nav #navmenus .current_page_item > a,
header nav #navmenus .current-menu-item > a,
header nav #navmenus .current_page_parent > a,
header nav #navmenus .current_page_ancestor > a,
header nav .menu .current_page_item > a,
header nav .menu .current-menu-item > a {
  background: #f1f8ff !important;
  color: #0a5e9f !important;
  border-color: rgba(10, 94, 159, 0.28) !important;
  box-shadow: none;
}

/* Keep Inicio highlighted even when it is the current page. */
header nav #navmenus > li.menu-item-home.current_page_item > a,
header nav #navmenus > li.menu-item-home.current-menu-item > a,
header nav #navmenus > li.page_item.current_page_item:first-child > a,
header nav .menu > ul > li.menu-item-home.current_page_item > a,
header nav .menu > ul > li.menu-item-home.current-menu-item > a,
header nav .menu > ul > li.page_item.current_page_item:first-child > a,
header nav .menu > ul > li.current_page_item:first-child > a {
  background: #eaf5ff !important;
  color: #084c80 !important;
  border-color: rgba(8, 76, 128, 0.34) !important;
  box-shadow: none !important;
}

header nav #navmenus > li > ul,
header nav .menu > ul > li > ul,
header nav #navmenus > li > ul.sub-menu,
header nav .menu > ul > li > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.38rem);
  left: 0;
  min-width: 200px;
  margin: 0 !important;
  padding: 0.34rem !important;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(16, 43, 74, 0.14);
  z-index: 80;
}

header nav #navmenus > li:hover > ul,
header nav #navmenus > li:focus-within > ul,
header nav .menu > ul > li:hover > ul,
header nav .menu > ul > li:focus-within > ul {
  display: block;
}

header nav #navmenus > li > ul > li,
header nav .menu > ul > li > ul > li {
  float: none !important;
}

header nav #navmenus > li > ul > li > a,
header nav .menu > ul > li > ul > li > a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  line-height: 1.25 !important;
  padding: 0.42rem 0.56rem !important;
  border-radius: 8px;
  color: #1f3850 !important;
  text-shadow: none !important;
  background: transparent !important;
  font-size: 0.82rem;
}

header nav #navmenus > li > ul > li > a:hover,
header nav .menu > ul > li > ul > li > a:hover {
  background: #e9f3fc !important;
  color: #0f619f !important;
}

#content,
#content_post {
  float: none !important;
  width: 100% !important;
  background: var(--color-unified) !important;
  padding: 1rem !important;
  margin-top: 1rem;
  border: 1px solid rgba(20, 53, 86, 0.08);
  border-radius: 8px;
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: none !important;
}

#content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 320px);
  gap: 1.2rem;
  align-items: start;
}

#content > #RandomShow {
  grid-column: 1 / -1;
}

#content > article {
  float: none !important;
  width: auto !important;
  min-width: 0;
  overflow: visible !important;
}

#content > aside {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

#content_post {
  max-width: none;
  margin: 1rem auto 0 !important;
}

#content article,
#content_post article {
  width: 100% !important;
  max-width: none !important;
}

#content_post section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

#RandomShow {
  margin: 0 0 0.6rem !important;
  padding: 0 0 0.8rem !important;
  border: 0;
  border-bottom: 1px solid rgba(20, 53, 86, 0.1);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  text-align: center;
}

#RandomShow img {
  width: min(100%, 760px) !important;
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  border-radius: 8px;
  object-fit: contain;
  margin: 0 auto;
  opacity: 0.92;
}

article.postlist,
#content article {
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  overflow: hidden;
  margin: 0 !important;
  padding: 1.1rem 0.35rem 1.1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 53, 86, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left !important;
  animation: none;
}

section:last-child {
  border-bottom: 0 !important;
}

section:nth-of-type(2) {
  animation-delay: 0.05s;
}

section:nth-of-type(3) {
  animation-delay: 0.1s;
}

section:nth-of-type(4) {
  animation-delay: 0.15s;
}

section .title {
  margin-bottom: 0.75rem;
}

section .title h3 {
  float: none !important;
  margin: 0 0 0.4rem;
  padding: 0;
  color: #0f73c8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section .title h2 {
  clear: both;
  margin: 0 0 0.35rem;
  color: #15283c;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: none !important;
}

section .title h2 a {
  color: inherit;
}

section .title h2 a:hover {
  color: var(--color-primary);
}

section .title small,
section .title small a {
  color: var(--color-muted);
  font-size: 0.9rem;
}

section .title .sticky {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-left: 0.45rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 47, 0.15);
  color: #c84e1f;
  font-size: 0.72rem;
}

section .entry {
  margin: 0;
  color: #25384c;
  font-size: 0.98rem;
  line-height: 1.8;
  text-shadow: none !important;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, sans-serif !important;
}

section .entry p {
  margin: 0 0 0.9rem;
}

section .entry a {
  color: var(--color-primary);
}

section .entry a:hover {
  color: var(--color-primary-strong);
  text-decoration: underline;
}

section .entry img,
section .entry a img {
  margin: 0.8rem 0;
  border: 1px solid rgba(20, 53, 86, 0.12) !important;
  border-radius: 8px;
  padding: 0 !important;
  background: #dde9f7 !important;
}

section .entry ul,
section .entry ol {
  margin: 0.8rem 0 0.9rem 1.3rem !important;
}

section .entry li {
  background: none !important;
  text-indent: 0 !important;
  list-style: disc;
  margin-bottom: 0.35rem;
}

section .entry ol li {
  list-style: decimal;
}

section .entry blockquote {
  clear: both;
  display: block;
  margin: 1rem 0 !important;
  padding: 0.95rem 1rem 0.95rem 1.15rem !important;
  border: 1px solid rgba(10, 126, 214, 0.22);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  background: #ecf5ff !important;
  color: #254465;
  text-shadow: none !important;
}

section .entry pre {
  background: #0f1f33;
  color: #e8f2ff;
  border: 1px solid rgba(9, 86, 152, 0.32);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.95rem;
}

section .entry code {
  background: #ebf3fd !important;
  border: 1px solid #d2e2f4 !important;
  border-radius: 8px;
  padding: 0.08rem 0.32rem;
  color: #214266;
}

section .postmeta {
  clear: both;
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

section .postmeta a {
  display: inline-block;
  margin: 0.18rem 0.28rem 0.18rem 0;
  padding: 0.18rem 0.52rem;
  color: #21476c;
  border: 1px solid rgba(15, 97, 162, 0.18);
  border-radius: var(--radius-pill);
  background: #f4f9ff;
}

section .postmeta a:hover {
  background: #0d6dbb;
  color: #fff;
  border-color: #0d6dbb;
}

section .more-link,
.gotop {
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  line-height: 1;
  width: auto;
  margin-top: 0.65rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(130deg, var(--color-primary), var(--color-secondary)) !important;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-indent: 0;
  text-transform: uppercase;
}

section .more-link:hover,
.gotop:hover {
  color: #fff;
  background: linear-gradient(130deg, #0a6ab5, #1094bf) !important;
}

.archive,
section.archive {
  background: #eff7ff !important;
  border: 1px solid rgba(13, 105, 178, 0.18) !important;
  border-radius: var(--radius-md);
  margin: 0 0 1rem !important;
  padding: 0.65rem 0.95rem !important;
}

.archive .title,
section.archive .title {
  color: #194569;
  font-weight: 600;
  font-style: normal;
}

aside {
  position: sticky;
  top: 7.25rem;
  align-self: start;
  text-align: left !important;
}

aside a {
  color: #1c4f84 !important;
}

aside h3 {
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--color-border);
  background: transparent !important;
  color: #173654;
  font-weight: 700;
  font-size: 0.98rem;
  text-shadow: none !important;
}

aside ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

aside > ul,
aside .widget,
aside .showidget {
  margin-bottom: 1rem;
}

aside ul li ul,
aside ul li div,
aside .widget_text div,
aside .widget_calendar div,
aside .widget_tag_cloud div {
  display: block;
  width: auto !important;
  margin: 0;
  padding: 0.8rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(20, 53, 86, 0.1) !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

aside ul li div {
  padding: 0.86rem 1rem !important;
}

aside ul li ul li {
  padding: 0.3rem 0 !important;
}

aside ul li ul li a {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0 !important;
  background: none !important;
  line-height: 1.5;
}

aside ul li ul li a:hover {
  color: #0d69b2 !important;
  text-decoration: underline;
}

aside ul li ul.children,
aside ul li ul ul {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.3rem 0 0 0.95rem !important;
}

.widget_text div,
.widget_calendar div,
.widget_tag_cloud div {
  width: auto !important;
}

#wp-calendar {
  width: 100% !important;
}

aside ul li.reavatar div {
  width: auto !important;
  padding: 0.8rem !important;
}

.showidget {
  width: auto !important;
  height: auto !important;
  margin: 0 0 1rem !important;
  padding: 0 0 0.8rem !important;
  border: 0;
  border-bottom: 1px solid rgba(20, 53, 86, 0.1);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  text-shadow: none !important;
}

.showidget ul {
  height: auto !important;
  margin: 0.65rem 0 0 !important;
  padding: 0 0 0 1.1rem !important;
}

.showidget ul li {
  margin-bottom: 0.35rem;
  background: none !important;
  text-indent: 0 !important;
  list-style: disc;
}

.showidget ul li a {
  color: #214b76;
}

#searchform {
  display: flex !important;
  align-items: stretch;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  gap: 0.55rem;
}

#searchform .screen-reader-text {
  display: none;
}

#searchform #s,
#searchform input[type='text'] {
  float: none !important;
  flex: 1;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0.62rem 0.78rem !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  background: #fff !important;
  color: #1f3d5a !important;
  font-size: 0.95rem;
}

#searchform #searchsubmit,
#searchform input[type='submit'] {
  float: none !important;
  width: auto !important;
  min-width: 48px;
  height: auto !important;
  margin: 0;
  padding: 0.62rem 0.9rem !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  color: #fff !important;
  text-indent: 0 !important;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

#searchform #searchsubmit:hover,
#searchform input[type='submit']:hover {
  background: linear-gradient(135deg, #0866ad, #0e9fc1) !important;
}

.navigation,
.page-links,
.istudio_pagenavi {
  clear: both;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.navigation .alignleft,
.navigation .alignright {
  float: none !important;
}

.navigation a,
.page-links a,
.page-links span,
.istudio_pagenavi a,
.istudio_pagenavi span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 42px;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 0.84rem !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff !important;
  color: #1e3d5c !important;
  font-size: 0.9rem;
  line-height: 1 !important;
  text-indent: 0 !important;
}

.navigation a:hover,
.page-links a:hover,
.istudio_pagenavi a:hover {
  border-color: rgba(13, 105, 178, 0.35);
  color: #0d6dbb !important;
}

.page-links span,
.istudio_pagenavi .current {
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  color: #fff !important;
}

.istudio_pagenavi .pages,
.istudio_pagenavi .dots,
.istudio_pagenavi .extend {
  width: auto !important;
  min-width: 0;
  padding: 0 0.2rem !important;
  border: none;
  background: transparent !important;
  color: var(--color-muted) !important;
}

.post-nav {
  clear: both;
  margin-top: 0.85rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.post-nav .previous,
.post-nav .next {
  flex: 1;
}

.post-nav .previous a,
.post-nav .next a {
  float: none !important;
  display: inline-flex;
  width: auto;
  max-width: 100%;
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f6faff;
  color: #1d3f61 !important;
  text-align: left;
  font-size: 0.88rem;
}

.post-nav .next {
  text-align: right;
}

.post-nav .next a {
  justify-content: flex-end;
  text-align: right;
}

.post-nav .previous a:hover,
.post-nav .next a:hover {
  border-color: rgba(13, 105, 178, 0.32);
  color: #0e6eb9 !important;
}

.postcomments,
.sidecomments {
  width: auto !important;
  margin: 1.2rem 0 0;
  text-align: left;
}

h3#comments,
h3#reply-title {
  margin: 0 0 0.8rem !important;
  padding: 0 !important;
  background: none !important;
  color: #173451;
  font-style: normal;
  font-size: 1.05rem;
}

#comments {
  border-top: none !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #fbfdff;
}

#cmtswitcher {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

#cmtswitcher a.tab,
#cmtswitcher a.curtab {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius-md);
  background: #edf5fe !important;
  color: #20537f !important;
}

#cmtswitcher a.curtab {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  color: #fff !important;
  font-weight: 700;
}

#cmtswitcher .addcomment,
#cmtswitcher .addtrackback {
  float: none !important;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: auto;
  background: none !important;
}

#commentlist,
#thecomments,
#thetrackbacks,
.commentlist,
.pingbacklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.commentlist li,
.pingbacklist li {
  margin: 0 0 0.85rem;
  padding: 0;
}

.commentlist li .list,
.pingbacklist li .list {
  padding: 0.8rem 0.9rem !important;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f5faff;
  color: #233e5d;
}

.commentlist .list a,
.pingbacklist .list a {
  color: #1b5a90;
}

.commentlist table,
.pingbacklist table {
  width: 100%;
  border-collapse: collapse;
}

#respond {
  overflow: visible;
  margin: 1rem 0 0;
  padding: 0;
}

#respond label {
  margin-left: 0;
  color: #36516c;
}

#respond #commentform p {
  clear: both;
  margin: 0 0 0.8rem;
}

#respond .comment-form-author input,
#respond .comment-form-email input,
#respond .comment-form-url input,
#respond textarea {
  width: 100% !important;
  max-width: 100%;
  margin: 0.3rem 0 0;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff !important;
  color: #1f3f5e;
}

#respond textarea {
  min-height: 170px;
}

#respond .comment-form-author input:focus,
#respond .comment-form-email input:focus,
#respond .comment-form-url input:focus,
#respond textarea:focus {
  border-color: rgba(13, 105, 178, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 126, 214, 0.12);
}

#respond #submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0.62rem 1rem;
  border: none !important;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
  color: #fff;
  text-indent: 0 !important;
  font-size: 0.86rem;
  font-weight: 700;
}

#respond #submit:hover {
  background: linear-gradient(135deg, #096ab2, #0e99bc) !important;
}

.wp-caption {
  max-width: 100% !important;
  margin: 0.8rem 0 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  background: #f8fbff;
}

.wp-caption p.wp-caption-text {
  margin: 0.5rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.gallery {
  margin: 0.8rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.gallery .gallery-item {
  float: none !important;
  width: calc(33.333% - 0.47rem);
  margin: 0;
}

.gallery-columns-2 .gallery-item {
  width: calc(50% - 0.35rem);
}

.gallery-columns-4 .gallery-item {
  width: calc(25% - 0.53rem);
}

.gallery img {
  border: 1px solid var(--color-border) !important;
  padding: 0 !important;
  border-radius: var(--radius-md);
}

#archives {
  width: 100%;
}

#archives #arslink {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  padding: 0;
}

#archives #arslink li {
  width: auto !important;
  margin: 0 !important;
  line-height: 1.35;
}

#archives #arslink li a {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f5faff;
  color: #1f4b77;
  padding: 0.55rem 0.65rem;
  text-align: center;
}

#archives #arslink li a:hover {
  border-color: rgba(13, 105, 178, 0.32);
  background: #e8f3ff;
}

#archives .line {
  padding: 0.5rem 0;
  font-weight: 700;
  color: #173b5c;
}

#archives ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#archives ul li {
  border-bottom: 1px solid rgba(16, 60, 98, 0.09);
  line-height: 1.55;
  background: none !important;
}

#archives ul li a {
  display: block;
  padding: 0.55rem 0.2rem;
}

#linkpage ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#linkpage ul li ul li {
  width: calc(33.333% - 0.4rem) !important;
  margin: 0.2rem !important;
  height: auto !important;
  border: 0;
}

#linkpage ul li ul li a {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md);
  padding: 0.42rem 0.52rem;
}

#linkpage ul li ul li a:hover {
  border-color: rgba(13, 105, 178, 0.3) !important;
  background: #eaf4ff !important;
  color: #0d6dbb !important;
  text-shadow: none !important;
}

footer {
  clear: both;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.8rem 0.35rem !important;
  border: 0;
  border-top: 1px solid rgba(20, 53, 86, 0.1);
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  position: relative;
}

footer p {
  margin: 0;
  padding: 0 !important;
  color: var(--color-muted);
  font-size: 0.84rem;
  text-align: left;
  text-transform: none;
  letter-spacing: 0.01em;
}

footer p a {
  color: #1b5f99;
  text-decoration: underline;
}

footer .footer-ghost {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

img#wpstats {
  display: none;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  #content {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 280px);
  }

  aside {
    top: 6.8rem;
  }
}

@media (max-width: 920px) {
  #wrapper {
    width: calc(100% - 1.2rem) !important;
    margin: 0.6rem auto 1.5rem !important;
  }

  header {
    top: 0.35rem;
    padding: 0.9rem 0.95rem 1rem;
    border-radius: 18px;
  }

  header .logo,
  header .logo img {
    max-width: min(72vw, 380px);
    max-height: 78px;
  }

  header nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 0.42rem;
    border-radius: 14px !important;
    padding: 0.38rem 0.42rem;
  }

  header .nav-toggle {
    display: inline-flex;
  }

  header nav #navmenus,
  header nav .menu > ul {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
    margin-top: 0.18rem !important;
    padding: 0.35rem !important;
    border: 1px solid rgba(13, 105, 178, 0.16);
    border-radius: 12px;
    background: rgba(252, 254, 255, 0.85);
  }

  header nav.is-open #navmenus,
  header nav.is-open .menu > ul {
    display: flex !important;
  }

  header nav #navmenus > li,
  header nav .menu > ul > li {
    width: 100%;
  }

  header nav #navmenus > li > a,
  header nav .menu > ul > li > a {
    width: 100% !important;
    justify-content: flex-start;
    border-radius: 9px;
    font-size: 0.86rem;
    padding: 0.56rem 0.68rem !important;
  }

  header nav #navmenus > li.menu-item-home > a,
  header nav #navmenus > li.page_item:first-child > a,
  header nav .menu > ul > li.menu-item-home > a,
  header nav .menu > ul > li.page_item:first-child > a,
  header nav .menu > ul > li:first-child > a {
    padding: 0.56rem 0.68rem !important;
  }

  header nav #navmenus > li > ul,
  header nav .menu > ul > li > ul,
  header nav #navmenus > li > ul.sub-menu,
  header nav .menu > ul > li > ul.sub-menu,
  header nav.is-open #navmenus > li > ul,
  header nav.is-open .menu > ul > li > ul {
    position: static !important;
    display: block !important;
    min-width: 0;
    margin: 0.35rem 0 0 !important;
    padding: 0 0 0 0.95rem !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  header nav #navmenus > li > ul > li > a,
  header nav .menu > ul > li > ul > li > a {
    padding: 0.42rem 0 !important;
  }

  #content {
    grid-template-columns: 1fr;
  }

  #content,
  #content_post {
    padding: 0.78rem !important;
    border-radius: 6px;
  }

  aside {
    position: static;
    top: auto;
  }
}

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

  header .logo,
  header .logo img {
    max-width: min(80vw, 320px);
    max-height: 64px;
  }

  section {
    padding: 0.92rem 0.2rem !important;
    border-radius: 0 !important;
  }

  section .title h2 {
    font-size: 1.52rem;
  }

  section .entry {
    font-size: 0.95rem;
  }

  .navigation a,
  .page-links a,
  .page-links span,
  .istudio_pagenavi a,
  .istudio_pagenavi span {
    min-width: 38px;
    height: 38px !important;
    font-size: 0.84rem;
  }

  .gallery .gallery-item,
  .gallery-columns-2 .gallery-item,
  .gallery-columns-4 .gallery-item {
    width: calc(50% - 0.35rem);
  }

  #linkpage ul li ul li {
    width: calc(50% - 0.4rem) !important;
  }

  footer {
    padding: 0.85rem 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
