/*
 * Trimal editorial compatibility layer, candidate only.
 * Load after the existing SWELL stylesheet and core.css.
 * Source of visual values: approved article v03.
 * Keeps legacy public content/controls intact; no visibility or content removal.
 */
body.trimal-editorial:not(.ed-example) {
  --compat-ink: #354e45;
  --compat-copy: #343f38;
  --compat-muted: #59695f;
  --compat-green: #396e5b;
  --compat-mint: #edf5ef;
  --compat-paper: #fffcf5;
  --compat-line: #d9e5dd;
  --compat-rose: #92533f;
  --compat-round: "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
}

/* Body copy: headings H1 and the page frame belong to core.css. */
body.trimal-editorial:not(.ed-example) .post_content {
  min-width: 0;
  max-width: 100%;
  color: var(--compat-copy);
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 2.05;
  overflow-wrap: break-word;
}
body.trimal-editorial:not(.ed-example) #main_content .post_content:not(.p-toc) {
  font-size: 16px !important;
  font-weight: 400 !important;
}
body.trimal-editorial:not(.ed-example) .post_content :where(p, ul, ol, dl, figure, blockquote, pre) {
  margin-top: 0;
  margin-bottom: 1.6em;
}
body.trimal-editorial:not(.ed-example) .post_content :where(p, li, dd) {
  max-width: 100%;
}
body.trimal-editorial:not(.ed-example) .post_content p,
body.trimal-editorial:not(.ed-example) #main_content .post_content p {
  font-weight: 400 !important;
}
body.trimal-editorial:not(.ed-example) .post_content :where(strong, b) {
  color: #2b4739;
  font-weight: 700 !important;
}
body.trimal-editorial:not(.ed-example) .post_content a:not(.swell-block-button__link):not(.wp-block-button__link):not(.p-postList__link) {
  color: var(--compat-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .post_content a:not(.swell-block-button__link):not(.wp-block-button__link):hover {
  color: var(--compat-rose);
}
body.trimal-editorial:not(.ed-example) :where(.post_content, .p-postList, .p-authorBox, .p-breadcrumb, .c-pagination) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #955839;
  outline-offset: 4px;
}
body.trimal-editorial:not(.ed-example) .post_content :is(h2, h3, h4, h5, h6) {
  color: var(--compat-ink);
  font-family: var(--compat-round);
  font-weight: 400;
  font-synthesis: none;
  font-feature-settings: "palt";
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  scroll-margin-top: 110px;
}
body.trimal-editorial:not(.ed-example) .post_content h2:not(.p-postList__title) {
  position: relative;
  margin: 56px 0 28px;
  padding: 24px 26px;
  border: 0;
  border-radius: 4px 21px 21px 4px;
  background: var(--compat-mint);
  box-shadow: none;
  font-size: 24px;
  line-height: 1.8;
  text-align: left;
}
body.trimal-editorial:not(.ed-example) .post_content h2:not(.p-postList__title)::before {
  content: "";
  position: absolute;
  inset: 25px auto 25px 0;
  width: 4px;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: var(--compat-green);
  transform: none;
}
body.trimal-editorial:not(.ed-example) .post_content h2:not(.p-postList__title)::after {
  content: none;
}
body.trimal-editorial:not(.ed-example) .post_content h3 {
  margin: 42px 0 22px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid #e2dacc;
  background: transparent;
  box-shadow: none;
  font-size: 19px;
  line-height: 1.85;
}
body.trimal-editorial:not(.ed-example) .post_content h3::before,
body.trimal-editorial:not(.ed-example) .post_content h3::after {
  content: none;
}
body.trimal-editorial:not(.ed-example) .post_content h4 {
  margin: 32px 0 16px;
  padding: 0 0 0 13px;
  border: 0;
  border-left: 3px solid #b7cdbd;
  background: transparent;
  font-size: 17px;
  line-height: 1.85;
}
body.trimal-editorial:not(.ed-example) .post_content :is(h5, h6) {
  margin: 28px 0 14px;
  font-size: 16px;
  line-height: 1.85;
}
body.trimal-editorial:not(.ed-example) .post_content :where(ul, ol):not(.p-postList):not(.c-iconList) {
  padding-left: 1.55em;
}
body.trimal-editorial:not(.ed-example) .post_content li + li {
  margin-top: .45em;
}
body.trimal-editorial:not(.ed-example) .post_content :where(ul, ol) :where(ul, ol) {
  margin-top: .5em;
  margin-bottom: .5em;
}
body.trimal-editorial:not(.ed-example) .post_content :where(li)::marker {
  color: var(--compat-green);
}
body.trimal-editorial:not(.ed-example) .post_content dt {
  color: var(--compat-ink);
  font-weight: 700;
}
body.trimal-editorial:not(.ed-example) .post_content dd {
  margin: .4em 0 1.4em;
}

/* Figures, embeds and columns retain their content and aspect ratios. */
body.trimal-editorial:not(.ed-example) .post_content :where(img, video) {
  max-width: 100%;
  height: auto;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.wp-block-image, .wp-caption, figure) {
  max-width: 100%;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.wp-block-image, .wp-caption) img {
  border-radius: 16px;
}
body.trimal-editorial:not(.ed-example) .post_content :is(figcaption, .wp-caption-text) {
  margin: 10px 0 0;
  color: var(--compat-muted);
  font-size: 12px;
  line-height: 1.85;
  text-align: left;
}
body.trimal-editorial:not(.ed-example) .post_content iframe {
  max-width: 100%;
  border-radius: 12px;
}
body.trimal-editorial:not(.ed-example) .post_content .wp-block-embed__wrapper {
  min-width: 0;
  max-width: 100%;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.wp-block-column, .wp-block-group__inner-container) {
  min-width: 0;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.alignwide, .alignfull) {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
body.trimal-editorial:not(.ed-example) .post_content :is(hr, .wp-block-separator) {
  width: 100%;
  max-width: 100%;
  height: 0;
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--compat-line);
  background: transparent;
}
body.trimal-editorial:not(.ed-example) .post_content blockquote {
  padding: 24px 26px;
  border: 1px solid #e6e5d9;
  border-left: 4px solid #a5bfa8;
  border-radius: 4px 16px 16px 4px;
  background: #f9f9f1;
  color: var(--compat-copy);
  box-shadow: none;
  font-size: 1em;
}
body.trimal-editorial:not(.ed-example) .post_content blockquote > :last-child {
  margin-bottom: 0;
}
body.trimal-editorial:not(.ed-example) .post_content :is(blockquote cite, blockquote footer) {
  color: var(--compat-muted);
  font-size: 13px;
  font-style: normal;
}
body.trimal-editorial:not(.ed-example) .post_content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--compat-line);
  border-radius: 12px;
  background: #f5f7f3;
  color: var(--compat-copy);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}

