#root .gr-home-edit-page {
  --gr-home-edit-accent: #d80014;
  --gr-home-edit-heading: #222;
  --gr-home-edit-muted: #757575;
  --gr-home-edit-border: #f1f1f1;
  --gr-home-edit-space: clamp(12px, 4.25vw, 18px);
  position: relative;
  min-height: 100dvh;
  background: #fff;
  color: var(--gr-home-edit-heading);
}

.gr-home-edit-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  justify-items: center;
  min-height: calc(44px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--gr-home-edit-border);
  background: #fff;
}

.gr-home-edit-header h1 {
  min-width: 0;
  font-size: 1.125rem;
  font-weight: 550;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.gr-home-edit-header > button {
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  color: inherit;
}

.gr-home-edit-back svg { transform: scaleX(-1); }

.gr-home-edit-share-notice {
  position: absolute;
  inset: 100% var(--gr-home-edit-space) auto auto;
  padding: 6px 10px;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
}

.gr-home-edit-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-width: 0;
  min-height: 44px;
  padding-inline: 5px;
  border-bottom: 1px solid var(--gr-home-edit-border);
}

.gr-home-edit-tabs > a {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  padding: 5px clamp(9px, 2.9vw, 14px) 8px;
  color: var(--gr-home-edit-muted);
  font-size: 0.875rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.gr-home-edit-tabs > a[aria-current] {
  color: var(--gr-home-edit-heading);
  font-weight: 600;
}

.gr-home-edit-tabs > a[aria-current]::after {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--gr-home-edit-accent);
  content: "";
  transform: translateX(-50%);
}

.gr-home-edit-news-tabs > a {
  flex: 1 1 0;
  justify-items: center;
  padding-inline: 6px;
  text-align: center;
}

.gr-home-edit-about-tabs { justify-content: space-around; }
.gr-home-edit-about-tabs > a { font-size: clamp(0.8125rem, 3.9vw, 1rem); }

.gr-home-edit-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px var(--gr-home-edit-space);
  padding-inline: 12px 6px;
  border-radius: 999px;
  background: #f6f7f8;
  color: var(--gr-home-edit-muted);
}

.gr-home-edit-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  background: transparent;
  color: var(--gr-home-edit-heading);
  font-size: 1rem;
}

.gr-home-edit-search button {
  min-height: 44px;
  padding-inline: 8px;
  color: var(--gr-home-edit-accent);
  white-space: nowrap;
  font-size: 0.875rem;
}

.gr-home-edit-news-row {
  display: flex;
  min-height: 102px;
  gap: 10px;
  justify-content: space-between;
  padding: 14px var(--gr-home-edit-space);
  border-bottom: 1px solid #f5f5f5;
  color: inherit;
  text-decoration: none;
}

