/* WordPress shell reset */
.wp-block-template-part,
.wp-block-post-title,
#header,
#sidebar,
#footer,
article > .header,
.entry-footer {
  display: none !important;
}

html,
body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fbf7ed !important;
}

#wrapper,
#container,
#content,
#content > article {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box;
}

.wp-site-blocks,
.wp-site-blocks > main.wp-block-group,
.wp-site-blocks .wp-block-group,
.entry-content,
.wp-block-post-content,
.has-global-padding,
.is-layout-constrained {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.wp-site-blocks .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wp-site-blocks .has-global-padding > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wp-site-blocks .wp-block-post-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.wp-site-blocks .entry-content > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wp-site-blocks .wp-block-group[style*="margin-top"],
.wp-site-blocks .wp-block-group[style*="padding-top"],
.wp-site-blocks .wp-block-group[style*="padding-bottom"] {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wp-block-html {
  max-width: none !important;
  width: 100% !important;
}

/* Umagation mock styles */
:root {
  --ink: #15130f;
  --muted: #6f6a60;
  --line: #d8d0bd;
  --paper: #fbf7ed;
  --paper-strong: #f1e7d0;
  --green: #0e5b43;
  --green-dark: #07382b;
  --red: #b8242a;
  --gold: #c79626;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
  padding-bottom: 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  background: rgba(251, 247, 237, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--green-dark);
}

.brand img {
  display: block;
  width: 184px;
  max-width: 46vw;
  height: auto;
}

.global-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green-dark);
}

.hero {
  min-height: 540px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(6, 19, 16, .88), rgba(6, 19, 16, .42) 45%, rgba(6, 19, 16, .05)),
    url("https://umagation.com/wp-content/uploads/2026/07/hero-racecourse.png") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  width: min(1080px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 70px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd36a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.18;
}

h2 {
  font-size: 26px;
  line-height: 1.3;
}

h3 {
  font-size: 19px;
}

.lead {
  max-width: 700px;
  font-size: 18px;
}

.lead.small {
  color: var(--muted);
  font-size: 15px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.card-actions a,
.panel a,
.comment-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.button.primary,
.card-actions a:first-child,
.comment-form button {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .65);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.stats span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .18);
  font-size: 12px;
  font-weight: 800;
}

.section,
main.page {
  width: min(1080px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 42px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--ink);
}

.section-head.compact {
  align-items: center;
  margin-bottom: 0;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head a {
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 900;
}

.dense-strip {
  padding: 20px 0 8px;
}

.comment-ticker,
.comment-board {
  border-top: 1px solid var(--line);
}

.comment-ticker a,
.comment-board a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
}