/* Existing TOC links and disclosure behavior remain intact. */
body.trimal-editorial:not(.ed-example) .p-toc {
  box-sizing: border-box;
  max-width: 100%;
  margin: 32px 0;
  padding: 24px 28px;
  border: 1px solid #e5e7db;
  border-radius: 16px;
  background: #faf9f2;
  color: var(--compat-ink);
  box-shadow: none;
  font-size: 13px !important;
  line-height: 1.9;
}
body.trimal-editorial:not(.ed-example) .p-toc .p-toc__ttl {
  position: static;
  display: block;
  width: auto;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--compat-ink);
  font-family: var(--compat-round);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .04em;
}
body.trimal-editorial:not(.ed-example) .p-toc :is(ul, ol) {
  margin: 0;
  padding-left: 1.5em;
}
body.trimal-editorial:not(.ed-example) .p-toc :is(ul, ol) :is(ul, ol) {
  margin: .6em 0;
  font-size: 12px;
}
body.trimal-editorial:not(.ed-example) .p-toc li {
  margin: .5em 0;
  padding: 0;
  color: var(--compat-ink);
}
body.trimal-editorial:not(.ed-example) .p-toc a {
  color: var(--compat-ink);
  text-decoration: underline;
  text-decoration-color: #bfcec1;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Scroll wide tables locally rather than clipping the document. */
body.trimal-editorial:not(.ed-example) .post_content :is(.wp-block-table, .table-wrap, .table-scroll, .trimal-table-wrap) {
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid #d8e2d8;
  border-radius: 14px;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
body.trimal-editorial:not(.ed-example) .post_content table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  color: var(--compat-copy);
  background: white;
  font-size: 13px;
  line-height: 1.8;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.wp-block-table, .table-wrap, .table-scroll, .trimal-table-wrap) table {
  min-width: 540px;
}
body.trimal-editorial:not(.ed-example) .post_content > table {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid #d8e2d8;
  border-radius: 14px;
}
body.trimal-editorial:not(.ed-example) .post_content :is(th, td) {
  padding: 16px;
  border: 0;
  border-bottom: 1px solid #dde5dd;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .post_content th {
  background: #e5eee2;
  color: #2f503c;
  font-size: 12px;
  font-weight: 700;
}
body.trimal-editorial:not(.ed-example) .post_content tbody tr:nth-child(even) td {
  background: #fbfcf8;
}
body.trimal-editorial:not(.ed-example) .post_content :is(th, td) > :last-child {
  margin-bottom: 0;
}
body.trimal-editorial:not(.ed-example) .post_content caption {
  padding: 12px 16px;
  color: var(--compat-muted);
  font-size: 12px;
  text-align: left;
}

/* FAQ and details: do not override the existing open/closed state. */
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-faq, .swell-block-accordion) {
  max-width: 100%;
  margin: 28px 0;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-faq__item, .swell-block-accordion__item, details) {
  margin: 14px 0;
  border: 1px solid var(--compat-line);
  border-radius: 14px;
  background: #fffefa;
  color: var(--compat-copy);
}
body.trimal-editorial:not(.ed-example) .post_content :is(.faq_q, .swell-block-faq__question, .swell-block-accordion__title, summary) {
  margin: 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--compat-mint);
  color: var(--compat-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-accordion__title, summary) {
  cursor: pointer;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.faq_q, .faq_a) {
  position: relative;
  padding-left: 64px;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.faq_q, .faq_a)::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 1px solid #bfd0c0;
  border-radius: 50%;
  background: #fffefa;
  color: #315e49;
  font-size: 13px;
  line-height: 1;
}
body.trimal-editorial:not(.ed-example) .post_content .swell-block-accordion__title {
  position: relative;
  padding-right: 54px;
}
body.trimal-editorial:not(.ed-example) .post_content .swell-block-accordion__icon {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 24px;
  height: 24px;
  color: var(--compat-green);
  transform: translateY(-50%);
}
body.trimal-editorial:not(.ed-example) .post_content summary::marker {
  color: var(--compat-green);
}
body.trimal-editorial:not(.ed-example) .post_content :is(.faq_a, .swell-block-faq__answer, .swell-block-accordion__body) {
  margin: 0;
  padding: 20px 22px;
  border: 0;
  color: var(--compat-copy);
  font-size: 15px;
  line-height: 2;
}
body.trimal-editorial:not(.ed-example) .post_content .faq_a {
  padding-left: 64px;
}
body.trimal-editorial:not(.ed-example) .post_content details > :not(summary):not(.swell-block-accordion__body) {
  margin-left: 22px;
  margin-right: 22px;
}
body.trimal-editorial:not(.ed-example) .post_content details[open] > summary {
  margin-bottom: 18px;
  border-radius: 14px 14px 0 0;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.faq_a, .swell-block-faq__answer, .swell-block-accordion__body) > :last-child {
  margin-bottom: 0;
}

