
/* =========================================================
   CEE Operations Directory — Reference-like green theme
   - Uses CSS variables so you can change green in admin
   ========================================================= */

:root{
  --ceeo-green: #14a058;
  --ceeo-green-700: #0b7a40;
  --ceeo-green-050: #eefbf3;
  --ceeo-text: #0f172a;
  --ceeo-muted: #475569;
  --ceeo-border: rgba(15, 23, 42, .10);
  --ceeo-border-2: rgba(15, 23, 42, .07);
  --ceeo-card: #ffffff;
  --ceeo-bg: #f5fbf7;
  --ceeo-radius: 16px;
  --ceeo-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

.ceeo-sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.ceeo-page{
  background: var(--ceeo-bg);
  padding: 18px 0 36px;
  color: var(--ceeo-text);
}

.ceeo-hero{
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(20,160,88,.22), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(20,160,88,.14), transparent 60%),
    linear-gradient(180deg, #ffffff, rgba(255,255,255,.2));
  border-bottom: 1px solid var(--ceeo-border-2);
}

.ceeo-hero__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 18px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: end;
}

.ceeo-hero__text h1{
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.ceeo-hero__text p{
  margin: 0;
  color: var(--ceeo-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}

.ceeo-hero__search{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.ceeo-search{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--ceeo-border);
  background: rgba(255,255,255,.9);
  outline: none;
  box-shadow: 0 8px 20px rgba(2,6,23,.05);
}
.ceeo-search:focus{
  border-color: rgba(20,160,88,.45);
  box-shadow: 0 0 0 5px rgba(20,160,88,.16), 0 8px 20px rgba(2,6,23,.05);
}

.ceeo-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

.ceeo-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .01em;
  border: 1px solid rgba(20,160,88,.25);
  background: var(--ceeo-green);
  color: #fff;
  box-shadow: 0 10px 20px rgba(20,160,88,.16);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.ceeo-btn:hover{ opacity: .96; transform: translateY(-1px); }
.ceeo-btn:active{ transform: translateY(0); }

.ceeo-btn--ghost{
  background: rgba(255,255,255,.9);
  color: var(--ceeo-green-700);
  border: 1px solid rgba(20,160,88,.25);
  box-shadow: none;
}

.ceeo-step{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 0;
}

.ceeo-step__head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  margin: 16px 0 12px;
}

.ceeo-step__num{
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--ceeo-green);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(20,160,88,.18);
}

.ceeo-step h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.ceeo-step p{
  margin: 4px 0 0;
  color: var(--ceeo-muted);
  font-size: 14px;
}

/* Tiles */
.ceeo-tiles{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ceeo-tile{
  appearance:none;
  border: 1px solid var(--ceeo-border);
  background: var(--ceeo-card);
  border-radius: var(--ceeo-radius);
  padding: 14px 12px 12px;
  text-align:left;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(2,6,23,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  position: relative;
  overflow:hidden;
  min-height: 128px;
}
.ceeo-tile:hover{
  transform: translateY(-2px);
  box-shadow: var(--ceeo-shadow);
  border-color: rgba(20,160,88,.25);
}
.ceeo-tile.is-active{
  border-color: rgba(20,160,88,.45);
  box-shadow: 0 0 0 5px rgba(20,160,88,.12), var(--ceeo-shadow);
}
.ceeo-tile__icon{
  width: 36px;
  height: 36px;
  color: var(--ceeo-green-700);
  display:inline-flex;
}
.ceeo-tile__icon svg{ width:36px;height:36px; }

.ceeo-tile__title{
  display:block;
  margin-top: 8px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.ceeo-tile__desc{
  display:block;
  margin-top: 4px;
  color: var(--ceeo-muted);
  font-size: 12px;
  line-height: 1.35;
}
.ceeo-tile__count{
  position:absolute;
  top: 12px;
  right: 12px;
  background: rgba(20,160,88,.10);
  color: var(--ceeo-green-700);
  border: 1px solid rgba(20,160,88,.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

/* Accordion */
.ceeo-accordion{ margin-top: 10px; }

.ceeo-sector{
  border: 1px solid var(--ceeo-border);
  border-radius: calc(var(--ceeo-radius) + 2px);
  overflow:hidden;
  background: var(--ceeo-card);
  margin-bottom: 12px;
  box-shadow: 0 10px 20px rgba(2,6,23,.04);
}

.ceeo-sector__header{
  width: 100%;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(20,160,88,.10), rgba(20,160,88,0));
  border: 0;
  cursor:pointer;
  font-weight: 900;
}
.ceeo-sector__left{ display:flex; align-items:center; gap: 10px; }
.ceeo-sector__dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ceeo-green);
  box-shadow: 0 0 0 4px rgba(20,160,88,.16);
}
.ceeo-sector__count{
  font-weight: 800;
  color: var(--ceeo-muted);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.04);
  border: 1px solid var(--ceeo-border-2);
}

.ceeo-sector__body{ display:none; padding: 12px 14px 16px; }
.ceeo-sector.is-open > .ceeo-sector__body{ display:block; }

.ceeo-family{
  border: 1px solid var(--ceeo-border-2);
  border-radius: 14px;
  overflow:hidden;
  margin-top: 10px;
  background: #fff;
}
.ceeo-family__header{
  width: 100%;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 12px 12px;
  background: #fff;
  border: 0;
  cursor:pointer;
  font-weight: 900;
}
.ceeo-family__title{ letter-spacing: -.01em; }

.ceeo-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20,160,88,.10);
  border: 1px solid rgba(20,160,88,.18);
  color: var(--ceeo-green-700);
  font-weight: 900;
  font-size: 12px;
}
.ceeo-family__body{ display:none; padding: 10px 10px 12px; background: #fff; }
.ceeo-family.is-open > .ceeo-family__body{ display:block; }

.ceeo-tablewrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid var(--ceeo-border-2);
}
.ceeo-table{
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.ceeo-table th, .ceeo-table td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--ceeo-border-2);
  vertical-align: top;
  background: #fff;
}
.ceeo-table thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfffd;
  text-align:left;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ceeo-muted);
}
.ceeo-code{
  font-weight: 1000;
  text-decoration: none;
  color: var(--ceeo-green-700);
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.ceeo-code__arrow{ opacity: .7; transition: transform .12s ease; }
.ceeo-code:hover .ceeo-code__arrow{ transform: translateX(2px); opacity: 1; }

/* Single template */
.ceeo-single{
  background: var(--ceeo-bg);
  padding: 18px 0 36px;
}
.ceeo-single__inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}
.ceeo-breadcrumb{
  font-size: 13px;
  color: var(--ceeo-muted);
  margin: 10px 0 14px;
}
.ceeo-breadcrumb a{ color: var(--ceeo-green-700); text-decoration:none; }
.ceeo-breadcrumb a:hover{ text-decoration: underline; }

