.home-page {
  --ink: #1d332b;
  --muted: #52665d;
  --paper: #f6f5ef;
  --panel: #fffefa;
  --line: #e1e5dc;
  --green: #1b5943;
  margin: 0;
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

.home-page .site-wrap {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 3.2vw, 62px);
  padding-right: clamp(24px, 3.2vw, 62px);
}

.home-page a:focus-visible,
.home-page button:focus-visible {
  outline: 2px solid #287b5c;
  outline-offset: 3px;
}

.home-page .site-header {
  flex: none;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 68px;
  padding: 0 20px 0 15px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
  text-shadow: none;
  white-space: nowrap;
}

.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus {
  color: var(--green);
}

.brand-stone {
  position: relative;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 11px;
  background: #163e30;
}

.brand-stone::before,
.brand-stone::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
}

.brand-stone::before {
  left: 7px;
  top: 12px;
  background: #c9a976;
}

.brand-stone::after {
  right: 6px;
  top: 7px;
  border: 1px solid #163e30;
  background: #fff8e8;
}

.site-header .navbar-nav > li > a {
  padding: 24px 10px;
  color: var(--muted);
  text-shadow: none;
}

.site-header .navbar-nav > li > a:hover,
.site-header .navbar-nav > li > a:focus,
.site-header .navbar-nav > .open > a,
.site-header .navbar-nav > .open > a:hover,
.site-header .navbar-nav > .open > a:focus {
  background: #e9f0e8;
  color: var(--green);
  box-shadow: none;
}

.site-header.navbar-default .navbar-nav > .dropdown > a .caret {
  border-top-color: currentColor;
  border-bottom-color: currentColor;
}

.site-header .navbar-nav > li > .header-download-link {
  color: var(--green);
  font-weight: 700;
}

.mobile-download-link {
  display: none;
}

.site-header .navbar-nav > li > .header-login {
  margin: 15px 0 15px 8px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.site-header #loginuserinfo {
  display: block;
  max-width: 13ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(24, 48, 36, .10);
}

.site-header .dropdown-menu > li > a:hover,
.site-header .dropdown-menu > li > a:focus {
  background: #e9f0e8;
  color: var(--green);
}

.site-header .navbar-toggle {
  border-color: var(--line);
}

.site-header .navbar-toggle:hover,
.site-header .navbar-toggle:focus {
  background: #e9f0e8;
}

.site-header .navbar-toggle .icon-bar {
  background: var(--green);
}

.site-header .navbar-collapse {
  border-color: var(--line);
}

.site-main {
  padding-bottom: 36px;
}

.site-content {
  padding-top: 22px;
}

.record-entry {
  display: grid;
  grid-template-columns: 44% 56%;
  grid-template-rows: minmax(0, 1fr);
  height: clamp(330px, 29vw, 465px);
  overflow: hidden;
  background: #153d30;
  color: #fffaf0;
  box-shadow: 0 12px 28px rgba(32, 47, 39, .12);
}

.record-entry:hover,
.record-entry:focus {
  color: #fffaf0;
  text-decoration: none;
}

.home-page .record-entry:focus-visible {
  outline-offset: -4px;
  outline-color: #f8e8cb;
}

.record-entry-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 36px clamp(28px, 6vw, 140px);
  background: linear-gradient(135deg, #225442, #12382c 86%);
}

.record-entry h1 {
  margin: 0 0 15px;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(35px, 4.4vw, 63px);
  font-weight: 750;
  letter-spacing: .018em;
  line-height: 1.17;
}

.record-entry p {
  margin: 0 0 25px;
  color: #dfebdf;
  font-size: 15px;
  line-height: 1.8;
}

.record-entry-action {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f8e8cb;
  color: #243e31;
  font-size: 15px;
  font-weight: 700;
}

.record-entry-action > span {
  font-size: 19px;
  line-height: 1;
}

.record-entry:hover .record-entry-action,
.record-entry:focus .record-entry-action {
  background: #fff3db;
}

.record-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 58% 50%;
}

.site-explore {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 355px);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.app-embed-row {
  display: grid;
  gap: 16px;
}

.app-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.app-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 11px;
  color: var(--ink);
}

.app-heading:hover,
.app-heading:focus {
  background: #f0f4ec;
  color: var(--green);
  text-decoration: none;
}

.app-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: #e4eee5;
  color: #18563f;
  font-size: 21px;
  font-weight: 700;
}

.app-mark.chess-mark {
  background: #f5ead8;
  color: #6c4426;
}

.app-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.app-copy h2,
.download-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.app-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.app-open {
  flex: none;
  padding: 7px 8px;
  border-radius: 6px;
  background: #e7f0e8;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.app-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #eef0e8;
}

.app-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.app-frame[data-phone-preview] .app-embed {
  position: absolute;
  inset: 0 auto auto 0;
  width: 390px;
  height: 693.333px;
  transform: scale(var(--preview-scale));
  transform-origin: top left;
}

