/* Scoped to the Hinotori article; shared site styles remain unchanged. */
.hinotori-article { --hino-line: #b8c9d5; }
.hinotori-article section { scroll-margin-top: 290px; }
.article-content .hinotori-article p { text-align: left; hyphens: none; }
.hinotori-article a { color: #245b83; text-decoration: underline; text-underline-offset: 3px; }
.hinotori-article a:hover { color: #a72d35; }
.hinotori-article a:focus-visible { outline: 3px solid #a72d35; outline-offset: 4px; }
.hino-contents { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px 24px; margin-bottom: 40px; background: #edf3f7; border: 1px solid var(--hino-line); border-radius: 7px; }
.hino-contents strong { flex-basis: 100%; color: var(--ink); }
.hino-contents a { font-size: 14px; }
.hino-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; border-block: 1px solid var(--hino-line); padding: 22px 0; }
.hino-facts strong { display: block; font-size: 29px; color: var(--ink); }
.hino-facts span { display: block; margin-top: 5px; font-size: 13px; color: #435c6f; }
.hino-table-wrap { overflow-x: auto; margin: 25px 0; border: 1px solid var(--hino-line); border-radius: 7px; }
.hino-table-wrap table { border-collapse: collapse; width: 100%; min-width: 620px; color: #435c6f; font-size: 14px; line-height: 1.6; }
.hino-table-wrap caption { padding: 15px; text-align: left; font-weight: bold; color: var(--ink); }
.hino-table-wrap th, .hino-table-wrap td { padding: 15px; border-top: 1px solid var(--hino-line); text-align: left; vertical-align: top; }
.hino-table-wrap thead { background: #e7eef3; color: var(--ink); }
.hino-table-wrap tbody th { width: 22%; }
.hino-table-wrap tbody tr:nth-child(even) { background: #f2f6f9; }
.hinotori-article code { overflow-wrap: anywhere; color: #24445d; font-size: .9em; }
.article-content .hino-enemy-figure { max-width: 1480px; margin: 28px auto; }
.article-content .hino-enemy-figure img { image-rendering: pixelated; background: #0d1b25; }
.article-content .hinotori-article figcaption { font-size: 13px; color: #435c6f; }
.hino-note { padding: 22px 24px; margin: 26px 0; background: #edf3f7; border-left: 4px solid #315675; }
.hino-note strong { color: var(--ink); }
.hino-note p { margin-top: 8px; }
.hino-map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin: 28px 0; }
.article-content .hino-map-card { min-width: 0; margin: 0; border: 1px solid var(--hino-line); border-radius: 7px; overflow: hidden; background: #edf3f7; align-self: start; }
.article-content .hino-map-card figcaption { margin: 0; padding: 20px; }
.hino-map-card figcaption > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #315675; }
.article-content .hino-map-card h3 { margin: 5px 0; font-size: 27px; }
.article-content .hino-map-card figcaption p { margin: 0; font-size: 14px; }
.hino-map-image { display: block; background: #141922; }
.article-content .hino-map-image img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.hino-map-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 20px; font-size: 13px; font-weight: 700; }
.hino-references { padding-top: 25px !important; border-top: 1px solid var(--hino-line); }
@media (max-width: 650px) {
    .hino-map-grid { grid-template-columns: 1fr; }
    .hino-facts { gap: 10px; }
    .hino-facts strong { font-size: 23px; }
    .hino-facts span { font-size: 12px; }
    .hino-contents { padding: 18px; gap: 14px; }
    .hino-contents a { flex-basis: 100%; }
    .hinotori-article section { scroll-margin-top: 210px; }
}

/* Original ROM graphics, enlarged only by the browser. */
.hino-pixel-panel { display: flex; justify-content: center; align-items: center; padding: 30px 16px; background: #000; border-radius: 7px; }
.article-content .hino-pixel-panel img { image-rendering: pixelated; border: 0; border-radius: 0; max-width: 100%; height: auto; }
.article-content .hino-rinne-art .hino-pixel-panel img { width: 384px; }
.article-content .hino-item-art .hino-pixel-panel img { width: 896px; }
.hino-unused-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0; }
.article-content .hino-unused-card { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--hino-line); border-radius: 7px; background: #edf3f7; }
.hino-pose-row { display: flex; justify-content: center; align-items: end; flex-wrap: wrap; gap: 24px; padding: 30px 18px 20px; min-height: 215px; background: #000; }
.hino-pose { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.article-content .hino-pose img { width: var(--pose-width); height: auto; image-rendering: pixelated; border: 0; border-radius: 0; }
.hino-pose span { color: #dce8f1; font-size: 12px; }
.article-content .hino-unused-card figcaption { margin: 0; padding: 20px; }
.hino-unused-card h4 { margin: 0 0 8px; color: var(--ink); font-size: 21px; }
.article-content .hino-unused-card p { margin: 0; font-size: 14px; }
@media (max-width: 650px) { .hino-unused-grid { grid-template-columns: 1fr; } }

/* Source excerpts stay readable without widening the article on small screens. */
.article-content .hino-code { margin: 24px 0; min-width: 0; }
.article-content .hino-code figcaption { padding: 12px 16px; margin: 0; background: #e7eef3; border: 1px solid var(--hino-line); border-bottom: 0; border-radius: 7px 7px 0 0; }
.article-content .hino-code pre { margin: 0; padding: 20px; max-width: 100%; overflow-x: auto; background: #152532; border: 1px solid #294657; border-radius: 0 0 7px 7px; color: #e6f0f6; font-size: 13px; line-height: 1.65; text-align: left; }
.article-content .hino-code pre code { color: inherit; background: transparent; padding: 0; white-space: pre; overflow-wrap: normal; word-break: normal; font-size: inherit; }
.article-content .hino-code pre:focus-visible { outline: 3px solid #a72d35; outline-offset: 3px; }
#hino-development-traces, #hino-rinne { scroll-margin-top: 290px; }
@media (max-width: 650px) { #hino-development-traces, #hino-rinne { scroll-margin-top: 210px; } }

/* Browser-only ROM patcher. */
.hino-patcher-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #b3c5db; border-radius: 16px; overflow: hidden; background: #fff; margin: 28px 0 0; box-shadow: 0 8px 28px #203c5508; }
.hino-patcher-picker, .hino-patcher-result { padding: 30px; min-width: 0; }
.hino-patcher-result { background: #f3f7fc; border-left: 1px solid #d7e1ef; display: flex; flex-direction: column; align-items: flex-start; }
.article-content .hino-patcher-card h3 { margin: 0 0 10px; font-family: Inter, Arial, sans-serif; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; color: #102b4d; }
.article-content .hino-patcher-card p { margin: 0 0 20px; font-size: 14px; line-height: 1.75; color: #48617f; }
.hino-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 238px; padding: 24px 16px; border: 2px dashed #a8bfe0; border-radius: 12px; background: #f7faff; text-align: center; color: #123861; }
.hino-dropzone.is-dragging { background: #e4efff; border-color: #3264a9; }
.hino-upload-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #e7effd; color: #3264a9; }
.hino-upload-icon svg { width: 27px; height: 27px; }
.hino-dropzone strong { font-size: 15px; }
.hino-drop-hint { font-size: 12px; color: #547091; }
.hino-patcher-card button { font-family: Inter, Arial, sans-serif; font-size: 13px; line-height: 1.5; border-radius: 8px; cursor: pointer; }
.hino-patcher-secondary { border: 1px solid #a6bcdc; padding: 9px 14px; background: #fff; color: #254e80; }
.hino-patcher-secondary:hover:not(:disabled) { background: #e9f1fc; border-color: #527aad; }
.hino-file-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 16px; }
.hino-file-row button { flex-shrink: 0; }
#hino-file-name { min-width: 0; font-size: 12px; color: #547091; overflow-wrap: anywhere; text-align: right; }
.hino-release-label { display: inline-block; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: #3264a9; margin-bottom: 16px; }
.hino-patcher-status { width: 100%; padding: 16px; border: 1px solid #cfdaea; border-radius: 10px; background: #fff; margin: 0 0 18px; color: #345679; }
.hino-patcher-status strong, .hino-patcher-status span { display: block; }
.hino-patcher-status strong { font-size: 14px; margin-bottom: 5px; }
.hino-patcher-status span { font-size: 12px; line-height: 1.65; }
.hino-patcher-status[data-state="ready"], .hino-patcher-status[data-state="success"] { background: #f0f8f4; border-color: #a4caba; color: #235b44; }
.hino-patcher-status[data-state="error"] { background: #fff4f3; border-color: #deb6b2; color: #8c3430; }
.hino-patcher-primary { width: 100%; padding: 13px 16px; color: #fff; border: 1px solid #315b92; background: #315b92; margin: 0 0 16px; font-weight: 600; }
.hino-patcher-primary:hover:not(:disabled) { background: #234774; }
.hino-patcher-primary:disabled { background: #c3cfe2; border-color: #c3cfe2; color: #3b5475; cursor: not-allowed; }
.hino-patcher-secondary:disabled { opacity: .55; cursor: not-allowed; }
.hino-patcher-card button:focus-visible { outline: 3px solid #3264a9; outline-offset: 4px; }
.article-content .hino-patcher-card .hino-patcher-small { font-size: 12px; margin-bottom: 16px; }
.hino-patcher-release { margin-top: auto; font-size: 12px; }
@media (max-width: 740px) {
    .hino-patcher-card { grid-template-columns: minmax(0, 1fr); }
    .hino-patcher-picker, .hino-patcher-result { padding: 22px; }
    .hino-patcher-result { border-left: 0; border-top: 1px solid #d7e1ef; }
}
