/* Admin planning pages — shared styles for hub + sub-pages. */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 12px;
}
.plan-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.plan-card:hover {
    transform: translateY(-2px);
    border-color: var(--tl-blue);
    box-shadow: 0 6px 18px rgba(30,27,22,0.08);
}
.plan-card h3 {
    margin: 0 0 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: var(--tl-blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.plan-card p {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.45;
}
.plan-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.plan-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Oswald', sans-serif;
}
.plan-tag-active { background: #FFF8E1; color: #876237; }
.plan-tag-pending { background: #FFEDD5; color: #9A3412; }
.plan-tag-done { background: #f0fdf4; color: #2D5E2A; }
.plan-tag-reference { background: #E8F0FA; color: #1F497D; }
.plan-tag-archive { background: var(--gray-100); color: var(--gray-700); }
.plan-counts {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 4px;
    font-family: monospace;
}

/* Sub-page section formatting */
.plan-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}
.plan-section ul,
.plan-section ol,
.plan-section li,
.plan-section p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
/* The global `* { margin:0; padding:0 }` reset (dash.css) strips list
   indentation, so the marker lands flush against the section padding. Put it
   back for plain lists inside a plan section. The more specific
   `.plan-item-desc ul/ol` rule below still wins for the status-row sub-lists. */
.plan-section ul,
.plan-section ol {
    margin: 8px 0;
    padding-left: 24px;
}
.plan-section li { margin: 4px 0; }
.plan-section code,
.plan-callout code,
.plan-item-desc code,
.plan-prose code {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}
.plan-section > h2 {
    margin: 0 0 8px;
    font-family: 'Oswald', sans-serif;
    color: var(--brown-dark);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}
.plan-section > p,
.plan-section > .plan-prose {
    color: var(--gray-700);
    line-height: 1.55;
    font-size: 0.95rem;
}

.plan-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--gray-100);
    align-items: flex-start;
}
.plan-item:first-of-type { border-top: none; }
.plan-item-status {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--white);
}
.plan-item-status.done { border-color: #2D5E2A; color: #2D5E2A; background: #f0fdf4; }
.plan-item-status.active { border-color: #d4a017; color: #876237; background: #FFF8E1; }
.plan-item-status.pending { border-color: var(--gray-500); color: var(--gray-700); background: var(--white); }
.plan-item-status.optional { border-color: var(--tl-blue); color: var(--tl-blue); background: #E8F0FA; }
.plan-item-body { flex: 1; min-width: 0; }
.plan-item-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.plan-item-desc {
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.plan-item-desc code {
    background: #f6f3eb;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.92em;
}
.plan-item-desc ul,
.plan-item-desc ol {
    margin: 6px 0 0 18px;
    padding: 0;
}
.plan-item-desc li {
    margin: 3px 0;
}

.plan-source {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
    font-family: monospace;
}
.plan-source code {
    background: var(--gray-100);
    padding: 1px 6px;
    border-radius: 3px;
}

.plan-callout {
    background: #fff8e0;
    border-left: 4px solid #d4a017;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 10px 0;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.plan-callout pre,
.plan-section pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    max-width: 100%;
}
.plan-callout strong { color: #876237; }
.plan-callout-blue {
    background: #E8F0FA;
    border-left-color: var(--tl-blue);
}
.plan-callout-blue strong { color: var(--tl-blue); }
.plan-callout-green {
    background: #DBEDD9;
    border-left-color: #2D5E2A;
}
.plan-callout-green strong { color: #2D5E2A; }

.plan-toc {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.plan-toc h4 { margin: 0 0 8px; font-family: 'Oswald', sans-serif; }
.plan-toc ol { margin: 0; padding-left: 20px; line-height: 1.8; }
.plan-toc a { color: var(--tl-blue); text-decoration: none; }
.plan-toc a:hover { text-decoration: underline; }
