/* =========================================================
   site.css — Site chrome (footer, pagetop, back bar, inner pages)
   Prefer migrating rules here; remove from main.css / style.css.
   ========================================================= */

/* ---------- Inner page: breadcrumb / content shell ---------- */
#main > header.major {
  margin: 0 0 1.35em;
  text-align: left;
  font-size: var(--fs-meta);
}

#main > header.major a {
  border-bottom: none;
  color: #000;
}

.major .page:before {
  content: "\03e";
  margin: 0 0.6em;
}

span.page a {
  color: #000;
}

/* Text size control — mobile only, in #header .header-bar */
#header .header-bar .tool-textsize {
  display: none !important;
}

@media screen and (max-width: 980px) {
  #header .header-bar .tool-textsize {
    --textsize-blue: #3ea9f5;
    --textsize-blue-deep: #3ea9f5;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
    box-sizing: border-box;
    width: 3.25rem !important;
    min-width: 3.25rem !important;
    height: 1.75rem !important;
    min-height: 1.75rem !important;
    margin: 0 0.4rem 0 0 !important;
    padding: 0.125rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e8f5fe !important;
    color: var(--textsize-blue-deep) !important;
    font-size: 0 !important;
    font-weight: 400 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 0 0 1px #b7e0fb !important;
    transition: none !important;
  }

  #header .header-bar .tool-textsize:hover,
  #header .header-bar .tool-textsize:focus-visible {
    background: #e8f5fe !important;
    opacity: 1 !important;
    outline: none;
  }

  #header .header-bar .tool-textsize:focus-visible {
    box-shadow: inset 0 0 0 1px #b7e0fb, 0 0 0 2px rgba(62, 169, 245, 0.35) !important;
  }

  #header .header-bar .tool-textsize[aria-pressed="true"] {
    background: #e8f5fe !important;
  }

  #header .header-bar .tool-textsize__track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  #header .header-bar .tool-textsize__knob {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 50%;
    height: 100%;
    border-radius: 50%;
    background: var(--textsize-blue);
    box-shadow: 0 1px 4px rgba(62, 169, 245, 0.42);
    pointer-events: none;
    transition: transform 0.2s ease;
  }

  #header .header-bar .tool-textsize[aria-pressed="true"] .tool-textsize__knob {
    transform: translateX(100%);
  }

  #header .header-bar .tool-textsize__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--textsize-blue-deep);
  }

  #header .header-bar .tool-textsize__icon svg {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
  }

  #header .header-bar .tool-textsize:not([aria-pressed="true"]) .tool-textsize__sm,
  #header .header-bar .tool-textsize[aria-pressed="true"] .tool-textsize__lg {
    color: #fff;
  }
}

#content {
  margin-bottom: 1em;
}

/* Valid list links: <li><a>…</a></li> (archives / news lists) */
.wpnews .news-list_item > a {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   News archive — notebook list (aligned columns, soft chips)
   ========================================================= */

/* News archive: white page; balanced bottom air before Back */
body.blog .wrapper.style2 #main,
body.category .wrapper.style2 #main {
  padding-bottom: 1.25rem;
}

body.blog #content.wpnews,
body.category #content.wpnews,
.wpnews.wpnews--news {
  margin-bottom: 0;
}

.wpnews .news-main-head {
  margin: 0 0 0.85em;
  padding: 0 0 0.75em;
  border-bottom: 1px solid #e4e9f0;
}

.wpnews .news-main-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--fs-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #111;
}

