/*
Theme Name: REAL CASE FILE
Description: Custom WordPress theme for REAL CASE FILE.
Version: 0.1.0
Text Domain: realcasefile
*/

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.site-header {
    padding: 24px;
    border-bottom: 1px solid #ddd;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.site-main {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.home-hero {
    padding: 72px 0;
}

.home-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.25;
}

.home-hero p {
    margin: 0;
    font-size: 1.25rem;
}

.home-find,
.home-latest {
    padding: 40px 0;
}

.case-card {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.case-card h3 {
    margin: 0;
}

.case-card a {
    text-decoration: none;
}

.case-article {
    padding: 48px 0;
}

.entry-title {
    line-height: 1.3;
}

.entry-content {
    max-width: 760px;
}

.site-footer {
    margin-top: 64px;
    padding: 32px 24px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* RCF POST TAGS START */

.rcf-post-tags {
    margin-top: 2.25rem;
}

.rcf-post-tags h2 {
    margin-bottom: 0.9rem;
}

.rcf-post-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
}

.rcf-post-tag {
    display: inline-block;
    padding: 0.28rem 0.58rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    line-height: 1.35;
    text-decoration: none;
}

.rcf-post-tag:hover,
.rcf-post-tag:focus-visible {
    text-decoration: underline;
}

/* RCF POST TAGS END */
/* RCF ARTICLE TABLES START */

.entry-content table,
.post-content table,
article table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    font-size: 0.95rem;
    line-height: 1.65;
}

.entry-content th,
.entry-content td,
.post-content th,
.post-content td,
article th,
article td {
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
}

.entry-content th,
.post-content th,
article th {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.07);
}

.entry-content tr:nth-child(even) td,
.post-content tr:nth-child(even) td,
article tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.entry-content td:first-child,
.entry-content th:first-child,
.post-content td:first-child,
.post-content th:first-child,
article td:first-child,
article th:first-child {
    min-width: 6.5em;
}

@media (max-width: 720px) {
    .entry-content table,
    .post-content table,
    article table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }

    .entry-content th,
    .entry-content td,
    .post-content th,
    .post-content td,
    article th,
    article td {
        min-width: 9rem;
    }

    .entry-content th:first-child,
    .entry-content td:first-child,
    .post-content th:first-child,
    .post-content td:first-child,
    article th:first-child,
    article td:first-child {
        min-width: 6.5rem;
    }
}

/* RCF ARTICLE TABLES END */
/* RCF SINGLE ARTICLE WIDTH START */

/*
 * CASE article pages need more horizontal room than the initial
 * minimal theme. Keep mobile padding, but use up to 1180px on desktop.
 */
body.single main,
body.single .site-main,
body.single .site-content,
body.single .content-area {
    width: min(94vw, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

body.single article,
body.single .entry-content,
body.single .post-content {
    width: 100%;
    max-width: none;
}

@media (max-width: 720px) {
    body.single main,
    body.single .site-main,
    body.single .site-content,
    body.single .content-area {
        width: calc(100% - 2rem);
        max-width: none;
    }
}

/* RCF SINGLE ARTICLE WIDTH END */

/* RCF ARTICLE CHAPTER SEPARATORS START */

/*
 * Restore the visual chapter separation that existed on FC2.
 * Only article-body H2 headings are targeted.
 * The first H2 is left without a line; subsequent H2 headings get
 * a subtle separator and generous vertical spacing.
 */
.entry-content h2,
.post-content h2,
article .entry-content h2,
article .post-content h2 {
    margin-top: 3rem;
    padding-top: 2rem;
}

.entry-content h2:not(:first-of-type),
.post-content h2:not(:first-of-type),
article .entry-content h2:not(:first-of-type),
article .post-content h2:not(:first-of-type) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.entry-content h2:first-of-type,
.post-content h2:first-of-type,
article .entry-content h2:first-of-type,
article .post-content h2:first-of-type {
    border-top: 0;
}

/* RCF ARTICLE CHAPTER SEPARATORS END */

/* RCF CASE EXPLORER SHELL START */

.rcf-case-explorer {
    padding: 40px 0 48px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.rcf-case-explorer__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.rcf-case-explorer__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.rcf-case-explorer__heading h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.rcf-case-explorer__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    border: 1px solid #ddd;
}

.rcf-case-explorer__tab {
    min-width: 0;
    padding: 12px 10px;
    border: 0;
    border-right: 1px solid #ddd;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.rcf-case-explorer__tab:last-child {
    border-right: 0;
}

.rcf-case-explorer__tab.is-active {
    background: #111;
    color: #fff;
}

.rcf-case-explorer__tab:disabled {
    cursor: default;
    opacity: 0.48;
}

.rcf-case-explorer__tab-en,
.rcf-case-explorer__tab-ja {
    display: block;
}

.rcf-case-explorer__tab-en {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.rcf-case-explorer__tab-ja {
    margin-top: 2px;
    font-size: 0.92rem;
}

.rcf-case-explorer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.rcf-explorer-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
}

.rcf-explorer-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f1f1;
}

.rcf-explorer-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcf-explorer-card__body {
    padding: 16px;
}

.rcf-explorer-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    opacity: 0.68;
}

.rcf-explorer-card__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.rcf-explorer-card__title a,
.rcf-explorer-card__media {
    text-decoration: none;
}

.rcf-explorer-card__terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.rcf-explorer-card__terms li {
    padding: 3px 7px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.35;
}

.rcf-case-explorer__empty {
    margin: 0;
    padding: 32px 0;
}

@media (max-width: 900px) {
    .rcf-case-explorer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .rcf-case-explorer {
        padding: 32px 0 40px;
    }

    .rcf-case-explorer__heading {
        display: block;
    }

    .rcf-case-explorer__heading h2 {
        margin-top: 4px;
    }

    .rcf-case-explorer__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rcf-case-explorer__tab:nth-child(2) {
        border-right: 0;
    }

    .rcf-case-explorer__tab:nth-child(-n + 2) {
        border-bottom: 1px solid #ddd;
    }

    .rcf-case-explorer__grid {
        grid-template-columns: 1fr;
    }
}

/* RCF CASE EXPLORER SHELL END */

/* RCF_DISCOVER_RUNTIME_STYLE_V1 */
.rcf-explorer--runtime { position: relative; }
.rcf-explorer-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.rcf-explorer-kicker {
    margin: 0 0 .25rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.rcf-explorer-head h2 { margin: 0; }
.rcf-discover-refresh {
    min-height: 42px;
    padding: .65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.rcf-discover-refresh:disabled { cursor: wait; opacity: .55; }
.rcf-explorer-modes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: 1rem;
}
.rcf-explorer-modes button {
    min-width: 0;
    padding: .65rem .5rem;
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}
.rcf-explorer-modes button span {
    display: block;
    margin-top: .18rem;
    font-size: .72rem;
    font-weight: 600;
    opacity: .68;
}
.rcf-explorer-modes .is-active { border-color: currentColor; }
.rcf-explorer-modes button:disabled { opacity: .42; }
.rcf-explorer-status {
    min-height: 1.5em;
    margin: 0 0 .65rem;
    font-size: .82rem;
    opacity: .72;
}
.rcf-explorer-status.is-error { opacity: 1; font-weight: 700; }
.rcf-discover-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    transition: opacity .18s ease;
}
.rcf-explorer.is-loading .rcf-discover-grid { opacity: .55; }
.rcf-case-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(127,127,127,.24);
    border-radius: 12px;
    background: rgba(127,127,127,.045);
}
.rcf-case-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(127,127,127,.12);
    color: inherit;
    text-decoration: none;
}
.rcf-case-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rcf-case-card-media > span {
    position: absolute;
    left: .65rem;
    bottom: .6rem;
    padding: .25rem .45rem;
    border-radius: 5px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.rcf-case-card-body { padding: .9rem; }
.rcf-case-card-body h3 { margin: 0 0 .75rem; font-size: 1rem; line-height: 1.4; }
.rcf-case-card-body h3 a { color: inherit; text-decoration: none; }
.rcf-case-card-body h3 a:hover,
.rcf-case-card-body h3 a:focus-visible { text-decoration: underline; }
.rcf-case-card-body dl { display: grid; gap: .35rem; margin: 0; }
.rcf-case-card-body dl > div {
    display: grid;
    grid-template-columns: 4.2em minmax(0,1fr);
    gap: .5rem;
}
.rcf-case-card-body dt,
.rcf-case-card-body dd { margin: 0; font-size: .78rem; line-height: 1.4; }
.rcf-case-card-body dt { opacity: .6; }
.rcf-case-card-body dd { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .rcf-discover-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .rcf-explorer-head { align-items: stretch; flex-direction: column; }
    .rcf-discover-refresh { width: 100%; }
    .rcf-explorer-modes { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .rcf-discover-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .rcf-discover-grid { transition: none; }
}
/* /RCF_DISCOVER_RUNTIME_STYLE_V1 */

/* RCF_CONTINUE_STYLE_V1 */
[data-rcf-explorer-panel][hidden] {
    display: none !important;
}

.rcf-continue-panel {
    min-height: 12rem;
}

.rcf-continue-head {
    margin-bottom: 1rem;
}

.rcf-continue-head h3 {
    margin: 0 0 .35rem;
}

.rcf-continue-head p,
.rcf-continue-empty {
    margin: 0;
    font-size: .9rem;
    opacity: .72;
}

.rcf-continue-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rcf-continue-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(127,127,127,.24);
    border-radius: 12px;
    background: rgba(127,127,127,.045);
}

.rcf-continue-item h4 {
    margin: 0 0 .4rem;
    font-size: 1rem;
    line-height: 1.35;
}

.rcf-continue-article-title,
.rcf-continue-meta {
    margin: 0 0 .65rem;
    font-size: .82rem;
    line-height: 1.45;
}

.rcf-continue-meta {
    opacity: .66;
}

.rcf-continue-item a {
    display: inline-block;
    font-weight: 700;
}

@media (max-width: 900px) {
    .rcf-continue-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rcf-continue-list {
        grid-template-columns: 1fr;
    }
}
/* /RCF_CONTINUE_STYLE_V1 */

/* RCF_CONTINUE_CARD_COMPLETION_V2 */
.rcf-continue-item {
    padding: 0;
    overflow: hidden;
}

.rcf-continue-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(127,127,127,.18), rgba(127,127,127,.06));
    color: inherit;
    text-decoration: none;
}

.rcf-continue-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcf-continue-media.has-no-image::before {
    content: "REAL CASE FILE";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    opacity: .28;
}

.rcf-continue-case-badge {
    position: absolute;
    left: .7rem;
    bottom: .65rem;
    padding: .25rem .45rem;
    border-radius: 5px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.rcf-continue-body {
    padding: 1rem;
}

.rcf-continue-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    margin: 0 0 .85rem;
}

.rcf-continue-progress progress {
    width: 100%;
    height: .55rem;
}

.rcf-continue-progress span {
    font-size: .76rem;
    font-variant-numeric: tabular-nums;
    opacity: .72;
}

.rcf-continue-action {
    font-weight: 700;
}

.rcf-continue-complete {
    margin: 0;
    font-size: .86rem;
    font-weight: 700;
}
/* /RCF_CONTINUE_CARD_COMPLETION_V2 */

/* RCF_FAVORITES_USERDATA_STYLE_V1 */
.rcf-favorite-toggle {
    width: 100%;
    margin-top: .8rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(127,127,127,.32);
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.rcf-favorite-toggle.is-favorite {
    border-color: currentColor;
}

.rcf-favorites-panel {
    min-height: 12rem;
}

.rcf-favorites-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.rcf-favorites-head h3 {
    margin: 0 0 .35rem;
}

.rcf-favorites-head p,
.rcf-favorites-empty,
.rcf-favorites-status,
.rcf-userdata-tools p,
.rcf-userdata-status {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
    opacity: .72;
}

.rcf-favorites-count {
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 800;
}

.rcf-favorites-status,
.rcf-userdata-status {
    min-height: 1.5em;
    margin-bottom: .65rem;
}

.rcf-favorites-status.is-error,
.rcf-userdata-status.is-error {
    opacity: 1;
    font-weight: 700;
}

.rcf-favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: .8rem;
}

.rcf-userdata-tools {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127,127,127,.22);
}

.rcf-userdata-tools h4 {
    margin: 0 0 .35rem;
}

.rcf-userdata-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .8rem;
}

.rcf-userdata-actions button,
.rcf-userdata-import {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: .55rem .8rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.rcf-userdata-import input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .rcf-favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rcf-favorites-head {
        flex-direction: column;
    }

    .rcf-favorites-grid {
        grid-template-columns: 1fr;
    }

    .rcf-userdata-actions {
        flex-direction: column;
    }

    .rcf-userdata-actions button,
    .rcf-userdata-import {
        width: 100%;
    }
}
/* /RCF_FAVORITES_USERDATA_STYLE_V1 */

/* RCF_CASE_SEARCH_STYLE_V1 */
.rcf-search-panel {
    min-height: 16rem;
}

