/* --------------------------------------------------
   GLOBAL LAYOUT — MOBILE FIRST
-------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, sans-serif;
    background: #fafafa;
    color: #222;
}

#ramapaniching-app {
    max-width: 480px;        /* keeps desktop narrow */
    margin: 0 auto;          /* centre on desktop */
    padding: 0 1rem;
}


/* --------------------------------------------------
   PANEL A — HEADER
-------------------------------------------------- */

#rpc-header {
    text-align: center;
    padding: 1rem 0;
}

#rpc-logo {
    width: 100%;
    max-width: 180px;        /* scales nicely on mobile */
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
}

#rpc-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}


/* --------------------------------------------------
   PANEL B — MAIN CONTENT
-------------------------------------------------- */

#rpc-main {
    margin-top: 1rem;
}

.rpc-view {
    display: block;
}

.rpc-hidden {
    display: none;
}


/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

button,
.rpc-menu-btn {
    width: 100%;
    padding: 0.9rem;
    margin: 0.4rem 0;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

button:hover,
.rpc-menu-btn:hover {
    background: #555;
}

.rpc-back {
    background: #777;
}

.rpc-back:hover {
    background: #999;
}


/* --------------------------------------------------
   INPUTS
-------------------------------------------------- */

input[type="text"],
input[type="file"],
select {
    width: 100%;
    padding: 0.7rem;
    margin: 0.5rem 0 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.rpc-reading-type {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.rpc-reading-option {
    display: block;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fafafa;
}

.rpc-reading-option input {
    margin-right: 0.5rem;
}

.rpc-reading-desc {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.2rem;
}

/* --------------------------------------------------
   SECTION TITLES
-------------------------------------------------- */

h2 {
    font-size: 1.3rem;
    margin-top: 0;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}


/* --------------------------------------------------
   READING VIEWER
-------------------------------------------------- */

#rpc-reading section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

#rpc-reading-buttons button {
    margin-top: 0.5rem;
}

.rpc-guidance-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    cursor: pointer;
}

.rpc-guidance-item input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}
.rpc-trigram-description {
    font-style: italic;
    opacity: 0.85;
    margin: 10px 0;
}

/* --------------------------------------------------
   HEXAGRAM & TRIGRAM GRAPHICS
-------------------------------------------------- */

#rpc-hexagram-graphic,
#rpc-trigram-graphic,
#rpc-present-graphic,
#rpc-past-graphic,
#rpc-future-graphic {
    text-align: center;
    margin: 1rem 0;
}

#rpc-hexagram-graphic img,
#rpc-trigram-graphic img,
#rpc-present-graphic img,
#rpc-past-graphic img,
#rpc-future-graphic img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.rpc-hexagram-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --------------------------------------------------
   PANEL C — FOOTER
-------------------------------------------------- */

#rpc-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
}


/* Helper subtitles (the bracketed explanatory text) */
.rpc-helper-subtitle {
    font-style: italic;
    font-size: 0.9em;        /* ~2px smaller depending on base size */
    opacity: 0.85;           /* subtle, softer tone */
    margin-top: -4px;        /* pulls subtitle closer to the title */
    margin-bottom: 8px;      /* gives breathing room before description */
    color: #444;             /* gentle contrast */
}


.rpc-manual-instructions {
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 12px;
    color: #444;
}

#rpc-manual-mode-label {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.7;
    margin-left: 6px;
}

#rpc-hex-nav {
    display: flex;
    justify-content: center;   /* or space-between / space-around */
    gap: 12px;                 /* nice spacing between buttons */
    margin-top: 10px;
}

#rpc-hex-nav button {
    padding: 8px 14px;
    font-size: 1rem;
    cursor: pointer;
}


.rpc-journal-entry {
    padding: 10px;
    margin-bottom: 10px;
    background: #f4f4f4;
    border-radius: 6px;
}

.rpc-journal-delete {
    all: unset;                 /* remove ALL inherited button styles */
    display: inline-flex;       /* allow centering */
    align-items: center;
    justify-content: center;

    width: 22px;                /* small square */
    height: 22px;

    cursor: pointer;
    border-radius: 4px;

    font-size: 16px;            /* emoji size */
    line-height: 1;

    color: #b71c1c;             /* subtle red */
}

.rpc-journal-delete:hover {
    color: #d32f2f;             /* brighter red */
    transform: scale(1.15);     /* gentle hover zoom */
}


.rpc-journal-load {
    margin-right: 10px;
}



.help-menu {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.help-menu a {
    display: inline-block;
    margin-right: 15px;
    font-weight: bold;
    color: #8b3a3a; /* Ramapani warm red tone */
    text-decoration: none;
}

.help-menu a:hover {
    color: #b44a4a;
}

article.help-section h3 {
    font-size: 1.45rem; /* slightly larger than default */
    margin-top: 40px;
    color: #7a2f2f; /* Ramapani deep red */
    letter-spacing: 0.5px;
}

.ichingHighlight {
  color: #c94f00;      /* or any accent colour you prefer */
  font-weight: 700;    /* optional: makes it feel more intentional */
}