/* Homepage-matching stream head (News / お知らせ) */
.wpnews .news-main-head--stream {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.wpnews .news-eyebrow {
  margin: 0 0 0.55rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a7380;
  line-height: 1.2;
}

.wpnews .news-main-head--stream h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.wpnews .news-list {
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}

.wpnews .news-list--stream {
  margin-bottom: 0;
  border-top: 1px solid #eceff3;
}

.wpnews .news-list_item {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #eceff3;
  transition: background 0.2s ease;
}

.wpnews .news-list_item:last-child {
  border-bottom: 0;
}

.wpnews .news-list--stream .news-list_item:last-child {
  border-bottom: 1px solid #eceff3;
}

.wpnews .news-list_item:hover {
  opacity: 1;
  background: #f7f9fc;
}

.wpnews .news-list_item > a {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55em 0.75em;
  overflow: visible;
  margin: 0;
  padding: 0.95em 0.15em;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wpnews .news-list--stream .news-list_item > a {
  grid-template-columns: 6.4em minmax(0, 1fr) auto;
}

.wpnews .news-list_item > a:hover {
  opacity: 1;
  color: #000;
}

.wpnews .news-list_date {
  float: none;
  margin: 0;
  font-size: var(--fs-meta);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #6a7380;
}

.wpnews .news-list_label {
  float: none;
  margin: 0;
  justify-self: start;
}

.wpnews .news-list_item .label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 5.2em;
  min-height: 0;
  margin: 0;
  /* JP: ink sits high — slightly more top padding */
  padding: 0.48em 0.65em 0.34em;
  border: 0;
  background: rgba(18, 18, 20, 0.08);
  color: #121214;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  position: static;
  top: auto;
  vertical-align: middle;
}

.wpnews .news-list_item .label.news,
.wpnews .news-list_item .label.new-item {
  border: 0;
  background: rgba(18, 18, 20, 0.08);
  color: #121214;
}

.wpnews .news-list_item .label.update {
  border: 0;
  background: rgba(18, 18, 20, 0.08);
  color: #121214;
}

.wpnews .news-list_text {
  margin: 0;
  min-width: 0;
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.45;
  color: #141414;
}

.wpnews .news-list_item > a:hover .news-list_text {
  color: #000;
}

.wpnews .news-list_arrow {
  color: #9aa3ad;
  transition: transform 0.2s ease, color 0.2s ease;
}

.wpnews .news-list_item > a:hover .news-list_arrow {
  color: #9726ec;
  transform: translateX(3px);
}

.wpnews .news-list_text .newicon {
  margin: 0 0 0 0.4em;
  padding: 0.2em 0.45em;
  border: 0;
  background: #111;
  color: #fff;
  font-family: "proxima-soft", sans-serif;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  height: auto;
  vertical-align: middle;
}

.wpnews .news-list_item.is-empty {
  padding: 1em 0.15em;
  color: #6a7380;
  font-size: var(--fs-lead);
}

/* Document archive — equal-width category chips */
.wpnews.document-archive .news-list_item > a,
.post-type-archive-document .wpnews .news-list_item > a {
  grid-template-columns: 6.8em minmax(0, 1fr);
}

.wpnews.document-archive .news-list_label,
.post-type-archive-document .wpnews .news-list_label {
  width: 100%;
}

.wpnews.document-archive .news-list_item .label.document,
.post-type-archive-document .wpnews .news-list_item .label.document {
  width: 100%;
  min-width: 0;
  justify-content: center;
  border: 0;
  background: rgba(18, 18, 20, 0.08);
  color: #121214;
}

.wpnews.document-archive .news-list_item .label .document-tag,
.post-type-archive-document .wpnews .news-list_item .label .document-tag {
  display: inline;
}

.wpnews.document-archive .news-list_text .taxadded,
.post-type-archive-document .wpnews .news-list_text .taxadded {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 0 0 0.4em;
  padding: 0.32em 0.45em 0.2em;
  border: 1px solid #5a6470;
  background: #5a6470;
  color: #fff;
  font-size: var(--fs-tiny);
  font-weight: 500;
  line-height: 1;
  height: auto;
}

.wpnews.document-archive .news-list_text .taxadded.update,
.post-type-archive-document .wpnews .news-list_text .taxadded.update {
  border-color: #00b8ae;
  background: #00b8ae;
  color: #fff;
}

@media screen and (max-width: 736px) {
  .wpnews .news-main-head h2 {
    font-size: 1.18em;
  }

  .wpnews .news-main-head--stream h2 {
    font-size: 1.35rem;
  }

  .wpnews .news-list_item > a {
    grid-template-columns: auto 1fr;
    gap: 0.4em 0.75em;
    padding: 0.9em 0.1em;
  }

  .wpnews .news-list_date {
    grid-column: 1;
    grid-row: 1;
  }

  .wpnews .news-list_label {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .wpnews .news-list_text {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.95em;
  }

  .wpnews .news-list_item .label {
    min-width: 0;
    font-size: 0.66em;
    padding: 0.44em 0.55em 0.3em;
    line-height: 1;
  }

  /* Match homepage news list: date | title on one row */
  .wpnews .news-list--stream .news-list_item > a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wpnews .news-list--stream .news-list_date,
  .wpnews .news-list--stream .news-list_text {
    grid-column: auto;
    grid-row: auto;
  }

  .wpnews .news-list--stream .news-list_arrow {
    display: none;
  }

  .wpnews.document-archive .news-list_item > a,
  .post-type-archive-document .wpnews .news-list_item > a {
    grid-template-columns: 5.8em minmax(0, 1fr);
  }

  .wpnews.document-archive .news-list_label,
  .post-type-archive-document .wpnews .news-list_label {
    grid-column: 1;
    grid-row: 1;
  }

  .wpnews.document-archive .news-list_text,
  .post-type-archive-document .wpnews .news-list_text {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

@media screen and (max-width: 1280px) {
  #main {
    padding: 2em 0;
  }
}

@media screen and (max-width: 980px) {
  #main > header.major {
    margin: 0 0 1.25em;
  }
}

@media screen and (max-width: 736px) {
  #content {
    margin-bottom: 1em;
  }

  body.blog .wrapper.style2 #main,
  body.category .wrapper.style2 #main {
    padding-bottom: 2rem;
  }

  body.blog #content.wpnews,
  body.category #content.wpnews,
  .wrapper.style2 #content.wpnews--news {
    margin-bottom: 0;
  }
}

/* ---------- Back / parent-archive buttons ---------- */
#main .inner > hr {
  margin: 1.75em 0 1.25em;
  border: 0;
  border-top: 1px solid #eef1f5;
}

ul.actions.last {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

ul.actions.last > li.aright {
  margin: 0 0 0 auto;
  float: none;
  text-align: right;
}

/* PC: equal size for stacked back buttons (rem = same px regardless of button font-size) */
ul.actions.last .button.icon.fa-angle-left,
ul.actions.last .button.special.small.icon.fa-angle-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 11rem;
  min-width: 11rem;
  max-width: 11rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  line-height: 1;
}

/* Archive / parent return (フォーラム・お知らせ・ドキュメント etc.) */
ul.actions.last .button.special.small.icon.fa-angle-left {
  gap: 0.45em;
  margin: 0;
  border: 0;
  background: rgba(81, 197, 232, 0.14);
  color: #1f8fb0;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  transition: background 0.2s ease, color 0.2s ease;
}

