/* EUNZ Signal 1.1 — reading and Classic Editor content. */
.entry-content a:not(.wp-block-button__link):not(.button):not([role="button"]){
  color:#184c9a;
  font-weight:650;
  text-decoration-line:underline;
  text-decoration-color:currentColor;
  text-decoration-thickness:1.5px;
  text-underline-offset:.22em;
  text-decoration-skip-ink:auto;
  overflow-wrap:anywhere;
}
.entry-content a:not(.wp-block-button__link):not(.button):not([role="button"]):hover{
  color:#103771;
  background-color:#e7efff;
  text-decoration-thickness:2px;
}
.entry-content a:not(.wp-block-button__link):not(.button):not([role="button"]):focus-visible{
  outline:3px solid #2860ad;
  outline-offset:3px;
  border-radius:2px;
  background:#e7efff;
}
.entry-content .eunz-link-row,
.entry-content .eunz-link-row-group{margin:24px 0;}
.entry-content .eunz-link-row>br,
.entry-content .eunz-link-row-group>br{display:none;}
.entry-content .eunz-link-row>strong,
.entry-content .eunz-link-row>em,
.entry-content .eunz-link-row>span,
.entry-content .eunz-link-row>b,
.entry-content .eunz-link-row>i,
.entry-content .eunz-link-row-group>strong,
.entry-content .eunz-link-row-group>em,
.entry-content .eunz-link-row-group>span,
.entry-content .eunz-link-row-group>b,
.entry-content .eunz-link-row-group>i{display:block;}
.entry-content a.eunz-link-card:not(.wp-block-button__link):not(.button){
  position:relative;
  display:block;
  width:100%;
  min-height:58px;
  margin:12px 0;
  padding:16px 56px 16px 19px;
  border:1px solid #b4c9e8;
  border-left:4px solid #27599d;
  border-radius:8px;
  background:#f0f5fd;
  color:#184580;
  font-size:1em;
  font-weight:700;
  font-style:normal;
  line-height:1.65;
  letter-spacing:normal;
  text-decoration-thickness:1px;
  box-shadow:0 2px 0 #143d7810;
  overflow-wrap:anywhere;
}
.entry-content a.eunz-link-card:not(.wp-block-button__link):not(.button)::after{
  content:"→";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#dce8fa;
  color:#184580;
  font-family:Arial,sans-serif;
  font-size:19px;
  line-height:1;
  text-decoration:none;
}
.entry-content a.eunz-link-card:not(.wp-block-button__link):not(.button):hover{
  background:#e5eefb;
  border-color:#6f95c8;
  border-left-color:#184580;
  color:#103771;
}
.entry-content .eunz-summary-box,
.entry-content .eunz-note-box{
  display:block;
  margin:28px 0;
  padding:22px 24px;
  border:1px solid #cddbb8;
  border-left:4px solid #66833b;
  border-radius:8px;
  background:#f0f5e8;
  color:#35462c;
}
.entry-content .eunz-note-box{
  border-color:#dfd2b3;
  border-left-color:#987231;
  background:#fbf7ec;
  color:#5b4b2e;
}
.entry-content .eunz-summary-box>:first-child,
.entry-content .eunz-note-box>:first-child{margin-top:0;}
.entry-content .eunz-summary-box>:last-child,
.entry-content .eunz-note-box>:last-child{margin-bottom:0;}
.entry-content .eunz-checklist{padding-left:0;list-style:none;}
.entry-content .eunz-checklist>li{position:relative;padding:4px 0 4px 31px;margin-bottom:8px;}
.entry-content .eunz-checklist>li::before{content:"✓";position:absolute;left:0;top:4px;font-weight:750;color:#476825;}
.entry-content .table-scroll:focus-visible,
.entry-content .wp-block-table:focus-visible{outline:3px solid #2860ad;outline-offset:4px;}
.entry-content h2,.entry-content h3{scroll-margin-top:16px;}
.admin-bar .entry-content h2,.admin-bar .entry-content h3{scroll-margin-top:48px;}

/* The list is hidden before initialization; JS sets the responsive default before revealing the TOC. */
.article-sidebar .toc-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 10px;}
.article-sidebar .toc-heading h2{margin:0;min-width:0;}
.toc-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid #bdcaae;border-radius:7px;background:#f5f8ee;color:#365322;font:inherit;font-size:12px;font-weight:700;line-height:1.4;cursor:pointer;}
.toc-toggle:hover{background:#e8efdc;border-color:#819963;}
.toc-toggle:focus-visible{outline:2px solid #476825;outline-offset:3px;}
.toc-toggle-icon{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);}
.toc-toggle[aria-expanded="true"] .toc-toggle-icon{transform:translateY(2px) rotate(225deg);}
.article-sidebar .toc-links[hidden]{display:none!important;}

/* The grid item must span the article height so that sticky can actually travel. */
@media(min-width:901px){
  .article-sidebar{align-self:stretch;min-width:0;--eunz-toc-top:24px;}
  .admin-bar .article-sidebar{--eunz-toc-top:56px;}
  .article-sidebar>.eunz-ad--sidebar{margin:0 0 28px;}
  .sidebar-sticky{position:sticky;top:var(--eunz-toc-top);max-height:calc(100vh - var(--eunz-toc-top) - 24px);}
  .article-sidebar .toc{
    margin-bottom:0;
    padding:7px 0 0 18px;
    max-height:calc(100vh - var(--eunz-toc-top) - 24px);
  }
  .article-sidebar .toc-links{
    max-height:calc(100vh - var(--eunz-toc-top) - 130px);
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#a8b898 transparent;
    padding-right:5px;
    scroll-behavior:auto;
  }
  .article-sidebar .toc-links a{
    padding:8px 10px;
    border-left:2px solid transparent;
    border-radius:0 5px 5px 0;
    color:#4b5c40;
  }
  .article-sidebar .toc-links a.is-active{
    color:#2d481b;
    background:#e8efdc;
    border-left-color:#6d893e;
    font-weight:750;
  }
  .article-sidebar .toc-links a.is-active::before{display:none;}
  .article-sidebar .toc-links a:focus-visible,
  .article-sidebar .toc-links:focus-visible{outline:2px solid #577632;outline-offset:-2px;}
  @supports(height:100dvh){
    .sidebar-sticky,.article-sidebar .toc{max-height:calc(100dvh - var(--eunz-toc-top) - 24px);}
    .article-sidebar .toc-links{max-height:calc(100dvh - var(--eunz-toc-top) - 130px);}
  }
}
@media(max-width:900px){
  .sidebar-sticky{position:static;max-height:none;}
  .article-sidebar .toc-links{max-height:none;overflow:visible;}
  .article-sidebar .toc-links a.is-active{color:#2d481b;font-weight:750;text-decoration:underline;text-underline-offset:3px;}
}
@media(max-width:700px){
  .entry-content a.eunz-link-card:not(.wp-block-button__link):not(.button){padding:15px 48px 15px 15px;font-size:15px;}
  .entry-content a.eunz-link-card:not(.wp-block-button__link):not(.button)::after{right:11px;width:25px;height:25px;font-size:17px;}
  .entry-content .eunz-summary-box,.entry-content .eunz-note-box{padding:18px 19px;}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto;}.toc-links{scroll-behavior:auto;}}
@media print{
  .entry-content a:not(.wp-block-button__link):not(.button):not([role="button"]){color:#000;background:transparent;}
  .entry-content a.eunz-link-card:not(.wp-block-button__link):not(.button){color:#000;background:#fff;border-color:#999;box-shadow:none;break-inside:avoid;}
  .entry-content .eunz-summary-box,.entry-content .eunz-note-box{break-inside:avoid;}
}
/* Comparison table links keep their compact, readable inline form. */
.entry-content table a.eunz-link-card:not(.wp-block-button__link):not(.button){
  display:inline;
  position:static;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font:inherit;
  font-weight:650;
  color:#184c9a;
  text-decoration:underline;
  text-underline-offset:.22em;
}
.entry-content table a.eunz-link-card:not(.wp-block-button__link):not(.button)::after{display:none;}
