/* Only organization box corners and the first introduction-to-content divider.
   Shared by Korean and English; desktop and mobile keep their own spacing. */
body.a2-site[data-page="organization"] #content .a2-org-chart .a2-org-node > rect {
  rx: 0;
  ry: 0;
}

body.a2-site[data-page] #content .a2-main {
  --a2-intro-rule-gap: 72px;
}
@media (max-width: 720px) {
  body.a2-site[data-page] #content .a2-main {
    --a2-intro-rule-gap: 40px;
  }
}

/* Pages whose introduction and body are separate sections. */
body.a2-site[data-page] #content .a2-main > section.a2-lead:first-child {
  padding-bottom: var(--a2-intro-rule-gap) !important;
}
body.a2-site[data-page] #content .a2-main > section.a2-lead:first-child + section {
  padding-top: 0 !important;
}
body.a2-site[data-page] #content .a2-main > section.a2-lead:first-child + section > .sub-frame {
  border-top: 1px solid var(--a2-ink) !important;
  padding-top: var(--a2-intro-rule-gap) !important;
}

/* Pages with a heading and content inside the same frame. */
body.a2-site[data-page] #content .a2-main > section:first-child > .sub-frame > .a2-section-head,
body.a2-site[data-page="history"] #content .a2-main .a2-history-directory > div > .a2-section-head,
body.a2-site[data-page="philosophy"] #content .a2-main .a2-philosophy-intro {
  padding-bottom: var(--a2-intro-rule-gap) !important;
  border-bottom: 1px solid var(--a2-ink) !important;
  margin-bottom: var(--a2-intro-rule-gap) !important;
}
body.a2-site[data-page] #content .a2-main > section:first-child > .sub-frame > .a2-section-head + *,
body.a2-site[data-page="history"] #content .a2-main .a2-history-directory > div > .a2-section-head + *,
body.a2-site[data-page="philosophy"] #content .a2-main .a2-philosophy-intro + * {
  margin-top: 0 !important;
}

/* Existing archive/history rules are the same introduction divider, not a
   second rule. Preserve all table/card borders and the toolbar's lower rule. */
body.a2-site[data-page] #content .a2-main > section:first-child > .sub-frame > .a2-section-head + .legacy-inline-toolbar,
body.a2-site[data-page] #content .a2-main > section:first-child > .sub-frame > .a2-section-head + .a2-archive,
body.a2-site[data-page="history"] #content .a2-main .a2-history-directory > div > .a2-section-head + .legacy-history {
  border-top: 0 !important;
}
