/* cne-ce.html — page-specific styles. */

.ce-consider-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
}
.ce-consider-group > .ce-consider-info {
    flex: none;
}

.ce-consider-info{ position:relative; display:inline-block; align-self:center; }
.ce-consider-info summary{ list-style:none; display:grid; place-items:center; width:18px; height:18px; font-size:12px; border:1.5px solid #a23560; border-radius:50%; color:#a23560; background:#fff; cursor:pointer; font-weight:700; font-family:Georgia,serif; }
.ce-consider-info summary::-webkit-details-marker{ display:none; }
.ce-consider-info summary:focus-visible{ outline:3px solid #a23560; outline-offset:3px; }
.ce-consider-info .ce-info-copy{ position:fixed; z-index:50; top:0; left:0; width:min(250px,calc(100vw - 24px)); box-sizing:border-box; padding:10px 12px; border:2px solid #e2c4d0; border-radius:12px; background:#fff; color:#273748; box-shadow:0 5px 20px #27374820; font-size:14px; line-height:1.6; }
.ce-info-copy p{ margin:0 0 8px; }
.ce-info-copy p:last-child{ margin:0; }


/* CNE narrow-screen layout — page-specific and independent of shared navigation. */
@media (max-width: 760px) {
  .ce-wrap { width: calc(100% - 32px); }
  .ce-section { padding-block: 34px; }
  .ce-section h2 { padding-inline: 0; }
  .ce-hero { overflow: hidden; }
  .ce-hero-copy { min-width: 0; }
  .ce-hero .nn-hero-title { font-size: clamp(30px, 7.5vw, 46px); line-height: 1.12; overflow-wrap: normal; }
  .ce-hero .nn-hero-lead { font-size: clamp(14px, 3.7vw, 16px); }
  .ce-shortcuts { margin-top: -14px; }
  .ce-shortcut-grid { padding: 12px; gap: 0; }
  .ce-shortcut { min-width: 0; }
  .ce-shortcut span { min-width: 0; }
  .ce-directory-head { margin-bottom: 20px; }
  .ce-date { white-space: normal; }
  .ce-tabs { gap: 7px; }
  .ce-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ce-filters > .ce-btn { grid-column: 1 / -1; }
  .ce-field, .ce-field input, .ce-field select { min-width: 0; box-sizing: border-box; }
  .ce-results-bar { align-items: flex-start; gap: 4px; }
  #resourceList .ce-resource { min-width: 0; }
  #resourceList .ce-resource-copy { min-width: 0; overflow-wrap: anywhere; }
  #resourceList .ce-resource h3 { overflow-wrap: anywhere; }
  .ce-guide .ce-two-column, .ce-two-column, #certifications .ce-two-column { min-width: 0; }
  .ce-two-column > * { min-width: 0; }
  .ce-record-summary { gap: 14px; }
  .ce-record-toolbar { gap: 8px; }
  .ce-record-toolbar .ce-btn { max-width: 100%; white-space: normal; }
  .ce-table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
  .ce-pagination { gap: 6px; }
}
@media (max-width: 420px) {
  .ce-wrap { width: calc(100% - 28px); }
  .ce-hero .nn-hero-title { font-size: clamp(29px, 8.8vw, 36px); }
  .ce-hero-photo { object-position: 58% center; opacity: .43; }
  .ce-hero::before { background: linear-gradient(90deg, rgba(252,244,246,.93), rgba(252,244,246,.76)); }
  .ce-shortcut-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 8px; }
  .ce-shortcut-grid .ce-shortcut { padding: 12px 9px; display: flex; align-items: flex-start; gap: 7px; }
  .ce-shortcut i { font-size: 16px; margin-top: 3px; }
  .ce-shortcut strong { font-size: 13px; line-height: 1.35; }
  .ce-shortcut span span { font-size: 11px; line-height: 1.45; }
  .ce-shortcut-grid .ce-shortcut:nth-child(odd) { border-right: 1px solid #ebdfe4; }
  .ce-shortcut-grid .ce-shortcut:nth-child(n+3) { border-top: 1px solid #ebdfe4; }
  .ce-filters { grid-template-columns: minmax(0,1fr); padding: 14px; }
  .ce-filters .ce-field:first-child, .ce-filters > .ce-btn { grid-column: auto; }
  .ce-filters > .ce-btn { width: 100%; }
  #resourceList .ce-resource { grid-template-columns: 32px minmax(0,1fr); gap: 8px 10px; padding: 15px 14px; }
  #resourceList .ce-resource-symbol { width: 32px; height: 32px; font-size: 16px; }
  #resourceList .ce-resource h3 { font-size: 16px; }
  #resourceList .ce-resource-meta { gap: 7px; padding-top: 11px; }
  #resourceList .ce-resource-meta strong { font-size: 14px; }
  .ce-record-summary { grid-template-columns: minmax(0,1fr); }
  .ce-record-total, .ce-record-total:last-child { grid-column: 1; padding-left: 12px; }
  .ce-record-panel { padding: 12px; }
  .ce-record-toolbar .ce-btn { flex: 1 1 100%; }
  .ce-pagination .ce-btn { min-width: 30px; padding-inline: 8px; }
  .ce-page-numbers { gap: 3px; }
}

/* CNE hero only: on phone/tablet, place the existing image behind the copy.
   Keeps the shared desktop hero unchanged and does not affect other pages. */
@media (max-width: 900px) {
  /* The hero actions replace the shortcut cards on narrow screens. */
  .nn-cne-open-shortcuts { display: none; }
  /* Keep the useful bookmark instruction, hide only the repetitive introduction. */
  .cne-directory-introduction { display: none; }
  .nn-cne-open-hero {
    position: relative;
    isolation: isolate;
  }
  .nn-cne-open-hero .nn-open-hero__inner {
    display: block;
    min-height: 0;
  }
  .nn-cne-open-hero .nn-open-hero__copy {
    position: relative;
    z-index: 2;
  }
  .nn-cne-open-hero .nn-open-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    transform: none;
    pointer-events: none;
  }
  .nn-cne-open-hero .nn-open-hero__backdrop { display: none; }
  .nn-cne-open-hero .nn-open-hero__visual img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
    border-radius: 0;
    opacity: .46;
  }
  .nn-cne-open-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,249,251,.84), rgba(255,249,251,.58));
  }
}