ul.actions.last .button.special.small.icon.fa-angle-left:before {
  margin: 0;
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.85;
  color: inherit;
}

ul.actions.last .button.special.small.icon.fa-angle-left:hover,
ul.actions.last .button.special.small.icon.fa-angle-left:focus-visible {
  background: rgba(81, 197, 232, 0.22);
  color: #1a7a98;
  opacity: 1;
}

@media screen and (max-width: 736px) {
  /* Match footer Back: one full-width row each */
  ul.actions.last:not(.fixed),
  .wrapper.style7.homenon ul.actions.last {
    flex-direction: column;
    align-items: stretch;
    width: 100% !important;
    margin: 0;
    margin-left: 0;
  }

  ul.actions.last:not(.fixed) > li,
  ul.actions.last > li.aright,
  .wrapper.style7.homenon ul.actions.last > li {
    flex: none;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .wrapper.style7.homenon {
    margin: 0;
    padding: 1.15rem 1.25rem 1.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .wrapper.style7.homenon > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wrapper.style7.homenon ul.actions.last,
  .wrapper.style7.homenon ul.actions.last > li {
    align-items: center;
  }

  .wrapper.style7.homenon .button.icon.fa-angle-left {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 3.15rem !important;
    min-height: 3.15rem !important;
    border-radius: 0;
    border-color: #3ea9f5;
    background: #3ea9f5;
    color: #fff;
    font-size: 0.92rem;
    box-shadow: none;
  }

  .wrapper.style7.homenon .button.icon.fa-angle-left:before {
    color: #fff;
  }

  .wrapper.style7.homenon .button.icon.fa-angle-left:hover,
  .wrapper.style7.homenon .button.icon.fa-angle-left:focus-visible {
    background: #2f96e0;
    border-color: #2f96e0;
    color: #fff;
    box-shadow: none;
    transform: none;
  }

  ul.actions.last:not(.fixed) > li > .button,
  ul.actions.last .button,
  ul.actions.last .button.icon,
  ul.actions.last .button.special.small.icon.fa-angle-left {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 3.15rem !important;
    min-height: 3.15rem !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0 1.2em !important;
    line-height: 1 !important;
    font-size: 0.88rem;
    border-radius: 0;
  }

  ul.actions.last .button.special.small.icon.fa-angle-left:before,
  .wrapper.style7.homenon .button.icon.fa-angle-left:before {
    margin: 0 0.45em 0 0;
  }
}

/* ---------- Page subnav (disease pages; also used by forum) ---------- */

.page-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 0 2em 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.page-nav a {
  position: relative;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: #000;
  transition: 0.5s;
}

.page-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: #ddd;
  transform: translateY(-50%);
}

.page-nav a:hover {
  background: #e9eef5;
}

.page-nav a.active {
  color: #000;
  font-weight: 500;
}

@media screen and (max-width: 736px) {
  .page-nav {
    font-size: 0.9rem;
    background: #f3f4f6;
  }

  .page-nav a {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    color: #3a414a;
  }

  .page-nav a:hover {
    background: rgba(18, 18, 20, 0.06);
  }

  .page-nav a.active {
    color: #111;
  }

  .page-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #111;
  }

  .page-nav::-webkit-scrollbar {
    display: none;
  }

  
}

/* Inner-page back bar (hidden on .home via home.css) */
.wrapper.style7 {
  padding-top: 0;
}

/* PC: quiet return strip above pagetop */
.wrapper.style7.homenon {
  padding: 1.75rem 0 2rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wrapper.style7.homenon .actions.last {
  margin-bottom: 0;
}

.wrapper.style7.homenon .button.icon.fa-angle-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  min-width: 7.5rem;
  padding: 0.82em 1.45em 0.82em 1.15em;
  border: 1px solid rgba(62, 169, 245, 0.45);
  border-radius: 0;
  background: #fff;
  color: #1468a0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(62, 169, 245, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  margin: 0;
  color: #3ea9f5;
  font-size: 0.95em;
  line-height: 1;
  opacity: 1;
  transition: transform 0.2s ease;
}

.wrapper.style7.homenon .button.icon.fa-angle-left:hover,
.wrapper.style7.homenon .button.icon.fa-angle-left:focus-visible {
  background: #f4faff;
  border-color: #3ea9f5;
  color: #0d5686;
  opacity: 1;
  box-shadow: 0 10px 24px rgba(62, 169, 245, 0.2);
  transform: translateY(-1px);
}

.wrapper.style7.homenon .button.icon.fa-angle-left:hover:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:focus-visible:before {
  transform: translateX(-3px);
}

/* ---------- Pagetop: floating button ---------- */
.pagetop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-sizing: border-box;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(56, 168, 218, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(17, 40, 60, 0.14);
  color: #1f8fb0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pagetop.is-ready:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  pointer-events: none;
}

.pagetop:hover,
.pagetop:focus-visible {
  border-color: #38a8da;
  background: #38a8da;
  color: #fff;
  opacity: 1;
  outline: none;
}

.pagetop:hover .pagetop__icon svg,
.pagetop:focus-visible .pagetop__icon svg {
  transform: translateY(-0.12rem);
}