/* Legacy buttons: readable label/background pairs, no new behavior. */
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-button, .wp-block-buttons) {
  max-width: 100%;
  margin: 26px 0;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-button__link, .wp-block-button__link) {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  padding: 15px 26px;
  border: 1px solid #3b6952;
  border-radius: 999px;
  background: #3b6952;
  color: #fff !important;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-button__link, .wp-block-button__link) :is(span, strong, b) {
  color: inherit !important;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-button__link, .wp-block-button__link):hover {
  background: #2e543f;
  color: #fff !important;
}
body.trimal-editorial:not(.ed-example) .post_content .is-style-outline .wp-block-button__link {
  background: #fffefa;
  color: #315e49 !important;
}

/* Lists and related articles: image + clear headline, not oversized tiles. */
body.trimal-editorial:not(.ed-example) .p-postList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
  width: 100%;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__item {
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  flex-basis: auto !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--compat-line);
  background: transparent;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__link {
  display: block;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--compat-ink);
  text-decoration: none;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__thumb,
body.trimal-editorial:not(.ed-example) .p-postList .c-postThumb {
  position: relative;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin: 0 0 13px;
  padding: 0 !important;
  border-radius: 12px;
  background: #f0f4ec;
  box-shadow: none;
}
body.trimal-editorial:not(.ed-example) .p-postList .c-postThumb__figure {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  padding: 0 !important;
  border-radius: 12px;
  background: #f0f4ec;
}
body.trimal-editorial:not(.ed-example) .p-postList .c-postThumb__img {
  position: absolute !important;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
  transform: none;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__body {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__title {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--compat-ink);
  font-family: var(--compat-round);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__title::before,
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__title::after {
  content: none;
}
body.trimal-editorial:not(.ed-example) .p-postList__link:hover .p-postList__title {
  color: var(--compat-rose);
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.trimal-editorial:not(.ed-example) .p-postList :is(.p-postList__meta, .p-postList__excerpt, .c-postTimes) {
  color: var(--compat-muted);
  font-size: 12px;
  line-height: 1.8;
  opacity: 1;
}
body.trimal-editorial:not(.ed-example) .p-postList .p-postList__cat {
  display: inline-block;
  max-width: 100%;
  margin: 7px 8px 0 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf3e8;
  color: #3f604c;
  font-size: 11px;
  line-height: 1.8;
  white-space: normal;
  opacity: 1;
}
body.trimal-editorial:not(.ed-example) .p-postList.-type-list,
body.trimal-editorial:not(.ed-example) .l-sidebar .p-postList {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
body.trimal-editorial:not(.ed-example) .p-postList.-type-list .p-postList__link {
  display: grid;
  grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
body.trimal-editorial:not(.ed-example) .p-postList.-type-list .p-postList__thumb {
  margin-bottom: 0;
}
body.trimal-editorial:not(.ed-example) .l-sidebar .p-postList__title {
  font-size: 15px;
}

/* Legacy category intros used a floated, fixed-width description column. */
body.trimal-editorial:not(.ed-example) .p-termHead,
body.trimal-editorial:not(.ed-example) .p-termHead .p-termHead__desc {
  box-sizing: border-box;
  float: none !important;
  clear: both;
  width: auto !important;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.trimal-editorial:not(.ed-example) .p-termHead {
  margin-top: 0;
  margin-bottom: 32px;
  padding: 24px 28px;
  border: 1px solid var(--compat-line);
  border-radius: 18px;
  background: #f8faf3;
}
body.trimal-editorial:not(.ed-example) .p-termHead .p-termHead__desc {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  color: var(--compat-copy);
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  text-align: left;
  overflow-wrap: anywhere;
}

/* Existing author and article footer components. */
body.trimal-editorial:not(.ed-example) .p-authorBox {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 100%;
  margin: 38px 0;
  padding: 26px;
  border: 1px solid var(--compat-line);
  border-radius: 20px;
  background: #f3f5ea;
  color: var(--compat-copy);
  box-shadow: none;
}
body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__l {
  float: none;
  flex: 0 0 92px;
  width: 92px;
  margin: 0;
  padding: 0;
  text-align: center;
}
body.trimal-editorial:not(.ed-example) .p-authorBox::after {
  content: none;
}
body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__r {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
}
body.trimal-editorial:not(.ed-example) .p-authorBox :is(.avatar, .p-authorBox__img) {
  display: block;
  width: 72px;
  height: 72px;
  max-width: 100%;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
}
body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__name {
  display: block;
  margin: 0;
  color: #315e49;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__desc {
  margin: 0;
  color: var(--compat-copy);
  font-size: 13px;
  line-height: 1.95;
  opacity: 1;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__iconList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
body.trimal-editorial:not(.ed-example) .p-authorBox .c-iconList__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #ccdbce;
  border-radius: 50%;
  background: #fffefa;
  color: #315e49;
  text-decoration: none;
}
body.trimal-editorial:not(.ed-example) :is(.l-articleBottom__title, .p-relatedPosts__title) {
  margin: 36px 0 20px;
  color: var(--compat-ink);
  font-family: var(--compat-round);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.8;
}
body.trimal-editorial:not(.ed-example) .p-breadcrumb {
  max-width: 100%;
  color: var(--compat-muted);
  font-size: 12px;
  line-height: 1.85;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.trimal-editorial:not(.ed-example) .p-breadcrumb :is(ol, ul) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.trimal-editorial:not(.ed-example) .p-breadcrumb :is(li, span, a) {
  max-width: 100%;
  color: inherit;
  white-space: normal;
}
body.trimal-editorial:not(.ed-example) .c-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 36px 0;
}
body.trimal-editorial:not(.ed-example) .c-pagination :is(a, .page-numbers) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #d2dfd3;
  border-radius: 999px;
  background: #fffefa;
  color: var(--compat-green);
  font-size: 13px;
  text-decoration: none;
}
body.trimal-editorial:not(.ed-example) .c-pagination :is(.current, [aria-current="page"]) {
  border-color: var(--compat-green);
  background: var(--compat-green);
  color: white;
}

/* Inline forms and search: no assumptions about remote form submission. */
body.trimal-editorial:not(.ed-example) .post_content :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea),
body.trimal-editorial:not(.ed-example) .wp-block-search .wp-block-search__input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #a9bfae;
  border-radius: 10px;
  background: #fffefa;
  color: var(--compat-copy);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}
body.trimal-editorial:not(.ed-example) .post_content textarea {
  min-height: 150px;
  resize: vertical;
}
body.trimal-editorial:not(.ed-example) .post_content :is(input, textarea)::placeholder {
  color: #637268;
  opacity: 1;
}
body.trimal-editorial:not(.ed-example) .post_content :is(input[type="checkbox"], input[type="radio"]) {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  accent-color: var(--compat-green);
  vertical-align: middle;
}
body.trimal-editorial:not(.ed-example) .post_content :is(button[type="submit"], input[type="submit"]),
body.trimal-editorial:not(.ed-example) .wp-block-search .wp-block-search__button {
  min-height: 46px;
  max-width: 100%;
  padding: 11px 24px;
  border: 1px solid #3b6952;
  border-radius: 999px;
  background: #3b6952;
  color: white;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  white-space: normal;
  cursor: pointer;
}
body.trimal-editorial:not(.ed-example) .post_content :is(.wpcf7-not-valid-tip, .error, [role="alert"]) {
  color: #973c2b;
  font-size: 14px;
  line-height: 1.8;
}
body.trimal-editorial:not(.ed-example) .wp-block-search .wp-block-search__inside-wrapper {
  min-width: 0;
  gap: 10px;
}
body.trimal-editorial:not(.ed-example) .wp-block-search .wp-block-search__inside-wrapper:focus-within {
  outline: 3px solid #955839;
  outline-offset: 4px;
  border-radius: 12px;
}

@media (max-width: 760px) {
  body.trimal-editorial:not(.ed-example) .post_content { font-size: 15px !important; line-height: 2; }
  body.trimal-editorial:not(.ed-example) #main_content .post_content:not(.p-toc) { font-size: 15px !important; }
  body.trimal-editorial:not(.ed-example) .post_content :where(p, ul, ol, dl, figure, blockquote, pre) { margin-bottom: 1.65em; }
  body.trimal-editorial:not(.ed-example) .post_content h2:not(.p-postList__title) {
    margin: 42px 0 24px;
    padding: 20px 18px;
    border-radius: 3px 18px 18px 3px;
    font-size: 20px;
    line-height: 1.85;
  }
  body.trimal-editorial:not(.ed-example) .post_content h2:not(.p-postList__title)::before { top: 22px; bottom: 22px; width: 3px; }
  body.trimal-editorial:not(.ed-example) .post_content h3 { margin: 34px 0 20px; padding-bottom: 12px; font-size: 17px; }
  body.trimal-editorial:not(.ed-example) .post_content h4 { font-size: 16px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.wp-block-image, .wp-caption) img { border-radius: 12px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(figcaption, .wp-caption-text) { font-size: 12px; }
  body.trimal-editorial:not(.ed-example) .post_content .wp-block-columns { flex-wrap: wrap !important; gap: 22px; }
  body.trimal-editorial:not(.ed-example) .post_content .wp-block-column { flex-basis: 100% !important; margin-left: 0; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.alignleft, .alignright) { float: none; margin-left: 0; margin-right: 0; }
  body.trimal-editorial:not(.ed-example) .post_content blockquote { padding: 19px 17px; }
  body.trimal-editorial:not(.ed-example) .p-toc { padding: 20px 17px; font-size: 12px !important; }
  body.trimal-editorial:not(.ed-example) .p-toc :is(ul, ol) :is(ul, ol) { font-size: 12px; }
  body.trimal-editorial:not(.ed-example) .post_content table { font-size: 12px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(th, td) { padding: 13px 12px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.faq_q, .swell-block-faq__question, .swell-block-accordion__title, summary) { padding: 16px; font-size: 14px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.faq_a, .swell-block-faq__answer, .swell-block-accordion__body) { padding: 18px 16px; font-size: 14px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.faq_q, .faq_a) { padding-left: 56px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.faq_q, .faq_a)::before { left: 16px; top: 18px; width: 24px; height: 24px; }
  body.trimal-editorial:not(.ed-example) .post_content .swell-block-accordion__title { padding-right: 48px; }
  body.trimal-editorial:not(.ed-example) .post_content .swell-block-accordion__icon { right: 14px; }
  body.trimal-editorial:not(.ed-example) .post_content details > :not(summary):not(.swell-block-accordion__body) { margin-left: 16px; margin-right: 16px; }
  body.trimal-editorial:not(.ed-example) .post_content :is(.swell-block-button__link, .wp-block-button__link) { padding: 14px 20px; font-size: 14px; }
  body.trimal-editorial:not(.ed-example) .p-postList { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.trimal-editorial:not(.ed-example) .p-postList .p-postList__item { padding-bottom: 20px; }
  body.trimal-editorial:not(.ed-example) .p-postList .p-postList__title { font-size: 16px; line-height: 1.9; }
  body.trimal-editorial:not(.ed-example) .p-postList.-type-list .p-postList__link { grid-template-columns: minmax(80px, 30%) minmax(0, 1fr); gap: 13px; }
  body.trimal-editorial:not(.ed-example) .p-postList.-type-list .p-postList__title { font-size: 15px; }
  body.trimal-editorial:not(.ed-example) .p-termHead { padding: 20px 18px; border-radius: 14px; }
  body.trimal-editorial:not(.ed-example) .p-termHead .p-termHead__desc { font-size: 15px; }
  body.trimal-editorial:not(.ed-example) .p-authorBox { gap: 16px; padding: 20px 16px; border-radius: 16px; }
  body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__l { flex-basis: 66px; width: 66px; }
  body.trimal-editorial:not(.ed-example) .p-authorBox :is(.avatar, .p-authorBox__img) { width: 52px; height: 52px; }
  body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__name { font-size: 12px; }
  body.trimal-editorial:not(.ed-example) .p-authorBox .p-authorBox__desc { font-size: 12px; }
  body.trimal-editorial:not(.ed-example) :is(.l-articleBottom__title, .p-relatedPosts__title) { font-size: 19px; }
  body.trimal-editorial:not(.ed-example) .p-breadcrumb { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  body.trimal-editorial:not(.ed-example) :is(.post_content, .p-postList, .p-authorBox) { scroll-behavior: auto; }
  body.trimal-editorial:not(.ed-example) :is(.post_content, .p-postList, .p-authorBox) :is(a, button, img) { transition: none; }
}

/* Article-tail UI only. Load after core.css and legacy-compat.css.
   The article body, cover image and table of contents are intentionally outside
   these selectors. Existing links, article order and author content are kept. */

body.trimal-editorial #after_article,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea),
body.trimal-editorial #main_content .ed-inline-follow,
body.trimal-editorial #main_content .ed-inline-consultation,
body.trimal-editorial #main_content .ed-newsletter {
  --tail-ink: #354e45;
  --tail-muted: #59695f;
  --tail-green: #396e5b;
  --tail-line: #d9e5dd;
  --tail-ivory: #fffcf5;
  --tail-mint: #f0f5ed;
  --tail-round: "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  color: var(--tail-ink);
}

/* Remove the old SWELL section ribbons only after the article. */
body.trimal-editorial #after_article h2,
body.trimal-editorial #after_article .l-articleBottom__title,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-widget__title {
  position: relative !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  font-family: var(--tail-round) !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: .025em !important;
  text-align: left !important;
  text-shadow: none !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial #after_article h2::before,
body.trimal-editorial #after_article h2::after,
body.trimal-editorial #after_article .l-articleBottom__title::before,
body.trimal-editorial #after_article .l-articleBottom__title::after,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-widget__title::before,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-widget__title::after {
  content: none !important;
  display: none !important;
}
body.trimal-editorial #after_article h2 :is(mark, strong, b, span) {
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}
body.trimal-editorial #after_article .l-articleBottom__section {
  margin: 40px 0 0 !important;
  padding: 0 !important;
}

/* One quiet Instagram follow link at the end of the article. */
body.trimal-editorial #main_content .ed-inline-follow {
  margin: 38px 0 28px !important;
  padding: 20px 0 !important;
  border: 0 !important;
  border-top: 1px dashed var(--tail-line) !important;
  border-bottom: 1px dashed var(--tail-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.trimal-editorial #main_content .ed-inline-follow p,
body.trimal-editorial #main_content .ed-newsletter p {
  max-width: 100%;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tail-muted) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.95 !important;
  text-align: left !important;
  opacity: 1 !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial #main_content .ed-inline-follow .ed-tail-label,
body.trimal-editorial #main_content .ed-newsletter .ed-tail-label {
  display: block;
  margin: 0 0 9px !important;
  padding: 0 !important;
  color: #7b6854 !important;
  font-family: var(--tail-round);
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: .09em;
  line-height: 1.8 !important;
}
body.trimal-editorial #main_content :is(.ed-inline-follow, .ed-newsletter) .ed-tail-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: auto !important;
  min-width: 0 !important;
  min-height: 38px;
  max-width: 100%;
  margin: 0 !important;
  padding: 6px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tail-green) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
  text-align: left !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transform: none !important;
}

