/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background-color: white;
    padding: 40px 50px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Header styles */
@media screen and (max-width: 414px) {
    header {
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 415px) {
    header {
        margin-bottom: -120px;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.title-section {
    flex: 1;
    padding-right: 20px;
}

h1 {
    font-size: 20pt;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

h2 {
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 15px;
}

.portrait {
    flex-shrink: 0;
    width: 180px;
}

.portrait img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

/* Section styles */
.section-label {
    margin-bottom: 5px;
    line-height: 1.3;
}

.before-talk {
    margin-bottom: 15px;
}

.before-talk p {
    margin-bottom: 2px;
}

.included-talk {
    margin-top: 15px;
}

/* Playlist item styles */
.playlist-item {
    display: flex;
    margin-bottom: 10px;
    line-height: 1.3;
}

.playlist-item .number {
    min-width: 8ex;
    font-weight: normal;
    flex-shrink: 0;
}

.playlist-item .content {
    flex: 1;
}

.playlist-item .content p {
    margin-bottom: 2px;
}

/* Text formatting */
strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

sup {
    font-size: 0.75em;
    vertical-align: super;
}

/* Indentation styles */
.indent {
    margin-left: 50px;
}

.indent-left {
    margin-left: 5px;
}

.indent-right {
    margin-left: 200px;
}

.right-align {
    float: right;
}

.right-align-sub {
    text-align: right;
    margin-right: 0;
}

.sub-content {
    display: flex;
    flex-flow: row nowrap;
}

/* Break section */
.break {
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 30px;
    text-align: right;
}

.author {
    font-weight: normal;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
        padding: 20px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .portrait {
        width: 150px;
        margin-top: 15px;
    }
    
    .container {
        padding: 20px;
    }
    
    .indent {
        margin-left: 30px;
    }
    
    .indent-right {
        margin-left: 30px;
    }
}