.pagetop__icon svg {
  display: block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media screen and (max-width: 736px) {
  .pagetop {
    right: 0.9rem;
    bottom: 0.9rem;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    width: 3rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagetop,
  .pagetop__icon svg {
    transition: none;
  }
}

/* ---------- Footer ---------- */
#footer {
  --footer-ink: rgba(255, 255, 255, 0.82);
  --footer-muted: rgba(255, 255, 255, 0.5);
  --footer-line: rgba(255, 255, 255, 0.14);

  padding: 4rem 1.5rem 5rem;
  background: #101214;
  color: #fff;
  box-sizing: border-box;
}

#footer h4 {
  margin: 0;
  color: #fff;
}

/* Menu columns */
#footer .footer-row.container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto 3rem;
  padding: 0;
  box-sizing: border-box;
  table-layout: auto;
}

#footer .footer-menu {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  text-align: left;
}

#footer .footer-menu > dd {
  display: contents;
}

#footer .footer-menu-label {
  order: -1;
  display: block;
  margin: 0 0 0.35rem;
  padding: 0;
  color: var(--footer-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#footer .footer-menu > dt {
  display: block;
  width: auto;
  margin: 0 0 0.9rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--footer-line);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

#footer .u-vertical {
  display: inline;
  writing-mode: horizontal-tb;
  -webkit-writing-mode: horizontal-tb;
  max-height: none;
  white-space: normal;
  letter-spacing: inherit;
}

#footer .footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

#footer .footer-list > li {
  margin: 0;
  padding: 0;
}

#footer .footer-list > li > a {
  position: relative;
  display: block;
  padding: 0.38rem 0 0.38rem 0;
  color: var(--footer-ink);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

#footer .footer-list > li > a:hover,
#footer .footer-list > li > a:focus-visible {
  padding-left: 0.4rem;
  color: #51c5e8;
  text-decoration: none;
  outline: none;
}

/* Bottom block */
#footer .copyright {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 0 0;
  border-top: 1px solid var(--footer-line);
  font-size: 0.8rem;
}

#footer .copyright .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#footer .copyright .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  padding: 0;
}

#footer .copyright p,
#footer .copyright .term {
  flex: 0 0 100%;
  max-width: none;
  box-sizing: border-box;
  padding-right: max(0px, calc(100% - 44rem));
  margin: 0 0 1.25rem;
  color: var(--footer-muted);
  font-size: 0.82rem;
  line-height: 1.85;
  text-align: left;
}

#footer .copyright h4 {
  display: block;
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#footer .copyright .site-url {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--footer-muted);
  font-size: 0.78rem;
  text-decoration: none;
  word-break: break-all;
}

#footer .copyright .site-url:hover {
  color: #fff;
}

#footer .copyright .linkft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  margin: 0 0 0 auto;
}

#footer .copyright .linkft a.btn {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--footer-ink);
  font-size: 0.8rem;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

#footer .copyright .linkft a.btn:hover,
#footer .copyright .linkft a.btn:focus-visible {
  background: none;
  color: #51c5e8;
  outline: none;
}

@media screen and (max-width: 980px) {
  #footer {
    padding: 3rem 1.35rem 2rem;
  }

  #footer .footer-row.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 2.5rem;
  }
}

@media screen and (max-width: 736px) {
  #footer {
    padding: 2.5rem 1.35rem 2rem;
  }

  #footer .copyright .inner {
    flex-direction: column;
    align-items: flex-start;
  }

  #footer .copyright .site-url,
  #footer .copyright .linkft {
    flex: 0 0 auto;
    margin-left: 0;
  }
}

@media screen and (max-width: 480px) {
  #footer .footer-row.container {
    gap: 1.75rem 1.25rem;
  }

  #footer .footer-list {
    font-size: 0.84rem;
  }
}