/* Newsletter: a small readable introduction and an outbound registration link. */
body.trimal-editorial #main_content .ed-newsletter {
  display: block !important;
  width: 100% !important;
  margin: 32px 0 0 !important;
  padding: 26px 30px !important;
  border: 1px solid #e4e3d8 !important;
  border-radius: 22px !important;
  background: #faf6eb !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.trimal-editorial #main_content .ed-newsletter h2 {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  font-family: var(--tail-round) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}
body.trimal-editorial #main_content .ed-newsletter h2::before,
body.trimal-editorial #main_content .ed-newsletter h2::after {
  content: none !important;
  display: none !important;
}

/* Author: keep the original avatar, biography and social links. */
body.trimal-editorial #after_article .p-authorBox,
body.trimal-editorial #main_content .ed-author.p-authorBox,
body.trimal-editorial #main_content .ed-author .p-authorBox {
  display: grid !important;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start !important;
  gap: 26px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 29px !important;
  border: 1px solid var(--tail-line, #d9e5dd) !important;
  border-radius: 22px !important;
  background: var(--tail-mint, #f0f5ed) !important;
  color: var(--tail-ink, #354e45) !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.trimal-editorial #after_article .p-authorBox::before,
body.trimal-editorial #after_article .p-authorBox::after {
  content: none !important;
  display: none !important;
}
body.trimal-editorial #after_article .p-authorBox .p-authorBox__l,
body.trimal-editorial #main_content .ed-author .p-authorBox__l {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center !important;
}
body.trimal-editorial #after_article .p-authorBox .p-authorBox__r,
body.trimal-editorial #main_content .ed-author .p-authorBox__r {
  display: block !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.trimal-editorial #after_article .p-authorBox :is(.avatar, .p-authorBox__img),
body.trimal-editorial #main_content .ed-author :is(.avatar, .p-authorBox__img) {
  display: block !important;
  width: 76px !important;
  height: 76px !important;
  max-width: 100% !important;
  margin: 0 auto 12px !important;
  border: 3px solid #fffdf8 !important;
  border-radius: 50% !important;
  object-fit: cover;
  box-shadow: none !important;
}
body.trimal-editorial #after_article .p-authorBox .p-authorBox__name,
body.trimal-editorial #main_content .ed-author .p-authorBox__name {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tail-green, #396e5b) !important;
  font-family: var(--tail-round, "Hiragino Maru Gothic ProN", sans-serif);
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial #after_article .p-authorBox .p-authorBox__desc,
body.trimal-editorial #main_content .ed-author .p-authorBox__desc {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tail-muted, #59695f) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.95 !important;
  text-align: left !important;
  opacity: 1 !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial #after_article .p-authorBox .p-authorBox__iconList,