.comment-ticker a {
  display: flex;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.comment-ticker a > strong,
.comment-ticker a > time {
  flex: none;
}

.comment-ticker a > time {
  margin-left: auto;
  padding-left: 8px;
  justify-self: end;
  text-align: right;
}

.comment-ticker strong,
.comment-board strong {
  color: var(--green-dark);
}

.text-ad {
  background: #fff3d3;
}

.comment-ticker a.text-ad,
.news-row.text-ad {
  color: #6d4310;
}

time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.rank-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank-ad,
.content-ad,
.footer-ad,
.sidebar-ad {
  padding: 14px 16px;
  background: #fff3d3;
  border: 1px solid #d8b15c;
  border-radius: 8px;
  color: #6d4310;
}

.rank-ad {
  padding: 16px 18px;
}

.content-ad {
  margin: 18px 0 24px;
}

.footer-ad {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.sidebar-ad {
  margin-bottom: 16px;
}

.review-sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 16px;
}

.review-sidebar .sidebar-ad {
  margin-bottom: 0;
}

.rank-ad span,
.content-ad span,
.footer-ad span,
.sidebar-ad span {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 7px;
  color: var(--white);
  background: var(--gold);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.rank-ad strong,
.content-ad strong,
.footer-ad strong,
.sidebar-ad strong {
  display: block;
  font-weight: 900;
}

.rank-ad strong {
  font-size: 18px;
}

.rank-ad p,
.content-ad p,
.footer-ad p,
.sidebar-ad p {
  margin-bottom: 0;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-size: 24px;
  font-weight: 900;
}

.rank-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-title h3 {
  margin-bottom: 6px;
}

.rank-title span {
  color: var(--green);
  font-weight: 900;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.score-grid.wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.score-grid div {
  padding: 8px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.score-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.score-grid dd {
  margin: 0;
  font-weight: 900;
}

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

.category-grid .section-head {
  grid-column: 1 / -1;
}

.category-grid > a {
  padding: 14px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 6px;
  font-weight: 900;
}

.two-column,
.common-layout,
.review-layout {
  width: min(1080px, calc(100% - 32px)) !important;
  margin: 20px auto !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.common-main > .page {
  width: 100% !important;
  padding-top: 0;
}

.common-sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  align-content: start;
  gap: 16px;
}

.common-sidebar .sidebar-ad {
  margin-bottom: 0;
}

.column-page {
  padding-top: 42px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--green);
  text-decoration: none;
}

.column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.column-article {
  border-top: 3px solid var(--ink);
  padding-top: 20px;
}

.column-article h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.column-article time {
  display: inline-block;
  margin-right: 10px;
}

.column-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.column-lead {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 16px;
  font-weight: 700;
}

.column-content {
  font-size: 16px;
  line-height: 2;
}

.column-content h2 {
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  font-size: 24px;
}

.column-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.column-side .panel {
  position: static;
}

.news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.panel {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  padding: 24px 0 90px;
}

.global-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(1080px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 18px 0 92px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-brand img {
  display: block;
  width: 230px;
  max-width: 60vw;
  height: auto;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-menu a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page {
  padding-top: 42px;
}

.policy-page article {
  max-width: 900px;
  margin: 0 auto;
}

.policy-page .lead {
  max-width: 760px;
}

.policy-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0 32px;
  padding: 14px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-index a {
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.policy-section {
  padding: 24px 0;
  border-top: 2px solid var(--ink);
}

.policy-section h2 {
  margin-bottom: 12px;
  font-size: 25px;
}

.policy-note,
.policy-box,
.policy-table {
  margin: 16px 0;
}

.policy-note {
  padding: 12px 14px;
  background: #fff3d3;
  border: 1px solid #d8b15c;
  border-radius: 8px;
  color: #6d4310;
  font-size: 14px;
  font-weight: 700;
}

.policy-box {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-box h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.policy-table {
  display: grid;
  border-top: 1px solid var(--line);
}

.policy-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.policy-table dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.policy-table dd {
  font-weight: 700;
}

.panel a {
  width: 100%;
  margin-top: 8px;
}

.sticky-panel {
  position: static;
  align-self: start;
}

.check-list {
  padding-left: 1.2em;
}

.review-summary,
.comment-form,
.comment-list article {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-summary,
.comment-list article {
  margin-bottom: 24px;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-list p {
  margin-bottom: 4px;
}

.comment-form form {
  display: grid;
  gap: 12px;
}

.comment-form label {
  display: grid;
  gap: 4px;
  font-weight: 900;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font: inherit;
}

.ug-official {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

.ug-official a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-weight: 900;
}

.ug-official small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 58px;
  background: var(--green-dark);
  border-top: 3px solid var(--gold);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.bottom-nav a:first-child {
  border-left: 0;
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .bottom-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .global-nav {
    display: none;
  }

  body.is-menu-open .global-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 10px;
    right: 10px;
    z-index: 30;
    display: grid;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  }

  body.is-menu-open .global-nav a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
  }

  body.is-menu-open .global-nav a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    min-height: 52px;
  }

  .hero {
    min-height: 520px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .section,
  .page {
    width: min(100% - 20px, 1080px);
    padding: 30px 0;
  }

  .rank-card,
  .two-column,
  .column-layout,
  .common-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .rank-card {
    gap: 8px;
  }

  .rank-num {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .score-grid,
  .score-grid.wide,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-index,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-section h2 {
    font-size: 22px;
  }

  .policy-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .common-sidebar,
  .review-sidebar {
    position: static;
  }

  .comment-ticker a,
  .comment-board a,
  .news-row {
    font-size: 13px;
  }

  .comment-ticker a span,
  .comment-board a span,
  .news-row a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  time {
    font-size: 11px;
  }
}
