/* Внешний вид ключевого слова — подчёркнуто, но не как ссылка */
.kw {
    border-bottom: 2px dashed #3498db; /* Синее пунктирное подчёркивание */
    background: transparent;
	color: inherit;
	cursor: help;
	outline: none;
}
.kw:focus { outline: 2px solid #ffcd8a; outline-offset: 2px; }

/* Обёртка */
.kw-wrap { position: relative; display: inline; }

/* Тултип */
.kw-tooltip {
    font-family: 'IBM Plex Serif',serif;
    font-size: 16px;
    line-height: 1.25;

	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translate(-50%, 4px);
	z-index: 1000;

	background: #111;
	color: #f6f6f6;
	border: 1px solid #2a2a2a;
	border-radius: 10px;
	padding: 12px 14px;
	box-shadow: 0 8px 26px rgba(0,0,0,0.35);

	/* ширина */
	width: clamp(260px, 48ch, 90vw);
	max-width: 90vw;

	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
	max-height: 80vh;
	overflow: auto;

	opacity: 0;
	visibility: hidden;
	transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
	pointer-events: auto;
}

.kw-tooltip::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	border-width: 0 6px 6px 6px;
	border-style: solid;
	border-color: transparent transparent #2a2a2a transparent;
}
.kw-tooltip::after {
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	transform: translateX(-50%);
	border-width: 0 5px 5px 5px;
	border-style: solid;
	border-color: transparent transparent #111 transparent;
}

/* .kw-wrap:hover .kw-tooltip,
.kw-wrap:focus-within .kw-tooltip,
.kw-wrap.kw-open .kw-tooltip, */
.kw-tooltip.kw-open
{
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition: opacity 140ms ease, transform 140ms ease;
}

@media (min-width: 1200px) {
	.kw-tooltip { max-width: 33vw; }
}

.kw-tooltip a {
	color: #9fd4ff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.kw-tooltip a:hover { color: #cfe9ff; }


#archdev-content {
    margin: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0px;
}

#archdev-content thead {
    font-weight: 600;
    color: #000000;
}

#archdev-content tbody {
    font-weight: 360;
    color: #4d4c4c;
}

#archdev-content tbody tr:nth-child(even) {
    background: #eee;
}

#archdev-content tbody tr:nth-child(odd) {
    background: #fff;
}

#archdev-content td,
#archdev-content th {
    margin: 0;
    border: 0 solid #ccc;
    font-family: 'IBM Plex Serif',serif;
    font-size: 18px;
    line-height: 1.55;
    padding: 20px;
    vertical-align: top;
    text-align: left;
    border-width: 0 0 1px 0;
    border-color: #d9d9d9;
}

#archdev-content th {
    border-color: #000 !important;
}

#archdev-content tr:nth-child(1) th,
#archdev-content tr:nth-child(1) td {
    border-top-width: 0px;
}

#archdev-content td:first-child,
#archdev-content th:first-child {
    padding-left: 0 !important;
    width: 10%;
}

#archdev-content td:nth-child(2),
#archdev-content th:nth-child(2) {
    width: 15%;
}

#archdev-content td:nth-child(n+3),
#archdev-content th:nth-child(n+3) {
    width: 25%;
}

    /* Стиль для ключевых слов */
    .keyword {
        position: relative;
        display: inline-block;
        cursor: help;
        border-bottom: 2px dashed #3498db; /* Синее пунктирное подчёркивание */
        color: #2c3e50; /* Цвет текста */
        font-weight: bold; /* Жирный шрифт */
    }
    
    /* Стиль для всплывающей подсказки */
    .keyword::after {
        content: attr(title);
        position: absolute;
        bottom: 125%; /* Позиция над словом */
        left: 50%;
        transform: translateX(-50%);
        background-color: #2c3e50;
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: normal;
        white-space: nowrap;
        opacity: 0; /* Скрыто по умолчанию */
        visibility: hidden;
        transition: opacity 0.3s;
        z-index: 100;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    
    /* Стрелка подсказки */
    .keyword::before {
        content: "";
        position: absolute;
        bottom: 60%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #2c3e50 transparent transparent transparent;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        z-index: 101;
    }
    
    /* Показ подсказки при наведении */
    .keyword:hover::after,
    .keyword:hover::before {
        opacity: 1;
        visibility: visible;
    }