body.trimal-editorial #main_content .ed-author .p-authorBox__iconList {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  margin: 19px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial #after_article .p-authorBox .c-iconList__item,
body.trimal-editorial #main_content .ed-author .c-iconList__item {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.trimal-editorial #after_article .p-authorBox .c-iconList__link,
body.trimal-editorial #main_content .ed-author .c-iconList__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid #cddbcf !important;
  border-radius: 50% !important;
  background: #fffdf8 !important;
  color: #396e5b !important;
  box-shadow: none !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transform: none !important;
}
body.trimal-editorial #after_article .p-authorBox .c-iconList__link i,
body.trimal-editorial #main_content .ed-author .c-iconList__link i {
  color: inherit !important;
  font-size: 16px !important;
}

/* Previous/next navigation: no thick coloured side rails. */
body.trimal-editorial #after_article .p-pnLinks {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 30px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial #after_article .p-pnLinks .p-pnLinks__item {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--tail-line) !important;
  border-radius: 16px !important;
  background: #fffdf8 !important;
  box-shadow: none !important;
  overflow: hidden;
}
body.trimal-editorial #after_article .p-pnLinks .p-pnLinks__item::before {
  display: none !important;
  content: none !important;
}
body.trimal-editorial #after_article .p-pnLinks .p-pnLinks__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 18px 21px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  line-height: 1.85 !important;
  text-align: left !important;
  text-decoration: none !important;
  transform: none !important;
}
body.trimal-editorial #after_article .p-pnLinks .p-pnLinks__link::before {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6e7f6a !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  transform: none !important;
}
body.trimal-editorial #after_article .p-pnLinks .-prev .p-pnLinks__link::before { content: "← 前の記事" !important; }
body.trimal-editorial #after_article .p-pnLinks .-next .p-pnLinks__link::before { content: "次の記事 →" !important; }
body.trimal-editorial #after_article .p-pnLinks .p-pnLinks__title {
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere;
  transform: none !important;
}