.download-panel {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  scroll-margin-top: 16px;
}

.download-panel h2 {
  margin-bottom: 10px;
}

.download-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 11px;
}

.download-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 76px;
  padding: 11px 14px;
  border: 1px solid #d9e4d9;
  border-radius: 8px;
  background: #edf3eb;
  color: #20523f;
  line-height: 1.4;
}

.download-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.download-copy strong {
  font-size: 17px;
}

.download-copy small {
  color: var(--muted);
  font-size: 12px;
}

.download-arrow {
  flex: none;
  font-size: 20px;
}

.download-links a:hover,
.download-links a:focus {
  background: #dfece0;
  color: #143e2e;
  text-decoration: none;
}

.site-guide {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  scroll-margin-top: 16px;
}

.guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.guide-label {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.guide-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(22px, 2.7vw, 33px);
  font-weight: 750;
  line-height: 1.32;
}

.guide-header > a {
  flex: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.guide-intro,
.guide-body {
  max-width: 82ch;
  color: #354b41;
  font-size: 15px;
  line-height: 1.8;
}

.guide-intro p,
.guide-body p {
  margin: 0 0 10px;
}

.guide-note {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid #9a764a;
  border-radius: 0 7px 7px 0;
  background: #f6f0e2;
}

.guide-note p:last-child {
  margin-bottom: 0;
}

.guide-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
  margin: 17px 0 14px;
  border-radius: 11px;
  background: #eef1e8;
}

.guide-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 6px;
  border-radius: 7px;
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.guide-tabs a:hover,
.guide-tabs a:focus {
  background: #e9f1e7;
  text-decoration: none;
}

.guide-tabs a[aria-selected="true"] {
  background: #18533f;
  color: #fffaf0;
}

.guide-panel {
  scroll-margin-top: 18px;
  padding-top: 8px;
}

.guide-panel-title {
  margin: 0 0 12px;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 750;
}

.guide-body h4 {
  margin: 14px 0 8px;
  color: var(--green);
  font: inherit;
  font-weight: 750;
}

.guide-body ul {
  padding-left: 1.4em;
}

.guide-body figure {
  max-width: 230px;
  margin: 16px 0;
}

.guide-body figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.guide-body figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guide-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
  align-items: start;
  gap: 20px;
  margin: 14px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f9f3;
}

.guide-illustrated h4,
.guide-illustrated figure {
  margin-top: 0;
}

.guide-illustrated figure {
  margin-bottom: 0;
}

.site-footer {
  flex: none;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #eeefe7;
  color: #52645a;
  font-size: 12px;
}

.footer-content,
.filing-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-content {
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-footer a {
  color: inherit;
}

@media (min-width: 768px) and (max-width: 992px) {
  .site-header .navbar-brand {
    gap: 7px;
    padding-right: 8px;
    font-size: 18px;
  }

  .site-header .navbar-nav > li > a {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }

  .site-header #loginuserinfo {
    max-width: 5ch;
  }

  .record-entry-text {
    padding: 32px 26px;
  }
}

@media (min-width: 1280px) {
  .site-explore {
    grid-template-columns: minmax(0, 1fr) minmax(600px, 47%);
  }

  .app-embed-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) {
  .site-explore {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-embed-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .home-page .site-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }

  .site-header .navbar-brand {
    height: 60px;
    padding-right: 4px;
    font-size: 19px;
  }

  .site-header .navbar-toggle {
    margin-top: 13px;
    margin-bottom: 12px;
    margin-left: 9px;
  }

  .mobile-download-link {
    display: block;
    float: right;
    margin-top: 19px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
  }

  .site-header .desktop-download-item {
    display: none;
  }

  .site-header .navbar-nav > li > a {
    padding: 11px 15px;
  }

  .site-header .navbar-nav > li > .header-login {
    margin: 0 0 0 15px;
    display: inline-block;
  }

  .site-main {
    padding-bottom: 23px;
  }

  .site-content {
    padding-top: 14px;
  }

  .record-entry {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
  }

  .record-entry-text {
    padding: 23px 20px;
  }

  .record-entry h1 {
    margin-bottom: 8px;
    font-size: 37px;
  }

  .record-entry p {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .record-entry-action {
    padding: 9px 13px;
    font-size: 14px;
  }

  .record-hero-image {
    height: clamp(128px, 35vw, 206px);
  }

  .app-heading {
    padding: 10px 11px;
  }

  .download-panel {
    padding: 13px;
  }

  .download-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-links a:last-child {
    grid-column: 1 / -1;
  }

  .site-guide {
    padding: 15px 13px;
  }

  .guide-header {
    flex-direction: column;
    gap: 8px;
  }

  .guide-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .guide-tabs a {
    flex: none;
    min-width: 72px;
    white-space: nowrap;
  }

  .guide-illustrated {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 570px) {
  .app-embed-row {
    grid-template-columns: minmax(0, 1fr);
    max-width: 380px;
  }
}
