/* =====================================================================
   futomi's CGI Café — Company, Privacy & Author Profile (Bright Clean Edition)
   ===================================================================== */
.other-main {
    --sheet: var(--fc-surface);
    --tint: var(--fc-surface-tint);
    --line: var(--fc-border);
    --muted: var(--fc-muted);
    overflow-wrap: anywhere;
}

.other-main a {
    color: var(--fc-navy-mid);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.other-main a:hover {
    color: var(--fc-red);
}

.other-main [id] {
    scroll-margin-top: 1rem;
}

/* Bright Page Heading Card (4px Brand Red Left Stripe) */
.other-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.45rem clamp(0.75rem, 1.7vw, 1.3rem);
    padding: clamp(1.1rem, 2.4vw, 1.65rem) clamp(1.15rem, 2.5vw, 1.9rem);
    border: 1px solid var(--fc-border);
    border-inline-start: 4px solid var(--fc-red);
    border-radius: var(--fc-radius-card);
    background: var(--fc-surface);
    box-shadow: var(--fc-shadow);
}

.other-heading > .fa-fw {
    display: grid;
    place-items: center;
    width: clamp(2.25rem, 4vw, 2.85rem);
    aspect-ratio: 1;
    margin-top: 0.1rem;
    border-radius: var(--fc-radius-md);
    color: var(--fc-navy-mid);
    background: var(--fc-surface-tint);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.other-heading h1 {
    color: var(--fc-navy);
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    font-weight: 700;
    font-feature-settings: "palt";
    line-height: 1.35;
    text-wrap: balance;
    line-break: strict;
}

.other-heading .phrase {
    display: inline-block;
}

.other-heading p {
    grid-column: 2;
    max-width: 52em;
    color: var(--fc-muted);
    font-size: 0.9375rem;
    line-height: 1.75;
}

/* 2-Column Layout & Clean Sidebar Card */
.other-layout {
    display: grid;
    grid-template-columns: minmax(12.5rem, 15.5rem) minmax(0, 1fr);
    gap: clamp(1.15rem, 2.8vw, 2.25rem);
    align-items: start;
    margin-top: clamp(1.35rem, 2.8vw, 2rem);
}

.other-menu {
    padding: 0.9rem 1.05rem;
    border: 1px solid var(--fc-border);
    border-top: 3px solid var(--fc-navy-mid);
    border-radius: var(--fc-radius-md);
    background: var(--fc-surface);
    box-shadow: var(--fc-shadow);
}

@media (min-width: 52.01rem) and (min-height: 31rem) {
    .other-menu {
        position: sticky;
        top: 1rem;
    }
}

.other-menu h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fc-navy);
}

.other-menu h2 .fas {
    margin-right: 0.45rem;
    font-size: 0.86em;
}

.other-menu ul {
    padding: 0;
    margin-top: 0.5rem;
    list-style: none;
}

.other-menu li + li {
    border-top: 1px solid var(--fc-border-soft);
}

.other-menu a,
.other-menu [aria-current="page"] {
    display: block;
    padding: 0.5rem 0.4rem;
    margin-inline: -0.4rem;
    border-radius: 4px;
    line-height: 1.5;
    font-size: 0.875rem;
    text-decoration: none;
}

.other-menu a {
    color: var(--fc-nav-text);
}

.other-menu a:hover {
    background: var(--fc-surface-tint);
    color: var(--fc-navy);
}

.other-menu [aria-current="page"] {
    background: var(--fc-surface-tint);
    color: var(--fc-navy);
    font-weight: 700;
    box-shadow: inset 3px 0 var(--fc-red);
    padding-inline-start: 0.65rem;
}

/* Main Content Card */
.other-copy {
    min-width: 0;
    padding: clamp(1.15rem, 2.4vw, 1.85rem);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-card);
    background: var(--fc-surface);
    box-shadow: var(--fc-shadow);
    line-height: 1.82;
}

.other-copy section + section {
    margin-top: clamp(1.6rem, 3vw, 2.35rem);
}

.other-copy section > h2 {
    border-bottom: 1px solid var(--fc-border);
    padding-bottom: 0.45rem;
    margin: 0 0 0.95rem;
    font-size: clamp(1.15rem, 1.9vw, 1.42rem);
    color: var(--fc-navy);
    font-weight: 700;
    font-feature-settings: "palt";
    line-height: 1.45;
}

.other-copy :is(p + p, p + ul, ul + p) {
    margin-top: 0.65rem;
}