/* Related reading: compact photo-and-title rows within a two-column grid. */
body.trimal-editorial #after_article .p-relatedPosts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px 25px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial #after_article .p-relatedPosts .p-postList__item,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__item {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 17px !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--tail-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.trimal-editorial #after_article .p-relatedPosts .p-postList__link,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__link {
  display: grid !important;
  grid-template-columns: 106px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 15px !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body.trimal-editorial #after_article .p-relatedPosts :is(.p-postList__thumb, .c-postThumb),
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList :is(.p-postList__thumb, .c-postThumb) {
  position: relative !important;
  float: none !important;
  width: 106px !important;
  height: 72px !important;
  min-height: 0 !important;
  max-width: 100% !important;
  aspect-ratio: auto !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #edf3e8 !important;
  box-shadow: none !important;
  overflow: hidden;
}
body.trimal-editorial #after_article .p-relatedPosts .c-postThumb__figure,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .c-postThumb__figure {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
}
body.trimal-editorial #after_article .p-relatedPosts .c-postThumb__img,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .c-postThumb__img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  transform: none !important;
}
body.trimal-editorial #after_article .p-relatedPosts .p-postList__body,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__body {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.trimal-editorial #after_article .p-relatedPosts .p-postList__title,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__title {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset !important;
}
body.trimal-editorial #after_article .p-relatedPosts :is(.p-postList__meta, .c-postTimes, .p-postList__cat),
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList :is(.p-postList__meta, .c-postTimes, .p-postList__cat) {
  color: var(--tail-muted) !important;
  font-size: 11px !important;
  line-height: 1.8 !important;
  opacity: 1 !important;
}
body.trimal-editorial #after_article .p-relatedPosts .p-postList__meta,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__meta { margin-top: 8px !important; }