.rcf-search-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rcf-search-kicker {
    margin: 0 0 .25rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.rcf-search-head h3 {
    margin: 0;
}

.rcf-search-reset {
    min-height: 40px;
    padding: .55rem .8rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}

.rcf-search-primary,
.rcf-search-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.rcf-search-group {
    min-width: 0;
    margin: 0;
    padding: .9rem;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 10px;
}

.rcf-search-group legend {
    padding: 0 .3rem;
    font-weight: 800;
}

.rcf-search-group > p {
    margin: 0 0 .7rem;
    font-size: .82rem;
    line-height: 1.5;
    opacity: .68;
}

.rcf-search-options {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.rcf-search-option {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    padding: .4rem .5rem;
    border: 1px solid rgba(127,127,127,.25);
    border-radius: 999px;
    cursor: pointer;
}

.rcf-search-option span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: .78rem;
}

.rcf-search-option small {
    font-size: .68rem;
    opacity: .58;
}

.rcf-search-advanced {
    margin-top: 1rem;
}

.rcf-search-advanced > summary {
    cursor: pointer;
    font-weight: 800;
}

.rcf-search-advanced-grid {
    margin-top: .8rem;
}

.rcf-search-keyword {
    min-width: 0;
    padding: .9rem;
    border: 1px solid rgba(127,127,127,.22);
    border-radius: 10px;
}

.rcf-search-keyword label {
    display: block;
    margin-bottom: .55rem;
    font-weight: 800;
}

.rcf-search-keyword input {
    width: 100%;
    min-height: 42px;
    padding: .55rem .65rem;
    border: 1px solid rgba(127,127,127,.35);
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
}

.rcf-search-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 .65rem;
}

.rcf-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.rcf-search-chip {
    padding: .35rem .5rem;
    border: 1px solid rgba(127,127,127,.28);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .74rem;
    cursor: pointer;
}

.rcf-search-count {
    margin: 0;
    white-space: nowrap;
    font-weight: 800;
}

.rcf-search-status {
    min-height: 1.5em;
    margin: 0 0 .65rem;
    font-size: .82rem;
    opacity: .72;
}

.rcf-search-status.is-error {
    opacity: 1;
    font-weight: 700;
}

.rcf-search-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .rcf-search-primary,
    .rcf-search-advanced-grid {
        grid-template-columns: 1fr;
    }

    .rcf-search-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rcf-search-head,
    .rcf-search-feedback {
        align-items: stretch;
        flex-direction: column;
    }

    .rcf-search-reset {
        width: 100%;
    }

    .rcf-search-results {
        grid-template-columns: 1fr;
    }
}
/* /RCF_CASE_SEARCH_STYLE_V1 */

/* RCF_SEARCH_RESULT_UI_V4 */
.rcf-search-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.rcf-search-more[hidden] {
    display: none !important;
}

.rcf-search-shown {
    margin: 0;
    font-size: .82rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.rcf-search-more button {
    min-height: 42px;
    padding: .6rem .9rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.rcf-search-more button:disabled {
    cursor: wait;
    opacity: .58;
}

@media (max-width: 600px) {
    .rcf-search-results {
        display: flex;
        gap: .85rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: .15rem;
        padding: .15rem .15rem .75rem;
        -webkit-overflow-scrolling: touch;
    }

    .rcf-search-results > .rcf-case-card {
        flex: 0 0 min(84vw, 22rem);
        scroll-snap-align: start;
    }

    .rcf-search-more {
        align-items: stretch;
        flex-direction: column;
    }

    .rcf-search-more button {
        width: 100%;
    }
}
/* /RCF_SEARCH_RESULT_UI_V4 */

/* RCF_EXPLORER_CONTRACT_CLOSURE_V2 */
.rcf-continue-item {
    position: relative;
}

.rcf-continue-remove {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.rcf-article-favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 0 1rem;
    padding: .5rem .75rem;
    border: 1px solid rgba(127,127,127,.35);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.rcf-article-favorite-toggle.is-favorite {
    border-color: currentColor;
}

@media (max-width: 600px) {
    #rcf-discover-grid,
    .rcf-favorites-grid {
        display: flex;
        gap: .85rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: .15rem;
        padding: .15rem .15rem .75rem;
        -webkit-overflow-scrolling: touch;
    }

    #rcf-discover-grid > .rcf-case-card,
    .rcf-favorites-grid > .rcf-case-card {
        flex: 0 0 min(84vw, 22rem);
        scroll-snap-align: start;
    }
}
/* /RCF_EXPLORER_CONTRACT_CLOSURE_V2 */



/* RCF_FC2_VISUAL_PARITY_V1 */
:root {
    --rcf-case-bg: #101311;
    --rcf-case-surface: #171b18;
    --rcf-case-surface-2: #1d221e;
    --rcf-case-line: rgba(255,255,255,.13);
    --rcf-case-line-strong: rgba(255,255,255,.24);
    --rcf-case-text: #f0f2ef;
    --rcf-case-muted: #aeb6ae;
    --rcf-case-accent: #d4b56e;
    --rcf-case-accent-soft: rgba(212,181,110,.12);
    --rcf-case-danger: #b96a5e;
    --rcf-case-max: 1180px;
    --rcf-shell-max: 1300px;
    --rcf-sidebar-width: 300px;
}
html { background: var(--rcf-case-bg); }
body {
    margin: 0;
    background: var(--rcf-case-bg);
    color: var(--rcf-case-text);
    font-family: Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", YuGothic, Meiryo, "Yu Gothic", sans-serif;
}
body.rcf-menu-open { overflow: hidden; }
.rcf-sr-only { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
.site-main { min-height: 60vh; }

.rcf-site-header { position:sticky;top:0;z-index:70;background:rgba(16,19,17,.96);border-bottom:1px solid var(--rcf-case-line);backdrop-filter:blur(8px); }
.rcf-site-header-inner,.rcf-site-footer-inner { width:min(92%,var(--rcf-shell-max));margin-inline:auto; }
.rcf-site-header-inner { display:grid;grid-template-columns:auto 1fr auto;align-items:center;min-height:80px;gap:1.5rem; }
.rcf-site-brand { display:block;width:clamp(190px,19vw,260px);max-width:260px;aspect-ratio:4.15/1;overflow:hidden;margin:0;padding:0;line-height:0;text-decoration:none; }
.rcf-brand-image { display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;object-position:center center;filter:none; }
.rcf-site-nav,.rcf-footer-nav { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.55rem 1.25rem; }
.rcf-site-nav a,.rcf-footer-nav a { color:var(--rcf-case-muted);font-size:12px;font-weight:700;letter-spacing:.035em;text-decoration:none; }
.rcf-site-nav a:hover,.rcf-site-nav a:focus-visible,.rcf-footer-nav a:hover,.rcf-footer-nav a:focus-visible { color:var(--rcf-case-text); }
.rcf-menu-toggle,.rcf-sidebar-close { border:1px solid var(--rcf-case-line-strong);background:transparent;color:var(--rcf-case-text);font:inherit;cursor:pointer; }
.rcf-menu-toggle { min-width:58px;min-height:36px;padding:.45rem .7rem;font-size:11px;font-weight:800;letter-spacing:.12em; }

.rcf-sidebar-backdrop { position:fixed;inset:0;z-index:79;background:rgba(0,0,0,.58); }
.rcf-sidebar-backdrop[hidden] { display:none!important; }
.rcf-site-sidebar { position:fixed;top:0;right:0;z-index:80;width:min(88vw,var(--rcf-sidebar-width));height:100dvh;box-sizing:border-box;overflow-y:auto;padding:26px 22px 32px;background:var(--rcf-case-surface);border-left:1px solid var(--rcf-case-line);box-shadow:-16px 0 40px rgba(0,0,0,.28);transform:translateX(102%);visibility:hidden;transition:transform .22s ease,visibility .22s step-end; }
body.rcf-menu-open .rcf-site-sidebar { transform:translateX(0);visibility:visible;transition:transform .22s ease,visibility 0s; }
.rcf-sidebar-close { display:grid;place-items:center;width:38px;height:38px;margin:0 0 18px auto;padding:0;font-size:22px;line-height:1; }
.rcf-sidebar-brand { width:100%;margin:0 0 18px;padding:8px 0 22px;border-bottom:1px solid var(--rcf-case-line); }
.rcf-sidebar-brand a { display:block;width:min(100%,240px);aspect-ratio:3.8/1;overflow:hidden;margin:0 auto;line-height:0; }
.rcf-sidebar-section h2 { margin:0 0 12px;color:var(--rcf-case-text);font-size:12px;letter-spacing:.06em; }
.rcf-sidebar-actions { display:grid; }
.rcf-sidebar-actions a { padding:11px 0;border-bottom:1px solid var(--rcf-case-line);color:var(--rcf-case-muted);font-size:13px;line-height:1.5;text-decoration:none; }
.rcf-sidebar-actions a:hover,.rcf-sidebar-actions a:focus-visible { color:var(--rcf-case-accent); }

.rcf-home-hero,.rcf-explorer,.rcf-latest-compact { width:min(92%,var(--rcf-case-max));box-sizing:border-box;margin-inline:auto; }
.rcf-home-hero { padding:clamp(44px,7vw,82px) 0 clamp(34px,5vw,58px);border-bottom:1px solid var(--rcf-case-line); }
.rcf-home-hero h1 { width:100%;margin:0;color:var(--rcf-case-text);font-size:clamp(30px,3.25vw,46px);line-height:1.18;letter-spacing:-.035em;font-weight:800; }
.rcf-home-title-line { display:block; }
.rcf-home-hero-copy { max-width:820px;margin-top:26px; }
.rcf-home-hero-copy p { margin:0;color:var(--rcf-case-muted);font-size:14px;line-height:1.9; }
.rcf-home-hero-copy p+p { margin-top:14px; }
#case-explorer { scroll-margin-top:96px; }
.rcf-explorer { margin-top:clamp(34px,5vw,62px); }
.rcf-explorer-kicker,.rcf-search-kicker { color:var(--rcf-case-accent); }
.rcf-discover-grid,.rcf-search-results,.rcf-favorites-grid { gap:14px; }

.rcf-case-card { display:flex;min-width:0;overflow:hidden;flex-direction:column;background:var(--rcf-case-surface);border:1px solid var(--rcf-case-line);border-radius:0;color:var(--rcf-case-text);transition:border-color .18s ease,background .18s ease; }
.rcf-case-card:hover { border-color:var(--rcf-case-accent); }
.rcf-case-card-media { position:relative;display:flex;align-items:flex-end;min-height:175px;aspect-ratio:8/5;overflow:hidden;padding:14px;box-sizing:border-box;isolation:isolate;background:var(--rcf-case-surface-2);color:inherit;text-decoration:none; }
.rcf-case-card-media::after { content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.78)); }
.rcf-case-card-media img { position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover; }
.rcf-case-card-media>span { position:relative;z-index:2;color:#e7dec9;font-size:9.2px;font-weight:800;letter-spacing:.12em; }
.rcf-case-card-body { display:flex;flex:1;flex-direction:column;padding:16px; }
.rcf-case-card-category { display:block;color:var(--rcf-case-accent);font-size:10px;font-weight:800;line-height:1.4;letter-spacing:.035em; }
.rcf-case-card-body h3 { margin:7px 0 8px;color:var(--rcf-case-text);font-size:16.2px;line-height:1.4; }
.rcf-case-card-body h3 a { color:inherit;text-decoration:none; }
.rcf-case-card-summary { margin:0;color:var(--rcf-case-muted);font-size:11.2px;line-height:1.72; }
.rcf-case-card-body dl { display:grid;gap:4px;margin:14px 0 0;padding:11px 0;border-top:1px solid var(--rcf-case-line);border-bottom:1px solid var(--rcf-case-line); }
.rcf-case-card-body dl>div { display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px; }
.rcf-case-card-body dt,.rcf-case-card-body dd { margin:0;font-size:9.8px;line-height:1.45; }
.rcf-case-card-body dt { color:#7f8a81; }
.rcf-case-card-body dd { min-width:0;color:var(--rcf-case-muted);overflow-wrap:anywhere; }
.rcf-case-card-actions { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:12px; }
.rcf-case-card-cta { color:var(--rcf-case-accent);font-size:10.5px;font-weight:800;line-height:1.4;text-decoration:none; }
.rcf-case-card-cta:hover,.rcf-case-card-cta:focus-visible { text-decoration:underline; }
.rcf-favorite-toggle { min-height:30px;padding:4px 8px;border:1px solid var(--rcf-case-line-strong);border-radius:0;background:transparent;color:var(--rcf-case-muted);font:inherit;font-size:9.8px;font-weight:700;cursor:pointer; }
.rcf-favorite-toggle.is-favorite,.rcf-favorite-toggle[aria-pressed="true"] { border-color:var(--rcf-case-accent);color:var(--rcf-case-accent); }

.rcf-latest-compact { margin-top:clamp(34px,5vw,62px); }
.rcf-site-footer { margin-top:clamp(44px,7vw,84px);border-top:1px solid var(--rcf-case-line);background:var(--rcf-case-bg); }
.rcf-site-footer-inner { display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px 32px;min-height:118px;padding-block:22px; }
.rcf-footer-brand-wrap { display:grid;justify-items:start;gap:8px; }
.rcf-footer-brand { display:block;width:min(300px,30vw);aspect-ratio:4/1;overflow:hidden;line-height:0; }
.rcf-footer-site-name { color:var(--rcf-case-muted);font-size:12px;letter-spacing:.06em; }
.rcf-site-footer small { color:var(--rcf-case-muted);font-size:10px;opacity:.62; }

@media (min-width:769px) { .rcf-home-title-line { white-space:nowrap; } }
@media (max-width:900px) {
    .rcf-site-header-inner { grid-template-columns:auto 1fr auto;gap:12px; }
    .rcf-site-nav { display:none; }
    .rcf-site-brand { width:clamp(165px,26vw,225px); }
    .rcf-site-footer-inner { grid-template-columns:1fr;align-items:start; }
    .rcf-footer-nav { justify-content:flex-start; }
}
@media (max-width:768px) {
    .rcf-home-hero h1 { font-size:clamp(27px,8vw,38px); }
    .rcf-home-title-line { white-space:normal; }
}
@media (max-width:620px) {
    .rcf-site-header-inner,.rcf-site-footer-inner,.rcf-home-hero,.rcf-explorer,.rcf-latest-compact { width:calc(100% - 32px); }
    .rcf-site-header-inner { min-height:66px; }
    .rcf-site-brand { width:clamp(138px,40vw,178px);aspect-ratio:4/1; }
    .rcf-sidebar-brand a { width:min(100%,210px); }
    .rcf-home-hero-copy p { font-size:13px; }
    .rcf-case-card-media { min-height:165px; }
    .rcf-footer-brand { width:min(92%,320px); }
}
@media (max-width:420px) {
    .rcf-site-brand { width:clamp(126px,38vw,158px); }
    .rcf-sidebar-brand a { width:min(100%,190px); }
}
@media (prefers-reduced-motion:reduce) { .rcf-site-sidebar,.rcf-case-card { transition:none; } }
/* /RCF_FC2_VISUAL_PARITY_V1 */





/* RCF_FC2_OFFCANVAS_FULLWIDTH_V3 */
:root {
    --rcf-fc2-whole: 1300px;
    --rcf-fc2-radius-lg: 20px;
    --rcf-fc2-radius-md: 12px;
}

.rcf-site-header-inner,
.rcf-site-footer-inner,
.rcf-page-shell {
    width: min(92%, var(--rcf-fc2-whole));
    max-width: var(--rcf-fc2-whole);
    margin-inline: auto;
}

.rcf-page-shell {
    display: block;
}

.site-main {
    width: 100%;
    min-width: 0;
}

.rcf-site-header-inner {
    display: grid;
    grid-template-columns: 42px auto 1fr;
    align-items: center;
    min-height: 80px;
    gap: 18px;
}

.rcf-menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
}

.rcf-menu-icon {
    display: grid;
    width: 24px;
    gap: 5px;
}

.rcf-menu-icon > span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rcf-case-text);
    border-radius: 999px;
}

.rcf-site-brand {
    justify-self: start;
}

.rcf-site-nav {
    justify-self: end;
}

.rcf-sidebar-backdrop {
    background: rgba(0,0,0,.62);
}

.rcf-site-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    z-index: 80;
    width: min(88vw, 300px) !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 26px 22px 32px !important;
    overflow-y: auto;
    background: #171b18 !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 0 !important;
    box-shadow: 16px 0 40px rgba(0,0,0,.32) !important;
    transform: translateX(-102%) !important;
    visibility: hidden !important;
    transition: transform .22s ease, visibility .22s step-end !important;
}

