/*
 * Migolf user content pages
 * Scoped to body.mg-content-page so the shared header, footer, booking and join
 * drafts keep their existing styles.
 */

.mg-content-page {
  --mg-content-ink: #173f35;
  --mg-content-copy: #53655f;
  --mg-content-line: #dfe8e3;
  --mg-content-soft: #f2f7f4;
  --mg-content-gold: #b18b43;
  background: #f5f7f6;
}

.mg-content-page .mg-main {
  padding-top: clamp(18px, 3vw, 36px);
  padding-bottom: clamp(40px, 6vw, 76px);
}

.mg-content-page .mg-subpage {
  gap: 16px;
}

.mg-content-page .mg-sub-hero {
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  border-color: var(--mg-content-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 96% 8%, rgba(177, 139, 67, 0.14), transparent 210px),
    linear-gradient(135deg, #ffffff 0%, #f3f8f5 100%);
  box-shadow: 0 12px 32px rgba(23, 63, 53, 0.07);
}

.mg-content-page .mg-sub-hero__eyebrow,
.mg-content-page .mg-sub-label {
  min-height: 26px;
  padding: 0 10px;
  background: #e7f1ec;
  color: var(--mg-content-ink);
  letter-spacing: 0.02em;
}

.mg-content-page .mg-sub-hero h1 {
  margin: 9px 0 7px;
  color: var(--mg-content-ink);
  font-size: clamp(27px, 3vw, 36px);
}

.mg-content-page .mg-sub-hero p {
  color: var(--mg-content-copy);
  font-weight: 650;
  line-height: 1.6;
  word-break: keep-all;
}

.mg-content-page .mg-panel {
  border-color: var(--mg-content-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(23, 63, 53, 0.055);
}

.mg-content-page .mg-panel-head {
  padding: 20px 22px 15px;
  background: #fff;
}

.mg-content-page .mg-panel-head h2 {
  font-size: 21px;
}

.mg-content-page .mg-panel-head p {
  color: var(--mg-content-copy);
  font-weight: 650;
}

.mg-content-page .mg-primary-button {
  min-height: 48px;
  border-radius: 12px;
  background: var(--mg-content-ink);
  box-shadow: 0 8px 18px rgba(23, 63, 53, 0.16);
}

.mg-content-page .mg-hero-actions .mg-primary-button {
  border-color: var(--mg-content-ink);
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-content-page .mg-soft-button,
.mg-content-page .mg-hero-actions a {
  min-height: 46px;
  border-color: var(--mg-content-line);
  border-radius: 12px;
}

.mg-content-page a:focus-visible,
.mg-content-page button:focus-visible,
.mg-content-page input:focus-visible,
.mg-content-page select:focus-visible,
.mg-content-page textarea:focus-visible,
.mg-content-page summary:focus-visible {
  outline: 3px solid rgba(246, 111, 155, 0.32);
  outline-offset: 2px;
}

.mg-content-section-nav {
  display: flex;
  gap: 8px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--mg-content-line);
  border-radius: 14px;
  background: #fff;
  scrollbar-width: none;
}

.mg-content-section-nav::-webkit-scrollbar {
  display: none;
}

.mg-content-section-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  color: #5a6b65;
  font-size: 14px;
  font-weight: 850;
}

.mg-content-section-nav a.is-active {
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.mg-section-title-row h2 {
  margin: 0;
  color: var(--mg-content-ink);
  font-size: clamp(22px, 2.5vw, 28px);
}

.mg-section-title-row p {
  margin: 5px 0 0;
  color: var(--mg-content-copy);
  font-size: 14px;
  line-height: 1.55;
}

.mg-section-title-row > a {
  color: var(--mg-content-ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

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

/* Tour */
.mg-tour-hero {
  overflow: hidden;
}

.mg-tour-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.mg-tour-hero__facts span {
  display: grid;
  gap: 3px;
  min-width: 94px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 63, 53, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--mg-content-copy);
  font-size: 11px;
  font-weight: 750;
}

.mg-tour-hero__facts strong {
  color: var(--mg-content-ink);
  font-size: 15px;
}

.mg-tour-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.mg-tour-filter::-webkit-scrollbar {
  display: none;
}

.mg-tour-filter a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--mg-content-line);
  border-radius: 999px;
  background: #fff;
  color: var(--mg-content-copy);
  font-size: 13px;
  font-weight: 800;
}

.mg-tour-filter a.is-active {
  border-color: var(--mg-content-ink);
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-tour-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mg-tour-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mg-content-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 63, 53, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mg-tour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 63, 53, 0.1);
}