/* The old sidebar becomes a non-sticky discovery area at the end of the page. */
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) {
  position: static !important;
  float: none !important;
  clear: both;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 26px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 46px 0 0 !important;
  padding: 32px 0 40px !important;
  border: 0 !important;
  border-top: 1px solid var(--tail-line) !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .c-widget {
  position: static !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 25px !important;
  border: 1px solid var(--tail-line) !important;
  border-radius: 22px !important;
  background: #fffdf8 !important;
  box-shadow: none !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .widget_swell_popular_posts { order: 1; background: var(--tail-mint) !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > :is(.widget_recent_entries, .widget_swell_new_posts) { order: 2; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .widget_categories { order: 3; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .widget_tag_cloud { order: 4; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .widget_search {
  order: 0;
  grid-column: 1 / -1;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-widget__title { margin-bottom: 21px !important; font-size: 22px !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 17px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__link { grid-template-columns: 94px minmax(0, 1fr) !important; gap: 15px !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList :is(.p-postList__thumb, .c-postThumb) { width: 94px !important; height: 66px !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__item:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }

/* A recent-entry widget may keep a plain list or receive the thumbnail list. */
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) > li {
  margin: 0 !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--tail-line) !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) > li:first-child { padding-top: 0 !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) > li:last-child { padding-bottom: 0 !important; border-bottom: 0 !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) > li > a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--tail-ink) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries .post-date { display: block; margin-top: 6px; color: var(--tail-muted); font-size: 11px; line-height: 1.8; }

/* Categories and tag cloud keep every existing destination at one quiet size. */
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories > ul,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .tagcloud {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories li {
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories a,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .tagcloud a {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border: 1px solid #d9e3d3 !important;
  border-radius: 30px !important;
  background: #f4f7ee !important;
  color: #48624d !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transform: none !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .tagcloud a { background: #fffaf1 !important; border-color: #e6dfd0 !important; color: #77644f !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories a::before,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories a::after,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .tagcloud a::before,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .tagcloud a::after { content: none !important; display: none !important; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories .children { margin: 8px 0 0 !important; padding: 0 !important; list-style: none !important; }

/* Existing search form: retain action, method, labels and submit behavior. */
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm {
  display: flex !important;
  align-items: stretch;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #b9cdbb !important;
  border-radius: 28px !important;
  background: #fffdf8 !important;
  overflow: hidden;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm__s {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 16px !important;
  line-height: 1.6 !important;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm__s::placeholder { color: #697a6c; opacity: 1; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm__submit {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 58px;
  width: 58px !important;
  min-width: 48px !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--tail-green) !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm__submit::before { color: #fff !important; font-size: 19px !important; }

body.trimal-editorial #after_article a:focus-visible,
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) :is(a, button):focus-visible,
body.trimal-editorial #main_content :is(.ed-inline-follow, .ed-inline-consultation, .ed-newsletter) a:focus-visible {
  outline: 3px solid #a46b4e !important;
  outline-offset: 4px;
}
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm:focus-within { outline: 3px solid #a46b4e; outline-offset: 4px; }
body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-searchForm__s:focus { outline: none; }

@media (hover: hover) {
  body.trimal-editorial #after_article .p-relatedPosts a:hover .p-postList__title,
  body.trimal-editorial #after_article .p-pnLinks a:hover .p-pnLinks__title,
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList a:hover .p-postList__title,
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) > li > a:hover {
    color: #396e5b !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
  }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) :is(.widget_categories, .tagcloud) a:hover { border-color: #9cb39d !important; }
}

@media (max-width: 760px) {
  body.trimal-editorial #after_article .l-articleBottom__section { margin-top: 32px !important; }
  body.trimal-editorial #after_article h2,
  body.trimal-editorial #after_article .l-articleBottom__title,
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .c-widget__title { margin-bottom: 18px !important; font-size: 21px !important; }
  body.trimal-editorial #main_content .ed-inline-follow { margin: 30px 0 24px !important; padding: 18px 0 !important; }
  body.trimal-editorial #main_content .ed-newsletter { margin-top: 26px !important; padding: 22px !important; border-radius: 18px !important; }
  body.trimal-editorial #main_content .ed-newsletter h2 { font-size: 20px !important; }
  body.trimal-editorial #main_content :is(.ed-inline-follow, .ed-newsletter) p { font-size: 14px !important; }
  body.trimal-editorial #main_content :is(.ed-inline-follow, .ed-newsletter) .ed-tail-label { font-size: 11px !important; }
  body.trimal-editorial #after_article .p-authorBox,
  body.trimal-editorial #main_content .ed-author.p-authorBox,
  body.trimal-editorial #main_content .ed-author .p-authorBox { grid-template-columns: minmax(0, 1fr); gap: 20px !important; padding: 22px !important; border-radius: 18px !important; }
  body.trimal-editorial #after_article .p-authorBox .p-authorBox__l,
  body.trimal-editorial #main_content .ed-author .p-authorBox__l { display: flex; align-items: center; gap: 16px; text-align: left !important; }
  body.trimal-editorial #after_article .p-authorBox :is(.avatar, .p-authorBox__img),
  body.trimal-editorial #main_content .ed-author :is(.avatar, .p-authorBox__img) { width: 62px !important; height: 62px !important; flex-shrink: 0; margin: 0 !important; }
  body.trimal-editorial #after_article .p-authorBox .p-authorBox__desc,
  body.trimal-editorial #main_content .ed-author .p-authorBox__desc { font-size: 14px !important; line-height: 1.95 !important; }
  body.trimal-editorial #after_article .p-pnLinks { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; margin: 26px 0 !important; }
  body.trimal-editorial #after_article .p-pnLinks .p-pnLinks__link { padding: 16px 19px !important; }
  body.trimal-editorial #after_article .p-relatedPosts { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  body.trimal-editorial #after_article .p-relatedPosts .p-postList__link { grid-template-columns: 94px minmax(0, 1fr) !important; gap: 14px !important; }
  body.trimal-editorial #after_article .p-relatedPosts :is(.p-postList__thumb, .c-postThumb) { width: 94px !important; height: 66px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; margin-top: 34px !important; padding-top: 26px !important; padding-bottom: 32px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .c-widget { padding: 22px !important; border-radius: 18px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .widget_search { padding: 0 !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__link { grid-template-columns: 78px minmax(0, 1fr) !important; gap: 12px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList :is(.p-postList__thumb, .c-postThumb) { width: 78px !important; height: 58px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__title { font-size: 14px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_recent_entries > ul:not(.p-postList) > li > a { font-size: 14px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .widget_categories a,
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .tagcloud a { padding: 7px 11px !important; font-size: 12px !important; }
}

@media (max-width: 380px) {
  body.trimal-editorial #after_article .p-authorBox,
  body.trimal-editorial #main_content .ed-author.p-authorBox,
  body.trimal-editorial #main_content .ed-author .p-authorBox,
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .c-widget { padding: 18px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) > .widget_search { padding: 0 !important; }
  body.trimal-editorial #after_article .p-relatedPosts .p-postList__link { grid-template-columns: 80px minmax(0, 1fr) !important; gap: 12px !important; }
  body.trimal-editorial #after_article .p-relatedPosts :is(.p-postList__thumb, .c-postThumb) { width: 80px !important; height: 60px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList .p-postList__link { grid-template-columns: 66px minmax(0, 1fr) !important; gap: 10px !important; }
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) .p-postList :is(.p-postList__thumb, .c-postThumb) { width: 66px !important; height: 52px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.trimal-editorial #after_article :is(a, img, span),
  body.trimal-editorial :is(#sidebar.ed-discovery, #footer .l-footer__widgetArea) :is(a, img),
  body.trimal-editorial #main_content :is(.ed-inline-follow, .ed-inline-consultation, .ed-newsletter) a { transition: none !important; }
}

/* Adapt the existing end-card script without adding a second promotional card. */
body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) {
  position: static !important;
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 38px 0 28px !important;
  padding: 20px 0 !important;
  border: 0 !important;
  border-top: 1px dashed var(--tail-line) !important;
  border-bottom: 1px dashed var(--tail-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  text-align: left !important;
}
body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) .trimal-end-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tail-ink) !important;
  font-family: var(--tail-round) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.8 !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) .trimal-end-description {
  margin: 0 0 9px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tail-muted) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.95 !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) .trimal-end-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tail-green) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.85 !important;
  text-align: left !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  transform: none !important;
}
body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) .trimal-end-note {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--tail-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) { margin: 30px 0 24px !important; padding: 18px 0 !important; }
  body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) .trimal-end-title { font-size: 16px !important; }
  body.trimal-editorial #main_content #trimal-article-end-cta:is(.ed-inline-follow, .ed-inline-consultation) .trimal-end-description { font-size: 14px !important; }
}

/* Protected article shells retain their public footer widgets. Reuse the
   discovery typography above; flatten only these layout wrappers, not content. */
body.trimal-editorial #footer .l-footer__widgetArea {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 44px 0 24px !important;
  border: 0 !important;
  background: transparent !important;
}
body.trimal-editorial #footer .l-footer__widgetArea > .w-footer {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 26px !important;
  box-sizing: border-box !important;
  width: calc(100% - 64px) !important;
  min-width: 0 !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.trimal-editorial #footer .l-footer__widgetArea .w-footer__box {
  display: contents !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.trimal-editorial #footer .l-footer__widgetArea .w-footer__box > .c-widget {
  position: static !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 25px !important;
  border: 1px solid var(--tail-line) !important;
  border-radius: 22px !important;
  background: #fffdf8 !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
}
body.trimal-editorial #footer .l-footer__widgetArea .w-footer__box > .widget_swell_popular_posts { order: 1 !important; background: var(--tail-mint) !important; }
body.trimal-editorial #footer .l-footer__widgetArea .widget_swell_new_posts { order: 2 !important; }
body.trimal-editorial #footer .l-footer__widgetArea .widget_categories { order: 3 !important; }
body.trimal-editorial #footer .l-footer__widgetArea .widget_tag_cloud { order: 4 !important; }
body.trimal-editorial #footer .l-footer__widgetArea .widget_categories form {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
/* The existing category widget is a native select; keep its behavior intact. */
body.trimal-editorial #footer .l-footer__widgetArea .widget_categories select {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 11px 36px 11px 14px !important;
  border: 1px solid #cddccd !important;
  border-radius: 10px !important;
  background-color: #f4f7ee !important;
  color: var(--tail-ink) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 16px !important;
  line-height: 1.6 !important;
  text-overflow: ellipsis;
}
body.trimal-editorial #footer .l-footer__widgetArea select:focus-visible {
  outline: 3px solid #a46b4e !important;
  outline-offset: 4px;
}
@media (max-width: 760px) {
  body.trimal-editorial #footer .l-footer__widgetArea { padding: 30px 0 18px !important; }
  body.trimal-editorial #footer .l-footer__widgetArea > .w-footer { grid-template-columns: minmax(0, 1fr) !important; width: calc(100% - 40px) !important; gap: 20px !important; }
  body.trimal-editorial #footer .l-footer__widgetArea .w-footer__box > .c-widget { padding: 22px !important; border-radius: 18px !important; }
}
@media (max-width: 380px) {
  body.trimal-editorial #footer .l-footer__widgetArea > .w-footer { width: calc(100% - 32px) !important; }
  body.trimal-editorial #footer .l-footer__widgetArea .w-footer__box > .c-widget { padding: 18px !important; }
}

