/* MIC Royal Navy main theme stylesheet. */
:root {
  --color-royal-navy: #071A33;
  --color-deep-navy: #0B2345;
  --color-midnight-blue: #04111F;
  --color-muted-gold: #C8A45D;
  --color-soft-gold: #D8BF7A;
  --color-ivory: #F8F6F0;
  --color-white: #FFFFFF;
  --color-light-gray: #E9E6DF;
  --color-text-dark: #1B1F24;
  --color-text-muted: #667085;
  --color-success-green: #2F7D5C;
  --color-alert-burgundy: #7A2E3A;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --font-heading: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --shadow-soft: 0 18px 48px rgba(4, 17, 31, .08);
  --shadow-card: 0 12px 34px rgba(4, 17, 31, .10);
  --radius-card: 8px;
  --radius-pill: 999px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text-dark);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--color-muted-gold);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-soft-gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .75em;
  color: var(--color-royal-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0;
}

.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;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--color-royal-navy);
  background: var(--color-soft-gold);
  border-radius: var(--radius-card);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.narrow-container {
  width: min(100% - 48px, 780px);
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--color-ivory);
}

.section-dark {
  color: rgba(255, 255, 255, .86);
  background: var(--color-royal-navy);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.grid {
  display: grid;
  gap: 24px;
}

.lead {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.section-dark .lead {
  color: rgba(255, 255, 255, .78);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-muted-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--color-royal-navy);
  background: rgba(200, 164, 93, .18);
  border: 1px solid rgba(200, 164, 93, .34);
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

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

.btn-primary {
  color: var(--color-midnight-blue);
  background: var(--color-muted-gold);
  border-color: var(--color-muted-gold);
}

.btn-primary:hover {
  color: var(--color-midnight-blue);
  background: var(--color-soft-gold);
  border-color: var(--color-soft-gold);
}

.btn-secondary {
  color: var(--color-royal-navy);
  background: transparent;
  border-color: rgba(7, 26, 51, .24);
}

.btn-secondary:hover {
  color: var(--color-royal-navy);
  border-color: var(--color-muted-gold);
}

.btn-secondary-light {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .5);
}

.btn-secondary-light:hover {
  color: var(--color-white);
  border-color: var(--color-soft-gold);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-deep-navy);
  font-weight: 700;
}

.text-link::after {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.text-link:hover {
  color: var(--color-muted-gold);
}

.card,
.service-card,
.price-card {
  background: var(--color-white);
  border: 1px solid rgba(7, 26, 51, .10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.card-dark {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(216, 191, 122, .28);
  border-radius: var(--radius-card);
  box-shadow: none;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--color-white);
  border-bottom: 1px solid rgba(7, 26, 51, .08);
}

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

.brand-area {
  display: flex;
  align-items: center;
  min-width: 224px;
  gap: 12px;
}

.brand-logo img {
  width: auto;
  max-height: 42px;
}

.site-brand {
  display: grid;
  gap: 2px;
}

.brand-title {
  color: var(--color-royal-navy);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  color: var(--color-text-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-navigation .menu,
.footer-navigation .menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  color: var(--color-text-dark);
  font-size: .92rem;
  font-weight: 700;
}

.primary-navigation a:hover {
  color: var(--color-muted-gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-royal-navy);
  background: transparent;
  border: 1px solid rgba(7, 26, 51, .16);
  border-radius: var(--radius-card);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.nav-open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 96px 0 104px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  line-height: 1.18;
}

.hero h1 span {
  color: var(--color-soft-gold);
}

.hero .lead {
  max-width: 710px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-dashboard {
  position: relative;
  min-height: 460px;
}

.dashboard-panel {
  border-radius: var(--radius-card);
  background: var(--color-midnight-blue);
  border: 1px solid rgba(216, 191, 122, .28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .24);
}

.dashboard-panel-main {
  padding: 30px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, .72);
}

.dashboard-header strong {
  color: var(--color-soft-gold);
  font-size: 2rem;
}

.signal-bars {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.signal-bars span {
  display: block;
  width: var(--bar-width);
  height: 14px;
  background: var(--color-muted-gold);
  border-radius: var(--radius-pill);
}

.signal-bars span:nth-child(2) {
  background: rgba(248, 246, 240, .72);
}

.signal-bars span:nth-child(3) {
  background: rgba(248, 246, 240, .42);
}

.dashboard-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dashboard-grid-mini div {
  padding: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-card);
}

.dashboard-grid-mini small,
.dashboard-grid-mini strong {
  display: block;
}

.dashboard-grid-mini small {
  color: rgba(255, 255, 255, .56);
  font-size: .75rem;
}

.dashboard-grid-mini strong {
  color: var(--color-white);
  margin-top: 5px;
}

.dashboard-panel-sub {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: min(88%, 360px);
  padding: 24px;
}

.dashboard-panel-sub p {
  color: var(--color-soft-gold);
  font-weight: 700;
}

.dashboard-panel-sub ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .8);
  list-style: none;
}

.dashboard-panel-sub li {
  position: relative;
  padding-left: 18px;
}

.dashboard-panel-sub li::before {
  position: absolute;
  top: .78em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--color-muted-gold);
  border-radius: 50%;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.85rem);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 24px;
}