.ceeo-single__header{
  background: #fff;
  border: 1px solid var(--ceeo-border);
  border-radius: var(--ceeo-radius);
  padding: 18px;
  box-shadow: var(--ceeo-shadow);
}
.ceeo-single__header h1{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}
.ceeo-badges{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ceeo-badge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20,160,88,.10);
  color: var(--ceeo-green-700);
  border: 1px solid rgba(20,160,88,.18);
  font-size: 12px;
  font-weight: 900;
}

.ceeo-single__cta{ margin: 0; }

.ceeo-single__content{
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--ceeo-border);
  border-radius: var(--ceeo-radius);
  padding: 18px;
  box-shadow: 0 10px 20px rgba(2,6,23,.04);
}
.ceeo-meta{
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 14px;
  background: #fbfffd;
  border: 1px solid var(--ceeo-border-2);
}
.ceeo-meta table{ width:100%; border-collapse: collapse; }
.ceeo-meta td{
  padding: 6px 8px;
  border-bottom: 1px solid var(--ceeo-border-2);
  font-size: 14px;
}
.ceeo-meta td:first-child{ width: 180px; color: var(--ceeo-muted); font-weight: 700; }
.ceeo-meta tr:last-child td{ border-bottom: 0; }

.ceeo-pdf__frame{
  margin-top: 10px;
  border: 1px solid var(--ceeo-border-2);
  border-radius: 14px;
  overflow:hidden;
  background: #f7faf9;
}
.ceeo-related{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--ceeo-border);
}
.ceeo-related__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.ceeo-related a{
  display:flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--ceeo-border-2);
  text-decoration:none;
  color: var(--ceeo-text);
  background: #fff;
}
.ceeo-related a:hover{
  border-color: rgba(20,160,88,.25);
  box-shadow: 0 10px 20px rgba(2,6,23,.04);
}
.ceeo-footer-note{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 0;
  color: var(--ceeo-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .ceeo-tiles{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ceeo-hero__inner{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .ceeo-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ceeo-tile{ min-height: 122px; }
  .ceeo-related__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ceeo-table{ min-width: 680px; }
}

.ceeo-name{ color: var(--ceeo-text); text-decoration: none; font-weight: 700; }
.ceeo-name:hover{ color: var(--ceeo-green-700); text-decoration: underline; }


/* Generated PDF content styling */
.ceeo-content{
  margin-top: 16px;
}

.ceeo-generated-inner{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}

/* Typography */
.ceeo-generated-inner p{
  font-size: 16px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.ceeo-generated-inner h2{
  margin: 32px 0 16px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ceeo-green-700);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(20, 160, 88, .15);
}

.ceeo-generated-inner h3{
  margin: 24px 0 12px;
  font-weight: 700;
  font-size: 18px;
  color: #0f172a;
}

/* Lists */
.ceeo-generated-inner ul, .ceeo-generated-inner ol{
  margin: 12px 0 20px 24px;
  padding: 0;
}
.ceeo-generated-inner li{
  margin: 8px 0;
  line-height: 1.6;
  color: #334155;
  padding-left: 6px;
}
.ceeo-generated-inner ul li::marker {
  color: var(--ceeo-green);
  font-weight: bold;
}

/* Tables */
.ceeo-table-wrapper{
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--ceeo-border-2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.02);
}

.ceeo-gen-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}

.ceeo-gen-table td{
  padding: 12px 16px;
  border-bottom: 1px solid var(--ceeo-border-2);
  color: #334155;
  vertical-align: top;
}

.ceeo-gen-table tr:last-child td{ border-bottom: 0; }

/* Striped rows for readability */
.ceeo-gen-table tr:nth-child(even){
  background: #f8fafc;
}

/* Try to detect key column (first cell) */
.ceeo-gen-table td:first-child{
  font-weight: 600;
  color: #0f172a;
  min-width: 150px;
  width: 30%;
}
.ceeo-gen-table td:first-child:empty{
  display:none; /* hide if empty leading col */
}

/* PDF Note */
.ceeo-pdfnote{
  background: #fff4f2;
  color: #bd1d1d;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(189, 29, 29, .2);
}

