/* Scoped to the block: legacy article tables keep their existing layout. */
.dainote-comparison.dainote-comparison { width: 100%; max-width: 100%; min-width: 0; margin: 28px 0; color: #263c38; }
.dainote-comparison .dainote-comparison__caption { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.dainote-comparison .dainote-comparison__scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border: 1px solid #cdded8; border-radius: 8px; }
.dainote-comparison .dainote-comparison__scroll:focus-visible { outline: 3px solid #16856b; outline-offset: 3px; }
.dainote-comparison .dainote-comparison__table { width: 100%; min-width: calc(var(--comparison-count) * 112px + 120px); table-layout: fixed; border-collapse: collapse; margin: 0; font-size: 14px; line-height: 1.65; }
.dainote-comparison .dainote-comparison__table :is(th, td) { position: static; width: auto; min-width: 0; padding: 12px 9px; border: 1px solid #dce7e2; white-space: pre-line; overflow-wrap: anywhere; text-align: center; vertical-align: middle; background: #fff; }
.dainote-comparison .dainote-comparison__table .dainote-comparison__label { width: 120px; background: #edf5f1; font-weight: 700; }
.dainote-comparison .dainote-comparison__table thead th { background: #f4faf7; }
/* Company-name wrapping must not move the rank and logo in adjacent columns. */
.dainote-comparison .dainote-comparison__table thead th:not(.dainote-comparison__label) { vertical-align: top; }
/* Carry the first-place highlight through every metric and the final CTA. */
.dainote-comparison .dainote-comparison__table > :is(thead, tbody, tfoot) > tr:not(.dainote-comparison__band) > :nth-child(2) { background: #fff8e3; }
.dainote-comparison .dainote-comparison__rank { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 15px; color: #596c65; font-weight: 700; margin-bottom: 8px; white-space: nowrap; }
.dainote-comparison thead th:nth-child(2) .dainote-comparison__rank { color: #956900; --comparison-crown: #cf9800; }
.dainote-comparison thead th:nth-child(3) .dainote-comparison__rank { color: #5c6977; --comparison-crown: #8796a6; }
.dainote-comparison thead th:nth-child(4) .dainote-comparison__rank { color: #925a2d; --comparison-crown: #b9773d; }
/* Decorative CSS crowns preserve saved block HTML and the readable rank text. */
.dainote-comparison thead th:nth-child(n+2):nth-child(-n+4) .dainote-comparison__rank::before {
  content: ""; display: block; flex: 0 0 20px; width: 20px; height: 20px; background: var(--comparison-crown);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 6 5 5 4-8 4 8 5-5-2 12H5L3 6Zm2 14h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m3 6 5 5 4-8 4 8 5-5-2 12H5L3 6Zm2 14h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dainote-comparison .dainote-comparison__logo { display: block; width: 100%; max-width: 160px; height: 50px; object-fit: contain; margin: 0 auto 10px; background: #fff; }
.dainote-comparison .dainote-comparison__name { display: block; font-weight: 700; color: #08715e; line-height: 1.5; }
.dainote-comparison .dainote-comparison__rating { display: block; width: 30px; height: 30px; margin: 0 auto 6px; line-height: 0; }
.dainote-comparison .dainote-comparison__rating svg { display: block; width: 100%; height: 100%; }
.dainote-comparison .dainote-comparison__rating--excellent { color: #d13d40; }
.dainote-comparison .dainote-comparison__rating--good { color: #a86408; }
.dainote-comparison .dainote-comparison__rating--fair { color: #356cab; }
.dainote-comparison .dainote-comparison__cta { display: block; background: #ef7b2d; color: #fff; border-radius: 5px; padding: 10px 4px; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.5; }
/* Override article link decoration without changing ordinary text links. */
.dainote-comparison .dainote-comparison__table a.dainote-comparison__cta { text-decoration: none; }
.dainote-comparison a:hover { opacity: .8; }
.dainote-comparison .dainote-comparison__band, .dainote-comparison .dainote-comparison__compact { display: none; }
.dainote-comparison .dainote-comparison__note { margin: 10px 0 0; color: #596c65; font-size: 12px; white-space: pre-line; line-height: 1.7; }
.dainote-comparison .dainote-comparison__hint { margin: 0 0 8px; font-size: 12px; color: #53675f; text-align: right; }
.dainote-comparison .dainote-comparison__hint[hidden] { display: none; }
.dainote-comparison-editor__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 767px) {
  .dainote-comparison .dainote-comparison__caption { font-size: 17px; }
  .dainote-comparison .dainote-comparison__table { display: block; min-width: calc(var(--comparison-count) * 64px); font-size: 12px; }
  .dainote-comparison .dainote-comparison__table :is(thead, tbody, tfoot) { display: block; }
  .dainote-comparison .dainote-comparison__table tr { display: grid; grid-template-columns: repeat(var(--comparison-count), minmax(0, 1fr)); position: relative; }
  .dainote-comparison .dainote-comparison__table :is(th, td) { display: block; padding: 10px 4px; font-size: 12px; line-height: 1.55; }
  /* Keep semantic row headers in the table for screen readers without taking a company column. */
  .dainote-comparison .dainote-comparison__table .dainote-comparison__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; border: 0; white-space: nowrap; }
  .dainote-comparison .dainote-comparison__table .dainote-comparison__band { display: block; }
  .dainote-comparison .dainote-comparison__table .dainote-comparison__band th { width: 100%; background: #e1eee8; padding: 7px 8px; font-weight: 700; }
  .dainote-comparison .dainote-comparison__rank { font-size: 13px; gap: 2px; margin-bottom: 6px; }
  .dainote-comparison thead th:nth-child(n+2):nth-child(-n+4) .dainote-comparison__rank::before { flex-basis: 14px; width: 14px; height: 14px; }
  .dainote-comparison .dainote-comparison__logo { height: 32px; margin-bottom: 8px; }
  .dainote-comparison .dainote-comparison__name { font-size: 12px; }
  .dainote-comparison .dainote-comparison__rating { width: 24px; height: 24px; margin-bottom: 6px; }
  .dainote-comparison .dainote-comparison__cta { padding: 9px 3px; font-size: 12px; }
  .dainote-comparison .dainote-comparison__full { display: none; }
  .dainote-comparison .dainote-comparison__compact { display: inline; }
}