.other-copy ul {
    padding-inline-start: 1.5em;
}

.other-copy li + li {
    margin-top: 0.3rem;
}

/* Company Facts & Career Definition Tables */
.company-facts,
.career-dates {
    margin: 0;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-md);
    overflow: hidden;
}

.company-facts > div,
.career-dates > div {
    display: grid;
    grid-template-columns: minmax(9.5rem, 29%) minmax(0, 1fr);
    background: var(--fc-surface);
}

.company-facts > div + div,
.career-dates > div + div {
    border-top: 1px solid var(--fc-border-soft);
}

.company-facts dt,
.career-dates dt {
    padding: 0.8rem 1.05rem;
    color: var(--fc-navy);
    background: var(--fc-surface-soft);
    border-inline-end: 1px solid var(--fc-border-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.company-facts dd,
.career-dates dd {
    margin: 0;
    padding: 0.8rem 1.05rem;
}

.company-facts .address-mark {
    font-weight: 700;
    color: var(--fc-navy);
}

.career-note {
    margin-top: 0.9rem;
}

.career-note .fa-linkedin {
    color: #0a66c2;
    margin-right: 0.35rem;
}

.other-policy {
    max-width: 52rem;
}

.policy-opening {
    margin-bottom: 1.2rem;
}

.other-policy .policy-note {
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--fc-border-soft);
    font-size: 0.875rem;
    color: var(--fc-muted);
}

/* Open Source Activities & Books */
.activity-list,
.books {
    list-style: none;
    margin: 0;
    padding: 0;
}

.other-copy .activity-list,
.other-copy .books {
    padding: 0;
}

.activity-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.activity-list li {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-md);
    background: var(--fc-surface-head);
}

.other-copy .activity-list li + li {
    margin: 0;
}

.activity-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 2.5rem;
    font-weight: 700;
}

.activity-list img {
    width: 2.8rem;
    height: 1.75rem;
    object-fit: contain;
}

.activity-list p {
    margin-top: 0.35rem;
    color: var(--fc-muted);
    font-size: 0.875rem;
}

.profile-links { margin: 0; }
.profile-links dt { color: var(--fc-navy); font-weight: 700; }
.profile-links dd { margin: 0.35rem 0 0; }
.profile-links dd + dt { margin-top: 1rem; }

.books {
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-md);
    overflow: hidden;
}

.books > li {
    display: grid;
    grid-template-columns: clamp(5.5rem, 11vw, 8.25rem) minmax(0, 1fr);
    gap: clamp(0.85rem, 2vw, 1.4rem);
    align-items: start;
    padding: clamp(0.95rem, 2vw, 1.35rem);
    background: var(--fc-surface);
}

.books > li + li {
    border-top: 1px solid var(--fc-border-soft);
}

.other-copy .books > li + li {
    margin: 0;
}

.books img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(11, 41, 66, 0.14);
}

.books h3 {
    color: var(--fc-navy);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    font-weight: 700;
    line-height: 1.5;
}

.books .book-date {
    margin: 0.2rem 0 0.55rem;
    color: var(--fc-muted);
    font-size: 0.85rem;
}

.other-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
    margin-top: 1.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fc-border-soft);
}

.other-related a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
}

@media (max-width: 52rem) {
    .other-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .other-menu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
    }
    .other-menu li {
        border-top: 1px solid var(--fc-border-soft);
    }
    .other-policy {
        max-width: none;
    }
}

@media (max-width: 38rem) {
    .other-heading p {
        grid-column: 1 / -1;
    }
    .other-copy {
        padding: 1rem;
    }
    .company-facts > div,
    .career-dates > div {
        display: block;
    }
    .company-facts dt,
    .career-dates dt {
        padding: 0.45rem 0.85rem;
        border-inline-end: 0;
        border-bottom: 1px solid var(--fc-border-soft);
    }
    .company-facts dd,
    .career-dates dd {
        padding: 0.6rem 0.85rem 0.8rem;
    }
    .activity-list {
        grid-template-columns: 1fr;
    }
    .books > li {
        grid-template-columns: 4.75rem minmax(0, 1fr);
        gap: 0.5rem 0.85rem;
    }
    .book-description {
        grid-column: 1 / -1;
    }
}

@media (min-width: 38.01rem) {
    .books img {
        grid-row: span 2;
    }
    .book-description {
        grid-column: 2;
    }
    .books > li {
        row-gap: 0;
    }
}
