/* ==========================================================================
   FONT DECLARATIONS
   ========================================================================== */

@font-face {
    font-family: 'schoolbookregular';
    src: url('https://justicemacdonald.com/css/fonts/schoolbook_book-webfont.woff2') format('woff2'), 
         url('https://justicemacdonald.com/css/fonts/schoolbook_book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'schoolbookitalic';
    src: url('https://justicemacdonald.com/css/fonts/schoolbook_italic-webfont.woff2') format('woff2'), 
         url('https://justicemacdonald.com/css/fonts/schoolbook_italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'schoolbookbold';
    src: url('https://justicemacdonald.com/css/fonts/schoolbook_bold-webfont.woff2') format('woff2'), 
         url('https://justicemacdonald.com/css/fonts/schoolbook_bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'schoolbook_cond_boldregular';
    src: url('https://justicemacdonald.com/css/fonts/schoolbook_cond-bold-webfont.woff2') format('woff2'), 
         url('https://justicemacdonald.com/css/fonts/schoolbook_cond-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'schoolbookcond';
    src: url('https://justicemacdonald.com/css/fonts/schoolbook_cond-webfont.woff2') format('woff2'), 
         url('https://justicemacdonald.com/css/fonts/schoolbook_cond-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'schoolbookbold_italic';
    src: url('https://justicemacdonald.com/css/fonts/schoolbook_bold-italic-webfont.woff2') format('woff2'), 
         url('https://justicemacdonald.com/css/fonts/schoolbook_bold-italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

/* Default serif fonts (schoolbook with fallbacks) */
body {
    font-family: 'schoolbookregular', 'Times New Roman', 'Georgia', serif;
    color: #000;
    background-color: #fff;
    line-height: 1.6;
}

h1, h3 {
    font-family: 'schoolbookbold', 'Times New Roman', 'Georgia', serif;
    font-style: normal;
}

em {
    font-family: 'schoolbookitalic', 'Times New Roman', 'Georgia', serif;
    font-style: normal;
}

strong {
    font-family: 'schoolbookbold', 'Times New Roman', 'Georgia', serif;
    font-style: normal;
}

/* Monospace fonts (courier with fallbacks) */
.monospace, .courier {
    font-family: 'Courier New', 'Courier', 'Consolas', 'Monaco', monospace;
}

/* Combined bold italic */
.embold {
    font-family: 'schoolbookbold_italic', 'Times New Roman', 'Georgia', serif;
    font-style: normal;
}

/* Utility classes */
.western {
    font-family: 'schoolbookregular', 'Times New Roman', 'Georgia', serif;
}

.italic {
    font-style: italic;
}

.wrap {
    overflow-wrap: break-word;
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

.default-paragraph {
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 1em;
}

.content-box, .infobox, .contact {
    margin: 1em 0;
    padding: 1em;
    border: 1px solid #aaa;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.attorney-question, .judge-answer {
    margin-bottom: 1em;
}

.attorney-question strong, .judge-answer strong {
    font-family: 'schoolbookbold', 'Times New Roman', 'Georgia', serif;
    display: block;
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.indented {
    padding-left: 50px;
}

.underline {
    text-decoration: underline;
}

.italics {
    font-style: italic;
}

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

.column {
    flex: 1;
    text-align: center;
}

/* ==========================================================================
   BLOCKQUOTES AND CITATIONS
   ========================================================================== */

blockquote {
    margin: 1.5em 2em;
    padding: 1em 1.5em;
    background-color: #f5f5f5;
    border-left: 4px solid #333;
    font-style: italic;
    font-family: 'schoolbookitalic', 'Times New Roman', 'Georgia', serif;
}

blockquote p {
    margin: 0;
    line-height: 1.6;
}

.constitutional-quote {
    background-color: #f9f9f9;
    border-left-color: #2c5aa0;
    font-size: 1.1em;
}

.attribution {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
    font-style: italic;
    color: #666;
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.link {
    color: #000080;
}

.vlink {
    color: #000000;
}

.no-underline {
    color: #000;
    text-decoration: none;
}

.no-underline:hover {
    color: #000;
    text-decoration: none;
}

/* ==========================================================================
   IMAGES
   ========================================================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   TRANSCRIPT COVER PAGE
   ========================================================================== */

.transcript-cover {
    max-width: 800px;
    margin: 2em auto;
    padding: 2em;
    text-align: center;
}

.cover-title {
    font-family: 'schoolbookbold', 'Times New Roman', 'Georgia', serif;
    margin-bottom: 1.5em;
}

.cover-authority-box {
    border: 2px solid #333;
    padding: 1em;
    margin: 2em auto;
    max-width: 500px;
}

.cover-authority-text {
    margin: 0;
    font-weight: bold;
}

.cover-subtitle {
    margin: 3em 0 2em 0;
}

.cover-prepared-for {
    text-align: left;
    margin: 2em auto;
    max-width: 400px;
}

.cover-prepared-details {
    margin-left: 2em;
}

/* ==========================================================================
   TRANSCRIPT STYLES
   ========================================================================== */

.transcript-body {
    font-family: 'Courier New', 'Courier', 'Consolas', 'Monaco', monospace;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    background-color: #fafafa;
}

.transcript-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'schoolbookregular', 'Times New Roman', 'Georgia', serif;
}

.transcript-page {
    background-color: white;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header {
    font-family: 'schoolbookbold', 'Times New Roman', 'Georgia', serif;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    color: #333;
}

.transcript-line {
    display: flex;
    margin-bottom: 8px;
    min-height: 1.2em;
}

.line-number {
    flex-shrink: 0;
    width: 30px;
    text-align: right;
    padding-right: 10px;
    color: #666;
    font-weight: bold;
    user-select: none;
}

.line-content {
    flex: 1;
    padding-left: 10px;
}

.speaker {
    font-weight: bold;
    color: #2c5aa0;
    text-transform: uppercase;
}

.speaker-interviewer {
    color: #d73527;
}

.speaker-chief-justice {
    color: #2c5aa0;
}

.speaker-attorney {
    color: #1f7a1f;
}

.transcript-dialogue {
    margin-left: 0;
}

.continuation {
    padding-left: 20px;
    color: #444;
}

.parenthetical {
    font-style: italic;
    color: #666;
}

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

@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 14px;
    }
    
    .transcript-body {
        padding: 10px;
        font-size: 14px;
    }
    
    .line-number {
        width: 25px;
        font-size: 12px;
    }
    
    .line-content {
        padding-left: 5px;
    }
    
    .indented {
        padding-left: 25px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .column {
        text-align: left;
        margin-bottom: 1em;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background-color: white;
    }
    
    .transcript-body {
        background-color: white;
    }
    
    .transcript-page {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .page-header {
        border-bottom: 2px solid #000;
    }
    
    .content-box, .infobox, .contact {
        border: 1px solid #000;
        background-color: white;
    }
}