@media screen and (max-width: 330px) {
  #footer .footer-row.container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shared news lists / labels (migrated from main.css + style.css) ---------- */
li.news-list_item {
  list-style: none;
  transition: opacity 0.5s;
}
li.news-list_item:hover {
  opacity: 0.7;
}
li.news-list_item:last-child {
  padding-bottom: 0;
}
.news-list {
  margin-bottom: 28px;
  text-align: left;
}
ul.news-list {
  padding: 0;
}
.news-list_item {
  padding: 10px 2px;
}
.news-list_date {
  margin-right: 13px;
  float: left;
  margin-top: 0;
  color: #000;
  font-size: 0.9em;
}
.news-list_text {
  margin-left: 120px;
  color: #000;
}
.news-list_text a {
  color: #444;
}
.label {
  font-size: 0.8em;
  line-height: 1em;
  position: relative;
  top: -3px;
  display: inline-block;
  padding: 7px;
  text-align: center;
  vertical-align: middle;
}
.news-list_label {
  margin-right: 10px;
  float: left;
}
.news-list_item .label {
  border: 1px solid #000;
  color: #000;
  margin-top: 4px;
  width: 100px;
}
.news-list_item .label a {
  color: #fff;
}
.news-list_item .label.news {
  border: 1px solid #51c5e8;
  color: #51c5e8;
}
.news-list_item .label.update {
  border: 1px solid #00B8AE;
  color: #00B8AE;
}

.topnewslist {
  margin-bottom: 0;
}

.eng {
  letter-spacing: -0.001em;
}

.taxadded {
  border: 1px solid #000;
  padding: 0.2em 0.5em;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 3px;
  line-height: 1.8em;
  height: 2.2em;
}
.news-list_text .taxadded {
  font-size: var(--fs-tiny);
  margin-left: 0.5em;
  border: none;
  background: #fff;
  line-height: 1.6em;
  height: 1.8em;
}

span.newicon {
  background: #38a8da;
  font-family: "proxima-soft", sans-serif;
  color: #fff;
  margin-left: 0.1em;
  font-size: 0.6em;
  padding: 0.2em 0.5em;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 3px;
  line-height: 1.7em;
  height: 1.8em;
}

@media screen and (max-width: 980px) {
  .topnewslist {
    margin-bottom: 2em;
  }
}

@media screen and (max-width: 736px) {
  .label {
    font-size: 0.7em;
  }
  .news-list {
    margin-bottom: 8px;
  }
  .news-list_item .label {
    width: 80px;
  }
  .news-list_text {
    margin-left: 80px;
  }
  .news-list_date {
    margin-right: 5px;
  }
}

/* =========================================================
   Migrated from main.css — site utilities / sidebar accordion
   ========================================================= */

.dtnon{
	display: none!important;
}

ul.accordion, ul.accordion li{
	list-style: none;
	margin: 0 0 1px 0;
	padding: 0;
}

ul.accordion li li{
	margin: 0;
	padding: 0;
}

ul.accordion li ul{
	margin: 0;
	padding: 0;
	border-bottom: none;
}

.accordion{
	width: 100%;
	max-width: 100%;
	margin: 30px auto 20px;
	background: #FFF;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.accordion li:last-child .link{
	border-bottom: 0;
}

.accordion li{
	position: relative;
}

.accordion .link{
	position: absolute;
	top: 0;
	right: 0;
	z-index: 100;
}

.accordion li i{
	font-size: 18px;
	color: #595959;
	-webkit-transition: all 0.4s ease;
	-o-transition: all 0.4s ease;
	transition: all 0.4s ease;
}

.accordion li i:hover, .accordion li i.fa-chevron-down:hover{
	color: #51c5e8;
}

.accordion li i.fa-chevron-down{
	right: 12px;
	left: auto;
	font-size: 16px;
	padding: 1.2em;
	border: none;
}

.accordion li.open .link{
	color: #4D4D4D;
}

.accordion li.open i{
	color: #4D4D4D;
}

.accordion li.open i.fa-chevron-down{
	-webkit-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	transform: rotate(180deg);
	border: none;
}

.submenu{
	display: none;
	background: #444359;
	font-size: 14px;
}

.submenu li{
	border-bottom: 1px solid #ffffff;
}

.submenu li li{
	border-top: 1px solid #ffffff;
}

.submenu a{
	display: block;
	text-decoration: none;
	color: #fff;
	padding: 12px;
	padding-left: 15px;
	-webkit-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;
}

.submenu li li a:before{
	content: '\02022';
	margin: 0 4px;
}

.submenu a:hover{
	background: #5d5c72;
	color: #FFF;
	-moz-opacity: 0.8;
	opacity: 0.8;
	filter: alpha(opacity=80);
}

.accordion .link a{
	display: block;
	padding-right: 3em;
	color: #4D4D4D;
}

.menu label{
	display: none;
}

.menu input{
	display: none;
}

.menu label i{
	display: none;
}

@media screen and (max-width: 736px) {

.mnon{
		display: none;
	}
.dtnon{
		display: block;
	}
}

/* ---------- Site search results ---------- */
.search-page-form {
  --search-control-h: 2.6rem;
  --search-btn-bg: #8c3bc5;
  --search-btn-bg-hover: #7a2fb0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 0 0.85rem;
}

.search-page-form input[type="search"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--search-control-h);
  margin: 0;
  padding: 0 0.95rem;
  border: 1px solid #cfd4dc;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: none;
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-page-form input[type="search"]:focus {
  border-color: #51c5e8;
  box-shadow: inset 0 0 0 1px #51c5e8;
}

.search-page-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 5.5rem;
  height: var(--search-control-h);
  margin: 0;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0;
  background: var(--search-btn-bg);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.search-page-form button:hover {
  background: var(--search-btn-bg-hover);
}

.search-page-form button:focus-visible {
  outline: 2px solid #8c3bc5;
  outline-offset: 2px;
}

.search-scope {
  margin: 0 0 1.25rem;
  font-size: var(--fs-meta, 0.84rem);
  color: #6b7280;
}

.search-result-list .news-list_item {
  display: block;
}

.search-result-list .news-list_item > a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.search-result-excerpt {
  margin: 0.35rem 0 0;
  padding: 0 1.5rem 0.15rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
}

@media screen and (max-width: 736px) {
  .search-page-form {
    --search-control-h: 2.5rem;
    gap: 0.4rem;
  }

  .search-page-form button {
    min-width: 4.75rem;
    padding: 0 0.9rem;
  }
}

/* ---------- Boxed chevron decoration (same as entry-nav icon) ---------- */
.wpnews .news-list_arrow,
.a26-list__arrow {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  box-sizing: border-box;
  color: #1f8fb0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(56, 168, 218, 0.28);
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wpnews .news-list_arrow svg,
.a26-list__arrow svg {
  display: block;
}

.wpnews .news-list_item > a:hover .news-list_arrow,
.a26-list > li > a:hover .a26-list__arrow {
  color: #fff;
  background: #38a8da;
  border-color: #38a8da;
  transform: translateX(0.12rem);
}

/* Back buttons: boxed chevron icon */
ul.actions.last .button.special.small.icon.fa-angle-left:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.95em;
  line-height: 1;
  opacity: 1;
  color: #1f8fb0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(56, 168, 218, 0.28);
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

ul.actions.last .button.special.small.icon.fa-angle-left:hover:before,
ul.actions.last .button.special.small.icon.fa-angle-left:focus-visible:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:hover:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:focus-visible:before {
  color: #fff;
  background: #38a8da;
  border-color: #38a8da;
  transform: translateX(-0.12rem);
}

/* Back buttons: left aligned */
ul.actions.last {
  justify-content: flex-start;
}

ul.actions.last > li.aright {
  margin: 0 auto 0 0;
  text-align: left;
}

.wrapper.style7.homenon ul.actions.last,
.wrapper.style7.homenon ul.actions.last > li {
  justify-content: flex-start;
}

/* Back buttons: boxed chevron pinned to the left edge, label centered */
ul.actions.last .button.special.small.icon.fa-angle-left,
.wrapper.style7.homenon .button.icon.fa-angle-left {
  position: relative;
  padding-left: 2.9rem !important;
  padding-right: 1.2rem !important;
}

ul.actions.last .button.special.small.icon.fa-angle-left:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  margin: 0 !important;
  transform: translateY(-50%);
}

ul.actions.last .button.special.small.icon.fa-angle-left:hover:before,
ul.actions.last .button.special.small.icon.fa-angle-left:focus-visible:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:hover:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:focus-visible:before {
  transform: translateY(-50%) translateX(-0.12rem);
}

/* Shared edge spacing for boxed-chevron buttons (Back / a26-btn) */
:root {
  --btn-icon-size: 1.85rem;
  --btn-icon-inset: 0.85rem;
  --btn-icon-pad: calc(var(--btn-icon-size) + var(--btn-icon-inset) + 0.4rem);
  --btn-height: calc(var(--btn-icon-size) + 1.4rem);
}

ul.actions.last .button.special.small.icon.fa-angle-left,
.wrapper.style7.homenon .button.icon.fa-angle-left {
  padding-left: var(--btn-icon-pad) !important;
  padding-right: var(--btn-icon-pad) !important;
}

ul.actions.last .button.special.small.icon.fa-angle-left:before,
.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  left: var(--btn-icon-inset);
  width: var(--btn-icon-size);
  height: var(--btn-icon-size);
}