.mg-tour-card__visual {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 148px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.34), transparent 70px),
    linear-gradient(135deg, #214d40, #87a88c);
}

.mg-tour-card__visual::before,
.mg-tour-card__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.mg-tour-card__visual::before {
  width: 180px;
  height: 180px;
  right: -65px;
  bottom: -110px;
}

.mg-tour-card__visual::after {
  width: 84px;
  height: 84px;
  right: 22px;
  top: -36px;
}

.mg-tour-card__visual--lake {
  background: linear-gradient(135deg, #244b43, #6f9b9b);
}

.mg-tour-card__visual--sunset {
  background: linear-gradient(135deg, #604c36, #c89a62);
}

.mg-tour-card__visual--jeju {
  background: linear-gradient(135deg, #19483f, #5f9b89);
}

.mg-tour-card__visual--coast {
  background: linear-gradient(135deg, #284c5a, #70a7b1);
}

.mg-tour-card__visual--premium {
  background: linear-gradient(135deg, #3e4632, #9e9b66);
}

.mg-tour-card__visual--bangkok {
  background: linear-gradient(135deg, #5a3c32, #c28062);
}

.mg-tour-card__visual--kyushu {
  background: linear-gradient(135deg, #3b4256, #929bb7);
}

.mg-tour-card__visual--danang {
  background: linear-gradient(135deg, #174c50, #55a1a0);
}

.mg-tour-card__visual span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--mg-content-ink);
  font-size: 12px;
  font-weight: 900;
}

.mg-tour-card__body {
  display: grid;
  gap: 11px;
  padding: 18px;
}

.mg-tour-card__body h3 {
  margin: 0;
  color: var(--mg-content-ink);
  font-size: 19px;
  line-height: 1.35;
}

.mg-tour-card__body > p {
  min-height: 42px;
  margin: 0;
  color: var(--mg-content-copy);
  font-size: 13px;
  line-height: 1.6;
}

.mg-tour-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mg-tour-card__meta span {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--mg-content-soft);
  color: #50625c;
  font-size: 11px;
  font-weight: 800;
}

.mg-tour-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
}

.mg-tour-card__foot strong {
  color: var(--mg-content-ink);
  font-size: 18px;
}

.mg-tour-card__foot em {
  color: var(--mg-content-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.mg-tour-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(23, 63, 53, 0.13);
  border-radius: 16px;
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-tour-help strong {
  display: block;
  font-size: 18px;
}

.mg-tour-help p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.mg-tour-help a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--mg-content-ink);
  font-size: 13px;
  font-weight: 900;
}

/* Login and membership */
.mg-content-page .mg-auth-layout {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  max-width: 1040px;
  margin: 0 auto;
  gap: 16px;
}

.mg-content-page .mg-auth-card {
  padding: clamp(24px, 4vw, 38px);
  border-color: var(--mg-content-line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(23, 63, 53, 0.07);
}

.mg-auth-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--mg-content-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-content-page .mg-auth-card h1 {
  font-size: clamp(28px, 3vw, 34px);
}

.mg-content-page .mg-auth-card > p {
  color: var(--mg-content-copy);
  font-weight: 600;
}

.mg-content-page .mg-social-button {
  position: relative;
  min-height: 52px;
  border-radius: 12px;
}

.mg-content-page .mg-social-button::before {
  position: absolute;
  left: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.mg-content-page .mg-social-button--kakao::before {
  content: "K";
  color: #191600;
}

.mg-content-page .mg-social-button--naver::before {
  content: "N";
  color: #03a94d;
}

.mg-content-page .mg-auth-card .mg-form {
  gap: 13px;
  padding: 0;
}

.mg-content-page .mg-form label {
  color: var(--mg-content-ink);
}

.mg-content-page .mg-form input,
.mg-content-page .mg-form select,
.mg-content-page .mg-form textarea {
  border-color: #d7e1dc;
  border-radius: 11px;
  background: #fbfcfb;
  font-size: 14px;
}

.mg-content-page .mg-form input:focus,
.mg-content-page .mg-form select:focus,
.mg-content-page .mg-form textarea:focus {
  border-color: var(--mg-content-ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 63, 53, 0.08);
}

.mg-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--mg-content-copy);
  font-size: 12px;
}

.mg-auth-options label,
.mg-agree-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  min-height: 44px;
}

.mg-auth-options input,
.mg-agree-row input {
  flex: 0 0 auto;
  width: 18px !important;
  min-height: 18px !important;
  accent-color: var(--mg-content-ink);
}

.mg-auth-options a,
.mg-form-note a,
.mg-agree-row a {
  color: var(--mg-content-ink);
  font-weight: 850;
}

.mg-content-page .mg-auth-side {
  min-height: 540px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 12%, rgba(177, 139, 67, 0.32), transparent 170px),
    linear-gradient(145deg, #173f35, #0e5a4a);
}

.mg-content-page .mg-auth-side h2 {
  font-size: clamp(24px, 3vw, 31px);
  word-break: keep-all;
}

.mg-member-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mg-member-mini-stats span {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 750;
}

.mg-member-mini-stats strong {
  color: #fff;
  font-size: 15px;
}

.mg-signup-steps {
  display: flex;
  gap: 7px;
  margin: 16px 0 20px;
}

.mg-signup-steps span {
  display: inline-flex;
  flex: 1;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  background: var(--mg-content-soft);
  color: #667771;
  font-size: 11px;
  font-weight: 850;
}

.mg-signup-steps span.is-active {
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-mypage-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(120px, 0.34fr));
  gap: 10px;
}

.mg-profile-card,
.mg-profile-stat {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--mg-content-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(23, 63, 53, 0.045);
}

.mg-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mg-profile-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--mg-content-ink);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.mg-profile-card strong,
.mg-profile-stat strong {
  display: block;
  color: var(--mg-content-ink);
  font-size: 19px;
}

.mg-profile-card span,
.mg-profile-stat span {
  display: block;
  margin-top: 4px;
  color: var(--mg-content-copy);
  font-size: 12px;
}

.mg-profile-card a {
  margin-left: auto;
  color: var(--mg-content-ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mg-profile-stat strong {
  font-size: 25px;
}

.mg-content-page .mg-dashboard-links {
  gap: 10px;
}

.mg-content-page .mg-dashboard-links a {
  min-height: 112px;
  padding: 18px;
  border-color: var(--mg-content-line);
  border-radius: 14px;
  box-shadow: none;
}

.mg-content-page .mg-dashboard-links a::before {
  width: 3px;
  background: var(--mg-content-ink);
}

.mg-content-page .mg-dashboard-links strong {
  font-size: 17px;
}

.mg-table-link {
  display: block;
  color: var(--mg-content-ink);
}

/* Customer center, notices and inquiry forms */
.mg-content-page .mg-subnav-grid {
  gap: 10px;
}

.mg-content-page--customer .mg-subnav-grid--customer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mg-content-page .mg-subnav-grid a {
  min-height: 88px;
  padding: 16px 18px;
  border-color: var(--mg-content-line);
  border-radius: 14px;
  box-shadow: none;
}

.mg-content-page .mg-subnav-grid a::before {
  width: 3px;
  background: var(--mg-content-ink);
}

.mg-content-page .mg-cs-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.mg-notice-list {
  display: grid;
}

.mg-notice-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 92px;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 10px 22px;
  border-bottom: 1px solid #edf1ef;
}

.mg-notice-row:last-child {
  border-bottom: 0;
}

.mg-notice-row > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e7f1ec;
  color: var(--mg-content-ink);
  font-size: 11px;
  font-weight: 900;
}

.mg-notice-row > span.is-important {
  background: #fff4dd;
  color: #9c6818;
}

.mg-notice-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--mg-content-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-notice-row time {
  color: #7b8984;
  font-size: 12px;
  text-align: right;
}

.mg-notice-more {
  display: flex;
  justify-content: center;
  padding: 14px 20px 18px;
  border-top: 1px solid #edf1ef;
}

.mg-notice-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--mg-content-line);
  border-radius: 11px;
  color: var(--mg-content-ink);
  font-size: 13px;
  font-weight: 850;
}

