:root{
  --viz-yellow:#fcd255;
  --viz-red:#fd4f40;
  --viz-black:#292929;
  --viz-dark:#222222;
  --viz-grey:#cccccc;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:#111;
  background:#ffffff;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* ================= HEADER ================= */

.vizHeader{
  background:var(--viz-yellow);
  padding:22px 0;
}

.vizHeaderRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.vizLogo{
  height:46px;
}

.vizHeaderBtns{
  display:flex;
  gap:18px;
}

.vizBtn{
  padding:16px 30px;
  border-radius:10px;
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  min-width:150px;
  transition:opacity 0.2s ease;
}

.vizBtn:hover{ opacity:0.9; }

.vizBtnDark{
  background:var(--viz-black);
  color:#fff;
}

.vizBtnRed{
  background:var(--viz-red);
  color:#fff;
}

/* ================= MAIN LOOKUP ================= */

.vizMain{
  background:#f5f5f5;
  padding:80px 0;
}

.lookupCard{
  background:#ffffff;
  padding:50px;
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

.lookupCard h1{
  margin:0 0 10px 0;
  font-size:32px;
}

.lookupSub{
  margin:0 0 24px 0;
  color:#555;
}

.tableWrap{
  margin-top:10px;
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th{
  background:#111111;
  color:#ffffff;
  text-align:left;
  padding:14px;
  font-weight:600;
}

td{
  padding:14px;
  border-bottom:1px solid #eeeeee;
}

td a{
  color:#2970ff;
  text-decoration:none;
}

td a:hover{
  text-decoration:underline;
}

/* ================= FOOTER ================= */

.vizFooter{
  background:var(--viz-dark);
  color:var(--viz-grey);
  padding:90px 0 60px;
}

.vizFooterGrid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap:60px;
  margin-bottom:50px;
}

.vizFooter h3{
  color:#ffffff;
  margin-top:0;
  margin-bottom:18px;
  font-size:18px;
}

.vizFooter a{
  display:block;
  color:var(--viz-grey);
  text-decoration:none;
  margin-bottom:12px;
  font-size:15px;
}

.vizFooter a:hover{
  color:#ffffff;
}

.vizFooterLogo{
  height:44px;
}

.vizFooterDesc{
  margin-top:20px;
  max-width:420px;
  line-height:1.6;
}

.vizFooterBottom{
  border-top:1px solid #444444;
  padding-top:40px;
  font-size:14px;
  line-height:1.7;
}

.vizFooterBottom p{
  margin:0 0 18px 0;
}

.vizFooterBottom a{
  display:inline;
  margin:0;
  text-decoration:underline;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px){
  .vizFooterGrid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 600px){
  .vizHeaderRow{
    flex-direction:column;
    gap:20px;
  }
  .vizFooterGrid{ grid-template-columns:1fr; }
  .lookupCard{ padding:28px; }
}

/* ===== LOOKUP SEARCH ===== */

.lookupInput {
  width: 100%;
  max-width: 600px;
  padding: 14px 16px;
  margin: 20px 0 24px 0;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  outline: none;
  transition: all 0.2s ease;
}

.lookupInput:focus {
  border-color: #ff4d4f; /* VIZ red vibe */
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15);
}

/* ===== TABLE ===== */

.tableWrap {
  overflow-x: auto;
}

#occTable {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

#occTable thead {
  background: #111111;
  color: #ffffff;
}

#occTable th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

#occTable td {
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
}

#occTable tbody tr {
  transition: background 0.15s ease;
}

#occTable tbody tr:hover {
  background: #fafafa;
}

/* Code column */
#occTable td:first-child {
  font-weight: 600;
  color: #444;
  width: 120px;
}

/* Link column */
#occTable td:last-child {
  width: 120px;
}

#occTable a {
  text-decoration: none;
  font-weight: 600;
  color: #ff4d4f;
}

#occTable a:hover {
  text-decoration: underline;
}

/* Empty state */
#occTable tbody tr td[colspan] {
  text-align: center;
  padding: 30px;
  color: #777;
  font-style: italic;
}

/* hard reset table layout so it behaves */
#occTable { width:100%; table-layout: fixed; border-collapse: collapse; }
#occTable th, #occTable td { display: table-cell; vertical-align: top; }

#occTable th:nth-child(1), #occTable td:nth-child(1) { width: 140px; }
#occTable th:nth-child(3), #occTable td:nth-child(3) { width: 120px; }

