.summary {
    padding-left: 20px;
    padding-right: 20px;}

.summary-outer {
    max-width: 1200px;    
    width: 100%;     
    padding: 16px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
}

.summary-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.summary-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.summary-left {
    flex: 1 1 auto;
}

.summary-right {
    flex: 0 0 200px;
}

.summary-right img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.summary-title {
    margin: 0 0 12px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.summary-text-wrapper {
    position: relative;
    overflow: hidden;
    max-height: calc(1.5em * 6);
    transition: max-height 0.35s ease;
}

.summary-text-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.summary-text {
    font-size: 16px;
    line-height: 1.5;
}

.summary-outer.open .summary-text-wrapper {
    max-height: 2000px;
}

.summary-outer.open .summary-text-wrapper::after {
    display: none;
}

.summary-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #f59b10; 
    font-weight: 400;
    padding: 6px 0;
    width: 100%;
    text-align: center;
}

.summary-toggle:hover,
.summary-toggle:focus {
    text-decoration: none; 
    color: #f59b10; 
}

.summary-toggle-icon svg {
    width: 18px;
    height: 18px;
    fill: #f59b10; 
    transition: transform 0.45s cubic-bezier(0.25, 1.4, 0.4, 1);
    transform-origin: 50% 50%;
    transform: rotate(180deg);  
}

.summary-outer.open .summary-toggle-icon svg {
    transform: rotate(0deg);
}

@media (max-width: 900px) {
    .summary-right { display: none; }    
    .summary-content { flex-direction: column; }
}