.section-heading-light h2 {
  color: var(--color-white);
}

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

.framework-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card,
.framework-card {
  min-height: 190px;
  padding: 26px;
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--color-muted-gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.problem-card h3,
.framework-card h3 {
  font-size: 1.16rem;
}

.framework-card p {
  color: var(--color-text-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: steps;
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  background: var(--color-white);
  border: 1px solid rgba(7, 26, 51, .10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.step-card h3 {
  margin-top: 48px;
  font-size: 1.25rem;
}

.services-section {
  background: var(--color-deep-navy);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 32px;
}

.service-card h3 {
  font-size: 1.28rem;
}

.service-card p {
  color: rgba(255, 255, 255, .72);
}

.case-grid,
.archive-grid,
.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.case-card {
  overflow: hidden;
}

.card-media {
  display: block;
  background: var(--color-ivory);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card-body,
.case-card-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.post-card h2,
.case-card h2,
.post-card h3,
.case-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.18rem;
}

.post-card p,
.case-card p {
  color: var(--color-text-muted);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: .84rem;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 48px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 44px;
  background: var(--color-white);
  border: 1px solid rgba(7, 26, 51, .10);
  border-radius: var(--radius-card);
}

.check-list li::before {
  position: absolute;
  top: 24px;
  left: 20px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--color-muted-gold);
  border-radius: 50%;
}

.cta-section {
  padding-top: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 48px;
  color: rgba(255, 255, 255, .82);
  background: var(--color-royal-navy);
  border-radius: var(--radius-card);
}

.cta-band h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.cta-band p:last-child {
  margin-bottom: 0;
}

.page-hero {
  padding: 84px 0;
  background: var(--color-ivory);
  border-bottom: 1px solid rgba(7, 26, 51, .08);
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

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

.single-header {
  padding: 84px 0 48px;
  background: var(--color-ivory);
}

.single-header h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.case-report-header {
  color: rgba(255, 255, 255, .82);
  background: var(--color-royal-navy);
}

.case-report-header h1 {
  color: var(--color-white);
}

.single-featured {
  margin-top: 48px;
}

.single-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.entry-content {
  margin-top: 44px;
}

.prose {
  color: var(--color-text-dark);
  font-size: 1.02rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2em;
}

.prose h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 164, 93, .4);
  font-size: 1.85rem;
}

.prose h3 {
  font-size: 1.42rem;
}

.prose p,
.prose li {
  line-height: 1.9;
}

.prose a {
  color: var(--color-deep-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 93, .6);
  text-underline-offset: 4px;
}

.prose blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  color: var(--color-deep-navy);
  background: var(--color-ivory);
  border-left: 4px solid var(--color-muted-gold);
}

.prose table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 51, .14);
  border-radius: var(--radius-card);
}