.mg-contact-card {
  margin: 0 20px 20px;
  padding: 20px;
  border-radius: 14px;
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-contact-card span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 750;
}

.mg-contact-card a {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.mg-contact-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.mg-faq-list {
  display: grid;
  gap: 8px;
  padding: 16px 20px 20px;
}

.mg-faq-list details {
  border: 1px solid var(--mg-content-line);
  border-radius: 12px;
  background: #fff;
}

.mg-faq-list summary {
  position: relative;
  min-height: 52px;
  padding: 16px 46px 14px 17px;
  color: var(--mg-content-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  list-style: none;
}

.mg-faq-list summary::-webkit-details-marker {
  display: none;
}

.mg-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  color: var(--mg-content-ink);
  font-size: 20px;
  transform: translateY(-50%);
}

.mg-faq-list details[open] summary::after {
  content: "−";
}

.mg-faq-list details p {
  margin: 0;
  padding: 0 17px 16px;
  color: var(--mg-content-copy);
  font-size: 13px;
  line-height: 1.65;
}

.mg-inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
  align-items: start;
}

.mg-inquiry-layout .mg-form {
  padding: 22px;
}

.mg-inquiry-guide {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--mg-content-line);
  border-radius: 16px;
  background: #fff;
}

.mg-inquiry-guide h2 {
  margin: 0;
  color: var(--mg-content-ink);
  font-size: 19px;
}