/* Match entry-nav card proportions (icon box + 0.7rem vertical padding) */
ul.actions.last .button.icon.fa-angle-left,
ul.actions.last .button.special.small.icon.fa-angle-left {
  height: var(--btn-height);
  min-height: var(--btn-height);
}

@media screen and (max-width: 736px) {
  ul.actions.last:not(.fixed) > li > .button,
  ul.actions.last .button,
  ul.actions.last .button.icon,
  ul.actions.last .button.special.small.icon.fa-angle-left,
  .wrapper.style7.homenon .button.icon.fa-angle-left {
    height: var(--btn-height) !important;
    min-height: var(--btn-height) !important;
  }
}

.wpnews .news-list_arrow,
.a26-list__arrow {
  width: var(--btn-icon-size);
  height: var(--btn-icon-size);
}

/* Label on the side opposite the icon (icon left → label right) */
ul.actions.last .button.special.small.icon.fa-angle-left,
.wrapper.style7.homenon .button.icon.fa-angle-left {
  justify-content: flex-end !important;
  text-align: right;
  padding-right: var(--btn-icon-inset) !important;
}

/* Fixed button width shared by Back / a26-btn */
:root {
  --btn-width: 11rem;
}

/* Unified margin: icon box is inset equally from top / bottom / edge */
:root {
  --btn-icon-inset: 0.7rem;
}

.wrapper.style7.homenon .button.icon.fa-angle-left,
ul.actions.last .button.special.small.icon.fa-angle-left {
  box-sizing: border-box;
  width: var(--btn-width) !important;
  min-width: var(--btn-width) !important;
  max-width: 100% !important;
  height: var(--btn-height) !important;
  min-height: var(--btn-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: var(--btn-icon-pad) !important;
  padding-right: var(--btn-icon-inset) !important;
}

/* border 1px: offset from the padding edge so outer distance equals the inset */
.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  left: calc(var(--btn-icon-inset) - 1px);
}

ul.actions.last .button.special.small.icon.fa-angle-left:before {
  left: var(--btn-icon-inset);
}

/* Back buttons: label left, boxed "<" pinned to the right edge */
.wrapper.style7.homenon .button.icon.fa-angle-left,
ul.actions.last .button.special.small.icon.fa-angle-left {
  justify-content: flex-start !important;
  text-align: left;
  padding-left: var(--btn-icon-inset) !important;
  padding-right: var(--btn-icon-pad) !important;
}

.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  left: auto;
  right: calc(var(--btn-icon-inset) - 1px);
}

ul.actions.last .button.special.small.icon.fa-angle-left:before {
  left: auto;
  right: var(--btn-icon-inset);
}

/* Back buttons (final): same layout as entry-nav "prev" — boxed "<" on the left, label beside it */
.wrapper.style7.homenon .button.icon.fa-angle-left,
ul.actions.last .button.special.small.icon.fa-angle-left {
  justify-content: flex-start !important;
  text-align: left;
  padding-left: calc(var(--btn-icon-inset) + var(--btn-icon-size) + 0.75rem) !important;
  padding-right: var(--btn-icon-inset) !important;
}

