/* The reference and practice directory starts after the news desk. */
.ec-news .lh-rail-link {
  display:inline-flex; align-items:center; gap:.6em; margin-top:15px;
  color:var(--teal); font-size:.92rem; font-weight:600; text-decoration:underline; text-underline-offset:4px;
}
.ec-news .lh-rail-link span { font-size:1.1em; text-decoration:none }
.ec-news .lh { --hub-nav-height:61px; background:#f8f5eb; }
.ec-news .lh-intro {
  display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap;
  gap:18px 38px; padding-block:clamp(44px,5.2vw,88px) clamp(25px,3.2vw,54px);
}
.ec-news .lh-intro h2 { font-size:clamp(2.4rem,4.45vw,5.2rem); line-height:1.04; }
.ec-news .lh-intro p {
  max-width:64ch; margin-top:14px; font-size:clamp(1rem,1.2vw,1.25rem); color:var(--muted);
}
.ec-news .lh-intro-link,.ec-news .lh-link,.ec-news .lh-sub-link,.ec-news .lh-news-return {
  color:var(--teal); text-decoration:underline; text-underline-offset:.25em; text-decoration-thickness:1px;
}
.ec-news .lh-intro-link,.ec-news .lh-link { font-weight:600; }
.ec-news .lh-intro-link { margin-bottom:3px; }
.ec-news .lh :is(.lh-intro-link,.lh-link,.lh-sub-link,.lh-topic,.lh-news-return):hover { text-decoration-thickness:2px; }
.ec-news .lh-nav {
  position:sticky; top:0; z-index:8; background:#fffcf3; border-block:1px solid #c6cbbb;
}
.ec-news .lh-nav-inner { min-height:58px; display:flex; align-items:center; gap:clamp(12px,2.2vw,40px); }
.ec-news .lh-nav-title { display:block; white-space:nowrap; font-weight:700; color:var(--ink); }
.ec-news .lh-jumps { display:flex; gap:clamp(13px,2.15vw,38px); align-items:stretch; align-self:stretch; }
.ec-news .lh-jumps a {
  display:flex; align-items:center; padding:8px 0 6px; border-bottom:3px solid transparent;
  color:var(--teal); font-weight:600; font-size:clamp(.88rem,1.05vw,1.05rem); white-space:nowrap;
}
.ec-news .lh-jumps a[aria-current="location"],.ec-news .lh-jumps a:hover { border-color:var(--teal); }
.ec-news .lh-select { display:none; }
.ec-news .lh-news-return { margin-left:auto; white-space:nowrap; font-size:.88rem; }
.ec-news .lh-section { padding-block:clamp(32px,3.3vw,66px); scroll-margin-top:calc(var(--hub-nav-height) + 5px); }
.ec-news .lh-section+.lh-section { border-top:1px solid #cfd4c6; }
.ec-news .lh-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; margin-bottom:clamp(17px,1.7vw,29px); }
.ec-news .lh-heading h3 { font-size:clamp(1.72rem,2.9vw,3.35rem); letter-spacing:-.047em; line-height:1.1; }
.ec-news .lh-heading a { font-size:.94rem; }
.ec-news .lh h4 { margin:0; color:inherit; line-height:1.19; letter-spacing:-.035em; }
.ec-news .lh-spreads { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,2vw,36px); }
.ec-news .lh-spread {
  background:var(--paper); display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  border:1px solid var(--line); border-radius:6px; overflow:hidden;
}
.ec-news .lh-spread-art { display:grid; align-items:center; min-width:0; min-height:190px; background:#fff; padding:clamp(9px,1vw,20px); }
.ec-news .lh-spread-art img { width:100%; aspect-ratio:3/2; object-fit:contain; height:auto; }
.ec-news .lh-concepts { background:#f3ebd9; }
.ec-news .lh-spread-copy { padding:clamp(18px,1.8vw,32px); display:flex; flex-direction:column; }
.ec-news .lh-spread-copy h4,.ec-news .lh-product h4 { font-size:clamp(1.26rem,1.65vw,2rem); }
.ec-news .lh-spread-copy p,.ec-news .lh-product-copy p { color:var(--muted); margin:9px 0 15px; max-width:54ch; }
.ec-news .lh-actions { margin-top:auto; display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.ec-news .lh-sub-link { font-size:.88rem; }
.ec-news .lh-practise { background:#e9f0e6; }
.ec-news .lh-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,1.5vw,24px); }
.ec-news .lh-tool {
  display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); align-items:center;
  background:#fffdf6; border:1px solid #c9d3c6; border-radius:5px; overflow:hidden;
}
.ec-news .lh-tool-art { align-self:center; margin-left:12px; }
.ec-news .lh-tool-art img { aspect-ratio:3/2; object-fit:cover; border-radius:2px; }
.ec-news .lh-tool-copy { padding:clamp(14px,1.4vw,24px); }
.ec-news .lh-tool h4 { font-size:clamp(1.12rem,1.4vw,1.7rem); color:var(--teal); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
.ec-news .lh-tool p { color:var(--muted); font-size:.95rem; margin-top:7px; }
.ec-news .lh-tool:hover,.ec-news .lh-product:hover { border-color:#679486; }
.ec-news .lh-tool:hover h4,.ec-news .lh-product:hover .lh-product-copy span { text-decoration-thickness:2px; }
.ec-news .lh-units { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(18px,2.15vw,36px); }
.ec-news .lh-unit { display:flex; flex-direction:column; align-items:start; border-top:4px solid var(--unit); padding:13px 0 5px; }
.ec-news .lh-unit-1 { --unit:#c57333; }.ec-news .lh-unit-2 { --unit:#cba42d; }.ec-news .lh-unit-3 { --unit:#588461; }.ec-news .lh-unit-4 { --unit:#91465d; }
.ec-news .lh-unit-no { color:var(--muted); font-size:.8rem; font-weight:600; }
.ec-news .lh-unit h4 { font-size:clamp(1.17rem,1.6vw,1.72rem); margin-top:5px; }
.ec-news .lh-unit ul { margin:14px 0 18px; display:grid; gap:7px; }
.ec-news a.lh-topic { color:var(--muted); text-decoration:underline; text-underline-offset:3px; font-size:.95rem; }
.ec-news .lh-unit>.lh-link { margin-top:auto; }
.ec-news .lh-case-link { display:flex; flex-wrap:wrap; gap:3px 13px; border-top:1px solid var(--line); margin-top:23px; padding-top:14px; font-size:.95rem; }
.ec-news .lh-shop { background:#efeddf; }
.ec-news .lh-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,32px); }
.ec-news .lh-product { border:1px solid #c7cebd; border-radius:6px; overflow:hidden; background:var(--paper); }
.ec-news .lh-product>a { height:100%; display:flex; flex-direction:column; }
.ec-news .lh-product-art img { aspect-ratio:3/2; object-fit:cover; display:block; width:100%; }
.ec-news .lh-product-copy { display:flex; flex-direction:column; align-items:flex-start; flex:1; padding:clamp(17px,1.6vw,28px); }
.ec-news .lh-product-copy span { color:var(--teal); text-decoration:underline; text-underline-offset:4px; font-weight:600; margin-top:auto; }
.ec-news .lh-taster { display:flex; flex-wrap:wrap; gap:15px; justify-content:space-between; align-items:center; background:#e6cf8a; padding:clamp(16px,1.8vw,32px); border-radius:5px; margin-top:clamp(16px,1.7vw,28px); }
.ec-news .lh-taster h4 { font-size:clamp(1.14rem,1.7vw,1.65rem); }
.ec-news .lh-taster p { margin-top:4px; }
.ec-news a.lh-taster-link { background:var(--teal); color:white; border-radius:4px; padding:10px 16px; font-size:.95rem; font-weight:600; }
.ec-news a.lh-taster-link:hover { background:#103d3a; }
@media (min-width:1600px) {
  .ec-news .lh-spread-art { min-height:244px; }
  .ec-news .lh-tool-art { margin:15px 0 15px 15px; }
  .ec-news .lh-tool-copy p { font-size:1rem; }
}
@media (max-width:1150px) {
  .ec-news .lh-spread { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
  .ec-news .lh-tools { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
  .ec-news .lh-nav-inner { flex-wrap:wrap; padding:8px 0; gap:5px 14px; }
  .ec-news .lh-jumps { flex-wrap:wrap; gap:4px 12px; }
  .ec-news .has-jump-select .lh-jumps { display:none; }
  .ec-news .has-jump-select .lh-nav-inner { flex-wrap:nowrap; }
  .ec-news .has-jump-select .lh-select { display:block; max-width:100%; min-width:0; width:13rem; padding:7px 8px; background:var(--paper); color:var(--ink); font-size:.9rem; border:1px solid #abb8ab; border-radius:4px; }
  .ec-news .lh-spread { grid-template-columns:1fr; }
  .ec-news .lh-spread-art { min-height:0; height:clamp(135px,25vw,200px); }
  .ec-news .lh-spread-art img { height:100%; min-height:0; }
  .ec-news .lh-units { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
  .ec-news .lh-tool { grid-template-columns:.71fr 1fr; }
}
@media (max-width:620px) {
  .ec-news .lh-tools { grid-template-columns:1fr; }
  .ec-news .lh-tool { grid-template-columns:clamp(105px,30%,160px) 1fr; }
  .ec-news .lh-spreads,.ec-news .lh-products { grid-template-columns:1fr; }
  .ec-news .lh-spread { grid-template-columns:minmax(100px,.72fr) minmax(0,1.28fr); }
  .ec-news .lh-spread-art { height:auto; }
  .ec-news .lh-spread-art img { height:auto; }
  .ec-news .lh-heading a { font-size:.88rem; }
  .ec-news .lh-unit ul,.ec-news .lh-unit>.lh-link { font-size:.9rem; }
  .ec-news .lh-news-return { font-size:.8rem; }
}
@media (max-width:440px) {
  .ec-news .lh-nav-title { font-size:.84rem; }
  .ec-news .lh-nav-inner { gap:8px; }
  .ec-news .has-jump-select .lh-select { flex:1; }
  .ec-news .lh-spread { grid-template-columns:1fr; }
  .ec-news .lh-spread-art { height:auto; max-height:none; }
  .ec-news .lh-spread-art img { height:auto; max-height:180px; }
  .ec-news .lh-units { gap:18px 15px; }
}

/* The toolbar remains visible to signed-in WordPress editors. */
@media (min-width:601px) {
  .admin-bar .ec-news .lh { --hub-toolbar-height:var(--wp-admin--admin-bar--height,32px); }
  .admin-bar .ec-news .lh-nav { top:var(--hub-toolbar-height); }
  .admin-bar .ec-news .lh-section { scroll-margin-top:calc(var(--hub-nav-height) + var(--hub-toolbar-height) + 5px); }
}
.ec-news .lh-spread-copy:only-child,.ec-news .lh-tool-copy:only-child { grid-column:1/-1; }
.ec-news .lh-product>div { height:100%; display:flex; flex-direction:column; }
.ec-news div.lh-tool h4 { text-decoration:none; }