.mg-inquiry-guide > p {
  margin: 0;
  color: var(--mg-content-copy);
  font-size: 13px;
  line-height: 1.6;
}

.mg-inquiry-guide ol,
.mg-inquiry-guide ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.mg-inquiry-guide li {
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--mg-content-soft);
  color: #4f625b;
  font-size: 12px;
  line-height: 1.5;
}

.mg-notice-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1ef;
}

.mg-notice-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
  max-width: 460px;
}

.mg-notice-search input,
.mg-notice-search button {
  min-height: 44px;
  border-radius: 11px;
  font: inherit;
}

.mg-notice-search input {
  min-width: 0;
  padding: 0 13px;
  border: 1px solid var(--mg-content-line);
  background: #fbfcfb;
}

.mg-notice-search button {
  border: 0;
  background: var(--mg-content-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.mg-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 18px;
}

.mg-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 44px;
  border: 1px solid var(--mg-content-line);
  border-radius: 10px;
  color: var(--mg-content-copy);
  font-size: 13px;
  font-weight: 800;
}

.mg-pagination a.is-active {
  border-color: var(--mg-content-ink);
  background: var(--mg-content-ink);
  color: #fff;
}

/* Company and policy pages */
.mg-company-statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 14px;
}

.mg-company-message,
.mg-company-contact {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--mg-content-line);
  border-radius: 16px;
  background: #fff;
}

.mg-company-message h2,
.mg-company-contact h2 {
  margin: 0;
  color: var(--mg-content-ink);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.35;
}

.mg-company-message p,
.mg-company-contact p {
  margin: 12px 0 0;
  color: var(--mg-content-copy);
  font-size: 14px;
  line-height: 1.75;
}

.mg-company-contact {
  background: var(--mg-content-ink);
  color: #fff;
}

.mg-company-contact h2 {
  color: #fff;
}

.mg-company-contact p {
  color: rgba(255, 255, 255, 0.72);
}

.mg-company-contact a {
  display: inline-block;
  margin-top: 15px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.mg-content-page .mg-company-metrics {
  gap: 10px;
}

.mg-content-page .mg-company-metrics article {
  padding: 20px;
  border-color: var(--mg-content-line);
  border-radius: 14px;
  box-shadow: none;
}

.mg-content-page .mg-company-metrics strong {
  font-size: 18px;
}

.mg-company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 22px 22px;
}

.mg-company-facts div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1ef;
}

.mg-company-facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mg-company-facts dt {
  color: #7a8883;
  font-size: 12px;
  font-weight: 800;
}

