/* NGM Book Press – public pages */
.nbp-form, .nbp-dash, .nbp-calls, .nbp-preview-wrap, .nbp-converter, .nbp-book-page, .nbp-login, .nbp-verify {
    --nbp-ink: #1d2733; --nbp-muted: #5f6b78; --nbp-line: #dfe3e8; --nbp-soft: #f6f7f9; --nbp-accent: #1e3a5f; --nbp-gold: #b8862b;
    --nbp-ok: #1f7a4d; --nbp-warn: #9a5b00; --nbp-err: #b3261e; --nbp-radius: 8px;
    color: var(--nbp-ink); box-sizing: border-box; max-width: 980px; margin-left: auto; margin-right: auto;
}
.nbp-form *, .nbp-dash *, .nbp-preview-wrap *, .nbp-converter *, .nbp-calls * { box-sizing: border-box; }

/* Notices */
.nbp-notice { max-width: 980px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 8px; background: #fff8e5; border-left: 4px solid #e2a400; color: #3b3b3b; }
.nbp-success { background: #e9f6ef; border-left-color: #1f7a4d; }
.nbp-error { background: #fdecea; border-left-color: #b3261e; }
.nbp-muted { color: #5f6b78; }
.nbp-help { color: #5f6b78; font-size: .92em; margin: 4px 0 12px; }

/* Buttons */
.nbp-btn { display: inline-block; background: #1e3a5f; color: #fff !important; border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 600; font-size: 1em; line-height: 1.3; cursor: pointer; text-decoration: none !important; }
.nbp-btn:hover { background: #16304f; }
.nbp-btn:disabled { opacity: .6; cursor: progress; }
.nbp-btn-light { background: #fff; color: #1e3a5f !important; box-shadow: inset 0 0 0 1px #1e3a5f; }
.nbp-btn-light:hover { background: #f0f4f9; }
.nbp-link { background: none; border: 0; color: #1e3a5f; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.nbp-danger { color: #b3261e; }

/* Form */
.nbp-form fieldset { border: 1px solid #dfe3e8; border-radius: 8px; padding: 18px 20px 10px; margin: 0 0 18px; background: #fff; }
.nbp-form legend { font-weight: 700; font-size: 1.05em; padding: 0 6px; color: #1e3a5f; }
.nbp-form label { display: block; font-weight: 600; margin: 10px 0 6px; }
.nbp-form input[type=text], .nbp-form input[type=email], .nbp-form input[type=tel], .nbp-form input[type=number], .nbp-form input:not([type]), .nbp-form select, .nbp-form textarea,
.nbp-box input:not([type=checkbox]):not([type=radio]):not([type=file]), .nbp-box textarea, .nbp-box select, .nbp-converter textarea, .nbp-converter select, .nbp-verify input {
    display: block; width: 100%; padding: 9px 11px; border: 1px solid #b9c1ca; border-radius: 6px; font: inherit; background: #fff; color: inherit;
}
.nbp-form textarea, .nbp-converter textarea { min-height: 120px; line-height: 1.6; }
.nbp-form input:focus, .nbp-form textarea:focus, .nbp-form select:focus { outline: 2px solid #b8862b; outline-offset: 1px; border-color: #b8862b; }
.nbp-form input[type=file] { padding: 10px; border: 1px dashed #9aa5b1; border-radius: 6px; width: 100%; background: #f6f7f9; }
.nbp-short { max-width: 140px; }
.nbp-check { font-weight: 400 !important; display: flex !important; gap: 8px; align-items: flex-start; }
.nbp-check input { margin-top: .3em; flex: none; }
.nbp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nbp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.nbp-grid label { font-weight: 500; font-size: .95em; margin: 6px 0; }
.nbp-author { border: 1px solid #dfe3e8; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: #f6f7f9; }
.nbp-author-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.nbp-author-head .nbp-corr { font-weight: 400; margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.nbp-author-head .nbp-remove-author { margin-left: auto; color: #b3261e; }
.nbp-count { text-align: right; font-size: .85em; color: #5f6b78; margin-top: 2px; }
.nbp-conv-btn { margin: 4px 0 0; background: #f6f7f9; border: 1px solid #c7ced6; border-radius: 4px; padding: 2px 8px; font-size: .8em; cursor: pointer; color: #1e3a5f; }
.nbp-conv-pop { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fffbea; border: 1px solid #ecd27a; border-radius: 6px; padding: 8px 10px; margin: 6px 0; }
.nbp-conv-pop[hidden] { display: none; }
.nbp-conv-pop select { width: auto; flex: 1 1 160px; }
.nbp-conv-pop p { margin: 0; flex-basis: 100%; }

/* Steps + preview */
.nbp-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 10px 0 20px; counter-reset: s; }
.nbp-steps li { flex: 1; padding: 8px 10px; border-radius: 6px; background: #eef1f4; color: #5f6b78; font-size: .9em; counter-increment: s; }
.nbp-steps li::before { content: counter(s) ". "; font-weight: 700; }
.nbp-steps li.done { background: #e9f6ef; color: #1f7a4d; }
.nbp-steps li.current { background: #1e3a5f; color: #fff; }
.nbp-report { border: 1px solid #dfe3e8; border-radius: 8px; padding: 12px 16px; background: #fff; margin-bottom: 18px; }
.nbp-report p { margin: 6px 0; }
.nbp-ok { color: #1f7a4d; font-weight: 600; }
.nbp-warn { color: #9a5b00; }
.nbp-summary { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.nbp-summary th { text-align: left; vertical-align: top; width: 22%; padding: 8px 10px; background: #f6f7f9; border: 1px solid #dfe3e8; }
.nbp-summary td { padding: 8px 10px; border: 1px solid #dfe3e8; }
.nbp-paper { background: #fff; border: 1px solid #dfe3e8; box-shadow: 0 6px 22px rgba(24, 39, 58, .08); border-radius: 4px; padding: 44px 56px; margin: 0 0 20px; max-height: 75vh; overflow: auto;
    font-family: "Noto Serif Tamil", Latha, "Nirmala UI", "Merriweather", Georgia, serif; font-size: 16px; line-height: 1.8; }
.nbp-paper-title { font-size: 1.5em; text-align: center; margin: 0 0 1em; line-height: 1.35; }
.nbp-paper h2 { font-size: 1.25em; margin: 1.4em 0 .5em; } .nbp-paper h3 { font-size: 1.1em; margin: 1.2em 0 .4em; } .nbp-paper h4 { font-size: 1em; font-style: italic; }
.nbp-paper p { margin: 0 0 .8em; text-align: justify; }
.nbp-paper .nbp-center { text-align: center; } .nbp-paper .nbp-right { text-align: right; }
.nbp-paper .nbp-indent { margin-left: 2.5em; text-align: left; }
.nbp-paper .nbp-caption, .nbp-paper figcaption { text-align: center; font-style: italic; font-size: .92em; }
.nbp-paper .nbp-ref { padding-left: 2em; text-indent: -2em; text-align: left; }
.nbp-paper figure { margin: 1em 0; text-align: center; } .nbp-paper img { max-width: 100%; height: auto; }
.nbp-paper table { border-collapse: collapse; margin: 1em auto; font-size: .92em; } .nbp-paper td, .nbp-paper th { border: 1px solid #999; padding: 4px 8px; vertical-align: top; }
.nbp-paper blockquote { margin: 1em 2em; padding-left: 1em; border-left: 3px solid #dfe3e8; }
.nbp-paper .nbp-eq { font-style: italic; background: #f3f0ff; padding: 0 4px; border-radius: 3px; }
.nbp-paper .nbp-eq-block { text-align: center; }
.nbp-paper .nbp-missing, .nbp-vector-ph { display: inline-block; background: #fff4e5; color: #9a5b00; border: 1px dashed #e2a400; padding: 2px 8px; border-radius: 4px; font-size: .9em; font-style: italic; }
.nbp-fnref a { text-decoration: none; }
.nbp-footnotes { border-top: 1px solid #ccc; margin-top: 2em; padding-top: .6em; font-size: .88em; }
.nbp-abstract { background: #f6f7f9; padding: 12px 16px; border-radius: 6px; margin-bottom: 1.2em; font-size: .95em; }
.nbp-confirm { background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; padding: 14px 18px; position: sticky; bottom: 10px; box-shadow: 0 -2px 14px rgba(0,0,0,.06); }

/* Dashboard */
.nbp-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nbp-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.nbp-table th, .nbp-table td { padding: 10px; border-bottom: 1px solid #dfe3e8; text-align: left; vertical-align: top; }
.nbp-table th { font-size: .9em; color: #5f6b78; font-weight: 600; }
.nbp-badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .82em; background: #eef1f4; color: #33404d; white-space: nowrap; }
.nbp-badge.nbp-big { font-size: .95em; padding: 4px 14px; }
.nbp-s-submitted, .nbp-s-revised, .nbp-r-pending { background: #e8f0fb; color: #1e3a5f; }
.nbp-s-under_review { background: #fff4d6; color: #7a5300; }
.nbp-s-revision { background: #fde8d7; color: #8a3b00; }
.nbp-s-accepted, .nbp-r-completed { background: #e3f4ea; color: #1f6b43; }
.nbp-s-published { background: #1f7a4d; color: #fff; }
.nbp-s-rejected, .nbp-s-withdrawn, .nbp-r-declined { background: #f3e1e0; color: #8c1d18; }
.nbp-s-draft { background: #eee; color: #555; }
.nbp-box, .nbp-decision { border: 1px solid #dfe3e8; border-radius: 8px; padding: 14px 18px; margin: 16px 0; background: #fff; }
.nbp-decision { border-left: 4px solid #b8862b; background: #fffdf7; }
.nbp-box h3, .nbp-decision h3 { margin-top: 0; font-size: 1.1em; }
.nbp-box label { display: block; font-weight: 600; margin: 10px 0 6px; }
.nbp-docs { margin: 0; padding-left: 1.2em; } .nbp-docs li { margin: 6px 0; }
.nbp-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #dfe3e8; }
.nbp-timeline li { padding: 4px 0 8px 14px; position: relative; } .nbp-timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; background: #1e3a5f; border-radius: 50%; }
.nbp-reviews-text { background: #f6f7f9; padding: 10px 14px; border-radius: 6px; }
.nbp-review-form .nbp-inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; font-weight: 500; }
.nbp-review-form .nbp-inline select { width: auto; display: inline-block; }

/* Calls */
.nbp-call-card { display: flex; gap: 20px; border: 1px solid #dfe3e8; border-radius: 10px; padding: 18px; margin: 0 0 18px; background: #fff; }
.nbp-call-cover img { width: 130px; height: auto; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.nbp-call-body h3 { margin: 6px 0 8px; } .nbp-call-body h3 a { text-decoration: none; color: #1e3a5f; }
.nbp-dates { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.nbp-dates li span { color: #5f6b78; font-size: .9em; display: block; }
.nbp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nbp-call-box { border-radius: 10px; padding: 16px 20px; margin: 20px 0; background: #f6f7f9; border: 1px solid #dfe3e8; }
.nbp-call-box.open { background: #f1f8f4; border-color: #bfe0cc; }
.nbp-subthemes { columns: 2; column-gap: 28px; }
.nbp-section-title { margin-top: 36px; }
.nbp-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.nbp-shelf-item { text-decoration: none; color: inherit; font-size: .9em; } .nbp-shelf-item img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.nbp-shelf-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; background: #1e3a5f; color: #fff; padding: 10px; text-align: center; border-radius: 4px; }
.nbp-pub { display: flex; gap: 24px; align-items: flex-start; } .nbp-pub-cover img { max-width: 220px; height: auto; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.nbp-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; } .nbp-meta dt { color: #5f6b78; } .nbp-meta dd { margin: 0; }
.nbp-toc li { margin: 8px 0; } .nbp-toc-part { margin: 18px 0 4px; }

/* Converter */
.nbp-conv-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.nbp-conv-bar label { font-weight: 600; } .nbp-conv-bar select { min-width: 220px; }
.nbp-conv-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nbp-conv-panes label { font-weight: 600; }
.nbp-conv-out { font-family: "Noto Serif Tamil", Latha, "Nirmala UI", serif; font-size: 1.05em; }
.nbp-verify { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; } .nbp-verify label { flex: 1 1 260px; font-weight: 600; }

@media (max-width: 720px) {
    .nbp-grid, .nbp-conv-panes { grid-template-columns: 1fr; }
    .nbp-paper { padding: 22px 18px; font-size: 15px; }
    .nbp-call-card, .nbp-pub { flex-direction: column; }
    .nbp-subthemes { columns: 1; }
    .nbp-table thead { display: none; } .nbp-table tr { display: block; border-bottom: 2px solid #dfe3e8; padding: 6px 0; }
    .nbp-table td { display: block; border: 0; padding: 4px 0; } .nbp-table td::before { content: attr(data-label) ": "; font-weight: 600; color: #5f6b78; }
    .nbp-steps { flex-direction: column; }
}
