/* =========================================================
   Cicado — Resources (listing + article template)
   Loads after the site stylesheet; uses its tokens.
   ========================================================= */

/* ---------- Listing: hero tools ---------- */
.res-hero .lead { max-width: 720px; }
.res-tools { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.res-search { position: relative; max-width: 520px; }
.res-search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--light); opacity: 0.8; pointer-events: none; }
.res-search input {
  width: 100%; min-height: 52px; box-sizing: border-box;
  padding: 14px 20px 14px 50px;
  font: 400 16px/22px var(--font-sans); color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.res-search input::placeholder { color: #aeb8c6; }
.res-search input:focus { outline: none; border-color: var(--enterprise-blue); background: rgba(255, 255, 255, 0.09); }
.res-search input:focus-visible { outline: 2px solid var(--enterprise-blue); outline-offset: 2px; }
.res-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.res-chip {
  min-height: 44px; padding: 10px 20px;
  font: 500 14px/20px var(--font-sans); color: var(--white);
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-pill);
  cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.res-chip:hover { border-color: var(--enterprise-blue); }
.res-chip.on { background: var(--enterprise-blue); border-color: var(--enterprise-blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Listing: featured ---------- */
.res-featured {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-panel);
  overflow: hidden; text-decoration: none; color: var(--slate); margin-bottom: 60px;
  transition: border-color 0.3s ease;
}
.res-featured:hover { border-color: var(--enterprise-blue); }
.res-featured .res-img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.res-featured .res-body { padding: 44px 44px 40px; justify-content: center; }
.res-featured h3 { font-size: 30px; line-height: 1.18; }
.res-featured .res-excerpt { font-size: 18px; line-height: 28px; }
.res-flag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/18px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--deep-navy); background: var(--light); border-radius: var(--radius-pill);
  padding: 6px 14px; margin-bottom: 18px;
}
.res-flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--alert-red); }

/* ---------- Listing: grid + cards ---------- */
.res-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.res-count { font-size: 15px; line-height: 22px; color: var(--steel-gray); }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.res-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-panel); overflow: hidden;
  text-decoration: none; color: var(--slate); transition: border-color 0.3s ease;
}
a.res-card:hover { border-color: var(--enterprise-blue); }
a.res-card:hover .res-go, .res-featured:hover .res-go { gap: 12px; }
.res-img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; display: block; background: var(--deep-navy); }
.res-ph {
  width: 100%; aspect-ratio: 1.9 / 1; background: var(--deep-navy) url("../img/2090ac1436cdb325673f93730e3e485c.webp") center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--light); font: 500 13px/18px var(--font-sans); letter-spacing: 0.02em;
}
.res-ph .ico { width: 34px; height: 34px; color: var(--enterprise-blue); }
.res-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 28px 28px 26px; }
.res-tag { display: block; font: 700 12px/18px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--enterprise-blue); margin-bottom: 10px; }
.res-card h3, .res-featured h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 27px; color: var(--deep-navy); margin: 0 0 12px; }
.res-excerpt { font-size: 16px; line-height: 25px; font-weight: 300; color: var(--slate); margin: 0 0 22px; }
.res-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--light); font-size: 14px; line-height: 20px; color: var(--steel-gray); }
.res-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--enterprise-blue); transition: gap 0.3s ease; white-space: nowrap; }
.res-card.draft { border-style: dashed; }
.res-card.draft h3, .res-card.draft .res-excerpt { color: var(--steel-gray); }
.res-soon { font-weight: 600; color: var(--steel-gray); }
.res-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--radius-panel); }
.res-empty h3 { font: 600 20px/27px var(--font-display); color: var(--deep-navy); margin-bottom: 10px; }
.res-empty p { color: var(--slate); font-weight: 300; margin-bottom: 22px; }
.res-empty .btn { color: var(--enterprise-blue); }

/* Audience band */
.res-aud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.res-aud .card { background: var(--slate); }
.res-aud .card h3 { color: var(--white); }
.res-aud .card p { color: var(--light); }