.mg-company-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--mg-content-ink);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mg-content-page .mg-legal-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
}

.mg-content-page .mg-legal-toc {
  top: 92px;
  padding: 12px;
  border-color: var(--mg-content-line);
  border-radius: 14px;
}

.mg-content-page .mg-legal-toc a {
  min-height: 44px;
  border-radius: 10px;
}

.mg-content-page .mg-legal-body {
  padding: clamp(22px, 4vw, 38px);
  border-color: var(--mg-content-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(23, 63, 53, 0.055);
}

.mg-legal-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid #e7edea;
}

.mg-content-page .mg-legal-body .mg-legal-heading h1 {
  margin: 0;
  color: var(--mg-content-ink);
  font-size: clamp(26px, 3vw, 34px);
}

.mg-legal-heading p {
  margin: 8px 0 0;
}

.mg-legal-heading time {
  display: inline-flex;
  margin-top: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--mg-content-soft);
  color: #63736e;
  font-size: 11px;
  font-weight: 800;
}

.mg-content-page .mg-legal-body h2 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.mg-content-page .mg-legal-body h3 {
  margin-top: 22px;
  font-size: 16px;
}

.mg-content-page .mg-legal-body p,
.mg-content-page .mg-legal-body li {
  color: var(--mg-content-copy);
  line-height: 1.75;
}

.mg-legal-section {
  margin-top: 26px;
}

.mg-legal-section + .mg-legal-section {
  margin-top: 34px;
  padding-top: 8px;
  border-top: 1px solid #e7edea;
}

.mg-content-page .mg-legal-section > h2 {
  margin: 0 0 16px;
  color: var(--mg-content-ink);
  font-size: clamp(19px, 2.3vw, 23px);
  letter-spacing: -0.025em;
}

.mg-legal-document {
  color: var(--mg-content-copy);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: keep-all;
}

.mg-legal-empty {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--mg-content-line);
  border-radius: 12px;
  background: var(--mg-content-soft);
}

.mg-content-page .mg-legal-empty h2 {
  margin: 0 0 7px;
  color: var(--mg-content-ink);
  font-size: 18px;
}

.mg-legal-empty p {
  margin: 0;
}

.mg-legal-contact {
  margin-top: 30px;
}

