/* ============================================
   OBSERVATORY — Review Viewer Styling
   Tight, clean, elegant layout for single.php
   ============================================ */
   
   :root {

  /* Greens */
  --ded-green-ultra-light: #e9f7f1;
  --ded-green-light: #d4f0e3;
  --ded-green: #8cd4b0;
  --ded-green-dark: #4fa37c;

  /* Blues */
  --ded-blue-ultra-light: #f7f8fc;
  --ded-blue-light: #e8ecff;
  --ded-blue-primary: #6BB7D6;
  --ded-blue-dark: #4A8CA8;
  --ded-blue-deeper: #2F6075;
  
    /* OBS Blues */
  --obs-blue-dark:   #223a66; /* your chosen base */
  --obs-blue-medium: #2d4a80; /* +15% brightness */
  --obs-blue-light:  #3b5c99; /* +30% brightness */

  /* Yellows & Oranges */
  --ded-yellow-ultra-light: #FFFEFA;
  --ded-yellow-light: #FCF6E2;
  --ded-yellow: #F2D77A;
  --ded-yellow-dark: #D9C067;

  --ded-orange: #ff841e;
  --ded-orange-light: #ffbe89;
  --ded-orange-ultra-light: #fad7bb;

  /* Hover variants */
  --ded-blue-ultra-light-hover: #d7dbf7;
  --ded-orange-ultra-light-hover: #f7c7a0;
   }
  
/* ============================================
   REVIEW VIEWER — PAGE BODY WRAPPER
   ============================================ */

.obs-review-body {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px 30px;

    background: #f9fafc; /* soft clinical grey-blue */
    border: 1px solid #e2e8f0; /* subtle border */
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.08); /* soft Observatory shadow */

    /* smooth edges */
    box-sizing: border-box;
}

.obs-review-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: system-ui, sans-serif;
    color: #222;
}

/* Section wrapper */
.obs-section {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Headings */
.obs-section h2,
.obs-section h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--ded-blue-dark);
}

.obs-section h1 {
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--ded-orange);
    text-align: center;
}

.obs-title {
    font-weight: 500;
    color: #1a1a1a;
    display: inline-block;
    min-width: 160px; /* keeps alignment tidy */
    text-transform: capitalize;
}

.obs-title-sm-cap {
    font-weight: 500;
    color: #1a1a1a;
    display: inline-block;
    min-width: 100px; /* keeps alignment tidy */
}

/* Treatment table */
.obs-treatment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.obs-treatment-table th {
    text-align: left;
    padding: 10px 8px;
    background: var(--ded-blue-ultra-light);
    color: var(--obs-blue-dark);
    font-weight: 600;
    border-bottom: 2px solid #d0d7e2;
}

.obs-treatment-table td {
    padding: 10px 8px;
    vertical-align: top;
    border-bottom: 1px solid #e3e3e3;
}



.obs-center {
    text-align: center;
    font-weight: 500;
}

/* Badge */
.obs-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #ded;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0a4;
    margin-bottom: 10px;
}

/* Divider */
.obs-divider {
    border: 0;
    border-top: 1px solid var(--ded-yellow-dark);
    margin: 30px 0;
}

/* Tight text */
.obs-section p {
    margin: 6px 0;
    line-height: 1.45;
}

/* Lists */
.obs-section ul {
    margin: 0;
    padding-left: 20px;
}

.obs-section li {
    margin: 4px 0;
}

/* Meta grid */
.obs-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* Score grid */
.obs-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.obs-score-grid div {
    background: #fafafa;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

/* Buttons */
.obs-button {
    display: inline-block;
    padding: 10px 16px;
    background: var(--ded-yellow-dark);
    color: #fff;
    border-radius: 6px;
    border: 1px solid var(--ded-orange);
    text-decoration: none;
    font-weight: 600;
    margin: 10px 0;
}

.obs-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.obs-cap {
    text-transform: capitalize;
    font-weight: 500;
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
}


.obs-button:hover {
    background: var(--ded-orange);
}

/* Title block */
.obs-title-block {
    margin-bottom: 10px;
}

.obs-title-block h2 {
    margin-bottom: 6px;
}

.obs-treatment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.obs-treatment-card {
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.obs-treatment-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0b1a33;
}

.obs-treatment-card-row {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.obs-material-chip {
    background: #eef3f9;
    border-color: #b8c4d4;
}

.obs-treatment-card-section {
    margin-top: 10px;
}

.obs-treatment-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 4px;
}

.obs-treatment-inline {
    font-size: 0.9rem;
    margin-top: 4px;
}

.obs-treatment-entry-separator {
    border-top: 1px solid #ddd;
    margin: 10px 0;
    width: 100%;
}


/* Story block */
.obs-story {
    font-size: 1rem;
    line-height: 1.55;
    white-space: pre-line;
}

/* Outcome highlight */
.obs-outcome {
    padding: 10px 14px;
    background: #f6faff;
    border-left: 4px solid #4a90e2;
    border-right: 1px solid #4a90e2;
    border-radius: 6px;
    margin-bottom: 12px;
}


/* Workflow steps */
.obs-workflow-step {
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.obs-outcome-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;

    align-items: center;        /* vertical centering */
    justify-items: center;      /* ⭐ horizontal centering */
}

.obs-outcome-item {
    display: flex;
    flex-direction: column;
    justify-content: center;    /* vertical centering inside cell */
    align-items: center;        /* ⭐ horizontal centering inside cell */
    text-align: center;         /* ensures label + value center nicely */
    margin-right:30px;
}

.obs-chip {
    margin-left: 0px !important;
}

.obs-workflow-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
    margin-top: 10px;
}

/* Grid layout */
.obs-workflow-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 30px;
    margin-top: 20px;
}

/* Individual workflow card */
.obs-workflow-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 15px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Heading */
.obs-workflow-card-label,
.obs-treatment-card-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Items */
.obs-workflow-card-items .obs-cap {
    margin-bottom: 4px;
}


.obs-workflow-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
    margin-top: 10px;
}

.obs-workflow-heading {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.obs-workflow-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.obs-workflow-items .obs-cap::before {
    content: "• ";
    color: #999;
}

.obs-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .obs-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.obs-score-wrap {
    display: inline-flex;
    gap: 4px; /* adjust to taste */
    align-items: center;
    white-space: nowrap;
}

.obs-score {
    font-size: 0.9em;
    opacity: 0.85;
}

@media print {

    .obs-success-header {
        display: none !important;
    }

}