/* ---------- Article ---------- */
.art-hero { padding-bottom: 150px; }
.art-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--light); margin-bottom: 26px; }
.art-crumbs a { color: var(--light); text-decoration: underline; text-underline-offset: 3px; }
.art-crumbs a:hover { color: var(--white); }
.art-crumbs .ico { width: 14px; height: 14px; opacity: 0.7; }
.art-hero h1 { max-width: 980px; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; font-size: 15px; line-height: 22px; color: var(--light); }
.art-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--enterprise-blue); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--font-display); flex: 0 0 auto; }
.art-author-line { display: flex; align-items: center; gap: 14px; }
.art-author-line b { display: block; color: var(--white); font-weight: 600; }
.art-author-line a { color: var(--white); text-underline-offset: 3px; }
.art-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel-gray); }
.art-cover-wrap { margin-top: -110px; position: relative; z-index: 3; }
.art-cover { width: 100%; height: auto; aspect-ratio: 1732 / 908; object-fit: cover; border-radius: var(--radius-media); display: block; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: start; margin-top: 70px; }
.art-body { max-width: 720px; color: var(--slate); }
.art-body p { font-size: 18px; line-height: 30px; font-weight: 300; margin: 0 0 22px; }
.art-body p.art-intro { font-size: 21px; line-height: 33px; font-weight: 400; color: var(--deep-navy); }
.art-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.22; color: var(--deep-navy); margin: 52px 0 18px; scroll-margin-top: 30px; }
.art-body strong { font-weight: 600; color: var(--deep-navy); }
.art-body a { color: var(--enterprise-blue); text-underline-offset: 3px; }
.art-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 30px 0 30px; }
.art-stat div { background: var(--light); border-radius: var(--radius-card); padding: 24px 26px; }
.art-stat b { display: block; font: 600 32px/1.1 var(--font-display); color: var(--deep-navy); }
.art-stat span { display: block; margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--slate); }
.art-quote {
  position: relative; margin: 40px 0 26px; padding: 40px 44px; border-radius: var(--radius-panel);
  background: var(--deep-navy); color: var(--white);
}
.art-quote::before { content: ""; position: absolute; top: 26px; right: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--alert-red); }
.art-quote .eyebrow { margin-bottom: 14px; }
.art-quote p { font: 600 24px/34px var(--font-display); color: var(--white); margin: 0; }
.art-author {
  display: flex; gap: 22px; align-items: flex-start; margin-top: 56px; padding: 30px;
  border: 1px solid var(--border); border-radius: var(--radius-panel);
}
.art-author .art-avatar { width: 64px; height: 64px; font-size: 20px; }
.art-author h3 { font: 600 20px/26px var(--font-display); color: var(--deep-navy); margin-bottom: 4px; }
.art-author .role { font-size: 15px; line-height: 22px; color: var(--steel-gray); margin-bottom: 12px; }
.art-author p { font-size: 16px; line-height: 25px; font-weight: 300; color: var(--slate); margin: 0; }
.art-author a { color: var(--enterprise-blue); font-weight: 600; text-underline-offset: 3px; }
.art-aside { position: sticky; top: 30px; display: flex; flex-direction: column; gap: 24px; }
.art-toc { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.art-toc h2 { font: 700 12px/18px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--enterprise-blue); margin-bottom: 14px; }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.art-toc a { display: block; padding: 7px 0; font-size: 15px; line-height: 21px; color: var(--slate); text-decoration: none; transition: color 0.4s ease-in; }
.art-toc a:hover { color: var(--enterprise-blue); }
.art-side-cta { background: var(--enterprise-blue); color: var(--white); border-radius: var(--radius-card); padding: 28px; position: relative; }
.art-side-cta::after { content: ""; position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--alert-red); }
.art-side-cta h3 { font: 700 20px/26px var(--font-display); margin-bottom: 10px; }
.art-side-cta p { font-size: 15px; line-height: 22px; font-weight: 300; margin-bottom: 20px; }
.art-side-cta .btn { width: 100%; padding-left: 18px; padding-right: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art-aside { position: static; }
  .art-body { max-width: none; }
}
@media (max-width: 960px) {
  .res-featured { grid-template-columns: minmax(0, 1fr); }
  .res-featured .res-img { height: auto; min-height: 0; aspect-ratio: 1.9 / 1; }
  .res-featured .res-body { padding: 30px 28px; }
  .res-featured h3 { font-size: 24px; }
  .res-grid, .res-aud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .res-grid, .res-aud { grid-template-columns: minmax(0, 1fr); }
  .art-hero { padding-bottom: 110px; }
  .art-cover-wrap { margin-top: -80px; }
  .art-cover { border-radius: var(--radius-card); }
  .art-body p { font-size: 17px; line-height: 28px; }
  .art-body p.art-intro { font-size: 19px; line-height: 30px; }
  .art-body h2 { font-size: 24px; margin-top: 42px; }
  .art-stat { grid-template-columns: minmax(0, 1fr); }
  .art-quote { padding: 30px 26px; }
  .art-quote p { font-size: 20px; line-height: 29px; }
  .art-author { flex-direction: column; }
}