.occCode { font-weight: 700; color:#333; }
.occTitle { white-space: normal; overflow-wrap: anywhere; }
.occName { font-weight: 800; margin-bottom: 6px; }

.occAlts, .occSummary, .occActs {
  font-size: 13px;
  opacity: .9;
  margin-top: 6px;
  line-height: 1.35;
  max-height: none;     /* no cut-off */
  overflow: visible;    /* show all */
}

.occLink a { font-weight: 700; }
.occEmpty { text-align:center; padding: 28px; color:#777; font-style: italic; }

.occViewBtn{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}
.occViewBtn:hover{ filter: brightness(0.98); }

.occDetail{
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}
.occDetailHead{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  margin-bottom:10px;
}
.occDetailTitle{ font-size: 20px; font-weight: 800; }
.occDetailCode{ color:#666; }
.occDetailRow{ margin-top: 10px; line-height: 1.45; }
.occDetailRaw{ margin-top: 12px; }
.occDetailRaw pre{
  margin-top: 10px;
  padding: 12px;
  background:#f7f7f7;
  border-radius: 12px;
  overflow:auto;
}

.occDetailCell{
  padding: 0;
  border-top: none;
}

.occInlineDetail{
  margin: 10px 0 12px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}

.occInlineHead{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
  margin-bottom:10px;
}

.occInlineTitle{ font-size: 18px; font-weight: 800; }
.occInlineCode{ color:#666; }
.occInlineRow{ margin-top: 8px; line-height: 1.45; }

.occInlineRaw{ margin-top: 10px; }
.occInlineRaw pre{
  margin-top: 8px;
  padding: 12px;
  background:#f7f7f7;
  border-radius: 12px;
  overflow:auto;
}

/* ===== ABS-LIKE DETAIL (MVP002 polish) ===== */

.occDetailCell{
  padding: 0;
  border: none;
}

.occInlineDetailAbs{
  padding: 24px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.occAbsTitle{
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: flex-start;
}

.occAbsCode{
  font-weight: 700;
  color: #111;
}

.occAbsName{
  font-weight: 700;
  color: #111;
}

.occAbsP{
  margin: 10px 0;
  line-height: 1.7;
  color: #222;
  font-size: 14px;
}

.occAbsNote{
  margin-top: 14px;
  color: #222;
}

.occAbsH{
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.occAbsList{
  margin: 0 0 14px 18px;
  padding: 0;
  list-style: disc;
}

.occAbsList li{
  margin: 6px 0;
  line-height: 1.7;
  color: #222;
  font-size: 14px;
}

/* Force ABS detail to normal text */
.occInlineDetailAbs,
.occInlineDetailAbs *{
  font-style: normal !important;
  font-weight: 400;
}

.occAbsTitle,
.occAbsH{
  font-weight: 700 !important;
}

/* Search term highlight */
.occHighlight{
  font-weight: 900;
  background: #fcd255;
  border-radius: 2px;
  color: #111;
}

/* ===== MOBILE: turn results table into stacked cards ===== */
@media (max-width: 600px){

  /* kill table behavior */
  #occTable { display:block; }
  #occTable thead { display:none; }
  #occTable tbody { display:block; }
  #occTable tr.occRow{
    display:block;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #eee;
  }
  #occTable td{
    display:block;
    width: 100% !important;
    border: none;
    padding: 0;
  }

  /* code + button row */
  #occTable td.occCode{
    font-size: 14px;
    font-weight: 700;
    color:#444;
    margin-bottom: 8px;
  }

  #occTable td.occLink{
    margin-top: 10px;
  }

  /* title area full width */
  .occTitle{
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* button full width for fat fingers */
  .occViewBtn{
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
  }

  /* detail row on mobile */
  tr.occDetailTr{ display:block; }
  tr.occDetailTr td{ display:block; width:100% !important; }
}

/* ===== MOBILE: fix detail card ===== */
@media (max-width: 600px){

  .occInlineDetailAbs{
    padding: 16px;
    border-radius: 8px;
  }

  /* title: left + smaller + wrap */
  .occAbsTitle{
    font-size: 20px;
    line-height: 1.2;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .occAbsCode{ font-size: 18px; }
  .occAbsName{ font-size: 18px; }

  .occAbsP,
  .occAbsList li{
    font-size: 14px;
    line-height: 1.6;
  }

  .occAbsH{
    font-size: 16px;
    margin: 18px 0 8px;
  }

  .occAbsList{
    margin-left: 18px;
  }
}

/* ===== MOBILE WIDTH FIX ===== */
@media (max-width: 600px){

  .wrap{
    padding: 0 14px;   /* less side padding */
  }

  .lookupCard{
    padding: 18px;     /* slimmer inner padding */
  }

  .occInlineDetailAbs{
    padding: 14px;
  }
}

/* ===== VALUE HOOK ===== */

.occValueHook{
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.occHookQ{
  margin-bottom: 14px;
  font-size: 15px;
}

.occHookBtns{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.occHookSearch{
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background:#fff;
  cursor:pointer;
}

.occHookSearch:hover{
  background:#f7f7f7;
}

/* Fix quote button inside detail hook */
.occValueHook .vizBtnRed{
  color: #fff !important;
  font-weight: 700;
}

/* ===== FAQ (VIZ-style accordion) ===== */
.faqSection{
  background:#fff;
  margin-top: 80px;
  padding:80px 0;
}

.faqWrap{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.faqKicker{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#111;
  margin-bottom:10px;
}

.faqTitle{
  font-size:52px;
  line-height:1.05;
  margin:0 0 34px 0;
  text-align:center;
  color:#111;
}

.faqList{
  width:100%;
  max-width:860px;
}

.faqItem{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  margin-bottom:16px;
  overflow:hidden;
}

.faqQ{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px;
  background:#fff;
  border:none;
  cursor:pointer;
  text-align:left;
  font-size:16px;
  font-weight:700;
  color:#111;
}

.faqIcon{
  font-size:26px;
  line-height:1;
  color:#111;
  flex:0 0 auto;
  width:28px;
  text-align:center;
}

.faqA{
  padding:0 24px 22px 24px;
}

.faqA p{
  margin:0;
  color:#222;
  line-height:1.75;
  font-size:15px;
}

/* open state */
.faqItem.isOpen{
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
}

/* mobile */
@media (max-width: 600px){
  .faqSection{ padding:60px 0; }
  .faqTitle{ font-size:34px; }
  .faqList{ max-width: 100%; }
  .faqQ{ padding:18px 18px; }
  .faqA{ padding:0 18px 18px 18px; }
}

/* Result meta */
.resultMeta{
  margin: -10px 0 14px;
  font-size: 14px;
  color: #444;
}
.resultMeta strong{ font-weight: 800; }

