@charset "utf-8";
/* CSS Document */

.document-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    background: #F5F5F7;
}

#first-page .running-header {
    display: none !important;
}

/* The actual Paper Page */
.paper-page {
    background: white;
    width: 8.5in;       
    height: 11in;       
    padding: 0.5in;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden; 
    position: relative;
    
    font-size: 15px;
    line-height: 24px; 
    border-top: 2px solid #D2D2D2;
    margin-bottom: 2em;
}

/* The Layout Wrapper */
.page-columns-wrapper {
    column-count: 2;
    column-fill: auto;
    column-gap: 34px;
    width: 100%;
    box-sizing: border-box;
    height: 864px;
    margin-top: 24px;
}

#first-page .page-columns-wrapper,
#first-page #first-page-columns {
    margin-top: 0; /* Keep it at the top since there's no header here */
}

#first-page #first-page-columns {
    height: 574px !important;
}

.page-columns-wrapper > * {
    margin-top: 0;
    margin-bottom: 12px; 
    font-size: 13px;
    line-height: 16px;
    text-align: justify;
}

.page-columns-wrapper ul, 
.page-columns-wrapper ol {
    padding-left: 24px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.page-columns-wrapper li {
    margin-bottom: 8px;
    padding-left: 24px;
}

#first-page::before {
    display: none;
}

.document-summary-box {
    display: block;
    font-weight: bold;
    font-size: 15px;
    line-height: 24px;
    color: #000000;
    
    /* 2px top border + 2px bottom border + 10px top pad + 10px bottom pad = 24px total rhythm height */
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 10px 0;
    
    margin-top: 12px;
    margin-bottom: 24px; /* Matches the 24px grid floor spacing gap */
}

.paper-header_label {
    display: flex;
    justify-content: space-between;
    margin: 3em 0 2em;
}

.paper-header_label span {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.1em;
}

.paper-header_label button {
    color: #232F3E;
    border: none;
    background: none;
}

.paper-header_label button:hover {
    text-decoration: underline;
    cursor: pointer;
}

.document-header img {
    max-height: 100px;
    margin: 0 0 0 auto;
    display: block;
    margin-right: 2.5em;
}

.document-title {
    margin: 1em 0 1.5em;
    font-size: 26px;
}

.document-header p {
    margin: 0;
    color: #232F3E;
    font-size: 13px;
}

.meta-data a {
    text-decoration: none;
    color: #0066CC;
}

.meta-data a:hover {
    text-decoration: underline;
}

.document-header small {
    margin: 1.5em 0;
    display: inline-block;
    font-size: 11px;
}

.document-number {
    margin: 0;
    color: #595959;
    font-size: 15px;
}

.summary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 16px;
    color: #000000;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding: 10px 0;
    margin-top: 0;
    margin-bottom: 14px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.page-columns-wrapper ul {
  list-style: none; /* Removes default numbers */
  counter-reset: roman-counter; /* Initializes the counter */
  padding-left: 20px;
}

.page-columns-wrapper ul li {
  counter-increment: roman-counter; /* Increments by 1 for each li */
  position: relative;
}

.page-columns-wrapper ul li::before {
  /* This injects the parentheses and formats the number as lower-roman */
  content: "(" counter(roman-counter, lower-roman) ") ";
  
  /* Optional positioning to make it look like a clean list */
  position: absolute;
  left: -25px; 
  font-family: "Times New Roman", serif; /* Matches the serif style in your image */
}

.running-footer {
    line-height: 13px;
    position: absolute;
    bottom: 0.50in;
    left: 0.25in;
    right: 0.25in;
    font-size: 10px;
    padding-top: 4px;
    height: 20px;
    z-index: 10;
    text-align: justify;
}


/* Container rules to initialize the counter system */
#document-viewer {
    counter-reset: document-pages 0; /* Your existing configuration anchor */
}