body.rcf-menu-open .rcf-site-sidebar {
    transform: translateX(0) !important;
    visibility: visible !important;
    transition: transform .22s ease, visibility 0s !important;
}

.rcf-sidebar-close {
    display: grid !important;
}

.rcf-sidebar-brand a {
    width: min(100%,240px);
}

.rcf-home-hero,
.rcf-explorer {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

.rcf-home-hero {
    margin-top: 30px;
    padding: 70px 48px 48px;
    background: #171b18;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--rcf-fc2-radius-lg);
    overflow: hidden;
}

.rcf-home-hero h1 {
    max-width: 1000px;
    font-size: clamp(40px, 3.4vw, 52px);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.rcf-home-hero-copy {
    max-width: 920px;
    margin-top: 28px;
}

.rcf-home-hero-copy p {
    font-size: 15px;
    line-height: 1.85;
}

.rcf-home-hero-lead {
    color: var(--rcf-case-accent) !important;
    font-weight: 800;
}

.rcf-home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.rcf-home-stats > span {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.015);
}

.rcf-home-stats strong {
    color: var(--rcf-case-text);
    font-size: 18px;
    line-height: 1;
}

.rcf-home-stats small {
    color: var(--rcf-case-muted);
    font-size: 11px;
}

.rcf-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rcf-home-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.16);
    color: var(--rcf-case-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.rcf-home-actions a.is-primary {
    border-color: var(--rcf-case-accent);
    background: var(--rcf-case-accent);
    color: #151813;
}

.rcf-explorer {
    margin-top: 28px;
    padding: 32px;
    background: #171b18;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--rcf-fc2-radius-lg);
    overflow: hidden;
}

.rcf-explorer-head h2 {
    font-size: 27px;
}

.rcf-discover-refresh[hidden] {
    display: none !important;
}

.rcf-case-card {
    border-radius: var(--rcf-fc2-radius-md);
}

.rcf-case-card-media {
    min-height: 190px;
}

.rcf-case-card-category {
    font-size: 11.5px;
}

.rcf-case-card-body h3 {
    font-size: 18px;
    line-height: 1.42;
}

.rcf-case-card-summary {
    font-size: 13px;
    line-height: 1.74;
}

.rcf-case-card-body dt,
.rcf-case-card-body dd {
    font-size: 12px;
    line-height: 1.55;
}

.rcf-case-card-cta {
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .rcf-site-header-inner {
        grid-template-columns: 42px auto 1fr;
        gap: 12px;
    }

    .rcf-site-nav {
        display: none;
    }

    .rcf-home-hero {
        padding: 48px 32px 36px;
    }
}

@media (max-width: 620px) {
    .rcf-site-header-inner,
    .rcf-site-footer-inner,
    .rcf-page-shell {
        width: calc(100% - 28px);
    }

    .rcf-site-header-inner {
        min-height: 66px;
        grid-template-columns: 38px auto 1fr;
        gap: 10px;
    }

    .rcf-menu-toggle {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .rcf-menu-icon,
    .rcf-menu-icon > span {
        width: 22px;
    }

    .rcf-home-hero {
        margin-top: 18px;
        padding: 32px 20px 28px;
        border-radius: 16px;
    }

    .rcf-home-hero h1 {
        font-size: clamp(28px,8vw,38px);
    }

    .rcf-home-hero-copy p {
        font-size: 14px;
    }

    .rcf-home-stats strong {
        font-size: 17px;
    }

    .rcf-home-actions a {
        min-height: 40px;
        padding-inline: 12px;
    }

    .rcf-explorer {
        margin-top: 18px;
        padding: 22px 18px 24px;
        border-radius: 16px;
    }

    .rcf-case-card {
        border-radius: 10px;
    }
}
/* /RCF_FC2_OFFCANVAS_FULLWIDTH_V3 */

/* RCF_CONTACT_PRIVACY_STYLE_V1 */
.rcf-fixed-page{width:min(92%,1180px);margin:0 auto;padding:clamp(28px,5vw,64px) 0}
.rcf-fixed-page-inner{width:min(100%,760px);margin:0 auto;padding:clamp(22px,4vw,38px);border:1px solid rgba(255,255,255,.13);border-radius:18px;background:#171b18;color:#f0f2ef}
.rcf-fixed-page-header{margin-bottom:24px}.rcf-fixed-page-kicker{display:block;margin-bottom:7px;color:#d4b56e;font-size:11px;font-weight:800;letter-spacing:.13em}
.rcf-fixed-page-header h1{margin:0;font-size:clamp(24px,4vw,36px);line-height:1.35}.rcf-fixed-page-header p{margin:12px 0 0;color:#aeb6ae;line-height:1.8}
.rcf-contact-notice,.rcf-contact-article-context{margin:0 0 24px;padding:14px 16px;border:1px solid rgba(255,255,255,.13);background:#1d221e;color:#aeb6ae;line-height:1.7}
.rcf-contact-notice p{margin:0}.rcf-contact-notice p+p{margin-top:5px}.rcf-contact-notice a,.rcf-privacy-page a{color:#d4b56e}
.rcf-contact-article-context{display:grid;gap:4px}.rcf-contact-article-context span{color:#7f8a81;font-size:12px}.rcf-contact-article-context strong{color:#f0f2ef;font-size:14px}
.rcf-contact-form{display:grid;gap:21px}.rcf-contact-field{display:grid;gap:8px}.rcf-contact-field>label{color:#f0f2ef;font-size:14px;font-weight:700}
.rcf-field-chip{display:inline-flex;align-items:center;min-height:20px;margin-left:5px;padding:2px 7px;border-radius:999px;font-size:10px;line-height:1;vertical-align:middle}
.rcf-field-required{border:1px solid rgba(212,181,110,.55);background:rgba(212,181,110,.1);color:#d4b56e}.rcf-field-optional{border:1px solid rgba(255,255,255,.13);background:#1d221e;color:#aeb6ae}
.rcf-contact-input{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:11px 13px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:#101311;color:#f0f2ef;box-shadow:none;outline:none;font:inherit;font-size:16px}
.rcf-contact-input::placeholder{color:#7f8a81}.rcf-contact-input:focus{border-color:#d4b56e;box-shadow:0 0 0 3px rgba(212,181,110,.12)}
.rcf-contact-textarea{min-height:190px;line-height:1.75;resize:vertical}.rcf-contact-help{margin:0;color:#7f8a81;font-size:11px;text-align:right}
.rcf-contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.rcf-contact-privacy{border:1px solid rgba(255,255,255,.13);border-radius:10px;background:#1d221e}.rcf-contact-privacy summary{padding:13px 14px;color:#f0f2ef;font-size:13px;font-weight:700;cursor:pointer}
.rcf-contact-privacy>div{padding:0 14px 14px;color:#aeb6ae;font-size:12px;line-height:1.75}.rcf-contact-privacy p{margin:0}.rcf-contact-privacy p+p{margin-top:7px}
.rcf-contact-consent{display:flex;align-items:flex-start;gap:10px;color:#f0f2ef;font-size:13px;line-height:1.6;cursor:pointer}.rcf-contact-consent input{flex:0 0 auto;width:20px;height:20px;margin:1px 0 0;accent-color:#d4b56e}
.rcf-contact-actions,.rcf-privacy-actions,.rcf-article-contact-panel{display:flex;flex-wrap:wrap;gap:10px}
.rcf-contact-submit,.rcf-contact-secondary,.rcf-article-action{display:inline-flex;align-items:center;justify-content:center;min-height:46px;box-sizing:border-box;padding:0 18px;border-radius:10px;font:inherit;font-size:13px;font-weight:760;text-decoration:none;cursor:pointer}
.rcf-contact-submit,.rcf-article-action--primary{border:1px solid #d4b56e;background:#d4b56e;color:#172015!important}.rcf-contact-secondary,.rcf-article-action--secondary{border:1px solid rgba(255,255,255,.24);background:#171b18;color:#f0f2ef!important}
.rcf-contact-form-note{margin:0;padding-top:14px;border-top:1px solid rgba(255,255,255,.13);color:#aeb6ae;font-size:11px;line-height:1.65}
.rcf-privacy-inner>section{padding:18px 0;border-top:1px solid rgba(255,255,255,.13)}.rcf-privacy-inner h2{margin:0 0 10px;color:#f0f2ef;font-size:18px;line-height:1.5}
.rcf-privacy-inner section p{margin:0;color:#aeb6ae;line-height:1.8}.rcf-privacy-inner section p+p{margin-top:9px}.rcf-privacy-date{font-size:12px}.rcf-privacy-actions{margin-top:24px}
.rcf-article-contact-panel{margin:28px 0 0;padding-top:18px;border-top:1px solid rgba(255,255,255,.13)}
.entry-share-compact,#entry-share,.rcf-article-share,[data-rcf-article-share]{display:none!important}
@media(hover:hover){.rcf-contact-submit:hover,.rcf-article-action--primary:hover{filter:brightness(1.06)}.rcf-contact-secondary:hover,.rcf-article-action--secondary:hover{border-color:#d4b56e}}
@media(max-width:600px){.rcf-fixed-page{width:calc(100% - 2rem);padding:24px 0 40px}.rcf-fixed-page-inner{padding:20px 16px;border-radius:14px}.rcf-contact-actions,.rcf-privacy-actions,.rcf-article-contact-panel{display:grid;grid-template-columns:1fr}.rcf-contact-submit,.rcf-contact-secondary,.rcf-article-action{width:100%}}
/* /RCF_CONTACT_PRIVACY_STYLE_V1 */

/* RCF_ARTICLE_READING_VISUAL_V1 */

/* ---------------------------------------------------------
   Article page axis / palette
--------------------------------------------------------- */

body.single {
    background: var(--rcf-case-bg);
    color: var(--rcf-case-text);
}

body.single .site-main {
    width: min(92%, 1300px);
    max-width: 1300px;
    margin-inline: auto;
}

body.single .rcf-article-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(34px, 5vw, 64px) 0 0;
    color: var(--rcf-case-text);
}

body.single .rcf-article-header {
    width: min(100%, 1120px);
    margin: 0 auto;
}

body.single .entry-title {
    margin: 0;
    color: var(--rcf-case-text);
    font-size: clamp(31px, 2.7vw, 42px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.025em;
    text-wrap: balance;
    word-break: auto-phrase;
    overflow-wrap: normal;
}

body.single .rcf-title-separator {
    color: var(--rcf-case-muted);
    font-weight: 600;
}

body.single .rcf-title-segment {
    box-decoration-break: clone;
}

/* Favorite is injected by the already-committed reader-state contract. */
body.single .rcf-article-favorite-toggle {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 18px;
    border-color: var(--rcf-case-line-strong);
    color: var(--rcf-case-muted);
}

body.single .rcf-article-favorite-toggle.is-favorite,
body.single .rcf-article-favorite-toggle[aria-pressed="true"] {
    border-color: var(--rcf-case-accent);
    color: var(--rcf-case-accent);
}

/* ---------------------------------------------------------
   Featured image: one predictable editorial viewport
--------------------------------------------------------- */

body.single .rcf-article-featured {
    width: min(100%, 1000px);
    aspect-ratio: 16 / 9;
    max-height: 420px;
    margin: clamp(28px, 4vw, 44px) auto clamp(38px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid var(--rcf-case-line);
    border-radius: 18px;
    background: var(--rcf-case-surface);
}

body.single .rcf-article-featured img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* ---------------------------------------------------------
   Reading layout: FC2-style left rail + narrow article body
--------------------------------------------------------- */

body.single .rcf-article-reading-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 820px);
    justify-content: center;
    align-items: start;
    gap: 40px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

body.single .rcf-article-column {
    min-width: 0;
    width: 100%;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--rcf-case-line);
    border-radius: 18px;
    background: var(--rcf-case-surface);
}

body.single .entry-content {
    width: 100%;
    max-width: none;
    color: var(--rcf-case-text);
}

body.single .entry-content > .entry-header[hidden],
body.single .entry-content > .entry-eyecatch[hidden],
body.single .entry-content > .entry-header,
body.single .entry-content > .entry-eyecatch {
    display: none !important;
}

body.single .entry-content > p:empty {
    display: none;
}

/* ---------------------------------------------------------
   Desktop current-chapter rail
--------------------------------------------------------- */

body.single .rcf-article-toc {
    position: sticky;
    top: 108px;
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

body.single .rcf-article-toc-inner {
    padding: 16px 14px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 14px;
    background: var(--rcf-case-surface);
}

body.single .rcf-article-toc-kicker {
    margin: 0 0 12px;
    padding: 0 2px 12px;
    border-bottom: 1px solid var(--rcf-case-line);
    color: var(--rcf-case-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
}

body.single .rcf-article-toc-list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single .rcf-article-toc-link {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 8px;
    border-left: 2px solid transparent;
    color: var(--rcf-case-muted);
    text-decoration: none;
    transition:
        color .15s ease,
        background .15s ease,
        border-color .15s ease;
}

body.single .rcf-article-toc-number {
    padding-top: 1px;
    color: #7f8a81;
    font-size: 10px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
}

body.single .rcf-article-toc-label {
    min-width: 0;
    font-size: 11px;
    line-height: 1.48;
    overflow-wrap: anywhere;
}

body.single .rcf-article-toc-link.is-current,
body.single .rcf-article-toc-link[aria-current="location"] {
    border-left-color: var(--rcf-case-accent);
    background: var(--rcf-case-accent-soft);
    color: var(--rcf-case-text);
}

body.single .rcf-article-toc-link.is-current .rcf-article-toc-number,
body.single .rcf-article-toc-link[aria-current="location"] .rcf-article-toc-number {
    color: var(--rcf-case-accent);
}

/* ---------------------------------------------------------
   Header-under reading progress
--------------------------------------------------------- */

body.single .rcf-reading-progress {
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 69;
    width: 100%;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    background: rgba(255,255,255,.055);
}

body.single .rcf-reading-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--rcf-case-accent);
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* ---------------------------------------------------------
   Body typography / chapter rhythm
--------------------------------------------------------- */

body.single .inner-contents {
    min-width: 0;
    color: var(--rcf-case-text);
    font-size: 17px;
    line-height: 1.95;
}

body.single .inner-contents > p {
    margin: 0 0 1.65em;
}

body.single .inner-contents > p:last-child {
    margin-bottom: 0;
}

body.single .inner-contents h2 {
    margin: 4.5rem 0 1.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--rcf-case-line-strong);
    color: var(--rcf-case-text);
    font-size: clamp(23px, 2vw, 28px);
    line-height: 1.52;
    letter-spacing: -.015em;
    scroll-margin-top: 112px;
    text-wrap: pretty;
}

body.single .inner-contents h2:first-of-type {
    margin-top: 2.25rem;
    padding-top: 0;
    border-top: 0;
}

body.single .inner-contents h3 {
    margin: 3.1rem 0 1.35rem;
    color: var(--rcf-case-text);
    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.55;
    scroll-margin-top: 112px;
}

body.single .inner-contents h4 {
    margin: 2.4rem 0 1rem;
    color: var(--rcf-case-text);
    font-size: 18px;
    line-height: 1.55;
}

body.single .inner-contents strong {
    color: var(--rcf-case-text);
    font-weight: 800;
}

body.single .inner-contents a {
    color: var(--rcf-case-accent);
    text-underline-offset: .18em;
}

body.single .inner-contents sup {
    font-size: .68em;
    line-height: 0;
}

body.single .inner-contents ul,
body.single .inner-contents ol {
    margin: 1.5em 0 1.9em;
    padding-left: 1.65em;
}

body.single .inner-contents ul {
    list-style: disc;
}

body.single .inner-contents ol {
    list-style: decimal;
}

body.single .inner-contents li {
    margin: .58em 0;
    padding-left: .15em;
}

body.single .inner-contents li::marker {
    color: var(--rcf-case-accent);
}

body.single .inner-contents hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid var(--rcf-case-line);
}

body.single .inner-contents blockquote {
    margin: 2em 0;
    padding: 17px 20px;
    border: 1px solid var(--rcf-case-line);
    border-left: 3px solid var(--rcf-case-accent);
    background: var(--rcf-case-surface-2);
    color: var(--rcf-case-muted);
}

body.single .inner-contents pre {
    max-width: 100%;
    margin: 2em 0;
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid var(--rcf-case-line);
    border-radius: 10px;
    background: #0d100e;
    color: var(--rcf-case-text);
}

body.single .inner-contents code {
    color: #e7dec9;
}

/* ---------------------------------------------------------
   Tables
--------------------------------------------------------- */

body.single .inner-contents table {
    width: 100%;
    margin: 2.2em 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--rcf-case-surface-2);
    color: var(--rcf-case-text);
    font-size: 14px;
    line-height: 1.65;
}

body.single .inner-contents th,
body.single .inner-contents td {
    padding: 11px 12px;
    border: 1px solid var(--rcf-case-line-strong);
    background: transparent;
    color: inherit;
    vertical-align: top;
}

body.single .inner-contents th {
    background: rgba(212,181,110,.08);
    color: var(--rcf-case-text);
    font-weight: 800;
}

body.single .inner-contents tr:nth-child(even) td {
    background: rgba(255,255,255,.025);
}

/* ---------------------------------------------------------
   Editorial figures / maps / callouts / source boxes
--------------------------------------------------------- */

body.single .inner-contents figure {
    width: min(100%, 820px);
    margin: 2.4em auto;
}

body.single .inner-contents figure img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 12px;
}

body.single .inner-contents figcaption {
    margin-top: 9px;
    color: var(--rcf-case-muted);
    font-size: 12px;
    line-height: 1.65;
}

body.single .inner-contents iframe,
body.single .inner-contents video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 2em auto;
    border-radius: 12px;
    background: #0d100e;
}

body.single .map-box,
body.single .fact-check,
body.single .fact-box,
body.single .info-box,
body.single .note-box,
body.single .summary-box,
body.single .warning-box,
body.single .key-point,
body.single .point-box,
body.single .article-callout,
body.single .article-series,
body.single .source-note,
body.single .article-pager,
body.single .rcf-dark-normalized {
    margin: 2em 0;
    padding: 18px 20px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 12px;
    background: var(--rcf-case-surface-2) !important;
    color: var(--rcf-case-text) !important;
}

body.single .fact-check,
body.single .fact-box,
body.single .key-point {
    border-left: 3px solid var(--rcf-case-accent);
}

body.single .warning-box {
    border-left: 3px solid var(--rcf-case-danger);
    background: rgba(185,106,94,.10) !important;
}

body.single .map-box {
    border-left: 3px solid #7f8a81;
}

body.single .map-note,
body.single .source-note {
    color: var(--rcf-case-muted) !important;
    font-size: 13px;
    line-height: 1.75;
}

body.single .fact-check h3,
body.single .fact-box h3,
body.single .map-box h3,
body.single .article-callout h3 {
    margin-top: 0;
}

body.single .rcf-dark-normalized *,
body.single .rcf-dark-normalized p,
body.single .rcf-dark-normalized li,
body.single .rcf-dark-normalized span,
body.single .rcf-dark-normalized strong {
    color: inherit;
}

body.single .rcf-dark-normalized a {
    color: var(--rcf-case-accent) !important;
}

body.single .source-list {
    display: grid;
    gap: 14px;
    margin: 1.5em 0;
    padding: 0;
    list-style: none;
}

body.single .source-list > li {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 10px;
    background: rgba(255,255,255,.022);
}

body.single .source-list > li > span {
    display: block;
    margin-top: 7px;
    color: var(--rcf-case-muted);
    font-size: 13px;
    line-height: 1.72;
}

body.single .article-pager {
    display: grid;
    gap: 8px;
}

body.single .article-pager p {
    margin: 0;
}

/* ---------------------------------------------------------
   Legacy footer / tags / actions
--------------------------------------------------------- */

body.single .entry-share-compact,
body.single #entry-share,
body.single .rcf-article-share,
body.single [data-rcf-article-share] {
    display: none !important;
}

body.single .entry-tags-footer:empty {
    display: none;
}

body.single .entry-return-cta {
    display: grid;
    gap: 16px;
    margin: 3rem 0 0;
    padding: 20px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 12px;
    background: var(--rcf-case-surface-2);
}

body.single .entry-return-title {
    margin: 0 0 5px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 18px !important;
}

body.single .entry-return-copy p {
    margin: 0;
    color: var(--rcf-case-muted);
    font-size: 13px;
}

body.single .entry-return-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

body.single .entry-return-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--rcf-case-line-strong);
    border-radius: 9px;
    color: var(--rcf-case-text);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

body.single .entry-return-actions .entry-return-primary {
    border-color: var(--rcf-case-accent);
    background: var(--rcf-case-accent);
    color: #151813;
}

body.single .rcf-post-tags {
    margin-top: 3.25rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rcf-case-line);
}

body.single .rcf-post-tags h2 {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: var(--rcf-case-muted);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.single .rcf-post-tag-list {
    gap: 8px;
}

body.single .rcf-post-tag {
    padding: 6px 10px;
    border: 1px solid var(--rcf-case-line-strong);
    background: var(--rcf-case-surface-2);
    color: var(--rcf-case-muted);
    font-size: 11px;
    text-decoration: none;
}

body.single .rcf-post-tag:hover,
body.single .rcf-post-tag:focus-visible {
    border-color: var(--rcf-case-accent);
    color: var(--rcf-case-accent);
    text-decoration: none;
}

body.single .rcf-article-contact-panel {
    border-top-color: var(--rcf-case-line);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 1179px) {
    body.single .rcf-article-reading-layout {
        display: block;
        max-width: 820px;
    }

    body.single .rcf-article-toc {
        display: none !important;
    }

    body.single .rcf-article-column {
        width: 100%;
    }
}

@media (max-width: 720px) {
    body.single .site-main {
        width: calc(100% - 28px);
    }

    body.single .rcf-article-page {
        padding-top: 26px;
    }

    body.single .entry-title {
        font-size: clamp(27px, 7.5vw, 34px);
        line-height: 1.38;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    body.single .rcf-article-featured {
        width: 100%;
        max-height: 300px;
        margin: 24px auto 30px;
        border-radius: 14px;
    }

    body.single .rcf-article-column {
        padding: 24px 18px;
        border-radius: 14px;
    }

    body.single .inner-contents {
        font-size: 16px;
        line-height: 1.9;
    }

    body.single .inner-contents h2 {
        margin-top: 3.7rem;
        padding-top: 1.8rem;
        font-size: 23px;
        scroll-margin-top: 92px;
    }

    body.single .inner-contents h3 {
        margin-top: 2.7rem;
        font-size: 19px;
        scroll-margin-top: 92px;
    }

    body.single .inner-contents table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.single .entry-return-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.single .entry-return-actions a {
        width: 100%;
    }

    body.single .rcf-reading-progress {
        top: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single .rcf-article-toc-link {
        transition: none;
    }
}

/* /RCF_ARTICLE_READING_VISUAL_V1 */

/* RCF_UI_DENSITY_SEARCH_ARTICLE_META_V1 */

/* ---------------------------------------------------------
   Compact Hero
--------------------------------------------------------- */

.rcf-home-meta-row {
    width: 100%;
}

@media (min-width: 1100px) {
    .rcf-home-hero {
        max-width: 1300px;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .rcf-home-hero h1 {
        margin-bottom: 10px;
    }

    .rcf-home-hero-copy {
        margin-top: 8px;
    }

    .rcf-home-hero-copy p {
        margin-top: 5px;
        margin-bottom: 0;
    }

    .rcf-home-hero-archive-copy {
        white-space: nowrap;
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: -.012em;
    }

    .rcf-home-meta-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        margin-top: 12px;
        white-space: nowrap;
    }

    .rcf-home-meta-row .rcf-home-stats,
    .rcf-home-meta-row .rcf-home-actions {
        margin: 0;
    }
}

/* ---------------------------------------------------------
   Explorer mode typography = refresh button
--------------------------------------------------------- */

.rcf-explorer-modes button,
.rcf-explorer-modes button span,
.rcf-discover-refresh {
    font-size: 12px;
    line-height: 1.25;
}

.rcf-explorer-modes button {
    min-height: 44px;
}

/* ---------------------------------------------------------
   CASE cards: larger all-information typography
--------------------------------------------------------- */

.rcf-case-card-media > span {
    font-size: 12px;
}

.rcf-case-card-category {
    font-size: 13px;
    line-height: 1.4;
}

.rcf-case-card-body h3,
.rcf-case-card-body h3 a {
    font-size: 19.5px;
    line-height: 1.42;
}

.rcf-case-card-summary {
    font-size: 14.5px;
    line-height: 1.78;
}

.rcf-case-card-body dl,
.rcf-case-card-body dt,
.rcf-case-card-body dd {
    font-size: 13.5px;
    line-height: 1.68;
}

.rcf-case-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rcf-case-card-cta {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13.5px;
}

.rcf-case-card-actions .rcf-favorite-toggle {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content;
    padding-left: 9px;
    padding-right: 9px;
    white-space: nowrap;
    font-size: 12.5px;
}

/* ---------------------------------------------------------
   Article header metadata + Favorite
--------------------------------------------------------- */

body.single .rcf-article-header {
    width: min(100%, 1180px);
}

body.single .rcf-article-meta-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--rcf-case-line);
}

body.single .rcf-article-meta-favorite {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 0;
}

body.single .rcf-article-meta-favorite .rcf-article-favorite-toggle {
    width: auto;
    max-width: max-content;
    margin: 0;
    padding: 7px 10px;
    color: var(--rcf-case-muted);
    white-space: nowrap;
}

body.single .rcf-article-meta-list {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    min-width: 0;
    margin: 0;
}

body.single .rcf-article-meta-list > div {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

body.single .rcf-article-meta-list dt {
    margin: 0;
    color: var(--rcf-case-accent);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .045em;
    white-space: nowrap;
}

body.single .rcf-article-meta-list dd {
    min-width: 0;
    margin: 0;
    color: var(--rcf-case-muted);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   Article body: 820 -> 1040 grid column
--------------------------------------------------------- */

@media (min-width: 1180px) {
    body.single .site-main {
        width: min(94%, 1360px);
        max-width: 1360px;
    }

    body.single .rcf-article-reading-layout {
        grid-template-columns: 210px minmax(0, 1040px);
        gap: 34px;
        max-width: 1284px;
    }

    body.single .rcf-article-column {
        padding-left: 44px;
        padding-right: 44px;
    }

    body.single .rcf-article-featured {
        width: min(100%, 1120px);
    }
}

/* ---------------------------------------------------------
   Search: visible semantic hierarchy
--------------------------------------------------------- */

.rcf-search-mode-note {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--rcf-case-muted);
    font-size: 12px;
    line-height: 1.65;
}

.rcf-search-primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.rcf-search-group {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 14px;
    background: var(--rcf-case-surface-2);
}

.rcf-search-group legend {
    padding: 0 6px;
    color: var(--rcf-case-accent);
    font-size: 14px;
    font-weight: 800;
}

.rcf-search-group > p {
    display: grid;
    gap: 3px;
    margin: 0 0 13px;
}

.rcf-search-group > p strong {
    color: var(--rcf-case-text);
    font-size: 13px;
    font-weight: 760;
}

.rcf-search-group > p span {
    color: var(--rcf-case-muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.rcf-search-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.rcf-search-option {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 7px 9px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 9px;
    background: var(--rcf-case-surface);
    color: var(--rcf-case-muted);
    cursor: pointer;
}

.rcf-search-option:has(input:checked) {
    border-color: var(--rcf-case-accent);
    background: var(--rcf-case-accent-soft);
    color: var(--rcf-case-accent);
}

.rcf-search-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--rcf-case-accent);
}

.rcf-search-option > span {
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.rcf-search-option > small {
    color: #7f8a81;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.rcf-search-advanced {
    margin-top: 14px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 14px;
    background: var(--rcf-case-surface);
}

.rcf-search-advanced > summary {
    padding: 12px 15px;
    color: var(--rcf-case-text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rcf-search-advanced-grid {
    padding: 0 14px 14px;
}

.rcf-search-keyword {
    padding: 16px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 14px;
    background: var(--rcf-case-surface-2);
}

.rcf-search-keyword > label {
    color: var(--rcf-case-accent);
    font-size: 14px;
    font-weight: 800;
}

.rcf-search-keyword-help {
    margin: 7px 0 11px;
    color: var(--rcf-case-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.rcf-search-keyword-help strong {
    color: var(--rcf-case-accent);
}

/* ---------------------------------------------------------
   Freeword article-result cards
--------------------------------------------------------- */

.rcf-search-results[data-rcf-result-type="article"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rcf-article-search-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rcf-case-line);
    border-radius: 14px;
    background: var(--rcf-case-surface);
}

.rcf-article-search-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d100e;
}

.rcf-article-search-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rcf-article-search-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 15px;
}

.rcf-article-search-series {
    margin: 0 0 7px;
    color: var(--rcf-case-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}

.rcf-article-search-card h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.rcf-article-search-card h4 a {
    color: var(--rcf-case-text);
    text-decoration: none;
}

.rcf-article-search-excerpt {
    margin: 10px 0 13px;
    color: var(--rcf-case-muted);
    font-size: 12.5px;
    line-height: 1.75;
}

.rcf-article-search-meta {
    display: grid;
    gap: 4px;
    margin: auto 0 13px;
}

.rcf-article-search-meta > div {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 8px;
}

.rcf-article-search-meta dt {
    color: #7f8a81;
    font-size: 10.5px;
    font-weight: 800;
}

.rcf-article-search-meta dd {
    margin: 0;
    color: var(--rcf-case-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.rcf-article-search-cta {
    display: inline-flex;
    width: max-content;
    align-items: center;
    color: var(--rcf-case-accent);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .rcf-home-meta-row {
        display: grid;
        gap: 10px;
    }

    .rcf-home-hero-archive-copy {
        white-space: normal;
    }

    .rcf-search-primary {
        grid-template-columns: 1fr;
    }

    .rcf-search-results[data-rcf-result-type="article"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rcf-search-options {
        grid-template-columns: 1fr;
    }

    .rcf-search-results[data-rcf-result-type="article"] {
        grid-template-columns: 1fr;
    }

    body.single .rcf-article-meta-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    body.single .rcf-article-meta-list {
        width: 100%;
        gap: 7px 14px;
    }
}

/* /RCF_UI_DENSITY_SEARCH_ARTICLE_META_V1 */

/* RCF_UI_SORT_FOOTER_REFINEMENT_V1 */

.rcf-case-card-media > span {
    position: absolute !important;
    left: 8px !important;
    bottom: 6px !important;
    z-index: 2;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.82);
}

.rcf-case-card-body dl { margin-top: auto; }
.rcf-case-card-actions { margin-top: 0; }

.rcf-continue-head h3,
.rcf-favorites-head h3 { font-size:18px; line-height:1.45; }

.rcf-continue-head p,
.rcf-continue-empty,
.rcf-favorites-head p,
.rcf-favorites-empty,
.rcf-favorites-status { font-size:14px; line-height:1.75; }

.rcf-search-head-tools {
    display:flex;
    flex:0 0 auto;
    align-items:flex-end;
    gap:10px;
}
.rcf-case-sort-controls { display:flex; align-items:flex-end; gap:9px; }
.rcf-case-sort-controls[hidden] { display:none !important; }
.rcf-case-sort-select { display:grid; gap:4px; }
.rcf-case-sort-select > span { color:var(--rcf-case-muted); font-size:10px; font-weight:800; letter-spacing:.04em; }
.rcf-case-sort-select select {
    min-height:38px;
    padding:6px 28px 6px 10px;
    border:1px solid var(--rcf-case-line-strong);
    border-radius:8px;
    background:var(--rcf-case-surface);
    color:var(--rcf-case-text);
    font:inherit;
    font-size:12px;
    font-weight:700;
}
.rcf-case-sort-direction { display:flex; gap:5px; margin:0; padding:0; border:0; }
.rcf-case-sort-direction label {
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:6px 9px;
    border:1px solid var(--rcf-case-line);
    border-radius:8px;
    background:var(--rcf-case-surface);
    color:var(--rcf-case-muted);
    cursor:pointer;
}
.rcf-case-sort-direction label:has(input:checked) {
    border-color:var(--rcf-case-accent);
    background:var(--rcf-case-accent-soft);
    color:var(--rcf-case-accent);
}
.rcf-case-sort-direction input { width:14px; height:14px; margin:0 5px 0 0; accent-color:var(--rcf-case-accent); }
.rcf-case-sort-direction span { font-size:11.5px; font-weight:750; white-space:nowrap; }

.rcf-search-group:nth-child(2) .rcf-search-option > span,
.rcf-search-group:nth-child(3) .rcf-search-option > span {
    font-size:11.5px;
    letter-spacing:.005em;
}

.rcf-home-hero,
.rcf-home-hero-copy,
.rcf-home-meta-row,
.rcf-home-stats,
.rcf-home-actions { text-align:left; }

.rcf-home-hero-copy { max-width:none; }
.rcf-home-hero-lead { font-size:17px !important; }
.rcf-home-hero-archive-copy { font-size:15px !important; }
.rcf-home-meta-row { justify-content:flex-start !important; }
.rcf-home-stats strong { font-size:20px; }
.rcf-home-stats small { font-size:13px; }
.rcf-home-actions a { font-size:14px; }

.rcf-site-nav a,
.rcf-footer-nav a { font-size:14px; }

.rcf-sidebar-actions a { font-size:15px; line-height:1.6; }
.rcf-sidebar-section { padding-top:2px; }

.rcf-site-footer-inner {
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
}
.rcf-footer-brand-wrap { align-self:center; }
.rcf-footer-main { display:grid; gap:14px; min-width:0; }
.rcf-footer-userdata { display:grid; gap:7px; }
.rcf-footer-userdata-actions { display:flex; flex-wrap:wrap; gap:8px; }

.rcf-footer-userdata-actions button,
.rcf-footer-userdata-import {
    display:inline-flex;
    min-width:122px;
    min-height:48px;
    box-sizing:border-box;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:1px;
    padding:7px 11px;
    border:1px solid var(--rcf-case-line-strong);
    border-radius:9px;
    background:transparent;
    color:var(--rcf-case-muted);
    font:inherit;
    cursor:pointer;
}
.rcf-footer-userdata-actions button:hover,
.rcf-footer-userdata-actions button:focus-visible,
.rcf-footer-userdata-import:hover,
.rcf-footer-userdata-import:focus-within {
    border-color:var(--rcf-case-accent);
    color:var(--rcf-case-accent);
}
.rcf-footer-userdata-actions span { font-size:10.5px; line-height:1.25; }
.rcf-footer-userdata-actions strong { font-size:12.5px; line-height:1.25; }
.rcf-footer-userdata-import { position:relative; }
.rcf-footer-userdata-import input {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
}
.rcf-footer-userdata-status {
    min-height:1.4em;
    margin:0;
    color:var(--rcf-case-muted);
    font-size:10.5px;
    line-height:1.4;
}
.rcf-footer-userdata-status.is-error { color:var(--rcf-case-danger); }

@media (max-width:1080px) {
    .rcf-search-head { align-items:flex-start; }
    .rcf-search-head-tools { width:100%; flex-wrap:wrap; justify-content:flex-start; }
}
@media (max-width:900px) {
    .rcf-site-footer-inner { grid-template-columns:1fr; align-items:start; }
    .rcf-footer-main { width:100%; }
}
@media (max-width:620px) {
    .rcf-home-hero-lead { font-size:15px !important; }
    .rcf-home-hero-archive-copy { font-size:14px !important; }
    .rcf-case-sort-controls { width:100%; flex-wrap:wrap; }
    .rcf-case-sort-select { min-width:160px; }
    .rcf-search-reset { margin-left:0; }
    .rcf-footer-userdata-actions button,
    .rcf-footer-userdata-import { flex:1 1 128px; }
}

/* /RCF_UI_SORT_FOOTER_REFINEMENT_V1 */

/* RCF_WIDE_READING_DISCOVER_SEARCH_V1 */

@media (min-width: 1180px) {
    .rcf-home-hero,
    .rcf-explorer {
        width: min(96%, 1600px);
        max-width: 1600px;
    }

    .rcf-home-hero h1 { font-size: clamp(38px, 3.1vw, 54px); }

    .rcf-home-hero-lead {
        font-size: 20px !important;
        line-height: 1.7;
    }

    .rcf-home-hero-archive-copy {
        font-size: 18px !important;
        line-height: 1.72;
        white-space: normal;
    }

    .rcf-home-stats strong { font-size: 23px; }

    .rcf-home-stats small,
    .rcf-home-actions a { font-size: 15px; }

    .rcf-case-card-media { min-height: 220px; }
    .rcf-case-card-body { padding: 20px; }
    .rcf-case-card-media > span { font-size: 13px; }
    .rcf-case-card-category { font-size: 14px; }

    .rcf-case-card-body h3,
    .rcf-case-card-body h3 a {
        font-size: 22px;
        line-height: 1.4;
    }

    .rcf-case-card-summary {
        font-size: 17px;
        line-height: 1.72;
    }

    .rcf-case-card-body dl,
    .rcf-case-card-body dt,
    .rcf-case-card-body dd {
        font-size: 14.5px;
        line-height: 1.6;
    }

    .rcf-case-card-cta { font-size: 14.5px; }

    .rcf-case-card-actions .rcf-favorite-toggle {
        font-size: 13.5px;
    }
}

@media (min-width: 1500px) {
    .rcf-home-hero-archive-copy { white-space: nowrap; }
}

.rcf-discover-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.rcf-discover-auto {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 12px;
    background: var(--rcf-case-surface);
    color: var(--rcf-case-muted);
}

.rcf-discover-auto[hidden] { display: none !important; }

.rcf-discover-timer-visual {
    --rcf-discover-progress: 1;
    position: relative;
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--rcf-case-accent)
            calc(var(--rcf-discover-progress) * 1turn),
            rgba(255,255,255,.09) 0
        );
}

.rcf-discover-timer-visual::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: var(--rcf-case-surface);
}

.rcf-discover-timer-icon {
    position: relative;
    z-index: 1;
    color: var(--rcf-case-accent);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    animation: rcf-discover-spin 2.4s linear infinite;
}

.rcf-explorer.is-countdown-paused .rcf-discover-timer-icon {
    animation-play-state: paused;
}

.rcf-explorer.is-countdown-paused .rcf-discover-auto {
    border-color: var(--rcf-case-accent);
    background: var(--rcf-case-accent-soft);
}

.rcf-discover-auto-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.rcf-discover-auto-copy > strong {
    color: var(--rcf-case-text);
    font-size: 12.5px;
    line-height: 1.35;
}

.rcf-discover-auto-copy > span {
    color: var(--rcf-case-muted);
    font-size: 11px;
    line-height: 1.35;
}

.rcf-discover-auto-copy b {
    display: inline-block;
    min-width: 1.7em;
    color: var(--rcf-case-accent);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

@keyframes rcf-discover-spin {
    to { transform: rotate(360deg); }
}

.rcf-search-guide {
    display: grid;
    gap: 10px;
    max-width: 1180px;
    margin-top: 8px;
}

.rcf-search-guide .rcf-search-mode-note {
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

.rcf-search-guide-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rcf-search-guide-steps li {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--rcf-case-line);
    border-radius: 9px;
    background: var(--rcf-case-surface);
}

.rcf-search-guide-steps strong {
    color: var(--rcf-case-accent);
    font-size: 11.5px;
    line-height: 1.35;
}

.rcf-search-guide-steps span {
    color: var(--rcf-case-muted);
    font-size: 11px;
    line-height: 1.55;
}

.rcf-search-logic-note,
.rcf-search-example {
    margin: 0;
    color: var(--rcf-case-muted);
    font-size: 12px;
    line-height: 1.72;
}

.rcf-search-logic-note strong,
.rcf-search-example strong { color: var(--rcf-case-text); }

.rcf-search-example {
    padding: 10px 12px;
    border-left: 3px solid var(--rcf-case-accent);
    background: var(--rcf-case-accent-soft);
}

.rcf-search-option-label {
    display: block;
    min-width: 0;
    word-break: keep-all;
    overflow-wrap: normal;
}

.rcf-search-option-en,
.rcf-search-option-ja { display: block; }

.rcf-search-option-en {
    color: currentColor;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .035em;
}

.rcf-search-option-ja {
    margin-top: 2px;
    font-size: 11.5px;
    line-height: 1.35;
}

.rcf-search-primary .rcf-search-group:first-child .rcf-search-option-label {
    line-height: 1.4;
}

@media (min-width: 1180px) {
    body.single .site-main {
        width: min(98%, 1720px);
        max-width: 1720px;
    }

    body.single .rcf-article-header {
        width: min(100%, 1440px);
    }

    body.single .rcf-article-featured {
        width: min(100%, 1380px);
        max-height: 560px;
    }

    body.single .rcf-article-reading-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 28px;
        width: 100%;
        max-width: 1600px;
    }

    body.single .rcf-article-column {
        padding-left: 48px;
        padding-right: 48px;
    }

    body.single .inner-contents figure {
        width: min(100%, 1000px);
    }
}

@media (min-width: 761px) and (max-width: 1179px) {
    body.single .site-main {
        width: min(96%, 1040px);
        max-width: 1040px;
    }

    body.single .rcf-article-reading-layout {
        max-width: 960px;
    }
}

body.single .rcf-guide-page .rcf-article-reading-layout {
    display: block !important;
    width: 100%;
    max-width: 1380px !important;
    margin-inline: auto;
}

body.single .rcf-guide-page .rcf-article-column {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

body.single .rcf-guide-page .entry-content > .about-site-page,
body.single .rcf-guide-page .entry-content > .editorial-policy-page {
    min-width: 0;
    color: var(--rcf-case-text);
    font-size: 17px;
    line-height: 1.95;
}

body.single .rcf-guide-page .about-site-page > p,
body.single .rcf-guide-page .editorial-policy-page > p {
    margin: 0 0 1.55em;
}

body.single .rcf-guide-page .about-site-page h2,
body.single .rcf-guide-page .editorial-policy-page h2 {
    margin: 4rem 0 1.55rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rcf-case-line-strong);
    color: var(--rcf-case-text);
    font-size: clamp(23px, 2vw, 29px);
    line-height: 1.5;
}

body.single .rcf-guide-page .about-site-page h2:first-of-type,
body.single .rcf-guide-page .editorial-policy-page h2:first-of-type {
    margin-top: 2.1rem;
    padding-top: 0;
    border-top: 0;
}

body.single .rcf-guide-page .about-site-page h3,
body.single .rcf-guide-page .editorial-policy-page h3 {
    margin: 2.7rem 0 1.15rem;
    color: var(--rcf-case-text);
    font-size: 20px;
    line-height: 1.55;
}

body.single .rcf-guide-page .about-site-page ul,
body.single .rcf-guide-page .about-site-page ol,
body.single .rcf-guide-page .editorial-policy-page ul,
body.single .rcf-guide-page .editorial-policy-page ol {
    margin: 1.4em 0 1.8em;
    padding-left: 1.65em;
}

body.single .rcf-guide-page .about-site-page li,
body.single .rcf-guide-page .editorial-policy-page li {
    margin: .5em 0;
}

body.single .rcf-guide-page .about-site-page a,
body.single .rcf-guide-page .editorial-policy-page a {
    color: var(--rcf-case-accent);
}

@media (max-width: 1080px) {
    .rcf-discover-head-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .rcf-search-guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .rcf-discover-auto {
        width: 100%;
        box-sizing: border-box;
    }

    .rcf-discover-head-actions .rcf-discover-refresh {
        width: 100%;
    }

    .rcf-search-guide-steps {
        grid-template-columns: 1fr;
    }

    body.single .rcf-guide-page .entry-content > .about-site-page,
    body.single .rcf-guide-page .entry-content > .editorial-policy-page {
        font-size: 16px;
        line-height: 1.9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rcf-discover-timer-icon { animation: none !important; }
}

/* /RCF_WIDE_READING_DISCOVER_SEARCH_V1 */

/* RCF_READABLE_DARK_TIMER_SEARCH_MERGE_V1 */

body.home,
body.single {
    color-scheme: dark;

    --rcf-case-bg: #171a16;
    --rcf-case-surface: #252b23;
    --rcf-case-surface-2: #2d342a;
    --rcf-case-line: #414a3d;
    --rcf-case-line-strong: #56614f;
    --rcf-case-text: #edf0e9;
    --rcf-case-muted: #bcc4b8;
    --rcf-case-accent: #d4b56e;
    --rcf-case-accent-soft: rgba(212,181,110,.14);

    background: var(--rcf-case-bg);
    color: var(--rcf-case-text);
}

body.home .rcf-page-shell,
body.single .rcf-page-shell {
    background: var(--rcf-case-bg);
}

.rcf-site-header,
.rcf-site-footer {
    background: #0d0f0e !important;
}

.rcf-site-header {
    border-bottom-color: rgba(255,255,255,.14) !important;
}

.rcf-site-footer {
    border-top-color: rgba(255,255,255,.14) !important;
}

.rcf-menu-toggle {
    color: #fff !important;
}

.rcf-menu-icon > span {
    background: #fff !important;
    opacity: 1 !important;
}

body.home .rcf-home-hero,
body.home .rcf-explorer {
    background: #1e231d;
    border-color: #3b4438;
    box-shadow: 0 18px 48px rgba(0,0,0,.16);
}

body.home .rcf-case-card,
body.home .rcf-search-option,
body.home .rcf-search-advanced,
body.home .rcf-case-sort-select select,
body.home .rcf-case-sort-direction label,
body.home .rcf-discover-auto {
    background: var(--rcf-case-surface);
}

body.home .rcf-search-group,
body.home .rcf-search-keyword,
body.home .rcf-article-search-card,
body.home .rcf-continue-panel,
body.home .rcf-favorites-panel {
    background: var(--rcf-case-surface-2);
}

body.home .rcf-case-card:hover,
body.home .rcf-search-option:hover,
body.home .rcf-case-sort-direction label:hover,
body.home .rcf-discover-auto:hover {
    border-color: #6a765f;
}

body.single .rcf-article-column {
    background: var(--rcf-case-surface);
    border-color: var(--rcf-case-line);
    box-shadow: 0 18px 48px rgba(0,0,0,.14);
}

body.single .rcf-article-toc-inner {
    background: #20261f;
    border-color: var(--rcf-case-line);
}

body.single .inner-contents blockquote,
body.single .inner-contents table,
body.single .map-box,
body.single .fact-check,
body.single .fact-box,
body.single .info-box,
body.single .note-box,
body.single .summary-box,
body.single .warning-box,
body.single .key-point,
body.single .point-box,
body.single .article-callout,
body.single .article-series,
body.single .source-note,
body.single .article-pager,
body.single .rcf-dark-normalized,
body.single .entry-return-cta,
body.single .rcf-post-tag {
    background: var(--rcf-case-surface-2) !important;
}

body.single .source-list > li {
    background: rgba(255,255,255,.035);
}

.rcf-search-head {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    align-items: start;
}

.rcf-search-head-copy {
    min-width: 0;
}

.rcf-search-head-copy .rcf-search-mode-note {
    max-width: 1180px;
    margin-top: 7px;
}

.rcf-search-head-copy .rcf-search-logic-note {
    max-width: 1180px;
    margin-top: 5px;
}

.rcf-search-example-sort-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 18px;
    align-items: end;
    width: 100%;
}

.rcf-search-example-sort-row .rcf-search-example {
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.75;
}

.rcf-search-example-sort-row .rcf-search-head-tools {
    align-self: end;
    justify-self: end;
}

.rcf-search-group > p strong,
.rcf-search-advanced-help strong,
.rcf-search-keyword-help > strong:first-child {
    color: var(--rcf-case-accent);
}

.rcf-search-group > p span {
    font-size: 12px;
    line-height: 1.62;
}

.rcf-search-advanced-help {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 2px;
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--rcf-case-line);
    color: var(--rcf-case-muted);
    font-size: 12px;
    line-height: 1.6;
}

.rcf-search-advanced-help strong {
    flex: 0 0 auto;
    font-size: 13px;
}

.rcf-search-keyword-help {
    display: grid;
    gap: 4px;
}

.rcf-search-keyword-help > strong:first-child {
    font-size: 13px;
}

@media (max-width: 1080px) {
    .rcf-search-example-sort-row {
        grid-template-columns: 1fr;
    }

    .rcf-search-example-sort-row .rcf-search-head-tools {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 620px) {
    .rcf-search-example-sort-row {
        gap: 12px;
    }

    .rcf-search-advanced-help {
        display: grid;
        gap: 3px;
    }
}

/* /RCF_READABLE_DARK_TIMER_SEARCH_MERGE_V1 */

/* RCF_EXPLORER_CARDPAUSE_PANEL_SEARCH_REFINEMENT_V1 */

/* ---------------------------------------------------------
   Hero: after removing StoryType/Theme counters, keep CASE
   count and navigation compact and naturally centered.
--------------------------------------------------------- */

.rcf-home-stats {
    flex: 0 0 auto;
}

/* ---------------------------------------------------------
   CONTINUE / FAVORITES: remove blank vertical rows.
--------------------------------------------------------- */

.rcf-continue-empty[hidden],
.rcf-favorites-count[hidden],
.rcf-favorites-status:empty {
    display: none !important;
}

.rcf-continue-head {
    margin-bottom: 0;
}

.rcf-favorites-head {
    align-items: baseline;
    margin-bottom: 0;
}

.rcf-favorites-head h3 {
    margin: 0;
}

.rcf-favorites-count {
    font-variant-numeric: tabular-nums;
}

.rcf-favorites-empty {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   CaseCard vertical rhythm:
   category owns one stable line; title owns a two-line slot.
   This aligns title start and summary start across 4 cards.
--------------------------------------------------------- */

.rcf-case-card-category {
    min-height: 1.4em;
}

.rcf-case-card-body h3 {
    min-height: 2.84em;
}

.rcf-case-card-summary {
    margin-top: 0;
}

/* ---------------------------------------------------------
   SEARCH header:
   1) title row
   2) two guidance lines
   3) two-line example
   4) left-aligned sort/reset controls
--------------------------------------------------------- */

.rcf-search-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.rcf-search-title-row .rcf-search-kicker,
.rcf-search-title-row h3 {
    margin: 0;
}

.rcf-search-head-copy .rcf-search-mode-note,
.rcf-search-head-copy .rcf-search-logic-note {
    max-width: none;
}

.rcf-search-head-copy .rcf-search-mode-note {
    margin: 9px 0 0;
}

.rcf-search-head-copy .rcf-search-logic-note {
    margin: 3px 0 0;
}

.rcf-search-example-sort-row {
    grid-template-columns: minmax(0,1fr);
    gap: 10px;
    align-items: start;
}

.rcf-search-example-line {
    display: block;
}

.rcf-search-example-line + .rcf-search-example-line {
    margin-top: 2px;
}

.rcf-search-example-sort-row .rcf-search-head-tools {
    justify-self: start;
    align-self: start;
    justify-content: flex-start;
    width: auto;
    margin: 0;
}

.rcf-search-example-sort-row .rcf-search-reset {
    margin-left: 0;
}

/* The advanced block is closed in HTML by default. */
.rcf-search-advanced:not([open]) > .rcf-search-advanced-grid {
    display: none;
}

/* Numbered "5." label is removed; this is plain supporting copy. */
.rcf-search-keyword-help {
    display: block;
}

/* Ensure raw Story/Taste values such as DISASTER/DYSTOPIA
   use the same weight as mapped English labels. */
.rcf-search-option-en {
    font-weight: 800;
}

@media (min-width: 1400px) {
    .rcf-search-head-copy .rcf-search-mode-note,
    .rcf-search-head-copy .rcf-search-logic-note,
    .rcf-search-example-line {
        white-space: nowrap;
    }
}

@media (max-width: 1399px) {
    .rcf-search-head-copy .rcf-search-mode-note,
    .rcf-search-head-copy .rcf-search-logic-note,
    .rcf-search-example-line {
        white-space: normal;
    }
}

@media (max-width: 620px) {
    .rcf-search-title-row {
        display: grid;
        gap: 4px;
    }

    .rcf-case-card-body h3 {
        min-height: 0;
    }

    .rcf-case-card-category {
        min-height: 0;
    }
}

/* /RCF_EXPLORER_CARDPAUSE_PANEL_SEARCH_REFINEMENT_V1 */

/* RCF_EXPLORER_MODE_TITLESIZE_SEARCH_EXAMPLE_REMOVE_V1 */

/* Explorer mode labels match the CaseCard title typography.
   Base CaseCard title = 19.5px; wide layout title = 22px. */
.rcf-explorer-modes button,
.rcf-explorer-modes button span {
    font-size: 19.5px;
    line-height: 1.25;
}

@media (min-width: 1180px) {
    .rcf-explorer-modes button,
    .rcf-explorer-modes button span {
        font-size: 22px;
    }
}

/* Search example markup is removed. Keep the remaining sort row plain. */
.rcf-search-example-sort-row {
    background: transparent;
}

/* /RCF_EXPLORER_MODE_TITLESIZE_SEARCH_EXAMPLE_REMOVE_V1 */

/* RCF_CONTINUE_FAVORITES_LAYOUT_ONLY_V1
   Visual-only alignment. No reader-state or Explorer behavior changes.
*/
body.home .rcf-continue-panel,
body.home .rcf-favorites-panel {
    padding-top: 18px;
}

body.home .rcf-continue-head,
body.home .rcf-favorites-head {
    margin: 0;
    padding: 0;
}

body.home .rcf-continue-head,
body.home .rcf-favorites-head > div {
    display: grid;
    gap: 6px;
}

body.home .rcf-favorites-head {
    align-items: flex-start;
}

body.home .rcf-continue-head h3,
body.home .rcf-favorites-head h3 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.45;
}

body.home .rcf-continue-head p,
body.home .rcf-favorites-head p,
body.home .rcf-continue-empty,
body.home .rcf-favorites-empty,
body.home .rcf-continue-status,
body.home .rcf-favorites-status {
    margin-left: 0;
    padding-left: 0;
    line-height: 1.75;
}

body.home .rcf-continue-head p,
body.home .rcf-favorites-head p {
    margin-top: 0;
    margin-bottom: 0;
}

body.home .rcf-continue-empty,
body.home .rcf-favorites-empty {
    margin-top: 6px;
    margin-bottom: 0;
}

@media (max-width: 620px) {
    body.home .rcf-continue-panel,
    body.home .rcf-favorites-panel {
        padding-top: 14px;
    }

    body.home .rcf-continue-head,
    body.home .rcf-favorites-head > div {
        gap: 5px;
    }

    body.home .rcf-continue-head h3,
    body.home .rcf-favorites-head h3 {
        font-size: 17px;
    }
}
/* /RCF_CONTINUE_FAVORITES_LAYOUT_ONLY_V1 */

/* RCF_ARTICLE_META_SEARCH_TYPE_SCALE_V1
   User-approved reference matching:
   - single-article metadata / tags = article Favorite size
   - FIND A CASE / ARTICLE control area = Search Reset size
*/

/* Article: same type size as top Favorite. */
body.single .rcf-article-meta-favorite .rcf-article-favorite-toggle,
body.single .rcf-article-meta-list,
body.single .rcf-article-meta-list dt,
body.single .rcf-article-meta-list dd,
body.single .rcf-post-tags h2,
body.single .rcf-post-tag-list,
body.single .rcf-post-tag {
    font-size: 9.8px !important;
}

/* Search control area: same type size as "条件をリセット". */
body.home .rcf-search-kicker,
body.home .rcf-search-head h3,
body.home .rcf-search-mode-note,
body.home .rcf-search-logic-note,
body.home .rcf-case-sort-controls,
body.home .rcf-case-sort-select,
body.home .rcf-case-sort-select > span,
body.home .rcf-case-sort-select select,
body.home .rcf-case-sort-direction,
body.home .rcf-case-sort-direction legend,
body.home .rcf-case-sort-direction label,
body.home .rcf-case-sort-direction label span,
body.home .rcf-search-reset,
body.home .rcf-search-group legend,
body.home .rcf-search-group > p,
body.home .rcf-search-group > p strong,
body.home .rcf-search-group > p span,
body.home .rcf-search-option,
body.home .rcf-search-option span,
body.home .rcf-search-option small,
body.home .rcf-search-advanced > summary,
body.home .rcf-search-advanced-help,
body.home .rcf-search-keyword,
body.home .rcf-search-keyword label,
body.home .rcf-search-keyword-help,
body.home .rcf-search-keyword input {
    font-size: .82rem !important;
}

/* /RCF_ARTICLE_META_SEARCH_TYPE_SCALE_V1 */

/* RCF_ARTICLE_META_SEARCH_TYPE_SCALE_V2
   Corrective override after V1:
   Article metadata/tags now match body text size (16px).
   Existing Search Reset-matched typography from V1 remains in force.
*/
body.single .rcf-article-meta-list,
body.single .rcf-article-meta-list dt,
body.single .rcf-article-meta-list dd,
body.single .rcf-post-tags h2,
body.single .rcf-post-tag-list,
body.single .rcf-post-tag {
    font-size: 16px !important;
}
/* /RCF_ARTICLE_META_SEARCH_TYPE_SCALE_V2 */

/* RCF_SEARCH_HEADINGS_MATCH_CONTINUE_V1
   Selected SEARCH headings/labels match the CONTINUE heading size.
   Classification buttons/counts and result-card typography are intentionally excluded.
*/
body.home .rcf-search-kicker,
body.home .rcf-search-head h3,
body.home .rcf-search-group legend,
body.home .rcf-search-advanced > summary,
body.home .rcf-search-advanced .rcf-search-group > p strong,
body.home .rcf-search-advanced .rcf-search-group > p span,
body.home .rcf-search-advanced legend,
body.home .rcf-search-keyword label {
    font-size: 18px !important;
}

@media (max-width: 620px) {
    body.home .rcf-search-kicker,
    body.home .rcf-search-head h3,
    body.home .rcf-search-group legend,
    body.home .rcf-search-advanced > summary,
    body.home .rcf-search-advanced .rcf-search-group > p strong,
    body.home .rcf-search-advanced .rcf-search-group > p span,
    body.home .rcf-search-advanced legend,
    body.home .rcf-search-keyword label {
        font-size: 17px !important;
    }
}
/* /RCF_SEARCH_HEADINGS_MATCH_CONTINUE_V1 */

/* RCF_SEARCH_SORT_ADVANCED_MATCH_CONTINUE_V1
   Requested sort + advanced-search labels match CONTINUE heading size.
*/
body.home .rcf-case-sort-select,
body.home .rcf-case-sort-select > span,
body.home .rcf-case-sort-select label,
body.home .rcf-case-sort-select select,
body.home .rcf-case-sort-select select option,
body.home .rcf-case-sort-direction,
body.home .rcf-case-sort-direction legend,
body.home .rcf-case-sort-direction label,
body.home .rcf-case-sort-direction label span,
body.home .rcf-search-reset,
body.home .rcf-search-advanced .rcf-search-group > p,
body.home .rcf-search-advanced .rcf-search-group > p strong,
body.home .rcf-search-advanced .rcf-search-group > p span {
    font-size: 18px !important;
}

@media (max-width: 620px) {
    body.home .rcf-case-sort-select,
    body.home .rcf-case-sort-select > span,
    body.home .rcf-case-sort-select label,
    body.home .rcf-case-sort-select select,
    body.home .rcf-case-sort-select select option,
    body.home .rcf-case-sort-direction,
    body.home .rcf-case-sort-direction legend,
    body.home .rcf-case-sort-direction label,
    body.home .rcf-case-sort-direction label span,
    body.home .rcf-search-reset,
    body.home .rcf-search-advanced .rcf-search-group > p,
    body.home .rcf-search-advanced .rcf-search-group > p strong,
    body.home .rcf-search-advanced .rcf-search-group > p span {
        font-size: 17px !important;
    }
}
/* /RCF_SEARCH_SORT_ADVANCED_MATCH_CONTINUE_V1 */

/* RCF_SEARCH_DENSITY_REFINEMENT_V3_EXACT_CURRENT
   SEARCH hierarchy: headings are strong; guidance and controls are secondary.
   Search-result cards and JS behavior are intentionally untouched.
*/
body.home .rcf-search-kicker {
    font-size: 12px !important;
    line-height: 1.35;
}

body.home .rcf-search-head h3,
body.home .rcf-search-group legend,
body.home .rcf-search-advanced > summary {
    font-size: 18px !important;
    line-height: 1.45;
}

body.home .rcf-search-mode-note,
body.home .rcf-search-logic-note {
    font-size: 13px !important;
    line-height: 1.65;
}

body.home .rcf-case-sort-select,
body.home .rcf-case-sort-select > span,
body.home .rcf-case-sort-select label,
body.home .rcf-case-sort-select select,
body.home .rcf-case-sort-select select option,
body.home .rcf-case-sort-direction,
body.home .rcf-case-sort-direction legend,
body.home .rcf-case-sort-direction label,
body.home .rcf-case-sort-direction label span,
body.home .rcf-search-reset {
    font-size: 14px !important;
    line-height: 1.4;
}

body.home .rcf-search-option,
body.home .rcf-search-option span,
body.home .rcf-search-option strong {
    font-size: 14px !important;
    line-height: 1.35;
}

body.home .rcf-search-option small {
    font-size: 12px !important;
    line-height: 1.25;
}

body.home .rcf-search-advanced legend,
body.home .rcf-search-keyword label {
    font-size: 15px !important;
    line-height: 1.4;
}

body.home .rcf-search-keyword-help {
    font-size: 13px !important;
    line-height: 1.6;
}

body.home .rcf-search-keyword input {
    font-size: 14px !important;
}

@media (max-width: 620px) {
    body.home .rcf-search-head h3,
    body.home .rcf-search-group legend,
    body.home .rcf-search-advanced > summary {
        font-size: 17px !important;
    }

    body.home .rcf-search-mode-note,
    body.home .rcf-search-logic-note,
    body.home .rcf-search-option,
    body.home .rcf-search-option span,
    body.home .rcf-search-option strong,
    body.home .rcf-case-sort-select,
    body.home .rcf-case-sort-select > span,
    body.home .rcf-case-sort-select label,
    body.home .rcf-case-sort-select select,
    body.home .rcf-case-sort-direction,
    body.home .rcf-case-sort-direction legend,
    body.home .rcf-case-sort-direction label,
    body.home .rcf-case-sort-direction label span,
    body.home .rcf-search-reset,
    body.home .rcf-search-keyword input {
        font-size: 14px !important;
    }

    body.home .rcf-search-advanced legend,
    body.home .rcf-search-keyword label {
        font-size: 15px !important;
    }
}
/* /RCF_SEARCH_DENSITY_REFINEMENT_V3_EXACT_CURRENT */

/* RCF_UI_1600_SEARCH_TYPO_CASE26_SERIES_V1
 *
 * Current pre-cutover UI contract.
 * - HOME/SINGLE page shell: responsive, centered, max 1600px.
 * - Article body: max 1200px, responsive below that width.
 * - Wide desktop: article body centered; TOC remains in the left rail.
 * - TOC auto-sizes up to 570px and keeps left text alignment.
 * - Genre / Region / Era headings AND button text: 14px / 800.
 * - Existing multi-series CaseCard presentation remains enabled.
 */

:root {
    --rcf-article-meta-reference-size: 16px;
}

@media (min-width: 1180px) {
    body.home .rcf-page-shell,
    body.single .rcf-page-shell {
        width: min(calc(100vw - 48px), 1600px);
        max-width: 1600px;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.home .site-main,
    body.single .site-main {
        width: 100%;
        max-width: none;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.home .rcf-home-hero,
    body.home .rcf-explorer,
    body.home .rcf-latest-compact,
    body.single .rcf-article-header,
    body.single .rcf-article-featured {
        width: 100%;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }

    body.single .rcf-article-toc {
        max-width: 570px;
        text-align: left;
    }

    body.single .rcf-article-toc-inner {
        width: 100%;
        text-align: left;
    }

    body.single .rcf-article-toc-kicker,
    body.single .rcf-article-toc-number,
    body.single .rcf-article-toc-label {
        font-size: var(--rcf-article-meta-reference-size) !important;
    }

    body.single .rcf-article-toc-kicker {
        line-height: 1.5;
    }

    body.single .rcf-article-toc-number,
    body.single .rcf-article-toc-label {
        line-height: 1.55;
    }

    body.single .rcf-article-column {
        min-width: 0;
        width: 100%;
        max-width: 1200px;
    }
}

/* 1180–1799px:
   keep TOC on the left and let article width shrink responsively when needed. */
@media (min-width: 1180px) and (max-width: 1799px) {
    body.single .rcf-article-reading-layout {
        display: grid;
        grid-template-columns: minmax(220px, 320px) minmax(0, 1200px);
        gap: 28px;
        width: 100%;
        max-width: 1548px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        align-items: start;
    }

    body.single .rcf-article-toc {
        width: 100%;
        justify-self: end;
    }

    body.single .rcf-article-column {
        justify-self: center;
    }
}

/* >=1800px:
   center the 1200px article in the viewport.
   Side rails stay symmetric; TOC consumes only the available left rail. */
@media (min-width: 1800px) {
    body.single .rcf-article-reading-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 1200px minmax(0, 1fr);
        column-gap: 28px;
        align-items: start;
        width: min(calc(100vw - 48px), 2396px);
        max-width: 2396px;
        margin-left: 50%;
        margin-right: 0;
        transform: translateX(-50%);
    }

    body.single .rcf-article-toc {
        grid-column: 1;
        width: min(100%, 570px);
        justify-self: end;
    }

    body.single .rcf-article-column {
        grid-column: 2;
        width: 1200px;
        max-width: 1200px;
        justify-self: center;
    }
}

/* Genre / Region / Era: heading and button text identical, 14px / 800. */
.rcf-case-card-series-label {
    color: var(--rcf-case-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .06em;
}

.rcf-case-card-series-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rcf-case-card-series-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--rcf-case-line-strong);
    background: transparent;
    color: var(--rcf-case-accent);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .025em;
    text-decoration: none;
}

.rcf-case-card-series-link:hover,
.rcf-case-card-series-link:focus-visible {
    border-color: var(--rcf-case-accent);
    text-decoration: underline;
}

/* /RCF_UI_1600_SEARCH_TYPO_CASE26_SERIES_V1 */

/* RCF_CASE26_INLINE_SERIES_SEARCH_HEADING_V1
 *
 * Narrow responsibility:
 * - one-line series slot directly below every CaseCard title;
 * - populated only for multi-series CASEs;
 * - identical slot height keeps summary/meta vertically aligned;
 * - Genre / Region / Era heading + option text are explicitly locked.
 */

.rcf-case-card-series-slot {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    min-width: 0;
    height: 28px;
    margin: -2px 0 6px;
    overflow: hidden;
}

.rcf-case-card-series-inline {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    width: 100%;
    white-space: nowrap;
}

.rcf-case-card-series-inline-label {
    flex: 0 0 auto;
    color: var(--rcf-case-muted);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .04em;
}

.rcf-case-card-series-inline-link {
    flex: 0 0 auto;
    color: var(--rcf-case-accent);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .015em;
    text-decoration: none;
}

.rcf-case-card-series-inline-link:hover,
.rcf-case-card-series-inline-link:focus-visible {
    text-decoration: underline;
}


/* /RCF_CASE26_INLINE_SERIES_SEARCH_HEADING_V1 */



/* RCF_SEARCH_SIMPLE_LABEL_CANON_V1
 *
 * Reference is the existing Story Type button:
 * - headings remain entirely controlled by the original .rcf-search-group legend;
 * - Story Type EXPEDITION / 探検 remain entirely controlled by their original
 *   .rcf-search-option-en / .rcf-search-option-ja rules;
 * - Genre / Region / Era are single-line labels, so only their label text uses
 *   EXPEDITION's primary-line metrics.
 */
body.home [data-rcf-search-options="genre"] .rcf-search-option-label,
body.home [data-rcf-search-options="region"] .rcf-search-option-label,
body.home [data-rcf-search-options="era"] .rcf-search-option-label {
    color: currentColor;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .035em;
}
/* /RCF_SEARCH_SIMPLE_LABEL_CANON_V1 */

/* RCF_MOBILE_TASK_LAYOUT_V1
 * Mobile presentation layer only.
 * Desktop (>620px), data contracts, renderer logic and article content remain unchanged.
 */
@media (max-width: 620px) {

    /* -----------------------------------------------------
       Shell / header
    ----------------------------------------------------- */

    .rcf-site-header-inner {
        min-height: 60px;
        grid-template-columns: 44px auto minmax(0, 1fr);
        gap: 9px;
    }

    .rcf-menu-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
    }

    .rcf-menu-icon,
    .rcf-menu-icon > span {
        width: 22px;
    }

    /* -----------------------------------------------------
       Home hero
    ----------------------------------------------------- */

    body.home .rcf-home-hero {
        margin-top: 14px;
        padding: 24px 16px 22px;
        border-radius: 14px;
    }

    body.home .rcf-home-hero h1 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.18;
    }

    body.home .rcf-home-hero-copy {
        margin-top: 16px;
    }

    body.home .rcf-home-hero-copy p {
        line-height: 1.72;
    }

    body.home .rcf-home-stats {
        margin-top: 18px;
    }

    body.home .rcf-home-actions {
        margin-top: 12px;
    }

    body.home .rcf-home-actions a {
        min-height: 44px;
    }

    /* -----------------------------------------------------
       Explorer shell / mode tabs
    ----------------------------------------------------- */

    body.home .rcf-explorer {
        margin-top: 14px;
        padding: 18px 14px 20px;
        border-radius: 14px;
    }

    body.home .rcf-explorer-modes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        margin-bottom: 14px;
    }

    body.home .rcf-explorer-modes button {
        min-height: 48px;
        padding: 6px 2px;
        font-size: 0;
        line-height: 1;
        border-radius: 8px;
    }

    body.home .rcf-explorer-modes button span {
        display: block;
        margin-top: 0;
        font-size: 11.5px;
        line-height: 1.25;
        font-weight: 800;
        opacity: .78;
        white-space: nowrap;
    }

    body.home .rcf-explorer-modes button.is-active,
    body.home .rcf-explorer-modes button[aria-pressed="true"] {
        border-color: var(--rcf-case-accent);
        background: var(--rcf-case-accent-soft);
        box-shadow: inset 0 -2px 0 var(--rcf-case-accent);
    }

    body.home .rcf-explorer-modes button.is-active span,
    body.home .rcf-explorer-modes button[aria-pressed="true"] span {
        opacity: 1;
    }

    /* -----------------------------------------------------
       Article TOC: same DOM, moved back into document flow
    ----------------------------------------------------- */

    body.single .rcf-article-toc {
        display: block !important;
        position: static;
        top: auto;
        width: 100%;
        max-width: none;
        max-height: none;
        margin: 0 0 16px;
        overflow: visible;
        overscroll-behavior: auto;
    }

    body.single .rcf-article-toc-inner {
        width: 100%;
        padding: 14px 12px;
        border-radius: 12px;
    }

    body.single .rcf-article-toc-kicker {
        margin-bottom: 8px;
        padding-bottom: 8px;
        font-size: 12px;
    }

    body.single .rcf-article-toc-list {
        gap: 2px;
    }

    body.single .rcf-article-toc-link {
        min-height: 44px;
        box-sizing: border-box;
        grid-template-columns: 27px minmax(0, 1fr);
        align-items: center;
        padding: 7px 7px;
    }

    body.single .rcf-article-toc-number {
        font-size: 10px;
    }

    body.single .rcf-article-toc-label {
        font-size: 11.5px;
        line-height: 1.45;
    }

    /* -----------------------------------------------------
       Footer touch targets
    ----------------------------------------------------- */

    .rcf-footer-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

/* /RCF_MOBILE_TASK_LAYOUT_V1 */

/* RCF_MOBILE_MODE_CARDS_V2
 * Presentation only: retain the shared CaseCard renderer and reader state.
 * DISCOVER keeps its rich cards and existing horizontal carousel.
 */
@media (max-width: 620px) {
    body.home :is(.rcf-search-results, .rcf-favorites-grid) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        overflow: visible;
        overscroll-behavior-x: auto;
        scroll-snap-type: none;
        scroll-padding-inline: 0;
        padding: 0;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) > .rcf-case-card {
        position: relative;
        flex: initial;
        scroll-snap-align: none;
        border-radius: 10px;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-media {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 80px;
        height: 80px;
        min-height: 0;
        aspect-ratio: 1;
        padding: 0;
        border-radius: 6px;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-media > span {
        font-size: 8px;
        letter-spacing: 0;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-body {
        min-width: 0;
        padding: 12px;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-category {
        padding-left: 92px;
        font-size: 11px;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-body h3 {
        box-sizing: border-box;
        min-height: 64px;
        margin: 5px 0 8px;
        padding-left: 92px;
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-body h3 a {
        font-size: inherit;
        line-height: inherit;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-summary {
        display: none;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-body dl {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        margin: 0;
        padding: 8px 0;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-body dl > div {
        display: flex;
        gap: 5px;
        min-width: 0;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) :is(dt, dd) {
        font-size: 11px;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) .rcf-case-card-actions {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding-top: 8px;
    }

    body.home :is(.rcf-search-results, .rcf-favorites-grid) :is(.rcf-case-card-cta, .rcf-favorite-toggle) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        margin: 0;
        font-size: 11px;
    }

    /* Series entries remain available without clipping at narrow widths. */
    body.home .rcf-case-card-series-slot {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
        margin: 0 0 6px;
    }

    body.home .rcf-case-card-series-slot[aria-hidden="true"] {
        display: none;
    }

    body.home .rcf-case-card-series-inline {
        flex-wrap: wrap;
        gap: 0 12px;
        white-space: normal;
    }

    body.home .rcf-case-card-series-inline-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    body.home .rcf-continue-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    body.home .rcf-continue-media {
        display: block;
        width: 100%;
        height: 44px;
        min-height: 0;
        aspect-ratio: auto;
        background: var(--rcf-case-accent-soft);
    }

    body.home .rcf-continue-media img,
    body.home .rcf-continue-media.has-no-image::before {
        display: none;
    }

    body.home .rcf-continue-case-badge {
        left: 12px;
        bottom: 12px;
        padding: 0;
        background: transparent;
        color: var(--rcf-case-accent);
    }

    body.home .rcf-continue-remove {
        top: 0;
        right: 0;
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    body.home .rcf-continue-body {
        min-width: 0;
        padding: 12px;
        overflow-wrap: anywhere;
    }

    body.home .rcf-continue-item h4 {
        font-size: 15px;
        line-height: 1.5;
    }

    body.home .rcf-continue-article-title {
        font-size: 13px;
    }

    body.home .rcf-continue-progress progress {
        height: 8px;
        accent-color: var(--rcf-case-accent);
    }

    body.home .rcf-continue-action {
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 6px;
        background: var(--rcf-case-accent);
        color: var(--rcf-case-bg);
        text-decoration: none;
    }
}
/* /RCF_MOBILE_MODE_CARDS_V2 */

/* RCF_MOBILE_SEARCH_CONTINUE_FINISH_V1 */
.rcf-search-filter-toggle,
.rcf-continue-empty.is-empty {
    display: none;
}

@media (max-width: 620px) {
    body.home .rcf-search-filter-toggle:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        box-sizing: border-box;
        width: 100%;
        min-height: 48px;
        margin: 0 0 12px;
        padding: 10px 12px;
        border: 1px solid var(--rcf-case-line-strong);
        border-radius: 8px;
        background: var(--rcf-case-surface);
        color: var(--rcf-case-text);
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }

    body.home .rcf-search-filter-toggle > span:last-child {
        flex-shrink: 0;
        color: var(--rcf-case-accent);
    }

    body.home .rcf-search-filter-toggle:not([hidden])[aria-expanded="false"] + .rcf-search-primary {
        display: none;
    }

    body.home .rcf-search-chips {
        width: 100%;
        min-width: 0;
        gap: 8px;
    }

    body.home .rcf-search-chip {
        box-sizing: border-box;
        max-width: 100%;
        min-height: 44px;
        padding: 9px 12px;
        border-color: var(--rcf-case-accent);
        border-radius: 8px;
        background: var(--rcf-case-accent-soft);
        color: var(--rcf-case-text);
        font-size: 12px;
        line-height: 1.5;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.home .rcf-continue-empty.is-empty:not([hidden]) {
        display: block;
        margin-top: 12px;
        padding: 14px 12px;
        border: 1px solid var(--rcf-case-line);
        border-radius: 8px;
        background: var(--rcf-case-surface);
        line-height: 1.8;
    }
}
/* /RCF_MOBILE_SEARCH_CONTINUE_FINISH_V1 */