.prose th,
.prose td {
  padding: 14px 16px;
  border: 1px solid rgba(7, 26, 51, .12);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--color-royal-navy);
  background: var(--color-ivory);
}

.prose img {
  border-radius: var(--radius-card);
}

.report-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 64px;
}

.report-aside {
  position: sticky;
  top: 24px;
  padding: 24px;
  background: var(--color-ivory);
  border: 1px solid rgba(7, 26, 51, .10);
  border-radius: var(--radius-card);
}

.report-label {
  color: var(--color-muted-gold);
  font-weight: 700;
}

.report-aside ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.report-content {
  margin-top: 0;
}

.empty-state {
  padding: 48px;
  text-align: center;
  background: var(--color-ivory);
  border: 1px solid rgba(7, 26, 51, .10);
  border-radius: var(--radius-card);
}

.navigation.pagination {
  margin-top: 44px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-numbers {
  min-width: 42px;
  padding: 8px 12px;
  color: var(--color-royal-navy);
  background: var(--color-white);
  border: 1px solid rgba(7, 26, 51, .14);
  border-radius: var(--radius-card);
  text-align: center;
}

.page-numbers.current {
  color: var(--color-midnight-blue);
  background: var(--color-muted-gold);
  border-color: var(--color-muted-gold);
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1px solid rgba(7, 26, 51, .18);
  border-radius: var(--radius-card);
}

.search-submit {
  min-height: 48px;
  padding: 10px 18px;
  color: var(--color-midnight-blue);
  background: var(--color-muted-gold);
  border: 1px solid var(--color-muted-gold);
  border-radius: var(--radius-card);
  font-weight: 700;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.price-card {
  padding: 28px;
}

.price-card h3 {
  font-size: 1.28rem;
}

.price-card .price,
.price {
  color: var(--color-royal-navy);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.site-footer {
  color: rgba(255, 255, 255, .74);
  background: var(--color-royal-navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 52px 0;
}

.footer-title {
  margin-bottom: 6px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 700;
}

.footer-tagline {
  color: rgba(255, 255, 255, .68);
}

.footer-navigation a,
.footer-menu a {
  color: rgba(255, 255, 255, .74);
}

.footer-navigation a:hover,
.footer-menu a:hover {
  color: var(--color-soft-gold);
}

.footer-widgets {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-widget-title {
  color: var(--color-white);
  font-size: 1rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  color: rgba(255, 255, 255, .52);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .primary-navigation .menu {
    gap: 14px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    min-height: 390px;
  }

  .problem-grid,
  .framework-grid,
  .case-grid,
  .archive-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel,
  .report-shell {
    grid-template-columns: 1fr;
  }

  .report-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .container,
  .narrow-container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-area {
    min-width: 0;
  }

  .brand-title {
    font-size: 1.28rem;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 18px 16px 24px;
    background: var(--color-white);
    border-bottom: 1px solid rgba(7, 26, 51, .10);
    box-shadow: var(--shadow-soft);
  }

  .nav-open .primary-navigation {
    display: block;
  }

  .primary-navigation .menu {
    display: grid;
    gap: 4px;
  }

  .primary-navigation a {
    display: block;
    padding: 12px 4px;
  }

  .hero {
    padding: 70px 0 76px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }

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

  .dashboard-grid-mini {
    grid-template-columns: 1fr;
  }

  .dashboard-panel-sub {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .problem-grid,
  .framework-grid,
  .case-grid,
  .archive-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .page-hero,
  .single-header {
    padding: 62px 0 42px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-navigation .menu,
  .footer-menu {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

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

  .container,
  .narrow-container {
    width: min(100% - 28px, var(--container));
  }

  .hero h1,
  .page-hero h1,
  .single-header h1 {
    font-size: 2.05rem;
  }

  .lead {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .problem-card,
  .framework-card,
  .step-card,
  .service-card,
  .price-card {
    padding: 22px;
  }

  .post-card-body,
  .case-card-body {
    padding: 20px;
  }

  .dashboard-panel-main {
    padding: 22px;
  }

  .empty-state {
    padding: 32px 20px;
  }
}