.mg-policy-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid #e6dcc5;
  border-radius: 12px;
  background: #fffaf0;
  color: #6c5a34;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .mg-tour-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-mypage-profile {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(100px, 0.32fr));
  }

  .mg-content-page .mg-cs-grid,
  .mg-inquiry-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 767px) {
  .mg-content-page .mg-main {
    width: calc(100vw - 28px) !important;
    padding-top: 14px;
    padding-bottom: 36px;
  }

  .mg-content-page .mg-subpage,
  .mg-content-page .mg-subpage > *,
  .mg-content-page .mg-auth-layout,
  .mg-content-page .mg-auth-layout > *,
  .mg-content-page .mg-legal-layout,
  .mg-content-page .mg-legal-layout > *,
  .mg-content-page .mg-cs-grid,
  .mg-content-page .mg-cs-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .mg-content-page .mg-sub-hero {
    padding: 20px;
    border-radius: 15px;
  }

  .mg-content-page .mg-sub-hero h1 {
    font-size: 27px;
  }

  .mg-content-page .mg-sub-hero p {
    font-size: 14px;
  }

  .mg-content-section-nav {
    margin-right: -14px;
    margin-left: -14px;
    padding: 6px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .mg-section-title-row {
    align-items: start;
  }

  .mg-section-title-row h2 {
    font-size: 22px;
  }

  .mg-tour-hero__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .mg-tour-hero__facts span {
    min-width: 0;
    padding: 10px;
  }

  .mg-tour-card-grid {
    grid-template-columns: 1fr;
  }

  .mg-tour-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .mg-tour-card__visual {
    min-height: 100%;
    padding: 12px;
  }

  .mg-tour-card__visual span {
    min-height: 25px;
    padding: 0 8px;
    font-size: 10px;
  }

  .mg-tour-card__body {
    gap: 8px;
    padding: 15px;
  }

  .mg-tour-card__body h3 {
    font-size: 16px;
  }

  .mg-tour-card__body > p {
    min-height: 0;
    font-size: 12px;
  }

  .mg-tour-card__meta span:nth-child(n + 3) {
    display: none;
  }

  .mg-tour-card__foot strong {
    font-size: 16px;
  }

  .mg-tour-help {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .mg-tour-help a {
    width: 100%;
    min-height: 48px;
  }

  .mg-content-page .mg-auth-layout,
  .mg-content-page .mg-cs-grid,
  .mg-inquiry-layout,
  .mg-company-statement,
  .mg-content-page .mg-legal-layout {
    grid-template-columns: 1fr;
  }

  .mg-content-page .mg-auth-card {
    padding: 22px 18px;
    border-radius: 15px;
  }

  .mg-content-page .mg-auth-side {
    min-height: 280px;
    padding: 22px;
    border-radius: 15px;
  }

  .mg-content-page .mg-auth-side p {
    font-size: 13px;
  }

  .mg-content-page .mg-auth-side .mg-benefit-list {
    display: none;
  }

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

  .mg-profile-card {
    grid-column: 1 / -1;
  }

  .mg-profile-stat {
    padding: 15px 12px;
  }

  .mg-profile-stat strong {
    font-size: 21px;
  }

  .mg-content-page .mg-dashboard-links,
  .mg-content-page .mg-subnav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mg-content-page--customer .mg-subnav-grid--customer {
    grid-template-columns: 1fr;
  }

  .mg-content-page .mg-dashboard-links a,
  .mg-content-page .mg-subnav-grid a {
    width: auto !important;
    max-width: none !important;
    min-height: 96px;
    padding: 15px;
  }

  .mg-content-page .mg-dashboard-links strong,
  .mg-content-page .mg-subnav-grid strong {
    font-size: 15px;
  }

  .mg-content-page .mg-dashboard-links span,
  .mg-content-page .mg-subnav-grid span {
    font-size: 12px;
  }

  .mg-content-page .mg-panel-head {
    padding: 18px 17px 14px;
  }

  .mg-notice-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    min-height: 62px;
    padding: 10px 17px;
  }

  .mg-notice-row time {
    grid-column: 2;
    margin-top: -4px;
    text-align: left;
  }

  .mg-contact-card {
    margin: 0 17px 17px;
  }

  .mg-inquiry-layout .mg-form {
    padding: 17px;
  }

  .mg-notice-toolbar {
    grid-template-columns: 1fr;
    padding: 15px 17px;
  }

  .mg-notice-search {
    max-width: none;
  }

  .mg-company-message,
  .mg-company-contact {
    padding: 21px 18px;
  }

  .mg-content-page .mg-company-metrics {
    grid-template-columns: 1fr;
  }

  .mg-content-page .mg-company-metrics article {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mg-company-facts {
    grid-template-columns: 1fr;
    padding: 2px 17px 17px;
  }

  .mg-company-facts div:nth-last-child(2) {
    border-bottom: 1px solid #edf1ef;
  }

  .mg-content-page .mg-legal-toc {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .mg-content-page .mg-legal-toc a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
  }

  .mg-content-page .mg-legal-body {
    padding: 22px 18px;
    border-radius: 15px;
  }
}

@media (max-width: 420px) {
  .mg-tour-hero__facts span {
    font-size: 10px;
  }

  .mg-tour-hero__facts strong {
    font-size: 13px;
  }

  .mg-tour-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .mg-tour-card__body {
    padding: 13px;
  }

  .mg-tour-card__body > p {
    display: none;
  }

  .mg-auth-options {
    align-items: flex-start;
  }

  .mg-signup-steps span {
    padding: 0 7px;
    font-size: 10px;
  }

  .mg-profile-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mg-profile-card a {
    width: 100%;
    margin-left: 68px;
  }

  .mg-content-page .mg-dashboard-links,
  .mg-content-page .mg-subnav-grid {
    gap: 8px;
  }

  .mg-content-page .mg-dashboard-links a,
  .mg-content-page .mg-subnav-grid a {
    min-height: 94px;
    padding: 14px 12px;
  }

  .mg-notice-search {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .mg-company-facts div {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

/* Company page: premium brand presentation, scoped away from shared footer/header. */
.mg-content-page--company .mg-main {
  padding-top: clamp(18px, 2.6vw, 30px);
}

.mg-company-page {
  gap: 18px;
}

.mg-company-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: 390px;
  padding: clamp(34px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 100%, rgba(77, 142, 123, 0.5), transparent 34%),
    radial-gradient(circle at 93% 6%, rgba(185, 147, 78, 0.28), transparent 26%),
    linear-gradient(135deg, #102f28, #173f35 58%, #215849);
  color: #fff;
  box-shadow: 0 20px 48px rgba(23, 63, 53, 0.16);
}

.mg-company-hero::before,
.mg-company-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mg-company-hero::before {
  width: 320px;
  height: 320px;
  right: -155px;
  bottom: -175px;
}

.mg-company-hero::after {
  width: 170px;
  height: 170px;
  right: -65px;
  bottom: -95px;
}

.mg-company-hero__copy,
.mg-company-hero__services {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.mg-company-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e7cd98;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.mg-company-hero__copy h1 {
  margin: 20px 0 14px;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.mg-company-hero__copy h1 em {
  color: #ead09a;
  font-style: normal;
}

.mg-company-hero__copy > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  word-break: keep-all;
}

.mg-company-hero__actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.mg-company-hero__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mg-company-hero__actions a.is-primary {
  border-color: #fff;
  background: #fff;
  color: #173f35;
  box-shadow: 0 10px 22px rgba(8, 31, 24, 0.18);
}

.mg-company-hero__services {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px rgba(7, 29, 23, 0.14);
  backdrop-filter: blur(12px);
}

.mg-company-hero__services-head {
  display: grid;
  gap: 5px;
  padding: 10px 12px 14px;
}

.mg-company-hero__services-head span {
  color: #dfc184;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mg-company-hero__services-head strong {
  color: #fff;
  font-size: 15px;
}

.mg-company-hero__services > a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  transition: background-color 160ms ease, transform 160ms ease;
}

.mg-company-hero__services > a:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(2px);
}

.mg-company-hero__services > a b {
  color: #dfc184;
  font-size: 11px;
}

.mg-company-hero__services > a div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mg-company-hero__services > a div strong {
  color: #fff;
  font-size: 14px;
}

.mg-company-hero__services > a div span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-company-hero__services > a em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  font-style: normal;
}

.mg-company-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 63, 53, 0.055);
}

.mg-company-intro__heading h2 {
  margin: 8px 0 12px;
  color: #173f35;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.mg-company-intro__heading p {
  margin: 0;
  color: #5c6e67;
  font-size: 14px;
  line-height: 1.75;
  word-break: keep-all;
}

.mg-company-values {
  display: grid;
  gap: 8px;
}

.mg-company-values article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #e1e9e5;
  border-radius: 13px;
  background: #f7faf8;
}