/* Increment the counter on every generated sheet block */
.paper-page {
    counter-increment: document-pages;
    position: relative;
}

/* Base Flexbox Grid Setup */
.running-header {
    position: absolute;
    top: 0.25in;
    left: 0.5in;
    right: 0.5in;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
    height: 24px;
    
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.running-header p,
.running-header .page-num-marker {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 11px;
    letter-spacing: 1px;
}

.running-header p:first-child {
    text-align: left;
}

.running-header p:nth-child(2) {
    text-align: center;
    white-space: nowrap;
}

.running-header .page-num-marker {
    text-align: right;
}

.running-header .page-num-marker::before {
    content: counter(document-pages);
}

.full-page-image-container {
    position: absolute;
    top: 1.5in;
    left: 0.5in;
    right: 0.5in;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.full-page-image-container img {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
}

/* Styling for the figure caption text */
.image-caption {
    margin-top: 14px;
    font-size: 12px;
    font-weight: bold;
    color: #444444;
    text-align: center;
    font-family: sans-serif;
}

/* Outer full-width sheet break layout panel */
.inline-print-section-block {
    width: 100%;
    max-width: 8.5in;
    margin: 30px auto;
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    box-sizing: border-box;
    padding: 35px 70px;
    border-top: 2px solid #D2D2D2;
}

.print-section-inner {
    display: flex;
    gap: 8%;
}

.print-section-left {
    flex: 0 0 160px;
}

.thumbnail-preview {
    width: 100%;
    height: auto;
    border: 2px solid #0056B3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-height: 220px;
}

.print-section-right {
    flex: 1;
}

.print-section-right h3 {
    margin: 0 0 2em 0;
    color: #0056B3;
    font-size: 16px;
    font-weight: normal;
}

.print-section-right h2 {
    margin: 0 0 24px 0;
    color: #333333;
    font-size: 26px;
    font-weight: bold;
    font-family: sans-serif;
    letter-spacing: -0.5px;
}

.print-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
}

.print-form input[type="email"] {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    outline: none;
}

.print-form input[type="email"]:focus {
    outline: none !important;
}

.print-form button {
    padding: 10px 34px;
    background-color: #7F7F7F;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.print-form button:hover {
    background-color: #555555;
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Hide website navigation elements */
  header,
  .paper-header_label,
  .inline-print-section-block {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Apply page breaks to pages... */
  .paper-page {
    border: none !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    padding-top: 0.4in !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* ...BUT REMOVE THE PAGE BREAK ON THE VERY LAST PAGE */
  .paper-page:last-of-type,
  .paper-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}

/*********************
Media
*********************/

@media only screen and (max-width: 850px) {
    .inline-print-section-block {
        display: none;
    }
    .paper-page {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
        box-sizing: border-box;
        padding: 15px !important;
        min-height: unset !important;
        max-height: 1050px !important;
        padding-bottom: 20px !important;
    }
    .page-columns-wrapper {
        column-count: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-top: 50px;
        overflow: hidden !important;
        height: auto !important; 
        max-height: 850px !important;
    }
    .page-columns-wrapper p,
    .page-columns-wrapper h1,
    .page-columns-wrapper h2,
    .page-columns-wrapper div {
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .running-footer {
        line-height: 10px;
        bottom: 0.30in;
        left: 0.15in;
        right: 0.15in;
        font-size: 8px;
    }
    .running-header {
        left: 0.15in;
        right: 0.15in;
    }
    .running-header p:first-of-type {
        display: none;
    }
    .paper-header_label {
        margin: 3em 1em 1em;
    }
    .paper-header_label button {
        display: none;
    }
    .document-header img {
        max-height: 90px;
        margin-right: 2em;
    }
    .document-title {
        font-size: 22px;
    }
}

@media only screen and (max-width: 600px) {
    .running-footer {
        bottom: 0.40in;
    }
    .full-page-image-container {
        top: 1in;
        left: .15in;
        right: .15in;
    }
}