.gr-home-edit-news-text {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.gr-home-edit-news-text h2 {
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gr-home-edit-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 14px;
  color: var(--gr-home-edit-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.gr-home-edit-news-meta time { white-space: nowrap; }

.gr-home-edit-thumb {
  display: grid;
  width: clamp(62px, 19.75vw, 85px);
  flex: none;
  align-self: flex-start;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #f3f3f3;
}

.gr-home-edit-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gr-home-edit-thumb > img[width] {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  opacity: .45;
}

.gr-home-edit-article {
  padding: 16px var(--gr-home-edit-space) 24px;
  overflow-wrap: anywhere;
}

.gr-home-edit-article > h2 {
  color: var(--gr-home-edit-heading);
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.4;
}

.gr-home-edit-byline,
.gr-home-edit-post-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 12px;
  color: var(--gr-home-edit-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gr-home-edit-byline time,
.gr-home-edit-post-date time { white-space: nowrap; }

.gr-home-edit-copy {
  color: #333;
  font-size: 1.0625rem;
  line-height: 1.765;
  overflow-wrap: anywhere;
}

.gr-home-edit-copy > p { white-space: pre-line; }
.gr-home-edit-copy > p + p { margin-top: 11px; }

.gr-home-edit-figure { margin: 0 0 14px; }

.gr-home-edit-figure > img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 4px;
}

.gr-home-edit-figure figcaption {
  padding-top: 4px;
  color: var(--gr-home-edit-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.gr-home-edit-tag {
  display: inline-block;
  margin-top: 12px;
  color: #246dcc;
  font-size: 0.75rem;
}

.gr-home-edit-source {
  display: block;
  width: fit-content;
  min-height: 44px;
  padding: 8px 0;
  color: #246dcc;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gr-home-edit-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 24px;
  color: var(--gr-home-edit-muted);
  font-size: 0.875rem;
  text-align: center;
}

.gr-home-edit-about,
.gr-home-edit-contact {
  padding: 10px var(--gr-home-edit-space) 24px;
}

.gr-home-edit-about-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 14px;
}

.gr-home-edit-about-identity img { border-radius: 50%; }
.gr-home-edit-about-identity h2,
.gr-home-edit-contact h2 { font-size: 1.1875rem; font-weight: 650; }

.gr-home-edit-contact address {
  margin: 8px 0 14px;
  font-style: normal;
}

.gr-home-edit-contact .gr-home-edit-address-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #f0dddb;
  border-radius: 10px;
  background: #fff7f5;
  color: inherit;
  font: inherit;
  text-align: start;
}

.gr-home-edit-address-trigger span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gr-home-edit-address-trigger svg {
  flex: none;
  color: var(--gr-home-edit-accent);
}

.gr-home-edit-address-trigger:active {
  background: #fcebe7;
}

.gr-home-edit-map-sheet {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  width: min(100%, var(--gr-pro-shell-width, 430px));
  max-width: none;
  max-height: 85dvh;
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #f1f2f4;
  color: var(--gr-home-edit-heading);
  box-shadow: 0 -8px 32px rgb(20 25 35 / 12%);
}

.gr-home-edit-map-sheet::backdrop {
  background: rgb(21 24 29 / 43%);
}

.gr-home-edit-map-panel {
  padding: 12px 15px calc(18px + env(safe-area-inset-bottom, 0px));
}

.gr-home-edit-map-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gr-home-edit-contact .gr-home-edit-map-header h2 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.gr-home-edit-map-dismiss {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #e5e8ed;
  border-radius: 50%;
  background: #fdfdfe;
  color: #384255;
}

.gr-home-edit-map-options {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5e8ed;
  border-radius: 15px;
  background: #fdfdfe;
  list-style: none;
}

.gr-home-edit-map-options li {
  position: relative;
}

.gr-home-edit-map-options li + li::before {
  position: absolute;
  inset: 0 0 auto 60px;
  height: 1px;
  background: #eceef2;
  content: "";
  pointer-events: none;
}

.gr-home-edit-map-options a {
  display: grid;
  min-height: 55px;
  grid-template-columns: 35px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gr-home-edit-map-options a > svg {
  color: #657080;
}

.gr-home-edit-map-icon {
  display: block;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  object-fit: contain;
}

@media (hover: hover) {
  .gr-home-edit-contact .gr-home-edit-address-trigger:hover {
    background: #fcefeb;
  }

  .gr-home-edit-map-options a:hover,
  .gr-home-edit-map-dismiss:hover {
    background: #edf1f5;
  }
}

.gr-home-edit-map-options a:active,
.gr-home-edit-map-dismiss:active {
  background: #e3e9f0;
}

#root .gr-home-edit-contact .gr-home-edit-address-trigger:focus-visible,
#root .gr-home-edit-map-options a:focus-visible,
#root .gr-home-edit-map-dismiss:focus-visible {
  outline: 2px solid #a2000e;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .gr-home-edit-map-sheet[open] {
    animation: gr-contact-map-enter 160ms ease-out;
  }
}

@keyframes gr-contact-map-enter {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.gr-home-edit-primary {
  display: inline-grid;
  min-width: 116px;
  min-height: 44px;
  align-items: center;
  justify-items: center;
  margin-top: 14px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--gr-home-edit-accent);
  color: #fff;
  font-size: 0.9375rem;
  text-decoration: none;
}

.gr-home-edit-chart { display: block; }
.gr-home-edit-chart img { display: block; width: 100%; height: auto; }

#root .gr-home-edit-leaders {
  background: #f7f8fa;
}

.gr-home-edit-leaders .gr-home-edit-header {
  border: 0;
  background: #bc000c var(--gr-home-edit-leader-header) center 62% / cover no-repeat;
  color: #fff;
}

.gr-home-edit-leader-list { padding: 20px var(--gr-home-edit-space) 24px; }

.gr-home-edit-leader-list li + li { margin-top: 12px; }

.gr-home-edit-leader-list a {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 9px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.gr-home-edit-leader-list img,
.gr-home-edit-leader-avatar {
  display: grid;
  width: 55px;
  height: 55px;
  flex: none;
  place-items: center;
  border-radius: 4px;
  background: #faedef;
  color: #8e1c29;
  font-size: 1.25rem;
  object-fit: cover;
}

.gr-home-edit-leader-text {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 4px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.gr-home-edit-leader-text strong { font-size: 1.0625rem; font-weight: 650; }

.gr-home-edit-leader-detail {
  flex: none;
  padding: 4px 10px;
  border: 1px solid #f2cfd2;
  border-radius: 999px;
  color: var(--gr-home-edit-accent);
  font-size: 0.8125rem;
}

.gr-home-edit-leader-page .gr-home-edit-header { min-height: 70px; }

.gr-home-edit-leader-profile {
  padding: 0 var(--gr-home-edit-space) 30px;
}

.gr-home-edit-leader-profile > header,
.gr-home-edit-leader-panel {
  border-radius: 8px;
  background: linear-gradient(180deg, #fff0f1, #fff 25px);
}

.gr-home-edit-leader-profile > header {
  display: flex;
  min-height: 117px;
  gap: 16px;
  align-items: flex-start;
  margin: 20px 0 12px;
  padding: 0 12px 12px;
}

.gr-home-edit-leader-profile > header :is(img, .gr-home-edit-leader-avatar) {
  display: grid;
  width: 86px;
  height: 86px;
  flex: none;
  place-items: center;
  margin-top: -14px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #faedef;
  color: #8e1c29;
  font-size: 1.8125rem;
  object-fit: cover;
}

.gr-home-edit-leader-profile > header div { min-width: 0; margin-top: 18px; overflow-wrap: anywhere; }
.gr-home-edit-leader-profile > header h2 { font-size: 1.25rem; font-weight: 650; }
.gr-home-edit-leader-profile > header p { margin-top: 6px; font-size: 0.875rem; }
.gr-home-edit-leader-panel { margin: 12px 0; padding: 18px 16px; overflow-wrap: anywhere; }
.gr-home-edit-leader-panel h3 { margin-bottom: 5px; font-size: 1.125rem; font-weight: 550; }
.gr-home-edit-leader-panel p { color: #595959; font-size: 1rem; line-height: 1.8; white-space: pre-line; }

.gr-home-edit-post {
  display: flex;
  flex-direction: column;
}

.gr-home-edit-post-article { padding: 0 var(--gr-home-edit-space) 18px; }

.gr-home-edit-post-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  color: #333;
  font-size: 0.9375rem;
  font-weight: 550;
}

.gr-home-edit-post-author img {
  width: 41px;
  height: 41px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
}

.gr-home-edit-post-author span { overflow-wrap: anywhere; }
.gr-home-edit-post-article .gr-home-edit-copy h2 { font-size: 1.0625rem; font-weight: 650; margin: 0 0 7px; }
.gr-home-edit-post-article .gr-home-edit-figure { margin-top: 16px; }
.gr-home-edit-post-date { margin: 10px 0 0; justify-content: space-between; font-size: 0.8125rem; }
.gr-home-edit-post-date time { margin-inline-start: auto; }

.gr-home-edit-comments {
  flex: 1;
  padding: 12px var(--gr-home-edit-space);
  border-top: 6px solid #f7f8fa;
}

.gr-home-edit-comments h2 { font-size: 0.9375rem; font-weight: 650; }
.gr-home-edit-comments h2 span { margin-inline-start: 4px; color: var(--gr-home-edit-muted); font-size: 0.8125rem; font-weight: 400; }
.gr-home-edit-comments li { padding: 9px 0; border-bottom: 1px solid var(--gr-home-edit-border); overflow-wrap: anywhere; }
.gr-home-edit-comment-name,
.gr-home-edit-comment-empty { color: var(--gr-home-edit-muted); font-size: 0.8125rem; }
.gr-home-edit-comment-empty { padding: 22px 8px; text-align: center; }
.gr-home-edit-comments li p { margin: 3px 0; font-size: 0.875rem; }

.gr-home-edit-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gr-home-edit-muted);
  font-size: 0.75rem;
}

.gr-home-edit-comment-meta button { min-height: 44px; color: var(--gr-home-edit-accent); }

.gr-home-edit-post-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px var(--gr-home-edit-space) max(4px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--gr-home-edit-border);
  background: #fff;
}

.gr-home-edit-post-actions input {
  flex: 1 1 8rem;
  min-width: 0;
  min-height: 44px;
  padding-inline: 11px;
  border-radius: 999px;
  background: #f7f8fa;
  font-size: 1rem;
}

.gr-home-edit-post-actions button {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
}

.gr-home-edit-post-actions button[aria-pressed="true"],
.gr-home-edit-post-actions .gr-home-edit-send {
  color: var(--gr-home-edit-accent);
}

.gr-home-edit-page :is(button, a, input):focus-visible {
  outline: 2px solid #a81f29;
  outline-offset: -2px;
}

@media (max-height: 400px) {
  .gr-home-edit-header,
  .gr-home-edit-post-actions { position: static; }
}