.wrapper.style7.homenon .button.icon.fa-angle-left:before {
  left: calc(var(--btn-icon-inset) - 1px);
  right: auto;
}

ul.actions.last .button.special.small.icon.fa-angle-left:before {
  left: var(--btn-icon-inset);
  right: auto;
}

/* ---------- 404 page ---------- */
.notfound .nf-head {
  margin: 0 0 1.5rem;
}

.notfound .nf-code {
  margin: 0 0 0.2rem;
  color: #51c5e8;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.notfound .nf-head h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  line-height: 1.35;
}

.notfound .nf-lead {
  max-width: 40em;
  margin: 0;
  color: #4a5560;
  line-height: 1.8;
}

.notfound .nf-search {
  max-width: 36rem;
  margin: 0 0 2rem;
}

.notfound .nf-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 0 0 2rem;
}

.notfound .nf-group h3 {
  margin: 0 0 0.7rem;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid #d5dae2;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.notfound .nf-links {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notfound .nf-links li {
  margin: 0;
  padding: 0;
}

.notfound a.nf-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(56, 168, 218, 0.18);
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.08), rgba(56, 168, 218, 0.02));
  color: #111;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.notfound a.nf-link:hover,
.notfound a.nf-link:focus-visible {
  border-color: rgba(56, 168, 218, 0.36);
  background: linear-gradient(135deg, rgba(81, 197, 232, 0.14), rgba(56, 168, 218, 0.04));
  color: #1f8fb0;
  opacity: 1;
}

.notfound .nf-link__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.notfound .nf-link__title {
  font-size: var(--fs-lead, 0.92rem);
  font-weight: 600;
  line-height: 1.4;
}

.notfound .nf-link__note {
  color: #6b7280;
  font-size: var(--fs-meta, 0.8rem);
  line-height: 1.4;
}

.notfound .nf-link__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--btn-icon-size, 1.85rem);
  height: var(--btn-icon-size, 1.85rem);
  box-sizing: border-box;
  color: #1f8fb0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(56, 168, 218, 0.28);
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.notfound a.nf-link:hover .nf-link__icon,
.notfound a.nf-link:focus-visible .nf-link__icon {
  color: #fff;
  background: #38a8da;
  border-color: #38a8da;
  transform: translateX(0.12rem);
}

@media screen and (max-width: 736px) {
  .notfound .nf-map {
    grid-template-columns: 1fr;
  }

  .notfound .nf-code {
    font-size: 2.6rem;
  }
}

/* ---------- 404 page: refined layout ---------- */
.notfound .nf-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: center;
  margin: 0 0 2.25rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid #e3e6eb;
}

.notfound .nf-top .nf-head,
.notfound .nf-top .nf-search {
  margin: 0;
}

.notfound .nf-top .nf-search {
  max-width: none;
}

.notfound .nf-code {
  color: transparent;
  background: linear-gradient(135deg, #51c5e8, #8c3bc5);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 4rem;
  letter-spacing: 0.04em;
}

.notfound .nf-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.25rem;
}

.notfound .nf-group {
  padding: 1.1rem 1.1rem 0.7rem;
  border: 1px solid rgba(56, 168, 218, 0.18);
  background: #fff;
}

.notfound .nf-group--docs {
  grid-row: span 2;
}

.notfound .nf-group h3 {
  margin: 0 0 0.35rem;
  padding: 0 0 0.6rem;
  border-bottom: 2px solid #111;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.notfound .nf-links {
  gap: 0;
}

.notfound .nf-links li + li {
  border-top: 1px solid #eef0f3;
}

.notfound a.nf-link {
  padding: 0.6rem 0.1rem;
  border: 0;
  background: transparent;
}

.notfound a.nf-link:hover,
.notfound a.nf-link:focus-visible {
  border: 0;
  background: transparent;
}

.notfound .nf-link__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-color: transparent;
  background: transparent;
  color: #9aa3ad;
}

.notfound a.nf-link:hover .nf-link__icon,
.notfound a.nf-link:focus-visible .nf-link__icon {
  border-color: #38a8da;
}

/* Regions as compact chips */
.notfound .nf-group--chips .nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0 0.4rem;
}

.notfound .nf-group--chips .nf-links li + li {
  border-top: 0;
}

.notfound .nf-group--chips a.nf-link {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(56, 168, 218, 0.28);
  background: #fff;
}

.notfound .nf-group--chips a.nf-link:hover,
.notfound .nf-group--chips a.nf-link:focus-visible {
  border: 1px solid rgba(56, 168, 218, 0.5);
  background: #f4fbfe;
}

.notfound .nf-group--chips li:first-child {
  flex: 1 1 100%;
}

.notfound .nf-group--chips li:first-child a.nf-link {
  border: 0;
  border-bottom: 1px solid #eef0f3;
  padding: 0.4rem 0.1rem 0.7rem;
  background: transparent;
}

.notfound .nf-group--chips .nf-link__icon {
  display: none;
}

.notfound .nf-group--chips li:first-child .nf-link__icon {
  display: grid;
}

.notfound .nf-group--chips .nf-link__title {
  font-size: 0.85rem;
  font-weight: 500;
}

.notfound .nf-group--chips li:first-child .nf-link__title {
  font-size: var(--fs-lead, 0.92rem);
  font-weight: 600;
}