/* Final visual alignment: quiet sharing controls, readable author destinations,
   and flat rank markers instead of the legacy metallic ribbons. */
body.trimal-editorial .ed-author .ed-author-links .c-iconList__link {
 width:auto!important;height:auto!important;min-height:36px!important;padding:5px 12px!important;
 border:1px solid #d9e5dd!important;border-radius:24px!important;background:#fffdf7!important;
 font-size:12px!important;line-height:1.7!important;text-decoration:none!important;
}
body.trimal-editorial .ed-author .ed-author-links .c-iconList__link::before,
body.trimal-editorial .ed-author .ed-author-links .c-iconList__link::after {content:none!important}
body.trimal-editorial :is(#sidebar.ed-discovery,.l-footer__widgetArea) .-w-ranking .p-postList__item::before {
 background:#396e5b!important;background-image:none!important;color:#fff!important;
 border-radius:50%!important;box-shadow:none!important;width:22px!important;height:22px!important;
 font:500 11px/22px sans-serif!important;left:6px!important;top:10px!important;text-align:center!important;
}
body.trimal-editorial #main_content .c-shareBtns.-bottom {margin:26px 0!important}
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__list {justify-content:center!important;gap:9px!important}
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__item {flex:none!important;width:40px!important;margin:0!important}
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__btn {
 width:40px!important;height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;
 border:1px solid #d9e5dd!important;border-radius:50%!important;background:#fffcf5!important;color:#396e5b!important;box-shadow:none!important;
}
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__message {font-size:12px!important;margin:0 0 10px!important;color:#59695f!important}
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__message .__text::before,
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__message .__text::after {content:none!important}
body.trimal-editorial [data-trimal-cta-replaced="true"] {display:none!important}

body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__btn :is(i,span),
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__btn :is(i,span)::before,
body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__btn::before {color:#396e5b!important;opacity:1!important}

body.trimal-editorial #main_content .c-shareBtns.-bottom .c-shareBtns__btn svg {fill:#396e5b!important;color:#396e5b!important}

/* Adopted after Opus review: override earlier ID-based circle dimensions. */
body.trimal-editorial :is(#after_article,#main_content) .ed-author .ed-author-links .c-iconList__link {
 width:auto!important;height:auto!important;min-width:0!important;min-height:36px!important;
 padding:5px 12px!important;border-radius:999px!important;white-space:nowrap!important;
 border:1px solid #d9e5dd!important;background:#fffdf7!important;font-size:12px!important;line-height:1.7!important;
}
body.trimal-editorial #main_content .ed-newsletter h2 {text-wrap:balance}