.mg-company-values article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #173f35;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mg-company-values article div {
  min-width: 0;
}

.mg-company-values strong {
  color: #173f35;
  font-size: 15px;
}

.mg-company-values p {
  margin: 4px 0 0;
  color: #687a73;
  font-size: 12px;
  line-height: 1.5;
}

.mg-company-services {
  padding-top: 4px;
}

.mg-company-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 14px;
}

.mg-company-section-head > div {
  display: grid;
  gap: 5px;
}

.mg-company-section-head > div > span {
  color: #a57a31;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mg-company-section-head h2 {
  margin: 0;
  color: #173f35;
  font-size: clamp(22px, 2.8vw, 29px);
  letter-spacing: -0.035em;
}

.mg-company-section-head > p {
  margin: 0;
  color: #71817b;
  font-size: 12px;
}

.mg-company-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mg-company-service-grid > a {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dfe8e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 63, 53, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mg-company-service-grid > a::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #173f35, #5e9a88);
  content: "";
}

.mg-company-service-grid > a:nth-child(2)::before {
  background: linear-gradient(90deg, #173f35, #d16d8d);
}

.mg-company-service-grid > a:nth-child(3)::before {
  background: linear-gradient(90deg, #173f35, #b9934e);
}

.mg-company-service-grid > a:hover {
  border-color: #b9cec5;
  box-shadow: 0 18px 38px rgba(23, 63, 53, 0.1);
  transform: translateY(-3px);
}

.mg-company-service-grid > a > span {
  color: #9a7a3d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mg-company-service-grid > a > strong {
  align-self: end;
  margin-top: 24px;
  color: #173f35;
  font-size: 22px;
}

.mg-company-service-grid > a > p {
  margin: 7px 0 20px;
  color: #63756e;
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}

.mg-company-service-grid > a > em {
  align-self: end;
  color: #173f35;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.mg-company-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: stretch;
}

.mg-company-info-card,
.mg-company-contact-card {
  min-width: 0;
  border-radius: 16px;
}

.mg-company-info-card {
  padding: 24px;
  border: 1px solid #dfe8e3;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 63, 53, 0.045);
}

.mg-company-info-card .mg-company-section-head {
  padding-bottom: 10px;
}

.mg-content-page--company .mg-company-info-card .mg-company-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border-top: 1px solid #e7edea;
}

.mg-content-page--company .mg-company-info-card .mg-company-facts div {
  min-width: 0;
  padding: 15px 0;
}

.mg-company-contact-card {
  position: relative;
  display: grid;
  align-content: start;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(185, 147, 78, 0.28), transparent 180px),
    #173f35;
  color: #fff;
  box-shadow: 0 15px 34px rgba(23, 63, 53, 0.14);
}

