.ta-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ta-detail-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ta-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    color: #111827;
    font-weight: 800;
    border: 1px solid rgba(15, 23, 42, 0.10);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ta-back-button:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.ta-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ta-direction {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #1f2937;
}

.ta-direction img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ta-date {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

.ta-title {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    color: #111827;
    line-height: 1.15;
}

.ta-company {
    font-size: 15px;
    font-weight: 800;
    color: #374151;
}

.ta-content {
    margin-top: 10px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ta-content h1,
.ta-content h2,
.ta-content h3,
.ta-content h4,
.ta-content h5,
.ta-content h6 {
    color: #111827;
    margin: 18px 0 10px;
    line-height: 1.25;
}

.ta-content p,
.ta-content li {
    line-height: 1.7;
    font-size: 16px;
    color: #1f2937;
}

.ta-content a {
    color: #4338ca;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.ta-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px auto;
}

.ta-content blockquote {
    margin: 16px 0;
    padding: 12px 14px;
    border-left: 4px solid rgba(79, 70, 229, 0.35);
    background: rgba(79, 70, 229, 0.06);
    border-radius: 10px;
}

.ta-content table {
    width: 100%;
    min-width: 620px; /* 6 columns from the 1C assignment table; allow horizontal scroll on mobile */
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 15px;
}

.ta-content th,
.ta-content td {
    border: 1px solid rgba(15, 23, 42, 0.18);
    padding: 10px 12px;
    vertical-align: top;
}

.ta-content thead th {
    background: rgba(17, 24, 39, 0.04);
}

.ta-content thead th:not(:first-child),
.ta-content tbody td:not(:first-child) {
    text-align: center;
}

.ta-content tbody td:first-child {
    text-align: left;
}

.ta-content tbody tr:nth-child(even) td {
    background: rgba(17, 24, 39, 0.02);
}

.ta-content td:empty::after {
    content: "";
    display: block;
    min-height: 1em; /* keep empty cells visible */
}

.ta-attachments {
    margin-top: 12px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ta-attachments h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
}

.ta-attachments ul {
    margin: 0;
    padding-left: 18px;
}

.ta-attachments a {
    color: #111827;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .ta-detail {
        padding: 26px 14px;
    }
    .ta-title {
        font-size: 28px;
    }
    .ta-content {
        padding: 18px;
    }
}
