@charset "utf-8";
/* Stories from Miss Nan shared styles - clean recovery version */

/* =========================================================
   Temporary production launch page
   ========================================================= */

.launch-shell {
    width: min(960px, 96%);
    margin: 3vh auto;
    text-align: center;
}

.launch-card {
    display: flex;
    align-items: center;
    gap: clamp(20px, 5vw, 60px);
    padding: clamp(24px, 5vw, 56px);
    border: 8px solid #2f7b45;
    border-radius: 24px;
    background: linear-gradient(145deg, #fffdf8, #f4fbf3);
    box-shadow: 0 12px 32px rgba(35, 80, 45, 0.16);
    overflow: hidden;
}

.launch-missnan {
    width: min(38%, 330px);
    align-self: flex-end;
    margin-bottom: -56px;
}

.launch-copy {
    flex: 1;
    color: #173d26;
    line-height: 1.55;
}

.launch-copy h1 {
    color: #245f38;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.launch-kicker {
    color: #8b5523;
    font-family: Georgia, serif;
    font-size: clamp(20px, 2.4vw, 27px);
    font-style: italic;
}

.launch-signoff {
    color: #8b5523;
    font-family: Georgia, serif;
    font-size: 22px;
}

.launch-private-link,
.launch-preview-close {
    display: inline-block;
    margin-top: 18px;
    color: #657568;
    font-size: 14px;
}

.launch-preview-card {
    width: min(480px, 96%);
    margin: 24px auto 0;
    padding: 22px;
    border: 2px solid #2f7b45;
    border-radius: 14px;
    background: white;
    text-align: left;
}

.launch-preview-card button {
    width: 100%;
    margin-top: 16px;
}

.launch-preview-error {
    margin: 10px 0;
    padding: 10px;
    color: #8b0000;
    border: 1px solid #b22222;
    background: #fff1f1;
}

@media (max-width: 700px) {
    .launch-card {
        flex-direction: column-reverse;
        padding-bottom: 0;
    }

    .launch-missnan {
        width: min(72%, 310px);
        margin-bottom: 0;
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, sans-serif;
    font-size: 20px;
    background-color: white;
    color: black;
    margin: 2%;
}

.a {
    color: darkgreen;
    font-weight: bold;
}

a {
    color: darkgreen;
}

h1 {
    font-size: 26px;
    text-align: center;
    margin-top: 0;
}

h2 {
    text-align: center;
    margin: 10px 0;
}

img {
    max-width: 100%;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.smallform {
    display: inline;
}

.note {
    font-size: 16px;
    color: #555;
    margin-left: 5%;
    margin-right: 5%;
}

.actions {
    text-align: center;
    margin-top: 15px;
}

label {
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

input,
select,
button {
    font-family: Arial, sans-serif;
    font-size: 20px;
}

input {
    width: 100%;
    padding: 6px;
}

input[type="password"] {
    width: 100%;
    padding: 6px;
}

button,
.primary-button,
.button {
    color: white;
    background: darkgreen;
    border: ridge;
    cursor: pointer;
    padding: 8px 12px;
    font-weight: bold;
}

button:hover,
.primary-button:hover,
.button:hover {
    filter: brightness(1.08);
}

.msg {
    color: darkgreen;
    font-weight: bold;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid #777;
    text-align: center;
}

.msg_register {
    text-align: left;
    font-size: 18px;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    border: medium solid green;
    padding: 10px;
}

.ok {
    background: #e8f8e8;
    border-color: darkgreen;
}

.err {
    text-align: center;
    font-size: 20px;
    padding: 8px;
    width: 100%;
    border: medium solid green;
    color: white;
    background: red;
    font-weight: bold;
}

.noerr {
    text-align: center;
    font-size: 20px;
    padding: 8px;
    width: 100%;
    border: medium solid green;
    color: black;
    background: white;
    font-weight: normal;
}

.links,
.form-links,
.account-links {
    margin-top: 16px;
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
}

/* =========================================================
   Intro page layout
   ========================================================= */

.intro-shell {
    width: 100%;
    max-width: 760px;
    margin: 3vh auto 0 auto;
    color: darkblue;
}

.intro-card {
    width: 100%;
    border: 10px solid green;
    background: white;
    overflow: hidden;
}

.video-section {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f7efe4;
    overflow: hidden;
    border-radius: 10px;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.intro-login-panel {
    width: 100%;
    text-align: center;
    padding: 14px;
}

.intro-login-text {
    margin-bottom: 10px;
}

.intro-login-button {
    width: 180px;
    max-width: 100%;
    min-height: 42px;
}

.intro-links {
    text-align: center;
    padding: 0 14px 18px 14px;
    line-height: 1.55;
}

/* =========================================================
   Login/account form page layouts
   ========================================================= */

.login-shell,
.account-shell {
    width: 100%;
    max-width: 560px;
    margin: 3vh auto 0 auto;
    color: darkblue;
}

.account-shell-wide {
    max-width: 680px;
}

.account-shell-pricing {
    width: 72vw;
    max-width: 1650px;
}

.account-shell-pricing .account-card {
    padding: 14px 30px;
}

.account-shell-pricing .account-banner {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.account-shell-pricing .account-message,
.account-shell-pricing .account-error-list,
.account-shell-pricing .account-success {
    margin: 10px 0;
    padding: 8px 10px;
}

.login-card,
.account-card,
.box {
    width: 100%;
    border: 10px solid green;
    padding: 18px;
    text-align: left;
    background: white;
}

.login-banner,
.account-banner {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.login-form-row,
.account-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.login-form-row label,
.account-form-row label {
    width: 34%;
    min-width: 145px;
    margin-top: 0;
}

.login-form-row input,
.account-form-row input {
    flex: 1;
    min-width: 0;
}

.account-form-note,
.account-user-note {
    text-align: center;
    font-size: 16px;
    line-height: 1.45;
}

.account-button-row,
.login-button-row {
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

.login-button,
.account-button {
    width: 240px;
    max-width: 100%;
    min-height: 42px;
}

.account-message,
.account-error-list,
.account-success {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #777;
    text-align: center;
}

.account-message {
    background: #f5f5f5;
}

.account-error-list {
    color: white;
    background: red;
    border-color: darkgreen;
    font-weight: bold;
    text-align: left;
}

.account-success {
    color: darkgreen;
    background: #e8f8e8;
    border-color: darkgreen;
    font-weight: bold;
}

/* =========================================================
   Reader page layout - no tables required
   ========================================================= */

.reader-shell {
    width: 98%;
    max-width: none;
    margin: 0 auto;
    text-align: center;
    font-size: 22px;
}

.reader-header {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    border: 1px solid black;
}

.reader-banner-wrap {
    width: 25%;
    border-right: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.reader-banner {
    width: 100%;
    height: auto;
    display: block;
}

.reader-top-panel {
    width: 75%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reader-account-row,
.reader-control-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid black;
}

.reader-account-item,
.reader-control-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 4px 8px;
    border-right: 1px solid black;
    overflow-wrap: anywhere;
    word-break: normal;
}

.reader-account-item:last-child,
.reader-control-item:last-child {
    border-right: none;
}

.reader-account-user {
    flex: 2.2 1 0;
}

.reader-account-password {
    flex: 1.4 1 0;
}

.reader-account-type {
    flex: 1.2 1 0;
}

.reader-story-select-item {
     flex: 2.2 1 0;
}

.reader-selected-label {
    flex: 1.4 1 0;
    font-weight: bold;
}

.reader-logout-item {
    flex: 1.2 1 0;
}

.reader-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 22px;
    color: white;
    background: darkgreen;
    padding: 4px;
    text-align: center;
}

.reader-select option {
    background: white;
    color: black;
    text-align: center;
}


.reader-pick-filter-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid black;
}

.reader-story-select-panel {
    width: 68%;
    min-width: 0;
    padding: 6px;
    border-right: 1px solid black;
}

.reader-filter-panel {
    width: 32%;
    min-width: 0;
    padding: 6px;
    text-align: left;
}

.reader-panel-heading {
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
}

.reader-story-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 210px;
}

.reader-story-list-button {
    width: 100%;
    text-align: left;
    background: white;
    color: darkgreen;
    border: 1px solid #777;
    padding: 3px 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.reader-story-list-button:hover {
    background: #eef8ee;
}

.reader-story-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.reader-small-button {
    color: white;
    background: darkgreen;
    border: ridge;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: bold;
}

.reader-small-button:disabled {
    background: #999;
    cursor: default;
}

.reader-story-page-status {
    min-width: 90px;
    text-align: center;
    font-size: 16px;
}

.reader-radio-label {
    display: block;
    font-weight: normal;
    margin: 4px 0;
    font-size: 18px;
}

.reader-radio-label input {
    width: auto;
    margin-right: 4px;
}

.reader-filter-select {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    font-size: 18px;
    padding: 4px;
}

.reader-filter-note {
    font-size: 15px;
    color: #555;
    margin-top: 6px;
    line-height: 1.25;
}

.reader-utility-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    margin-top: 8px;
}

.reader-hidden-select {
    display: none;
}

.reader-empty-list {
    padding: 8px;
    font-size: 18px;
    color: #555;
    text-align: center;
}

.reader-title {
    width: 100%;
    min-height: 38px;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-bottom: 1px solid black;
    overflow-wrap: anywhere;
}

.reader-page {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    height: auto;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

.reader-panel {
    min-width: 0;
    vertical-align: top;
}

.reader-panel-a {
    width: 55%;
}

.reader-panel-b {
    width: 45%;
}

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

.reader-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    padding: 10px 0;
}

.reader-nav-controls {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 6px;
}

.reader-nav-button {
    width: 80px;
    min-width: 80px;
    background: white;
    border: 1px solid black;
    padding: 4px;
    cursor: pointer;
}

.reader-nav-button img {
    height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.reader-page-status {
    min-width: 150px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid black;
    font-weight: bold;
    white-space: nowrap;
}

.reader-status {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 50px;
    max-height: 58px;
    border: 1px solid black;
    text-align: left;
    padding: 6px 10px;
    line-height: 1.25;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.reader-logout-button {
    width: 100%;
    font-size: 20px;
    color: white;
    background: darkgreen;
    border: ridge;
    cursor: pointer;
    padding: 4px 8px;
}

/* Optional medium-width safety: stack banner above controls before crowding starts. */
@media (max-width: 1000px) {
    .reader-header {
        flex-direction: column;
    }

    .reader-banner-wrap,
    .reader-top-panel {
        width: 100%;
    }

    .reader-banner-wrap {
        border-right: none;
        border-bottom: 1px solid black;
    }
}

/* =========================================================
   Phone / narrow-screen layout
   ========================================================= */

@media (max-width: 768px) {
    body {
        margin: 1%;
        font-size: 18px;
    }

    input,
    select,
    button,
    .primary-button,
    .button {
        font-size: 18px;
    }

    .intro-shell,
    .login-shell,
    .account-shell,
    .account-shell-wide,
    .account-shell-pricing {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .intro-card,
    .login-card,
    .account-card,
    .box {
        border-width: 6px;
    }

    .login-card,
    .account-card,
    .box {
        padding: 12px;
    }

    .intro-video {
        max-height: none;
    }

    .intro-login-button,
    .login-button,
    .account-button {
        width: 100%;
        min-height: 44px;
    }

    .login-form-row,
    .account-form-row {
        display: block;
        margin: 10px 0;
    }

    .login-form-row label,
    .account-form-row label {
        width: 100%;
        min-width: 0;
        margin-bottom: 4px;
    }

    .account-user-note,
    .account-form-note,
    .form-links,
    .account-links,
    .intro-links,
    .links {
        font-size: 16px;
    }

    .reader-shell {
        width: 100%;
        font-size: 18px;
    }

    .reader-header {
        flex-direction: column;
    }

    .reader-banner-wrap,
    .reader-top-panel {
        width: 100%;
    }

    .reader-banner-wrap {
        border-right: none;
        border-bottom: 1px solid black;
    }

    .reader-account-row,
    .reader-control-row {
        flex-direction: column;
    }

    .reader-pick-filter-row {
        flex-direction: column;
    }

    .reader-story-select-panel,
    .reader-filter-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid black;
    }

    .reader-story-list {
        min-height: auto;
    }

    .reader-story-list-button,
    .reader-filter-select,
    .reader-radio-label {
        font-size: 16px;
    }


    .reader-account-item,
    .reader-control-item,
    .reader-account-user,
    .reader-account-password,
    .reader-account-type,
    .reader-story-select-item,
    .reader-selected-label,
    .reader-logout-item {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid black;
        min-height: 34px;
    }

    .reader-control-item:last-child {
        border-bottom: none;
    }

    .reader-selected-label {
        display: none;
    }

    
.reader-pick-filter-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: 1px solid black;
}

.reader-story-select-panel {
    width: 68%;
    min-width: 0;
    padding: 6px;
    border-right: 1px solid black;
}

.reader-filter-panel {
    width: 32%;
    min-width: 0;
    padding: 6px;
    text-align: left;
}

.reader-panel-heading {
    font-weight: bold;
    text-align: center;
    margin-bottom: 4px;
}

.reader-story-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 210px;
}

.reader-story-list-button {
    width: 100%;
    text-align: left;
    background: white;
    color: darkgreen;
    border: 1px solid #777;
    padding: 3px 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.reader-story-list-button:hover {
    background: #eef8ee;
}

.reader-story-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}

.reader-small-button {
    color: white;
    background: darkgreen;
    border: ridge;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: bold;
}

.reader-small-button:disabled {
    background: #999;
    cursor: default;
}

.reader-story-page-status {
    min-width: 90px;
    text-align: center;
    font-size: 16px;
}

.reader-radio-label {
    display: block;
    font-weight: normal;
    margin: 4px 0;
    font-size: 18px;
}

.reader-radio-label input {
    width: auto;
    margin-right: 4px;
}

.reader-filter-select {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    font-size: 18px;
    padding: 4px;
}

.reader-filter-note {
    font-size: 15px;
    color: #555;
    margin-top: 6px;
    line-height: 1.25;
}

.reader-utility-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    margin-top: 8px;
}

.reader-hidden-select {
    display: none;
}

.reader-empty-list {
    padding: 8px;
    font-size: 18px;
    color: #555;
    text-align: center;
}

.reader-title {
        min-height: 34px;
        font-size: 20px;
        border-top: 1px solid black;
    }

    .reader-select {
        font-size: 18px;
    }

    .reader-page {
        flex-direction: column;
        border-top: none;
    }

    .reader-panel-a,
    .reader-panel-b {
        width: 100%;
    }

    .reader-nav {
        flex-direction: column;
        gap: 6px;
        padding: 8px 0;
        align-items: stretch;
    }

    .reader-nav-controls {
        width: 100%;
        justify-content: center;
    }

    .reader-nav-button {
        width: 58px;
        min-width: 58px;
    }

    .reader-nav-button img {
        height: 32px;
    }

    .reader-page-status {
        min-width: 128px;
        min-height: 42px;
        padding: 5px 8px;
        font-size: 16px;
    }

    .reader-status {
        width: 100%;
        min-height: 48px;
        max-height: 56px;
        font-size: 16px;
    }
}
.test-version-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #8a4b00;
    background: #fff3cd;
    border: 1px solid #f0c36d;
    border-radius: 4px;
}


/* Simple dropdown-based story picker overrides */
.reader-story-select-panel {
    width: 68%;
    min-width: 0;
    padding: 6px;
    border-right: 1px solid black;
}

.reader-story-list-status {
    margin-top: 6px;
    font-size: 16px;
    color: #555;
    text-align: center;
}

.reader-story-select-panel .reader-select {
    font-size: 20px;
    padding: 5px;
}

/* The v2 dropdown picker does not use the old visible story-list buttons/pager. */
.reader-story-list,
.reader-story-pager,
.reader-story-list-button,
.reader-story-page-status {
    display: none;
}



/* =========================================================
   Reader table header layout - simple filter version
   ========================================================= */

.reader-header-table-wrap {
    width: 100%;
    border: 1px solid black;
    margin: 0;
    padding: 0;
}

.reader-header-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: white;
}

.reader-header-col-banner {
    width: 25%;
}

.reader-header-col-story {
    width: 37%;
}

.reader-header-col-filter {
    width: 25%;
}

.reader-header-col-utility {
    width: 13%;
}

.reader-header-table td {
    border: 1px solid black;
    vertical-align: middle;
}

.reader-banner-cell {
    padding: 4px;
    text-align: center;
}

.reader-banner-cell .reader-banner {
    width: 100%;
    height: auto;
    display: block;
}

.reader-header-cell {
    min-height: 34px;
    padding: 4px 6px;
    text-align: center;
    overflow-wrap: anywhere;
}

.reader-user-cell,
.reader-password-cell,
.reader-account-cell {
    font-size: 18px;
}

.reader-label-cell {
    font-weight: bold;
    font-size: 18px;
}

.reader-story-select-cell {
    padding: 5px 6px;
}

.reader-story-select-cell .reader-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 18px;
    color: white;
    background: darkgreen;
    padding: 4px;
    text-align: center;
}

.reader-story-list-status {
    margin-top: 3px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.reader-filter-cell {
    padding: 4px 6px;
}

.reader-filter-radio-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 15px;
    line-height: 1.15;
}

.reader-radio-inline {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
}

.reader-radio-inline input {
    width: auto;
    margin: 0 3px 0 0;
}

.reader-filter-select {
    width: 100%;
    max-width: 100%;
    margin-top: 4px;
    font-size: 16px;
    padding: 3px;
}

.reader-test-cell {
    font-size: 15px;
}

.reader-logout-cell {
    padding: 4px 6px;
}

.reader-logout-cell .reader-logout-button {
    width: 100%;
    font-size: 16px;
    color: white;
    background: darkgreen;
    border: ridge;
    cursor: pointer;
    padding: 4px 6px;
}

.reader-title-table-cell {
    min-height: 34px;
    height: 34px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 4px 8px;
    overflow-wrap: anywhere;
}

/* Hide/neutralize old simple-filter flex panels if the browser has cached older markup partially. */
.reader-pick-filter-row,
.reader-story-select-panel,
.reader-filter-panel,
.reader-utility-box,
.reader-filter-note {
    /* These are not used by the table header version. */
}

/* Table header responsive behavior */
@media (max-width: 1000px) {
    .reader-header-table,
    .reader-header-table tbody,
    .reader-header-table tr,
    .reader-header-table td {
        display: block;
        width: 100%;
    }

    .reader-banner-cell {
        border-bottom: 1px solid black;
    }

    .reader-banner-cell .reader-banner {
        max-width: 520px;
        margin: 0 auto;
    }

    .reader-title-table-cell {
        height: auto;
        min-height: 34px;
    }

    .reader-filter-radio-line {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .reader-user-cell,
    .reader-password-cell,
    .reader-account-cell,
    .reader-label-cell,
    .reader-story-select-cell .reader-select,
    .reader-title-table-cell {
        font-size: 16px;
    }

    .reader-filter-radio-line {
        font-size: 15px;
    }

    .reader-filter-select {
        font-size: 16px;
    }

    .reader-logout-cell .reader-logout-button {
        font-size: 16px;
    }
}


/* Reader header upgrade link */
.reader-upgrade-link {
    display: inline-block;
    padding: 4px 8px;
    color: white;
    background: darkgreen;
    border: ridge;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.reader-upgrade-link:hover {
    filter: brightness(1.08);
}

.reader-secondary-link {
    display: inline-block;
    margin-top: 3px;
    font-size: 14px;
}

/* =========================================================
   Public Help Guide
   ========================================================= */

.intro-login-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.reader-logout-cell .reader-upgrade-link {
    width: 100%;
    margin: 0 0 5px 0;
}

.help-header-col-topic {
    width: 58%;
}

.help-header-col-utility {
    width: 17%;
}

.help-guide-heading {
    font-size: 22px;
    font-weight: bold;
    color: darkgreen;
}

.help-return-cell,
.help-contact-cell,
.help-public-cell {
    text-align: center;
}

.help-public-cell {
    font-size: 15px;
    color: #555;
}

.help-page {
    min-height: 520px;
    align-items: stretch;
}

.help-image-panel {
    background: #f7f7f7;
}

.help-text-panel {
    text-align: left;
    background: white;
}

.help-page.help-no-image .help-text-panel {
    width: 100%;
}

.help-content {
    padding: 20px 28px;
    font-size: 19px;
    line-height: 1.45;
}

.help-content p {
    margin: 0 0 12px 0;
}

.help-content h3 {
    margin: 14px 0 4px 0;
    color: darkgreen;
    font-size: 20px;
}

.help-content ul {
    margin: 4px 0 14px 28px;
    padding: 0;
}

.help-content li {
    margin-bottom: 4px;
}

.help-email {
    text-align: center;
    color: darkgreen;
    font-weight: bold;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .help-header-table .reader-banner-cell {
        display: block;
    }
}

@media (max-width: 768px) {
    .help-page {
        min-height: 0;
    }

    .help-content {
        padding: 16px;
        font-size: 17px;
    }

    .help-content h3 {
        font-size: 18px;
    }
}


/* =========================================================
   Launch fix round 1: reader sizing, mobile header order,
   and Help Guide phone/tablet height control
   ========================================================= */

/* Keep story pages a little shorter on desktop so navigation stays visible. */
@media (min-width: 1001px) {
    .story-page .reader-panel-a,
    .story-page .reader-panel-b {
        width: 50%;
    }

    .story-page .reader-img {
        max-height: calc(100vh - 245px);
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* The story header no longer uses standalone label cells. */
.reader-account-cell .reader-secondary-link {
    margin-top: 2px;
}

/* Help images can stack too tall on narrow screens; keep the guide usable. */
@media (max-width: 768px) {
    .help-page .reader-img {
        max-height: calc((100vh - 245px) / 2);
        width: 100%;
        height: auto;
        object-fit: contain;
        margin-left: auto;
        margin-right: auto;
    }

    .help-page .reader-panel-a,
    .help-page .reader-panel-b {
        text-align: center;
    }
}


/* =========================================================
   Help Guide tablet height fix
   Keeps tablet layout from reserving extra empty space below images.
   ========================================================= */
@media (min-width: 769px) and (max-width: 1000px) {
    .help-page {
        min-height: 0;
        align-items: flex-start;
    }

    .help-page .reader-panel-a,
    .help-page .reader-panel-b {
        align-self: flex-start;
    }

    .help-page .reader-img {
        max-height: calc(100vh - 245px);
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}


/* =========================================================
   Help Guide height collapse fix v2
   Do not reserve blank vertical space below Help Guide images.
   This applies across desktop/tablet widths because some tablets
   report widths above the earlier tablet breakpoint.
   ========================================================= */
.help-page {
    min-height: 0 !important;
    height: auto !important;
    align-items: flex-start !important;
}

.help-page .reader-panel,
.help-page .reader-panel-a,
.help-page .reader-panel-b {
    height: auto !important;
    align-self: flex-start !important;
}

.help-page .reader-img {
    display: block;
    height: auto !important;
    object-fit: contain;
}

@media (min-width: 769px) {
    .help-page .reader-img {
        max-height: calc(100vh - 245px);
    }
}


/* =========================================================
   Reader Printables dropdown
   ========================================================= */

.reader-printable-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 5px 0;
    font-size: 16px;
    color: white;
    background: darkgreen;
    padding: 4px;
    text-align: center;
}

.reader-printable-select option {
    background: white;
    color: black;
    text-align: left;
}

.reader-printable-select option:disabled {
    color: #777;
}

@media (max-width: 768px) {
    .reader-printable-select {
        font-size: 16px;
        min-height: 36px;
    }
}
.reader-printable-select {
    font-weight: bold;
    text-align: center;
    text-align-last: center;
    font-family: Arial, Helvetica, sans-serif;
}

.reader-printable-select option {
    font-weight: normal;
    text-align: left;
}


/* =========================================================
   Reader UI 2026
   MissNanTest visual upgrade
   ---------------------------------------------------------
   This section intentionally overrides the older reader-header
   rules above without removing them during the first test phase.
   ========================================================= */

.reader-shell {
    width: 100%;
    margin: 0 auto;
    color: #34332e;
    background: #fff8ea;
    font-family: Arial, Helvetica, sans-serif;
}

/* The Reader is a full-screen application; its chrome should meet every
   viewport edge even though older site pages retain an outer body margin. */
body.reader-page-body {
    margin: 0;
}

.reader-ui-top-strip {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    color: #503814;
    background: #f7d98f;
    border-bottom: 1px solid #e5bd60;
    box-shadow: 0 4px 18px rgba(74, 55, 33, .08);
}

.reader-ui-top-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(160px, .8fr) minmax(420px, 1.4fr);
    align-items: center;
    gap: 18px;
    min-height: 92px;
    padding: 0 18px;
}

.reader-ui-menu-wrap {
    position: relative;
}

.reader-ui-menu-button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(91, 57, 25, .28);
    border-radius: 11px;
    color: #603919;
    background: rgba(255, 255, 255, .48);
    cursor: pointer;
    touch-action: manipulation;
}

.reader-ui-menu-button:hover,
.reader-ui-menu-button:focus-visible {
    background: white;
}

.reader-ui-menu-lines,
.reader-ui-menu-lines::before,
.reader-ui-menu-lines::after {
    display: block;
    width: 21px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

.reader-ui-menu-lines {
    position: relative;
}

.reader-ui-menu-lines::before,
.reader-ui-menu-lines::after {
    position: absolute;
    left: 0;
    content: "";
}

.reader-ui-menu-lines::before {
    top: -7px;
}

.reader-ui-menu-lines::after {
    top: 7px;
}

.reader-ui-menu-panel {
    position: absolute;
    top: 56px;
    left: 0;
    z-index: 70;
    width: min(390px, calc(100vw - 30px));
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #d7aa4f;
    border-radius: 18px;
    color: #503814;
    background: #f7d98f;
    box-shadow: 0 20px 55px rgba(74, 55, 33, .28);
    text-align: left;
}

.reader-ui-menu-panel[hidden] {
    display: none;
}

.reader-ui-menu-section {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(96, 57, 25, .16);
    border-radius: 13px;
    background: rgba(255, 255, 255, .50);
}

.reader-ui-menu-heading {
    margin-bottom: 7px;
    color: #603919;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
}

.reader-ui-menu-panel .reader-select,
.reader-ui-menu-panel .reader-filter-select,
.reader-ui-menu-panel .reader-printable-select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    border: 1px solid #8f6339;
    border-radius: 10px;
    color: #fff;
    background: #64795f;
    font-size: 16px;
    text-align: left;
    touch-action: manipulation;
}

.reader-ui-menu-panel .reader-select option,
.reader-ui-menu-panel .reader-filter-select option,
.reader-ui-menu-panel .reader-printable-select option {
    color: #34332e;
    background: white;
}

.reader-ui-filter-radios {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 16px;
}

.reader-ui-menu-links {
    display: grid;
    gap: 5px;
}

.reader-ui-menu-links a,
.reader-ui-menu-logout {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    color: #603919;
    background: transparent;
    text-align: left;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    touch-action: manipulation;
}

.reader-ui-menu-links a:hover,
.reader-ui-menu-links a:focus-visible,
.reader-ui-menu-logout:hover,
.reader-ui-menu-logout:focus-visible {
    color: #603919;
    background: white;
    filter: none;
}

.reader-ui-test-row {
    padding: 10px 4px 2px;
    text-align: center;
}

.reader-ui-brand {
    display: flex;
    align-self: stretch;
    align-items: center;
    min-width: 0;
    color: #603919;
    font-family: Georgia, "Times New Roman", serif;
    text-align: left;
    line-height: 1.08;
}

.reader-ui-brand-head {
    align-self: flex-end;
    width: 78px;
    height: 90px;
    margin-right: 13px;
    object-fit: contain;
    object-position: center bottom;
}

.reader-ui-brand-copy {
    display: block;
    min-width: 0;
}

.reader-ui-brand-main {
    display: block;
    font: 700 clamp(20px, 2vw, 29px)/1.08 Georgia, "Times New Roman", serif;
}

.reader-ui-brand-sub {
    display: block;
    margin-top: 5px;
    color: #603919;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reader-ui-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
}

.reader-ui-status-item {
    min-width: 0;
    padding: 6px 9px;
    border: 1px solid rgba(96, 57, 25, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .46);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reader-ui-status-label {
    margin-right: 4px;
    color: #8a5d2d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reader-ui-story-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 5px 12px;
    color: #86381f;
    background: #fffdf7;
    border-bottom: 1px solid #e6d9c4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 700;
    text-align: center;
}

.reader-page.story-page {
    border: 0;
    background: #fffdf7;
}

.reader-page.story-page .reader-panel-a,
.reader-page.story-page .reader-panel-b {
    background: #fffdf7;
}

.reader-nav {
    gap: 12px;
    margin: 0;
    padding: 9px 14px;
    background: #fff8ea;
    border-top: 1px solid #e6d9c4;
}

.reader-nav-controls {
    gap: 8px;
}

.reader-nav-button {
    display: grid;
    place-items: center;
    width: 76px;
    min-width: 76px;
    min-height: 48px;
    padding: 3px;
    border: 1px solid #d8c7ae;
    border-radius: 13px;
    background: #fffdf7;
    box-shadow: 0 5px 14px rgba(74, 55, 33, .08);
}

.reader-nav-button:hover,
.reader-nav-button:focus-visible {
    background: #fff4df;
    filter: none;
}

.reader-page-status {
    min-width: 140px;
    min-height: 48px;
    border: 1px solid #d8c7ae;
    border-radius: 13px;
    color: #603919;
    background: #fffdf7;
}

.reader-status {
    min-height: 48px;
    max-height: 58px;
    border: 1px solid #d8c7ae;
    border-radius: 13px;
    color: #4d4a43;
    background: #fffdf7;
}

.reader-ui-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    color: #ddd7cd;
    background: #2f2e2a;
    font-size: 14px;
    text-align: left;
}

.reader-ui-footer a {
    color: white;
    text-decoration: none;
}

.reader-ui-footer a:hover,
.reader-ui-footer a:focus-visible {
    text-decoration: underline;
}

/* The new reader does not use the old table-style header. */
.reader-header-table-wrap,
.reader-header-table {
    display: none;
}

@media (min-width: 1001px) {
    .story-page .reader-img {
        max-height: calc(100vh - 205px);
    }
}

@media (max-width: 1000px) {
    .reader-ui-top-inner {
        grid-template-columns: auto 1fr;
        gap: 10px 14px;
    }

    .reader-ui-status {
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: wrap;
        padding-bottom: 2px;
    }

    .reader-ui-brand {
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        margin: 0;
        background: #fff8ea;
    }

    .reader-shell {
        font-size: 18px;
    }

    .reader-ui-top-strip {
        position: sticky;
    }

    .reader-ui-top-inner {
        grid-template-columns: 48px 1fr;
        min-height: 60px;
        padding: 6px 10px;
    }

    .reader-ui-brand-main {
        font-size: 19px;
    }

    .reader-ui-brand-head {
        width: 48px;
        height: 58px;
        margin-right: 7px;
    }

    .reader-ui-brand-sub {
        display: none;
    }

    .reader-ui-status {
        gap: 5px;
        padding-top: 0;
        font-size: 12px;
    }

    .reader-ui-status-item {
        padding: 4px 7px;
    }

    .reader-ui-status-label {
        font-size: 9px;
    }

    .reader-ui-menu-panel {
        top: 52px;
        left: 0;
        width: min(360px, calc(100vw - 20px));
        max-height: calc(100vh - 70px);
        padding: 11px;
        border-radius: 15px;
    }

    .reader-ui-menu-section {
        padding: 10px;
    }

    .reader-ui-story-title {
        min-height: 36px;
        padding: 4px 8px;
        font-size: 18px;
    }

    .reader-page.story-page {
        flex-direction: column;
    }

    .reader-page.story-page .reader-panel-a,
    .reader-page.story-page .reader-panel-b {
        width: 100%;
    }

    .reader-nav {
        padding: 8px 10px;
    }

    .reader-nav-button {
        width: 62px;
        min-width: 62px;
        min-height: 44px;
    }

    .reader-page-status {
        min-width: 124px;
        min-height: 44px;
    }

    .reader-status {
        min-height: 44px;
        max-height: none;
    }

    .reader-ui-footer {
        display: block;
        padding: 14px 12px;
        text-align: center;
    }

    .reader-ui-footer-links {
        display: block;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .reader-ui-status-label {
        display: none;
    }

    .reader-ui-status {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-left: 58px;
        margin-top: -3px;
    }

    .reader-ui-status-item {
        flex: 0 0 auto;
    }
}