.mg-company-contact-card > span {
  color: #dfc184;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.mg-company-contact-card h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.mg-company-contact-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.mg-company-contact-card__phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 16px;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.mg-company-contact-card dl {
  display: grid;
  gap: 7px;
  margin: 13px 0 0;
}

.mg-company-contact-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.mg-company-contact-card dt {
  color: rgba(255, 255, 255, 0.58);
}

.mg-company-contact-card dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.mg-company-contact-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.mg-company-contact-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mg-company-contact-card__actions a:first-child {
  border-color: #fff;
  background: #fff;
  color: #173f35;
}

@media (max-width: 1024px) {
  .mg-company-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 24px;
    padding: 36px;
  }

  .mg-company-info-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 767px) {
  .mg-company-page,
  .mg-company-page > * {
    width: 100%;
    min-width: 0;
  }

  .mg-company-page {
    gap: 14px;
  }

  .mg-company-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 25px 20px 20px;
    border-radius: 15px;
  }

  .mg-company-hero__copy h1 {
    margin-top: 16px;
    font-size: 36px;
  }

  .mg-company-hero__copy > p {
    font-size: 13px;
  }

  .mg-company-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }

  .mg-company-hero__actions a {
    min-width: 0;
    padding: 0 10px;
  }

  .mg-company-intro,
  .mg-company-info-layout {
    grid-template-columns: 1fr;
  }

  .mg-company-intro {
    gap: 22px;
    padding: 24px 19px;
  }

  .mg-company-values article {
    min-height: 70px;
  }

  .mg-company-section-head {
    align-items: start;
  }

  .mg-company-section-head > p {
    display: none;
  }

  .mg-company-service-grid {
    grid-template-columns: 1fr;
  }

  .mg-company-service-grid > a {
    min-height: 0;
    padding: 21px 19px;
  }

  .mg-company-service-grid > a > strong {
    margin-top: 17px;
    font-size: 20px;
  }

  .mg-company-service-grid > a > p {
    margin-bottom: 14px;
  }

  .mg-company-info-card,
  .mg-company-contact-card {
    padding: 21px 18px;
    border-radius: 15px;
  }

  .mg-content-page--company .mg-company-info-card .mg-company-facts {
    grid-template-columns: 1fr;
  }

  .mg-content-page--company .mg-company-info-card .mg-company-facts div:nth-last-child(2) {
    border-bottom: 1px solid #edf1ef;
  }
}

@media (max-width: 420px) {
  .mg-company-hero__copy h1 {
    font-size: 33px;
  }

  .mg-company-hero__actions,
  .mg-company-contact-card__actions {
    grid-template-columns: 1fr;
  }

  .mg-company-hero__services > a {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding-inline: 9px;
  }

  .mg-company-intro__heading h2 {
    font-size: 24px;
  }

  .mg-company-contact-card__phone {
    font-size: 25px;
  }
}