@media screen and (max-width: 1100px) {
  .notfound .nf-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notfound .nf-group--docs {
    grid-row: auto;
  }
}

@media screen and (max-width: 736px) {
  .notfound .nf-top {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .notfound .nf-map {
    grid-template-columns: 1fr;
  }

  .notfound .nf-code {
    font-size: 3rem;
  }
}

/* 404: masonry-style columns (no gaps under shorter panels) */
.notfound .nf-map {
  display: block;
  column-count: 3;
  column-gap: 1.25rem;
}

.notfound .nf-group {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1.25rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.notfound .nf-group--docs {
  grid-row: auto;
}

@media screen and (max-width: 1100px) {
  .notfound .nf-map {
    column-count: 2;
  }
}

@media screen and (max-width: 736px) {
  .notfound .nf-map {
    column-count: 1;
  }
}

/* Document detail title: category / update chips (same as the document list) */
.subcaseinr > h3 .taxadded {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  height: auto;
  margin: 0 0 0 0.6em;
  padding: 0.38em 0.6em 0.3em;
  border: 1px solid #5a6470;
  background: #5a6470;
  color: #fff;
  font-size: var(--fs-label, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.subcaseinr > h3 .taxadded.update {
  border-color: #00b8ae;
  background: #00b8ae;
  color: #fff;
}

.subcaseinr > h3 .taxadded {
  position: relative;
  top: -0.08rem;
}

/* ---------- Contact form: submit (left) / reset (right, small) ---------- */
form#mailformpro > div.mfp_buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2em 0 1em;
  text-align: left;
}

form#mailformpro > div.mfp_buttons button.btn.btn-success:not(.reset) {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: auto;
  min-width: 14rem;
  max-width: 100%;
  height: var(--btn-height, 3.25rem);
  margin: 0;
  padding: 0 var(--btn-icon-pad, 3.1rem) 0 var(--btn-icon-inset, 0.7rem);
  border: 0;
  border-radius: 0;
  background: #51c5e8;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

form#mailformpro > div.mfp_buttons button.btn.btn-success:not(.reset):hover,
form#mailformpro > div.mfp_buttons button.btn.btn-success:not(.reset):focus-visible {
  background: #3bb3d8;
  opacity: 1;
}

form#mailformpro > div.mfp_buttons button.btn.btn-success:not(.reset)::after {
  content: "\f105";
  position: absolute;
  top: 50%;
  right: var(--btn-icon-inset, 0.7rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--btn-icon-size, 1.85rem);
  height: var(--btn-icon-size, 1.85rem);
  border: 1px solid #fff;
  font-family: FontAwesome;
  font-size: 0.95em;
  font-weight: normal;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

form#mailformpro > div.mfp_buttons button.btn.btn-success:not(.reset):hover::after {
  transform: translateY(-50%) translateX(0.12rem);
}

form#mailformpro > div.mfp_buttons button.btn.btn-success.reset {
  display: inline-block;
  margin: 0;
  padding: 0.2em 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #6b7280 !important;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: none;
  cursor: pointer;
}

form#mailformpro > div.mfp_buttons button.btn.btn-success.reset:hover,
form#mailformpro > div.mfp_buttons button.btn.btn-success.reset:focus-visible {
  color: #111 !important;
  opacity: 1;
}

/* ---------- Contact form: confirmation screen buttons (same design) ---------- */
div.mfp_buttons:has(#mfp_button_send) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2em 0 1em;
  text-align: left;
}

div.mfp_buttons button#mfp_button_send.mfp_element_button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: auto;
  min-width: 14rem;
  max-width: 100%;
  height: var(--btn-height, 3.25rem);
  margin: 0;
  padding: 0 var(--btn-icon-pad, 3.1rem) 0 var(--btn-icon-inset, 0.7rem);
  border: 0;
  border-radius: 0;
  background: #51c5e8;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

div.mfp_buttons button#mfp_button_send.mfp_element_button:hover,
div.mfp_buttons button#mfp_button_send.mfp_element_button:focus-visible {
  background: #3bb3d8;
  box-shadow: none;
  opacity: 1;
}

div.mfp_buttons button#mfp_button_send.mfp_element_button::after {
  content: "\f105";
  position: absolute;
  top: 50%;
  right: var(--btn-icon-inset, 0.7rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--btn-icon-size, 1.85rem);
  height: var(--btn-icon-size, 1.85rem);
  border: 1px solid #fff;
  font-family: FontAwesome;
  font-size: 0.95em;
  font-weight: normal;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

div.mfp_buttons button#mfp_button_send.mfp_element_button:hover::after {
  transform: translateY(-50%) translateX(0.12rem);
}

div.mfp_buttons button#mfp_button_cancel.mfp_element_button {
  display: inline-block;
  margin: 0;
  padding: 0.2em 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: #6b7280 !important;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-transform: none;
  cursor: pointer;
}

div.mfp_buttons button#mfp_button_cancel.mfp_element_button:hover,
div.mfp_buttons button#mfp_button_cancel.mfp_element_button:focus-visible {
  color: #111 !important;
  box-shadow: none;
  opacity: 1;
}

/* Footer: hospital list by region (8 regions in 2 columns) */
#footer .footer-list--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.25rem;
}

#footer .footer-list--cols > li.footer-list__all {
  grid-column: 1 / -1;
}
